Browse Source

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

hella_online_20240919
yufei_wang 3 days 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 cur 改变后值
*/
const detailBasicFormOnChange = (field, cur) => {
emit('detailBasicFormOnChange', field, cur)
const detailBasicFormOnChange = (field, cur, formRef) => {
emit('detailBasicFormOnChange', field, cur, formRef)
}
/**

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

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

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

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

Loading…
Cancel
Save