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