From 63306f944c4709f3444c42d67d4542a37ec9028a Mon Sep 17 00:00:00 2001 From: qb <1191961160@qq.com> Date: Tue, 12 Dec 2023 18:51:15 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=8F=96=E6=B6=88?= =?UTF-8?q?=E5=88=B0=E8=BD=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../distribution/VehicleArrivalManagement.js | 16 +- src/api/distribution/truckLoadingDetails.js | 12 + src/option/distribution/TripartiteTransfer.js | 319 ++++++++++-------- .../artery/TripartiteTransfer.vue | 47 ++- .../artery/TripartiteTransferDetails.vue | 12 +- .../artery/VehicleArrivalManagement.vue | 50 ++- .../distribution/artery/VehicleStowage.vue | 23 +- .../artery/truckLoadingDetails.vue | 85 +++-- 8 files changed, 354 insertions(+), 210 deletions(-) create mode 100644 src/api/distribution/truckLoadingDetails.js diff --git a/src/api/distribution/VehicleArrivalManagement.js b/src/api/distribution/VehicleArrivalManagement.js index a130559b..378c92a9 100644 --- a/src/api/distribution/VehicleArrivalManagement.js +++ b/src/api/distribution/VehicleArrivalManagement.js @@ -15,7 +15,7 @@ export const postloadArriveCarsPageList = (page, params) => { }; /** - * 到车管理分页列表 + * 到车 */ export const postloadArriveCarByLoadId = (page, params) => { return request({ @@ -27,3 +27,17 @@ export const postloadArriveCarByLoadId = (page, params) => { }, }); }; + +/** + * 取消到车 + */ +export const postloadCancelArriveCarByLoadId = (page, params) => { + return request({ + url: '/api/logpm-trunkline/carsLoad/cancelArriveCarByLoadId', + method: 'post', + data: { + ...page, + ...params, + }, + }); +}; diff --git a/src/api/distribution/truckLoadingDetails.js b/src/api/distribution/truckLoadingDetails.js new file mode 100644 index 00000000..3b65ded5 --- /dev/null +++ b/src/api/distribution/truckLoadingDetails.js @@ -0,0 +1,12 @@ +import request from '@/axios'; + +/** + * 初始化获取配载信息 + */ +export const postLoadingDetail = (data = {}) => { + return request({ + url: '/api/logpm-trunkline/carsLoad/loadingDetail', + method: 'post', + data, + }); +}; diff --git a/src/option/distribution/TripartiteTransfer.js b/src/option/distribution/TripartiteTransfer.js index ebbad6bc..d088eca4 100644 --- a/src/option/distribution/TripartiteTransfer.js +++ b/src/option/distribution/TripartiteTransfer.js @@ -246,9 +246,9 @@ export const detailsColumnList = [ fixed: true, }, { - prop: 'orderCode', + prop: 'waybillNo', label: '运单号', - type: 6, + type: 1, values: '', width: '150', checkarr: [], @@ -257,9 +257,9 @@ export const detailsColumnList = [ head: false, }, { - prop: 'orderCode', - label: '合同号', - type: 6, + prop: 'loadCode', + label: '配载批次', + type: 1, values: '', width: '150', checkarr: [], @@ -268,37 +268,48 @@ export const detailsColumnList = [ head: false, }, { - prop: 'orderPackageCode', - label: '包条码', - type: 6, - values: '', - width: '200', - checkarr: [], - fixed: false, - sortable: true, - }, - { - prop: 'driverName', - label: '计划目的地', + prop: 'orderCode', + label: '合同号', type: 1, values: '', - width: '130', + width: '150', checkarr: [], - fixed: false, + fixed: true, sortable: true, + head: false, }, { - prop: 'driverPhone', - label: '目的地', + prop: 'scanCode', + label: '包条码/产品名称', type: 1, values: '', - width: '130', + width: '200', checkarr: [], fixed: false, sortable: true, }, - { - prop: 'warehouseName', + // { + // prop: 'driverName', + // label: '计划目的地', + // type: 1, + // values: '', + // width: '130', + // checkarr: [], + // fixed: false, + // sortable: true, + // }, + // { + // prop: 'driverPhone', + // label: '目的地', + // type: 1, + // values: '', + // width: '130', + // checkarr: [], + // fixed: false, + // sortable: true, + // }, + { + prop: 'scanStatusName', label: '装卸状态', type: 1, values: '', @@ -307,19 +318,19 @@ export const detailsColumnList = [ fixed: false, sortable: true, }, + // { + // prop: 'lineNameTitle', + // label: '订单来源', + // type: 1, + // values: '', + // width: '130', + // checkarr: [], + // fixed: false, + // sortable: true, + // }, { - prop: 'lineNameTitle', - label: '订单来源', - type: 1, - values: '', - width: '130', - checkarr: [], - fixed: false, - sortable: true, - }, - { - prop: 'nodeNub', - label: '装车仓库', + prop: 'trayName', + label: '托盘名称', type: 1, values: '', width: '130', @@ -328,8 +339,8 @@ export const detailsColumnList = [ sortable: true, }, { - prop: 'startTime', - label: '扫码时间', + prop: 'trayCode', + label: '托盘码', type: 1, values: '', width: '130', @@ -337,9 +348,59 @@ export const detailsColumnList = [ fixed: false, sortable: true, }, + // { + // prop: 'nodeNub', + // label: '装车仓库', + // type: 1, + // values: '', + // width: '130', + // checkarr: [], + // fixed: false, + // sortable: true, + // }, + // { + // prop: 'startTime', + // label: '扫码时间', + // type: 1, + // values: '', + // width: '130', + // checkarr: [], + // fixed: false, + // sortable: true, + // }, + // { + // prop: 'endTime', + // label: '装卸仓库', + // type: 1, + // values: '', + // width: '130', + // checkarr: [], + // fixed: false, + // sortable: true, + // }, + // { + // prop: 'planVolume', + // label: '卸车时间', + // type: 1, + // values: '', + // width: '130', + // checkarr: [], + // fixed: false, + // sortable: true, + // }, + // { + // prop: 'billladingStatus', + // label: '装车类型', + // type: 1, + // values: '', + // width: '130', + // checkarr: [], + // fixed: false, + // sortable: true, + // }, { - prop: 'endTime', - label: '装卸仓库', + prop: 'typeName', + label: '类型', type: 1, values: '', width: '130', @@ -348,8 +409,8 @@ export const detailsColumnList = [ sortable: true, }, { - prop: 'planVolume', - label: '卸车时间', + prop: 'isDataName', + label: '有无数据', type: 1, values: '', width: '130', @@ -358,8 +419,8 @@ export const detailsColumnList = [ sortable: true, }, { - prop: 'billladingStatus', - label: '装车类型', + prop: 'isAbnormalName', + label: '是否异常', type: 1, values: '', width: '130', @@ -377,96 +438,86 @@ export const detailsColumnList = [ fixed: false, sortable: true, }, - { - prop: 'totalFee', - label: '是否齐套', - type: 1, - values: '', - width: '150', - checkarr: [], - fixed: false, - sortable: true, - }, - { - prop: 'remark', - label: '托盘码', - type: 1, - values: '', - width: '150', - checkarr: [], - fixed: false, - sortable: true, - }, - { - prop: 'carrierName', - label: '一级品类', - type: 1, - values: '', - width: '130', - checkarr: [], - fixed: false, - sortable: true, - }, - { - prop: 'waybillCount', - label: '二级品类', - type: 1, - values: '', - width: '130', - checkarr: [], - fixed: false, - sortable: true, - }, - { - prop: 'totalNum', - label: '三级品类', - type: 1, - values: '', - width: '130', - checkarr: [], - fixed: false, - sortable: true, - }, - { - prop: 'totalWeight', - label: '物料名称', - type: 1, - values: '', - width: '130', - checkarr: [], - fixed: false, - sortable: true, - }, - { - prop: 'totalVolume', - label: '装车扫描人', - type: 1, - values: '', - width: '130', - checkarr: [], - fixed: false, - sortable: true, - }, - { - prop: 'createUserName', - label: '卸车人', - type: 1, - values: '', - width: '130', - checkarr: [], - fixed: false, - sortable: true, - }, - { - prop: 'totalWeight', - label: '同步状态', - type: 1, - values: '', - width: '130', - checkarr: [], - fixed: false, - sortable: true, - }, + // { + // prop: 'totalFee', + // label: '是否齐套', + // type: 1, + // values: '', + // width: '150', + // checkarr: [], + // fixed: false, + // sortable: true, + // }, + // { + // prop: 'carrierName', + // label: '一级品类', + // type: 1, + // values: '', + // width: '130', + // checkarr: [], + // fixed: false, + // sortable: true, + // }, + // { + // prop: 'waybillCount', + // label: '二级品类', + // type: 1, + // values: '', + // width: '130', + // checkarr: [], + // fixed: false, + // sortable: true, + // }, + // { + // prop: 'totalNum', + // label: '三级品类', + // type: 1, + // values: '', + // width: '130', + // checkarr: [], + // fixed: false, + // sortable: true, + // }, + // { + // prop: 'totalWeight', + // label: '物料名称', + // type: 1, + // values: '', + // width: '130', + // checkarr: [], + // fixed: false, + // sortable: true, + // }, + // { + // prop: 'totalVolume', + // label: '装车扫描人', + // type: 1, + // values: '', + // width: '130', + // checkarr: [], + // fixed: false, + // sortable: true, + // }, + // { + // prop: 'createUserName', + // label: '卸车人', + // type: 1, + // values: '', + // width: '130', + // checkarr: [], + // fixed: false, + // sortable: true, + // }, + // { + // prop: 'totalWeight', + // label: '同步状态', + // type: 1, + // values: '', + // width: '130', + // checkarr: [], + // fixed: false, + // sortable: true, + // }, ]; /** 运单池列表 */ diff --git a/src/views/distribution/artery/TripartiteTransfer.vue b/src/views/distribution/artery/TripartiteTransfer.vue index 210a3202..43e809be 100644 --- a/src/views/distribution/artery/TripartiteTransfer.vue +++ b/src/views/distribution/artery/TripartiteTransfer.vue @@ -138,11 +138,6 @@ - - -
选择数: , 运单数: , 件数: , 重量: , 体积: , 提货费: ,
-
总计: 总数: , 运单数: , 件数: , 重量: , 体积: , 提货费: ,
-
@@ -1000,27 +995,31 @@ const handleShowConfirm = () => { /** 提交到达 */ const submitConfirmArrive = async () => { - console.log('details.selectionList :>> ', details.selectionList); - console.log( - 'details.selectionList.map(val => val.id) :>> ', - details.selectionList.map(val => val.id) - ); - const submitData = { - loadId: details.selectionList.map(val => val.id).join(','), - ...details.form, - }; - - const res = await postArriveCars(submitData); - const { code } = res.data; - if (code !== 200) { - return; + if (!details.form.arriveDateStr) { + return ElMessage({ + message: '请选择到达日期', + type: 'warning', + }); } - ElMessage({ - type: 'success', - message: '到达成功', - }); + try { + const submitData = { + loadId: details.selectionList.map(val => val.id).join(','), + ...details.form, + }; - onLoad(); + const res = await postArriveCars(submitData); + const { code } = res.data; + if (code !== 200) { + return; + } + ElMessage({ + type: 'success', + message: '到达成功', + }); + } catch (error) { + } finally { + onLoad(); + } }; /** 发车 */ diff --git a/src/views/distribution/artery/TripartiteTransferDetails.vue b/src/views/distribution/artery/TripartiteTransferDetails.vue index e25d4f28..7fcd9518 100644 --- a/src/views/distribution/artery/TripartiteTransferDetails.vue +++ b/src/views/distribution/artery/TripartiteTransferDetails.vue @@ -20,10 +20,9 @@ remote reserve-keyword placeholder="中转承运商" - @change="val => carrierNameChange(val, index)" + @change="val => carrierNameChange()" :remote-method="remoteMethod" :loading="details.loadingObj.loading" - :disabled="index === 0" > ({ driverListByName: [], /** 被选中在调度池的订单列表 */ orderCodeList: [], + + }); const { @@ -654,7 +656,7 @@ const clearSelectionList = () => { }; /** 展开列表控件 */ -const showdrawer = (_flag?: boolean, _type?: string) => { +const showdrawer = (_flag?: boolean, _type?: number) => { switch (_type) { default: console.log('123 :>> ', 123); diff --git a/src/views/distribution/artery/VehicleArrivalManagement.vue b/src/views/distribution/artery/VehicleArrivalManagement.vue index 1917614b..f4807764 100644 --- a/src/views/distribution/artery/VehicleArrivalManagement.vue +++ b/src/views/distribution/artery/VehicleArrivalManagement.vue @@ -91,6 +91,9 @@ >装载清单 到达 + 取消到达 中途到达卸车 @@ -179,7 +182,7 @@ @@ -317,6 +320,7 @@ import { columnList, detailsColumnList } from '@/option/distribution/VehicleArri import { postloadArriveCarsPageList, postloadArriveCarByLoadId, + postloadCancelArriveCarByLoadId, } from '@/api/distribution/VehicleArrivalManagement'; import { useRouter } from 'vue-router'; import { ElMessage, ElMessageBox } from 'element-plus'; @@ -562,13 +566,21 @@ const beforeClose = done => { /** 显示装车详情 */ const handleShowTruckLoadingDetails = ({ row }) => { - details.popUpShow.truckLoadingDetailVisited = true; - - nextTick(() => { - // 获取弹窗内表格元素节点, 并设置高度 - const _node = document.querySelector('.truckLoadingDetailPopUp .maboxhi'); - _node.style.height = '550px'; + $router.push({ + path: '/distribution/artery/truckLoadingDetails', + query: { + loadId: row.id, + name: row.carsNo + '--' + '装车明细', + }, }); + + // details.popUpShow.truckLoadingDetailVisited = true; + + // nextTick(() => { + // // 获取弹窗内表格元素节点, 并设置高度 + // const _node = document.querySelector('.truckLoadingDetailPopUp .maboxhi'); + // _node.style.height = '550px'; + // }); }; /** 显示对比报表 */ @@ -599,6 +611,30 @@ const handleArrive = async () => { onLoad(); }; + +/** 到车 */ +const handleCloseArrive = async () => { + console.log( + 'details.selectionList.map(val => val.id) :>> ', + details.selectionList.map(val => val.id) + ); + const submitData = { + loadId: details.selectionList.map(val => val.id).join(','), + ...details.form, + }; + + const res = await postloadCancelArriveCarByLoadId(submitData); + const { code } = res.data; + if (code !== 200) { + return; + } + ElMessage({ + type: 'success', + message: '取消成功', + }); + + onLoad(); +}; diff --git a/src/views/aftersales/aftersalesWorkOrderAdd.vue b/src/views/aftersales/aftersalesWorkOrderAdd.vue index aea21553..ae0326a7 100644 --- a/src/views/aftersales/aftersalesWorkOrderAdd.vue +++ b/src/views/aftersales/aftersalesWorkOrderAdd.vue @@ -1,50 +1,92 @@ - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - {{ - item.txt - }} - - -
- - - - - - - - - - - - -
- - - -
+
+
+ + + + -
-
- 处理方 - - - -
-
-
-
- 责任方 - - - -
-
+ + + -
-
- 处理结果 - - + + + + + + + + + + + + + + + + + + + + + - -
-
+ -
-
处理结果-理赔金额
-
-
- {{ item.name }}: - + -
支付方式
+ +
+
+ + + +
+ +
+
+ 处理方 + + + +
+
+ + + +
+
+ 运损节点 + + + +
+
-
- - 请选择支付方式 - -
- - + + + +
+
+ 添加信息 +
+
+
+
+ 责任方: + + + + + + + + + + +
+ +
+ 责任人: + + + +
+
+ 占比: + +
+
+ 说明: + +
+
+
+ + 移除 + +
+
+
+ 公司占比:{{ companyProportion }} +
+
+
+
+ +
+ + + + +
+ 添加赔款方 + 添加收款方 +
+ +
+ {{ item.state == 0 ? '赔款方' : '收款方' }}{{ item.cld }} +
+ +
+
+ +
+
+ +
+ +
+ +
+
+ 财务处理 + + 移除 + +
+
+
+ + 赔款金额总和:{{ + TotalamountCompensation + }} + + 收款金额总和:{{ TotalamountReceived }} +
+
+
+ +
+
+ 处理结果 + + + +
+
+ +
+
处理结果-理赔金额
+
+
+ {{ item.name }}: + +
+ {{ item.payment ? item.text : '支付方式' }} +
+
+
+ +
+ 总金额:{{ TotalClaimAmount }} +
+ - - -
- - 理赔支付时间 - -
- - -
-
- - - - - - -
- - - -
+ +
--> - -
- 图片 - - - + + 理赔支付时间 + +
+ + +
+
+ + + + - - Preview Image - -
+ +
+ + + +
- -
- 视频 - - -
- 点击上传 - 点击预览 -
-
-
- - - - - - -
- - - - - - +
+ 图片 + - - - - -
+ + - -
- - - - -
- 添加赔款方 - 添加收款方 + + Preview Image +
-
- {{ item.state == 0 ? '赔款方' : '收款方' }}{{ item.cld }} +
+ 视频 + -
- -
-
- -
-
- -
- 移除 + +
+ 点击上传 + 点击预览 +
+
-
- - 赔款金额总和:{{ TotalamountCompensation }} - - 收款金额总和:{{ TotalamountReceived }} + + + + + + +
+ + + + + + + + + +
- - -
+
- -
- - - - - - - + +
+ + + + + + + +
+
- + +
+ +
+ +
+ + + + +

{{ item.username }}【{{ item.name }}】

+ {{ item.content }} +
+ +
+
+ 视频: 点击预览 + +
+ + +

{{ item.time }}

+
+ {{ msgState == 1 ? ' 待回复' : msgState == 2 ? '已回复' : '已超时' }} + +
+
+
+
+
+ +
+
+
+
+ + + + + + + +
+ +
+
+ 回复 +
+
+
+ + +
+
+
+
{ $_getInfo({ id: $route.query.id }).then(res => { console.log(res, '回显返回值参数'); endFrom.value = res.data.data; - endFrom.value.sss = 123123; endFrom.value.result = []; endFrom.value.processor = []; + endFrom.value.packageImage = []; + //图片处理回显 + res.data.data.decreaseImageVOList.forEach(res => { + endFrom.value['packageImage'].push({ + name: res.imageName, + url: res.imagePath, + }); + }); // 处理结果回显 res.data.data.processingResultsVO.processingMoneyEntityList.forEach(item => { ProcessingList.value.push({ @@ -585,6 +878,7 @@ const onLoad = () => { state: item.resultType, payment: item.compensationMethod, name: item.resultTypeName, + text: '', }); endFrom.value.result.push(item.resultType); }); @@ -594,18 +888,6 @@ const onLoad = () => { endFrom.value.processor.push(String(item.id)); } }); - console.log(ProcessingList.value, '价格'); - //图片处理回显 - res.data.data.decreaseImageVOList.forEach(res => { - endFrom.value['packageImage'].push({ - name: res.imageName, - url: res.imagePath, - }); - }); - - // 处理结果回显 - - console.log(endFrom.value, '当前参数'); }); } getDictionaryBiz('result_handling').then(res => { @@ -630,15 +912,91 @@ const onLoad = () => { }); }); }); + Chathistory(); //聊天的历史记录 +}; +// 文件识别 +const Fileidentifier = val => { + const url = val; + const fileName = url.substring(url.lastIndexOf('/') + 1); + const extension = fileName.substring(fileName.lastIndexOf('.') + 1); + if (extension === 'mp4') { + return 'mp4'; + } + if (extension === 'png') { + return 'png'; + } + if (extension === 'docx') { + return 'docx'; + } + return undefined; // 针对其他扩展名的情况返回 undefined }; + +// 聊天记录获取 +const Chathistory = () => { + // 聊天记录获取 + Msgloading.value = true; //开启加载效果 + MessageResponsibility.value = []; //清空选择内容 + Msgtextarea.value = ''; //清空输入框消息 + $_getSurveyRecord({ + id: $route.query.id, + }).then(res => { + let filetype = ''; //文件类型 + MessageContent.value = []; //先清空内容,防止内容重复叠加 + Msgloading.value = false; //关闭加载效果 + console.log(res, '聊天记录'); + if (res.data.data.processorVOList.length) { + msgState.value = res.data.data.processorVOList[0].processingStatus; //获取聊天状态 + } + + res.data.data.surveyRecordEntities.forEach(item => { + if (item.pictureUrl) { + filetype = Fileidentifier(item.pictureUrl); + } + + // MessageContent.value.push() + MessageContent.value.push({ + time: item.createTime, //时间 + content: item.content, //消息内容 + name: item.addDepartment, //营业部名称 + username: item.addPeople, //用户名 + img: filetype == 'png' ? item.pictureUrl : '', + file: filetype == 'docx' ? item.pictureUrl : '', + mp4: filetype == 'mp4' ? item.pictureUrl : '', + imgList: [filetype == 'png' ? item.pictureUrl : ''], + }); + }); + // 滚动到最后 + setTimeout(() => { + const container = scrollContainer.value; + if (container) { + container.scrollTop = container.scrollHeight; + } + }, 0); + }); +}; + onLoad(); +onMounted(() => { + msgHight.value = window.innerHeight * 0.76; + console.log(msgHight.value, '处理好的页面高度'); + + msgTop.value = window.innerHeight * 0.1; + + // 滚动到最后 + setTimeout(() => { + const container = scrollContainer.value; + if (container) { + container.scrollTop = container.scrollHeight; + } + }, 0); +}); const changeProcessingResults = val => { // 首先删除取消的项目 ProcessingList.value = ProcessingList.value.filter(item => val.includes(item.state - 1)); // 然后添加或保持新的项目 val.forEach(num => { - let newItem = { input: 0, min: 0, max: 9999999999999, state: num + 1, payment: '' }; + let newItem = { input: 0, min: 0, max: 9999999999999, state: num + 1, payment: '', text: '' }; // 根据num为newItem的name字段赋值 switch (num) { case '1': @@ -689,10 +1047,20 @@ const doubledCount = computed(() => { const ImgSuccess = (response, uploadFile) => { if (response.success == true) { console.log(response); - console.log(endFrom.value['packageImage'], '图片列表'); } }; + +// 附件上传成功 +const fellSuccess = (response, uploadFile) => { + console.log('上船成功'); + console.log(response, uploadFile); + if (response.data.link) { + KFfeel.value.push(response.data.link); + console.log(KFfeel.value, '已经上传的附件地址'); + } +}; + // 视频上传成功 const ViodSuccess = response => { if (response.success == true) { @@ -719,6 +1087,7 @@ const beforeAvatarUpload = rawFile => { const pictureList = val => { console.log(val, '图片列表'); }; + // 点击图片移除 const ImgListRemove = val => { console.log(val, '移除图片'); @@ -749,6 +1118,14 @@ const AddPayee = () => { }); CompensationParty.value.push({ name: '', state: 1, num: 0, reason: '', cld: som }); }; +// 理赔总金额计算 +const TotalChange = () => { + TotalClaimAmount.value = 0; + ProcessingList.value.forEach(item => { + console.log(item); + TotalClaimAmount.value += item.input; + }); +}; // 移除按钮 const payremove = (state, val) => { // 判断赔付方,至少保留一条数据 @@ -771,6 +1148,18 @@ const payremove = (state, val) => { console.log('CompensationParty :>> ', CompensationParty); amountMoney(); }; +// 公司占比计算 +const ProportionInput = () => { + console.log(FangAddList.value, '公司占比'); + let sum = 0; + FangAddList.value.forEach(item => { + sum = Number(item.responsibilityRatio) + sum; + }); + sum = 100 - sum; + companyProportion.value = sum; + console.log(sum, '公司占比'); +}; + // 金额输入汇总 const amountMoney = () => { // 计算赔款金额总数 @@ -794,6 +1183,39 @@ const amountMoney = () => { console.log('赔款总计金额', TotalamountCompensation.value); console.log('收款总计金额', TotalamountReceived.value); }; + +// 新视频预览 +const AddVideoPreview = val => { + VideoPreviewStatus.value = true; //开启视频查看弹窗 + videoUrl.value = MessageContent.value[val].mp4; +}; +const FileDownload = val => { + console.log(MessageContent.value[val].file, '文件地址'); +}; +// 责任方添加 +const responsibleParty = () => { + FangAddList.value.push({ businessName: '', personResponsibleName: '', responsibilityRatio: '' }); +}; +// 责任移除 +const ResponsibilityRemoval = val => { + FangAddList.value.splice(val, 1); //移除当前点击的按钮 +}; +// 消息责任方选择 +const Msgresponsibility = val => { + MessageResponsibility.value = val; + console.log(MessageResponsibility.value, '已经选择的责任方'); +}; +// 获取当前责任方的责任人 +const ResponsiblePartychange = (val, index) => { + FangAddList.value[index].personResponsibleName = null; //清空当前选择的责任人 + $_getBusinessDepartmentUser({ + warehouseId: val, + }).then(res => { + console.log(res, '获取责任人列表'); + personResponsibleList.value = res.data.data; + }); +}; + // 支付方式选择 const PaymentSelection = val => { console.log(val, '支付'); @@ -810,9 +1232,11 @@ const PaymentSelection = val => { }; // 支付方式选择确定 const PaymentConfirmation = val => { + console.log(val, '支付方式选择确定'); let data = ProcessingList.value.find(item => item.name == ZFname.value); + console.log(data, '处理好的'); + data.text = Paymentmethod.value.find(item => item.dictKey == val).dictValue; data.payment = val; - console.log(data, '支付方式选择'); ZFdialog.value = false; //关闭支付方式选择弹窗 ElMessage({ message: '支付方式选择成功', @@ -820,6 +1244,7 @@ const PaymentConfirmation = val => { }); console.log(ProcessingList.value, '选择好的支付列表'); }; + // 提交信息 const submit = () => { // 完结的逻辑 @@ -896,19 +1321,23 @@ const submit = () => { }); } else { // 新增记录 + console.log($route.query.id, '异常ID'); console.log(ProcessingList.value, 'ProcessingList12312'); let info = JSON.parse(JSON.stringify(endFrom.value)); //拷贝要提交的数据 let data = { + aftersalesProcessingResultsDTO: { + ...info, + }, processingMoneyEntityList: [], //赔付方式 - ...info, }; - data['workOrderId'] = info.id; //异常工单ID + data.id = $route.query.id; + data.aftersalesProcessingResultsDTO['workOrderId'] = $route.query.id; //异常工单ID let sum = 0; //金额总计 for (let i = 0; i < ProcessingList.value.length; i++) { console.log(ProcessingList.value[i].input); sum = computeNumber(sum, '+', ProcessingList.value[i].input).result; } - data['money'] = sum; //金额汇总 + data.aftersalesProcessingResultsDTO.money = sum; //金额汇总 // data['compensationMethod'] = Paymentmethod.value.filter( // item => item.dictKey == endFrom.value.compensationMethod // )[0].dictValue; //目前是单选 @@ -916,8 +1345,9 @@ const submit = () => { // data['compensationMethod'] = endFrom.value.compensationMethod.join(','); //赔付方式多选 // console.log(data['compensationMethod']); console.log(Paymentmethod.value, 'Paymentmethod.value'); - data['compensationMethod'] = ProcessingList.value.map(item => item.name).join(','); - + data.aftersalesProcessingResultsDTO['compensationMethod'] = ProcessingList.value + .map(item => item.text) + .join(','); data['processingMoneyEntityList'] = ProcessingList.value .map(item => { console.log(item); @@ -941,26 +1371,32 @@ const submit = () => { } }) .filter(item => item !== null); - data['resultType'] = ProcessingList.value.map(item => item.name).join(','); //处理结果说明文字拼接 + data.aftersalesProcessingResultsDTO.processingMoneyEntityList = + data['processingMoneyEntityList']; + console.log('走到了这一步'); + data.aftersalesProcessingResultsDTO.workOrderId = $route.query.id; //异常工单ID + data.aftersalesProcessingResultsDTO['resultType'] = ProcessingList.value + .map(item => item.name) + .join(','); //处理结果说明文字拼接 let imgLink = ''; //存储图片地址 - if (endFrom.value['packageImage'].length) { - imgLink = endFrom.value['packageImage'].map(item => item.response.data.link).join(','); //图片处理 - } + // 图片处理存在问题 + // if (endFrom.value['packageImage'].length) { + // imgLink = endFrom.value['packageImage'].map(item => item.response.data.link).join(','); //图片处理 + // } if (videoUrl.value && imgLink) { - data['annex'] = videoUrl.value + ',' + imgLink; + data.aftersalesProcessingResultsDTO['annex'] = videoUrl.value + ',' + imgLink; } else { - data['annex'] = imgLink; + data.aftersalesProcessingResultsDTO['annex'] = imgLink; } - console.log(data['annex'], '附件路径'); - console.log(data['resultType'], '处理结果'); - console.log(data['processingMoneyEntityList']); + console.log(data, '处理好的数据'); - delete data['id']; //删除ID字段 - delete data['packageImage']; //删除默认图片字段 - $_addSubmit(data).then(res => { + delete data.aftersalesProcessingResultsDTO.id; //删除ID字段 + + (data.aftersalesProcessingResultsDTO.warehouseId = info.warehouseId), //仓库ID + console.log(data, '处理好的数据'); + $_addProcessingResults(data).then(res => { console.log(res, '提交后的参数'); $router.push('/aftersales/aftersalesWorkOrder'); - console.log(res, '完结成功返回值'); if (res.code == 200) { ElMessage({ showClose: true, @@ -971,6 +1407,47 @@ const submit = () => { }); } }; + +// 消息回复 +const replyMessage = () => { + console.log(MessageContent.value, '当前的聊天记录'); + + console.log(warehouseData.value, '参数1212312312312312'); + console.log(MessageResponsibility, '责任方'); + let msgData = { + processorEntityList: [], + }; //初始化参数 + msgData.surveyRecordDTO = { + content: Msgtextarea.value, //内容' + workOrderId: $route.query.id, //工单ID + pictureUrl: KFfeel.value.join(','), //附件路径 + remark: '', //备注 + }; + + msgData.id = $route.query.id; //异常工单ID + // 责任方处理 MessageResponsibility 已经选择的处理方 + MessageResponsibility.value.forEach(item => { + msgData['processorEntityList'].push({ + businessName: warehouseData.value.find(obj => obj.value == item).label, //名称 + businessId: warehouseData.value.find(obj => obj.value == item).value, //ID + workOrderId: $route.query.id, //异常工单ID + typesOf: 2, //1 责任方 2 处理方 + warehouseId: $route.query.warehouseId, //仓库ID + }); + }); + + console.log(msgData, '处理好的参数'); + $_savaSurveyRecord(msgData).then(res => { + console.log(res, '消息回复成功'); + if (res.data.code == 200) { + Chathistory(); //回复消息成功,调用消息刷新显示最新消息 + ElMessage({ + message: res.data.msg, + type: 'success', + }); + } + }); +}; diff --git a/src/views/aftersales/customerService.vue b/src/views/aftersales/customerService.vue index a746c1e5..620fc853 100644 --- a/src/views/aftersales/customerService.vue +++ b/src/views/aftersales/customerService.vue @@ -192,7 +192,7 @@ const messagesendFn = () => { content: KFinput.value, createTime: formattedTime, }); - // 滚动到最后 + // 聊天记录滚动到最后 setTimeout(() => { const container = scrollContainer.value; if (container) { diff --git a/src/views/basicdata/warehouse/goodsShelf/basicdataGoodsShelfView.vue b/src/views/basicdata/warehouse/goodsShelf/basicdataGoodsShelfView.vue index 6fe33a81..fb95ac70 100644 --- a/src/views/basicdata/warehouse/goodsShelf/basicdataGoodsShelfView.vue +++ b/src/views/basicdata/warehouse/goodsShelf/basicdataGoodsShelfView.vue @@ -581,6 +581,7 @@ import { posturl, Alloclocationsnub, disable, + $_locationsnub, } from '@/api/basicdata/basicdataGoodsShelfView'; import { reactive, ref, toRefs, onMounted, getCurrentInstance } from 'vue'; import { getToken } from '@/utils/auth'; @@ -640,6 +641,7 @@ let details = reactive({ inputtxts1: '', boxdetails: {}, }); + onMounted(() => { details.contenbxsty['--length'] = details.contenarr[0]?.length || 0; initconfig(); @@ -663,6 +665,12 @@ async function initnumber() { async function initconfig() { let res = await getstoreCargo(); details.arrlist = res.data.data; + console.log(details.arrlist, '仓库列表'); + if (details.arrlist.length > 0) { + $_locationsnub({ warehouseId: details.arrlist[0].id }).then(res => { + console.log('初始化仓库参数成功', res); + }); + } if (details.arrlist[details.checkselect]?.warehouseGoodsAreaVOList.length > 0) { details.checkregionselect = 0; details.checksele = 0; @@ -837,10 +845,16 @@ async function upgood() { } } -const checkcso = () => { +const checkcso = val => { + console.log(details.arrlist[val].id, '选择的ID-====='); + console.log(val, '货位接受参数'); + $_locationsnub({ warehouseId: details.arrlist[val].id }).then(res => { + console.log('切换请求成功', res); + }); if (details.arrlist[details.checkselect]?.warehouseGoodsAreaVOList.length > 0) { details.checkregionselect = 0; details.checksele = 0; + checkshelves(); } else { details.checkregionselect = ''; @@ -1557,6 +1571,7 @@ const showupt = value => { } searchbuts(); }; + const alldown = async () => { console.log(scope.row); let data = { @@ -2546,7 +2561,7 @@ const { // font-size: 14px; } .type2 { - border: 1px solid #3AD8BC; + border: 1px solid #3ad8bc; background: #ffffff; border-radius: 4px 4px 4px 4px; } diff --git a/vite.config.js b/vite.config.js index 82f15da2..1bbabfaf 100644 --- a/vite.config.js +++ b/vite.config.js @@ -23,8 +23,8 @@ export default ({ mode, command }) => { // 新zyc // target: 'http://192.168.6.116:8777', - // target: 'http://192.168.6.141:8777', - target: 'http://192.168.6.116:8777', + target: 'http://192.168.6.122:8777', + // target: 'http://192.168.6.116:8777', // tjj // target: 'http://192.168.10.25:13000', // cg From 3f9ff14e5fb42cfcf1b558815e54577ab5d39d90 Mon Sep 17 00:00:00 2001 From: caoyizhong <1270296080> Date: Tue, 12 Dec 2023 22:29:51 +0800 Subject: [PATCH 3/6] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=85=A5=E5=BA=93?= =?UTF-8?q?=E5=AF=BC=E5=85=A5=EF=BC=8C=E5=AD=97=E6=AE=B5=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../warehousingentry/warehouseWarehousingEntry.vue | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/views/warehouse/warehousingentry/warehouseWarehousingEntry.vue b/src/views/warehouse/warehousingentry/warehouseWarehousingEntry.vue index de784233..076eeb11 100644 --- a/src/views/warehouse/warehousingentry/warehouseWarehousingEntry.vue +++ b/src/views/warehouse/warehousingentry/warehouseWarehousingEntry.vue @@ -341,6 +341,17 @@ export default { checkarr: [], fixed: false, sortable: true, + } + , + { + label: '存放位置备注', + prop: 'positions', + type: 3, + values: '', + width: '130', + checkarr: [], + fixed: false, + sortable: true, }, { label: '状态', @@ -687,7 +698,7 @@ export default { handleTemplate() { console.log('下载模板!!!'); exportBlob( - `/api/logpm-warehouse/warehouseWarehousingEntry/export-warehouseWarehousingEntry?${ + `/api/logpm-warehouse/warehouseWarehousingEntry/export-warehouseWarehousingTemplate?${ this.website.tokenHeader }=${getToken()}` ).then(res => { From 7da6feab42ecf7c5cbb5301d62a198c39981dceb Mon Sep 17 00:00:00 2001 From: xzg <4727863@qq.com> Date: Tue, 12 Dec 2023 22:35:50 +0800 Subject: [PATCH 4/6] =?UTF-8?q?=E9=9A=90=E8=97=8F=E6=8C=89=E5=BA=93?= =?UTF-8?q?=E5=AD=98=E5=93=81=E4=B8=8A=E6=9E=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/option/aftersales/vueTvemp.js | 123 ++++++++---------- src/views/aftersales/aftersalesWorkOrder.vue | 104 +++++++++++---- .../goodsShelf/basicdataGoodsShelfView.vue | 2 +- 3 files changed, 134 insertions(+), 95 deletions(-) diff --git a/src/option/aftersales/vueTvemp.js b/src/option/aftersales/vueTvemp.js index a4547006..e7749a9a 100644 --- a/src/option/aftersales/vueTvemp.js +++ b/src/option/aftersales/vueTvemp.js @@ -385,7 +385,7 @@ export const recordList = [ ] - +// 理赔 export const Claimsfield = [ { prop: '', @@ -405,9 +405,9 @@ export const Claimsfield = [ { prop: 'workOrderNumber', label: '工单号', - type: 3, + type: 2, values: '', - width: '100', + width: '130', checkarr: [], fixed: false, sortable: true, @@ -438,7 +438,7 @@ export const Claimsfield = [ { prop: 'brandName', label: '品牌', - type: 3, + type: 2, values: '', width: '100', checkarr: [], @@ -449,7 +449,7 @@ export const Claimsfield = [ { prop: 'mallName', label: '商场名称', - type: 3, + type: 2, values: '', width: '100', checkarr: [], @@ -460,29 +460,7 @@ export const Claimsfield = [ { prop: 'waybillNumber', label: '运单号', - type: 3, - values: '', - width: '100', - checkarr: [], - fixed: false, - sortable: true, - head: false, - }, - { - prop: 'workOrderType', - label: '异常类型', - type: 3, - values: '', - width: '100', - checkarr: [], - fixed: false, - sortable: true, - head: false, - }, - { - prop: 'workOrderTypeName', - label: '异常类型名称', - type: 3, + type: 2, values: '', width: '100', checkarr: [], @@ -490,6 +468,17 @@ export const Claimsfield = [ sortable: true, head: false, }, + // { + // prop: 'workOrderType', + // label: '异常类型', + // type: 3, + // values: '', + // width: '100', + // checkarr: [], + // fixed: false, + // sortable: true, + // head: false, + // }, { prop: 'workOrderTypeName', label: '异常类型名称', @@ -501,17 +490,17 @@ export const Claimsfield = [ sortable: true, head: false, }, - { - prop: 'resultType', - label: '处理结果', - type: 3, - values: '', - width: '100', - checkarr: [], - fixed: false, - sortable: true, - head: false, - }, + // { + // prop: 'resultType', + // label: '处理结果', + // type: 3, + // values: '', + // width: '100', + // checkarr: [], + // fixed: false, + // sortable: true, + // head: false, + // }, { prop: 'resultTypeName', label: '处理结果名称', @@ -534,20 +523,20 @@ export const Claimsfield = [ // sortable: true, // head: false, // }, - { - prop: 'discoveryNode', - label: '发现环节', - type: 3, - values: '', - width: '100', - checkarr: [], - fixed: false, - sortable: true, - head: false, - }, + // { + // prop: 'discoveryNode', + // label: '发现环节', + // type: 3, + // values: '', + // width: '100', + // checkarr: [], + // fixed: false, + // sortable: true, + // head: false, + // }, { prop: 'discoveryNodeName', - label: '发现环境名称', + label: '发现环节名称', type: 3, values: '', width: '100', @@ -559,7 +548,7 @@ export const Claimsfield = [ { prop: 'resultDescription', label: '处理结果说明', - type: 3, + type: 2, values: '', width: '100', checkarr: [], @@ -570,7 +559,7 @@ export const Claimsfield = [ { prop: 'vehicleRoute', label: '车辆路线', - type: 3, + type: 2, values: '', width: '100', checkarr: [], @@ -592,7 +581,7 @@ export const Claimsfield = [ { prop: 'reason', label: '判责原因', - type: 3, + type: 2, values: '', width: '100', checkarr: [], @@ -603,7 +592,7 @@ export const Claimsfield = [ { prop: 'money', label: '金额', - type: 3, + type: 2, values: '', width: '100', checkarr: [], @@ -625,18 +614,7 @@ export const Claimsfield = [ { prop: 'processNumber', label: '钉钉流程号', - type: 3, - values: '', - width: '100', - checkarr: [], - fixed: false, - sortable: true, - head: false, - }, - { - prop: 'workOrderStatus', - label: '工单状态', - type: 3, + type: 2, values: '', width: '100', checkarr: [], @@ -644,6 +622,17 @@ export const Claimsfield = [ sortable: true, head: false, }, + // { + // prop: 'workOrderStatus', + // label: '工单状态', + // type: 3, + // values: '', + // width: '100', + // checkarr: [], + // fixed: false, + // sortable: true, + // head: false, + // }, { prop: 'workOrderStatusName', label: '工单状态名称', diff --git a/src/views/aftersales/aftersalesWorkOrder.vue b/src/views/aftersales/aftersalesWorkOrder.vue index 840e0b42..e0478b35 100644 --- a/src/views/aftersales/aftersalesWorkOrder.vue +++ b/src/views/aftersales/aftersalesWorkOrder.vue @@ -1084,7 +1084,7 @@ const TotalamountReceived = ref(0); //收款金额合计 const Reasonarbitration = ref(null); //仲裁原因 const BatchcompletionHeight = ref(0); //批量完结弹窗 const userInfo = ref(); //当前登录人信息 -const ClaimStatus = ref(false);//理赔状态 +const ClaimStatus = ref(false); //理赔状态 const TabList = ref([ { name: 0, label: '全部' }, { name: 1, label: '处理中' }, @@ -1268,7 +1268,7 @@ const TransportLossNode = ref([ // 页面初始化数据 const IndexTable = val => { - ClaimStatus.value=false; + ClaimStatus.value = false; // ProcessingPartyState.value = false; //关闭处理方 details.loadingObj.list = true; //开启动画加载 let data = { @@ -1356,6 +1356,7 @@ const OnLoad = () => { updateDictionary(columnList[2].checkarr, 'pc_work_order'); //异常类型 updateDictionary(columnList[3].checkarr, 'pc_discovery_node'); //发现环节 + IndexTable(details.query); getDeptWarehouse({}).then(res => { res.data.data.forEach(item => { @@ -1722,14 +1723,12 @@ const handlePictureCardPreview = uploadFile => { const inputsc = (index, row) => { processRowProperty(index, row, details); details.query[row.prop] = index; - if(ClaimStatus.value){ + if (ClaimStatus.value) { // 这是理赔搜索 - - - return + settlementclaim(details.query); + return; } - if (!ProcessingPartyState.value) { IndexTable(details.query); //首页初始化信息 console.log('首页'); @@ -1740,14 +1739,13 @@ const inputsc = (index, row) => { }; // 网页顶部搜索按钮 const searchChange = () => { - if( ClaimStatus.value){ + if (ClaimStatus.value) { // 表示这是理赔查询 - settlementclaim() + settlementclaim(); details.search = false; //关闭搜索 - return + return; } - details.search = false; //关闭搜索 if (!ProcessingPartyState.value) { IndexTable(details.query); //首页初始化信息 @@ -1796,6 +1794,13 @@ const btnsc = val => { /** 表格表头下拉框选择 */ const selectsc = (index, row) => { processRowProperty(index, row, details); + + if (ClaimStatus.value) { + // 这是理赔搜索 + settlementclaim(details.query); + return; + } + if (!ProcessingPartyState.value) { IndexTable(details.query); //首页初始化信息 } else { @@ -1814,6 +1819,13 @@ const selectionChange = list => { /** 页码改变执行的回调 */ const currentChange = val => { page.value.currentPage = val; + + if (ClaimStatus.value) { + // 这是理赔 + settlementclaim(details.query); + return; + } + if (!ProcessingPartyState.value) { //表示当前不是处理方 IndexTable(details.query); @@ -1824,6 +1836,13 @@ const currentChange = val => { // 每页多少条 const sizeChange = val => { page.value.pageSize = val; + + if (ClaimStatus.value) { + // 这是理赔 + settlementclaim(details.query); + return; + } + if (!ProcessingPartyState.value) { //表示当前不是处理方 IndexTable(details.query); @@ -1874,21 +1893,52 @@ const changeProcessingResults = val => { }); }; // 查询理赔数据 -const settlementclaim = (val) => { - ClaimStatus.value=true;//开启理赔查询状态 +const settlementclaim = val => { + console.log(Claimsfield, '理赔数据'); + ClaimStatus.value = true; //开启理赔查询状态 details.columnList = Claimsfield; + Claimsfield[3].checkarr = []; //营业部 + Claimsfield[7].checkarr = []; //异常类型名称 + Claimsfield[9].checkarr = []; //异常类型名称 + getDeptWarehouse({}).then(res => { + res.data.data.forEach(item => { + Claimsfield[3].checkarr.push({ + value: item.name, + label: item.name, + }); + }); + }); + + getDictionaryBiz('pc_work_order').then(res => { + res.data.data.forEach(item => { + Claimsfield[7].checkarr.push({ + value: item.dictValue, + label: item.dictValue, + }); + }); + }); + getDictionaryBiz('pc_discovery_node').then(res => { + res.data.data.forEach(item => { + Claimsfield[9].checkarr.push({ + value: item.dictValue, + label: item.dictValue, + }); + }); + }); + + // details.columnList warehouseData.value details.loadingObj.list = true; //开启动画加载 - console.log(details,'details'); + console.log(details, 'details'); let data = { current: details.page.currentPage, size: details.page.pageSize, - ...val + ...val, }; - console.log(data,'要传递的参数'); + console.log(data, '要传递的参数'); $_listSettlement(data).then(res => { details.loadingObj.list = false; //关闭动画加载 console.log(res, '查询理赔数据'); - details.data = res.data.data.records;//数据 + details.data = res.data.data.records; //数据 page.value.total = res.data.data.total; }); }; @@ -1901,7 +1951,7 @@ const tabChenge = val => { ProcessingPartyState.value = false; //关闭处理方 details.query.workOrderStatus = null; ArbitrationStatus.value = false; //不可以申请仲裁 - Tableheaderswitching(columnList); + Tableheaderswitching(columnList); IndexTable(); empty(); console.log('全部'); @@ -1911,7 +1961,7 @@ const tabChenge = val => { data.workOrderStatus = 20; details.query.workOrderStatus = 20; ArbitrationStatus.value = true; //可以申请仲裁 - Tableheaderswitching(columnList); + Tableheaderswitching(columnList); empty(); IndexTable(data); } else if (val == 2) { @@ -1920,7 +1970,7 @@ const tabChenge = val => { data.workOrderStatus = 30; details.query.workOrderStatus = 30; ArbitrationStatus.value = false; //不可以申请仲裁 - Tableheaderswitching(columnList); + Tableheaderswitching(columnList); empty(); IndexTable(data); } else if (val == 3) { @@ -1928,7 +1978,7 @@ const tabChenge = val => { ProcessingPartyState.value = true; //开启处理方 details.query.workOrderStatus = ''; ArbitrationStatus.value = true; //可以申请仲裁 - Tableheaderswitching(columnList); + Tableheaderswitching(columnList); empty(); ProcessingPartyFun(data); } else if (val == 4) { @@ -1936,7 +1986,7 @@ const tabChenge = val => { // 理赔金额未出 details.query.workOrderStatus = null; ArbitrationStatus.value = false; //不可以申请仲裁 - Tableheaderswitching(Claimsfield); //切换表格 + Tableheaderswitching(Claimsfield); //切换表格 empty(); settlementclaim(); } else if (val == 5) { @@ -1945,7 +1995,7 @@ const tabChenge = val => { data.workOrderStatus = 70; details.query.workOrderStatus = 70; ArbitrationStatus.value = false; //不可以申请仲裁 - Tableheaderswitching(columnList); + Tableheaderswitching(columnList); empty(); IndexTable(data); } else if (val == 6) { @@ -1954,16 +2004,16 @@ const tabChenge = val => { data.workOrderStatus = 80; details.query.workOrderStatus = 80; ArbitrationStatus.value = false; //不可以申请仲裁 - Tableheaderswitching(columnList); + Tableheaderswitching(columnList); empty(); IndexTable(data); - } else if (val == 7) { + } else if (val == 7) { // 超时未处理 ProcessingPartyState.value = false; //关闭处理方 data.workOrderStatus = 60; details.query.workOrderStatus = 60; ArbitrationStatus.value = false; //不可以申请仲裁 - Tableheaderswitching(columnList); + Tableheaderswitching(columnList); empty(); IndexTable(data); } @@ -1992,7 +2042,7 @@ const showdrawer = _flag => { // 处理方数据公共函数 const ProcessingPartyFun = val => { - ClaimStatus.value=false;//关闭理赔状态 + ClaimStatus.value = false; //关闭理赔状态 details.query.workOrderStatus = null; details.loadingObj.list = true; //开启动画加载 let data = { diff --git a/src/views/basicdata/warehouse/goodsShelf/basicdataGoodsShelfView.vue b/src/views/basicdata/warehouse/goodsShelf/basicdataGoodsShelfView.vue index fb95ac70..a6c24102 100644 --- a/src/views/basicdata/warehouse/goodsShelf/basicdataGoodsShelfView.vue +++ b/src/views/basicdata/warehouse/goodsShelf/basicdataGoodsShelfView.vue @@ -211,7 +211,7 @@ 按自编号 按包件 按托盘 - 按库存品 + 按零担 禁用 From 2508d5489a389710e1b9be64d31c541c1d9029a7 Mon Sep 17 00:00:00 2001 From: qb <1191961160@qq.com> Date: Wed, 13 Dec 2023 11:21:03 +0800 Subject: [PATCH 5/6] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=85=8D=E8=BD=BD?= =?UTF-8?q?=E8=AE=A1=E5=88=92=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/distribution/AddVehicleStowage.js | 67 ++ src/api/waybill/orderPackageListDetails.js | 18 +- src/option/distribution/VehicleStowage.js | 2 +- src/option/distribution/addVehicleStowage.js | 1 + src/utils/util.js | 1 + .../distribution/artery/AddVehicleStowage.vue | 680 ++++++++++++------ .../distribution/artery/VehicleStowage.vue | 28 +- src/views/waybill/orderPackageListDetails.vue | 154 ++-- 8 files changed, 678 insertions(+), 273 deletions(-) diff --git a/src/api/distribution/AddVehicleStowage.js b/src/api/distribution/AddVehicleStowage.js index 5da31550..6a5f5cdb 100644 --- a/src/api/distribution/AddVehicleStowage.js +++ b/src/api/distribution/AddVehicleStowage.js @@ -76,3 +76,70 @@ export const postFindCarrierByName = data => { data, }); }; + +/** + * 查询编辑配载计划详情 + */ +export const postSelectEditDetailByLoadId = data => { + return request({ + url: '/api/logpm-trunkline/carsLoad/selectEditDetailByLoadId', + method: 'post', + data, + }); +}; + +/** + * 查询已添加在调度池的订单 + */ +export const postFindUseOrderList = data => { + return request({ + url: '/api/logpm-trunkline/carsLoad/findUseOrderList', + method: 'post', + data, + }); +}; + +/** + * 移除在调度池的订单 + */ +export const postRemoveCarsOrderByCarsOrderId = data => { + return request({ + url: '/api/logpm-trunkline/carsLoad/removeCarsOrderByCarsOrderId', + method: 'post', + data, + }); +}; + +/** + * 修改计划数量 + */ +export const postUpdatePlanNumByCarsOrderId = data => { + return request({ + url: '/api/logpm-trunkline/carsLoad/updatePlanNumByCarsOrderId', + method: 'post', + data, + }); +}; + +/** + * 新增调度池订单 + */ +export const postAddOrderToFinalNodeId = data => { + return request({ + url: '/api/logpm-trunkline/carsLoad/addOrderToFinalNodeId', + method: 'post', + data, + }); +}; + +/** + * 新增调度池订单 + */ +export const postUpdateCarsLoadBasicData = data => { + return request({ + url: '/api/logpm-trunkline/carsLoad/updateCarsLoadBasicData', + method: 'post', + data, + }); +}; +// diff --git a/src/api/waybill/orderPackageListDetails.js b/src/api/waybill/orderPackageListDetails.js index 416f243a..1ad72720 100644 --- a/src/api/waybill/orderPackageListDetails.js +++ b/src/api/waybill/orderPackageListDetails.js @@ -1,7 +1,7 @@ import request from '@/axios'; /** - * 获取暂存单列表数据 + * 查看包明细 * @param {number} current * @param {number} size * @param {*} params @@ -18,3 +18,19 @@ export const getopenOrderFindAdvanceDetailList = (page, params) => { }); }; +/** + * 直接入库 + * @param {number} current + * @param {number} size + * @param {*} params + * @returns + */ +export const getopenOrderIncomingPackage = data => { + return request({ + url: '/api/logpm-trunkline/api/incoming/incomingPackage', + method: 'post', + data, + }); +}; + +// diff --git a/src/option/distribution/VehicleStowage.js b/src/option/distribution/VehicleStowage.js index 6a67932d..c9d33010 100644 --- a/src/option/distribution/VehicleStowage.js +++ b/src/option/distribution/VehicleStowage.js @@ -32,7 +32,7 @@ export const columnList = [ values: '', width: '250', checkarr: [], - fixed: false, + fixed: true, sortable: true, }, { diff --git a/src/option/distribution/addVehicleStowage.js b/src/option/distribution/addVehicleStowage.js index 9839488b..1e040dd4 100644 --- a/src/option/distribution/addVehicleStowage.js +++ b/src/option/distribution/addVehicleStowage.js @@ -158,6 +158,7 @@ export const columnList = [ values: '', width: 55, fixed: true, + isshowSummary: true, }, { prop: 'createTime', diff --git a/src/utils/util.js b/src/utils/util.js index 05c8dd06..ccbed0cd 100644 --- a/src/utils/util.js +++ b/src/utils/util.js @@ -589,6 +589,7 @@ export function computeNumber(a, type, b) { * @param {any} value 传入值, 判断该值是否为数字 */ export const isNumer = value => { + // if (typeof value !== 'number' || typeof value !== 'string') return false; const _value = Number(value); if (_value !== _value) return false; return true; diff --git a/src/views/distribution/artery/AddVehicleStowage.vue b/src/views/distribution/artery/AddVehicleStowage.vue index 22ad1d23..3eb29584 100644 --- a/src/views/distribution/artery/AddVehicleStowage.vue +++ b/src/views/distribution/artery/AddVehicleStowage.vue @@ -23,7 +23,7 @@
-
+
@@ -47,7 +47,7 @@ @change="val => destinationWarehouseNameChange(val, index)" :remote-method="remoteMethod" :loading="details.loadingObj.loading" - :disabled="index === 0" + :disabled="Number(details.pageType) !== 1 || index === 0" >
- + 手动装车(后台) 扫描装车 @@ -225,7 +229,10 @@ :precision="2" :min="0" :step="1" - :disabled="slotProps.scope.row.blackList.includes(slotProps.scope.column.property)" + :disabled=" + Number(details.pageType) === 2 || + slotProps.scope.row.blackList.includes(slotProps.scope.column.property) + " @input="handleComputedNum" v-model="slotProps.scope.row[slotProps.scope.column.property]" /> @@ -324,6 +331,10 @@
+
+ 选中: {{ details.selectionList.length }} +
+
+ + + +
+ 选中: {{ item.selectionList.length }} 条 + 共 {{ item.lineCarsOrderList.length }} 条 +
@@ -445,6 +469,8 @@
+ 关闭 + 提交 - 关闭
+ + + +
订单号: {{ details.editInfo.orderCode }}
+
+
+ 当前在库数 + {{ details.editInfo.stockNum }} +
+
+ 已装车数量 + {{ details.editInfo.realNum }} +
+
+ + + + + +
+ 取消 + + 提交 + +
+
diff --git a/src/views/distribution/artery/VehicleStowage.vue b/src/views/distribution/artery/VehicleStowage.vue index 923c4c23..4a7079b0 100644 --- a/src/views/distribution/artery/VehicleStowage.vue +++ b/src/views/distribution/artery/VehicleStowage.vue @@ -113,7 +113,9 @@ > @@ -799,7 +803,7 @@ const handleShowTruckLoadingDetails = ({ row }) => { name: row.carsNo + '--' + '装车明细', }, }); - + // details.popUpShow.truckLoadingDetailVisited = true; // nextTick(() => { @@ -850,6 +854,14 @@ const handleAdd = () => { }); }; +/** 编辑配载信息 */ +const handleEditStowage = ({ row }) => { + $router.push({ + path: '/distribution/artery/AddVehicleStowage', + query: { name: '编辑配载', type: 2, loadId: row.id }, + }); +}; + /** 前往配载详情 */ const handleGoWaybill = ({ row }) => { console.log('row :>> ', row); diff --git a/src/views/waybill/orderPackageListDetails.vue b/src/views/waybill/orderPackageListDetails.vue index b6e18f8f..197ac5ae 100644 --- a/src/views/waybill/orderPackageListDetails.vue +++ b/src/views/waybill/orderPackageListDetails.vue @@ -6,11 +6,11 @@ - + - + @@ -18,10 +18,17 @@ - + + + + @@ -101,6 +108,9 @@
批量打印 + 批量入库
@@ -132,7 +142,11 @@ 流转节点 - + 直接入库 查看二维码 @@ -151,7 +165,7 @@ background @size-change="sizeChange" @current-change="currentChange" - :current-page="page.currentPage" + :current-page="page.pageNum" :page-sizes="[30, 50, 80, 120]" :page-size="page.pageSize" layout="total, sizes, prev, pager, next, jumper" @@ -216,7 +230,7 @@ background @size-change="sizeChange" @current-change="currentChange" - :current-page="details.packageListPage.currentPage" + :current-page="details.packageListPage.pageNum" :page-sizes="[30, 50, 80, 120]" :page-size="details.packageListPage.pageSize" layout="total, sizes, prev, pager, next, jumper" @@ -278,7 +292,7 @@ background @size-change="sizeChange" @current-change="currentChange" - :current-page="details.packageListPage.currentPage" + :current-page="details.packageListPage.pageNum" :page-sizes="[30, 50, 80, 120]" :page-size="details.packageListPage.pageSize" layout="total, sizes, prev, pager, next, jumper" @@ -321,7 +335,10 @@ import dayjs from 'dayjs'; import { mapGetters } from 'vuex'; /** 获取字典 */ import { getDictionaryBiz } from '@/api/system/dict'; -import { getopenOrderFindAdvanceDetailList } from '@/api/waybill/orderPackageListDetails'; +import { + getopenOrderFindAdvanceDetailList, + getopenOrderIncomingPackage, +} from '@/api/waybill/orderPackageListDetails'; import { showOrderPackgeCode } from '@/api/distribution/distributionStockArticle'; import { downloadXls, setNodeHeight, getHtmls } from '@/utils/util'; import { @@ -381,11 +398,11 @@ const details = reactive({ /** 包明细表头 */ packageListColumnList, /** 包明细数据 */ - packageListData: [{}], + packageListData: [], /** 包内产品表头 */ packageDetailColumnList, /** 包内产品数据 */ - packageDetailData: [{}], + packageDetailData: [], /** 流转节点表头 */ flowNodeColumnList, /** 流转节点数据 */ @@ -402,13 +419,13 @@ const details = reactive({ drawerShow: false, /** 分页参数 */ page: { - currentPage: 1, + pageNum: 1, pageSize: 30, total: 0, }, /** 包明细分页参数 */ packageListPage: { - currentPage: 1, + pageNum: 1, pageSize: 30, total: 0, }, @@ -462,12 +479,12 @@ onMounted(() => { }); /** 请求页面数据 */ -const onLoad = async (page: any, params = {}) => { +const onLoad = async (params = {}) => { try { details.loadingObj.packageListLoading = true; // 获取暂存单列表 - const res = await getopenOrderFindAdvanceDetailList(page, { + const res = await getopenOrderFindAdvanceDetailList(details.page, { ...details.query, ...params, advanceId: id, @@ -482,19 +499,24 @@ const onLoad = async (page: any, params = {}) => { } }; -onLoad(details.page); +const initPage = () => { + details.page.pageNum = 1; + onLoad(); +}; + +initPage(); /** 搜索 */ const searchChange = () => { - onLoad(details.page); + initPage(); }; /** 清空表单 */ const searchReset = () => { details.query = {}; details.stockupDate = []; - details.page.currentPage = 1; - onLoad(details.page); + details.page.pageNum = 1; + initPage(); }; /** 展开列表控件 */ @@ -526,7 +548,7 @@ const searchHide = () => { /** 表格表头输入框搜索 */ const inputsc = (index, row) => { details.query[row.prop] = index; - onLoad(details.page); + initPage(); }; /** 表格表头时间选择 */ @@ -539,7 +561,7 @@ const timesc = (index, row) => { if (!index) { delete details.query[row.prop]; } - onLoad(details.page); + initPage(); }; /** 表格表头输入框搜索 */ @@ -553,7 +575,7 @@ const selectsc = (index, row) => { details.query['certificateType'] = index; if (!index) delete details.query['certificateType']; } - onLoad(details.page); + initPage(); }; /** 表格表头复选框选择 */ @@ -564,7 +586,7 @@ const selectionChange = (list: any) => { /** 每页数量改变执行的回调 */ const sizeChange = (pageSize: number) => { details.page.pageSize = pageSize; - onLoad(details.page); + initPage(); }; /** 页码改变执行的回调 */ @@ -626,36 +648,6 @@ const editClientInfo = () => { details.popUpShow.editClientInfoVisible = true; }; -/** 批量删除 */ -const handleDelete = () => { - if (details.selectionList.length === 0) { - return ElMessage({ - type: 'warning', - message: '最少选择一条数据', - }); - } -}; - -/** 批量发车 */ -const handleDepart = () => { - if (details.selectionList.length === 0) { - return ElMessage({ - type: 'warning', - message: '最少选择一条数据', - }); - } -}; - -/** 批量冻结 */ -const handleFreeze = () => { - if (details.selectionList.length === 0) { - return ElMessage({ - type: 'warning', - message: '最少选择一条数据', - }); - } -}; - /** * 是否开启全屏 * @params(_type) 开启或关闭 @@ -702,7 +694,7 @@ const printOrder = ({ row }) => { }); }; -/** 单列查看包条码 */ +/** 批量查看包条码 */ const batchPrintOrder = ({ row }) => { let qr = { ids: row.id, @@ -723,13 +715,65 @@ const printTemplate = () => { }; /** 入库 */ -const handlePutInStorage = row => { +const handlePutInStorage = ({ row }) => { + console.log('row :>> ', row); + ElMessageBox.confirm('确认直接入库吗?', '警告', { + confirmButtonText: '确认', + cancelButtonText: '取消', + type: 'warning', + }) + .then(async () => { + const submitData = { + orderPackageCode: row.orderPackageCode, + /** 直接入库 */ + incomingType: '3', + }; + + const res = await getopenOrderIncomingPackage(submitData); + const { code } = res.data; + + if (code !== 200) return; + initPage(); + ElMessage({ + type: 'success', + message: '入库成功', + }); + }) + .catch(() => {}); +}; + +/** 批量入库 */ +const handleBatchPutInStorage = () => { + if (details.selectionList.length === 0) return ElMessage.error('最少选择一条数据'); + + let orderPackageCodes = []; + const _flag = details.selectionList.every(val => { + if (Number(val.packageStatus) === 1) { + return false; + } + orderPackageCodes.push(val.orderPackageCode); + return true; + }); + + if (!_flag) return ElMessage.error('请选择未入库的数据'); + ElMessageBox.confirm('确认直接入库吗?', '警告', { confirmButtonText: '确认', cancelButtonText: '取消', type: 'warning', }) - .then(() => { + .then(async () => { + const submitData = { + orderPackageCode: orderPackageCodes.join(','), + /** 直接入库 */ + incomingType: '3', + }; + + const res = await getopenOrderIncomingPackage(submitData); + const { code } = res.data; + + if (code !== 200) return; + initPage(); ElMessage({ type: 'success', message: '入库成功', From 3cae9f11a79109726ff590b80ee827aa08ecbbfe Mon Sep 17 00:00:00 2001 From: xzg <4727863@qq.com> Date: Wed, 13 Dec 2023 14:37:37 +0800 Subject: [PATCH 6/6] =?UTF-8?q?=E8=B4=A7=E4=BD=8D=E5=8F=AF=E8=A7=86?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/aftersales/aftersalesWorkOrder.js | 9 + src/option/aftersales/vueTvemp.js | 10 + src/router/views/index.js | 15 + src/views/aftersales/aftersalesWorkOrder.vue | 39 +- .../aftersales/aftersalesWorkOrderAdd.vue | 111 +- .../aftersales/aftersalesWorkOrderInfo.vue | 1287 +++++++++++++++++ .../aftersales/aftersalesWorkOrderend.vue | 236 ++- .../goodsShelf/basicdataGoodsShelfView.vue | 13 +- vite.config.js | 5 +- 9 files changed, 1686 insertions(+), 39 deletions(-) create mode 100644 src/views/aftersales/aftersalesWorkOrderInfo.vue diff --git a/src/api/aftersales/aftersalesWorkOrder.js b/src/api/aftersales/aftersalesWorkOrder.js index 389d5083..baed09b7 100644 --- a/src/api/aftersales/aftersalesWorkOrder.js +++ b/src/api/aftersales/aftersalesWorkOrder.js @@ -274,3 +274,12 @@ export const $_getAbnormalPackage = (params) => { params }) } + +//查询申述数据 +export const $_listAppeal = (params) => { + return request({ + url: '/api/logpm-aftersales/aftersalesAppeal/listAppeal', + method: 'get', + params + }) +} diff --git a/src/option/aftersales/vueTvemp.js b/src/option/aftersales/vueTvemp.js index e7749a9a..d36cd424 100644 --- a/src/option/aftersales/vueTvemp.js +++ b/src/option/aftersales/vueTvemp.js @@ -644,5 +644,15 @@ export const Claimsfield = [ sortable: true, head: false, }, + { + prop: 'createUserName', + label: '操作', + type: 6, + values: '', + width: '220', + checkarr: [], + fixed: 'right', + sortable: false, + }, ] diff --git a/src/router/views/index.js b/src/router/views/index.js index 08cd3f34..d35eb521 100644 --- a/src/router/views/index.js +++ b/src/router/views/index.js @@ -1216,6 +1216,21 @@ export default [ }, ], }, + + { + path: '/aftersales/aftersalesWorkOrderInfo', + component: Layout, + redirect: '/aftersales/aftersalesWorkOrderInfo', + children: [ + { + path: '/aftersales/aftersalesWorkOrderInfo', + name: '工单详情查看', + component: () => import('@/views/aftersales/aftersalesWorkOrderInfo.vue'), + }, + ], + }, + + { path: '/aftersales/aftersalesWorkOrderend', component: Layout, diff --git a/src/views/aftersales/aftersalesWorkOrder.vue b/src/views/aftersales/aftersalesWorkOrder.vue index e0478b35..050bda68 100644 --- a/src/views/aftersales/aftersalesWorkOrder.vue +++ b/src/views/aftersales/aftersalesWorkOrder.vue @@ -89,7 +89,7 @@ 工单指派 申请仲裁 批量完结 - 申诉 + 申诉
@@ -126,11 +126,14 @@ @@ -1013,7 +1016,7 @@ import { $_addCompletionEnd, $_appealSubmit, $_listSettlement, - $_getAbnormalPackage, + $_listAppeal, } from '@/api/aftersales/aftersalesWorkOrder'; import { getToken } from '@/utils/auth'; import { getDictionaryBiz } from '@/api/system/dict'; //字典 @@ -1469,11 +1472,10 @@ const searchHide = () => { const view = val => { console.log(val.row.id); $router.push({ - path: '/aftersales/aftersalesWorkOrderAdd', + path: '/aftersales/aftersalesWorkOrderInfo', query: { id: val.row.id, name: val.row.id + '-信息查看', - routerState: 'view', }, }); return; @@ -1586,6 +1588,13 @@ const appeal = val => { }); return; } + if (details.selectionList.length>1) { + ElMessage({ + message: '只能单条申诉', + type: 'warning', + }); + return; + } dialogappeal.value = true; //展开申诉弹窗 }; // 工单申诉确认按钮 @@ -1596,7 +1605,16 @@ const Appealbutton = () => { let data = { peopleEntityList: [], //参数一 }; + data.workOrderId=details.selectionList[0].id + data.reason=Reasonforappeal.value + + data.appealPeopleName= warehouseData.value + .filter(item => Appealselection.value.includes(item.value)) + .map(item => item.label) + .join(','), //实际责任人名称 + details.selectionList.forEach(item => { + console.log(item.id); console.log(item, '已经选择的列表'); data['peopleEntityList'].push({ workOrderId: item.id, //异常工单ID @@ -1608,10 +1626,6 @@ const Appealbutton = () => { .filter(item => Appealselection.value.includes(item.value)) .map(item => item.label) .join(','), //实际责任人名称 - actualPersonId: warehouseData.value - .filter(item => Appealselection.value.includes(item.value)) - .map(item => item.value) - .join(','), //实际责任人ID }); }); console.log(data, '处理好的值'); @@ -1646,6 +1660,11 @@ const AppealTab = val => { IndexTable({ workOrderStatus: 30 }); } else { console.log('当前是申诉列表'); + let data={} + $_listAppeal(data).then(res=>{ + console.log(res,'申诉列表返回值') + + }) } }; @@ -2764,6 +2783,8 @@ const CompletedSubmission = () => { display: flex; align-items: flex-end; margin-bottom: 10px; + position: fixed; + bottom: 0; } .el-times { :deep(.el-input__wrapper) { diff --git a/src/views/aftersales/aftersalesWorkOrderAdd.vue b/src/views/aftersales/aftersalesWorkOrderAdd.vue index ae0326a7..c1356494 100644 --- a/src/views/aftersales/aftersalesWorkOrderAdd.vue +++ b/src/views/aftersales/aftersalesWorkOrderAdd.vue @@ -21,6 +21,7 @@ placeholder="请输入包条码" clearable :rows="2" + @change="ChangePackageInfo(item.packageCode, index)" />
@@ -36,6 +37,9 @@
+ + 查看历史包件 + 移除
@@ -361,6 +365,17 @@ :rows="2" /> + +
+ 说明: + +
+
移除 @@ -454,6 +469,28 @@ + + + + + + + 查看详情 + + + + \ No newline at end of file diff --git a/src/views/aftersales/aftersalesWorkOrderend.vue b/src/views/aftersales/aftersalesWorkOrderend.vue index 6fef7fca..75ad7851 100644 --- a/src/views/aftersales/aftersalesWorkOrderend.vue +++ b/src/views/aftersales/aftersalesWorkOrderend.vue @@ -22,9 +22,32 @@ - + + + + +
+ 运损节点 + + + +
+ + @@ -98,26 +121,7 @@
--> -
-
- 运损节点 - - - -
-
+ + + +
+
添加信息
+
+
+
+ 包条码: + +
+ +
+ 订单自编码: + +
+ +
+ 运单号: + +
+
+ +
+ + 查看历史包件 + + 移除 +
+
+
+ 总件数:{{ endFrom.number }} +
+
+
+
+
@@ -614,6 +660,30 @@ + + + + + + + + 查看详情 + + + + @@ -630,6 +700,7 @@ import { $_savaSurveyRecord, $_addProcessingResults, $_getSurveyRecord, + $_getAbnormalPackage, } from '@/api/aftersales/aftersalesWorkOrder'; import { columnList, recordList } from '@/option/aftersales/vueTvemp.js'; import { getToken } from '@/utils/auth'; @@ -656,6 +727,13 @@ const Msgtextarea = ref(''); //回复框消息 const msgState = ref(0); //回复消息状态 const Msgloading = ref(false); //消息回复的加载效果 const companyProportion = ref(0); //公司占比 +const HistoricalPackageList = ref([]); //历史包件数组 +const dialogHistoricalPackage=ref(false);//包件弹窗 +const HistoricalPackageinput=ref('');//历史包件选择 +const PackageInfo = ref([ + //包件信息 + { packageCode: '', orderCode: '', waybillNumber: '' }, +]); // 提货责任方 const responsible = ref([ { @@ -1184,6 +1262,47 @@ const amountMoney = () => { console.log('收款总计金额', TotalamountReceived.value); }; +// 添加包件 +const AddPackage = () => { + PackageInfo.value.push({ packageCode: '', orderCode: '', waybillNumber: '' }); +}; +// 包件移除 +const PackagRemoval = val => { + PackageInfo.value.splice(val, 1); //移除当前点击的按钮 +}; +// 查看历史包件 +const historicalPackages = val => { + dialogHistoricalPackage.value = true; //打开历史包件弹窗 + HistorIndex.value = val; + console.log(val); +}; +// 查询包件信息自动回显 +const ChangePackageInfo = (val, index) => { + let data = { + packageCode: val, + }; + $_getAbnormalPackage(data).then(res => { + console.log(res, '包件信息'); + console.log(res.data.data, '包件信息'); + + const packageData = res.data.data[0]; + PackageInfo.value[index].orderCode = packageData.orderCode; //订单自编码 + PackageInfo.value[index].waybillNumber = packageData.waybillNumber; //运单号 + PackageInfo.value[index].orderId = packageData.orderId; //运单号 + PackageInfo.value[index].state = false; //状态 + + if (res.data.data.length > 1) { + HistoricalPackageList.value = res.data.data; + PackageInfo.value[index].state = true; //状态 + } + // packageCode; //包件码 + // //订单自编码 + // orderCode: orderId; //运单号 + // workOrderId; //工单id + // workOrderNumber; //工单名称 + console.log(PackageInfo.value, '处理好的参数'); + }); +}; // 新视频预览 const AddVideoPreview = val => { VideoPreviewStatus.value = true; //开启视频查看弹窗 @@ -1448,6 +1567,29 @@ const replyMessage = () => { } }); }; + +// 历史包件里面的查看 +const ViewPackageDetails = val => { + if(!val){ + ElMessage({ + message: '请选择要查看的数据', + type: 'warning', + }) + return + } + console.log(val); + let info = HistoricalPackageList.value.find(obj => obj.workOrderId == val); + console.log(info,'筛选的值'); + $router.push({ + path: '/aftersales/aftersalesWorkOrderInfo', + query: { + id: info.workOrderId, + name: info.workOrderId + '-信息查看', + routerState: 'view', + }, + }); + dialogHistoricalPackage.value = false; //打开历史包件弹窗 +}; diff --git a/src/views/basicdata/warehouse/goodsShelf/basicdataGoodsShelfView.vue b/src/views/basicdata/warehouse/goodsShelf/basicdataGoodsShelfView.vue index a6c24102..aab34e96 100644 --- a/src/views/basicdata/warehouse/goodsShelf/basicdataGoodsShelfView.vue +++ b/src/views/basicdata/warehouse/goodsShelf/basicdataGoodsShelfView.vue @@ -647,11 +647,11 @@ onMounted(() => { initconfig(); initnumber(); }); -async function initnumber() { - let res = await Alloclocationsnub(); - console.log(res.data.data); - details.countnumber = res.data.data; -} +// async function initnumber() { +// let res = await Alloclocationsnub(); +// console.log(res.data.data); +// details.countnumber = res.data.data; +// } // watchEffect(()=>{ // if(details.isshowupt){ // details.inputtxts='' @@ -666,8 +666,10 @@ async function initconfig() { let res = await getstoreCargo(); details.arrlist = res.data.data; console.log(details.arrlist, '仓库列表'); + if (details.arrlist.length > 0) { $_locationsnub({ warehouseId: details.arrlist[0].id }).then(res => { + details.countnumber =res.data.data console.log('初始化仓库参数成功', res); }); } @@ -849,6 +851,7 @@ const checkcso = val => { console.log(details.arrlist[val].id, '选择的ID-====='); console.log(val, '货位接受参数'); $_locationsnub({ warehouseId: details.arrlist[val].id }).then(res => { + details.countnumber =res.data.data console.log('切换请求成功', res); }); if (details.arrlist[details.checkselect]?.warehouseGoodsAreaVOList.length > 0) { diff --git a/vite.config.js b/vite.config.js index eacdd94d..5b916f74 100644 --- a/vite.config.js +++ b/vite.config.js @@ -23,9 +23,10 @@ export default ({ mode, command }) => { // 新zyc // target: 'http://192.168.6.116:8777', - target: 'http://192.168.6.122:8777', + // target: 'http://192.168.6.122:8777', // target: 'http://192.168.6.116:8777', - // tjj + // tjj : + target:'http://192.168.10.25:13000', // sst // target: 'http://192.168.10.94:8888', // target: 'http://192.168.10.29:13000',