|
@@ -203,7 +203,8 @@
|
|
|
}]
|
|
|
},
|
|
|
ruleForm: {
|
|
|
- TamperProofLabel: '',
|
|
|
+ tamperProofLabel: '',
|
|
|
+ tamperProofLabelImg: '',
|
|
|
remark: '',
|
|
|
},
|
|
|
formRuleList: [],
|
|
@@ -284,6 +285,8 @@
|
|
|
consigneeAddressDetails: this.recipientsForm.address,
|
|
|
...this.ruleForm
|
|
|
}
|
|
|
+ var fileImage = this.picture(this.ruleForm.fileList)
|
|
|
+ params.tamperProofLabelImg = fileImage
|
|
|
if (this.operationType == 'add') {
|
|
|
await addWaybill(params).then(res => {
|
|
|
if (res.code == 200) {
|
|
@@ -320,6 +323,15 @@
|
|
|
// console.log(this.ruleForm,86)
|
|
|
// console.log(this.senderForm, this.recipientsForm, 665)
|
|
|
},
|
|
|
+ picture(arr) {
|
|
|
+ var imgList = JSON.parse(JSON.stringify(arr))
|
|
|
+ var imgArr = []
|
|
|
+ imgList.forEach((item, index) => {
|
|
|
+ imgArr.push(item.url)
|
|
|
+ })
|
|
|
+ var imgString = imgArr.join()
|
|
|
+ return imgString
|
|
|
+ },
|
|
|
// 添加寄件人
|
|
|
getSender(value) {
|
|
|
return new Promise((resolve, reject) => {
|
|
@@ -390,7 +402,20 @@
|
|
|
this.recipientsForm.name = row.consigneeAddressName
|
|
|
this.recipientsForm.phone = row.consigneeAddressPhone
|
|
|
this.recipientsForm.address = row.consigneeAddressDetails
|
|
|
- this.ruleForm.TamperProofLabel = row.tamperProofLabel
|
|
|
+ this.ruleForm.tamperProofLabel = row.tamperProofLabel
|
|
|
+ if (row.tamperProofLabelImg) {
|
|
|
+ var arr = row.tamperProofLabelImg.split(',')
|
|
|
+ var arr3 = []
|
|
|
+ arr.forEach((item, index) => {
|
|
|
+ var arr1 = {
|
|
|
+ url: '',
|
|
|
+ }
|
|
|
+ arr1.url = item
|
|
|
+ arr3.push(arr1)
|
|
|
+ })
|
|
|
+ this.ruleForm.fileList = arr3
|
|
|
+ this.ruleForm.tamperProofLabelImg = row.tamperProofLabelImg
|
|
|
+ }
|
|
|
this.ruleForm.remark = row.remark
|
|
|
})
|
|
|
})
|
|
@@ -710,6 +735,7 @@
|
|
|
},
|
|
|
// 关闭清空表单
|
|
|
closePopup() {
|
|
|
+ this.ruleForm.fileList = []
|
|
|
this.$refs.sender.resetForm()
|
|
|
this.$refs.recipients.resetForm()
|
|
|
this.$refs.childRules.resetCheck()
|