Browse Source

修正商场预约

pre-production
pref_mail@163.com 1 year ago
parent
commit
13252ac168
  1. 16
      src/views/mail/order/add.vue
  2. 26
      src/views/mail/order/list.vue

16
src/views/mail/order/add.vue

@ -1,6 +1,6 @@
<template> <template>
<basic-container> <basic-container>
<div class="avue-crud"> <div class="avue-crud" v-loading="subloading" element-loading-text="正在拼命加载中">
<el-form <el-form
ref="form" ref="form"
:model="form" :model="form"
@ -124,7 +124,7 @@
</el-row> </el-row>
</el-form> </el-form>
<el-tabs type="border-card" @tab-click="handleClick"> <el-tabs type="border-card" @tab-click="handleClick" >
<el-tab-pane label="订单"> <el-tab-pane label="订单">
<el-button class="el-btn-xz" type="primary" link @click="handleAddOrder"> </el-button> <el-button class="el-btn-xz" type="primary" link @click="handleAddOrder"> </el-button>
<tablecmt <tablecmt
@ -235,6 +235,7 @@
</el-tabs> </el-tabs>
<el-form-item style="margin-left: 45%; margin-top: 5px"> <el-form-item style="margin-left: 45%; margin-top: 5px">
<el-button type="primary" icon="el-icon-circle-close" @click="onSubmit" <el-button type="primary" icon="el-icon-circle-close" @click="onSubmit"
:disabled="subloading"
>提交(配送订单预约) >提交(配送订单预约)
</el-button> </el-button>
<el-button icon="el-icon-circle-close" @click="$router.go(-1)"> </el-button> <el-button icon="el-icon-circle-close" @click="$router.go(-1)"> </el-button>
@ -635,6 +636,7 @@
export default { export default {
data() { data() {
return { return {
subloading:false,//
columnList: [ columnList: [
{ {
prop: 'waybillNumber', prop: 'waybillNumber',
@ -2268,7 +2270,6 @@
this.obj = row; this.obj = row;
let page = this.page; let page = this.page;
this.toggleAllSelection; this.toggleAllSelection;
console.log('row>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>', row);
if (this.reservationId) { if (this.reservationId) {
const res = await getReservationPackageListByOrderId( const res = await getReservationPackageListByOrderId(
this.reservationId, this.reservationId,
@ -2276,7 +2277,6 @@
page.currentPage, page.currentPage,
page.pageSize page.pageSize
); );
console.log('->>>>>>>>>>>>>>>>>>查看包件', res);
if (res.data.data) { if (res.data.data) {
this.packageData = res.data.data.data.packageList; this.packageData = res.data.data.data.packageList;
let idList = res.data.data.data.reservationPackageList.map(v => { let idList = res.data.data.data.reservationPackageList.map(v => {
@ -2287,7 +2287,8 @@
this.isaddvalue = true; this.isaddvalue = true;
this.loading = false; this.loading = false;
} else { } else {
getPackageListByStockArticleId(page.currentPage, page.pageSize, row.id).then(res => { console.log(">>>>> id ,",row.id);
getPackageListByStockArticleId(page.currentPage, page.pageSize, {id:row.id}).then(res => {
console.log('res---------------->', res); console.log('res---------------->', res);
// console.log(res.data.data.records); // console.log(res.data.data.records);
if (res.data.data) { if (res.data.data) {
@ -2412,6 +2413,7 @@
this.isaddvalue = false; this.isaddvalue = false;
}, },
onSubmit() { onSubmit() {
// //
if (!this.form.reservationDate) { if (!this.form.reservationDate) {
this.$message({ this.$message({
@ -2440,6 +2442,7 @@
inventoryIds.push(item.id); inventoryIds.push(item.id);
inventoryList.push(item); inventoryList.push(item);
}); });
orderIds.join(','); orderIds.join(',');
inventoryIds.join(','); inventoryIds.join(',');
this.form.stockArticleIds = orderIds.toString(); this.form.stockArticleIds = orderIds.toString();
@ -2490,6 +2493,7 @@
operation = false; operation = false;
return; return;
} }
this.subloading=true;//
// this.form.stockArticleList = this.packageList; // this.form.stockArticleList = this.packageList;
console.log('>>>>>>>>', this.form); console.log('>>>>>>>>', this.form);
console.log("this.reservationId >>>>>",this.reservationId) console.log("this.reservationId >>>>>",this.reservationId)
@ -2511,6 +2515,8 @@
this.form.warehouseId = this.warehouseId; this.form.warehouseId = this.warehouseId;
add(this.form).then((res) => { add(this.form).then((res) => {
if(res.data.code !== 200) return if(res.data.code !== 200) return
this.subloading=false;//
this.$message({ this.$message({
type: 'success', type: 'success',
message: '操作成功!', message: '操作成功!',

26
src/views/mail/order/list.vue

@ -434,16 +434,7 @@ export default {
fixed: false, fixed: false,
sortable: true, sortable: true,
}, },
{
prop: 'totalNumber',
label: '订单总件数',
type: 1,
values: '',
width: '160',
checkarr: [],
fixed: false,
sortable: true,
},
{ {
prop: 'consigneeUnit', prop: 'consigneeUnit',
label: '收货单位', label: '收货单位',
@ -462,6 +453,16 @@ export default {
checkarr: [], checkarr: [],
fixed: false, fixed: false,
sortable: true, sortable: true,
},
{
prop: 'totalNumber',
label: '订单总件数',
type: 1,
values: '',
width: '160',
checkarr: [],
fixed: false,
sortable: true,
}, { }, {
prop: 'handQuantity', prop: 'handQuantity',
label: '在库件数', label: '在库件数',
@ -1377,13 +1378,14 @@ export default {
// }; // };
// i.freezeStatusName = freezeStatusMap[i.freezeStatus] || freezeStatusMap.default; // i.freezeStatusName = freezeStatusMap[i.freezeStatus] || freezeStatusMap.default;
// i.groundingStatusName = groundingStatusMap[i.groundingStatus] || groundingStatusMap.default; // i.groundingStatusName = groundingStatusMap[i.groundingStatus] || groundingStatusMap.default;
i.handQuantity = nuMap[i.handQuantity] || i.handQuantity; // i.handQuantity = nuMap[i.handQuantity] || i.handQuantity;
i.sortingQuantity = nuMap[i.sortingQuantity] || i.sortingQuantity; i.sortingQuantity = nuMap[i.sortingQuantity] || i.sortingQuantity;
i.deliveryQuantity = nuMap[i.deliveryQuantity] || i.deliveryQuantity; i.deliveryQuantity = nuMap[i.deliveryQuantity] || i.deliveryQuantity;
i.signinQuantity = nuMap[i.signinQuantity] || i.signinQuantity; i.signinQuantity = nuMap[i.signinQuantity] || i.signinQuantity;
i.transferQuantity = nuMap[i.transferQuantity] || i.transferQuantity; i.transferQuantity = nuMap[i.transferQuantity] || i.transferQuantity;
i.availableQuantity = nuMap[i.availableQuantity] || i.availableQuantity; i.availableQuantity = nuMap[i.availableQuantity] || i.availableQuantity;
i.notReceived = parseInt( i.totalNumber) - parseInt( i.handQuantity); i.notReceived = parseInt(i.totalNumber) -parseInt(i.incomingNum);
i.handQuantity = parseInt(i.incomingNum) - parseInt(i.deliveryQuantity)
return i; return i;
}); });
this.loading = false; this.loading = false;

Loading…
Cancel
Save