|
|
|
@ -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 => |
|
|
|
|