|
|
@ -54,6 +54,7 @@ |
|
|
|
@handleDeleteTable="handleDeleteTable" |
|
|
|
@searchTableSuccess="searchTableSuccess" |
|
|
|
@submitForm="submitForm" |
|
|
|
@inputNumberChange="inputNumberChange" |
|
|
|
/> |
|
|
|
|
|
|
|
<!-- 详情 --> |
|
|
@ -70,6 +71,7 @@ |
|
|
|
:Echo="Echo" |
|
|
|
@searchTableSuccessDetail="searchTableSuccessDetail" |
|
|
|
:detailValidate="detailValidate" |
|
|
|
@detailBasicFormOnChange="qtyOnChange" |
|
|
|
/> |
|
|
|
|
|
|
|
<!-- 创建标签 --> |
|
|
@ -85,6 +87,7 @@ |
|
|
|
@handleDeleteTable="handleDeleteTable" |
|
|
|
@searchTableSuccess="searchTableSuccess" |
|
|
|
@submitForm="submitFormLabel" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
<!-- 导入 --> |
|
|
@ -569,6 +572,17 @@ const submitFormLabel = async (formType, data) => { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
const inputNumberChange = (field, index, row, val) => { |
|
|
|
if(field == 'qty' || field == 'singlePrice'){ |
|
|
|
row.amount = row.qty * row.singlePrice |
|
|
|
} |
|
|
|
} |
|
|
|
const qtyOnChange = (field,val) =>{ |
|
|
|
if(field == 'qty' || field == 'singlePrice'){ |
|
|
|
detailRef.value.formRef.formRef.formModel.amount = detailRef.value.formRef.formRef.formModel.qty * detailRef.value.formRef.formRef.formModel.singlePrice |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** 初始化 **/ |
|
|
|
onMounted(async () => { |
|
|
|
getList() |
|
|
|