Browse Source

2026-02-05

优化
master
fengyuan_yang 3 weeks ago
parent
commit
fdec629ab0
  1. 20
      src/views/modules/shopOrder/workOrderAlloc/searchWorkOrderAlloc.vue

20
src/views/modules/shopOrder/workOrderAlloc/searchWorkOrderAlloc.vue

@ -577,10 +577,10 @@ export default {
}, },
// //
executeAlloc() { executeAlloc() {
//
let orderNoList = this.selectedOrders.map(item => item.orderNo);
// orderNosite
let orderList = this.selectedOrders.map(item => ({ orderNo: item.orderNo, site: item.site }));
if (orderNoList.length === 0) {
if (orderList.length === 0) {
// //
this.$confirm('您没有选择工单,是否汇总当前查询条件下的所有工单?', '提示', { this.$confirm('您没有选择工单,是否汇总当前查询条件下的所有工单?', '提示', {
confirmButtonText: '确定汇总所有', confirmButtonText: '确定汇总所有',
@ -593,19 +593,19 @@ export default {
}); });
} else { } else {
// //
this.$confirm(`确定要汇总选中的 ${orderNoList.length} 个工单吗?`, '提示', {
this.$confirm(`确定要汇总选中的 ${orderList.length} 个工单吗?`, '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'info' type: 'info'
}).then(() => { }).then(() => {
this.doExecuteAlloc(false, orderNoList);
this.doExecuteAlloc(false, orderList);
}).catch(() => { }).catch(() => {
// //
}); });
} }
}, },
// //
doExecuteAlloc(allocAll, orderNoList) {
doExecuteAlloc(allocAll, orderList) {
this.allocLoading = true; this.allocLoading = true;
let requestData = { let requestData = {
@ -613,7 +613,7 @@ export default {
...this.searchData, ...this.searchData,
user: this.$store.state.user.name user: this.$store.state.user.name
}, },
orderNoList: orderNoList,
orderList: orderList, // orderNosite
allocAll: allocAll allocAll: allocAll
}; };
@ -640,12 +640,12 @@ export default {
}).then(() => { }).then(() => {
this.syncLoading = true; this.syncLoading = true;
//
let orderNoList = this.selectedOrders.map(item => item.orderNo);
// orderNosite
let orderList = this.selectedOrders.map(item => ({ orderNo: item.orderNo, site: item.site }));
let requestData = { let requestData = {
site: this.searchData.site || '', site: this.searchData.site || '',
orderNoList: orderNoList.length > 0 ? orderNoList : null
orderList: orderList.length > 0 ? orderList : null // orderNosite
}; };
executeWorkOrderSync(requestData).then(({ data }) => { executeWorkOrderSync(requestData).then(({ data }) => {

Loading…
Cancel
Save