|
|
@ -76,6 +76,8 @@ |
|
|
|
@searchTableSuccessDetail="searchTableSuccessDetail" |
|
|
|
@detailOpenForm="detailOpenForm" |
|
|
|
:detailValidate="detailValidate" |
|
|
|
@detailBasicFormOnChange="qtyOnChange" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
<!-- 创建标签 --> |
|
|
@ -185,6 +187,16 @@ const isItemType = async (itemCode, labelTypeParams) => { |
|
|
|
if (!isType) labelType.value = labelTypeOld |
|
|
|
return isType |
|
|
|
} |
|
|
|
const qtyOnChange = (field, cur, formRef) => { |
|
|
|
console.log('qtyOnChange',field, cur) |
|
|
|
console.log(formRef.value) |
|
|
|
if(field == 'qty' ){ |
|
|
|
const setV = { |
|
|
|
amount:Number(Number(cur * formRef.value.formModel.singlePrice).toFixed(2)) |
|
|
|
} |
|
|
|
formRef.value.setValues(setV) |
|
|
|
} |
|
|
|
} |
|
|
|
const inputNumberChange = (field, index, row, val) => { |
|
|
|
if(field == 'qty' ){ |
|
|
|
row.amount = Number(Number(row.qty * row.singlePrice).toFixed(2)) |
|
|
|