|
|
|
@ -294,6 +294,7 @@
|
|
|
|
|
disabled |
|
|
|
|
@input="ProportionInput" |
|
|
|
|
/> |
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
<div class="maxBox"> |
|
|
|
|
<span class="title">说明:</span> |
|
|
|
@ -313,7 +314,7 @@
|
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="Proportion"> |
|
|
|
|
<span class="title">公司占比:{{ companyProportion }}</span> |
|
|
|
|
<span class="title">公司占比:{{ companyProportion }}%</span> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</el-tab-pane> |
|
|
|
@ -848,7 +849,7 @@ const CompensationParty = ref([
|
|
|
|
|
const ProcessingList = ref([]); //处理结果已经选择的列表 |
|
|
|
|
// 责任方列表 |
|
|
|
|
const FangAddList = ref([ |
|
|
|
|
{ businessName: '', personResponsibleName: '', responsibilityRatio: '', description: '' }, |
|
|
|
|
{ businessName: '', personResponsibleName: '', responsibilityRatio: '' +'%', description: '' }, |
|
|
|
|
]); |
|
|
|
|
const TransportlossList = ref([ |
|
|
|
|
//运损发现节点 |
|
|
|
@ -1045,8 +1046,13 @@ const onLoad = () => {
|
|
|
|
|
// 公司占比回显计算 |
|
|
|
|
let sum = 0; |
|
|
|
|
FangAddList.value.forEach(item => { |
|
|
|
|
item.responsibilityRatio=item.responsibilityRatio.replace(/%/g, ''); |
|
|
|
|
sum = Number(item.responsibilityRatio) + sum; |
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
FangAddList.value.forEach(item=>{ |
|
|
|
|
item.responsibilityRatio=item.responsibilityRatio+'%' |
|
|
|
|
}) |
|
|
|
|
companyProportion.value = 100 - sum; |
|
|
|
|
if(res.data.data.processingResultsVO.processingMoneyEntityList.length){ |
|
|
|
|
ProcessingList.value = res.data.data.processingResultsVO.processingMoneyEntityList.map( |
|
|
|
@ -1137,7 +1143,6 @@ const onLoad = () => {
|
|
|
|
|
console.log(res, '处理方'); |
|
|
|
|
localStorage.getItem('WarehouseName') |
|
|
|
|
console.log(localStorage.getItem('WarehouseName'),'当前本地仓库'); |
|
|
|
|
|
|
|
|
|
res.data.data.forEach(item => { |
|
|
|
|
warehouseData.value.push({ |
|
|
|
|
value: item.id, |
|
|
|
@ -1390,7 +1395,7 @@ const payremove = (state, val) => {
|
|
|
|
|
amountMoney(); |
|
|
|
|
}; |
|
|
|
|
// 公司占比计算 |
|
|
|
|
const ProportionInput = () => { |
|
|
|
|
const ProportionInput = (val) => { |
|
|
|
|
console.log(FangAddList.value, '公司占比'); |
|
|
|
|
let sum = 0; |
|
|
|
|
FangAddList.value.forEach(item => { |
|
|
|
|