|  |  |  | 
|---|
|  |  |  | <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="120px"> | 
|---|
|  |  |  | <el-row style="padding: 10px"> | 
|---|
|  |  |  | <el-col class="col-sm-10" > | 
|---|
|  |  |  | <el-form-item label="收货人:" prop="shr"> | 
|---|
|  |  |  | <el-input v-model="ruleForm.shr" :disabled="(formSelect.state == 3 ? true:false)"></el-input> | 
|---|
|  |  |  | <el-form-item label="收货人:" prop="consignee"> | 
|---|
|  |  |  | <el-input v-model="ruleForm.consignee" :disabled="(formSelect.state == 3 ? true:false)"></el-input> | 
|---|
|  |  |  | </el-form-item> | 
|---|
|  |  |  | </el-col> | 
|---|
|  |  |  | </el-row> | 
|---|
|  |  |  | <el-row style="padding: 10px"> | 
|---|
|  |  |  | <el-col class="col-sm-10" > | 
|---|
|  |  |  | <el-form-item label="联系电话:" prop="lxdh"> | 
|---|
|  |  |  | <el-input v-model="ruleForm.lxdh" :disabled="(formSelect.state == 3 ? true:false)"></el-input> | 
|---|
|  |  |  | <el-form-item label="联系电话:" prop="consigneePhone"> | 
|---|
|  |  |  | <el-input v-model="ruleForm.consigneePhone" :disabled="(formSelect.state == 3 ? true:false)"></el-input> | 
|---|
|  |  |  | </el-form-item> | 
|---|
|  |  |  | </el-col> | 
|---|
|  |  |  | </el-row> | 
|---|
|  |  |  | <el-row style="padding: 10px"> | 
|---|
|  |  |  | <el-col class="col-sm-10" > | 
|---|
|  |  |  | <el-form-item label="收货地址:" prop="shdz"> | 
|---|
|  |  |  | <el-input v-model="ruleForm.shdz" :disabled="(formSelect.state == 3 ? true:false)"></el-input> | 
|---|
|  |  |  | <el-form-item label="收货地址:" prop="consigneeAddress"> | 
|---|
|  |  |  | <el-input v-model="ruleForm.consigneeAddress" :disabled="(formSelect.state == 3 ? true:false)"></el-input> | 
|---|
|  |  |  | </el-form-item> | 
|---|
|  |  |  | </el-col> | 
|---|
|  |  |  | </el-row> | 
|---|
|  |  |  | 
|---|
|  |  |  | </el-col> | 
|---|
|  |  |  | </el-row> | 
|---|
|  |  |  | <el-row style="padding: 10px"> | 
|---|
|  |  |  | <el-col class="col-sm-10" > | 
|---|
|  |  |  | <el-col class="col-sm-10"  v-show='false'> | 
|---|
|  |  |  | <el-form-item label="快递公司编码:"> | 
|---|
|  |  |  | <el-input v-model="ruleForm.kdgs" :disabled="(formSelect.state == 3 ? true:false)"></el-input> | 
|---|
|  |  |  | </el-form-item> | 
|---|
|  |  |  | 
|---|
|  |  |  | djfs: '', | 
|---|
|  |  |  | state: '', | 
|---|
|  |  |  | djsj: '', | 
|---|
|  |  |  | consignee: '', | 
|---|
|  |  |  | consigneePhone: '', | 
|---|
|  |  |  | consigneeAddress: '', | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | //物流信息 | 
|---|
|  |  |  | logisticsList:[], | 
|---|
|  |  |  | ruleForm : { | 
|---|
|  |  |  | shr:'', | 
|---|
|  |  |  | lxdh:'', | 
|---|
|  |  |  | shdz:'', | 
|---|
|  |  |  | consignee:'', | 
|---|
|  |  |  | consigneePhone:'', | 
|---|
|  |  |  | consigneeAddress:'', | 
|---|
|  |  |  | kdgs:'', | 
|---|
|  |  |  | kddh:'', | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | 
|---|
|  |  |  | activities: [], | 
|---|
|  |  |  |  | 
|---|
|  |  |  | rules : { | 
|---|
|  |  |  | shr : [ | 
|---|
|  |  |  | consignee : [ | 
|---|
|  |  |  | { required: true, message: '请输入收货人', trigger: 'blur' } | 
|---|
|  |  |  | ], | 
|---|
|  |  |  | lxdh : [ | 
|---|
|  |  |  | consigneePhone : [ | 
|---|
|  |  |  | { required: true, message: '请输入联系电话', trigger: 'blur' } | 
|---|
|  |  |  | ], | 
|---|
|  |  |  | shdz : [ | 
|---|
|  |  |  | consigneeAddress : [ | 
|---|
|  |  |  | { required: true, message: '请输入收货地址', trigger: 'blur' } | 
|---|
|  |  |  | ], | 
|---|
|  |  |  | kdgs : [ | 
|---|
|  |  |  | 
|---|
|  |  |  | mounted: function () { | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | methods: { | 
|---|
|  |  |  | //加载分类 | 
|---|
|  |  |  | //加载 | 
|---|
|  |  |  | loadInfo() { | 
|---|
|  |  |  | let _this = this; | 
|---|
|  |  |  | //加载配置 | 
|---|
|  |  |  | 
|---|
|  |  |  | url: basePath + '/admin/activitySignWriteoff/findSignWriteoff', | 
|---|
|  |  |  | callback: function (data) { | 
|---|
|  |  |  | _this.formSelect = data.mapInfo.signWriteoffVo; | 
|---|
|  |  |  | _this.ruleForm.consignee = data.mapInfo.signWriteoffVo.consignee; | 
|---|
|  |  |  | _this.ruleForm.consigneePhone = data.mapInfo.signWriteoffVo.consigneePhone; | 
|---|
|  |  |  | _this.ruleForm.consigneeAddress = data.mapInfo.signWriteoffVo.consigneeAddress; | 
|---|
|  |  |  | _this.ruleForm.kdgs = data.mapInfo.signWriteoffVo.logisticsCompany; | 
|---|
|  |  |  | _this.ruleForm.kddh = data.mapInfo.signWriteoffVo.logisticsNum; | 
|---|
|  |  |  | _this.activities = data.mapInfo.signWriteoffVo.activities; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | let resultData = { | 
|---|
|  |  |  | writeoffId : writeoffId, | 
|---|
|  |  |  | shr : _this.ruleForm.shr, | 
|---|
|  |  |  | lxdh : _this.ruleForm.lxdh, | 
|---|
|  |  |  | shdz : _this.ruleForm.shdz, | 
|---|
|  |  |  | shr : _this.ruleForm.consignee, | 
|---|
|  |  |  | lxdh : _this.ruleForm.consigneePhone, | 
|---|
|  |  |  | shdz : _this.ruleForm.consigneeAddress, | 
|---|
|  |  |  | kdgs : _this.ruleForm.kdgs, | 
|---|
|  |  |  | kddh : _this.ruleForm.kddh, | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | message: data.info, | 
|---|
|  |  |  | type: 'success', | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | _this.loadInfo(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | closeFrame() { | 
|---|
|  |  |  | parent.layer.close(parent.layer.getFrameIndex(window.name)); | 
|---|
|  |  |  | parent.location.reload(); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }) | 
|---|