Browse Source

商配编辑编辑页面调整

fix_bug_pro20231227
kilo 2 years ago
parent
commit
b7cc43a0fe
  1. 10
      src/views/distribution/deliverylist/distributionDeliveryListedt.vue
  2. 25
      src/views/distribution/reservation/reservationFrom.vue
  3. 116
      src/views/distribution/turndelivery/deliveryDiscuss.vue
  4. 2
      vite.config.js

10
src/views/distribution/deliverylist/distributionDeliveryListedt.vue

@ -44,7 +44,7 @@
<span>装车时间{{deliverydata.loadingTime}} </span> <span>装车时间{{deliverydata.loadingTime}} </span>
</el-col> </el-col>
</el-row> </el-row>
<el-divider>情况</el-divider> <el-divider>情况</el-divider>
<el-row :gutter="24" class="rows"> <el-row :gutter="24" class="rows">
<el-col :xl="5" :lg="7" :md="8" :sm="24"> <el-col :xl="5" :lg="7" :md="8" :sm="24">
<span>配送客户{{deliverydata.customersNumber}} </span> <span>配送客户{{deliverydata.customersNumber}} </span>
@ -411,6 +411,12 @@ export default {
label: "配送库存品数", label: "配送库存品数",
prop: "reservationStockListNum", prop: "reservationStockListNum",
search: true, search: true,
width:"110px"
},
{
label: "计划件数",
prop: "reservationNum",
search: true,
width:"100px" width:"100px"
}, },
{ {
@ -421,7 +427,7 @@ export default {
}, },
{ {
label: "是否加急", label: "是否加急",
prop: "businessDepartment", prop: "isUrgent",
search: true, search: true,
width:"100px" width:"100px"
}, },

25
src/views/distribution/reservation/reservationFrom.vue

@ -916,7 +916,7 @@
this.page.total = data.total; this.page.total = data.total;
this.stockArticleInfo = data.records; this.stockArticleInfo = data.records;
this.loading = false; this.loading = false;
this.selectionClear(); // this.selectionClear();
}); });
}, },
searchStockList() { searchStockList() {
@ -958,15 +958,16 @@
this.packageList.forEach(list => { this.packageList.forEach(list => {
console.log("##########",item); console.log("##########",item);
console.log("list------------>",list); console.log("list------------>",list);
//TODO //TODO
if (item.id === list.stockArticleId && list.orderPackageFreezeStatus !== '20') { if (item.id === list.stockArticleId && list.orderPackageFreezeStatus !== '20') {
item.reservationNum += list.quantity; item.reservationNum += list.quantity;
a.push(list); a.push(list);
} }
}); });
console.log("a------------>",a); // console.log("a------------>",a);
item.packageList = a; // item.packageList = a;
item.packageListInfo = a;
return item
}); });
}else { }else {
this.orderData.forEach(item => { this.orderData.forEach(item => {
@ -979,7 +980,9 @@
a.push(list); a.push(list);
} }
}); });
item.packageList = a; item.packageListInfo = a;
// item.packageList = a;
return item
}); });
} }
console.log("this.orderData------------>",this.orderData); console.log("this.orderData------------>",this.orderData);
@ -1020,6 +1023,7 @@
this.form.stockArticleIds = orderIds.toString(); this.form.stockArticleIds = orderIds.toString();
this.form.inventoryIds = inventoryIds.toString(); this.form.inventoryIds = inventoryIds.toString();
this.form.inventoryList = inventoryList; this.form.inventoryList = inventoryList;
console.log("-------------->",this.orderData);
this.form.stockArticleList = this.orderData; this.form.stockArticleList = this.orderData;
this.deliveryWayData.forEach(item => { this.deliveryWayData.forEach(item => {
if (this.form.deliveryWay === item.dictValue) { if (this.form.deliveryWay === item.dictValue) {
@ -1038,7 +1042,12 @@
}); });
this.form.serveType = this.serveType.join(','); this.form.serveType = this.serveType.join(',');
// //
this.orderData.forEach(item=>{
console.log("-------------->item",item);
if (!item.packageListInfo){
item.packageListInfo = item.packageList;
}
})
// this.form.stockArticleList = this.packageList; // this.form.stockArticleList = this.packageList;
console.log('>>>>>>>>', this.form); console.log('>>>>>>>>', this.form);
if (this.reservationId) { if (this.reservationId) {
@ -1125,13 +1134,14 @@
this.orderList = a; this.orderList = a;
}, },
selectionPackageChange(list) { selectionPackageChange(list) {
console.log("-----------<>",list);
if (this.reservationId){ if (this.reservationId){
console.log("-----------<>",list);
this.packageList = list; this.packageList = list;
}else { }else {
// //
let a = []; let a = [];
list.forEach(item=>{ list.forEach(item=>{
console.log("--------------->",item);
if (item.orderPackageReservationStatus === '10' || item.orderPackageReservationStatusName === '未预约'){ if (item.orderPackageReservationStatus === '10' || item.orderPackageReservationStatusName === '未预约'){
a.push(item); a.push(item);
} }
@ -1262,7 +1272,6 @@
// }) // })
console.log(">>>>>>>>",reservation); console.log(">>>>>>>>",reservation);
this.orderData = reservation.stockArticleList; this.orderData = reservation.stockArticleList;
this.inventoryData = reservation.inventoryList; this.inventoryData = reservation.inventoryList;
this.inventoryData.forEach(item => { this.inventoryData.forEach(item => {
item.applyNum = item.quantityStock - item.quantityOccupied; item.applyNum = item.quantityStock - item.quantityOccupied;

116
src/views/distribution/turndelivery/deliveryDiscuss.vue

@ -110,14 +110,13 @@
<el-form ref="form" :model="stockUpForm" label-width="100px" style="margin: 3px"> <el-form ref="form" :model="stockUpForm" label-width="100px" style="margin: 3px">
<el-row> <el-row>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="叉车司机:" prop="forklift"> <el-form-item label="备货人员:" prop="forklift">
<el-select filterable v-model="stockUpForm.forklift" placeholder="请选择叉车司机"> <el-select filterable v-model="stockUpForm.forklift" placeholder="请选择备货人员">
<el-option <el-option
v-for="item in this.forkliftData" v-for="item in this.forkliftData"
:key="item.dictKey" :key="item.dictKey"
:label="item.dictValue" :label="item.dictValue"
:value="item.dictKey" :value="item.dictKey"
:disabled="isDisable"
> >
</el-option> </el-option>
<!-- {{this.forkliftData}}--> <!-- {{this.forkliftData}}-->
@ -132,7 +131,6 @@
:key="item.dictKey" :key="item.dictKey"
:label="item.dictValue" :label="item.dictValue"
:value="item.dictKey" :value="item.dictKey"
:disabled="isDisable"
> >
</el-option> </el-option>
</el-select> </el-select>
@ -145,7 +143,6 @@
v-for="item in loadAndUnloadData" v-for="item in loadAndUnloadData"
:label="item.dictKey" :label="item.dictKey"
:value="item.dictKey" :value="item.dictKey"
:disabled="isDisable"
> >
<span>{{ item.dictValue }}</span> <span>{{ item.dictValue }}</span>
</el-checkbox> </el-checkbox>
@ -155,7 +152,7 @@
<el-col :span="6"> <el-col :span="6">
<el-form-item label="配送类型:" prop="goodsAreaId"> <el-form-item label="配送类型:" prop="goodsAreaId">
<el-radio-group v-model="stockUpForm.deliveryType"> <el-radio-group v-model="stockUpForm.deliveryType">
<el-radio :label="'1'" :value="'1'">商配&emsp; </el-radio> <el-radio :label="'10'" :value="'10'">商配&emsp; </el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -169,7 +166,6 @@
:key="item.dictKey" :key="item.dictKey"
:label="item.dictValue" :label="item.dictValue"
:value="item.dictKey" :value="item.dictKey"
:disabled="isDisable"
> >
</el-option> </el-option>
</el-select> </el-select>
@ -177,7 +173,7 @@
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="备货时间:" prop="goodsShelfId"> <el-form-item label="备货时间:" prop="goodsShelfId">
<el-date-picker v-model="stockUpForm.stockupDate" type="datetime" placeholder="请选择备货时间" :disabled="isDisable"> <el-date-picker v-model="stockUpForm.stockupDate" type="datetime" placeholder="请选择备货时间">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -886,33 +882,35 @@
this.loading = true; this.loading = true;
this.obj = row; this.obj = row;
console.log("++++++++++++",this.obj); console.log("++++++++++++",this.obj);
if (this.deliveryListId){ if (this.deliveryListId){
// //
let params={}; let params={};
console.log("^^^^^^^^",row); console.log("^^^^^^^^",row);
this.query.stockArticleId = row.id; this.query.stockArticleId = row.id;
//TODO this.query.id = 1; //
// this.query.typeService = 1; //使
// this.query.genre = '1'; //
getPackageList(Object.assign(params,this.query)).then(res=>{ let packageInfo = row.parcelListVOS
console.log(res.data.data); if (row.packageList){
let data =res.data.data; let packageListInfo = row.packageList;
this.packageData =data.records; packageInfo.forEach((item,index)=>{
let packageInfo =row.parcelListVOS packageListInfo.forEach(p=>{
console.log("packageInfo",packageInfo);
this.packageData.forEach((item,index)=>{
packageInfo.forEach(p=>{
if (item.id===p.id){ if (item.id===p.id){
this.selectionList.push(item);
this.$nextTick( ()=> { this.$nextTick( ()=> {
this.$refs.packageList.toggleRowSelection(this.packageData[index],true); this.$refs.packageList.toggleRowSelection(this.packageData[index],true);
}) })
} }
}) })
}) })
this.selectionClear(); }else {
}) //
packageInfo.forEach((item,index)=>{
this.$nextTick( ()=> {
this.$refs.packageList.toggleRowSelection(this.packageData[index],true);
})
})
}
this.packageData =row.parcelListVOS;
}else { }else {
// //
// //
@ -949,7 +947,7 @@
console.log("___________",this.obj); console.log("___________",this.obj);
this.orderData.forEach(item=>{ this.orderData.forEach(item=>{
if (item.id===this.obj.id){ if (item.id===this.obj.id){
item.packageList = this.selectionList; item.packageListInfo = this.selectionList;
} }
}) })
console.log( "**********",this.orderData); console.log( "**********",this.orderData);
@ -992,18 +990,30 @@
this.stockListShow = false; this.stockListShow = false;
}, },
onSubmitOrder() { onSubmitOrder() {
console.log('>>>>>>>>>>>>', this.selectionList); console.log('>>>>>>>>>>>>', this.stockArticleList);
this.orderData.forEach(item => { console.log('>>>>>>>>orderData', this.orderData);
item.reservationNum = 0; if (this.orderData){
this.selectionList.forEach((list, index) => { let a = this.orderData;
if (item.id === list.stockArticleId) { this.stockArticleList.forEach(item=>{
item.reservationNum += list.quantity; a.forEach(order=>{
} console.log("order----------------->",order);
}); if (item.id === order.id){
item.packageList = this.selectionList; item.packageListInfo = order.packageList;
}); }
})
})
}
// this.orderData.forEach(item => {
// item.reservationNum = 0;
// this.stockArticleList.forEach((list, index) => {
// if (item.id === list.id) {
// list = item;
// }
// });
// });
this.orderData = this.stockArticleList;
console.log('+++++++++++++++', this.orderData); console.log('+++++++++++++++', this.orderData);
this.isaddvalue = false; this.orderShow = false;
}, },
/** /**
* 订单提交 * 订单提交
@ -1173,7 +1183,8 @@
if (this.waixieForm.driverName) { if (this.waixieForm.driverName) {
tripartite.driverName = this.waixieForm.driverName; tripartite.driverName = this.waixieForm.driverName;
} }
if (this.waixieForm.deiverPhone) { console.log("-------------->",this.waixieForm);
if (this.waixieForm.driverPhone) {
tripartite.driverPhone = this.waixieForm.driverPhone; tripartite.driverPhone = this.waixieForm.driverPhone;
} }
if (this.waixieForm.vehicleNum) { if (this.waixieForm.vehicleNum) {
@ -1184,7 +1195,7 @@
} }
if (this.waixieForm.tripartiteSource) { if (this.waixieForm.tripartiteSource) {
this.tripartiteSourceData.forEach(item => { this.tripartiteSourceData.forEach(item => {
if (params.tripartiteSource === item.dictValue) { if (this.waixieForm.tripartiteSource === item.dictValue) {
tripartite.distributionCompanyId = item.dictKey; tripartite.distributionCompanyId = item.dictKey;
tripartite.distributionCompany = item.dictValue; tripartite.distributionCompany = item.dictValue;
} }
@ -1365,7 +1376,7 @@
} }
this.aaa = true; this.aaa = true;
this.bbb = false; this.bbb = false;
this.stockUpForm.deliveryType="1"; this.stockUpForm.deliveryType="10";
this.stockUpForm.deliveryWay="10"; this.stockUpForm.deliveryWay="10";
this.loadAndUnload = ["1","2"]; this.loadAndUnload = ["1","2"];
this.stockUpForm.otherFee = 0; this.stockUpForm.otherFee = 0;
@ -1386,7 +1397,7 @@
} }
this.aaa = false; this.aaa = false;
this.bbb = true; this.bbb = true;
this.stockUpForm.deliveryType="1"; this.stockUpForm.deliveryType="10";
this.stockUpForm.deliveryWay="10"; this.stockUpForm.deliveryWay="10";
this.loadAndUnload = ["1","2"]; this.loadAndUnload = ["1","2"];
this.stockUpForm.otherFee = 0; this.stockUpForm.otherFee = 0;
@ -1402,14 +1413,22 @@
selectStockArticleAndParcel(Object.assign(params,this.query)).then(res=>{ selectStockArticleAndParcel(Object.assign(params,this.query)).then(res=>{
console.log(res.data.data); console.log(res.data.data);
const data = res.data.data; const data = res.data.data;
data.forEach(item => { data.forEach(item => {
item.reservationNum = item.handQuantity; if (this.orderData){
this.orderData.forEach(a=>{
if (item.id === a.id){
item.packageList = a.packageList;
}
})
}
// item.reservationNum = item.handQuantity;
}); });
this.page.total = data.total; this.page.total = data.total;
this.stockArticleInfo = data; this.stockArticleInfo = data;
this.loading = false; this.loading = false;
this.query={}; this.query={};
// this.selectionClear(); // this.selectionClear();
if (this.deliveryListId) { if (this.deliveryListId) {
// //
console.log("---->", this.stockArticleInfo); console.log("---->", this.stockArticleInfo);
@ -1449,14 +1468,9 @@
this.selectionList = []; this.selectionList = [];
this.stockListShow = true; this.stockListShow = true;
}, },
onSubmitOrder() {
this.orderData=this.stockArticleList;
this.orderShow = false;
},
selectionClear() { selectionClear() {
this.selectionList = []; this.selectionList = [];
this.query={}; this.query={};
// this.$refs.table.clearSelection();
}, },
async onLoad(page, params = {}) { async onLoad(page, params = {}) {
console.log("》》》》》》》》》》》》》》》",this.deliveryListId); console.log("》》》》》》》》》》》》》》》",this.deliveryListId);
@ -1465,7 +1479,7 @@
let data = res.data.data; let data = res.data.data;
Object.assign(this.stockUpForm,data.reservationInfo) Object.assign(this.stockUpForm,data.reservationInfo)
Object.assign(this.stockUpForm,data.stockupInfo) Object.assign(this.stockUpForm,data.stockupInfo)
this.stockUpForm.deliveryType = '1'; this.stockUpForm.deliveryType = '10';
this.stockUpForm.deliveryWay = data.reservationInfo.deliveryWay; this.stockUpForm.deliveryWay = data.reservationInfo.deliveryWay;
this.serveType = data.reservationInfo.serveType.split(","); this.serveType = data.reservationInfo.serveType.split(",");
if (data.stockupInfo){ if (data.stockupInfo){
@ -1477,6 +1491,12 @@
this.stockUpForm.outboundDate = data.stockupInfo.outboundDate; this.stockUpForm.outboundDate = data.stockupInfo.outboundDate;
this.stockUpForm.remarks = data.stockupInfo.remarks; this.stockUpForm.remarks = data.stockupInfo.remarks;
this.stockUpForm.taskTime = data.taskTime; this.stockUpForm.taskTime = data.taskTime;
data.stockArticleList.forEach(item=>{
if (item.packageList){
item.packageList = item.packageList;
item.packageListInfo = item.packageList;
}
})
this.orderData = data.stockArticleList; this.orderData = data.stockArticleList;
if (data.teamResponsibility){ if (data.teamResponsibility){
this.loadAndUnload =data.teamResponsibility.split(","); this.loadAndUnload =data.teamResponsibility.split(",");
@ -1537,7 +1557,7 @@
}) })
this.isDisable=true; this.isDisable=true;
}else { }else {
this.stockUpForm.deliveryType="1"; this.stockUpForm.deliveryType="10";
this.stockUpForm.deliveryWay="10"; this.stockUpForm.deliveryWay="10";
this.loadAndUnload = ["1","2"]; this.loadAndUnload = ["1","2"];
this.stockUpForm.otherFee = 0; this.stockUpForm.otherFee = 0;

2
vite.config.js

@ -12,7 +12,7 @@ export default ({ mode, command }) => {
port: 2888, port: 2888,
proxy: { proxy: {
'/api': { '/api': {
target: 'http://192.168.10.75:8777', target: 'http://192.168.10.33:13000',
//target: 'http://test3.javablade.com', //target: 'http://test3.javablade.com',
changeOrigin: true, changeOrigin: true,
rewrite: path => path.replace(/^\/api/, ''), rewrite: path => path.replace(/^\/api/, ''),

Loading…
Cancel
Save