|
@@ -216,7 +216,7 @@
|
|
|
height="22"
|
|
|
class="del"
|
|
|
@click="del(index, item)"
|
|
|
- v-if="item.carNum==0"
|
|
|
+ v-if="item.carNum==0||!item.carNum"
|
|
|
src="../../../public/img/del.png"
|
|
|
alt=""
|
|
|
/>
|
|
@@ -449,6 +449,7 @@ export default {
|
|
|
age: '',
|
|
|
weight: 0,
|
|
|
number: 2,
|
|
|
+ count: 2,
|
|
|
}
|
|
|
},
|
|
|
activated() {
|
|
@@ -593,6 +594,7 @@ export default {
|
|
|
}
|
|
|
this.deptBudgetList = response
|
|
|
this.number = response.tranProcessInfoList.length + 1
|
|
|
+ this.count = response.count + 1
|
|
|
if (
|
|
|
response.startPrivate != null &&
|
|
|
response.startCity != null &&
|
|
@@ -741,7 +743,7 @@ export default {
|
|
|
},
|
|
|
add(index) {
|
|
|
this.deptBudgetList.tranProcessInfoList.push({
|
|
|
- processNo: this.deptBudgetList.taskNo + this.number,
|
|
|
+ processNo: this.deptBudgetList.taskNo + this.count,
|
|
|
sort: 0,
|
|
|
tranType: '汽运',
|
|
|
tranTypeKey: '1',
|
|
@@ -764,7 +766,7 @@ export default {
|
|
|
senderPhone: '',
|
|
|
receiverPhone: '',
|
|
|
})
|
|
|
- this.number++
|
|
|
+ this.count++
|
|
|
},
|
|
|
del(index, row) {
|
|
|
if (row.id) {
|
|
@@ -787,7 +789,8 @@ export default {
|
|
|
this.deptBudgetList.tranProcessInfoList.splice(index, 1)
|
|
|
}
|
|
|
}
|
|
|
- this.number--
|
|
|
+ this.count--
|
|
|
+ this.loaddata()
|
|
|
},
|
|
|
handleChange(value) {
|
|
|
this.selectedOptions = value
|
|
@@ -900,8 +903,8 @@ export default {
|
|
|
return
|
|
|
}
|
|
|
for (var i = 0; i < this.deptBudgetList.tranProcessInfoList.length; i++) {
|
|
|
- this.deptBudgetList.tranProcessInfoList[i].processNo =
|
|
|
- this.deptBudgetList.taskNo + (i + 1)
|
|
|
+ // this.deptBudgetList.tranProcessInfoList[i].processNo =
|
|
|
+ // this.deptBudgetList.taskNo + (i + 1)
|
|
|
if (
|
|
|
new Date(
|
|
|
this.deptBudgetList.tranProcessInfoList[i].deliveryDateStart
|