Browse Source

字段

hella_online_20240829
wangyufei 4 months ago
parent
commit
dd835c1d0d
  1. 22
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue
  2. 9
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/purchasereturnRequestMain.data.ts

22
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue

@ -233,9 +233,11 @@ const searchTableSuccess = async (formField, searchField, val, formRef, type, ro
if (type == 'tableForm') { if (type == 'tableForm') {
// //
if (formField == 'purchaseReceiptRecordNumber') { if (formField == 'asnNumber') {
row[formField] = val[0][searchField] row[formField] = val[0][searchField]
//-- //--
row['purchaseReceiptRecordNumber'] = val[0]['number']
row['asnNumber'] = val[0]['asnNumber']
row['supplierCode'] = val[0]['supplierCode'] row['supplierCode'] = val[0]['supplierCode']
row['poNumber'] = val[0]['poNumber'] row['poNumber'] = val[0]['poNumber']
row['poLine'] = val[0]['poLine'] row['poLine'] = val[0]['poLine']
@ -308,18 +310,24 @@ const searchTableSuccess = async (formField, searchField, val, formRef, type, ro
} }
} else { } else {
const setV = {} const setV = {}
if (formField == 'supplierCode') { if (formField == 'supplierCode') {
console.log('formModelformModel',formRef.formModel) console.log('formModelformModel',formRef.formModel)
if( formRef.formModel['supplierCode'] != val[0]['code']){ if( formRef.formModel['supplierCode'] != val[0]['code']){
setV['purchaseReceiptRecordNumber'] = '' setV['asnNumber'] = ''
setV['q2Number'] = '' setV['q2Number'] = ''
tableData.value = [] tableData.value = []
} }
} }
if (formField == 'asnNumber') {
if( formRef.formModel['asnNumber'] != val[0]['asnNumber']){
setV['q2Number'] = ''
tableData.value = []
}
}
if (formField == 'q2Number') { if (formField == 'q2Number') {
setV['q2Number'] = val[0]['number'] setV['q2Number'] = val[0]['number']
} }
if (formField == 'purchaseReceiptRecordNumber') { if (formField == 'asnNumber') {
// isShowButton.value = false // isShowButton.value = false
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
setV['purchaseReceiptRecordNumber'] = val[0]['number'] setV['purchaseReceiptRecordNumber'] = val[0]['number']
@ -611,7 +619,7 @@ const openForm = async (type: string, row?: number) => {
item.componentProps.disabled = true item.componentProps.disabled = true
item.componentProps.isSearchList = true item.componentProps.isSearchList = true
} }
if (item.field == 'purchaseReceiptRecordNumber') { if (item.field == 'asnNumber') {
item.componentProps.disabled = true item.componentProps.disabled = true
item.componentProps.isSearchList = true item.componentProps.isSearchList = true
} }
@ -623,7 +631,7 @@ const openForm = async (type: string, row?: number) => {
item.componentProps.disabled = true item.componentProps.disabled = true
item.componentProps.isSearchList = false item.componentProps.isSearchList = false
} }
if (item.field == 'purchaseReceiptRecordNumber') { if (item.field == 'asnNumber') {
item.componentProps.disabled = true item.componentProps.disabled = true
item.componentProps.isSearchList = false item.componentProps.isSearchList = false
} }
@ -891,7 +899,7 @@ const tableSelectionDelete = (selection) => {
}) })
nextTick(() => { nextTick(() => {
const setV = {} const setV = {}
setV['purchaseReceiptRecordNumber'] = '' setV['asnNumber'] = ''
setV['supplierCode'] = '' setV['supplierCode'] = ''
formRef.setValues(setV) formRef.setValues(setV)
}) })

9
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/purchasereturnRequestMain.data.ts

@ -213,9 +213,12 @@ export const PurchasereturnRequestMain = useCrudSchemas(
} }
} }
}, },
{ {
label: '采购收货记录单号', // label: '采购收货记录单号',
field: 'purchaseReceiptRecordNumber', // field: 'purchaseReceiptRecordNumber',
label: '发货单号',
field: 'asnNumber',
sort: 'custom', sort: 'custom',
table: { table: {
width: 180 width: 180
@ -226,7 +229,7 @@ export const PurchasereturnRequestMain = useCrudSchemas(
enterSearch: true, enterSearch: true,
disabled: true, disabled: true,
isSearchList: true, // 开启查询弹窗 isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择采购收货记录单号', // 输入框占位文本 searchListPlaceholder: '请选择发货单号', // 输入框占位文本
searchField: 'number', // 查询弹窗赋值字段 searchField: 'number', // 查询弹窗赋值字段
searchTitle: '采购收货记录', // 查询弹窗标题 searchTitle: '采购收货记录', // 查询弹窗标题
searchAllSchemas: PurchasereceiptRecordMain1.allSchemas, // 查询弹窗所需类 searchAllSchemas: PurchasereceiptRecordMain1.allSchemas, // 查询弹窗所需类

Loading…
Cancel
Save