From 7146c6a47e5932cc06adeec4073b7450157f10af Mon Sep 17 00:00:00 2001
From: qb <1191961160@qq.com>
Date: Sat, 23 Dec 2023 09:12:07 +0800
Subject: [PATCH 1/4] =?UTF-8?q?=E9=9B=B6=E6=8B=85=E8=A1=A5=E5=BD=95?=
=?UTF-8?q?=E5=88=97=E8=A1=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../distribution/zeroAdditionalRecording.js | 44 +++++++++++++++++++
.../artery/zeroAdditionalRecording.vue | 10 ++++-
2 files changed, 53 insertions(+), 1 deletion(-)
diff --git a/src/api/distribution/zeroAdditionalRecording.js b/src/api/distribution/zeroAdditionalRecording.js
index bb1e45fc..d6832cc2 100644
--- a/src/api/distribution/zeroAdditionalRecording.js
+++ b/src/api/distribution/zeroAdditionalRecording.js
@@ -11,3 +11,47 @@ export const postloadZeroSuppleList = (data = {}) => {
});
};
+/** 在调度池的零担列表 */
+export const postUseZeroList = (data = {}) => {
+ return request({
+ url: '/api/logpm-trunkline/carsLoad/useZeroList',
+ method: 'post',
+ data,
+ });
+};
+
+/** 添加零担补录 */
+export const postAddZeroSupple = (data = {}) => {
+ return request({
+ url: '/api/logpm-trunkline/carsLoad/addZeroSupple',
+ method: 'post',
+ data,
+ });
+};
+
+/** 更新零担补录的数量 */
+export const postUpdateZeroSuppleNum = (data = {}) => {
+ return request({
+ url: '/api/logpm-trunkline/carsLoad/updateZeroSuppleNum',
+ method: 'post',
+ data,
+ });
+};
+
+/** 通过id删除零担补录 */
+export const postDeleteZeroSuppleById = (data = {}) => {
+ return request({
+ url: '/api/logpm-trunkline/carsLoad/DeleteZeroSuppleById',
+ method: 'post',
+ data,
+ });
+};
+
+/** 查询当前节点以后的节点id */
+export const postFindNextNodeList = (data = {}) => {
+ return request({
+ url: '/api/logpm-trunkline/carsLoad/findNextNodeList',
+ method: 'post',
+ data,
+ });
+};
diff --git a/src/views/distribution/artery/zeroAdditionalRecording.vue b/src/views/distribution/artery/zeroAdditionalRecording.vue
index d2bc5782..179abdec 100644
--- a/src/views/distribution/artery/zeroAdditionalRecording.vue
+++ b/src/views/distribution/artery/zeroAdditionalRecording.vue
@@ -208,7 +208,14 @@ import dayjs from 'dayjs';
import { mapGetters } from 'vuex';
/** 获取字典 */
import { getDictionaryBiz } from '@/api/system/dict';
-import { postloadZeroSuppleList } from '@/api/distribution/zeroAdditionalRecording';
+import {
+ postloadZeroSuppleList,
+ postUseZeroList,
+ postAddZeroSupple,
+ postUpdateZeroSuppleNum,
+ postDeleteZeroSuppleById,
+ postFindNextNodeList,
+} from '@/api/distribution/zeroAdditionalRecording';
import { downloadXls } from '@/utils/util';
import { oldColumnList, newColumnList } from '@/option/distribution/zeroAdditionalRecording';
import { ElMessage } from 'element-plus';
@@ -338,6 +345,7 @@ const onLoad = async (params = {}) => {
const submitData = {
...details.page,
...details.query,
+ orderCodes: details.orderCodeList,
...params,
};
From b632e2e0a4a4dc90469489ec4060f556dad26be7 Mon Sep 17 00:00:00 2001
From: xzg <4727863@qq.com>
Date: Sat, 23 Dec 2023 10:12:16 +0800
Subject: [PATCH 2/4] =?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/views/aftersales/aftersalesWorkOrder.vue | 2 +-
.../aftersales/aftersalesWorkOrderInfo.vue | 93 +++++++++++++++++++
vite.config.js | 2 +-
3 files changed, 95 insertions(+), 2 deletions(-)
diff --git a/src/views/aftersales/aftersalesWorkOrder.vue b/src/views/aftersales/aftersalesWorkOrder.vue
index 6b94c1cc..c8b0d566 100644
--- a/src/views/aftersales/aftersalesWorkOrder.vue
+++ b/src/views/aftersales/aftersalesWorkOrder.vue
@@ -1390,7 +1390,7 @@ const ButtonPermissions = computed(() => {
case 3: //待处理
return {
add: false, //新增按钮
- batchReject: UserPermissions.value == '仓库客服', //批量打回
+ batchReject: UserPermissions.value == '职能客服', //批量打回
assignment: UserPermissions.value == '客服经理', //工单指派
applyArbitration: false, //申请仲裁
batchFinish: false, //批量完结
diff --git a/src/views/aftersales/aftersalesWorkOrderInfo.vue b/src/views/aftersales/aftersalesWorkOrderInfo.vue
index 51a06465..2d5146f4 100644
--- a/src/views/aftersales/aftersalesWorkOrderInfo.vue
+++ b/src/views/aftersales/aftersalesWorkOrderInfo.vue
@@ -627,6 +627,99 @@ const ImgSuccess = (response, uploadFile) => {
console.log(Indexform.value['packList'], '图片列表');
}
};
+// 详情按钮权限
+const ButtonPermissions = computed(() => {
+ // 根据 TabPermissions 的状态,决定每个按钮的显示隐藏逻辑
+ switch (TabPermissions.value) {
+ case 0: //全部
+ return {
+ reply:true, //回复按钮(都可以查看)
+ ProcessingResults: UserPermissions.value == '仓库客服', //处理结果按钮
+ end: UserPermissions.value != '仓库客服', //完结按钮
+ repulse: UserPermissions.value != '仓库客服', //打回按钮
+ ArbitrationCompleted: UserPermissions.value == '仓库客服', //客服仲裁完结
+ edit: false, //编辑
+ };
+ case 1: //处理中
+ return {
+ reply: false, //回复按钮
+ ProcessingResults: false, //处理结果按钮
+ end: false, //完结按钮
+ repulse:false, //打回按钮
+ ArbitrationCompleted:false, //客服仲裁完结
+ edit: false,//编辑
+ };
+ case 2: //处理完毕
+ return {
+ reply: false, //回复按钮
+ ProcessingResults: false, //处理结果按钮
+ end: false, //完结按钮
+ repulse: false, //打回按钮
+ ArbitrationCompleted: false, //客服仲裁完结
+ edit: UserPermissions.value == '仓库客服' && AppealStatusT.value, //编辑
+ };
+ case 3: //待处理
+ return {
+ reply: false, //回复按钮
+ ProcessingResults: UserPermissions.value == '仓库客服',//处理结果按钮
+ end: UserPermissions.value == '客服经理', //完结按钮
+ repulse: false, //打回按钮
+ ArbitrationCompleted: false,//客服仲裁完结
+ edit: false, //编辑
+ };
+ case 4: //理赔金额未出
+ return {
+ reply: false, //回复按钮
+ ProcessingResults: false, //处理结果按钮
+ end: false, //完结按钮
+ repulse: false, //打回按钮
+ ArbitrationCompleted: false, //客服仲裁完结
+ edit: UserPermissions.value == '仓库客服', //编辑
+ };
+ case 5: //仲裁中
+ return {
+ reply: false, //回复按钮
+ ProcessingResults: false, //处理结果按钮
+ end: false, //完结按钮
+ repulse: false, //打回按钮
+ ArbitrationCompleted: false, //客服仲裁完结
+ edit: false, //编辑
+ };
+ case 6: //完结
+ return {
+ reply: false,//回复按钮
+ ProcessingResults: false, //处理结果按钮
+ end: false, //完结按钮
+ repulse: false, //打回按钮
+ ArbitrationCompleted: false, //客服仲裁完结
+ edit: false, //编辑
+ };
+ case 7: //超时未处理
+ return {
+ reply: false, //回复按钮
+ ProcessingResults: false, //处理结果按钮
+ end: false, //完结按钮
+ repulse: false,//打回按钮
+ ArbitrationCompleted: false, //客服仲裁完结
+ edit: false, //编辑
+ };
+ // 其他任何情况下的默认情况
+ default:
+ return {
+ reply: false, //回复按钮
+ ProcessingResults: false, //处理结果按钮
+ end: false,//完结按钮
+ repulse: false,//打回按钮
+ ArbitrationCompleted: false,//客服仲裁完结
+ edit: false,//编辑
+ };
+ }
+});
+
+
+
+
+
// 上传图片规则
const beforeAvatarUpload = rawFile => {
diff --git a/vite.config.js b/vite.config.js
index b5a294af..187bfd53 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -25,7 +25,7 @@ export default ({ mode, command }) => {
// target: 'http://192.168.6.122:8777',
// target: 'http://192.168.10.25:13000',
// target: 'http://192.168.10.25:2888',
- target: 'http://192.168.6.122:9777',
+ target: 'http://192.168.6.148:9777',
// target: 'http://192.168.6.116:8777',
// tjj
// sst
From b8389e67798ce08226693997d21c7346c32c9ae5 Mon Sep 17 00:00:00 2001
From: xzg <4727863@qq.com>
Date: Sat, 23 Dec 2023 10:51:34 +0800
Subject: [PATCH 3/4] =?UTF-8?q?=E6=8C=89=E9=92=AE=E6=9D=83=E9=99=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/aftersales/aftersalesWorkOrder.vue | 3 +-
.../aftersales/aftersalesWorkOrderAdd.vue | 58 ++++---
.../aftersales/aftersalesWorkOrderInfo.vue | 155 ++++++++++--------
3 files changed, 120 insertions(+), 96 deletions(-)
diff --git a/src/views/aftersales/aftersalesWorkOrder.vue b/src/views/aftersales/aftersalesWorkOrder.vue
index c8b0d566..558d7624 100644
--- a/src/views/aftersales/aftersalesWorkOrder.vue
+++ b/src/views/aftersales/aftersalesWorkOrder.vue
@@ -1366,7 +1366,7 @@ const ButtonPermissions = computed(() => {
batchReject: UserPermissions.value == '职能客服', //批量打回
assignment: UserPermissions.value == '客服经理', //工单指派
applyArbitration: UserPermissions.value == '仓库客服', //申请仲裁
- batchFinish: UserPermissions.value == '职能客服', //批量完结
+ batchFinish: UserPermissions.value != '仓库客服', //批量完结
appeal: false, //申诉
};
case 1: //处理中
@@ -1737,6 +1737,7 @@ const view = val => {
workOrderNumber: val.row.workOrderNumber, //添加异常记录包条码
businessId: val.row.businessId,
ProcessType: TabPermissions.value == 2 ? '2' : TabPermissions.value == 3 ? '1' : '', //类型 1 待处理 2 已处理
+ RouteIndexs:TabPermissions.value,//当前记录参数
},
});
return;
diff --git a/src/views/aftersales/aftersalesWorkOrderAdd.vue b/src/views/aftersales/aftersalesWorkOrderAdd.vue
index 425a2550..d90a714d 100644
--- a/src/views/aftersales/aftersalesWorkOrderAdd.vue
+++ b/src/views/aftersales/aftersalesWorkOrderAdd.vue
@@ -159,7 +159,7 @@
@@ -185,7 +185,6 @@
clearable
@change="DeliveryTrainnumber"
/>
-
-->
-
-
@@ -653,7 +650,6 @@ const ImgSuccess = (response, uploadFile) => {
console.log(response);
console.log(Indexform.value['packList'], '图片列表');
amplifysrcList.value.push(response.data.link);
-
}
};
@@ -672,9 +668,9 @@ const beforeAvatarUpload = rawFile => {
// 点击图片列表回调
const pictureList = val => {
console.log(val, '图片列表');
- dialogImgList.value=true;
+ dialogImgList.value = true;
console.log(val, '图片列表');
- amplifyurl.value=val.url;
+ amplifyurl.value = val.url;
};
// 点击图片移除
const ImgListRemove = val => {
@@ -745,7 +741,7 @@ const DiscoveringNodesChange = val => {
function DeliveryTrainnumber() {
let data = {
trainNumber: Indexform.value.trainNumber,
- taskTime:Indexform.value.deliveryTime
+ taskTime: Indexform.value.deliveryTime,
};
data.current = 1; //页码
data.size = 999; //条数
@@ -848,7 +844,20 @@ const ConfirmForm = () => {
});
}
}
-
+ if (SelectType.value == 1 && DataSubmit['decreaseImageEntityList'].length < 2) {
+ ElMessage({
+ message: '货损至少提供2张图片附件',
+ type: 'warning',
+ });
+ return;
+ }
+ if (SelectType.value == 3 && !DataSubmit['decreaseImageEntityList'].length) {
+ ElMessage({
+ message: '窜货必须提供图片附件',
+ type: 'warning',
+ });
+ return;
+ }
console.log(DataSubmit['decreaseImageEntityList'], '处理好的图片');
//司机信息处理
if (Indexform.value.deliveryDriver) {
@@ -1027,12 +1036,12 @@ const ConfirmForm = () => {
});
};
// 选择司机带出车次号日期
-const changeDeliveryDriver=(val)=>{
-console.log(val);
-console.log(DeliveryDriver.value,'司机信息');
-Indexform.value.trainNumber= DeliveryDriver.value.find(res=>res.id==val).trainNumber;//车次号
-Indexform.value.deliveryTime= DeliveryDriver.value.find(res=>res.id==val).taskTime;//日期
-}
+const changeDeliveryDriver = val => {
+ console.log(val);
+ console.log(DeliveryDriver.value, '司机信息');
+ Indexform.value.trainNumber = DeliveryDriver.value.find(res => res.id == val).trainNumber; //车次号
+ Indexform.value.deliveryTime = DeliveryDriver.value.find(res => res.id == val).taskTime; //日期
+};
// 少货件数对应事件
const ShortageTtems = val => {
ShortageList.value = []; //进入之前重置参数
@@ -1152,12 +1161,12 @@ const ChangePackageInfo = (val, index) => {
PackageInfo.value[index].orderId = packageData.orderId; //运单号
PackageInfo.value[index].brandName = packageData.brandName; //品牌
PackageInfo.value[index].state = false; //状态
- res.data.data.find(item=>{
- if(item.workOrderId && item.workOrderNumber){
+ res.data.data.find(item => {
+ if (item.workOrderId && item.workOrderNumber) {
HistoricalPackageList.value = res.data.data;
- PackageInfo.value[index].state = true; //状态
+ PackageInfo.value[index].state = true; //状态
}
- })
+ });
}
// packageCode; //包件码
// //订单自编码
@@ -1216,7 +1225,7 @@ const ViewPackageDetails = val => {
flex-wrap: wrap;
justify-content: flex-start;
border: 1px solid #ccc;
- border-bottom: none;
+ border-bottom: none;
.el-form-item {
height: 46px;
display: flex;
@@ -1351,11 +1360,11 @@ const ViewPackageDetails = val => {
width: 80%;
display: flex;
justify-content: space-between;
- .el_zb{
+ .el_zb {
width: 140px;
margin-right: 50px;
text-align: right;
- :deep(.el-input){
+ :deep(.el-input) {
margin-left: 10px;
text-align: right;
}
@@ -1443,11 +1452,10 @@ const ViewPackageDetails = val => {
border-bottom: 1px solid #e4e7ed !important;
}
:deep(.topClass) {
- border-bottom:none;
+ border-bottom: none;
.el-tabs__content {
padding: 0;
}
-
}
.foot_btn {
position: fixed;
@@ -1471,7 +1479,7 @@ const ViewPackageDetails = val => {
align-items: center;
justify-content: center;
}
-.box-card{
+.box-card {
height: 100% !important;
overflow-y: scroll;
}
diff --git a/src/views/aftersales/aftersalesWorkOrderInfo.vue b/src/views/aftersales/aftersalesWorkOrderInfo.vue
index 2d5146f4..af9d159b 100644
--- a/src/views/aftersales/aftersalesWorkOrderInfo.vue
+++ b/src/views/aftersales/aftersalesWorkOrderInfo.vue
@@ -432,26 +432,26 @@
-
-
+
+
@@ -495,14 +495,12 @@