Browse Source

修复完结,处理结果确定事件

dev-xx
马远东 1 year ago
parent
commit
a2b27f3a9f
  1. 107
      src/views/aftersales/aftersalesWorkOrder.vue
  2. 3
      src/views/aftersales/aftersalesWorkOrderInfo.vue
  3. 32
      src/views/aftersales/aftersalesWorkOrdermodify.vue

107
src/views/aftersales/aftersalesWorkOrder.vue

@ -324,7 +324,7 @@
<div class="el-ckbtn"> <div class="el-ckbtn">
<el-button type="primary" @click="AddCompensation">添加赔款方</el-button> <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>
<div <div
@ -333,12 +333,12 @@
:key="index" :key="index"
> >
<span class="title" :style="{ color: item.state != 0 ? '#000' : '#F56C6C' }" <span class="title" :style="{ color: item.state != 0 ? '#000' : '#F56C6C' }"
>{{ item.state == 0 ? '赔款方' : '款方' }}{{ item.cld }}</span >{{ item.state == 0 ? '赔款方' : '款方' }}{{ item.cld }}</span
> >
<div class="sk_input"> <div class="sk_input">
<el-input <el-input
v-model="item.name" v-model="item.name"
:placeholder="item.state == 0 ? '请填写赔款方' : '请填写款方'" :placeholder="item.state == 0 ? '请填写赔款方' : '请填写款方'"
/> />
</div> </div>
<div class="sk_input"> <div class="sk_input">
@ -352,6 +352,35 @@
placeholder="金额" placeholder="金额"
/> />
</div> </div>
<div class="sk_input" v-if="item.state == 0">
<el-select v-model="item.warehouseId" filterable 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.personResponsibleName"
placeholder="请填写责任人"
clearable
:rows="2"
/>
</div>
<div class="sk_input" v-if="item.state == 1">
</div>
<div class="sk_input" v-if="item.state == 1">
</div>
<el-button type="danger" round @click="payremove(item.state, index)" <el-button type="danger" round @click="payremove(item.state, index)"
>移除</el-button >移除</el-button
> >
@ -541,6 +570,8 @@ import {
$_listOwn, $_listOwn,
$_moneyUpdate, $_moneyUpdate,
$_updateWorkList, $_updateWorkList,
$_updateManagerConfirmed,
$_updateWorkOrderStatus,
} from '@/api/aftersales/aftersalesWorkOrder'; } from '@/api/aftersales/aftersalesWorkOrder';
import { getToken } from '@/utils/auth'; import { getToken } from '@/utils/auth';
import { getDictionaryBiz } from '@/api/system/dict'; // import { getDictionaryBiz } from '@/api/system/dict'; //
@ -689,8 +720,8 @@ const TabList = ref([
const DeliveryDriver = ref([]); const DeliveryDriver = ref([]);
const CompensationParty = ref([ const CompensationParty = ref([
{ name: '', state: 0, num: null, reason: '', cld: 1 }, // { name: '', state: 0, num: null, reason: '', cld: 1 ,warehouseId:'',personResponsibleName:''}, //
{ name: '', state: 1, num: null, reason: '', cld: 1 }, // { name: '', state: 1, num: null, reason: '', cld: 1 ,warehouseId:'',personResponsibleName:''}, //
]); /// ]); ///
const details = reactive({ const details = reactive({
@ -1297,31 +1328,29 @@ const view = val => {
businessId: val.row.businessId, businessId: val.row.businessId,
ProcessType: TabPermissions.value == 2 ? '2' : TabPermissions.value == 3 ? '1' : '', // 1 2 ProcessType: TabPermissions.value == 2 ? '2' : TabPermissions.value == 3 ? '1' : '', // 1 2
RouteIndexs: TabPermissions.value, // RouteIndexs: TabPermissions.value, //
}, },
}); });
return; };
console.log(val, '当前行数据');
FromDisabled.value = true; // //
updateDictionary(IndexException.value, 'pc_work_order'); // const Appealeditor = (val) => {
updateDictionary(DiscoveringNodes.value, 'pc_discovery_node'); // //
getDeptWarehouse({}).then(res => { $router.push({
res.data.data.forEach(item => { path: '/aftersales/aftersalesWorkOrdermodify',
warehouseData.value.push({ query: {
value: item.id, id: val.row.id,
label: item.name, name: val.row.workOrderNumber + '-申诉编辑',
}); businessId: $route.query.businessId,
}); warehouseId: val.row.warehouseId,
}); workOrderNumber: val.row.workOrderNumber,
$_getDetail({ RouterState: 'Kfend',
id: val.row.id, Appealeditor: 'appeal',//
}).then(res => { },
console.log(res, '查看详情返回值');
if (res.data.data) {
Indexform.value = res.data.data;
Indexdialog.value = true; //
}
}); });
}; };
// //
const ViewDelete = val => { const ViewDelete = val => {
ElMessageBox.confirm(`是否删除该条数据?`) ElMessageBox.confirm(`是否删除该条数据?`)
@ -1492,8 +1521,7 @@ const Appealbutton = () => {
}); });
}; };
//
const Appealeditor = () => {};
// //
const abnormalChange = val => { const abnormalChange = val => {
@ -2225,7 +2253,7 @@ const DetermineStorage = val => {
let ID = {}; let ID = {};
ID = val.row.id; ID = val.row.id;
data['assignList'].push(ID); data['assignList'].push(ID);
if (routerState.value == 'end') { if(TabPermissions.value=='6'){
$_updateManagerConfirmed(data).then(res => { $_updateManagerConfirmed(data).then(res => {
if (res.data.code == 200) { if (res.data.code == 200) {
ElMessage({ ElMessage({
@ -2237,7 +2265,8 @@ const DetermineStorage = val => {
}); });
// //
console.log(data, '处理好的值'); console.log(data, '处理好的值');
} else { }
if(TabPermissions.value=='2'){
console.log(data, '处理好的数据'); console.log(data, '处理好的数据');
$_updateWorkOrderStatus(data).then(res => { $_updateWorkOrderStatus(data).then(res => {
console.log(res, '确定提交存储'); console.log(res, '确定提交存储');
@ -2445,9 +2474,9 @@ const AddCompensation = () => {
som++; som++;
} }
}); });
CompensationParty.value.push({ name: '', state: 0, num: 0, reason: '', cld: som }); CompensationParty.value.push({ name: '', state: 0, num: 0, reason: '', cld: som ,warehouseId:'',personResponsibleName:''});
}; };
// //
const AddPayee = () => { const AddPayee = () => {
let som = 1; let som = 1;
CompensationParty.value.forEach(item => { CompensationParty.value.forEach(item => {
@ -2494,7 +2523,7 @@ const amountMoney = () => {
_num _num
).result; ).result;
} }
// 1 // 1
if (item.state == 1) { if (item.state == 1) {
TotalamountReceived.value = computeNumber(TotalamountReceived.value, '+', _num).result; TotalamountReceived.value = computeNumber(TotalamountReceived.value, '+', _num).result;
} }
@ -2519,6 +2548,7 @@ const Batchcompletion = () => {
// //
const CompletedSubmission = () => { const CompletedSubmission = () => {
PLloading.value = true; // PLloading.value = true; //
console.log(CompensationParty.value); console.log(CompensationParty.value);
let pay = CompensationParty.value.find(item => item.cld == 1); let pay = CompensationParty.value.find(item => item.cld == 1);
@ -2557,13 +2587,14 @@ const CompletedSubmission = () => {
reason: party.reason, reason: party.reason,
money: Number(party.num), money: Number(party.num),
reasonArbitration: Reasonarbitration.value, reasonArbitration: Reasonarbitration.value,
workOrderId: selection.id, // workOrderId: selection.id,
warehouseId: selection.warehouseId, warehouseId: party.warehouseId,//
personResponsibleName:party.personResponsibleName
}; };
// completionRecordEntities // completionRecordEntities
data[index].completionRecordEntities.push(record); data[index].completionRecordEntities.push(record);
} else { } else {
// //
const recipient = { const recipient = {
recipient: party.name, recipient: party.name,
reasonReceivingPayment: party.reason, reasonReceivingPayment: party.reason,
@ -2573,7 +2604,7 @@ const CompletedSubmission = () => {
workOrderId: selection.id, workOrderId: selection.id,
warehouseId: selection.warehouseId, warehouseId: selection.warehouseId,
}; };
// completionRecipientEntities // completionRecipientEntities
data[index].completionRecipientEntities.push(recipient); data[index].completionRecipientEntities.push(recipient);
} }
}); });
@ -2800,7 +2831,7 @@ const CompletedSubmission = () => {
align-items: center; align-items: center;
margin-top: 20px; margin-top: 20px;
.title { .title {
width: 76px; width: 120px;
height: 100%; height: 100%;
display: flex; display: flex;
display: block; display: block;

3
src/views/aftersales/aftersalesWorkOrderInfo.vue

@ -960,7 +960,8 @@ const onLoad = () => {
payment: item.compensationMethod, payment: item.compensationMethod,
name: item.resultTypeName, name: item.resultTypeName,
text: item.compensationMethodName, text: item.compensationMethodName,
compensationTime: item.compensationTime, compensationTime: item.compensationTime,//
paymentUnit: item.paymentUnit, //
}; };
} }
); );

32
src/views/aftersales/aftersalesWorkOrdermodify.vue

@ -324,8 +324,8 @@
<span>%</span> <span>%</span>
</div> </div>
<div class="maxBox"> <div class="maxBox">
<el-form-item label="三方责任人"> <el-form-item label="三方责任人:">
<el-input v-model="item.tripartite" placeholder="请输入三方责任人" /> <el-input v-model="item.tripartite" placeholder="请输入三方责任人" :disabled="RouterState == 'Kfend'"/>
</el-form-item> </el-form-item>
</div> </div>
@ -366,6 +366,7 @@
:reserve-keyword="false" :reserve-keyword="false"
placeholder="请选择处理结果" placeholder="请选择处理结果"
@change="changeProcessingResults" @change="changeProcessingResults"
:disabled="Appealeditor=='appeal' "
> >
<el-option <el-option
v-for="item in ProcessingResults" v-for="item in ProcessingResults"
@ -387,15 +388,23 @@
:min="item.min" :min="item.min"
:max="item.max" :max="item.max"
@change="TotalChange" @change="TotalChange"
:disabled="Appealeditor=='appeal'"
/> />
</el-tooltip> </el-tooltip>
<!-- 申诉的时候不展示 -->
<div v-if="Appealeditor !='appeal'" class="Paymentname" @click="PaymentSelection(item)">
{{ item.payment ? item.text : '支付方式' }}
</div>
<div class="Paymentname" @click="PaymentSelection(item)"> <div class="Paymentname" v-else>
{{ item.payment ? item.text : '支付方式' }} {{ item.payment ? item.text : '支付方式' }}
</div> </div>
<div class="el_PaymentUnit"> <div class="el_PaymentUnit">
<span>支付单位:</span> <span>支付单位:</span>
<el-input v-model="item.paymentUnit" placeholder="请输入支付单位" /> <el-input v-model="item.paymentUnit" placeholder="请输入支付单位" :disabled="Appealeditor=='appeal' " />
</div> </div>
<el-date-picker <el-date-picker
disabled disabled
@ -551,11 +560,11 @@
<div class="dialog-footer"> <div class="dialog-footer">
<el-button @click="Indexdialog = false">取消</el-button> <el-button @click="Indexdialog = false">取消</el-button>
<el-button type="primary" @click="ConfirmForm" v-if="RouterState == 'Infoedit'"> <el-button type="primary" @click="ConfirmForm" v-if="RouterState == 'Infoedit' || Appealeditor=='appeal'">
提交 提交
</el-button> </el-button>
<!--编辑提交--> <!--编辑提交-->
<el-button type="primary" @click="Arbitrationcompleted" v-if="RouterState == 'Kfend'"> <el-button type="primary" @click="Arbitrationcompleted" v-if="RouterState == 'Kfend' && !Appealeditor">
提交 提交
</el-button> </el-button>
<!--客服仲裁完结 --> <!--客服仲裁完结 -->
@ -866,6 +875,11 @@ const ResponsiblePartychange = (val, index) => {
}; };
const onLoad = () => { const onLoad = () => {
RouterState.value = $route.query.RouterState; RouterState.value = $route.query.RouterState;
if($route.query.Appealeditor){
Appealeditor.value = $route.query.Appealeditor;//
console.log(Appealeditor.value,'申诉编辑状态');
}
console.log(RouterState.value, '路由状态'); console.log(RouterState.value, '路由状态');
getDictionaryBiz('result_handling').then(res => { getDictionaryBiz('result_handling').then(res => {
console.log(res, '发现环节'); console.log(res, '发现环节');
@ -919,12 +933,6 @@ const onLoad = () => {
unPackageInfo.value = JSON.parse(JSON.stringify(PackageInfo.value)); // unPackageInfo.value = JSON.parse(JSON.stringify(PackageInfo.value)); //
console.log(unPackageInfo.value, '包件信息'); console.log(unPackageInfo.value, '包件信息');
//
// FangAddList.value = res.data.data.processorVOList
// .filter(item => item && item.typesOf && item.typesOf == '1')
// .map(item => {
// return { businessName: item.businessId };
// });
FangAddList.value = res.data.data.personResponsibleVOS.map(res => { FangAddList.value = res.data.data.personResponsibleVOS.map(res => {
ResponsiblepartyData.value.push(res); ResponsiblepartyData.value.push(res);

Loading…
Cancel
Save