Browse Source

线边报废申请--编辑修改

hella_online_20240919
yufei_wang 2 months ago
parent
commit
0b2aaf9b90
  1. 4
      src/components/Detail/src/Detail.vue
  2. 12
      src/views/wms/issueManage/productionscrap/productionscrapRequestMain/index.vue
  3. 4
      src/views/wms/issueManage/productionscrap/productionscrapRequestMain/productionscrapRequestMain.data.ts

4
src/components/Detail/src/Detail.vue

@ -1110,8 +1110,8 @@ const openImage=(item)=>{
* @param field 当前操作字段 * @param field 当前操作字段
* @param cur 改变后值 * @param cur 改变后值
*/ */
const detailBasicFormOnChange = (field, cur) => { const detailBasicFormOnChange = (field, cur, formRef) => {
emit('detailBasicFormOnChange', field, cur) emit('detailBasicFormOnChange', field, cur, formRef)
} }
/** /**

12
src/views/wms/issueManage/productionscrap/productionscrapRequestMain/index.vue

@ -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))

4
src/views/wms/issueManage/productionscrap/productionscrapRequestMain/productionscrapRequestMain.data.ts

@ -759,6 +759,7 @@ export const ProductionscrapRequestDetail = useCrudSchemas(reactive<CrudSchema[]
}, },
hiddenInMain: true, hiddenInMain: true,
isTableForm: false, isTableForm: false,
isForm:false,
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
@ -1267,6 +1268,7 @@ export const ProductionscrapRequestDetail = useCrudSchemas(reactive<CrudSchema[]
}, },
isTable:false, isTable:false,
isTableForm: false, isTableForm: false,
isForm: false,
tableForm: { tableForm: {
enterSearch:true, enterSearch:true,
isInpuFocusShow: true, isInpuFocusShow: true,
@ -1326,6 +1328,7 @@ export const ProductionscrapRequestDetail = useCrudSchemas(reactive<CrudSchema[]
}, },
isTable:false, isTable:false,
isTableForm: false, isTableForm: false,
isForm: false,
tableForm:{ tableForm:{
disabled: true disabled: true
}, },
@ -1344,6 +1347,7 @@ export const ProductionscrapRequestDetail = useCrudSchemas(reactive<CrudSchema[]
}, },
isTable:false, isTable:false,
isTableForm: false, isTableForm: false,
isForm: false,
tableForm: { tableForm: {
disabled: true disabled: true
}, },

Loading…
Cancel
Save