-
+
@@ -931,7 +939,7 @@ const form = ref({
responsibilityRatio: 0, //占比
description: '', //三方责任人
tripartite: '', //说明
- ProportionMax: 100, //最大值校验
+ ProportionMax: 99999999999999999, //最大值校验
Processingoptions: [
//提货责任方列表
],
@@ -1011,10 +1019,10 @@ const workOrderStatus = computed(() => {
// 修改提交权限
const Modificationsubmission = () => {
- if (['10','90'].includes($route.query.workOrderStatus)) {
- return true;
- }
- return false
+ if (['10', '90'].includes($route.query.workOrderStatus)) {
+ return true;
+ }
+ return false;
};
// 申诉成立权限
const Appealestablished = () => {
@@ -1023,14 +1031,14 @@ const Appealestablished = () => {
return true;
}
}
- return false
+ return false;
};
// 处理结果修改权限
const resultmodification = () => {
if ($route.query.workOrderStatus == '21') {
return true;
}
- return false
+ return false;
};
// 工单状态
const NumberState = computed(() => {
@@ -1084,7 +1092,7 @@ const responsibilities = async () => {
responsibilityRatio: 0, //占比
description: '', //三方责任人
tripartite: '', //说明
- ProportionMax: 100, //最大值校验
+ ProportionMax: 99999999999999999, //最大值校验
Processingoptions: [
//提货责任方列表
...ResponsibleParty.value,
@@ -1128,22 +1136,17 @@ const PageState = () => {
// );
// form.value.UserPermissions = matchingItem.dictValue;
-
// 获取用户角色信息,并拆分为数组
- const roleNames = await JSON.parse(localStorage.getItem('TWMS-userInfo')).content.role_name.split(
- ','
- );
- // 根据角色名称查找匹配项目
- const matchingItem = res.data.data.find(item => roleNames.includes(item.dictValue));
- if (matchingItem) {
- form.value.UserPermissions = matchingItem.dictValue;
- } else {
- form.value.UserPermissions = '仓库客服';
- }
-
-
-
-
+ const roleNames = await JSON.parse(
+ localStorage.getItem('TWMS-userInfo')
+ ).content.role_name.split(',');
+ // 根据角色名称查找匹配项目
+ const matchingItem = res.data.data.find(item => roleNames.includes(item.dictValue));
+ if (matchingItem) {
+ form.value.UserPermissions = matchingItem.dictValue;
+ } else {
+ form.value.UserPermissions = '仓库客服';
+ }
});
// 内部责任划分初始化
responsibilities();
@@ -1184,6 +1187,9 @@ const getPageData = async () => {
});
});
}
+ form.value.PackageList[0].packageCode
+ ? (form.value.basis.TabactiveName = 1)
+ : (form.value.basis.TabactiveName = 2);
// 基础信息
// trainNumber: ['3', '5', '6', '7'].includes(form.value.groundlineType), //车次号
// deliveryTime: ['5', '6', '7'].includes(form.value.groundlineType), //配送时间
@@ -1252,7 +1258,7 @@ const getPageData = async () => {
responsibilityRatio: Number(item.responsibilityRatio), //占比
description: item.description, //说明
tripartite: item.tripartite, //责任人
- ProportionMax: 100, //最大值校验
+ ProportionMax: 999999999999999999, //最大值校验
inputDisplay: true,
valueId: item.id,
Processingoptions: [
@@ -1273,7 +1279,7 @@ const getPageData = async () => {
id: form.value.responsibilitiesList.length + 1,
};
form.value.responsibilitiesList.push(data);
- calculateMaxValues();
+ // calculateMaxValues();
});
}
// 是否置空完结初始值
@@ -1498,7 +1504,7 @@ const AddResponsible = () => {
responsibilityRatio: 0, //占比
description: '', //三方责任人
tripartite: '', //说明
- ProportionMax: 100, //最大值校验
+ ProportionMax: 999999999999999999999999999999, //最大值校验
inputDisplay: false, //是否可以输入
Processingoptions: [
//提货责任方列表
@@ -1514,7 +1520,7 @@ const AddResponsible = () => {
id: form.value.responsibilitiesList.length + 1,
};
form.value.responsibilitiesList.push(data);
- calculateMaxValues();
+ // calculateMaxValues();
};
// 责任方移除
const Responsemoval = index => {
@@ -1528,7 +1534,7 @@ const Responsemoval = index => {
form.value.responsibilitiesList.forEach((item, index) => {
item.id = index + 1;
});
- calculateMaxValues(); //调用占比计算
+ // calculateMaxValues(); //调用占比计算
ElMessage({
message: '移除成功.',
type: 'success',
@@ -1538,6 +1544,7 @@ const Responsemoval = index => {
};
const calculateMaxValues = () => {
+ return
// 计算每个输入框剩余最大值
let data = form.value.responsibilitiesList;
let totalUsed = data.reduce((acc, item) => acc + item.responsibilityRatio, 0);
@@ -2058,12 +2065,12 @@ const onSubmit = () => {
tripartite: item.tripartite, //三方责任人
description: item.description, //说明
};
- // 责任人查询
- let Responsibleperson = item.ResponsibleoNameptions.find(
+ // 责任人查询
+ let Responsibleperson = item.ResponsibleoNameptions.find(
res => res.id == item.personResponsibleId
);
- console.log(Responsibleperson,'Responsibleperson');
-
+ console.log(Responsibleperson, 'Responsibleperson');
+
if (form.value.groundlineType == '1') {
data.personResponsibleName = item.personResponsibleId; //责任人名称
data.businessName = item.Processingoptions.find(
@@ -2071,8 +2078,10 @@ const onSubmit = () => {
).label; //责任方
data.businessId = item.businessId; //责任方id
} else {
- data.personResponsibleId = Responsibleperson? Responsibleperson.id:null; //责任人id
- data.personResponsibleName = item.ResponsibleoNameptions.find(res => res.id == item.personResponsibleId)?.name || item.personResponsibleId; //责任人名称
+ data.personResponsibleId = Responsibleperson ? Responsibleperson.id : null; //责任人id
+ data.personResponsibleName =
+ item.ResponsibleoNameptions.find(res => res.id == item.personResponsibleId)?.name ||
+ item.personResponsibleId; //责任人名称
data.businessName = item.Responsibleoptions.find(
res => res.value == item.businessId
).label; //责任方
@@ -2094,8 +2103,8 @@ const onSubmit = () => {
) {
submitData.decreaseImageEntityList = [];
form.value.fileList.forEach(item => {
- console.log(item,'图片12');
-
+ console.log(item, '图片12');
+
if (item.response || item.url) {
submitData['decreaseImageEntityList'].push({
imageName: item.response?.data.originalName || item.name, //图片名称
@@ -2154,9 +2163,9 @@ const onSubmit = () => {
//是否直接提交到处理结果
if (form.value.Processed) {
submitData.workOrderStatus = 30;
- submitData.resultIdentification=1;
- }else{
- submitData.resultIdentification=2;
+ submitData.resultIdentification = 1;
+ } else {
+ submitData.resultIdentification = 2;
}
$_modifyData(submitData)
.then(res => {
@@ -2698,8 +2707,8 @@ const TabactiveClick = (a, b) => {
}
}
}
-:deep(.el_foort_img){
- .el-upload{
+:deep(.el_foort_img) {
+ .el-upload {
display: none;
}
}