Browse Source

按钮与搜索框隐藏

master_hella_20240701
chenfang 8 months ago
parent
commit
a11944b69b
  1. 14
      src/views/wms/basicDataManage/itemManage/packageunit/packageunit.data.ts
  2. 103
      src/views/wms/deliversettlementManage/stockup/stockupMainJob/index.vue
  3. 9
      src/views/wms/deliversettlementManage/stockup/stockupMainJob/stockupMainJob.data.ts
  4. 9
      src/views/wms/deliversettlementManage/stockup/stockupMainRecord/stockupMainRecord.data.ts

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

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

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

@ -180,110 +180,17 @@ const isShowMainButton = (row,val) => {
// -
const butttondata = (row) => {
return [
defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), //
defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1'])}), //
defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), //
defaultButtons.mainListJobExeBtn({hide:isShowMainButton(row,['2'])}), //
// defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), //
// defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1'])}), //
// defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), //
// defaultButtons.mainListJobExeBtn({hide:isShowMainButton(row,['2'])}), //
]
}
// -
const buttonTableClick = async (val, row) => {
 if (val == 'mainJobExe') { //
    let aaa = {
"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('列表-操作按钮事件-执行')
handleHandle
} else if (val == 'mainJobAba') { //
StockupJobMainApi.abandonStockupMainJob(row.id)
} 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
},
},
{
label: '发货记录单号',
field: 'deliverPlanNumber',
sort: 'custom',
isForm: false,
table: {
width: 180
},
},
{
label: '申请单号',
field: 'requestNumber',

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

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

Loading…
Cancel
Save