songguoqiang 2 months ago
parent
commit
ab55ed10ba
  1. 2
      src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue
  2. 35
      src/views/wms/productionManage/productdismantle/productdismantleRequestMain/productdismantleRequestMain.data.ts

2
src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue

@ -260,7 +260,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
nextTick(() => { nextTick(() => {
if (type == 'tableForm') { if (type == 'tableForm') {
// //
if(formField == 'packingNumber'){ if(formField == 'itemCode'){
row['containerNumber'] = val[0]['containerNumber'] row['containerNumber'] = val[0]['containerNumber']
row['itemCode'] = val[0]['itemCode'] row['itemCode'] = val[0]['itemCode']
row['packingNumber'] = val[0]['packingNumber'] row['packingNumber'] = val[0]['packingNumber']

35
src/views/wms/productionManage/productdismantle/productdismantleRequestMain/productdismantleRequestMain.data.ts

@ -691,16 +691,16 @@ export const ProductdismantleRequestDetaila = useCrudSchemas(reactive<CrudSchema
} }
}, },
{ {
label: '包装号', label: '物料代码',
field: 'packingNumber', field: 'itemCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
tableForm:{ tableForm:{
isInpuFocusShow: true, isInpuFocusShow: true,
searchListPlaceholder: '请选择包装号', searchListPlaceholder: '请选择物料代码',
searchField: 'packingNumber', searchField: 'itemCode',
searchTitle: '库存余额信息', searchTitle: '库存余额信息',
searchAllSchemas: Balance.allSchemas, searchAllSchemas: Balance.allSchemas,
searchPage: BalanceApi.getBalanceItemPage searchPage: BalanceApi.getBalanceItemPage
@ -709,31 +709,14 @@ export const ProductdismantleRequestDetaila = useCrudSchemas(reactive<CrudSchema
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
isSearchList: true, isSearchList: true,
searchListPlaceholder: '请选择包装号', searchListPlaceholder: '请选择物料代码',
searchField: 'packingNumber', searchField: 'itemCode',
searchTitle: '库存余额信息', searchTitle: '库存余额信息',
searchAllSchemas: Balance.allSchemas, searchAllSchemas: Balance.allSchemas,
searchPage: BalanceApi.getBalanceItemPage searchPage: BalanceApi.getBalanceItemPage
} }
} }
}, },
{
label: '物料代码',
field: 'itemCode',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps:{
disabled: true
}
},
tableForm: {
disabled: true
}
},
{ {
label: '成品库位代码', label: '成品库位代码',
field: 'fromLocationCode', field: 'fromLocationCode',
@ -1140,9 +1123,9 @@ export const ProductdismantleRequestDetailaRules = reactive({
productionLineCode: [ productionLineCode: [
{ required: true, message: '请选择生产线代码', trigger: 'change' } { required: true, message: '请选择生产线代码', trigger: 'change' }
], ],
packingNumber: [ // packingNumber: [
{ required: true, message: '请选择包装号', trigger: 'change' } // { required: true, message: '请选择包装号', trigger: 'change' }
], // ],
batch: [ batch: [
{ required: true, message: '请输入批次', trigger: 'blur' } { required: true, message: '请输入批次', trigger: 'blur' }
], ],

Loading…
Cancel
Save