|
@ -32,7 +32,7 @@ |
|
|
</el-button> |
|
|
</el-button> |
|
|
</template> |
|
|
</template> |
|
|
<template #differencePrice="{row}"> |
|
|
<template #differencePrice="{row}"> |
|
|
<span :class="{'red-text':row.differencePrice!=0}">{{ Number(row.differencePrice).toFixed(2) }}</span> |
|
|
<span :class="{'red-text':row.differencePrice!=0}">{{ Number(row.differencePrice).toFixed(4) }}</span> |
|
|
</template> |
|
|
</template> |
|
|
<template #action="{ row,$index }"> |
|
|
<template #action="{ row,$index }"> |
|
|
<ButtonBase :Butttondata="butttondata(row,$index)" @button-base-click="buttonTableClick($event,row)" /> |
|
|
<ButtonBase :Butttondata="butttondata(row,$index)" @button-base-click="buttonTableClick($event,row)" /> |
|
@ -115,7 +115,7 @@ |
|
|
|
|
|
|
|
|
<template #selectionsActionspoLine="{selections}"> |
|
|
<template #selectionsActionspoLine="{selections}"> |
|
|
<div style="text-align: left;margin-right:10px"> |
|
|
<div style="text-align: left;margin-right:10px"> |
|
|
系统未税金额:{{Number(selections.reduce((prev, item) => prev + Number(Number(Number(Number(item['purchasePrice']).toFixed(2))*item['invoicableQuantity']).toFixed(2)),0)).toFixed(2)}} |
|
|
系统未税金额:{{Number(selections.reduce((prev, item) => prev + Number(Number(Number(Number(item['purchasePrice']).toFixed(4))*item['invoicableQuantity']).toFixed(2)),0)).toFixed(2)}} |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
<!-- <template #foorter> |
|
|
<!-- <template #foorter> |
|
@ -124,7 +124,7 @@ |
|
|
</div> |
|
|
</div> |
|
|
</template> --> |
|
|
</template> --> |
|
|
<template v-slot="{row}"> |
|
|
<template v-slot="{row}"> |
|
|
<el-input :disabled="true" :class="{'is-red': row['singlePrice'] - row['purchasePrice'] > 0}" :modelValue="((row['singlePrice']) - (row['purchasePrice'])).toFixed(2)"/> |
|
|
<el-input :disabled="true" :class="{'is-red': row['singlePrice'] - row['purchasePrice'] > 0}" :modelValue="((row['singlePrice']) - (row['purchasePrice'])).toFixed(4)"/> |
|
|
</template> |
|
|
</template> |
|
|
</BasicForm> |
|
|
</BasicForm> |
|
|
|
|
|
|
|
@ -200,7 +200,7 @@ |
|
|
:sumFormDataByForm ="(formRef,formModel)=>{ |
|
|
:sumFormDataByForm ="(formRef,formModel)=>{ |
|
|
const {singlePrice=0,purchasePrice=0} = formModel |
|
|
const {singlePrice=0,purchasePrice=0} = formModel |
|
|
formRef.value.setValues({ |
|
|
formRef.value.setValues({ |
|
|
differencePrice:Number((Number(singlePrice)-Number(purchasePrice)).toFixed(2)) |
|
|
differencePrice:Number((Number(singlePrice)-Number(purchasePrice)).toFixed(4)) |
|
|
}) |
|
|
}) |
|
|
}" |
|
|
}" |
|
|
:isBasic="false" |
|
|
:isBasic="false" |
|
@ -1032,7 +1032,7 @@ const handleImport = () => { |
|
|
const submitForm = async (formType, submitData) => { |
|
|
const submitForm = async (formType, submitData) => { |
|
|
let data = {...submitData} |
|
|
let data = {...submitData} |
|
|
tableData.value.forEach((item) => { |
|
|
tableData.value.forEach((item) => { |
|
|
item.differencePrice = Number((Number(item?.singlePrice)-Number(item?.purchasePrice)).toFixed(2)) |
|
|
item.differencePrice = Number((Number(item?.singlePrice)-Number(item?.purchasePrice)).toFixed(4)) |
|
|
}) |
|
|
}) |
|
|
data.subList = tableData.value // 拼接子表数据参数 |
|
|
data.subList = tableData.value // 拼接子表数据参数 |
|
|
console.log('data',data) |
|
|
console.log('data',data) |
|
|