Browse Source

采购退货申请

master
zhang_li 1 year ago
parent
commit
fef240fbbd
  1. 5
      src/views/wms/purchasereceiptManage/inspect/inspectRequestMain/index.vue
  2. 18
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue
  3. 56
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/purchasereturnRequestMain.data.ts
  4. 2
      src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/index.vue
  5. 2
      src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/putawayRequestMain.data.ts

5
src/views/wms/purchasereceiptManage/inspect/inspectRequestMain/index.vue

@ -102,6 +102,7 @@ const updataTableColumns = (val) => {
// //
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => {
nextTick(() => { nextTick(() => {
console.log(val[0]['number'])
if (type == 'tableForm') { if (type == 'tableForm') {
// //
row[formField] = val[0][searchField] row[formField] = val[0][searchField]
@ -111,8 +112,8 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
setV['purchaseReceiptRecordNumber'] = val[0]['number'] setV['purchaseReceiptRecordNumber'] = val[0]['number']
setV['supplierCode'] = val[0]['supplierCode'] setV['supplierCode'] = val[0]['supplierCode']
row['poNumber'] = val[0]['number'] // row['poNumber'] = val[0]['number']
row['poLine'] = val[0]['lineNumber'] // row['poLine'] = val[0]['lineNumber']
formRef.setValues(setV) formRef.setValues(setV)
} }
}) })

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

@ -84,6 +84,7 @@ import * as PurchasereturnRequestMainApi from '@/api/wms/purchasereturnRequestMa
import * as PurchasereturnRequestDetailApi from '@/api/wms/purchasereturnRequestDetail' import * as PurchasereturnRequestDetailApi from '@/api/wms/purchasereturnRequestDetail'
import * as PurchasereceiptRecordDetailApi from '@/api/wms/purchasereceiptRecordDetail' import * as PurchasereceiptRecordDetailApi from '@/api/wms/purchasereceiptRecordDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { Console } from 'console'
// 退 // 退
defineOptions({ name: 'PurchasereturnRequestMain' }) defineOptions({ name: 'PurchasereturnRequestMain' })
@ -106,25 +107,26 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
nextTick(() => { nextTick(() => {
if (type == 'tableForm') { if (type == 'tableForm') {
// //
console.log(row['batch'])
console.log(val[0]['toBatch'])
row[formField] = val[0][searchField] row[formField] = val[0][searchField]
} else { } else {
const setV = {} const setV = {}
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
setV['purchaseReceiptRecordNumber'] = val[0]['number'] setV['purchaseReceiptRecordNumber'] = val[0]['number']
setV['supplierCode'] = val[0]['supplierCode'] setV['supplierCode'] = val[0]['supplierCode']
// getBomDisassemble // getBomDisassemble
PurchasereceiptRecordDetailApi.getPurchasereceiptRecordDetailList({ PurchasereceiptRecordDetailApi.getPurchasereceiptRecordDetailList({
masterId: val[0]['id']}).then(res => { masterId: val[0]['id']}).then(res => {
if (res) tableData.value = res if (res) tableData.value = res;
console.log(PurchasereturnRequestDetail.allSchemas.tableFormColumns) console.log(PurchasereturnRequestDetail.allSchemas.tableFormColumns)
tableData.value.forEach(item=>{
item.batch = item.toBatch
item.packingNumber = item.toPackingNumber
item.containerNumber = item.toContainerNumber
})
PurchasereturnRequestDetail.allSchemas.tableFormColumns.map(item => { PurchasereturnRequestDetail.allSchemas.tableFormColumns.map(item => {
// if(item.field == 'qty') {
// item.tableForm.disabled = false
// tableData.value.forEach(cur=>{
// item.tableForm.max = cur['qty']
// })
// }
if(item.field == 'remark') { if(item.field == 'remark') {
item.tableForm.disabled = false item.tableForm.disabled = false
} }

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

@ -534,20 +534,20 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
disabled:true disabled:true
} }
}, },
// {
// label: '从批次',
// field: 'fromBatch',
// sort: 'custom',
// table: {
// width: 150
// },
// tableForm:{
// disabled:true
// }
// },
{ {
label: '从批次', label: '批次',
field: 'fromBatch', field: 'batch',
sort: 'custom',
table: {
width: 150
},
tableForm:{
disabled:true
}
},
{
label: '到批次',
field: 'toBatch',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -568,30 +568,8 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
} }
}, },
{ {
label: '从包装号', label: '包装号',
field: 'fromPackingNumber', field: 'packingNumber',
sort: 'custom',
table: {
width: 150
},
tableForm:{
disabled:true
}
},
{
label: '到包装号',
field: 'toPackingNumber',
sort: 'custom',
table: {
width: 150
},
tableForm:{
disabled:true
}
},
{
label: '从器具号',
field: 'fromContainerNumber',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -601,8 +579,8 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
} }
}, },
{ {
label: '器具号', label: '器具号',
field: 'toContainerNumber', field: 'containerNumber',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150

2
src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/index.vue

@ -111,7 +111,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
} else { } else {
const setV = {} const setV = {}
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
setV['supplierCode'] = val[0]['code'] setV['inspectRecordNumber'] = val[0]['number']
formRef.setValues(setV) formRef.setValues(setV)
} }
}) })

2
src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/putawayRequestMain.data.ts

@ -39,7 +39,7 @@ const userDept = userStore.userSelfInfo.dept
export const PutawayRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ export const PutawayRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '到货检验记录单号', label: '到货检验记录单号',
field: 'purchaseReceiptRecordNumber', field: 'inspectRecordNumber',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150

Loading…
Cancel
Save