From 4c76752793619b8e07b724e89447986260fdd41d Mon Sep 17 00:00:00 2001 From: "Mr.sun" <2290907227@qq.com> Date: Fri, 12 Apr 2024 11:02:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E9=83=A8=E5=88=86=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=20=20=E5=A2=9E=E5=8A=A0=E6=97=B6=E9=97=B4=E6=8E=92?= =?UTF-8?q?=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + .../components/orderDetails.vue | 350 ++++++++-------- .../dispatchDistribute/waveArrangement.vue | 112 +++-- .../dispatchDistribute/waveDistribution.vue | 392 +++++++++--------- .../dispatchDistribute/waveState.vue | 155 ++++--- .../inventory/InventoryEntry.vue | 3 - src/views/libraryManage/inventory/config.js | 22 +- .../libraryManage/inventory/inventory.vue | 1 + .../inventoryLock/examine/config.js | 15 +- src/views/taskManagement/index.vue | 28 ++ src/views/warehousing/receiving/config.js | 32 +- 11 files changed, 556 insertions(+), 555 deletions(-) diff --git a/.gitignore b/.gitignore index dd0eecd..f5d0d73 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,4 @@ selenium-debug.log package-lock.json yarn.lock +vue.config.js diff --git a/src/views/exWarehouse/dispatchDistribute/components/orderDetails.vue b/src/views/exWarehouse/dispatchDistribute/components/orderDetails.vue index 184f80e..e80996e 100644 --- a/src/views/exWarehouse/dispatchDistribute/components/orderDetails.vue +++ b/src/views/exWarehouse/dispatchDistribute/components/orderDetails.vue @@ -10,17 +10,22 @@ @opened="opened" > - +
- 整单冲红 + 整单冲红 所选明细冲红 + >所选明细冲红
@@ -56,7 +61,10 @@ :prop="`data.${scope.row.index}.reason`" :rules="tableForm.rules.reason" > - + diff --git a/src/views/exWarehouse/dispatchDistribute/waveState.vue b/src/views/exWarehouse/dispatchDistribute/waveState.vue index 83f77b0..c659412 100644 --- a/src/views/exWarehouse/dispatchDistribute/waveState.vue +++ b/src/views/exWarehouse/dispatchDistribute/waveState.vue @@ -153,12 +153,12 @@ export default { return _that.getDictLabel(value, _that.dict.type.out_order_status) } }, - { - label: '出库优先级', - prop: 'priority', - istrue: true, - width: '100' - }, + // { + // label: '出库优先级', + // prop: 'priority', + // istrue: true, + // width: '100' + // }, { label: '业主编号', prop: 'consignorCode', @@ -188,71 +188,71 @@ export default { label: '下单时间', prop: 'orderDate', istrue: true - }, - { - label: '整件数', - prop: 'totalCaseQry', - istrue: true - }, - { - label: '折合件数', - prop: 'combineNumber', - istrue: true - }, - { - label: '品规数', - prop: 'goodsNumber', - 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: 'tempPlatformStartName', - istrue: true - }, - { - label: '暂存区终止位置', - prop: 'tempPlatformEndName', - istrue: true } + // { + // label: '整件数', + // prop: 'totalCaseQry', + // istrue: true + // }, + // { + // label: '折合件数', + // prop: 'combineNumber', + // istrue: true + // } + // { + // label: '品规数', + // prop: 'goodsNumber', + // 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: 'tempPlatformStartName', + // istrue: true + // }, + // { + // label: '暂存区终止位置', + // prop: 'tempPlatformEndName', + // istrue: true + // } ], curRow: {} } @@ -307,17 +307,10 @@ export default { this.loading = false }) }, - toQuery() { - // this.paging.page = 1; - // this.queryTable(); - if (Object.prototype.toString.call(val) === '[object Object]') { - this.paging.size = val.size - this.queryTable() - } else { - // console.log(val) - this.paging.page = val - this.queryTable() - } + toQuery(val) { + // console.log(1111) + this.paging.page = 1 + this.queryTable() }, toReset() { this.query = {} diff --git a/src/views/libraryManage/inventory/InventoryEntry.vue b/src/views/libraryManage/inventory/InventoryEntry.vue index 98ad8d0..6896083 100644 --- a/src/views/libraryManage/inventory/InventoryEntry.vue +++ b/src/views/libraryManage/inventory/InventoryEntry.vue @@ -305,9 +305,6 @@ export default { const { rows } = await entrySave(arr2) this.$message.success('操作成功') this.queryTable() - // } else { - // this.$message.warning("必填项不能为0"); - // } } }, // 取消盘点 diff --git a/src/views/libraryManage/inventory/config.js b/src/views/libraryManage/inventory/config.js index 9207b8d..b9458c6 100644 --- a/src/views/libraryManage/inventory/config.js +++ b/src/views/libraryManage/inventory/config.js @@ -71,6 +71,7 @@ export function tableConfig() { label: "单位", prop: "unit", istrue: true, + "min-width": 100, // filter(row, value) { // return getDictLabel(value, _that.dict.type.goods_unit); @@ -238,6 +239,17 @@ export function tableConfig() { prop: "goodName", istrue: true, }, + { + label: "批号", + prop: "batchNo", + istrue: true, + }, + + { + label: "库存数量", + prop: "quantity", + istrue: true, + }, { label: "货位分组", prop: "locationGroup", @@ -259,17 +271,7 @@ export function tableConfig() { prop: "isDeep", istrue: true, }, - { - label: "批号", - prop: "batchNo", - istrue: true, - }, - { - label: "库存数量", - prop: "quantity", - istrue: true, - }, { label: "单位", prop: "unit", diff --git a/src/views/libraryManage/inventory/inventory.vue b/src/views/libraryManage/inventory/inventory.vue index cd24247..352a0a3 100644 --- a/src/views/libraryManage/inventory/inventory.vue +++ b/src/views/libraryManage/inventory/inventory.vue @@ -193,6 +193,7 @@ export default { }, async created() { this.tableConfig = await this.getTableHeaderCom('busin_inventory', tableConfig.call(this)) + console.log(this.tableConfig) }, watch: { //侦听 locationCode的变化 diff --git a/src/views/libraryManage/inventoryLock/examine/config.js b/src/views/libraryManage/inventoryLock/examine/config.js index f4d6868..748d44c 100644 --- a/src/views/libraryManage/inventoryLock/examine/config.js +++ b/src/views/libraryManage/inventoryLock/examine/config.js @@ -46,6 +46,13 @@ export function tableConfig() { "min-width": 120, "show-overflow-tooltip": true, }, + { + label: "批号", + prop: "batchNo", + istrue: true, + "min-width": 120, + "show-overflow-tooltip": true, + }, { label: "商品规格", prop: "specifications", @@ -72,13 +79,7 @@ export function tableConfig() { prop: "locationName", istrue: true, }, - { - label: "批号", - prop: "batchNo", - istrue: true, - "min-width": 120, - "show-overflow-tooltip": true, - }, + ], }; } diff --git a/src/views/taskManagement/index.vue b/src/views/taskManagement/index.vue index d7f454b..baf7130 100644 --- a/src/views/taskManagement/index.vue +++ b/src/views/taskManagement/index.vue @@ -365,6 +365,7 @@ export default { label: '任务创建时间', prop: 'createTime', istrue: true, + sortable: true, width: '180px' }, { @@ -576,6 +577,20 @@ export default { this.getList() } }, + //时间戳 + formatStringToTimestamp(formattedString) { + // 解析格式化时间字符串为Date对象 + let date = new Date(formattedString) + + // 检查Date对象是否有效 + if (!isNaN(date.getTime())) { + // 获取时间戳 + let timestamp = date.getTime() + return timestamp + } else { + throw new Error('Invalid formatted string') + } + }, /** 查询区域列表 */ getList() { this.loading = true @@ -586,7 +601,15 @@ export default { this.queryParams.createTimeS = null this.queryParams.createTimeE = null } + queryTaskManagement(this.queryParams).then((res) => { + // res.rows.sort((a, b) => { + // a.createTime < b.createTime ? 1 : -1 + // }) + res.rows = res.rows.sort((a, b) => { + return this.formatStringToTimestamp(b['createTime']) - this.formatStringToTimestamp(a['createTime']) + }) + console.log(res.rows) this.cheshiList = res.rows this.paging.total = res.total this.loading = false @@ -598,6 +621,11 @@ export default { }) }) }, + compare(prop) { + return function (a, b) { + return b[prop] - a[prop] //降序 + } + }, // 取消按钮 cancel() { this.open = false diff --git a/src/views/warehousing/receiving/config.js b/src/views/warehousing/receiving/config.js index 81f9abc..6dee37b 100644 --- a/src/views/warehousing/receiving/config.js +++ b/src/views/warehousing/receiving/config.js @@ -93,24 +93,24 @@ export function tableConfig() { prop: "ableQty", istrue: true, }, - { - label: "存储条件", - prop: "bgStorageConditions", - istrue: true, + // { + // label: "存储条件", + // prop: "bgStorageConditions", + // istrue: true, - filter(row, value) { - return getDictLabel(value, _that.dict.type.goods_storage_conditions); - }, - }, - { - label: "产品分类", - prop: "bgClassify", - istrue: true, + // filter(row, value) { + // return getDictLabel(value, _that.dict.type.goods_storage_conditions); + // }, + // }, + // { + // label: "产品分类", + // prop: "bgClassify", + // istrue: true, - filter(row, value) { - return getDictLabel(value, _that.dict.type.goods_classify); - }, - }, + // filter(row, value) { + // return getDictLabel(value, _that.dict.type.goods_classify); + // }, + // }, { label: "商品编号", prop: "bgGoodNo",