Browse Source

客服

dev-xx
马远东 1 year ago
parent
commit
037659692d
  1. 15
      src/views/aftersales/aftersalesWorkOrderAdd.vue
  2. 20
      src/views/aftersales/aftersalesWorkOrderInfo.vue
  3. 71
      src/views/aftersales/aftersalesWorkOrderend.vue

15
src/views/aftersales/aftersalesWorkOrderAdd.vue

@ -328,7 +328,6 @@
<div class="maxBox">
<el-form-item label="责任人">
<el-select
v-if="groundlineType != 1"
v-model="item.personResponsibleName"
@ -1126,9 +1125,23 @@ const ConfirmForm = () => {
workOrderId: Indexform.value.workOrderNumber? Indexform.value.workOrderNumber:null,
};
console.log(DataSubmit.surveyRecordDTO, '调查经过');
//
// ,,
if(groundlineType.value == 5 || groundlineType.value == 4 || groundlineType.value == 7){
const Humanverification = FangAddList.value.every(item => item.businessName !== "");
if(!Humanverification){
ElMessage({
message: '请填写责任人',
type: 'warning',
})
return
}
}
//
// FangAddList.value
//
if (groundlineType.value != 1) {
if (FangAddList.value.length) {
//

20
src/views/aftersales/aftersalesWorkOrderInfo.vue

@ -441,13 +441,12 @@
v-if="PermissionButton.repulse"
v-if="PermissionButton.arbitration_completed"
v-if="PermissionButton.information_editing" -->
<el-button v-if="ButtonPermissions.reply" type="primary" @click="addireply">回复</el-button>
<el-button v-if="ButtonPermissions.ProcessingResults" type="primary" @click="addingRecord">处理结果</el-button>
<el-button v-if="ButtonPermissions.end" type="primary" @click="EndJump">完结 </el-button>
<el-button v-if="ButtonPermissions.repulse" type="primary" @click="BatchReturn">打回 </el-button>
<el-button v-if="ButtonPermissions.ArbitrationCompleted" type="primary" @click="CustomerServiceCompleted">客服仲裁完结 </el-button>
<el-button v-if="ButtonPermissions.edit" type="primary" @click="EditInformation">信息编辑</el-button>
<el-button type="primary" @click="addireply">回复</el-button>
<el-button type="primary" @click="addingRecord">处理结果</el-button>
<el-button type="primary" @click="EndJump">完结 </el-button>
<el-button type="primary" @click="BatchReturn">打回 </el-button>
<el-button type="primary" @click="CustomerServiceCompleted">客服仲裁完结 </el-button>
<el-button @click="EditInformation">信息编辑</el-button>
</div>
</el-card>
<!-- 批量打回弹窗 -->
@ -908,7 +907,8 @@ const onLoad = () => {
.map(item => {
return { businessName: item.businessId };
});
console.log(FangAddList.value,'责任方回显问题');
//
let sum = 0;
res.data.data.personResponsibleVOS.forEach(item => {
@ -922,6 +922,7 @@ const onLoad = () => {
description: res.description, //
};
});
console.log(FangAddList.value,'责任方回显问题');
res.data.data.processorVOList.forEach(item => {
if (item) {
if (item.typesOf == 2) {
@ -930,9 +931,6 @@ const onLoad = () => {
}
}
});
// let a=['','']
// let b=['']
// let result = b.some(item => a.includes(item));
companyProportion.value = 100 - sum;
ProcessingRecordsName.value = ProcessingRecords.value.filter(item =>
warehouseData.value.includes(item.value)

71
src/views/aftersales/aftersalesWorkOrderend.vue

@ -373,13 +373,13 @@
<div class="el-ckbtn">
<el-button type="primary" @click="AddCompensation">添加赔款方</el-button>
<el-button type="primary" @click="AddPayee">添加款方</el-button>
<el-button type="primary" @click="AddPayee">添加款方</el-button>
</div>
<div class="payanindemnity" v-for="(item, index) in CompensationParty" :key="index">
<div class="el_pklab">
<span class="title" :style="{ color: item.state != 0 ? '#000' : '#F56C6C' }"
>{{ item.state == 0 ? '赔款方' : '款方' }}{{ item.cld }}</span
>{{ item.state == 0 ? '赔款方' : '款方' }}{{ item.cld }}</span
>
</div>
@ -387,7 +387,7 @@
<div class="sk_input">
<el-input
v-model="item.name"
:placeholder="item.state == 0 ? '请填写赔款方' : '请填写款方'"
:placeholder="item.state == 0 ? '请填写赔款方' : '请填写款方'"
/>
</div>
<div class="sk_input">
@ -401,6 +401,33 @@
placeholder="金额"
/>
</div>
<!-- 赔款方是那个仓库的 -->
<div class="sk_input" v-if="item.state == 0">
<el-select
v-model="item.warehouseId"
filterable
disabled
placeholder="请选择仓库"
>
<el-option
v-for="item in warehouseData"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</div>
<div class="sk_input" v-if="item.state == 0">
<el-input
v-model="item.personResponsibleList"
placeholder="请填写责任人"
clearable
:rows="2"
disabled
/>
</div>
<!-- <div class="sk_input" v-if="item.state == 0">
<el-input v-model="item.explains" placeholder="请填写说明" />
@ -883,9 +910,9 @@ const VideoPreviewStatus = ref(false); //视频预览状态
const warehouseData = ref([]); //
const MessageContent = ref([]);
const CompensationParty = ref([
{ name: '', state: 0, num: null, reason: '', cld: 1 }, //
{ name: '', state: 0, num: null, reason: '', cld: 1,warehouseId:null,personResponsibleList:'' }, //
// explains: ''
{ name: '', state: 1, num: null, reason: '', cld: 1 }, //
{ name: '', state: 1, num: null, reason: '', cld: 1 ,warehouseId:null,personResponsibleList:''}, //
// explains: ''
]); ///
const ProcessingList = ref([]); //
@ -1118,7 +1145,7 @@ const onLoad = () => {
endFrom.value.resultDescription = res.data.data.processingResultsVO.resultDescription;
//
//
//
if (res.data.data.completionRecipientEntityList.length > 0) {
CompensationParty.value = [];
@ -1127,9 +1154,9 @@ const onLoad = () => {
CompensationParty.value.push({
state: 1, //
num: item.money, //
name: item.recipient, //
reason: item.reasonReceivingPayment, //
// explains: item.explains, //
name: item.recipient, //
reason: item.reasonReceivingPayment, //
// explains: item.explains, //
cld: index + 1,
id: item.id,
});
@ -1142,9 +1169,9 @@ const onLoad = () => {
CompensationParty.value.push({
state: 0, //
num: item.money, //
name: item.indemnitor, //
reason: item.reason, //
// explains: item.explains, //
name: item.indemnitor, //
reason: item.reason, //
// explains: item.explains, //
cld: index + 1,
id: item.id,
accounting: item.accounting ? item.accounting : '',
@ -1405,10 +1432,10 @@ const AddCompensation = () => {
som++;
}
});
CompensationParty.value.push({ name: '', state: 0, num: 0, reason: '', cld: som });
CompensationParty.value.push({ name: '', state: 0, num: 0, reason: '', cld: som ,personResponsibleList:'',warehouseId:''});
// explains: ''
};
//
//
const AddPayee = () => {
let som = 1;
CompensationParty.value.forEach(item => {
@ -1416,7 +1443,7 @@ const AddPayee = () => {
som++;
}
});
CompensationParty.value.push({ name: '', state: 1, num: 0, reason: '', cld: som });
CompensationParty.value.push({ name: '', state: 1, num: 0, reason: '', cld: som,personResponsibleList:'',warehouseId:'' });
// explains: ''
};
//
@ -1501,7 +1528,7 @@ const amountMoney = () => {
_num
).result;
}
// 1
// 1
if (item.state == 1) {
TotalamountReceived.value = computeNumber(TotalamountReceived.value, '+', _num).result;
}
@ -1701,7 +1728,7 @@ const submit = () => {
let data = [
{
id: $route.query.id,
completionRecipientEntities: [], //
completionRecipientEntities: [], //
completionRecordEntities: [], //
reasonArbitration: endFrom.value.arbitrate, //
...info,
@ -1720,13 +1747,15 @@ const submit = () => {
money: Number(item.num), //
reasonArbitration: item.reason, //
workOrderId: info.id, //
warehouseId: info.warehouseId, //ID
// warehouseId: info.warehouseId, //ID
personResponsibleList:item.personResponsibleList,//
warehouseId:item.warehouseId,//ID
});
} else {
//
//
data[0]['completionRecipientEntities'].push({
recipient: item.name, //
reasonReceivingPayment: item.reason, //
recipient: item.name, //
reasonReceivingPayment: item.reason, //
money: Number(item.num), //
responsibleParty: FangAddList.value
.map(aItem =>

Loading…
Cancel
Save