Browse Source

明细--编辑--差额计算

master_hella_20240701
wangyufei 5 months ago
parent
commit
518a40dc47
  1. 6
      src/components/Detail/src/Detail.vue
  2. 6
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

6
src/components/Detail/src/Detail.vue

@ -182,6 +182,7 @@
:apiCreate="apiCreate"
:fromeWhere="fromeWhere"
:isDetail="true"
:sumFormDataByForm ="sumFormDataByForm"
@searchTableSuccess="searchTableSuccess"
:detailData="detailData"
@submitForm="submitForm"
@ -402,6 +403,11 @@ const props = defineProps({
required: false,
default: false
},
sumFormDataByForm:{
type:Function,
required: false,
default: null
},
})
const isShowDrawer = ref(false)
const detailLoading = ref(false)

6
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

@ -128,6 +128,12 @@
link: true, //
hasPermi: ''
}]"
:sumFormDataByForm ="(formRef,formModel)=>{
const {singlePrice=0,purchasePrice=0} = formModel
formRef.value.setValues({
differencePrice:Number((Number(singlePrice)-Number(purchasePrice)).toFixed(6))
})
}"
:isBasic="false"
:allSchemas="SupplierinvoiceRequestMain.allSchemas"
:detailAllSchemas="SupplierinvoiceRequestDetail.allSchemas"

Loading…
Cancel
Save