|
|
|
@ -398,7 +398,8 @@
|
|
|
|
|
</avue-form> |
|
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
<MyPrint v-model="popUpShow.printVisited" :html="html" :title="'配送单'"> </MyPrint> |
|
|
|
|
<MyPrint v-model="popUpShow.printVisited" :html="html" type="titlePrint" :title="'配送单'"> |
|
|
|
|
</MyPrint> |
|
|
|
|
</div> |
|
|
|
|
</basic-container> |
|
|
|
|
<edittablehead |
|
|
|
@ -422,7 +423,7 @@ import {
|
|
|
|
|
getCollectt, |
|
|
|
|
} from '@/api/distribution/distributionStockArticle'; |
|
|
|
|
import { getListOwn } from '@/api/distribution/distributionParcelList'; |
|
|
|
|
import { addCallDelivery ,$_updateBatchClient} from '@/api/distribution/distrilbutionCallDelivery'; |
|
|
|
|
import { addCallDelivery, $_updateBatchClient } from '@/api/distribution/distrilbutionCallDelivery'; |
|
|
|
|
import { addClient } from '@/api/distribution/distributionClientMessage'; |
|
|
|
|
import { addService } from '@/api/distribution/distributionServiceLog'; |
|
|
|
|
import option from '@/option/distribution/distributionStockArticle'; |
|
|
|
@ -435,7 +436,7 @@ import { getToken } from '@/utils/auth';
|
|
|
|
|
import { downloadXls, getObjType, handleClearTableQuery } from '@/utils/util'; |
|
|
|
|
import { columnList } from '@/option/distribution/distributionStockArticleSelf'; |
|
|
|
|
import { deepClone, setNodeHeight, hanleTextLineFeed } from '@/utils/util.js'; |
|
|
|
|
import { ElMessage, ElMessageBox } from 'element-plus' |
|
|
|
|
import { ElMessage, ElMessageBox } from 'element-plus'; |
|
|
|
|
const _newCol = deepClone(columnList); |
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
@ -834,51 +835,51 @@ export default {
|
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
// 修改收货单位 |
|
|
|
|
Modifyreceivingunit(){ |
|
|
|
|
// 修改收货单位 |
|
|
|
|
Modifyreceivingunit() { |
|
|
|
|
if (!this.selectionList.length) { |
|
|
|
|
this.$message.warning('请勾选要修改的数据'); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
ElMessageBox.prompt('请输入要修改的收货单位', '修改收货单位', { |
|
|
|
|
confirmButtonText: '确定', |
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
inputPattern: /^\S+$/, |
|
|
|
|
inputErrorMessage: '收货单位不能为空', |
|
|
|
|
}) |
|
|
|
|
.then( ({ value }) => { |
|
|
|
|
console.log(value,'填写的参数'); |
|
|
|
|
let data={ |
|
|
|
|
entityList:[] |
|
|
|
|
} |
|
|
|
|
console.log(this.selectionList,'this.selectionList'); |
|
|
|
|
// this.selectionList.forEach(item,index=>{ |
|
|
|
|
// console.log(item,'item'); |
|
|
|
|
// data['entityList'].push({ |
|
|
|
|
// id:item.id, |
|
|
|
|
// consigneeUnit:value, |
|
|
|
|
// mallName:value, |
|
|
|
|
// }) |
|
|
|
|
// }) |
|
|
|
|
data['entityList']= this.selectionList.map(item=>{ |
|
|
|
|
return{ |
|
|
|
|
id:item.id, |
|
|
|
|
consigneeUnit:value, |
|
|
|
|
mallName:value, |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
$_updateBatchClient(data).then(res=>{ |
|
|
|
|
console.log(res,'修改成功'); |
|
|
|
|
if(res.data.code ==200){ |
|
|
|
|
ElMessage({ |
|
|
|
|
message: res.data.msg, |
|
|
|
|
type: 'success', |
|
|
|
|
}) |
|
|
|
|
this.onLoad(this.page); |
|
|
|
|
} |
|
|
|
|
ElMessageBox.prompt('请输入要修改的收货单位', '修改收货单位', { |
|
|
|
|
confirmButtonText: '确定', |
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
inputPattern: /^\S+$/, |
|
|
|
|
inputErrorMessage: '收货单位不能为空', |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
.catch(() => {}) |
|
|
|
|
.then(({ value }) => { |
|
|
|
|
console.log(value, '填写的参数'); |
|
|
|
|
let data = { |
|
|
|
|
entityList: [], |
|
|
|
|
}; |
|
|
|
|
console.log(this.selectionList, 'this.selectionList'); |
|
|
|
|
// this.selectionList.forEach(item,index=>{ |
|
|
|
|
// console.log(item,'item'); |
|
|
|
|
// data['entityList'].push({ |
|
|
|
|
// id:item.id, |
|
|
|
|
// consigneeUnit:value, |
|
|
|
|
// mallName:value, |
|
|
|
|
// }) |
|
|
|
|
// }) |
|
|
|
|
data['entityList'] = this.selectionList.map(item => { |
|
|
|
|
return { |
|
|
|
|
id: item.id, |
|
|
|
|
consigneeUnit: value, |
|
|
|
|
mallName: value, |
|
|
|
|
}; |
|
|
|
|
}); |
|
|
|
|
$_updateBatchClient(data).then(res => { |
|
|
|
|
console.log(res, '修改成功'); |
|
|
|
|
if (res.data.code == 200) { |
|
|
|
|
ElMessage({ |
|
|
|
|
message: res.data.msg, |
|
|
|
|
type: 'success', |
|
|
|
|
}); |
|
|
|
|
this.onLoad(this.page); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}) |
|
|
|
|
.catch(() => {}); |
|
|
|
|
}, |
|
|
|
|
//确定通知提货按钮 |
|
|
|
|
callFordelivery(inde) { |
|
|
|
|