diff --git a/src/api/distribution/distributionParcelList.js b/src/api/distribution/distributionParcelList.js
index 216e4ed4..4952a7fa 100644
--- a/src/api/distribution/distributionParcelList.js
+++ b/src/api/distribution/distributionParcelList.js
@@ -8,9 +8,20 @@ export const getList = (current, size, params) => {
...params,
current,
size,
- }
- })
-}
+ },
+ });
+};
+export const getEditList = (current, size, params) => {
+ return request({
+ url: '/api/logpm-distribution/distributionParcelList/pickupPack',
+ method: 'get',
+ params: {
+ ...params,
+ current,
+ size,
+ },
+ });
+};
export const getListOwn = (current, size, params) => {
return request({
url: '/api/logpm-distribution/distributionParcelList/list',
@@ -19,19 +30,18 @@ export const getListOwn = (current, size, params) => {
...params,
current,
size,
- }
- })
-}
-export const getStockDataBase = ( params) => {
+ },
+ });
+};
+export const getStockDataBase = params => {
return request({
url: '/api/logpm-distribution/distributionParcelList/stockDataBase',
method: 'get',
params: {
...params,
-
- }
- })
-}
+ },
+ });
+};
export const getpage = (current, size, params) => {
return request({
url: '/api/logpm-distribution/distributionParcelList/page',
@@ -40,9 +50,9 @@ export const getpage = (current, size, params) => {
...params,
current,
size,
- }
- })
-}
+ },
+ });
+};
export const getParcelListOwn = (current, size, params) => {
return request({
url: '/api/logpm-distribution/distributionParcelList/parcelListOwn',
@@ -51,9 +61,9 @@ export const getParcelListOwn = (current, size, params) => {
...params,
current,
size,
- }
- })
-}
+ },
+ });
+};
export const getParcelListOwnSelf = (current, size, params) => {
return request({
url: '/api/logpm-distribution/distributionParcelList/parcelListOwnSelf',
@@ -62,62 +72,60 @@ export const getParcelListOwnSelf = (current, size, params) => {
...params,
current,
size,
- }
- })
-}
+ },
+ });
+};
-export const getDetail = (id) => {
+export const getDetail = id => {
return request({
url: '/api/logpm-distribution/distributionParcelList/detail',
method: 'get',
params: {
- id
- }
- })
-}
+ id,
+ },
+ });
+};
-export const remove = (ids) => {
+export const remove = ids => {
return request({
url: '/api/logpm-distribution/distributionParcelList/remove',
method: 'post',
params: {
ids,
- }
- })
-}
+ },
+ });
+};
-export const add = (row) => {
+export const add = row => {
return request({
url: '/api/logpm-distribution/distributionParcelList/submit',
method: 'post',
- data: row
- })
-}
+ data: row,
+ });
+};
-export const update = (row) => {
+export const update = row => {
return request({
url: '/api/logpm-distribution/distributionParcelList/submit',
method: 'post',
- data: row
- })
-}
+ data: row,
+ });
+};
-export const updateParcelList = (row) => {
+export const updateParcelList = row => {
return request({
url: '/api/logpm-distribution/distributionParcelList/update',
method: 'post',
- data: row
- })
-}
+ data: row,
+ });
+};
-export const getPackageList = (params) => {
+export const getPackageList = params => {
return request({
url: '/api/logpm-distribution/distributionParcelList/list',
method: 'get',
params: {
- ...params
- }
- })
-}
-
-
+ ...params,
+ },
+ });
+};
diff --git a/src/api/distribution/distributionReservation.js b/src/api/distribution/distributionReservation.js
index b51c3787..5c9b647a 100644
--- a/src/api/distribution/distributionReservation.js
+++ b/src/api/distribution/distributionReservation.js
@@ -234,7 +234,13 @@ export const getDeliveryZeroOrderDetail = (deliveryId,orderId) => {
params: { deliveryId,orderId }
});
}
-
+export const $_getDeliveryZeroOrderDetail = params => {
+ return request({
+ url: '/api/logpm-distribution/deliveryList/getDeliveryZeroOrderDetail',
+ method: 'get',
+ params,
+ });
+};
/**
* 查询预约计划零担详情
* @param ids
diff --git a/src/api/work/work.js b/src/api/work/work.js
index 586231a9..58b06d95 100644
--- a/src/api/work/work.js
+++ b/src/api/work/work.js
@@ -86,6 +86,19 @@ export const getMyWarehouseList = data => {
});
};
+;
+
+export const getMyCurrentWarehouse = data => {
+ return request({
+ url: '/api/logpm-basicdata/warehouse/client/getMyCurrentWarehouse',
+ method: 'get',
+ data,
+ });
+};
+
+
+
+
export const preserveCurrentWarehouse = data => {
return request({
url: '/api/logpm-basicdata/warehouse/preserveCurrentWarehouse',
diff --git a/src/components/tablecmt/tablecmt.vue b/src/components/tablecmt/tablecmt.vue
index b2f50669..a26a41b9 100644
--- a/src/components/tablecmt/tablecmt.vue
+++ b/src/components/tablecmt/tablecmt.vue
@@ -172,7 +172,7 @@
diff --git a/src/page/index/top/index.vue b/src/page/index/top/index.vue
index a55e24b8..ad77ab11 100644
--- a/src/page/index/top/index.vue
+++ b/src/page/index/top/index.vue
@@ -29,9 +29,12 @@
+
+
- {{ datalist[checkwarehousevalue]?.name||'' }}
+ {{ datalist[checkwarehousevalue]?.name || '' }}
+
@@ -112,20 +115,33 @@ export default {
isshow: false,
datalist: [],
warehousevalue: '',
- checkwarehousevalue:0,
+ checkwarehousevalue: 0,
+ dataName: null,
};
},
mounted() {
getMyWarehouseList().then(res => {
- console.log(res.data.data, 'getMyWarehouseList');
- let arr = [{ name: '全部', id: '0' }];
- this.datalist = arr.concat(res.data.data);
- });
- this.checkwarehousevalue=Number(localStorage.getItem('checkwarehousevalue'))
- console.log(this.checkwarehousevalue)
+ console.log(res.data.data, 'getMyWarehouseList');
+ let arr = [{ name: this.dataName?this.dataName:'', id: '0' }];
+ this.datalist = arr.concat(res.data.data);
+ });
+ this.checkwarehousevalue = Number(localStorage.getItem('checkwarehousevalue'));
+
},
filters: {},
- created() {},
+
+ created() {
+ this.dataName=null
+ let warehouseName = localStorage.getItem('WarehouseName');
+ let modifiedName = warehouseName.replace(/"/g, '');
+ if (modifiedName == 'undefined') {
+ this.dataName = '';
+ console.log('当前暂时没有参数',this.dataName);
+ } else {
+ this.dataName = modifiedName;
+ console.log(this.dataName,'当前参数存在值');
+ }
+ },
computed: {
...mapGetters([
'setting',
@@ -152,7 +168,7 @@ export default {
let res = await getclearWarehouseCache({});
if (res.data.code == 200) {
this.$message({ message: '切换成功', type: 'success' });
- localStorage.setItem('checkwarehousevalue',this.warehousevalue)
+ localStorage.setItem('checkwarehousevalue', this.warehousevalue);
this.$router.push({
path: '/',
});
@@ -166,7 +182,7 @@ export default {
let res = await preserveCurrentWarehouse(this.datalist[this.warehousevalue]);
if (res.data.code == 200) {
this.$message({ message: '切换成功', type: 'success' });
- localStorage.setItem('checkwarehousevalue',this.warehousevalue)
+ localStorage.setItem('checkwarehousevalue', this.warehousevalue);
this.$router.push({
path: '/',
});
diff --git a/src/views/distribution/inventory/distrilbutionBillLading.vue b/src/views/distribution/inventory/distrilbutionBillLading.vue
index d76a73d6..cd92e362 100644
--- a/src/views/distribution/inventory/distrilbutionBillLading.vue
+++ b/src/views/distribution/inventory/distrilbutionBillLading.vue
@@ -208,7 +208,7 @@
-
+
操作录入预约数量
+ 维护在库数量
+
-
+
名称
@@ -498,44 +509,108 @@
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
+
+
+
+
+ 名称:{{ item.firsts }}
+
+
+ 总数量:{{ item.quantity }}
+
+
+ 在库数量:{{ item.handQuantity }}
+
+
+ 冻结数量:{{ item.deliveryQuantity }}
+
+
+ 出库数量:{{ item.outboundQuantity }}
+
+
+ 可用数量:{{
+ item.handQuantity - item.deliveryQuantity - item.outboundQuantity
+ }}
+
+
+
+
+
+
+ 提交(零担订单)
+
+ 返 回
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -547,7 +622,7 @@ import {
remove,
zeroMaterial,
} from '@/api/distribution/distrilbutionBillLading';
-import { getListOwn, getList } from '@/api/distribution/distributionParcelList';
+import { getListOwn, getList, getEditList } from '@/api/distribution/distributionParcelList';
import option from '@/option/distribution/distrilbutionBillLading';
import { mapGetters } from 'vuex';
import { getDictionaryBiz } from '@/api/system/dict';
@@ -556,6 +631,7 @@ import { getListStockList } from '@/api/distribution/distributionStockList';
import { getListOne } from '@/api/distribution/distributionStockArticle';
import dayjs from 'dayjs';
import { detail } from '@/api/flow/flow';
+import { nextTick, ref } from 'vue';
export default {
data() {
@@ -1517,7 +1593,7 @@ export default {
label: '操作',
type: 6,
values: '',
- width: '150',
+ width: '200',
checkarr: [],
fixed: 'right',
hide: true,
@@ -1615,39 +1691,6 @@ export default {
sortable: true,
head: false,
},
- {
- label: '主键',
- prop: 'id',
- type: 2,
- values: '',
- width: '150',
- checkarr: [],
- fixed: false,
- sortable: true,
- head: false,
- },
- {
- label: '租户号',
- prop: 'tenantId',
- type: 2,
- values: '',
- width: '150',
- checkarr: [],
- fixed: false,
- sortable: true,
- head: false,
- },
- {
- label: '创建人',
- prop: 'createUser',
- type: 2,
- values: '',
- width: '150',
- checkarr: [],
- fixed: false,
- sortable: true,
- head: false,
- },
{
label: '创建时间',
prop: 'createTime',
@@ -1659,61 +1702,6 @@ export default {
sortable: true,
head: false,
},
- {
- label: '更新人',
- prop: 'updateUser',
- type: 2,
- values: '',
- width: '150',
- checkarr: [],
- fixed: false,
- sortable: true,
- head: false,
- },
- {
- label: '更新时间',
- prop: 'updateTime',
- type: 4,
- values: '',
- width: '180',
- checkarr: [],
- fixed: false,
- sortable: true,
- head: false,
- },
- {
- label: '状态',
- prop: 'status',
- type: 2,
- values: '',
- width: '150',
- checkarr: [],
- fixed: false,
- sortable: true,
- head: false,
- },
- {
- label: '是否已删除',
- prop: 'isDeleted',
- type: 2,
- values: '',
- width: '150',
- checkarr: [],
- fixed: false,
- sortable: true,
- head: false,
- },
- {
- label: '创建部门',
- prop: 'createDept',
- type: 2,
- values: '',
- width: '150',
- checkarr: [],
- fixed: false,
- sortable: true,
- head: false,
- },
{
label: '仓库',
prop: 'warehouse',
@@ -1813,17 +1801,6 @@ export default {
sortable: true,
head: false,
},
- {
- label: '转库存品数量',
- prop: 'inventoryQuantity',
- type: 2,
- values: '',
- width: '150',
- checkarr: [],
- fixed: false,
- sortable: true,
- head: false,
- },
{
label: '车次号',
prop: 'trainNumber',
@@ -1835,17 +1812,6 @@ export default {
sortable: true,
head: false,
},
- {
- label: '在库订单ID',
- prop: 'stockArticleId',
- type: 2,
- values: '',
- width: '150',
- checkarr: [],
- fixed: false,
- sortable: true,
- head: false,
- },
],
// 列表数据
orderDetails: [],
@@ -1860,7 +1826,22 @@ export default {
total: 0,
// 复选框选中数据
selectList: [],
+ /**
+ * 修改 -- 原有数据
+ */
+ originalList: [],
+ /**
+ * 修改 -- 删除的数据
+ */
+ delList: [],
+ /**
+ * 修改 -- 新增的数据
+ */
+ newList: [],
},
+ // 零担在库录入弹窗开启
+ zeroOrderVisible: false,
+ zeroOrderData: [],
};
},
mounted() {
@@ -2056,16 +2037,22 @@ export default {
if (!index) {
delete this.query[row.prop];
}
- this.onLoadOrder(this.pageOrder);
+ this.pageOrder.currentPage = 1;
+ this.onLoadOrder(this.pageOrder, this.pageOrder);
},
inputsc(index, row) {
this.query[row.prop] = index;
- this.onLoadOrder(this.pageOrder);
+ this.pageOrder.currentPage = 1;
+ this.onLoadOrder(this.pageOrder, this.query);
},
orderInputSc(index, row) {
console.log('123 :>> ', 123);
this.order.query[row.prop] = index;
- this.onLoadOrderChoose();
+ const _type = this.$route.query.type;
+ // 编辑状态
+ if (Number(_type) === 2) {
+ this.onLoadEditChoose();
+ } else this.onLoadOrderChoose();
},
orderSelectSc(index, row) {
console.log('index :>> ', index);
@@ -2083,8 +2070,13 @@ export default {
if (!index) {
delete this.query[row.prop];
}
- this.onLoadOrderChoose();
+ const _type = this.$route.query.type;
+ // 编辑状态
+ if (Number(_type) === 2) {
+ this.onLoadEditChoose();
+ } else this.onLoadOrderChoose();
},
+
//查询提货详情信息
getDetailOen() {
this.orderAdd = true;
@@ -2253,34 +2245,43 @@ export default {
}
},
// 选择包件
- handleChooseOrder(row) {
+ async handleChooseOrder(row) {
console.log('row :>> ', row);
-
- console.log('111 :>> ', 111);
- this.dialogChooseOrderVisible = true;
+ // 页面类型
+ const _type = this.$route.query.type;
this.orderChooseId = row.id;
- this.onLoadOrderChoose();
+ // 编辑状态
+ if (Number(_type) === 2) {
+ await this.onLoadEditChoose({}, row);
+ } else await this.onLoadOrderChoose();
+ this.dialogChooseOrderVisible = true;
},
// 每页数量改变
sizeChangeOrderChoose(size) {
this.order.pageSize = size;
- // console.log('size :>> ', size);
- // console.log(' this.order.pageSize :>> ', this.order.pageSize);
- this.onLoadOrderChoose();
+ ('');
+ const _type = this.$route.query.type;
+ // 编辑状态
+ if (Number(_type) === 2) {
+ this.onLoadEditChoose();
+ } else this.onLoadOrderChoose();
},
// 页码改变
currentChangeOrderChoose(current) {
// console.log('current :>> ', current);
this.order.currentPage = current;
- this.onLoadOrderChoose();
- },
- // 请求包件数据
- onLoadOrderChoose(params = {}) {
- console.log('1111 :>> ', 1111);
+ const _type = this.$route.query.type;
+ // 编辑状态
+ if (Number(_type) === 2) {
+ this.onLoadEditChoose();
+ } else this.onLoadOrderChoose();
+ },
+ // 请求包件数据 -- 新增
+ async onLoadOrderChoose(params = {}) {
this.order.orderChooseLoading = true;
this.order.query.stockArticleId = this.orderChooseId;
this.order.query.conditions = '1';
- getList(this.order.currentPage, this.order.pageSize, {
+ await getList(this.order.currentPage, this.order.pageSize, {
...params,
...this.order.query,
}).then(res => {
@@ -2289,8 +2290,43 @@ export default {
this.order.total = data.total;
this.order.orderDetails = data.records;
this.order.orderChooseLoading = false;
+ this.order.selectList = [];
this.selectionClear();
});
+ return null;
+ },
+ /**
+ * 请求包件数据 -- 修改
+ */
+ async onLoadEditChoose(params = {}, row) {
+ this.order.orderChooseLoading = true;
+ this.order.query.stockArticleId = this.orderChooseId;
+ this.order.query.reservationId = this.$route.query.id;
+ this.order.query.conditions = '1';
+ await getEditList(this.order.currentPage, this.order.pageSize, {
+ ...params,
+ ...this.order.query,
+ }).then(res => {
+ console.log('res :>> ', res);
+ const data = res.data.data;
+ this.order.total = data.total;
+ this.order.orderDetails = data.records;
+
+ // 被选中的包件的id list
+ row.originalIdList = [];
+
+ // 回显
+ this.order.selectList = this.order.orderDetails.filter(val => {
+ console.log('val :>> ', val);
+ if (val.choice) row.originalIdList.push(val.id);
+ return val.choice;
+ });
+ // 深拷贝数据
+ console.log('this.order.selectList :>> ', this.order.selectList);
+ row.originalList = JSON.parse(JSON.stringify(this.order.selectList));
+ this.order.orderChooseLoading = false;
+ });
+ return null;
},
/**
* 确认选择包件
@@ -2308,6 +2344,7 @@ export default {
return {
parceListId: val.id,
stockArticleId: val.stockArticleId,
+ packetBarCode: val.orderPackageCode,
};
});
this.dialogChooseOrderVisible = false;
@@ -2459,7 +2496,6 @@ export default {
}
},
async handleSubmit() {
- console.log('123 :>> ', 123);
const zeroOrderList = this.dataList.filter(val => val.isZero === '1');
// 当有零担订单物料数量没操作时
const wrongZeroOrder = zeroOrderList.find(val => !val.ParcelLisList);
@@ -2471,17 +2507,20 @@ export default {
message: `订单自编号为${wrongZeroOrder.orderCode}的物料数量未编辑`,
});
}
- if (zeroOrderList) {
- // 双层循环查看每一个物料数量是否被填写
- const isSubmit = zeroOrderList.every(item => {
- return item.ParcelLisList.every(val => val.quantity);
- });
- if (!isSubmit)
- return this.$message({
- type: 'error',
- message: '有零担物料未填写',
+ if (this.$route.query.type !== '2') {
+ if (zeroOrderList) {
+ // 双层循环查看每一个物料数量是否被填写
+ const isSubmit = zeroOrderList.every(item => {
+ return item.ParcelLisList.every(val => val.quantity);
});
+ if (!isSubmit)
+ return this.$message({
+ type: 'error',
+ message: '有零担物料未填写',
+ });
+ }
}
+
this.$refs.form.validate(async valid => {
if (valid) {
if (!this.form.id) {
@@ -2575,6 +2614,8 @@ export default {
this.$router.push(this.tagWel);
});
} else {
+ console.log('111 :>> ', 111);
+ // return
let fei = new Map();
this.bianLier(this.costListName, this.clientType, this.costList, fei);
this.form.fei = Object.fromEntries(fei);
@@ -2632,24 +2673,47 @@ export default {
} else {
up.zeroType = '1';
}
+ // 新增列表
let _billPackageEntityList = [];
+ // 删除列表
+ let _unBillPackageEntityList = [];
// submitFormData.billPackageEntityList
this.dataList.forEach(val => {
- console.log('val :>> ', val);
- if (val.billPackageEntityList && val.billPackageEntityList.length !== 0)
- _billPackageEntityList = [..._billPackageEntityList, ...val.billPackageEntityList];
+ if (val.originalIdList) {
+ val.billPackageEntityList.forEach(item => {
+ // 新增
+ if (!val.originalIdList.includes(item.parceListId)) {
+ _billPackageEntityList.push(item);
+ }
+ });
+ // 删除
+ val.originalList.forEach(item => {
+ const _flag = val.billPackageEntityList.findIndex(
+ value => value.parceListId === item.id
+ );
+ if (_flag === -1) {
+ _unBillPackageEntityList.push({
+ parceListId: item.id,
+ stockArticleId: item.stockArticleId,
+ packetBarCode: item.orderPackageCode,
+ });
+ }
+ });
+ }
});
- submitFormData.billPackageEntityList = _billPackageEntityList;
+
+ up.billPackageEntityList = _billPackageEntityList;
+ up.unBillPackageEntityList = _unBillPackageEntityList;
+
update(up).then(() => {
- // this.box = false;
- // this.onLoad(this.page);
- this.$message({
- type: 'success',
- message: '操作成功!',
- });
- this.$store.commit('DEL_TAG_CURRENT');
- this.$router.push(this.tagWel);
+ // this.$message({
+ // type: 'success',
+ // message: '操作成功!',
+ // });
+ // this.$store.commit('DEL_TAG_CURRENT');
+ // this.$router.push(this.tagWel);
});
+ return;
}
}
});
@@ -2810,6 +2874,7 @@ export default {
this.selectionList = [];
// this.$refs.table.clearSelection();
},
+ // 库存品新增 -- 页码改变
currentChangeStock(currentPage) {
this.pageStock.currentPage = currentPage;
this.onLoadList(this.pageStock);
@@ -2818,6 +2883,15 @@ export default {
this.pageStock.pageSize = pageSize;
this.onLoadList(this.pageStock);
},
+ // 定制品新增 -- 页码改变
+ currentChangeOrder(currentPage) {
+ this.pageOrder.currentPage = currentPage;
+ this.onLoadOrder(this.pageOrder);
+ },
+ sizeChangeOrder(pageSize) {
+ this.pageOrder.pageSize = pageSize;
+ this.onLoadOrder(this.pageOrder);
+ },
currentChange(currentPage) {
this.page.currentPage = currentPage;
this.onLoad(this.page);
@@ -2848,6 +2922,7 @@ export default {
},
//库存品
onLoadList(page, params = {}) {
+ console.log('111 :>> ', 111);
this.loading = true;
let a = {};
if (this.$route.query.type == '1') {
@@ -2855,8 +2930,10 @@ export default {
} else if (this.$route.query.type === '2') {
a = this.dataList[0];
} else if (this.$route.query.type == '3') {
- a = this.dataOrder[0];
+ a = this.dataList[0];
}
+ console.log('a :>> ', a);
+ console.log(' this.dataOrder :>> ', this.dataOrder);
// let a = this.dataList[0];
if (!!a.mallId) {
params.marketId = a.mallId;
@@ -2872,6 +2949,10 @@ export default {
this.selectionClear();
});
} else {
+ this.$message({
+ type: 'warning',
+ message: '无法获取商场信息',
+ });
this.loading = false;
this.pageStock.total = 0;
}
@@ -2880,7 +2961,7 @@ export default {
onLoadOwn(page, params = {}) {
this.loading = true;
this.query.stockArticleIds = this.$route.query.id;
- getListOwn(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
+ getListOwn(page.currentPage, page.pageSize, { ...params, ...this.query }).then(res => {
const dataList = res.data.data;
this.page.total = dataList.total;
this.dataList = dataList.records;
@@ -2890,6 +2971,8 @@ export default {
},
// 开启修改零担弹框
async handleZeroOrder(row) {
+ console.log('this.zeroOrderVisible :>> ', this.zeroOrderVisible);
+
const handleParcelLisList = this.dataList.find(val => val.id === row.id).ParcelLisList;
// 当此次为二次修改时, 不进行请求
if (handleParcelLisList) {
@@ -2898,8 +2981,6 @@ export default {
return;
}
- console.log('row :>> ', row);
-
// 请求零担数据详情
const res = await zeroMaterial({
stockArticleId: row.id,
@@ -2942,6 +3023,18 @@ export default {
// 关闭零担蒙层弹框
this.dialogFormZeroOrderVisible = false;
},
+ /**
+ * 显示维护在库零担数量
+ */
+ handleStockZeroOrder() {
+ this.zeroOrderVisible = true;
+ console.log('this.zeroOrderVisible :>> ', this.zeroOrderVisible);
+ console.log('111 :>> ', 111);
+ },
+ /**
+ * 在库零担维护提交
+ */
+ onSubmitZeroOrder() {},
},
};
diff --git a/src/views/distribution/signfor/distributionSignfortreat.vue b/src/views/distribution/signfor/distributionSignfortreat.vue
index 554aad29..b15df3a1 100644
--- a/src/views/distribution/signfor/distributionSignfortreat.vue
+++ b/src/views/distribution/signfor/distributionSignfortreat.vue
@@ -82,14 +82,17 @@
-
-
- 司机待签收数:{{ statistics.driverNub }}
-
-
- 文员待审核数:{{ statistics.clerkNub }}
-
-
+
+
+
+ -
+
司机待签收数:{{ statistics.driverNub }}
+
+ -
+
文员待审核数:{{ statistics.clerkNub }}
+
+
+