|
@@ -90,7 +90,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div v-else-if="scope.column.columnname === 'deliverydays'">
|
|
<div v-else-if="scope.column.columnname === 'deliverydays'">
|
|
|
- <el-input v-model="scope.column.data.deliverydays" type="number" size="mini" :placeholder="$t(`填写回复交期天数`)" @change="setDeliveryDay(scope.column.data.deliverydays,'单',scope.column.data.sa_orderitemsid)"></el-input>
|
|
|
|
|
|
|
+ <el-input v-model="scope.column.data.deliverydays" type="number" size="mini" :placeholder="$t(`填写回复交期天数`)" @change="setDeliveryDay(scope.column.data.deliverydays,'单',scope.column.data.sa_orderitemsid,scope.column.data)"></el-input>
|
|
|
</div>
|
|
</div>
|
|
|
<div v-else-if="scope.column.columnname === 'deliverydate'">
|
|
<div v-else-if="scope.column.columnname === 'deliverydate'">
|
|
|
<div v-if="siteid == 'HY' || siteid == 'YOSTEST1'">
|
|
<div v-if="siteid == 'HY' || siteid == 'YOSTEST1'">
|
|
@@ -368,7 +368,7 @@ export default {
|
|
|
"sys_enterpriseid": this.data.sys_enterpriseid, //企业ID
|
|
"sys_enterpriseid": this.data.sys_enterpriseid, //企业ID
|
|
|
"sa_contractid": this.data.contacts.contactsid, //合同ID
|
|
"sa_contractid": this.data.contacts.contactsid, //合同ID
|
|
|
"type": this.data.type, //订单类型
|
|
"type": this.data.type, //订单类型
|
|
|
- "items": this.tableData
|
|
|
|
|
|
|
+ "items": [this.tableData[val.index]]
|
|
|
})
|
|
})
|
|
|
},1000)
|
|
},1000)
|
|
|
},
|
|
},
|
|
@@ -379,7 +379,7 @@ export default {
|
|
|
"sys_enterpriseid": this.data.sys_enterpriseid, //企业ID
|
|
"sys_enterpriseid": this.data.sys_enterpriseid, //企业ID
|
|
|
"sa_contractid": this.data.contacts.contactsid, //合同ID
|
|
"sa_contractid": this.data.contacts.contactsid, //合同ID
|
|
|
"type": this.data.type, //订单类型
|
|
"type": this.data.type, //订单类型
|
|
|
- "items": this.tableData
|
|
|
|
|
|
|
+ "items": [this.tableData[val.index]]
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
async updateOrder (val,fn) {
|
|
async updateOrder (val,fn) {
|
|
@@ -553,7 +553,7 @@ export default {
|
|
|
})
|
|
})
|
|
|
this.listData(this.param.content.pageNumber = 1)
|
|
this.listData(this.param.content.pageNumber = 1)
|
|
|
},
|
|
},
|
|
|
- async dayChange(date,days,sa_orderitemsid){
|
|
|
|
|
|
|
+ async dayChange(date,days,sa_orderitemsid,val){
|
|
|
this.tableData.forEach(item=>{
|
|
this.tableData.forEach(item=>{
|
|
|
if (item.sa_orderitemsid == sa_orderitemsid){
|
|
if (item.sa_orderitemsid == sa_orderitemsid){
|
|
|
item.deliverydate = date
|
|
item.deliverydate = date
|
|
@@ -566,14 +566,14 @@ export default {
|
|
|
"sys_enterpriseid": this.data.sys_enterpriseid, //企业ID
|
|
"sys_enterpriseid": this.data.sys_enterpriseid, //企业ID
|
|
|
"sa_contractid": this.data.contacts.contactsid, //合同ID
|
|
"sa_contractid": this.data.contacts.contactsid, //合同ID
|
|
|
"type": this.data.type, //订单类型
|
|
"type": this.data.type, //订单类型
|
|
|
- "items": this.tableData
|
|
|
|
|
|
|
+ "items": [this.tableData[val.index]]
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
this.listData(this.param.content.pageNumber = 1)
|
|
this.listData(this.param.content.pageNumber = 1)
|
|
|
},
|
|
},
|
|
|
- setDeliveryDay(days,type,sa_orderitemsid){
|
|
|
|
|
|
|
+ setDeliveryDay(days,type,sa_orderitemsid,val){
|
|
|
if (type == '单'){
|
|
if (type == '单'){
|
|
|
- this.calculateWorkdays(days,false,sa_orderitemsid)
|
|
|
|
|
|
|
+ this.calculateWorkdays(days,false,sa_orderitemsid,val)
|
|
|
}else {
|
|
}else {
|
|
|
this.calculateWorkdays(days,true)
|
|
this.calculateWorkdays(days,true)
|
|
|
}
|
|
}
|
|
@@ -633,7 +633,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
// 计算工作日
|
|
// 计算工作日
|
|
|
- calculateWorkdays(days,isDays,sa_orderitemsid) {
|
|
|
|
|
|
|
+ calculateWorkdays(days,isDays,sa_orderitemsid,val) {
|
|
|
// 更新数据
|
|
// 更新数据
|
|
|
this.startDate = new Date();
|
|
this.startDate = new Date();
|
|
|
this.workdays = days;
|
|
this.workdays = days;
|
|
@@ -656,7 +656,7 @@ export default {
|
|
|
if (isDays){
|
|
if (isDays){
|
|
|
this.daysChange(this.resultDate,days)
|
|
this.daysChange(this.resultDate,days)
|
|
|
}else {
|
|
}else {
|
|
|
- this.dayChange(this.resultDate,days,sa_orderitemsid)
|
|
|
|
|
|
|
+ this.dayChange(this.resultDate,days,sa_orderitemsid,val)
|
|
|
}
|
|
}
|
|
|
console.log(this.resultDate,'得到的最后的结果')
|
|
console.log(this.resultDate,'得到的最后的结果')
|
|
|
},
|
|
},
|