Browse Source

备货添加发货记录搜索框

master_hella_20240701
chenfang 6 months ago
parent
commit
d8b612f21b
  1. 2
      src/views/wms/deliversettlementManage/stockup/stockupMainRequest/index.vue
  2. 236
      src/views/wms/deliversettlementManage/stockup/stockupMainRequest/stockupMainRequest.data.ts

2
src/views/wms/deliversettlementManage/stockup/stockupMainRequest/index.vue

@ -90,6 +90,8 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
import * as DeliverPlanDetailApi from '@/api/wms/deliverPlanDetail' import * as DeliverPlanDetailApi from '@/api/wms/deliverPlanDetail'
import {DeliverRequestDetail} from '../../deliver/deliverRequestMain/deliverRequestMain.data'
// //
defineOptions({ name: 'StockupMainRequest' }) defineOptions({ name: 'StockupMainRequest' })

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

@ -7,6 +7,9 @@ import * as getRequestsettingApi from '@/api/wms/requestsetting/index'
import * as BalanceApi from '@/api/wms/balance' import * as BalanceApi from '@/api/wms/balance'
import { Balance } from '@/views/wms/inventoryManage/balance/balance.data' import { Balance } from '@/views/wms/inventoryManage/balance/balance.data'
import * as DeliverPlanMainApi from '@/api/wms/deliverPlanMain'
import { DeliverPlanMain } from '../../deliverplan/deliverPlanMain/deliverPlanMain.data'
import * as locationApi from '@/api/wms/location' import * as locationApi from '@/api/wms/location'
import { Location } from '../../../basicDataManage/factoryModeling/location/location.data' import { Location } from '../../../basicDataManage/factoryModeling/location/location.data'
@ -48,6 +51,35 @@ export const StockupMainRequest = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isForm: false, isForm: false,
}, },
{
label: '发货计划单号',
field: 'deliverPlanNumber',
sort: 'custom',
table: {
width: 180
},
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择发货计划单号', // 输入框占位文本
searchField: 'number', // 查询弹窗赋值字段
searchTitle: '发货计划信息', // 查询弹窗标题
searchAllSchemas: DeliverPlanMain.allSchemas, // 查询弹窗所需类
searchPage: DeliverPlanMainApi.getDeliverPlanMainPage, // 查询弹窗所需分页方法
searchCondition: [{
key: 'available',
value: 'TRUE',
isMainValue: false
},
{
key: 'status',
value: '6',
isMainValue: false
}]
}
}
},
{ {
label: '从仓库代码', label: '从仓库代码',
field: 'fromWarehouseCode', field: 'fromWarehouseCode',
@ -318,26 +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: true,
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: '到库区类型范围',
@ -443,92 +475,92 @@ export const StockupDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([
width: 100 width: 100
}, },
}, },
{
label: '包装号',
field: 'packingNumber',
sort: 'custom',
table: {
width: 150
},
tableForm:{
isInpuFocusShow: true, // 开启查询弹窗
searchListPlaceholder: '请选择包装号',
searchField: 'packingNumber',
searchTitle: '库存余额信息',
searchAllSchemas: Balance.allSchemas,
searchPage: BalanceApi.getBalanceItemPage,
searchCondition: [
// { // {
// key:'customerCode', // 查询列表中字段 // label: '包装号',
// value:'customerCode', // 指主表某字段 // field: 'packingNumber',
// message: '请选择客户代码!', // 当前置条件为空时 弹出信息提示 // sort: 'custom',
// isMainValue: true // 表示查询条件是主表的字段的值 // table: {
// width: 150
// },
// tableForm:{
// isInpuFocusShow: true, // 开启查询弹窗
// searchListPlaceholder: '请选择包装号',
// searchField: 'packingNumber',
// searchTitle: '库存余额信息',
// searchAllSchemas: Balance.allSchemas,
// searchPage: BalanceApi.getBalanceItemPage,
// searchCondition: [
// // {
// // key:'customerCode', // 查询列表中字段
// // value:'customerCode', // 指主表某字段
// // message: '请选择客户代码!', // 当前置条件为空时 弹出信息提示
// // isMainValue: true // 表示查询条件是主表的字段的值
// // }
// ]
// },
// form: {
// // labelMessage: '信息提示说明!!!',
// componentProps: {
// isSearchList: true, // 开启查询弹窗
// searchListPlaceholder: '请选择包装号',
// searchField: 'packingNumber',
// searchTitle: '库存余额信息',
// searchAllSchemas: Balance.allSchemas,
// searchPage: BalanceApi.getBalanceItemPage,
// searchCondition: [
// // {
// // key:'customerCode', // 查询列表中字段
// // value:'customerCode', // 指主表某字段
// // message: '请选择客户代码!', // 当前置条件为空时 弹出信息提示
// // isMainValue: true // 表示查询条件是主表的字段的值
// // }
// ]
// } // }
] // }
}, // },
form: { // {
// labelMessage: '信息提示说明!!!', // label: '器具号',
componentProps: { // field: 'containerNumber',
isSearchList: true, // 开启查询弹窗 // sort: 'custom',
searchListPlaceholder: '请选择包装号', // table: {
searchField: 'packingNumber', // width: 100
searchTitle: '库存余额信息', // },
searchAllSchemas: Balance.allSchemas, // isSearch: true,
searchPage: BalanceApi.getBalanceItemPage, // },
searchCondition: [
// { // {
// key:'customerCode', // 查询列表中字段 // label: '批次',
// value:'customerCode', // 指主表某字段 // field: 'batch',
// message: '请选择客户代码!', // 当前置条件为空时 弹出信息提示 // sort: 'custom',
// isMainValue: true // 表示查询条件是主表的字段的值 // isSearch: true,
// tableForm: {
// disabled: true,
// },
// form: {
// componentProps: {
// disabled: true
// } // }
] // }
} // },
} // {
}, // label: '库存状态',
{ // field: 'inventoryStatus',
label: '器具号', // dictType: DICT_TYPE.INVENTORY_STATUS,
field: 'containerNumber', // dictClass: 'string',
sort: 'custom', // isTable: true,
table: { // sort: 'custom',
width: 100 // table: {
}, // width: 120
isSearch: true, // },
}, // tableForm: {
{ // disabled: true,
label: '批次', // type: 'Select'
field: 'batch', // },
sort: 'custom', // form: {
isSearch: true, // componentProps: {
tableForm: { // disabled: true
disabled: true, // }
}, // }
form: { // },
componentProps: {
disabled: true
}
}
},
{
label: '库存状态',
field: 'inventoryStatus',
dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 120
},
tableForm: {
disabled: true,
type: 'Select'
},
form: {
componentProps: {
disabled: true
}
}
},
{ {
label: '物品代码', label: '物品代码',
field: 'itemCode', field: 'itemCode',

Loading…
Cancel
Save