|
@@ -209,21 +209,28 @@ export default {
|
|
|
val.qty = val.undeliqty
|
|
|
}
|
|
|
console.log(val,index)
|
|
|
+
|
|
|
// this.$nextTick(()=>{
|
|
|
// this.$set(this.tableData,index,val)
|
|
|
// })
|
|
|
// // 防抖
|
|
|
- that.updateOrder({
|
|
|
- "sa_dispatchid": this.$route.query.id, //订单ID
|
|
|
- "iteminfos": [{
|
|
|
- "sa_dispatch_itemsid": val.sa_dispatch_itemsid,//0表示新增
|
|
|
- "qty": val.qty, //数量
|
|
|
- "remarks":val.remarks,
|
|
|
- "batchno":val.batchno
|
|
|
- }]
|
|
|
- },()=>{
|
|
|
- this.listData()
|
|
|
- })
|
|
|
+ if(this.time !== null){
|
|
|
+ clearTimeout(this.time);
|
|
|
+ }
|
|
|
+ this.time = setTimeout(() => {
|
|
|
+ that.updateOrder({
|
|
|
+ "sa_dispatchid": this.$route.query.id, //订单ID
|
|
|
+ "iteminfos": [{
|
|
|
+ "sa_dispatch_itemsid": val.sa_dispatch_itemsid,//0表示新增
|
|
|
+ "qty": val.qty, //数量
|
|
|
+ "remarks":val.remarks,
|
|
|
+ "batchno":val.batchno
|
|
|
+ }]
|
|
|
+ },()=>{
|
|
|
+ this.listData()
|
|
|
+ })
|
|
|
+ },1000)
|
|
|
+
|
|
|
},
|
|
|
async updateOrder (val,fn) {
|
|
|
const res = await this.$api.requested({
|