qb 3 months ago
parent
commit
c5e7fc32cb
  1. 129
      src/views/aftersales/aftersalesWorkOrderAdd.vue
  2. 6
      src/views/aftersales/aftersalesWorkOrderInfo.vue
  3. 150
      src/views/aftersales/aftersalesWorkOrderTemp.vue

129
src/views/aftersales/aftersalesWorkOrderAdd.vue

@ -354,47 +354,47 @@
</el-form-item>
<!-- 初始必填 -->
<div class="el_Basic">
<el-form-item
label="处理方"
prop="basis.processor"
class="el_Processing"
v-if="displaySettings.processor"
>
<el-select
v-model="form.basis.processor"
placeholder="请选择处理方"
style="width: 100%"
multiple
filterable
clearable
>
<el-option
v-for="item in Processingoptions"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</el-form-item>
<!-- 初始必填 -->
<el-form-item
label="调查经过"
prop="basis.investigationProcess"
class="el_Investigation"
<el-form-item
label="处理方"
prop="basis.processor"
class="el_Processing"
v-if="displaySettings.processor"
style="width: 34.3%"
>
<el-select
v-model="form.basis.processor"
placeholder="请选择处理方"
style="width: 100%"
multiple
filterable
clearable
v-if="displaySettings.investigationProcess"
>
<el-input
v-model="form.basis.investigationProcess"
placeholder="请输调查经过"
type="textarea"
:autosize="{ minRows: 1, maxRows: 10 }"
clearable
<el-option
v-for="item in Processingoptions"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-form-item>
</div>
</el-select>
</el-form-item>
<!-- 初始必填 -->
<el-form-item
label="调查经过"
prop="basis.investigationProcess"
class="el_Investigation_process"
clearable
v-if="displaySettings.investigationProcess"
>
<el-input
v-model="form.basis.investigationProcess"
placeholder="请输调查经过"
type="textarea"
:autosize="{ minRows: 2, maxRows: 10 }"
clearable
/>
</el-form-item>
</div>
</el-tab-pane>
</el-tabs>
@ -1566,23 +1566,20 @@ const onSubmit = () => {
Responsibleperson = item.ResponsibleoNameptions.find(
res => res.id == item.personResponsibleId
);
if (form.value.groundlineType == '1') {
data.personResponsibleName = item.personResponsibleId; //
data.businessName = item.Processingoptions.find(
res => res.value == item.businessId
).label; //
data.businessId = item.businessId; //id
} else {
} else {
data.personResponsibleId = Responsibleperson ? Responsibleperson.id : null; //id
data.personResponsibleName = Responsibleperson
? Responsibleperson.name
: item.personResponsibleId; //
data.businessName = item.Responsibleoptions.find(
res => res.value == item.businessId
)?.label || ''; //
data.businessName =
item.Responsibleoptions.find(res => res.value == item.businessId)?.label || ''; //
data.businessId = item.businessId; //id
}
// ID
@ -1610,8 +1607,8 @@ const onSubmit = () => {
}
});
}
console.log(form.value,'表单内容');
console.log(form.value, '表单内容');
//
if (form.value.basis.result?.length) {
submitData.aftersalesProcessingResultsDTO = {
@ -1625,22 +1622,21 @@ const onSubmit = () => {
let resultTypeValue = Processingresultsoptions.value.find(
res => res.label == item.title
).value;
if (item.compensationMethod) {
if (item.compensationMethod) {
PlayName.push(
item.Paymentmethod.find(res => res.value == item.compensationMethod).label
);
}
submitData.aftersalesProcessingResultsDTO['processingMoneyEntityList'].push({
compensationMethodName: item.Paymentmethod.find(
res => res.value == item.compensationMethod
)?.label ||'', //
compensationMethodName:
item.Paymentmethod.find(res => res.value == item.compensationMethod)?.label || '', //
compensationMethod: item.compensationMethod, //value
compensationTime: item.compensationTime, //
money: item.money, //
paymentUnit: item.paymentUnit, //
resultName: item.title, //
resultType: resultTypeValue ? resultTypeValue : null, // value
typesOf: 1, //
typesOf: 1, //
});
});
submitData.aftersalesProcessingResultsDTO.resultType = form.value.Claimamount.map(
@ -1664,11 +1660,11 @@ const onSubmit = () => {
//()
if (form.value.Processed) {
submitData.workOrderStatus = 30;
submitData.resultIdentification=1;
}else{
submitData.resultIdentification=2;
submitData.resultIdentification = 1;
} else {
submitData.resultIdentification = 2;
}
delete submitData.result; //
//()
delete submitData.processor;
@ -1730,7 +1726,7 @@ const TabactiveClick = (a, b) => {
// border-left: 1px solid #dcdfe6;
// border-right: 1px solid #dcdfe6;
}
.el-tabs__content{
.el-tabs__content {
display: none;
}
}
@ -1856,24 +1852,6 @@ const TabactiveClick = (a, b) => {
margin-bottom: 0;
}
}
.el_Basic {
flex: 1;
display: flex;
min-width: 32%;
.el_Processing {
min-width: 50%;
}
:deep(.el_Investigation) {
flex: 1;
}
// :deep(.is-error) {
// .el-input--suffix {
// .el-textarea__inner:focus {
// box-shadow: 0 0 0 1px #ff0000 inset !important;
// }
// }
// }
}
}
.responsibilities {
:deep(.el-upload-dragger) {
@ -2039,4 +2017,7 @@ const TabactiveClick = (a, b) => {
top: 10%;
background-color: #ffffffc2;
}
.el_Investigation_process {
min-width: 100%;
}
</style>

6
src/views/aftersales/aftersalesWorkOrderInfo.vue

@ -1697,7 +1697,7 @@ const CustomerServiceCompleted = () => {
id: $route.query.id,
name: $route.query.workOrderNumber + '-客服仲裁完结',
businessId: $route.query.businessId,
warehouseId: $route.query.warehouseId,
// warehouseId: $route.query.warehouseId,
workOrderNumber: $route.query.workOrderNumber,
RouterState: 'Kfend',
workOrderStatus: $route.query.workOrderStatus, //
@ -1716,7 +1716,7 @@ const EditInformation = () => {
id: $route.query.id,
name: $route.query.workOrderNumber + '-编辑',
businessId: $route.query.businessId,
warehouseId: $route.query.warehouseId,
// warehouseId: $route.query.warehouseId,
workOrderNumber: $route.query.workOrderNumber,
RouterState: 'Infoedit',
workOrderStatus: $route.query.workOrderStatus, //
@ -1731,7 +1731,7 @@ const AppealEstablished = () => {
id: $route.query.id, //idworkOrderId
name: $route.query.workOrderNumber + '-申诉编辑',
businessId: $route.query.businessId,
warehouseId: $route.query.warehouseId,
// warehouseId: $route.query.warehouseId,
workOrderNumber: $route.query.workOrderNumber,
RouterState: 'Kfend',
workOrderStatus: $route.query.workOrderStatus, //

150
src/views/aftersales/aftersalesWorkOrderTemp.vue

@ -37,7 +37,13 @@
<div class="avue-crud__header">
<!-- 头部左侧按钮模块 -->
<div class="avue-crud__left">
<el-button type="primary" icon="Edit" v-if="ButtonPermissions.add">创建工单</el-button>
<el-button
type="primary"
icon="Edit"
v-if="ButtonPermissions.add"
@click="CreateworkOrder"
>创建工单</el-button
>
<el-button type="primary" icon="Download" v-if="ButtonPermissions.export_Report"
>Excel导出</el-button
>
@ -91,7 +97,7 @@
<el-tooltip content="表格设置" placement="bottom">
<el-button icon="Operation" @click="showdrawer(true)" circle></el-button>
</el-tooltip>
<el-tooltip content="高级搜索" placement="bottom">
<el-button icon="Search" @click="searchHide" circle></el-button>
</el-tooltip>
@ -114,7 +120,7 @@
>
<template #default="slotProps">
<template v-if="slotProps.scope.column.label === '异常工单号'">
<el-text class="el_textBtn" @click="InformationViewing(slotProps.scope)">
<el-text class="el_textBtn" @click="ViewDetailsRow(slotProps.scope.row)">
{{
slotProps.scope.column.label === '异常工单号'
? slotProps.scope.row.workOrderNumber
@ -124,7 +130,7 @@
</template>
<template v-if="slotProps.scope.column.label === '操作'">
<el-text>查看</el-text>
<el-text @click="ViewDetails(slotProps.scope.row)">查看</el-text>
</template>
</template>
</tablecmt>
@ -629,13 +635,15 @@ const timesc = (index, row) => {
if (!index) {
delete details.query[row.prop];
}
onLoad();
};
/** 表格表头下拉框选择 */
const selectsc = (index, row) => {
processRowPropertyName(index, row, details.query);
onLoad();
let _Obj = MatchCurrentMenu(); //
_Obj.request = true; //
_Obj.query = details.query;
processRowPropertyName(index, row, _Obj.query);
PublicDataRequest(TabPermissions.value); //
};
/** 表格表头复选框选择 */
const selectionChange = list => {
@ -690,6 +698,48 @@ const autoscaling = () => {
const _node = document.querySelector('.tableNode');
setNodeHeight(_node, '', true);
};
/**
* 该函数将 columnList - columnList10 等十一个表头对象的
* checkarr 属性赋值为对应的字典数组
* @param {Array} columnLists - 一个包含 columnList - columnList10 等十一个对象的数组
* @param {Object} propToDictionaryMap - 一个对象键为 columnList 对象的 prop 属性值为对应的字典数组
*/
const SelectionInitialization = () => {
const columnLists = [
columnList,
columnList1,
columnList2,
columnList3,
columnList4,
columnList5,
columnList6,
columnList7,
columnList8,
columnList9,
columnList10,
];
// if-else
const propToDictionaryMap = {
workOrderTypeNameS: dictionaries.pc_work_order.value,
discoveryNodeNameS: dictionaries.pc_discovery_node.value,
workOrderStatusNameS: dictionaries.work_order_status.value,
};
const functionIF = item => {
//
const filteredData = item.filter(item => item.type === 3);
filteredData.forEach(item => {
const checkarr = propToDictionaryMap[item.prop];
if (checkarr) {
item.checkarr = checkarr;
}
});
};
columnLists.forEach(functionIF);
};
/**
* 描述: 初始化字典包含角色信息异常类型发现环节工单状态
@ -747,26 +797,27 @@ const Roleverification = () => {
};
onMounted(() => {
autoscaling();
})
//
const onLoad = () => {};
});
/**
*页面初始化函数包含字典等必要请求
*/
const PageOnlaod = async () => {
PageLoading.value = true;
try {
await Dictionaryrequest(); //
await Roleverification(); //
PublicDataRequest(TabPermissions.value); //
//
await Promise.all([
Dictionaryrequest(), //
Roleverification(), //
SelectionInitialization(), //
]);
//
PublicDataRequest(TabPermissions.value);
} catch (error) {
console.log(error);
} finally {
PageLoading.value = false;
}
PageLoading.value = false;
console.log(Useridentity, 'Useridentity');
console.log('外部执行完毕');
console.log(dictionaries);
};
//
PageOnlaod();
@ -795,11 +846,13 @@ const PagingDataProcessing = () => {
* @return {void} 无返回值
*/
const tabChenge = async (value, Reset) => {
PageLoading.value = true; // loading
let _Obj = await MatchCurrentMenu(); //
_Obj.query = await deepClone(details.query); //
TabPermissions.value = value; //
PublicDataRequest(value, Reset); //
};
const PublicDataRequest = async (value, Reset) => {
try {
await MenuHeaderProcessing(value); //
@ -807,6 +860,7 @@ const PublicDataRequest = async (value, Reset) => {
// {_state}truefalse
let _state = PagingDataProcessing();
if (!_state) {
PageLoading.value = false; // oading
return;
}
PageLoading.value = true; // loading
@ -1095,20 +1149,56 @@ const Publicaccessdata = async Reset => {
}
};
//
const InformationViewing = val => {
console.log(val, '当前行数据');
const workOrderInfoPath = '/aftersales/aftersalesWorkOrderInfo';
/**
*
* @description 创建工单
*/
const CreateworkOrder = () => {
$router.push('/aftersales/aftersalesWorkOrderAdd');
};
/**
* @description: 全部常工单号跳转到详情信息页面
* @param {Object} row - 当前行数据
* @return {void}
*/
const ViewDetails0 = row => {
console.log(row, '当前行数据');
const workOrderInfoPath = '/aftersales/aftersalesWorkOrderInfo'; //
const queryParams = {
id: val.row.workOrderId,
name: `${val.row.workOrderNumber}-信息查看`,
warehouseId: val.row.warehouseId,
workOrderNumber: val.row.workOrderNumber,
businessId: val.row.businessId,
RouteIndexs: TabPermissions.value,
workOrderStatus: val.row.workOrderStatus,
id: row.id, //ID
name: `${row.workOrderNumber}-详情信息`,
workOrderNumber: row.workOrderNumber, //
RouteIndexs: TabPermissions.value, //
workOrderStatus: row.workOrderStatus, //
};
$router.push({ path: workOrderInfoPath, query: { ...queryParams, id: val.row.id } });
$router.push({ path: workOrderInfoPath, query: { ...queryParams } });
};
//
const ViewDetailsRow = row => {
console.log(row, '异常工单号点击查看详情当前行数据');
switch (TabPermissions.value) {
case 0:
ViewDetails0(row);
break;
case 1:
break;
}
};
/**
* @description: 查看按钮
* @param {Object} row 当前行数据
* @return {void} 无返回值
*/
const ViewDetails = row => {
console.log(row, '点击查看详情当前行数据');
switch (TabPermissions.value) {
case 0:
ViewDetails0(row); //
break;
case 1:
break;
}
};
</script>

Loading…
Cancel
Save