From 57240c68a8ec3d46932591359aa36a45cbbcaa5d Mon Sep 17 00:00:00 2001 From: caoyizhong <1270296080@qq.com> Date: Sun, 25 Jun 2023 18:32:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8C=85=E4=BB=B6=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../distribution/distributionParcelList.js | 11 + .../distribution/distributionStockArticle.js | 284 +++++++++ .../distributionStockArticleFrom.js | 146 +++++ src/router/views/index.js | 38 ++ src/views/basicdata/brand/basicClient.vue | 14 +- .../inventory/distributionStockArticle.vue | 64 +- .../distributionStockArticleDetails.vue | 570 ++++++++++++++++++ .../distributionStockArticleFrom.vue | 232 +++++++ 8 files changed, 1330 insertions(+), 29 deletions(-) create mode 100644 src/option/distribution/distributionStockArticleFrom.js create mode 100644 src/views/distribution/inventory/distributionStockArticleDetails.vue create mode 100644 src/views/distribution/inventory/distributionStockArticleFrom.vue diff --git a/src/api/distribution/distributionParcelList.js b/src/api/distribution/distributionParcelList.js index 97cc732b..9a5a5afe 100644 --- a/src/api/distribution/distributionParcelList.js +++ b/src/api/distribution/distributionParcelList.js @@ -11,6 +11,17 @@ export const getList = (current, size, params) => { } }) } +export const getListOwn = (current, size, params) => { + return request({ + url: '/api/logpm-distribution/distributionParcelList/list', + method: 'get', + params: { + ...params, + current, + size, + } + }) +} export const getDetail = (id) => { return request({ diff --git a/src/option/distribution/distributionStockArticle.js b/src/option/distribution/distributionStockArticle.js index afe857aa..f041991a 100644 --- a/src/option/distribution/distributionStockArticle.js +++ b/src/option/distribution/distributionStockArticle.js @@ -3,6 +3,290 @@ export default { index: true, border: true, selection: true, + columnBasic: [ + { + label: "租户号", + prop: "tenantId", + display: false, + hide: true, + }, + { + label: "创建人", + prop: "createUser", + display: false, + hide: true, + }, + { + label: "创建时间", + prop: "createTime", + display: false, + hide: true, + }, + { + label: "更新人", + prop: "updateUser", + display: false, + hide: true, + }, + { + label: "更新时间", + prop: "updateTime", + display: false, + hide: true, + }, + { + label: "状态", + prop: "status", + display: false, + hide: true, + }, + { + label: "是否已删除", + prop: "isDeleted", + display: false, + hide: true, + }, + { + label: "创建部门", + prop: "createDept", + display: false, + hide: true, + }, + { + label: "主键", + prop: "id", + display: false, + hide: true, + }, + { + label: "服务号", + prop: "serviceNumber", + }, + { + label: "订单自编号", + prop: "orderSelfNumbering", + }, + { + label: "商场名称", + prop: "mallName", + search: true, + }, + { + label: "仓库", + prop: "warehouse", + search: true, + }, + { + label: "品牌", + prop: "brand", + search: true, + }, + { + label: "服务类型", + prop: "typeService", + search: true, + }, + + ], + columnTakeOver: [ + { + label: "租户号", + prop: "tenantId", + display: false, + hide: true, + }, + { + label: "创建人", + prop: "createUser", + display: false, + hide: true, + }, + { + label: "创建时间", + prop: "createTime", + display: false, + hide: true, + }, + { + label: "更新人", + prop: "updateUser", + display: false, + hide: true, + }, + { + label: "更新时间", + prop: "updateTime", + display: false, + hide: true, + }, + { + label: "状态", + prop: "status", + display: false, + hide: true, + }, + { + label: "是否已删除", + prop: "isDeleted", + display: false, + hide: true, + }, + { + label: "创建部门", + prop: "createDept", + display: false, + hide: true, + }, + { + label: "主键", + prop: "id", + display: false, + hide: true, + }, + { + label: "顾客名字", + prop: "customerName", + }, + { + label: "顾客电话", + prop: "customerTelephone", + }, + { + label: "顾客地址", + prop: "customerAddress", + }, + ], + columnParcels: [ + { + label: "主键", + prop: "id", + display: false, + hide: true, + }, + { + label: "租户号", + prop: "tenantId", + display: false, + hide: true, + }, + { + label: "创建人", + prop: "createUser", + display: false, + hide: true, + }, + { + label: "创建时间", + prop: "createTime", + display: false, + hide: true, + }, + { + label: "更新人", + prop: "updateUser", + display: false, + hide: true, + }, + { + label: "更新时间", + prop: "updateTime", + display: false, + hide: true, + }, + { + label: "状态", + prop: "status", + display: false, + hide: true, + }, + { + label: "是否已删除", + prop: "isDeleted", + display: false, + hide: true, + }, + { + label: "创建部门", + prop: "createDept", + display: false, + hide: true, + }, + { + label: "预留1", + prop: "reserve1", + display: false, + hide: true, + }, + { + label: "预留2", + prop: "reserve2", + display: false, + hide: true, + }, + { + label: "预留3", + prop: "reserve3", + display: false, + hide: true, + }, + { + label: "预留4", + prop: "reserve4", + display: false, + hide: true, + }, + { + label: "预留5", + prop: "reserve5", + display: false, + hide: true, + }, + { + label: "仓库", + prop: "warehouse", + }, + { + label: "状态", + prop: "conditions", + search: true, + }, + { + label: "包条码", + prop: "packetBarCode", + }, + { + label: "货位信息", + prop: "goodsAllocation", + }, + { + label: "所在托盘", + prop: "pallet", + }, + { + label: "一级品", + prop: "firsts", + }, + { + label: "二级品", + prop: "second", + }, + { + label: "三级品", + prop: "thirdProduct", + }, + { + label: "物料", + prop: "material", + }, + { + label: "数量", + prop: "quantity", + }, + { + label: "车次号", + prop: "trainNumber", + }, + ], column: [ { label: "租户号", diff --git a/src/option/distribution/distributionStockArticleFrom.js b/src/option/distribution/distributionStockArticleFrom.js new file mode 100644 index 00000000..57b13282 --- /dev/null +++ b/src/option/distribution/distributionStockArticleFrom.js @@ -0,0 +1,146 @@ +export default { + expand: false, + index: true, + border: true, + selection: true, + column: [ + { + label: "主键", + prop: "id", + display: false, + hide: true, + }, + { + label: "租户号", + prop: "tenantId", + display: false, + hide: true, + }, + { + label: "创建人", + prop: "createUser", + display: false, + hide: true, + }, + { + label: "创建时间", + prop: "createTime", + display: false, + hide: true, + }, + { + label: "更新人", + prop: "updateUser", + display: false, + hide: true, + }, + { + label: "更新时间", + prop: "updateTime", + display: false, + hide: true, + }, + { + label: "状态", + prop: "status", + display: false, + hide: true, + }, + { + label: "是否已删除", + prop: "isDeleted", + display: false, + hide: true, + }, + { + label: "创建部门", + prop: "createDept", + display: false, + hide: true, + }, + { + label: "预留1", + prop: "reserve1", + display: false, + hide: true, + }, + { + label: "预留2", + prop: "reserve2", + display: false, + hide: true, + }, + { + label: "预留3", + prop: "reserve3", + display: false, + hide: true, + }, + { + label: "预留4", + prop: "reserve4", + display: false, + hide: true, + }, + { + label: "预留5", + prop: "reserve5", + display: false, + hide: true, + }, + { + label: "仓库", + prop: "warehouse", + }, + { + label: "状态", + prop: "conditions", + search: true, + }, + { + label: "包条码", + prop: "packetBarCode", + }, + { + label: "货位信息", + prop: "goodsAllocation", + }, + { + label: "所在托盘", + prop: "pallet", + }, + { + label: "一级品", + prop: "firsts", + }, + { + label: "二级品", + prop: "second", + }, + { + label: "三级品", + prop: "thirdProduct", + }, + { + label: "物料", + prop: "material", + }, + { + label: "数量", + prop: "quantity", + }, + { + label: "转库存品数量", + prop: "inventoryQuantity", + }, + { + label: "车次号", + prop: "trainNumber", + }, + { + label: "在库订单ID", + prop: "stockArticleId", + hide: true, + }, + ] +} diff --git a/src/router/views/index.js b/src/router/views/index.js index dfcabe50..d12b2ab8 100644 --- a/src/router/views/index.js +++ b/src/router/views/index.js @@ -548,6 +548,44 @@ export default [ }, ], }, + { + path: '/distribution/inventory/distributionStockArticleFrom', + component: Layout, + redirect: '/inventory/distributionStockArticleFrom', + children: [ + { + path: '/distribution/inventory/distributionStockArticleFrom', + name: '转库存品', + meta: { + i18n: 'dict', + }, + props: route => ({ + name: route.query.name, + id: route.query.id + }), + component: () => import('@/views/distribution/inventory/distributionStockArticleFrom.vue'), + }, + ], + }, + { + path: '/distribution/inventory/distributionStockArticleDetails', + component: Layout, + redirect: '/inventory/distributionStockArticleDetails', + children: [ + { + path: '/distribution/inventory/distributionStockArticleDetails', + name: '查询订单详情', + meta: { + i18n: 'dict', + }, + props: route => ({ + name: route.query.name, + id: route.query.id + }), + component: () => import('@/views/distribution/inventory/distributionStockArticleDetails.vue'), + }, + ], + }, // { // path: '/distribution/inventory/distributionPrints', // component: Layout, diff --git a/src/views/basicdata/brand/basicClient.vue b/src/views/basicdata/brand/basicClient.vue index a19f3c69..c7d7d090 100644 --- a/src/views/basicdata/brand/basicClient.vue +++ b/src/views/basicdata/brand/basicClient.vue @@ -104,12 +104,14 @@ {{ row.fileName }} diff --git a/src/views/distribution/inventory/distributionStockArticle.vue b/src/views/distribution/inventory/distributionStockArticle.vue index eb5404be..40839947 100644 --- a/src/views/distribution/inventory/distributionStockArticle.vue +++ b/src/views/distribution/inventory/distributionStockArticle.vue @@ -425,22 +425,32 @@ export default { this.$message.warning("请选择至少一条数据"); return; } - this.$confirm("确定将选择的订单转为库存品吗?", { - confirmButtonText: "确定", - cancelButtonText: "取消", - type: "warning" - }) - .then(() => { - return addStock(this.ids); - }) - .then(() => { - this.selectionClear(); - this.onLoad(this.page); - this.$message({ - type: "success", - message: "操作成功!" - }); - }); + this.$router.push({ + path: '/distribution/inventory/distributionStockArticleFrom', + query: { + id : this.ids, + name : "转库存单" + } + }); + + + // + // this.$confirm("确定将选择的订单转为库存品吗?", { + // confirmButtonText: "确定", + // cancelButtonText: "取消", + // type: "warning" + // }) + // .then(() => { + // return addStock(this.ids); + // }) + // .then(() => { + // this.selectionClear(); + // this.onLoad(this.page); + // this.$message({ + // type: "success", + // message: "操作成功!" + // }); + // }); }, //确定通知提货按钮 callFordelivery(inde){ @@ -494,7 +504,6 @@ export default { query:{ id: this.ids, - } }); }, @@ -635,12 +644,21 @@ export default { }); }, handleView (row) { - this.title = '查看' - this.view = true; - this.box = true; - getDetail(row.id).then(res => { - this.form = res.data.data; - }); + // this.title = '查看' + // this.view = true; + // this.box = true; + // getDetail(row.id).then(res => { + // this.form = res.data.data; + // }); + this.$router.push({ + path: '/distribution/inventory/distributionStockArticleDetails', + query: { + id : row.id, + name: "详情"+row.orderSelfNumbering + }, + }) + + }, handleDelete () { if (this.selectionList.length === 0) { diff --git a/src/views/distribution/inventory/distributionStockArticleDetails.vue b/src/views/distribution/inventory/distributionStockArticleDetails.vue new file mode 100644 index 00000000..bcb5d67f --- /dev/null +++ b/src/views/distribution/inventory/distributionStockArticleDetails.vue @@ -0,0 +1,570 @@ + + + + diff --git a/src/views/distribution/inventory/distributionStockArticleFrom.vue b/src/views/distribution/inventory/distributionStockArticleFrom.vue new file mode 100644 index 00000000..f23c99fc --- /dev/null +++ b/src/views/distribution/inventory/distributionStockArticleFrom.vue @@ -0,0 +1,232 @@ + + +