|
@@ -81,6 +81,7 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="重量(吨)" span="1" prop="weight">
|
|
<el-form-item label="重量(吨)" span="1" prop="weight">
|
|
<el-input
|
|
<el-input
|
|
|
|
+ @input='weightchange'
|
|
v-model="deptBudgetList.weight"
|
|
v-model="deptBudgetList.weight"
|
|
placeholder="请输入重量"
|
|
placeholder="请输入重量"
|
|
maxlength="20"
|
|
maxlength="20"
|
|
@@ -199,12 +200,12 @@
|
|
:key="index"
|
|
:key="index"
|
|
>
|
|
>
|
|
<div class="driver">
|
|
<div class="driver">
|
|
- <span >运输阶段{{ index + 1 }} {{ item.processNo }}</span>
|
|
|
|
- <img
|
|
|
|
|
|
+ <span style='vertical-align: top;'>运输阶段{{ index + 1 }} {{ item.processNo }}</span>
|
|
|
|
+ <img v-if='!endflag'
|
|
width="22"
|
|
width="22"
|
|
height="22"
|
|
height="22"
|
|
class="add"
|
|
class="add"
|
|
- @click="add"
|
|
|
|
|
|
+ @click="add(index)"
|
|
src="../../../public/img/add.png"
|
|
src="../../../public/img/add.png"
|
|
alt=""
|
|
alt=""
|
|
/>
|
|
/>
|
|
@@ -216,19 +217,14 @@
|
|
src="../../../public/img/del.png"
|
|
src="../../../public/img/del.png"
|
|
alt=""
|
|
alt=""
|
|
/>
|
|
/>
|
|
- <span style="margin-left : 20px;font-size : 14px" v-if="index == deptBudgetList.tranProcessInfoList.length - 1">最终阶段</span>
|
|
|
|
<el-checkbox
|
|
<el-checkbox
|
|
|
|
+ @change='engflagchange'
|
|
|
|
+ class='endflag'
|
|
v-if="index == deptBudgetList.tranProcessInfoList.length - 1"
|
|
v-if="index == deptBudgetList.tranProcessInfoList.length - 1"
|
|
v-model="item.endFlag"
|
|
v-model="item.endFlag"
|
|
:label="1"
|
|
:label="1"
|
|
- ></el-checkbox
|
|
|
|
- >
|
|
|
|
- <el-checkbox
|
|
|
|
- v-if="index == deptBudgetList.tranProcessInfoList.length - 1"
|
|
|
|
- v-model="item.endFlag"
|
|
|
|
- :label="2"
|
|
|
|
- ></el-checkbox
|
|
|
|
- >
|
|
|
|
|
|
+ >最终阶段</el-checkbox
|
|
|
|
+ >
|
|
</div>
|
|
</div>
|
|
<ws-info-table>
|
|
<ws-info-table>
|
|
<el-form-item label="运输方式" span="1" prop="waterContent">
|
|
<el-form-item label="运输方式" span="1" prop="waterContent">
|
|
@@ -411,7 +407,7 @@ export default {
|
|
tranTypeKey: '1',
|
|
tranTypeKey: '1',
|
|
deliveryDateStart: '',
|
|
deliveryDateStart: '',
|
|
deliveryDateEnd: '',
|
|
deliveryDateEnd: '',
|
|
- weight: '13',
|
|
|
|
|
|
+ weight: '',
|
|
selectedOptions: [],
|
|
selectedOptions: [],
|
|
selectedOptions1: [],
|
|
selectedOptions1: [],
|
|
sendPrivate: '',
|
|
sendPrivate: '',
|
|
@@ -434,6 +430,7 @@ export default {
|
|
options_: regionData,
|
|
options_: regionData,
|
|
heightData: '600px',
|
|
heightData: '600px',
|
|
zoom: 7,
|
|
zoom: 7,
|
|
|
|
+ endflag:false,
|
|
selectedOptions: [],
|
|
selectedOptions: [],
|
|
selectedOptions1: [],
|
|
selectedOptions1: [],
|
|
window: '',
|
|
window: '',
|
|
@@ -473,6 +470,12 @@ export default {
|
|
},
|
|
},
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ weightchange(e){
|
|
|
|
+ this.deptBudgetList.tranProcessInfoList[0].weight=e
|
|
|
|
+ },
|
|
|
|
+ engflagchange(e){
|
|
|
|
+ this.endflag=e
|
|
|
|
+ },
|
|
// 获取当前年月日
|
|
// 获取当前年月日
|
|
getdate() {
|
|
getdate() {
|
|
var date = new Date()
|
|
var date = new Date()
|
|
@@ -504,6 +507,7 @@ export default {
|
|
},
|
|
},
|
|
loaddata() {
|
|
loaddata() {
|
|
this.deptBudgetList.taskNo = 'YS' + this.getdate() + this.verifyinit()
|
|
this.deptBudgetList.taskNo = 'YS' + this.getdate() + this.verifyinit()
|
|
|
|
+ this.deptBudgetList.tranProcessInfoList[0].processNo=this.deptBudgetList.taskNo+'-1'
|
|
// 货名
|
|
// 货名
|
|
packList({ constId: 'CON2' })
|
|
packList({ constId: 'CON2' })
|
|
.toPromise()
|
|
.toPromise()
|
|
@@ -547,13 +551,15 @@ export default {
|
|
handleClose() {
|
|
handleClose() {
|
|
this.dialogViewSpareMoney = false
|
|
this.dialogViewSpareMoney = false
|
|
},
|
|
},
|
|
- add() {
|
|
|
|
|
|
+ add(index) {
|
|
|
|
+ console.log(index)
|
|
this.deptBudgetList.tranProcessInfoList.push({
|
|
this.deptBudgetList.tranProcessInfoList.push({
|
|
|
|
+ processNo: this.deptBudgetList.taskNo+'-'+(index+2),
|
|
tranType: '汽运',
|
|
tranType: '汽运',
|
|
tranTypeKey: '1',
|
|
tranTypeKey: '1',
|
|
deliveryDateStart: '',
|
|
deliveryDateStart: '',
|
|
deliveryDateEnd: '',
|
|
deliveryDateEnd: '',
|
|
- weight: '13',
|
|
|
|
|
|
+ weight: this.deptBudgetList.tranProcessInfoList[this.deptBudgetList.tranProcessInfoList.length-1].weight,
|
|
selectedOptions: [],
|
|
selectedOptions: [],
|
|
selectedOptions1: [],
|
|
selectedOptions1: [],
|
|
sendPrivate: '',
|
|
sendPrivate: '',
|
|
@@ -649,6 +655,7 @@ export default {
|
|
}
|
|
}
|
|
this.deptBudgetList.compId = sessionStorage.getItem('ws-pf_compId')
|
|
this.deptBudgetList.compId = sessionStorage.getItem('ws-pf_compId')
|
|
this.deptBudgetList.tranType = this.checkList.toString()
|
|
this.deptBudgetList.tranType = this.checkList.toString()
|
|
|
|
+ console.log(this.deptBudgetList)
|
|
addtrantask(this.deptBudgetList)
|
|
addtrantask(this.deptBudgetList)
|
|
.toPromise()
|
|
.toPromise()
|
|
.then((response) => {
|
|
.then((response) => {
|
|
@@ -773,7 +780,9 @@ export default {
|
|
.el-form {
|
|
.el-form {
|
|
margin-top: 50px;
|
|
margin-top: 50px;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+.endflag{
|
|
|
|
+ vertical-align: top;
|
|
|
|
+}
|
|
.el-col {
|
|
.el-col {
|
|
background: #f6f7fc;
|
|
background: #f6f7fc;
|
|
}
|
|
}
|