|
@@ -235,7 +235,8 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="yd-bottom">
|
|
<div class="yd-bottom">
|
|
- <ws-form-item label="运单:" span="1" prop="loadPoundImg" class="yd-bottom-left">
|
|
|
|
|
|
+
|
|
|
|
+ <ws-form-item label="运单:" span="1" prop="loadPoundImg" class="yd-bottom-left" v-if="freightspace[0].status == '已装车'">
|
|
<!-- slot-scope="scope" -->
|
|
<!-- slot-scope="scope" -->
|
|
<template>
|
|
<template>
|
|
<el-upload
|
|
<el-upload
|
|
@@ -700,10 +701,8 @@ export default {
|
|
.then(() => {
|
|
.then(() => {
|
|
this.$refs.deptBudgetList.validate(valid => {
|
|
this.$refs.deptBudgetList.validate(valid => {
|
|
if (valid) {
|
|
if (valid) {
|
|
- // this.deptBudgetList.totalStorage = this.totalStorage
|
|
|
|
this.tranCarInfoList = this.freightspace
|
|
this.tranCarInfoList = this.freightspace
|
|
this.tranCarInfoList[0].sendDateStart = this.deptBudgetList.sendDateStart
|
|
this.tranCarInfoList[0].sendDateStart = this.deptBudgetList.sendDateStart
|
|
- // this.tranCarInfoList.boxNo = this.arr.toString()
|
|
|
|
for (var i = 0; i < this.tranCarInfoList.length; i++) {
|
|
for (var i = 0; i < this.tranCarInfoList.length; i++) {
|
|
this.tranCarInfoList[i].id = this.freightspace[i].id
|
|
this.tranCarInfoList[i].id = this.freightspace[i].id
|
|
}
|
|
}
|
|
@@ -712,7 +711,6 @@ export default {
|
|
tranProcessInfo.infoId = this.deptBudgetList.infoId
|
|
tranProcessInfo.infoId = this.deptBudgetList.infoId
|
|
tranProcessInfo.processNo = this.deptBudgetList.processNo
|
|
tranProcessInfo.processNo = this.deptBudgetList.processNo
|
|
tranProcessInfo.tranCarInfoList = this.tranCarInfoList
|
|
tranProcessInfo.tranCarInfoList = this.tranCarInfoList
|
|
- // dispatchCat({tranCarInfo:{tranCarInfoList:[this.tranCarInfoList],id:this.deptBudgetList.id}
|
|
|
|
feedback(tranProcessInfo)
|
|
feedback(tranProcessInfo)
|
|
.toPromise()
|
|
.toPromise()
|
|
.then(response => {
|
|
.then(response => {
|
|
@@ -756,9 +754,9 @@ export default {
|
|
this.deptBudgetList.shipName = response.tranCarInfoList[0].shipName
|
|
this.deptBudgetList.shipName = response.tranCarInfoList[0].shipName
|
|
this.deptBudgetList.shipNo = response.tranCarInfoList[0].shipNo
|
|
this.deptBudgetList.shipNo = response.tranCarInfoList[0].shipNo
|
|
this.deptBudgetList.shipType = response.tranCarInfoList[0].shipType
|
|
this.deptBudgetList.shipType = response.tranCarInfoList[0].shipType
|
|
- this.deptBudgetList.boxNumber =
|
|
|
|
- response.tranCarInfoList[0].boxNumber
|
|
|
|
- // this.deptBudgetList.tranCarInfoList = response.tranCarInfoList
|
|
|
|
|
|
+ this.deptBudgetList.boxNumber = response.tranCarInfoList[0].boxNumber
|
|
|
|
+ //上传附件计数
|
|
|
|
+ this.pictureTotal = this.deptBudgetList.tranCarInfoList[0].loadPoundImg.split(",").length
|
|
this.freightspace = response.tranCarInfoList
|
|
this.freightspace = response.tranCarInfoList
|
|
}
|
|
}
|
|
|
|
|
|
@@ -823,12 +821,18 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
uploadSuccessHandle1(e) {
|
|
uploadSuccessHandle1(e) {
|
|
- this.pictureTotal++;
|
|
|
|
|
|
+ this.pictureTotal++;
|
|
if (this.deptBudgetList.tranCarInfoList[0].loadPoundImg) {
|
|
if (this.deptBudgetList.tranCarInfoList[0].loadPoundImg) {
|
|
this.deptBudgetList.tranCarInfoList[0].loadPoundImg += ',' + e.url
|
|
this.deptBudgetList.tranCarInfoList[0].loadPoundImg += ',' + e.url
|
|
} else {
|
|
} else {
|
|
this.deptBudgetList.tranCarInfoList[0].loadPoundImg = e.url
|
|
this.deptBudgetList.tranCarInfoList[0].loadPoundImg = e.url
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ console.log(this.deptBudgetList.tranCarInfoList,"duixiang1")
|
|
|
|
+ feedback(this.deptBudgetList)
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then(response => {
|
|
|
|
+ })
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|