|
@@ -293,7 +293,7 @@
|
|
|
>
|
|
|
</div>
|
|
|
<!--运单-->
|
|
|
- <ws-form-item label="运单:" span="1" prop="loadPoundImg">
|
|
|
+ <ws-form-item label="运单:" span="1" prop="unloadPoundImg">
|
|
|
<!-- slot-scope="scope" -->
|
|
|
<template>
|
|
|
<el-upload
|
|
@@ -317,19 +317,21 @@
|
|
|
<div class="tupian">
|
|
|
<span
|
|
|
v-if="
|
|
|
- deptBudgetList.tranCarInfoList[0] &&
|
|
|
- deptBudgetList.tranCarInfoList[0].loadPoundImg != null
|
|
|
+ deptBudgetList.tranCarInfoList.length > 0 &&
|
|
|
+ deptBudgetList.tranCarInfoList[0].unloadPoundImg != null
|
|
|
"
|
|
|
- >1</span
|
|
|
+ >{{ pictureTotal }}</span
|
|
|
>
|
|
|
<span
|
|
|
v-if="
|
|
|
- deptBudgetList.tranCarInfoList[0] &&
|
|
|
- deptBudgetList.tranCarInfoList[0].loadPoundImg == null
|
|
|
+ deptBudgetList.tranCarInfoList.length > 0 &&
|
|
|
+ deptBudgetList.tranCarInfoList[0].unloadPoundImg == null
|
|
|
"
|
|
|
>未上传</span
|
|
|
>
|
|
|
</div>
|
|
|
+ <el-button v-if="deptBudgetList.tranCarInfoList.length>0&&deptBudgetList.tranCarInfoList[0].unloadPoundImg != null"
|
|
|
+ class="bg-bottom-preview" type="primary" size="small" :data-img="deptBudgetList.tranCarInfoList[0].unloadPoundImg" @click="$imgPreview">预览</el-button>
|
|
|
</template>
|
|
|
</ws-form-item>
|
|
|
</ws-form>
|
|
@@ -374,6 +376,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ pictureTotal: 0,
|
|
|
deptBudgetList: {
|
|
|
totalStorage: 0,
|
|
|
},
|
|
@@ -431,16 +434,15 @@ export default {
|
|
|
driverPhone: '',
|
|
|
carNo: '',
|
|
|
loadNetWeight: '',
|
|
|
- loadPoundImg: '',
|
|
|
+ unloadPoundImg: '',
|
|
|
},
|
|
|
- // {loadPoundImg:{}},
|
|
|
],
|
|
|
name: '',
|
|
|
staffList: [],
|
|
|
options: [],
|
|
|
carModel: [],
|
|
|
tranCarInfoList: {
|
|
|
- loadPoundImg: '',
|
|
|
+ unloadPoundImg: '',
|
|
|
},
|
|
|
excelFreightspace:[],
|
|
|
//上传
|
|
@@ -783,7 +785,8 @@ export default {
|
|
|
.toPromise()
|
|
|
.then((response) => {
|
|
|
this.deptBudgetList = response
|
|
|
- this.deptBudgetList.driver = response.tranCarInfoList[0].driver
|
|
|
+ if(response.tranCarInfoList.length > 0){
|
|
|
+ this.deptBudgetList.driver = response.tranCarInfoList[0].driver
|
|
|
this.deptBudgetList.driverPhone =
|
|
|
response.tranCarInfoList[0].driverPhone
|
|
|
this.$set(
|
|
@@ -797,8 +800,17 @@ export default {
|
|
|
this.deptBudgetList.shipNo = response.tranCarInfoList[0].shipNo
|
|
|
this.deptBudgetList.shipType = response.tranCarInfoList[0].shipType
|
|
|
this.deptBudgetList.boxNumber = response.tranCarInfoList[0].boxNumber
|
|
|
- // this.deptBudgetList.tranCarInfoList = response.tranCarInfoList
|
|
|
+ //上传附件计数
|
|
|
+ if (this.deptBudgetList.tranCarInfoList[0].unloadPoundImg) {
|
|
|
+ this.pictureTotal =
|
|
|
+ this.deptBudgetList.tranCarInfoList[0].unloadPoundImg.split(
|
|
|
+ ','
|
|
|
+ ).length
|
|
|
+ }
|
|
|
+
|
|
|
this.freightspace = response.tranCarInfoList
|
|
|
+ }
|
|
|
+
|
|
|
for (var i = 0; i < this.freightspace.length; i++) {
|
|
|
if (!this.freightspace[i].loadNetWeight) {
|
|
|
this.freightspace[i].loadNetWeight = 0
|
|
@@ -857,7 +869,15 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
uploadSuccessHandle1(e, index) {
|
|
|
- this.deptBudgetList.tranCarInfoList[0].loadPoundImg = e.url
|
|
|
+ this.pictureTotal++
|
|
|
+ if (this.deptBudgetList.tranCarInfoList[0].unloadPoundImg) {
|
|
|
+ this.deptBudgetList.tranCarInfoList[0].unloadPoundImg += ',' + e.url
|
|
|
+ } else {
|
|
|
+ this.deptBudgetList.tranCarInfoList[0].unloadPoundImg = e.url
|
|
|
+ }
|
|
|
+ feedback(this.deptBudgetList)
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {})
|
|
|
},
|
|
|
},
|
|
|
}
|