|
|
|
@ -231,6 +231,11 @@
|
|
|
|
|
width="90%" |
|
|
|
|
:model="addvalue" |
|
|
|
|
> |
|
|
|
|
<el-button |
|
|
|
|
type="primary" |
|
|
|
|
@click="Batchmodifycustomers" |
|
|
|
|
>批量修改客户 |
|
|
|
|
</el-button> |
|
|
|
|
<tablecmt |
|
|
|
|
ref="orderTableNode" |
|
|
|
|
:columnList="stockArtcolumnList" |
|
|
|
@ -483,6 +488,7 @@ import {
|
|
|
|
|
selectUpdateAvailableStockArticle, |
|
|
|
|
getZeroOrderDetail, |
|
|
|
|
updateClient, |
|
|
|
|
$_updateBatchClient, |
|
|
|
|
} from '@/api/distribution/distributionStockArticle'; |
|
|
|
|
import { getDetailDelivery } from '@/api/distribution/distributionDelivery'; |
|
|
|
|
import { getInventoryList, selectInventoryDetail } from '@/api/distribution/distributionStockList'; |
|
|
|
@ -2145,6 +2151,31 @@ export default {
|
|
|
|
|
this.loading = false; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
// 批量修改客户 |
|
|
|
|
Batchmodifycustomers(){ |
|
|
|
|
if(!this.orderList.length){ |
|
|
|
|
ElMessage({ |
|
|
|
|
message: '请勾选要批量修改的数据', |
|
|
|
|
type: 'warning', |
|
|
|
|
}) |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
let State= this.orderList.every(item=>item.mallName==this.orderList[0].mallName) |
|
|
|
|
|
|
|
|
|
if(!State){ |
|
|
|
|
ElMessage({ |
|
|
|
|
message: '请勾选商场名称一样的单子', |
|
|
|
|
type: 'warning', |
|
|
|
|
}) |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// this.orderList |
|
|
|
|
this.clientData={} |
|
|
|
|
this.clientData.mallName= this.orderList[0].mallName |
|
|
|
|
this.dialogVisible=true |
|
|
|
|
}, |
|
|
|
|
handleCheckedCitiesChange(value) { |
|
|
|
|
if (value) { |
|
|
|
|
this.form.addvalueType = value; |
|
|
|
@ -2258,12 +2289,50 @@ export default {
|
|
|
|
|
this.isrReservationEntry = false; |
|
|
|
|
}, |
|
|
|
|
submitClient() { |
|
|
|
|
if(this.orderList.length){ |
|
|
|
|
let data={ |
|
|
|
|
entityList:[] |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.orderList.forEach(item=>{ |
|
|
|
|
item.customerName = this.clientData.customerName;//用户名称 |
|
|
|
|
item.customerTelephone=this.clientData.customerTelephone;//用户电话 |
|
|
|
|
item.customerAddress=this.clientData.customerAddress;//用户地址 |
|
|
|
|
data['entityList'].push(item) |
|
|
|
|
}) |
|
|
|
|
this.loading=true |
|
|
|
|
this.dialogVisible = false;//关闭修改谈弹窗 |
|
|
|
|
$_updateBatchClient(data).then(res=>{ |
|
|
|
|
console.log(res,'修改成功'); |
|
|
|
|
if(res.data.code == 200){ |
|
|
|
|
ElMessage({ |
|
|
|
|
message: res.data.msg, |
|
|
|
|
type: 'success', |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
this.onLoadOrder(this.page); |
|
|
|
|
this.orderList=[] |
|
|
|
|
} |
|
|
|
|
}).catch(()=>{ |
|
|
|
|
this.loading=false |
|
|
|
|
}).finally(()=>{ |
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
}else{ |
|
|
|
|
this.loading=true |
|
|
|
|
this.dialogVisible = false;//关闭修改弹出 |
|
|
|
|
console.log('this.client===============>', this.clientData); |
|
|
|
|
updateClient(this.clientData).then(res => { |
|
|
|
|
console.log('res>>>>>>>>>>>', res.data.data); |
|
|
|
|
this.onLoadOrder(this.page); |
|
|
|
|
this.dialogVisible = false; |
|
|
|
|
}).catch(()=>{ |
|
|
|
|
this.loading=false |
|
|
|
|
}).finally(()=>{ |
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
// 选择包件信息 |
|
|
|
|