陈薪名 11 months ago
parent
commit
2e426f6b4d
  1. 5
      src/views/wms/purchasereceiptManage/inspect/inspectRequestMain/inspectRequestMain.data.ts
  2. 51
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue
  3. 9
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/purchasereturnRequestMain.data.ts

5
src/views/wms/purchasereceiptManage/inspect/inspectRequestMain/inspectRequestMain.data.ts

@ -59,6 +59,11 @@ export const InspectRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
isSearch: true, isSearch: true,
form:{
componentProps:{
disabled:true
}
}
}, },
{ {
label: '单据号', label: '单据号',

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

@ -143,10 +143,12 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) =>
row['supplierQty'] = val[0]['supplierQty'] row['supplierQty'] = val[0]['supplierQty']
row['supplierUom'] = val[0]['supplierUom'] row['supplierUom'] = val[0]['supplierUom']
row['inventoryStatus'] = val[0]['inventoryStatus'] row['inventoryStatus'] = val[0]['inventoryStatus']
row['fromLocationCode'] = val[0]['fromLocationCode'] row['fromLocationCode'] = val[0]['locationCode']
row['toLocationCode'] = '' row['toLocationCode'] = null
row['fromLocationGroupCode'] = val[0]['fromLocationGroupCode'] row['fromLocationGroupCode'] = val[0]['locationGroupCode']
row['toLocationGroupCode'] = '' row['toLocationGroupCode'] = null
row['toWarehouseCode'] = null
row['toLocationTypes'] = null
row['fromAreaCode'] = val[0]['areaCode'] row['fromAreaCode'] = val[0]['areaCode']
row['toAreaCode'] = val[0]['toAreaCode'] row['toAreaCode'] = val[0]['toAreaCode']
row['fromQwnerCode'] = val[0]['fromQwnerCode'] row['fromQwnerCode'] = val[0]['fromQwnerCode']
@ -177,8 +179,21 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) =>
item.batch = item.toBatch item.batch = item.toBatch
item.packingNumber = item.toPackingNumber item.packingNumber = item.toPackingNumber
item.containerNumber = item.toContainerNumber item.containerNumber = item.toContainerNumber
item.toLocationGroupCode = null
item.toWarehouseCode = null
item.toLocationTypes = null
item.toLocationCode = null
// item.fromLocationCode = item.fromLocationCode
// item.fromLocationGroupCode = item.fromLocationGroupCode
}) })
isShowButton.value = false isShowButton.value = false
console.log('formSchema', PurchasereturnRequestMain.allSchemas.formSchema)
PurchasereturnRequestMain.allSchemas.formSchema.forEach((item) => {
if (item.field == 'supplierCode') {
item.componentProps.disabled = true
}
})
PurchasereturnRequestDetail.allSchemas.tableFormColumns.map((item) => { PurchasereturnRequestDetail.allSchemas.tableFormColumns.map((item) => {
item.tableForm.disabled = true item.tableForm.disabled = true
if (item.field == 'remark') { if (item.field == 'remark') {
@ -331,6 +346,11 @@ const formRef = ref()
const openForm = async (type: string, row?: number) => { const openForm = async (type: string, row?: number) => {
tableData.value = [] // tableData.value = [] //
isShowButton.value = true isShowButton.value = true
PurchasereturnRequestMain.allSchemas.formSchema.forEach((item) => {
if (item.field == 'supplierCode') {
item.componentProps.disabled = false
}
})
formRef.value.open(type, row) formRef.value.open(type, row)
} }
@ -440,25 +460,28 @@ const handleAddTable = () => {
item.tableForm.disabled = false item.tableForm.disabled = false
} }
if (item.field == 'itemCode') { if (item.field == 'itemCode') {
item.tableForm.isInpuFocusShow = true item.tableForm.isInpuFocusShow = true
} }
}) })
} }
// //
const handleDeleteTable = (item, index,formRef) => { const handleDeleteTable = (item, index, formRef) => {
tableData.value.splice(index, 1) tableData.value.splice(index, 1)
if (tableData.value.length == 0) { if (tableData.value.length == 0) {
isShowButton.value = true isShowButton.value = true
nextTick(() => { PurchasereturnRequestMain.allSchemas.formSchema.forEach((item) => {
if (item.field == 'supplierCode') {
const setV = {} item.componentProps.disabled = false
}
setV['purchaseReceiptRecordNumber'] = '' })
nextTick(() => {
const setV = {}
setV['purchaseReceiptRecordNumber'] = ''
setV['supplierCode'] = '' setV['supplierCode'] = ''
formRef.setValues(setV) formRef.setValues(setV)
}) })
} }
} }
// //

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

@ -75,6 +75,11 @@ export const PurchasereturnRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
isSearch: true, isSearch: true,
form:{
componentProps:{
disabled:false
}
}
}, },
{ {
label: '承运商', label: '承运商',
@ -118,6 +123,7 @@ export const PurchasereturnRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
isTableForm:false,
isForm: false, isForm: false,
}, },
{ {
@ -142,6 +148,7 @@ export const PurchasereturnRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
isTableForm:false,
isForm: false, isForm: false,
}, },
{ {
@ -161,6 +168,7 @@ export const PurchasereturnRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
isForm: false, isForm: false,
isTableForm:false,
}, },
{ {
label: '从月台代码', label: '从月台代码',
@ -735,7 +743,6 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
table: { table: {
width: 150 width: 150
}, },
isTableForm:false,
tableForm:{ tableForm:{
disabled:true disabled:true
} }

Loading…
Cancel
Save