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