Browse Source

Merge branch 'master_hella' of http://dev.ccwin-in.com:3000/sfms3.0/sfms3.0-ui into master_hella

master_hella_20240701
zhaoxuebing 6 months ago
parent
commit
a93863c9c3
  1. 11
      src/api/wms/itempackage/index.ts
  2. 14
      src/views/wms/basicDataManage/itemManage/packageunit/packageunit.data.ts
  3. 40
      src/views/wms/countManage/count/countRequestMain/countRequestMain.data.ts
  4. 40
      src/views/wms/countManage/countadjust/countadjustRequestMain/countadjustRequestMain.data.ts
  5. 40
      src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRequestMain/customerreceiptRequestMain.data.ts
  6. 40
      src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/customerreturnRequestMain.data.ts
  7. 40
      src/views/wms/deliversettlementManage/customersettle/customersettleRequestMain/customersettleRequestMain.data.ts
  8. 40
      src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts
  9. 103
      src/views/wms/deliversettlementManage/stockup/stockupMainJob/index.vue
  10. 9
      src/views/wms/deliversettlementManage/stockup/stockupMainJob/stockupMainJob.data.ts
  11. 9
      src/views/wms/deliversettlementManage/stockup/stockupMainRecord/stockupMainRecord.data.ts
  12. 41
      src/views/wms/deliversettlementManage/stockup/stockupMainRequest/stockupMainRequest.data.ts
  13. 40
      src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/inventoryinitRequestMain.data.ts
  14. 40
      src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRequestMain/packageoverRequestMain.data.ts
  15. 40
      src/views/wms/inventoryjobManage/scrap/scrapRequestMain/scrapRequestMain.data.ts
  16. 40
      src/views/wms/inventoryjobManage/transferissue/transferissueRequestMain/transferissueRequestMain.data.ts
  17. 40
      src/views/wms/inventoryjobManage/transferreceipt/transferreceiptRequestMain/transferreceiptRequestMain.data.ts
  18. 40
      src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/unplannedissueRequestMain.data.ts
  19. 40
      src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/unplannedreceiptRequestMain.data.ts
  20. 40
      src/views/wms/issueManage/issue/issueRequestMain/issueRequestMain.data.ts
  21. 40
      src/views/wms/issueManage/onlinesettlement/onlinesettlementRequestMain/onlinesettlementRequestMain.data.ts
  22. 40
      src/views/wms/issueManage/pick/pickRequestMain/pickRequestMain.data.ts
  23. 40
      src/views/wms/issueManage/productionreturn/productionreturnRequestMain/productionreturnRequestMain.data.ts
  24. 40
      src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/inventorychangeRequestMain.data.ts
  25. 40
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts
  26. 40
      src/views/wms/productionManage/offlinesettlement/offlinesettlementRequestMain/offlinesettlementRequestMain.data.ts
  27. 40
      src/views/wms/productionManage/productdismantle/productdismantleRequestMain/productdismantleRequestMain.data.ts
  28. 40
      src/views/wms/productionManage/productputaway/productputawayRequestMain/productputawayRequestMain.data.ts
  29. 21
      src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue
  30. 410
      src/views/wms/productionManage/productreceipt/productreceiptRequestMain/productreceiptRequestMain.data.ts
  31. 40
      src/views/wms/productionManage/productrepair/productrepairRequestMain/productrepairRequestMain.data.ts
  32. 40
      src/views/wms/productionManage/productscrap/productscrapRequestMain/productscrapRequestMain.data.ts
  33. 40
      src/views/wms/purchasereceiptManage/inspect/inspectRequestMain/inspectRequestMain.data.ts
  34. 40
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/purchasereceiptRequestMain.data.ts
  35. 40
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/purchasereturnRequestMain.data.ts
  36. 40
      src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/putawayRequestMain.data.ts
  37. 40
      src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRequestMain/sparereceiptRequestMain.data.ts
  38. 40
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts
  39. 40
      src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/purchaseclaimRequestMain.data.ts
  40. 2
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts

11
src/api/wms/itempackage/index.ts

@ -41,6 +41,17 @@ export const getItempackagingPageBySupplierdeliver = async (params) => {
} }
} }
// 查询物料包装信息 列表--制品收货申请
export const getItempackagingPageByProductreceipt = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return request.post({ url: '/wms/itempackage/seniorByProductreceipt', data })
} else {
return await request.get({ url: `/wms/itempackage/pageByProductreceipt`, params })
}
}
// 查询物料包装信息 详情 // 查询物料包装信息 详情
export const getItempackaging = async (id: number) => { export const getItempackaging = async (id: number) => {

14
src/views/wms/basicDataManage/itemManage/packageunit/packageunit.data.ts

@ -112,7 +112,7 @@ export const PackageunitCopy = useCrudSchemas(reactive<CrudSchema[]>([
label: '包装描述', label: '包装描述',
field: 'desc', field: 'desc',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: false,
table: { table: {
width: 150 width: 150
}, },
@ -123,7 +123,7 @@ export const PackageunitCopy = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isSearch: true, isSearch: false,
form: { form: {
component: 'Switch', component: 'Switch',
value: 'TRUE', value: 'TRUE',
@ -142,7 +142,7 @@ export const PackageunitCopy = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isSearch: true, isSearch: false,
form: { form: {
component: 'Switch', component: 'Switch',
value: 'TRUE', value: 'TRUE',
@ -373,7 +373,7 @@ export const Packageunit = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
dictType: DICT_TYPE.PACK_UNIT, dictType: DICT_TYPE.PACK_UNIT,
dictClass: 'string', dictClass: 'string',
isSearch: true, isSearch: false,
table: { table: {
width: 150 width: 150
}, },
@ -400,7 +400,7 @@ export const Packageunit = useCrudSchemas(reactive<CrudSchema[]>([
label: '包装描述', label: '包装描述',
field: 'desc', field: 'desc',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: false,
table: { table: {
width: 150 width: 150
}, },
@ -411,7 +411,7 @@ export const Packageunit = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isSearch: true, isSearch: false,
form: { form: {
component: 'Switch', component: 'Switch',
value: 'TRUE', value: 'TRUE',
@ -430,7 +430,7 @@ export const Packageunit = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isSearch: true, isSearch: false,
form: { form: {
component: 'Switch', component: 'Switch',
value: 'TRUE', value: 'TRUE',

40
src/views/wms/countManage/count/countRequestMain/countRequestMain.data.ts

@ -263,26 +263,26 @@ export const CountRequestMain = useCrudSchemas(<CrudSchema[]>([
width: 150 width: 150
}, },
}, },
// { {
// label: '直接生成记录', label: '直接生成记录',
// field: 'directCreateRecord', field: 'directCreateRecord',
// dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
// dictClass: 'string', dictClass: 'string',
// isTable: true, isTable: false,
// form: { form: {
// component: 'Switch', component: 'Switch',
// value: requestsettingData.directCreateRecord, value: requestsettingData.directCreateRecord,
// componentProps: { componentProps: {
// inactiveValue: 'FALSE', inactiveValue: 'FALSE',
// activeValue: 'TRUE', activeValue: 'TRUE',
// disabled: true disabled: true
// } }
// }, },
// sort: 'custom', sort: 'custom',
// table: { table: {
// width: 150 width: 150
// }, },
// }, },
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',

40
src/views/wms/countManage/countadjust/countadjustRequestMain/countadjustRequestMain.data.ts

@ -249,26 +249,26 @@ export const CountadjustRequestMain = useCrudSchemas(<CrudSchema[]>([
width: 150 width: 150
}, },
}, },
// { {
// label: '直接生成记录', label: '直接生成记录',
// field: 'directCreateRecord', field: 'directCreateRecord',
// dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
// dictClass: 'string', dictClass: 'string',
// isTable: true, isTable: false,
// form: { form: {
// component: 'Switch', component: 'Switch',
// value: requestsettingData.directCreateRecord, value: requestsettingData.directCreateRecord,
// componentProps: { componentProps: {
// inactiveValue: 'FALSE', inactiveValue: 'FALSE',
// activeValue: 'TRUE', activeValue: 'TRUE',
// disabled: true disabled: true
// } }
// }, },
// sort: 'custom', sort: 'custom',
// table: { table: {
// width: 150 width: 150
// }, },
// }, },
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',

40
src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRequestMain/customerreceiptRequestMain.data.ts

@ -314,26 +314,26 @@ export const CustomerreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
} }
} }
}, },
// { {
// label: '直接生成记录', label: '直接生成记录',
// field: 'directCreateRecord', field: 'directCreateRecord',
// dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
// dictClass: 'string', dictClass: 'string',
// isTable: true, isTable: false,
// sort: 'custom', sort: 'custom',
// table: { table: {
// width: 150 width: 150
// }, },
// form: { form: {
// component: 'Switch', component: 'Switch',
// value: requestsettingData.directCreateRecord, value: requestsettingData.directCreateRecord,
// componentProps: { componentProps: {
// inactiveValue: 'FALSE', inactiveValue: 'FALSE',
// activeValue: 'TRUE', activeValue: 'TRUE',
// disabled: true disabled: true
// } }
// } }
// }, },
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',

40
src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/customerreturnRequestMain.data.ts

@ -431,26 +431,26 @@ export const CustomerreturnRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
// { {
// label: '直接生成记录', label: '直接生成记录',
// field: 'directCreateRecord', field: 'directCreateRecord',
// dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
// dictClass: 'string', dictClass: 'string',
// isTable: true, isTable: false,
// sort: 'custom', sort: 'custom',
// table: { table: {
// width: 150 width: 150
// }, },
// form: { form: {
// component: 'Switch', component: 'Switch',
// value: requestsettingData.directCreateRecord, value: requestsettingData.directCreateRecord,
// componentProps: { componentProps: {
// inactiveValue: 'FALSE', inactiveValue: 'FALSE',
// activeValue: 'TRUE', activeValue: 'TRUE',
// disabled: true disabled: true
// } }
// } }
// }, },
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',

40
src/views/wms/deliversettlementManage/customersettle/customersettleRequestMain/customersettleRequestMain.data.ts

@ -260,26 +260,26 @@ export const CustomersettleRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
// { {
// label: '直接生成记录', label: '直接生成记录',
// field: 'directCreateRecord', field: 'directCreateRecord',
// dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
// dictClass: 'string', dictClass: 'string',
// isTable: true, isTable: false,
// sort: 'custom', sort: 'custom',
// table: { table: {
// width: 150 width: 150
// }, },
// form: { form: {
// component: 'Switch', component: 'Switch',
// value: requestsettingData.directCreateRecord, value: requestsettingData.directCreateRecord,
// componentProps: { componentProps: {
// inactiveValue: 'FALSE', inactiveValue: 'FALSE',
// activeValue: 'TRUE', activeValue: 'TRUE',
// disabled: true disabled: true
// } }
// } }
// }, },
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',

40
src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts

@ -418,26 +418,26 @@ export const DeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
// { {
// label: '直接生成记录', label: '直接生成记录',
// field: 'directCreateRecord', field: 'directCreateRecord',
// dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
// dictClass: 'string', dictClass: 'string',
// isTable: true, isTable: false,
// sort: 'custom', sort: 'custom',
// table: { table: {
// width: 150 width: 150
// }, },
// form: { form: {
// component: 'Switch', component: 'Switch',
// value: requestsettingData.directCreateRecord, value: requestsettingData.directCreateRecord,
// componentProps: { componentProps: {
// inactiveValue: 'FALSE', inactiveValue: 'FALSE',
// activeValue: 'TRUE', activeValue: 'TRUE',
// disabled: true disabled: true
// } }
// } }
// }, },
{ {
label: '备注', label: '备注',
field: 'remark', field: 'remark',

103
src/views/wms/deliversettlementManage/stockup/stockupMainJob/index.vue

@ -180,110 +180,17 @@ const isShowMainButton = (row,val) => {
// - // -
const butttondata = (row) => { const butttondata = (row) => {
return [ return [
defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), // // defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), //
defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1'])}), // // defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1'])}), //
defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), // // defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), //
defaultButtons.mainListJobExeBtn({hide:isShowMainButton(row,['2'])}), // // defaultButtons.mainListJobExeBtn({hide:isShowMainButton(row,['2'])}), //
] ]
} }
// - // -
const buttonTableClick = async (val, row) => { const buttonTableClick = async (val, row) => {
 if (val == 'mainJobExe') { //  if (val == 'mainJobExe') { //
    let aaa = { handleHandle
"id": 6,
"requestNumber": "REQ4520240313-0003",
"deliverPlanNumber": null,
"fromWarehouseCode": "CKV",
"toWarehouseCode": "CKV",
"details": null,
"requestTime": null,
"requestDueTime": null,
"status": "1",
"expiredTime": null,
"concurrencyStamp": "1",
"jobStageStatus": null,
"priority": null,
"priorityincrement": null,
"departmentCode": null,
"userGroupCode": null,
"acceptUserId": null,
"acceptUserName": null,
"acceptTime": null,
"completeUserId": null,
"completeUserName": null,
"completeTime": null,
"fromAreaTypes": "FG",
"toAreaTypes": "CUST",
"number": "JOB3220240314-0006",
"businessType": "Stockup",
"remark": null,
"extraProperties": null,
"siteId": null,
"autoComplete": "FALSE",
"allowModifyLocation": "FALSE",
"allowModifyQty": "TRUE",
"allowBiggerQty": "TRUE",
"allowSmallerQty": "TRUE",
"allowModifyInventoryStatus": "TRUE",
"allowContinuousScanning": "TRUE",
"allowPartialComplete": "TRUE",
"ruleUserId": null,
"allowModifyBatch": "FALSE",
"allowModifyPackingNumber": "FALSE",
"fromAreaCodes": "KQV2",
"toAreaCodes": "CUST",
"serialNumber": "0",
"inInventoryStatuses": "OK",
"outInventoryStatuses": "OK",
"createTime": null,
"subList": [{
"id": 1,
"packingNumber": null,
"batch": "2024021801",
"inventoryStatus": "OK",
"ownerCode": null,
"containerNumber": null,
"fromLocationCode": "FG",
"toLocationCode": "RAW",
"itemCode": "FOG-LAMP-RIGHT",
"itemName": "HL后雾灯(新)-右\r\n",
"itemDesc1": "HL后雾灯(新)-右\r\n",
"itemDesc2": "HL后雾灯(新)-右\r\n",
"projectCode": "PJ001",
"qty": 1,
"uom": "EA",
"masterId": 6,
"number": "JOB3220240314-0006",
"remark": null,
"siteId": "",
"createTime": null,
"toPackingNumber": null,
"toContainerNumber": null,
"toBatch": null,
"handleQty": null,
"toInventoryStatus": null,
recordList: [{
handleQty: 10,
toPackingNumber: '12',
toContainerNumber: '001',
toBatch: '21',
toInventoryStatus: 'OK',
toLocationCode: 'WIP',
supplierCode: '31213',
},{
handleQty: 22,
toPackingNumber: 'M20230421000005',
toContainerNumber: '001',
toBatch: '20230808',
toInventoryStatus: 'OK',
toLocationCode: 'FG',
supplierCode: '31213',
}]
}]
}
handleHandle(aaa)
console.log('列表-操作按钮事件-执行')
} else if (val == 'mainJobAba') { // } else if (val == 'mainJobAba') { //
StockupJobMainApi.abandonStockupMainJob(row.id) StockupJobMainApi.abandonStockupMainJob(row.id)
} else if (val == 'mainJobClo') { // } else if (val == 'mainJobClo') { //

9
src/views/wms/deliversettlementManage/stockup/stockupMainJob/stockupMainJob.data.ts

@ -16,6 +16,15 @@ export const StockupMainJob = useCrudSchemas(reactive<CrudSchema[]>([
width: 180 width: 180
}, },
}, },
{
label: '发货记录单号',
field: 'deliverPlanNumber',
sort: 'custom',
isForm: false,
table: {
width: 180
},
},
{ {
label: '申请单号', label: '申请单号',
field: 'requestNumber', field: 'requestNumber',

9
src/views/wms/deliversettlementManage/stockup/stockupMainRecord/stockupMainRecord.data.ts

@ -16,6 +16,15 @@ export const StockupMainRecord = useCrudSchemas(reactive<CrudSchema[]>([
width: 180 width: 180
}, },
}, },
{
label: '发货记录单号',
field: 'deliverPlanNumber',
sort: 'custom',
isForm: false,
table: {
width: 180
},
},
{ {
label: '申请单号', label: '申请单号',
field: 'requestNumber', field: 'requestNumber',

41
src/views/wms/deliversettlementManage/stockup/stockupMainRequest/stockupMainRequest.data.ts

@ -350,27 +350,26 @@ export const StockupMainRequest = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
// { {
// label: '直接生成记录', label: '直接生成记录',
// field: 'directCreateRecord', field: 'directCreateRecord',
// dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
// dictClass: 'string', dictClass: 'string',
// isTable: true, isTable: false,
// sort: 'custom', sort: 'custom',
// table: { table: {
// width: 150 width: 150
// }, },
// form: { form: {
// component: 'Switch', component: 'Switch',
// value: requestsettingData.directCreateRecord, value: requestsettingData.directCreateRecord,
// componentProps: { componentProps: {
// inactiveValue: 'FALSE', inactiveValue: 'FALSE',
// activeValue: 'TRUE', activeValue: 'TRUE',
// disabled: true disabled: true
// } }
// } }
// }, },
{ {
label: '到库区类型范围', label: '到库区类型范围',
field: 'toAreaTypes', field: 'toAreaTypes',

40
src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/inventoryinitRequestMain.data.ts

@ -233,26 +233,26 @@ export const InventoryinitRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
// { {
// label: '直接生成记录', label: '直接生成记录',
// field: 'directCreateRecord', field: 'directCreateRecord',
// dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
// dictClass: 'string', dictClass: 'string',
// isTable: true, isTable: false,
// sort: 'custom', sort: 'custom',
// table: { table: {
// width: 150 width: 150
// }, },
// form: { form: {
// component: 'Switch', component: 'Switch',
// value: requestsettingData.directCreateRecord, value: requestsettingData.directCreateRecord,
// componentProps: { componentProps: {
// inactiveValue: 'FALSE', inactiveValue: 'FALSE',
// activeValue: 'TRUE', activeValue: 'TRUE',
// disabled: true disabled: true
// } }
// } }
// }, },
{ {
label: '备注', label: '备注',
field: 'remark', field: 'remark',

40
src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRequestMain/packageoverRequestMain.data.ts

@ -302,26 +302,26 @@ export const PackageoverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
// { {
// label: '直接生成记录', label: '直接生成记录',
// field: 'directCreateRecord', field: 'directCreateRecord',
// dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
// dictClass: 'string', dictClass: 'string',
// isTable: true, isTable: false,
// sort: 'custom', sort: 'custom',
// table: { table: {
// width: 150 width: 150
// }, },
// form: { form: {
// component: 'Switch', component: 'Switch',
// value: requestsettingData.directCreateRecord, value: requestsettingData.directCreateRecord,
// componentProps: { componentProps: {
// inactiveValue: 'FALSE', inactiveValue: 'FALSE',
// activeValue: 'TRUE', activeValue: 'TRUE',
// disabled: true disabled: true
// } }
// } }
// }, },
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',

40
src/views/wms/inventoryjobManage/scrap/scrapRequestMain/scrapRequestMain.data.ts

@ -262,26 +262,26 @@ export const ScrapRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
// { {
// label: '直接生成记录', label: '直接生成记录',
// field: 'directCreateRecord', field: 'directCreateRecord',
// dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
// dictClass: 'string', dictClass: 'string',
// isTable: true, isTable: false,
// sort: 'custom', sort: 'custom',
// table: { table: {
// width: 150 width: 150
// }, },
// form: { form: {
// component: 'Switch', component: 'Switch',
// value: requestsettingData.directCreateRecord, value: requestsettingData.directCreateRecord,
// componentProps: { componentProps: {
// inactiveValue: 'FALSE', inactiveValue: 'FALSE',
// activeValue: 'TRUE', activeValue: 'TRUE',
// disable: true disable: true
// } }
// } }
// }, },
{ {
label: '备注', label: '备注',
field: 'remark', field: 'remark',

40
src/views/wms/inventoryjobManage/transferissue/transferissueRequestMain/transferissueRequestMain.data.ts

@ -390,26 +390,26 @@ export const TransferissueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
// { {
// label: '直接生成记录', label: '直接生成记录',
// field: 'directCreateRecord', field: 'directCreateRecord',
// dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
// dictClass: 'string', dictClass: 'string',
// isTable: true, isTable: false,
// sort: 'custom', sort: 'custom',
// table: { table: {
// width: 150 width: 150
// }, },
// form: { form: {
// component: 'Switch', component: 'Switch',
// value: requestsettingData.directCreateRecord, value: requestsettingData.directCreateRecord,
// componentProps: { componentProps: {
// inactiveValue: 'FALSE', inactiveValue: 'FALSE',
// activeValue: 'TRUE', activeValue: 'TRUE',
// disabled: true disabled: true
// } }
// } }
// }, },
{ {
label: '备注', label: '备注',
field: 'remark', field: 'remark',

40
src/views/wms/inventoryjobManage/transferreceipt/transferreceiptRequestMain/transferreceiptRequestMain.data.ts

@ -288,26 +288,26 @@ export const TransferreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
} }
} }
}, },
// { {
// label: '直接生成记录', label: '直接生成记录',
// field: 'directCreateRecord', field: 'directCreateRecord',
// dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
// dictClass: 'string', dictClass: 'string',
// isTable: true, isTable: false,
// sort: 'custom', sort: 'custom',
// table: { table: {
// width: 150 width: 150
// }, },
// form: { form: {
// component: 'Switch', component: 'Switch',
// value: requestsettingData.directCreateRecord, value: requestsettingData.directCreateRecord,
// componentProps: { componentProps: {
// inactiveValue: 'FALSE', inactiveValue: 'FALSE',
// activeValue: 'TRUE', activeValue: 'TRUE',
// disabled: true disabled: true
// } }
// } }
// }, },
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',

40
src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/unplannedissueRequestMain.data.ts

@ -230,26 +230,26 @@ export const UnplannedissueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
// { {
// label: '直接生成记录', label: '直接生成记录',
// field: 'directCreateRecord', field: 'directCreateRecord',
// dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
// dictClass: 'string', dictClass: 'string',
// isTable: true, isTable: false,
// sort: 'custom', sort: 'custom',
// table: { table: {
// width: 150 width: 150
// }, },
// form: { form: {
// component: 'Switch', component: 'Switch',
// value: requestsettingData.directCreateRecord, value: requestsettingData.directCreateRecord,
// componentProps: { componentProps: {
// inactiveValue: 'FALSE', inactiveValue: 'FALSE',
// activeValue: 'TRUE', activeValue: 'TRUE',
// disabled: true disabled: true
// } }
// } }
// }, },
{ {
label: '备注', label: '备注',
field: 'remark', field: 'remark',

40
src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/unplannedreceiptRequestMain.data.ts

@ -270,26 +270,26 @@ export const UnplannedreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>
} }
} }
}, },
// { {
// label: '直接生成记录', label: '直接生成记录',
// field: 'directCreateRecord', field: 'directCreateRecord',
// dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
// dictClass: 'string', dictClass: 'string',
// isTable: true, isTable: false,
// sort: 'custom', sort: 'custom',
// table: { table: {
// width: 150 width: 150
// }, },
// form: { form: {
// component: 'Switch', component: 'Switch',
// value: requestsettingData.directCreateRecord, value: requestsettingData.directCreateRecord,
// componentProps: { componentProps: {
// inactiveValue: 'FALSE', inactiveValue: 'FALSE',
// activeValue: 'TRUE', activeValue: 'TRUE',
// disabled: true disabled: true
// } }
// } }
// }, },
{ {
label: '备注', label: '备注',
field: 'remark', field: 'remark',

40
src/views/wms/issueManage/issue/issueRequestMain/issueRequestMain.data.ts

@ -346,26 +346,26 @@ export const IssueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
// { {
// label: '直接生成记录', label: '直接生成记录',
// field: 'directCreateRecord', field: 'directCreateRecord',
// dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
// dictClass: 'string', dictClass: 'string',
// isTable: true, isTable: false,
// sort: 'custom', sort: 'custom',
// table: { table: {
// width: 150 width: 150
// }, },
// form: { form: {
// component: 'Switch', component: 'Switch',
// value: requestsettingData.directCreateRecord, value: requestsettingData.directCreateRecord,
// componentProps: { componentProps: {
// inactiveValue: 'FALSE', inactiveValue: 'FALSE',
// activeValue: 'TRUE', activeValue: 'TRUE',
// disabled: true disabled: true
// } }
// } }
// }, },
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',

40
src/views/wms/issueManage/onlinesettlement/onlinesettlementRequestMain/onlinesettlementRequestMain.data.ts

@ -286,26 +286,26 @@ export const OnlinesettlementRequestMain = useCrudSchemas(reactive<CrudSchema[]>
} }
} }
}, },
// { {
// label: '直接生成记录', label: '直接生成记录',
// field: 'directCreateRecord', field: 'directCreateRecord',
// dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
// dictClass: 'string', dictClass: 'string',
// isTable: true, isTable: false,
// sort: 'custom', sort: 'custom',
// table: { table: {
// width: 150 width: 150
// }, },
// form: { form: {
// component: 'Switch', component: 'Switch',
// value: requestsettingData.directCreateRecord, value: requestsettingData.directCreateRecord,
// componentProps: { componentProps: {
// inactiveValue: 'FALSE', inactiveValue: 'FALSE',
// activeValue: 'TRUE', activeValue: 'TRUE',
// disabled: true disabled: true
// } }
// } }
// }, },
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',

40
src/views/wms/issueManage/pick/pickRequestMain/pickRequestMain.data.ts

@ -317,26 +317,26 @@ export const PickRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
// { {
// label: '直接生成记录', label: '直接生成记录',
// field: 'directCreateRecord', field: 'directCreateRecord',
// dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
// dictClass: 'string', dictClass: 'string',
// isTable: true, isTable: false,
// sort: 'custom', sort: 'custom',
// table: { table: {
// width: 150 width: 150
// }, },
// form: { form: {
// component: 'Switch', component: 'Switch',
// value: requestsettingData.directCreateRecord, value: requestsettingData.directCreateRecord,
// componentProps: { componentProps: {
// inactiveValue: 'FALSE', inactiveValue: 'FALSE',
// activeValue: 'TRUE', activeValue: 'TRUE',
// disabled: true disabled: true
// } }
// } }
// }, },
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',

40
src/views/wms/issueManage/productionreturn/productionreturnRequestMain/productionreturnRequestMain.data.ts

@ -305,26 +305,26 @@ export const ProductionreturnRequestMain = useCrudSchemas(reactive<CrudSchema[]>
} }
} }
}, },
// { {
// label: '直接生成记录', label: '直接生成记录',
// field: 'directCreateRecord', field: 'directCreateRecord',
// dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
// dictClass: 'string', dictClass: 'string',
// isTable: true, isTable: false,
// sort: 'custom', sort: 'custom',
// table: { table: {
// width: 150 width: 150
// }, },
// form: { form: {
// component: 'Switch', component: 'Switch',
// value: requestsettingData.directCreateRecord, value: requestsettingData.directCreateRecord,
// componentProps: { componentProps: {
// inactiveValue: 'FALSE', inactiveValue: 'FALSE',
// activeValue: 'TRUE', activeValue: 'TRUE',
// disabled: true, disabled: true,
// } }
// } }
// }, },
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',

40
src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/inventorychangeRequestMain.data.ts

@ -215,26 +215,26 @@ export const InventorychangeRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
} }
} }
}, },
// { {
// label: '直接生成记录', label: '直接生成记录',
// field: 'directCreateRecord', field: 'directCreateRecord',
// dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
// dictClass: 'string', dictClass: 'string',
// isTable: true, isTable: false,
// sort: 'custom', sort: 'custom',
// table: { table: {
// width: 150 width: 150
// }, },
// form: { form: {
// component: 'Switch', component: 'Switch',
// value: requestsettingData.directCreateRecord, value: requestsettingData.directCreateRecord,
// componentProps: { componentProps: {
// inactiveValue: 'FALSE', inactiveValue: 'FALSE',
// activeValue: 'TRUE', activeValue: 'TRUE',
// disabled: true disabled: true
// } }
// } }
// }, },
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',

40
src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts

@ -303,26 +303,26 @@ export const InventorymoveRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
// { {
// label: '直接生成记录', label: '直接生成记录',
// field: 'directCreateRecord', field: 'directCreateRecord',
// dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
// dictClass: 'string', dictClass: 'string',
// isTable: true, isTable: false,
// sort: 'custom', sort: 'custom',
// table: { table: {
// width: 150 width: 150
// }, },
// form: { form: {
// component: 'Switch', component: 'Switch',
// value: requestsettingData.directCreateRecord, value: requestsettingData.directCreateRecord,
// componentProps: { componentProps: {
// inactiveValue: 'FALSE', inactiveValue: 'FALSE',
// activeValue: 'TRUE', activeValue: 'TRUE',
// disabled: true disabled: true
// } }
// } }
// }, },
{ {
label: '使用在途库', label: '使用在途库',
field: 'useOnTheWayLocation', field: 'useOnTheWayLocation',

40
src/views/wms/productionManage/offlinesettlement/offlinesettlementRequestMain/offlinesettlementRequestMain.data.ts

@ -271,26 +271,26 @@ export const OfflinesettlementRequestMain = useCrudSchemas(reactive<CrudSchema[]
} }
} }
}, },
// { {
// label: '直接生成记录', label: '直接生成记录',
// field: 'directCreateRecord', field: 'directCreateRecord',
// dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
// dictClass: 'string', dictClass: 'string',
// isTable: true, isTable: false,
// sort: 'custom', sort: 'custom',
// table: { table: {
// width: 150 width: 150
// }, },
// form: { form: {
// component: 'Switch', component: 'Switch',
// value: requestsettingData.directCreateRecord, value: requestsettingData.directCreateRecord,
// componentProps: { componentProps: {
// inactiveValue: 'FALSE', inactiveValue: 'FALSE',
// activeValue: 'TRUE', activeValue: 'TRUE',
// disabled: true disabled: true
// } }
// } }
// }, },
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',

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

@ -394,26 +394,26 @@ export const ProductdismantleRequestMain = useCrudSchemas(reactive<CrudSchema[]>
} }
} }
}, },
// { {
// label: '直接生成记录', label: '直接生成记录',
// field: 'directCreateRecord', field: 'directCreateRecord',
// dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
// dictClass: 'string', dictClass: 'string',
// isTable: true, isTable: false,
// sort: 'custom', sort: 'custom',
// table: { table: {
// width: 150 width: 150
// }, },
// form: { form: {
// component: 'Switch', component: 'Switch',
// value: requestsettingData.directCreateRecord, value: requestsettingData.directCreateRecord,
// componentProps: { componentProps: {
// inactiveValue: 'FALSE', inactiveValue: 'FALSE',
// activeValue: 'TRUE', activeValue: 'TRUE',
// disabled: true disabled: true
// } }
// } }
// }, },
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',

40
src/views/wms/productionManage/productputaway/productputawayRequestMain/productputawayRequestMain.data.ts

@ -339,26 +339,26 @@ export const ProductputawayRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
// { {
// label: '直接生成记录', label: '直接生成记录',
// field: 'directCreateRecord', field: 'directCreateRecord',
// dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
// dictClass: 'string', dictClass: 'string',
// isTable: true, isTable: false,
// sort: 'custom', sort: 'custom',
// table: { table: {
// width: 150 width: 150
// }, },
// form: { form: {
// component: 'Switch', component: 'Switch',
// value: requestsettingData.directCreateRecord, value: requestsettingData.directCreateRecord,
// componentProps: { componentProps: {
// inactiveValue: 'FALSE', inactiveValue: 'FALSE',
// activeValue: 'TRUE', activeValue: 'TRUE',
// disabled: true disabled: true
// } }
// } }
// }, },
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',

21
src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue

@ -78,7 +78,7 @@
ref="formLabelRef" ref="formLabelRef"
@success="getList" @success="getList"
:tableAllSchemas="detailListTableColumns" :tableAllSchemas="detailListTableColumns"
:tableFormRules="ProductionreturnRequestDetailLabelRules" :tableFormRules="ProductreceiptRequestLabelRules"
:tableData="detatableData.tableList" :tableData="detatableData.tableList"
:isBusiness="true" :isBusiness="true"
:isShowButton="false" :isShowButton="false"
@ -117,8 +117,9 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache' import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { ProductreceiptRequestMain,ProductreceiptRequestMainRules,ProductreceiptRequestDetail,ProductreceiptRequestDetailRules, BackflushDetailRequest } from './productreceiptRequestMain.data' import { ProductreceiptRequestMain,ProductreceiptRequestMainRules,ProductreceiptRequestDetail,
import {ProductionreturnRequestDetailLabel,ProductionreturnRequestDetailLabelRules} from '../../../issueManage/productionreturn/productionreturnRequestMain/productionreturnRequestMain.data' ProductreceiptRequestDetailRules, BackflushDetailRequest,
ProductreceiptRequestLabel,ProductreceiptRequestLabelRules } from './productreceiptRequestMain.data'
import * as ProductreceiptRequestMainApi from '@/api/wms/productreceiptRequestMain' import * as ProductreceiptRequestMainApi from '@/api/wms/productreceiptRequestMain'
import * as ProductreceiptRequestDetailApi from '@/api/wms/productreceiptRequestDetail' import * as ProductreceiptRequestDetailApi from '@/api/wms/productreceiptRequestDetail'
import * as BackflushRequestDetailbApi from '@/api/wms/backflushRequestDetailb' import * as BackflushRequestDetailbApi from '@/api/wms/backflushRequestDetailb'
@ -151,7 +152,7 @@ const buttondataTable = ref([{
}]) }])
// //
const detailListTableColumns = ProductionreturnRequestDetailLabel.allSchemas const detailListTableColumns = ProductreceiptRequestLabel.allSchemas
const isCreateLabel = ref(false) const isCreateLabel = ref(false)
const formLabelRef = ref() const formLabelRef = ref()
const labelType = ref('') // const labelType = ref('') //
@ -178,6 +179,10 @@ const updataTableColumns = (val) => {
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => {
nextTick(() => { nextTick(() => {
if (type == 'tableForm') { if (type == 'tableForm') {
if (formField == 'secondPackUnit') {
row['secondPackUnit'] = val[0]['packUnit']
row['secondPackQty'] = val[0]['packQty']
}
// //
row[formField] = val[0][searchField] row[formField] = val[0][searchField]
} else { } else {
@ -375,12 +380,12 @@ const buttonTableClick = async (val, row) => {
if(itemColumns.field == 'productionLineCodePackage') { if(itemColumns.field == 'productionLineCodePackage') {
// itemColumns.tableForm.isInpuFocusShow = false // itemColumns.tableForm.isInpuFocusShow = false
// itemColumns.tableForm.disabled = true // itemColumns.tableForm.disabled = true
ProductionreturnRequestDetailLabelRules.productionLineCodePackage[0].required = false ProductreceiptRequestLabelRules.productionLineCodePackage[0].required = false
} }
if(itemColumns.field == 'supplierItemCode') { if(itemColumns.field == 'supplierItemCode') {
itemColumns.tableForm.isInpuFocusShow = true itemColumns.tableForm.isInpuFocusShow = true
itemColumns.tableForm.disabled = false itemColumns.tableForm.disabled = false
ProductionreturnRequestDetailLabelRules.supplierItemCode[0].required = true ProductreceiptRequestLabelRules.supplierItemCode[0].required = true
} }
}) })
} else { } else {
@ -389,13 +394,13 @@ const buttonTableClick = async (val, row) => {
if(itemColumns.field == 'supplierItemCode') { if(itemColumns.field == 'supplierItemCode') {
itemColumns.tableForm.isInpuFocusShow = false itemColumns.tableForm.isInpuFocusShow = false
itemColumns.tableForm.disabled = true itemColumns.tableForm.disabled = true
ProductionreturnRequestDetailLabelRules.supplierItemCode[0].required = false ProductreceiptRequestLabelRules.supplierItemCode[0].required = false
} }
if(itemColumns.field == 'productionLineCodePackage') { if(itemColumns.field == 'productionLineCodePackage') {
item.productionLineCodePackage = item.productionLineCode item.productionLineCodePackage = item.productionLineCode
// itemColumns.tableForm.isInpuFocusShow = true // itemColumns.tableForm.isInpuFocusShow = true
// itemColumns.tableForm.disabled = false // itemColumns.tableForm.disabled = false
ProductionreturnRequestDetailLabelRules.productionLineCodePackage[0].required = true ProductreceiptRequestLabelRules.productionLineCodePackage[0].required = true
} }
}) })
} }

410
src/views/wms/productionManage/productreceipt/productreceiptRequestMain/productreceiptRequestMain.data.ts

@ -26,6 +26,12 @@ import { Productionline } from '@/views/wms/basicDataManage/factoryModeling/prod
import * as BomApi from '@/api/wms/bom' import * as BomApi from '@/api/wms/bom'
import { Bom } from '@/views/wms/basicDataManage/itemManage/bom/bom.data' import { Bom } from '@/views/wms/basicDataManage/itemManage/bom/bom.data'
import * as SupplieritemApi from '@/api/wms/supplieritem'
import { Supplieritem } from '@/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data'
import { Itempackaging } from '@/views/wms/basicDataManage/itemManage/itempackage/itempackage.data'
import * as ItemPackageApi from '@/api/wms/itempackage/index'
const { t } = useI18n() // 国际化 const { t } = useI18n() // 国际化
// 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值 // 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值
@ -404,26 +410,26 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
// { {
// label: '直接生成记录', label: '直接生成记录',
// field: 'directCreateRecord', field: 'directCreateRecord',
// dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
// dictClass: 'string', dictClass: 'string',
// isTable: true, isTable: false,
// sort: 'custom', sort: 'custom',
// table: { table: {
// width: 150 width: 150
// }, },
// form: { form: {
// component: 'Switch', component: 'Switch',
// value: requestsettingData.directCreateRecord, value: requestsettingData.directCreateRecord,
// componentProps: { componentProps: {
// inactiveValue: 'FALSE', inactiveValue: 'FALSE',
// activeValue: 'TRUE', activeValue: 'TRUE',
// disabled: true disabled: true
// } }
// } }
// }, },
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',
@ -884,6 +890,7 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
tableForm: { tableForm: {
type: 'Select' type: 'Select'
} }
}, },
{ {
label: '生产日期', label: '生产日期',
@ -1390,3 +1397,366 @@ export const BackflushDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([
isForm: false isForm: false
}, },
])) ]))
/**
* @returns {Array}
*/
export const ProductreceiptRequestLabel = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '生产线代码',
field: 'productionLineCodePackage',
sort: 'custom',
table: {
width: 150
},
tableForm:{
disabled: true
// isInpuFocusShow: true,
// searchListPlaceholder: '请选择生产线代码', // 输入框占位文本
// searchField: 'productionLineCode', // 查询弹窗赋值字段
// searchTitle: '生产线物料关系信息', // 查询弹窗标题
// searchAllSchemas: Productionlineitem.allSchemas, // 查询弹窗所需类
// searchPage: ProductionlineitemApi.getProductionlineitemPage, // 查询弹窗所需分页方法
// searchCondition:[{
// key: 'itemCode',
// value: 'itemCode',
// isMainValue: true
// }]
}
},
{
label: '供应商代码',
field: 'supplierItemCode',
sort: 'custom',
table: {
width: 150
},
tableForm:{
isInpuFocusShow: true,
searchListPlaceholder: '请选择供应商代码', // 输入框占位文本
searchField: 'supplierCode', // 查询弹窗赋值字段
searchTitle: '供应商信息', // 查询弹窗标题
searchAllSchemas: Supplieritem.allSchemas, // 查询弹窗所需类
searchPage: SupplieritemApi.getSupplieritemPage, // 查询弹窗所需分页方法
searchCondition:[{
key: 'itemCode',
value: 'itemCode',
message: '请填写物料代码!',
isMainValue: true
}]
}
},
{
label: '物料代码',
field: 'itemCode',
sort: 'custom',
table: {
width: 150
},
tableForm: {
disabled: true
},
form: {
componentProps: {
disabled: true
}
}
},
{
label: '物料名称',
field: 'itemName',
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
isForm: false,
},
{
label: '物料描述1',
field: 'itemDesc1',
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
isForm: false,
},
{
label: '物料描述2',
field: 'itemDesc2',
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
isForm: false,
},
{
label: '项目代码',
field: 'projectCode',
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
isForm: false,
},
{
label: '批次',
field: 'batch',
sort: 'custom',
table: {
width: 150
},
tableForm: {
disabled: true,
},
form: {
componentProps: {
disabled: true
}
}
},
{
label: '数量',
field: 'qty',
sort: 'custom',
table: {
width: 150
},
tableForm: {
disabled: true
},
form: {
componentProps: {
disabled: true
}
}
},
{
label: '计量单位',
field: 'uom',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
tableForm: {
disabled: true
},
form: {
componentProps: {
disabled: true
}
}
},
{
label: '库存状态',
field: 'inventoryStatus',
dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
tableForm: {
type: 'Select',
disabled: true
},
form: {
componentProps: {
disabled: true
}
}
},
{
label: '来源生产线代码',
field: 'productionLineCode',
sort: 'custom',
table: {
width: 150
},
tableForm: {
disabled: true
},
form: {
componentProps: {
disabled: true
}
}
},
{
label: '来源生产线代码',
field: 'productionLineCode',
sort: 'custom',
table: {
width: 150
},
tableForm: {
disabled: true
},
form: {
componentProps: {
disabled: true
}
}
},
{
label: '来源工位代码',
field: 'workStationCode',
sort: 'custom',
table: {
width: 150
},
tableForm: {
disabled: true
},
form: {
componentProps: {
disabled: true
}
}
},
{
label: '来源库位代码',
field: 'fromLocationCode',
sort: 'custom',
table: {
width: 150
},
tableForm: {
disabled: true
},
form: {
componentProps: {
disabled: true
}
}
},
{
label: '单据号',
field: 'number',
sort: 'custom',
table: {
width: 180
},
isTableForm: false,
form: {
componentProps: {
disabled: true
}
}
},
{
label: '包装规格1',
field: 'packUnit',
sort: 'custom',
table: {
width: 180
},
tableForm: {
disabled: true
},
},
{
label: '包装数量1',
field: 'packQty',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled: true
}
},
tableForm: {
disabled: true,
}
},
{
label: '包装规格2',
field: 'secondPackUnit',
isTable: true,
sort: 'custom',
table: {
width: 150,
componentProps: {
disabled: true,
isSearchList: true,
searchListPlaceholder: '请选择包装',
searchField: 'packUnit',
searchTitle: '物品包装信息',
searchAllSchemas: Itempackaging.allSchemas,
searchPage: ItemPackageApi.getItempackagingPageByProductreceipt,
searchCondition: [
{
key: 'itemCode',
value: 'itemCode',
message: '请选择订单行',
isMainValue: true
},
{
key: 'available',
value: 'TRUE',
isMainValue: false
}
]
}
},
tableForm: {
disabled: true,
isInpuFocusShow: true,
searchListPlaceholder: '请选择包装',
searchField: 'packUnit',
searchTitle: '物品包装信息',
searchAllSchemas: Itempackaging.allSchemas,
searchPage: ItemPackageApi.getItempackagingPageByProductreceipt,
searchCondition: [
{
key: 'itemCode',
value: 'itemCode',
message: '请选择订单行',
isMainValue: true
},
{
key: 'available',
value: 'TRUE',
isMainValue: false
}]
}
},
{
label: '包装数量2',
field: 'secondPackQty',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
]))
//表单校验
export const ProductreceiptRequestLabelRules = reactive({
supplierItemCode: [
{ required: true, message: '请选择供应商', trigger: 'change' }
],
productionLineCodePackage: [
{ required: true, message: '请选择生产线', trigger: 'change' }
]
})

40
src/views/wms/productionManage/productrepair/productrepairRequestMain/productrepairRequestMain.data.ts

@ -394,26 +394,26 @@ export const ProductrepairRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
// { {
// label: '直接生成记录', label: '直接生成记录',
// field: 'directCreateRecord', field: 'directCreateRecord',
// dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
// dictClass: 'string', dictClass: 'string',
// isTable: true, isTable: false,
// sort: 'custom', sort: 'custom',
// table: { table: {
// width: 150 width: 150
// }, },
// form: { form: {
// component: 'Switch', component: 'Switch',
// value: requestsettingData.directCreateRecord, value: requestsettingData.directCreateRecord,
// componentProps: { componentProps: {
// inactiveValue: 'FALSE', inactiveValue: 'FALSE',
// activeValue: 'TRUE', activeValue: 'TRUE',
// disabled: true disabled: true
// } }
// } }
// }, },
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',

40
src/views/wms/productionManage/productscrap/productscrapRequestMain/productscrapRequestMain.data.ts

@ -397,26 +397,26 @@ export const ProductscrapRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
// { {
// label: '直接生成记录', label: '直接生成记录',
// field: 'directCreateRecord', field: 'directCreateRecord',
// dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
// dictClass: 'string', dictClass: 'string',
// isTable: true, isTable: false,
// sort: 'custom', sort: 'custom',
// table: { table: {
// width: 150 width: 150
// }, },
// form: { form: {
// component: 'Switch', component: 'Switch',
// value: requestsettingData.directCreateRecord, value: requestsettingData.directCreateRecord,
// componentProps: { componentProps: {
// inactiveValue: 'FALSE', inactiveValue: 'FALSE',
// activeValue: 'TRUE', activeValue: 'TRUE',
// disabled: true disabled: true
// } }
// } }
// }, },
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',

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

@ -433,26 +433,26 @@ export const InspectRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
// { {
// label: '直接生成记录', label: '直接生成记录',
// field: 'directCreateRecord', field: 'directCreateRecord',
// dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
// dictClass: 'string', dictClass: 'string',
// isTable: true, isTable: false,
// sort: 'custom', sort: 'custom',
// table: { table: {
// width: 150 width: 150
// }, },
// form: { form: {
// component: 'Switch', component: 'Switch',
// value: requestsettingData.directCreateRecord, value: requestsettingData.directCreateRecord,
// componentProps: { componentProps: {
// inactiveValue: 'FALSE', inactiveValue: 'FALSE',
// activeValue: 'TRUE', activeValue: 'TRUE',
// disabled: true disabled: true
// } }
// } }
// }, },
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',

40
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/purchasereceiptRequestMain.data.ts

@ -425,26 +425,26 @@ export const PurchasereceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
} }
} }
}, },
// { {
// label: '直接生成记录', label: '直接生成记录',
// field: 'directCreateRecord', field: 'directCreateRecord',
// dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
// dictClass: 'string', dictClass: 'string',
// isTable: true, isTable: false,
// sort: 'custom', sort: 'custom',
// table: { table: {
// width: 150 width: 150
// }, },
// form: { form: {
// component: 'Switch', component: 'Switch',
// value: requestsettingData.directCreateRecord, value: requestsettingData.directCreateRecord,
// componentProps: { componentProps: {
// inactiveValue: 'FALSE', inactiveValue: 'FALSE',
// activeValue: 'TRUE', activeValue: 'TRUE',
// disabled: true, disabled: true,
// } }
// } }
// }, },
{ {
label: '标签状态', label: '标签状态',
field: 'labelStatus', field: 'labelStatus',

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

@ -405,26 +405,26 @@ export const PurchasereturnRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
// { {
// label: '直接生成记录', label: '直接生成记录',
// field: 'directCreateRecord', field: 'directCreateRecord',
// dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
// dictClass: 'string', dictClass: 'string',
// isTable: true, isTable: false,
// sort: 'custom', sort: 'custom',
// table: { table: {
// width: 150 width: 150
// }, },
// form: { form: {
// component: 'Switch', component: 'Switch',
// value: requestsettingData.directCreateRecord, value: requestsettingData.directCreateRecord,
// componentProps: { componentProps: {
// inactiveValue: 'FALSE', inactiveValue: 'FALSE',
// activeValue: 'TRUE', activeValue: 'TRUE',
// disabled: true disabled: true
// } }
// } }
// }, },
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',

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

@ -393,26 +393,26 @@ export const PutawayRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
// { {
// label: '直接生成记录', label: '直接生成记录',
// field: 'directCreateRecord', field: 'directCreateRecord',
// dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
// dictClass: 'string', dictClass: 'string',
// isTable: true, isTable: false,
// sort: 'custom', sort: 'custom',
// table: { table: {
// width: 150 width: 150
// }, },
// form: { form: {
// component: 'Switch', component: 'Switch',
// value: requestsettingData.directCreateRecord, value: requestsettingData.directCreateRecord,
// componentProps: { componentProps: {
// inactiveValue: 'FALSE', inactiveValue: 'FALSE',
// activeValue: 'TRUE', activeValue: 'TRUE',
// disabled: true disabled: true
// } }
// } }
// }, },
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',

40
src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRequestMain/sparereceiptRequestMain.data.ts

@ -426,26 +426,26 @@ export const PurchasereceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
} }
} }
}, },
// { {
// label: '直接生成记录', label: '直接生成记录',
// field: 'directCreateRecord', field: 'directCreateRecord',
// dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
// dictClass: 'string', dictClass: 'string',
// isTable: true, isTable: false,
// sort: 'custom', sort: 'custom',
// table: { table: {
// width: 150 width: 150
// }, },
// form: { form: {
// component: 'Switch', component: 'Switch',
// value: requestsettingData.directCreateRecord, value: requestsettingData.directCreateRecord,
// componentProps: { componentProps: {
// inactiveValue: 'FALSE', inactiveValue: 'FALSE',
// activeValue: 'TRUE', activeValue: 'TRUE',
// disabled: true, disabled: true,
// } }
// } }
// }, },
{ {
label: '标签状态', label: '标签状态',
field: 'labelStatus', field: 'labelStatus',

40
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts

@ -454,26 +454,26 @@ export const SupplierdeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
} }
} }
}, },
// { {
// label: '直接生成记录', label: '直接生成记录',
// field: 'directCreateRecord', field: 'directCreateRecord',
// dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
// dictClass: 'string', dictClass: 'string',
// isTable: true, isTable: false,
// sort: 'custom', sort: 'custom',
// table: { table: {
// width: 150 width: 150
// }, },
// form: { form: {
// component: 'Switch', component: 'Switch',
// value: requestsettingData.directCreateRecord, value: requestsettingData.directCreateRecord,
// componentProps: { componentProps: {
// inactiveValue: 'FALSE', inactiveValue: 'FALSE',
// activeValue: 'TRUE', activeValue: 'TRUE',
// disabled: true, disabled: true,
// } }
// } }
// }, },
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',

40
src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/purchaseclaimRequestMain.data.ts

@ -244,26 +244,26 @@ export const PurchaseclaimRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
// { {
// label: '直接生成记录', label: '直接生成记录',
// field: 'directCreateRecord', field: 'directCreateRecord',
// dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
// dictClass: 'string', dictClass: 'string',
// isSearch: false, isSearch: false,
// isTable: true, isTable: false,
// table: { table: {
// width: 120 width: 120
// }, },
// form:{ form:{
// component:'Switch', component:'Switch',
// value:requestsettingData.available, value:requestsettingData.available,
// componentProps:{ componentProps:{
// disabled:true, disabled:true,
// inactiveValue: 'FALSE', inactiveValue: 'FALSE',
// activeValue: 'TRUE' activeValue: 'TRUE'
// } }
// } }
// }, },
{ {
label: '创建者', label: '创建者',
field: 'creator', field: 'creator',

2
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts

@ -296,7 +296,7 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
field: 'directCreateRecord', field: 'directCreateRecord',
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: false,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150

Loading…
Cancel
Save