|
@ -43,18 +43,28 @@ |
|
|
:tableAllSchemas="SupplierinvoiceRequestDetail.allSchemas" |
|
|
:tableAllSchemas="SupplierinvoiceRequestDetail.allSchemas" |
|
|
:tableFormRules="SupplierinvoiceRequestDetailRules" |
|
|
:tableFormRules="SupplierinvoiceRequestDetailRules" |
|
|
:tableData="tableData" |
|
|
:tableData="tableData" |
|
|
:sumFormData = "[{ |
|
|
:sumFormDataField = "[{ |
|
|
formField:'amount', |
|
|
formField:'amount', |
|
|
valueField:'singlePrice' |
|
|
tableField:'singlePrice' |
|
|
}]" |
|
|
}]" |
|
|
|
|
|
:sumFormDataByForm ="(formRef,formModel)=>{ |
|
|
|
|
|
const {taxRate=0,amount=0} = formModel |
|
|
|
|
|
formRef.value.setValues({ |
|
|
|
|
|
taxAmount:taxRate*amount |
|
|
|
|
|
}) |
|
|
|
|
|
}" |
|
|
:apiUpdate="SupplierinvoiceRequestMainApi.updateSupplierinvoiceRequestMain" |
|
|
:apiUpdate="SupplierinvoiceRequestMainApi.updateSupplierinvoiceRequestMain" |
|
|
:apiCreate="SupplierinvoiceRequestMainApi.createSupplierinvoiceRequestMain" |
|
|
:apiCreate="SupplierinvoiceRequestMainApi.createSupplierinvoiceRequestMain" |
|
|
:isBusiness="true" |
|
|
:isBusiness="true" |
|
|
@handleAddTable="handleAddTable" |
|
|
@handleAddTable="handleAddTable" |
|
|
@handleDeleteTable="handleDeleteTable" |
|
|
@handleDeleteTable="handleDeleteTable" |
|
|
@searchTableSuccess="searchTableSuccess" |
|
|
@searchTableSuccess="searchTableSuccess" |
|
|
@submitForm="submitForm" |
|
|
@submitForm="submitForm" |
|
|
/> |
|
|
> |
|
|
|
|
|
<template v-slot="{row}"> |
|
|
|
|
|
<el-input :disabled="true" :class="{'is-red': row['singlePrice'] - row['purchasePrice'] > 0}" :modelValue="row['singlePrice'] - row['purchasePrice']"/> |
|
|
|
|
|
</template> |
|
|
|
|
|
</BasicForm> |
|
|
|
|
|
|
|
|
<!-- 详情 --> |
|
|
<!-- 详情 --> |
|
|
<Detail |
|
|
<Detail |
|
@ -134,7 +144,7 @@ |
|
|
searchTablePage: SupplierApi.getSupplierPage |
|
|
searchTablePage: SupplierApi.getSupplierPage |
|
|
} |
|
|
} |
|
|
]) |
|
|
]) |
|
|
|
|
|
|
|
|
// 查询页面返回 |
|
|
// 查询页面返回 |
|
|
const searchTableSuccess = (formField, searchField, val, searchFormRef, type, row) => { |
|
|
const searchTableSuccess = (formField, searchField, val, searchFormRef, type, row) => { |
|
|
nextTick(() => { |
|
|
nextTick(() => { |
|
@ -566,3 +576,12 @@ const importSuccess = () => { |
|
|
importTemplateData.templateUrl = await SupplierinvoiceRequestMainApi.importTemplate() |
|
|
importTemplateData.templateUrl = await SupplierinvoiceRequestMainApi.importTemplate() |
|
|
}) |
|
|
}) |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
|
|
.is-red{ |
|
|
|
|
|
border-radius:var(--el-border-radius-base); |
|
|
|
|
|
border:1px solid var(--el-color-danger); |
|
|
|
|
|
box-shadow: 0 0 0 1px var(--el-color-danger) inset; |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
</style> |
|
|