From a8e277c25afe1c94a885b9ad2e142c24ece79036 Mon Sep 17 00:00:00 2001 From: xzg <4727863@qq.com> Date: Wed, 29 Nov 2023 22:58:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=9C=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/aftersales/aftersalesWorkOrder.js | 27 + src/option/aftersales/aftersalesWorkOrder.js | 1 + src/option/aftersales/vueTvemp.js | 385 ++++ src/utils/util.js | 32 + src/views/aftersales/VueTemp.vue | 1702 +++++++++++++++-- src/views/aftersales/aftersalesWorkOrder.vue | 2 +- .../checkInventoryTask/createTask.vue | 93 +- .../checkInventoryTask/createTaskt.vue | 89 +- 8 files changed, 2071 insertions(+), 260 deletions(-) create mode 100644 src/option/aftersales/vueTvemp.js diff --git a/src/api/aftersales/aftersalesWorkOrder.js b/src/api/aftersales/aftersalesWorkOrder.js index 8a3e8dde..4fcc8856 100644 --- a/src/api/aftersales/aftersalesWorkOrder.js +++ b/src/api/aftersales/aftersalesWorkOrder.js @@ -83,4 +83,31 @@ export const $_getList = (params) => { method: 'get', params }) +} + + +// 首页工单新增 +export const $_submit = (data) => { + return request({ + url: '/api/logpm-aftersales/aftersalesWorkOrder/submit', + method: 'post', + data + }) +} + +// 首页查看详情 +export const $_getDetail = (params) => { + return request({ + url: '/api/logpm-aftersales/aftersalesWorkOrder/detail', + method: 'get', + params + }) +} +// 首页删除 +export const $_remove = (params) => { + return request({ + url: '/api/logpm-aftersales/aftersalesWorkOrder/remove', + method: 'post', + params + }) } \ No newline at end of file diff --git a/src/option/aftersales/aftersalesWorkOrder.js b/src/option/aftersales/aftersalesWorkOrder.js index e537ae60..88467762 100644 --- a/src/option/aftersales/aftersalesWorkOrder.js +++ b/src/option/aftersales/aftersalesWorkOrder.js @@ -194,3 +194,4 @@ export default { } ] } + diff --git a/src/option/aftersales/vueTvemp.js b/src/option/aftersales/vueTvemp.js new file mode 100644 index 00000000..e405affa --- /dev/null +++ b/src/option/aftersales/vueTvemp.js @@ -0,0 +1,385 @@ +export const columnList = [ + { + prop: '', + label: '复选框', + type: 0, + width: 55, + fixed: true, + }, + { + prop: '', + label: '序号', + type: 12, + values: '', + width: 55, + fixed: true, + }, + { + prop: 'workOrderTypeName',//workOrderType + label: '异常类型', + type: 3, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + { + prop: 'discoveryNodeName',//discoveryNode + label: '发现节点', + type: 3, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + { + prop: 'workOrderNumber', + label: '异常工单号', + type: 2, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + { + prop: 'waybillNumber', + label: '运单号', + type: 2, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + { + prop: 'orderCode', + label: '订单自编号', + type: 2, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + { + prop: 'trainNumber', + label: '车次号', + type: 2, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + { + prop: 'first', + label: '一级品', + type: 2, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + { + prop: 'secondary', + label: '二级品', + type: 2, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + { + prop: 'vehicleRoute', + label: '车辆线路', + type: 2, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + { + prop: 'deliverGoodsTime', + label: '送货时间', + type: 2, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + + { + prop: 'discoveryTime', + label: '发现时间', + type: 2, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + { + prop: 'warehousingTime', + label: '入库时间', + type: 2, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + { + prop: 'waybillMall', + label: '运单商场', + type: 2, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + { + prop: 'deliveryTime', + label: '配送时间', + type: 2, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + { + prop: 'deliveryDriver', + label: '配送司机', + type: 2, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + + { + prop: 'workOrderStatus', + label: '工单状态', + type: 2, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + { + prop: 'customerServiceName', + label: '归属客服名称', + type: 2, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + { + prop: 'overTime', + label: '完结时间', + type: 2, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + { + prop: 'problemDescription', + label: '异常问题描述', + type: 2, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + { + prop: 'personResponsible', + label: '责任人(库内作业环节)', + type: 2, + values: '', + width: '170', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + { + prop: 'processNumber', + label: '钉钉流程号', + type: 2, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + { + prop: 'reviewedBy', + label: '审核人', + type: 2, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + { + prop: 'auditTime', + label: '审核时间', + type: 2, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + { + prop: 'entryTime', + label: '财务入账时间', + type: 2, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + { + prop: 'remarks', + label: '备注', + type: 2, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + + { + prop: 'createUserName', + label: '操作', + type: 6, + values: '', + width: '200', + checkarr: [], + fixed: 'right', + sortable: false, + }, +] + +export const recordList = [ + { + prop: 'entryTime', + label: '跟进时间', + type: 1, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + { + prop: 'entryTime', + label: '跟进仓库', + type: 1, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + { + prop: 'entryTime', + label: '跟进人', + type: 1, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + { + prop: 'entryTime', + label: '处理结果', + type: 1, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + { + prop: 'entryTime', + label: '备注', + type: 1, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + { + prop: 'entryTime', + label: '图片', + type: 1, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + { + prop: 'entryTime', + label: '更新日志', + type: 1, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, +] \ No newline at end of file diff --git a/src/utils/util.js b/src/utils/util.js index 3e15640d..a9e5b1a9 100644 --- a/src/utils/util.js +++ b/src/utils/util.js @@ -487,3 +487,35 @@ export const setNodeHeight = (_node, _height) => { console.log('_node :>> ', _defaultHeight - _node.getBoundingClientRect().top - 65 + 'px'); } }; + +/** + * 下拉框搜索公共函数processRowProperty(index, row, details); + * @param {string} index index参数 + * @param {object} row row (表头参数) + * @param {object} details details (搜索参数) + */ +// +const updateDetailQuery = (index, propName, obj) => { + // 更新或删除查询参数 + if (index) { + obj[propName] = index; + } else { + delete obj[propName]; + } +}; +export const processRowProperty = (index, row, details) => { + const nameRegex = /(\w+)Name$/; // 捕获以'Name'结尾的属性名 + const match = row.prop.match(nameRegex); + + // 如果属性以'Name'结尾,则更新相应的查询参数 + if (match) { + const basePropName = match[1]; // 获取不包含'Name'的属性名 + updateDetailQuery(index, basePropName, details.query); + } else { + updateDetailQuery(index, row.prop, details.query); + } + // 如果提供的index为假值,从query中删除原始属性 + if (!index) { + delete details.query[row.prop]; + } +}; \ No newline at end of file diff --git a/src/views/aftersales/VueTemp.vue b/src/views/aftersales/VueTemp.vue index 63aff413..782e94aa 100644 --- a/src/views/aftersales/VueTemp.vue +++ b/src/views/aftersales/VueTemp.vue @@ -1,145 +1,964 @@