|
|
|
@ -7,8 +7,7 @@ |
|
|
|
type="primary" |
|
|
|
type="primary" |
|
|
|
:disabled="!curRow.waveCode" |
|
|
|
:disabled="!curRow.waveCode" |
|
|
|
@click="distributeWave" |
|
|
|
@click="distributeWave" |
|
|
|
>波次下发</el-button |
|
|
|
>波次下发</el-button> |
|
|
|
> |
|
|
|
|
|
|
|
<!-- <el-button |
|
|
|
<!-- <el-button |
|
|
|
type="primary" |
|
|
|
type="primary" |
|
|
|
:disabled="!curRow.waveCode" |
|
|
|
:disabled="!curRow.waveCode" |
|
|
|
@ -19,12 +18,17 @@ |
|
|
|
type="primary" |
|
|
|
type="primary" |
|
|
|
:disabled="!curRow.waveCode" |
|
|
|
:disabled="!curRow.waveCode" |
|
|
|
@click="cancleWave" |
|
|
|
@click="cancleWave" |
|
|
|
>取消波次</el-button |
|
|
|
>取消波次</el-button> |
|
|
|
> |
|
|
|
<el-button |
|
|
|
<el-button type="primary" @click="queryTable">刷新</el-button> |
|
|
|
type="primary" |
|
|
|
|
|
|
|
@click="queryTable" |
|
|
|
|
|
|
|
>刷新</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="layout-full" style="margin-bottom: 45px"> |
|
|
|
<div |
|
|
|
|
|
|
|
class="layout-full" |
|
|
|
|
|
|
|
style="margin-bottom: 45px" |
|
|
|
|
|
|
|
> |
|
|
|
<heavy-table |
|
|
|
<heavy-table |
|
|
|
:data="tableData" |
|
|
|
:data="tableData" |
|
|
|
:loading="loading" |
|
|
|
:loading="loading" |
|
|
|
@ -58,23 +62,13 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<script> |
|
|
|
<script> |
|
|
|
import { |
|
|
|
import { waveOrderList, waveDistribution, waveCancel, waveDeleteOrder } from '@/api/exWarehouse/dispatchDistribute' |
|
|
|
waveOrderList, |
|
|
|
import orderPoolReplenishment from './components/orderPoolReplenishment' |
|
|
|
waveDistribution, |
|
|
|
|
|
|
|
waveCancel, |
|
|
|
|
|
|
|
waveDeleteOrder, |
|
|
|
|
|
|
|
} from "@/api/exWarehouse/dispatchDistribute"; |
|
|
|
|
|
|
|
import orderPoolReplenishment from "./components/orderPoolReplenishment"; |
|
|
|
|
|
|
|
export default { |
|
|
|
export default { |
|
|
|
components: { orderPoolReplenishment }, |
|
|
|
components: { orderPoolReplenishment }, |
|
|
|
dicts: [ |
|
|
|
dicts: ['out_order_status', 'line_name_type', 'deliver_mode_dict', 'order_type_dict'], |
|
|
|
"out_order_status", |
|
|
|
|
|
|
|
"line_name_type", |
|
|
|
|
|
|
|
"deliver_mode_dict", |
|
|
|
|
|
|
|
"order_type_dict", |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
data() { |
|
|
|
data() { |
|
|
|
const _that = this; |
|
|
|
const _that = this |
|
|
|
return { |
|
|
|
return { |
|
|
|
handleSelect: [], |
|
|
|
handleSelect: [], |
|
|
|
handleSelectId: [], |
|
|
|
handleSelectId: [], |
|
|
|
@ -83,295 +77,291 @@ export default { |
|
|
|
paging: { |
|
|
|
paging: { |
|
|
|
page: 1, // 当前页 |
|
|
|
page: 1, // 当前页 |
|
|
|
size: 10, // 页面大小 |
|
|
|
size: 10, // 页面大小 |
|
|
|
total: 0, |
|
|
|
total: 0 |
|
|
|
}, |
|
|
|
}, |
|
|
|
tableConfig: [ |
|
|
|
tableConfig: [ |
|
|
|
// { label: "复选框", type: "selection", prop: "selection", istrue: true }, |
|
|
|
// { label: "复选框", type: "selection", prop: "selection", istrue: true }, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "", |
|
|
|
label: '', |
|
|
|
prop: "radio", |
|
|
|
prop: 'radio', |
|
|
|
type: "radio", |
|
|
|
type: 'radio', |
|
|
|
event: this.handleCommand, |
|
|
|
event: this.handleCommand, |
|
|
|
istrue: true, |
|
|
|
istrue: true |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "序号", |
|
|
|
label: '序号', |
|
|
|
type: "index", |
|
|
|
type: 'index', |
|
|
|
prop: "index", |
|
|
|
prop: 'index', |
|
|
|
istrue: true, |
|
|
|
istrue: true |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "波次号", |
|
|
|
label: '波次号', |
|
|
|
prop: "waveCode", |
|
|
|
prop: 'waveCode', |
|
|
|
istrue: true, |
|
|
|
istrue: true |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "订单数", |
|
|
|
label: '订单数', |
|
|
|
prop: "orderNumber", |
|
|
|
prop: 'orderNumber', |
|
|
|
istrue: true, |
|
|
|
istrue: true |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "品规数", |
|
|
|
label: '品规数', |
|
|
|
prop: "goodsNumber", |
|
|
|
prop: 'goodsNumber', |
|
|
|
istrue: true, |
|
|
|
istrue: true |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "件数", |
|
|
|
label: '件数', |
|
|
|
prop: "caseNumber", |
|
|
|
prop: 'caseNumber', |
|
|
|
istrue: true, |
|
|
|
istrue: true |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "折合件数", |
|
|
|
label: '折合件数', |
|
|
|
prop: "combineNumber", |
|
|
|
prop: 'combineNumber', |
|
|
|
istrue: true, |
|
|
|
istrue: true |
|
|
|
}, |
|
|
|
} |
|
|
|
], |
|
|
|
], |
|
|
|
tableData2: [], |
|
|
|
tableData2: [], |
|
|
|
loading2: false, |
|
|
|
loading2: false, |
|
|
|
paging2: { |
|
|
|
paging2: { |
|
|
|
page: 1, // 当前页 |
|
|
|
page: 1, // 当前页 |
|
|
|
size: 10, // 页面大小 |
|
|
|
size: 10, // 页面大小 |
|
|
|
total: 0, |
|
|
|
total: 0 |
|
|
|
}, |
|
|
|
}, |
|
|
|
tableConfig2: [ |
|
|
|
tableConfig2: [ |
|
|
|
// 表头数据 |
|
|
|
// 表头数据 |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "序号", |
|
|
|
label: '序号', |
|
|
|
prop: "index", |
|
|
|
prop: 'index', |
|
|
|
type: "index", |
|
|
|
type: 'index', |
|
|
|
istrue: true, |
|
|
|
istrue: true |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "业主编号", |
|
|
|
label: '业主编号', |
|
|
|
prop: "consignorCode", |
|
|
|
prop: 'consignorCode', |
|
|
|
istrue: true, |
|
|
|
istrue: true |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "业主名称", |
|
|
|
label: '业主名称', |
|
|
|
prop: "consignorName", |
|
|
|
prop: 'consignorName', |
|
|
|
istrue: true, |
|
|
|
istrue: true |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "单位编号", |
|
|
|
label: '单位编号', |
|
|
|
prop: "companyNo", |
|
|
|
prop: 'companyNo', |
|
|
|
istrue: true, |
|
|
|
istrue: true |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "单位名称", |
|
|
|
label: '单位名称', |
|
|
|
prop: "companyName", |
|
|
|
prop: 'companyName', |
|
|
|
istrue: true, |
|
|
|
istrue: true |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "单据编号", |
|
|
|
label: '单据编号', |
|
|
|
prop: "orderNo", |
|
|
|
prop: 'orderNo', |
|
|
|
istrue: true, |
|
|
|
istrue: true |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "下单时间", |
|
|
|
label: '下单时间', |
|
|
|
prop: "orderDate", |
|
|
|
prop: 'orderDate', |
|
|
|
istrue: true, |
|
|
|
istrue: true |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "整件数", |
|
|
|
label: '整件数', |
|
|
|
prop: "totalCaseQry", |
|
|
|
prop: 'totalCaseQry', |
|
|
|
istrue: true, |
|
|
|
istrue: true |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "折合件数", |
|
|
|
label: '折合件数', |
|
|
|
prop: "combineNumber", |
|
|
|
prop: 'combineNumber', |
|
|
|
istrue: true, |
|
|
|
istrue: true |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "品规数", |
|
|
|
label: '品规数', |
|
|
|
prop: "goodsNumber", |
|
|
|
prop: 'goodsNumber', |
|
|
|
istrue: true, |
|
|
|
istrue: true |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// { |
|
|
|
|
|
|
|
// label: "出库优先级", |
|
|
|
|
|
|
|
// prop: "priority", |
|
|
|
|
|
|
|
// istrue: true, |
|
|
|
|
|
|
|
// }, |
|
|
|
|
|
|
|
// { |
|
|
|
|
|
|
|
// label: "客户备注", |
|
|
|
|
|
|
|
// prop: "companyRemark", |
|
|
|
|
|
|
|
// istrue: true, |
|
|
|
|
|
|
|
// }, |
|
|
|
|
|
|
|
// { |
|
|
|
|
|
|
|
// label: "开票员", |
|
|
|
|
|
|
|
// prop: "userSalesman", |
|
|
|
|
|
|
|
// istrue: true, |
|
|
|
|
|
|
|
// }, |
|
|
|
|
|
|
|
// { |
|
|
|
|
|
|
|
// label: "路线名称", |
|
|
|
|
|
|
|
// prop: "lineno", |
|
|
|
|
|
|
|
// istrue: true, |
|
|
|
|
|
|
|
// filter(row, value) { |
|
|
|
|
|
|
|
// return _that.getDictLabel(value, _that.dict.type.line_name_type); |
|
|
|
|
|
|
|
// }, |
|
|
|
|
|
|
|
// }, |
|
|
|
|
|
|
|
// { |
|
|
|
|
|
|
|
// label: "提货方式", |
|
|
|
|
|
|
|
// prop: "deliverMode", |
|
|
|
|
|
|
|
// istrue: true, |
|
|
|
|
|
|
|
// filter(row, value) { |
|
|
|
|
|
|
|
// return _that.getDictLabel(value, _that.dict.type.deliver_mode_dict); |
|
|
|
|
|
|
|
// }, |
|
|
|
|
|
|
|
// }, |
|
|
|
|
|
|
|
// { |
|
|
|
|
|
|
|
// label: "订单类型", |
|
|
|
|
|
|
|
// prop: "orderType", |
|
|
|
|
|
|
|
// istrue: true, |
|
|
|
|
|
|
|
// filter(row, value) { |
|
|
|
|
|
|
|
// return _that.getDictLabel(value, _that.dict.type.order_type_dict); |
|
|
|
|
|
|
|
// }, |
|
|
|
|
|
|
|
// }, |
|
|
|
|
|
|
|
// { |
|
|
|
|
|
|
|
// label: "部门名称", |
|
|
|
|
|
|
|
// prop: "deptName", |
|
|
|
|
|
|
|
// istrue: true, |
|
|
|
|
|
|
|
// }, |
|
|
|
|
|
|
|
// { |
|
|
|
|
|
|
|
// label: "订单状态", |
|
|
|
|
|
|
|
// prop: "orderStatus", |
|
|
|
|
|
|
|
// istrue: true, |
|
|
|
|
|
|
|
// filter(row, value) { |
|
|
|
|
|
|
|
// return _that.getDictLabel(value, _that.dict.type.out_order_status); |
|
|
|
|
|
|
|
// }, |
|
|
|
|
|
|
|
// }, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "出库优先级", |
|
|
|
label: '波次号', |
|
|
|
prop: "priority", |
|
|
|
prop: 'waveCode', |
|
|
|
istrue: true, |
|
|
|
istrue: true |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
label: "客户备注", |
|
|
|
|
|
|
|
prop: "companyRemark", |
|
|
|
|
|
|
|
istrue: true, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
label: "开票员", |
|
|
|
|
|
|
|
prop: "userSalesman", |
|
|
|
|
|
|
|
istrue: true, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
label: "路线名称", |
|
|
|
|
|
|
|
prop: "lineno", |
|
|
|
|
|
|
|
istrue: true, |
|
|
|
|
|
|
|
filter(row, value) { |
|
|
|
|
|
|
|
return _that.getDictLabel(value, _that.dict.type.line_name_type); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
label: "提货方式", |
|
|
|
|
|
|
|
prop: "deliverMode", |
|
|
|
|
|
|
|
istrue: true, |
|
|
|
|
|
|
|
filter(row, value) { |
|
|
|
|
|
|
|
return _that.getDictLabel(value, _that.dict.type.deliver_mode_dict); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
label: "订单类型", |
|
|
|
|
|
|
|
prop: "orderType", |
|
|
|
|
|
|
|
istrue: true, |
|
|
|
|
|
|
|
filter(row, value) { |
|
|
|
|
|
|
|
return _that.getDictLabel(value, _that.dict.type.order_type_dict); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
label: "部门名称", |
|
|
|
|
|
|
|
prop: "deptName", |
|
|
|
|
|
|
|
istrue: true, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
label: "订单状态", |
|
|
|
|
|
|
|
prop: "orderStatus", |
|
|
|
|
|
|
|
istrue: true, |
|
|
|
|
|
|
|
filter(row, value) { |
|
|
|
|
|
|
|
return _that.getDictLabel(value, _that.dict.type.out_order_status); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
label: "波次号", |
|
|
|
|
|
|
|
prop: "waveCode", |
|
|
|
|
|
|
|
istrue: true, |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "操作", |
|
|
|
label: '操作', |
|
|
|
prop: "operating", |
|
|
|
prop: 'operating', |
|
|
|
istrue: true, |
|
|
|
istrue: true, |
|
|
|
type: "button", |
|
|
|
type: 'button', |
|
|
|
width: 90, |
|
|
|
width: 90, |
|
|
|
fixed: "right", |
|
|
|
fixed: 'right', |
|
|
|
buttons: [ |
|
|
|
buttons: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
name: "剔除订单", |
|
|
|
name: '剔除订单', |
|
|
|
event: "doDel", |
|
|
|
event: 'doDel' |
|
|
|
}, |
|
|
|
} |
|
|
|
], |
|
|
|
] |
|
|
|
}, |
|
|
|
} |
|
|
|
], |
|
|
|
], |
|
|
|
tableProps: { |
|
|
|
tableProps: { |
|
|
|
"max-height": 240, |
|
|
|
'max-height': 240 |
|
|
|
}, |
|
|
|
}, |
|
|
|
curRow: {}, // 单选当前行 |
|
|
|
curRow: {} // 单选当前行 |
|
|
|
}; |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
async created() { |
|
|
|
async created() { |
|
|
|
await this.getTableHeaderCom("busin_out_wave", { |
|
|
|
await this.getTableHeaderCom('busin_out_wave', { |
|
|
|
config: this.tableConfig, |
|
|
|
config: this.tableConfig |
|
|
|
}); |
|
|
|
}) |
|
|
|
await this.getTableHeaderCom("busin_out_wave_order_s", { |
|
|
|
await this.getTableHeaderCom('busin_out_wave_order_s', { |
|
|
|
config: this.tableConfig2, |
|
|
|
config: this.tableConfig2 |
|
|
|
}); |
|
|
|
}) |
|
|
|
this.queryTable(); |
|
|
|
this.queryTable() |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
toReplenishment() { |
|
|
|
toReplenishment() { |
|
|
|
this.$refs.orderPoolReplenishment.dialogVisible = true; |
|
|
|
this.$refs.orderPoolReplenishment.dialogVisible = true |
|
|
|
}, |
|
|
|
}, |
|
|
|
handleCommand(data, row, prop) { |
|
|
|
handleCommand(data, row, prop) { |
|
|
|
this.curRow = row; |
|
|
|
this.curRow = row |
|
|
|
}, |
|
|
|
}, |
|
|
|
queryTable() { |
|
|
|
queryTable() { |
|
|
|
console.log(this.tableConfig, "tableConfig"); |
|
|
|
console.log(this.tableConfig, 'tableConfig') |
|
|
|
this.loading = true; |
|
|
|
this.loading = true |
|
|
|
let request = { |
|
|
|
let request = { |
|
|
|
// pageSize: this.paging.size, |
|
|
|
// pageSize: this.paging.size, |
|
|
|
// pageNum: this.paging.page, |
|
|
|
// pageNum: this.paging.page, |
|
|
|
}; |
|
|
|
} |
|
|
|
waveOrderList(request) |
|
|
|
waveOrderList(request) |
|
|
|
.then((res) => { |
|
|
|
.then((res) => { |
|
|
|
if (res.code === 200) { |
|
|
|
if (res.code === 200) { |
|
|
|
res.data.forEach((element) => { |
|
|
|
res.data.forEach((element) => { |
|
|
|
element.businOutOrderSVos.forEach((ele) => { |
|
|
|
element.businOutOrderSVos.forEach((ele) => { |
|
|
|
ele.waveCode = element.waveCode; |
|
|
|
ele.waveCode = element.waveCode |
|
|
|
}); |
|
|
|
}) |
|
|
|
}); |
|
|
|
}) |
|
|
|
this.tableData = res.data; |
|
|
|
this.tableData = res.data |
|
|
|
this.tableData2 = []; |
|
|
|
this.tableData2 = [] |
|
|
|
// this.paging.total = res.total; |
|
|
|
// this.paging.total = res.total; |
|
|
|
} |
|
|
|
} |
|
|
|
this.loading = false; |
|
|
|
this.loading = false |
|
|
|
}) |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
.catch(() => { |
|
|
|
this.loading = false; |
|
|
|
this.loading = false |
|
|
|
}); |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
queryTable2() {}, |
|
|
|
queryTable2() {}, |
|
|
|
rowClick(row) { |
|
|
|
rowClick(row) { |
|
|
|
this.tableData2 = row.businOutOrderSVos; |
|
|
|
this.tableData2 = row.businOutOrderSVos |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 波次下发 |
|
|
|
// 波次下发 |
|
|
|
distributeWave() { |
|
|
|
distributeWave() { |
|
|
|
this.$confirm("确认选中数据进行波次下发?", "提示", { |
|
|
|
this.$confirm('确认选中数据进行波次下发?', '提示', { |
|
|
|
confirmButtonText: "确定", |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: "取消", |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: "warning", |
|
|
|
type: 'warning' |
|
|
|
}).then(() => { |
|
|
|
}).then(() => { |
|
|
|
// let arrStr = this.handleSelect.map((ele) => ele.waveCode).join(","); |
|
|
|
// let arrStr = this.handleSelect.map((ele) => ele.waveCode).join(","); |
|
|
|
|
|
|
|
|
|
|
|
waveDistribution(this.curRow.waveCode).then((res) => { |
|
|
|
waveDistribution(this.curRow.waveCode).then((res) => { |
|
|
|
if (res.code == 200) { |
|
|
|
if (res.code == 200) { |
|
|
|
this.$message.success("波次下发成功"); |
|
|
|
this.$message.success('波次下发成功') |
|
|
|
this.queryTable(); |
|
|
|
this.queryTable() |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}) |
|
|
|
}); |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 波次取消 |
|
|
|
// 波次取消 |
|
|
|
cancleWave() { |
|
|
|
cancleWave() { |
|
|
|
this.$confirm("确认选中数据进行波次取消?", "提示", { |
|
|
|
this.$confirm('确认选中数据进行波次取消?', '提示', { |
|
|
|
confirmButtonText: "确定", |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: "取消", |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: "warning", |
|
|
|
type: 'warning' |
|
|
|
}).then(() => { |
|
|
|
}).then(() => { |
|
|
|
// let arrStr = this.handleSelect.map((ele) => ele.waveCode).join(","); |
|
|
|
// let arrStr = this.handleSelect.map((ele) => ele.waveCode).join(","); |
|
|
|
|
|
|
|
|
|
|
|
waveCancel(this.curRow.waveCode).then((res) => { |
|
|
|
waveCancel(this.curRow.waveCode).then((res) => { |
|
|
|
if (res.code == 200) { |
|
|
|
if (res.code == 200) { |
|
|
|
this.$message.success("波次取消成功"); |
|
|
|
this.$message.success('波次取消成功') |
|
|
|
this.queryTable(); |
|
|
|
this.queryTable() |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}) |
|
|
|
}); |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
handleselection(data) { |
|
|
|
handleselection(data) { |
|
|
|
this.handleSelect = data; |
|
|
|
this.handleSelect = data |
|
|
|
this.handleSelectId = data.map((ele) => ele.id); |
|
|
|
this.handleSelectId = data.map((ele) => ele.id) |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 剔除订单 |
|
|
|
// 剔除订单 |
|
|
|
doDel(row) { |
|
|
|
doDel(row) { |
|
|
|
this.$confirm( |
|
|
|
this.$confirm('确认要将订单从波次中剔除吗?提出后订单将还原回初始状态,可重新生成波次!', '剔除确认', { |
|
|
|
"确认要将订单从波次中剔除吗?提出后订单将还原回初始状态,可重新生成波次!", |
|
|
|
confirmButtonText: '确定', |
|
|
|
"剔除确认", |
|
|
|
cancelButtonText: '取消', |
|
|
|
{ |
|
|
|
type: 'warning' |
|
|
|
confirmButtonText: "确定", |
|
|
|
}).then(() => { |
|
|
|
cancelButtonText: "取消", |
|
|
|
|
|
|
|
type: "warning", |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
).then(() => { |
|
|
|
|
|
|
|
let obj = { |
|
|
|
let obj = { |
|
|
|
waveCode: row.waveCode, |
|
|
|
waveCode: row.waveCode, |
|
|
|
orderNo: row.orderNo, |
|
|
|
orderNo: row.orderNo |
|
|
|
}; |
|
|
|
} |
|
|
|
waveDeleteOrder(obj).then((res) => { |
|
|
|
waveDeleteOrder(obj).then((res) => { |
|
|
|
if (res.code == 200) { |
|
|
|
if (res.code == 200) { |
|
|
|
this.$message.success("剔除成功"); |
|
|
|
this.$message.success('剔除成功') |
|
|
|
this.queryTable(); |
|
|
|
this.queryTable() |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}) |
|
|
|
}); |
|
|
|
}) |
|
|
|
}, |
|
|
|
} |
|
|
|
}, |
|
|
|
} |
|
|
|
}; |
|
|
|
} |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
<style rel="stylesheet/scss" lang="scss" scoped></style> |
|
|
|
<style rel="stylesheet/scss" lang="scss" scoped></style> |
|
|
|
|