Browse Source

仲裁确定

dev-xx
马远东 1 year ago
parent
commit
01569a0101
  1. BIN
      dist.zip
  2. 2
      src/utils/util.js
  3. 45
      src/views/aftersales/aftersalesWorkOrder.vue

BIN
dist.zip

Binary file not shown.

2
src/utils/util.js

@ -518,7 +518,7 @@ const updateDetailQuery = (index, propName, obj) => {
export const processRowProperty = (index, row, details) => { export const processRowProperty = (index, row, details) => {
const nameRegex = /(\w+)NameS$/; // 捕获以'NameS'结尾的属性名 const nameRegex = /(\w+)NameS$/; // 捕获以'NameS'结尾的属性名
const match = row.prop.match(nameRegex); const match = row.prop.match(nameRegex);
console.log(match,'获取到的参数');
// 如果属性以'NameS'结尾,则更新相应的查询参数 // 如果属性以'NameS'结尾,则更新相应的查询参数
if (match) { if (match) {
const basePropName = match[1]; // 获取不包含'Name'的属性名 const basePropName = match[1]; // 获取不包含'Name'的属性名

45
src/views/aftersales/aftersalesWorkOrder.vue

@ -431,10 +431,10 @@
</el-dialog> </el-dialog>
<!-- 客服介入原因 --> <!-- 客服介入原因 -->
<el-dialog v-model="dialogCustomer" <el-dialog v-model="dialogCustomer"
v-loading="loadingCustomer"
element-loading-text="正在处理中..."
title="客服介入" width="30%" draggable> title="客服介入" width="30%" draggable>
<el-form :model="CustomerServiceForm" > <el-form :model="CustomerServiceForm" v-loading="loadingCustomer"
element-loading-text="正在处理中..." >
<el-form-item label="介入原因"> <el-form-item label="介入原因">
<el-input v-model="CustomerServiceForm.reasonRemarks" type="textarea" placeholder="请输入介入原因"/> <el-input v-model="CustomerServiceForm.reasonRemarks" type="textarea" placeholder="请输入介入原因"/>
</el-form-item> </el-form-item>
@ -443,7 +443,7 @@
<template #footer> <template #footer>
<span class="dialog-footer"> <span class="dialog-footer">
<el-button @click="dialogCustomer = false">取消</el-button> <el-button @click="dialogCustomer = false">取消</el-button>
<el-button type="primary" @click="CustomerServiceintervention"> <el-button type="primary" @click="CustomerServiceintervention" :disabled="loadingCustomer">
提交 提交
</el-button> </el-button>
</span> </span>
@ -1377,7 +1377,7 @@ const IndexTable = val => {
details.data = res.data.data.records; details.data = res.data.data.records;
} else { } else {
// details.data = res.data.data.records; // details.data = res.data.data.records;
details.data = [{}]; details.data = res.data.data.records;
} }
} }
@ -2175,11 +2175,22 @@ const btnsc = val => {
/** 表格表头下拉框选择 */ /** 表格表头下拉框选择 */
const selectsc = (index, row) => { const selectsc = (index, row) => {
processRowProperty(index, row, details);
console.log(details, '下拉的参数');
details.query.workOrderStatus = TabPermissions.value;
console.log(index,'type');
// details.query[row.prop] = index;
// processRowProperty(index, row, details);
console.log(row,'row搜索');
// details.query.workOrderStatus = TabPermissions.value;
details.query[row.prop] = index;
if (!index) delete details.query[row.prop];
if (row.prop == 'workOrderStatusNameS') {
details.query['workOrderStatus'] = index;
if (!index) delete details.query['workOrderStatus'];
}
DataRendering(TabPermissions.value, details.query); DataRendering(TabPermissions.value, details.query);
console.log(details.query);
return; return;
if (TimeoutStatus.value) { if (TimeoutStatus.value) {
@ -3059,9 +3070,21 @@ const EndArbitration=(val)=>{
let data={ let data={
assignList:[val.row.id] assignList:[val.row.id]
} }
details.loadingObj.list = true; //
$_updateArbitrateStatu(data).then(res=>{ $_updateArbitrateStatu(data).then(res=>{
console.log(res,'处理成功'); console.log(res,'处理成功');
if(res.data.code == 200){
ElMessage({
message: res.data.msg,
type: 'success',
})
DataRendering(TabPermissions.value);
}
}).catch(res=>{
console.log(res,'报错原因');
}).finally(()=>{
details.loadingObj.list = false; //
}) })
} }
@ -3334,6 +3357,7 @@ const CustomerServiceintervention = () => {
}); });
console.log(data, '仲裁处理好的参数'); console.log(data, '仲裁处理好的参数');
loadingCustomer.value=true;//
// //
$_arbitrate(data).then(res => { $_arbitrate(data).then(res => {
console.log(res, '仲裁成功返回值'); console.log(res, '仲裁成功返回值');
@ -3345,7 +3369,8 @@ const CustomerServiceintervention = () => {
}); });
} }
}).finally(()=>{ }).finally(()=>{
dialogCustomer.value=true;// dialogCustomer.value=false;//
loadingCustomer.value=false;//
}); });
}; };

Loading…
Cancel
Save