Browse Source

转移管理页面修改

master
李胜楠 1 year ago
parent
commit
a6b69742ea
  1. 44
      src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/index.vue
  2. 154
      src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/inventorychangeRequestMain.data.ts
  3. 48
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue
  4. 152
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts

44
src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/index.vue

@ -44,7 +44,6 @@
@success="getList" @success="getList"
:rules="InventorychangeRequestMainRules" :rules="InventorychangeRequestMainRules"
:formAllSchemas="InventorychangeRequestMain.allSchemas" :formAllSchemas="InventorychangeRequestMain.allSchemas"
:searchTableParams="searchTableParams"
:tableAllSchemas="InventorychangeRequestDetail.allSchemas" :tableAllSchemas="InventorychangeRequestDetail.allSchemas"
:tableFormRules="InventorychangeRequestDetailRules" :tableFormRules="InventorychangeRequestDetailRules"
:tableData="tableData" :tableData="tableData"
@ -64,12 +63,12 @@
:allSchemas="InventorychangeRequestMain.allSchemas" :allSchemas="InventorychangeRequestMain.allSchemas"
:detailAllSchemas="InventorychangeRequestDetail.allSchemas" :detailAllSchemas="InventorychangeRequestDetail.allSchemas"
:detailAllSchemasRules="InventorychangeRequestDetailRules" :detailAllSchemasRules="InventorychangeRequestDetailRules"
:searchTableParams="searchTableParams"
:apiCreate="InventorychangeRequestDetailApi.createInventorychangeRequestDetail" :apiCreate="InventorychangeRequestDetailApi.createInventorychangeRequestDetail"
:apiUpdate="InventorychangeRequestDetailApi.updateInventorychangeRequestDetail" :apiUpdate="InventorychangeRequestDetailApi.updateInventorychangeRequestDetail"
:apiPage="InventorychangeRequestDetailApi.getInventorychangeRequestDetailPage" :apiPage="InventorychangeRequestDetailApi.getInventorychangeRequestDetailPage"
:apiDelete="InventorychangeRequestDetailApi.deleteInventorychangeRequestDetail" :apiDelete="InventorychangeRequestDetailApi.deleteInventorychangeRequestDetail"
:Echo="Echo" :Echo="Echo"
@searchTableSuccessDetail="searchTableSuccessDetail"
/> />
<!-- 导入 --> <!-- 导入 -->
@ -99,41 +98,36 @@ const updataTableColumns = (val) => {
tableColumns.value = val tableColumns.value = val
} }
//
const searchTableParams = ref([
//{
// formField: 'productItemCode',
// searchTableTitle: '',
// searchTableAllSchemas: Itembasic.allSchemas,
// searchTablePage: ItembasicApi.getItembasicPage
//}
])
// //
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => {
nextTick(() => { nextTick(() => {
if (type == 'tableForm') { if (type == 'tableForm') {
// //
//row[formField] = val[0][searchField] row[formField] = val[0][searchField]
//row['poLine'] = val[0]['poLine'] row['fromPackingNumber'] = val[0]['packingNumber']
//row['batch'] = val[0]['toBatch'] row['itemCode'] = val[0]['itemCode']
//row['altBatch'] = val[0]['altBatch'] row['fromBatch'] = val[0]['batch']
//row['itemCode'] = val[0]['itemCode'] row['locationCode'] = val[0]['locationCode']
//row['itemName'] = val[0]['itemName']
//row['itemDesc1'] = val[0]['itemDesc1']
//row['itemDesc2'] = val[0]['itemDesc2']
//row['projectCode'] = val[0]['projectCode']
//row['qty'] = val[0]['qty']
//row['uom'] = val[0]['uom']
} else { } else {
const setV = {} const setV = {}
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
//setV['ppNumber'] = val[0]['ppNumber']
//setV['supplierCode'] = val[0]['supplierCode']
formRef.setValues(setV) formRef.setValues(setV)
} }
}) })
} }
//
const searchTableSuccessDetail = (formField, searchField, val, formRef ) => {
nextTick(() => {
const setV = {}
setV[formField] = val[0][searchField]
setV['fromPackingNumber'] = val[0]['packingNumber']
setV['itemCode'] = val[0]['itemCode']
setV['fromBatch'] = val[0]['batch']
setV['locationCode'] = val[0]['locationCode']
formRef.setValues(setV)
})
}
// //
// const Echo = ['ppNumber','poLine', 'batch', 'altBatch', 'itemCode', 'itemName', 'itemDesc1', 'itemDesc2', 'projectCode', 'qty', 'uom'] // const Echo = ['ppNumber','poLine', 'batch', 'altBatch', 'itemCode', 'itemName', 'itemDesc1', 'itemDesc2', 'projectCode', 'qty', 'uom']
const Echo = [] const Echo = []

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

@ -1,8 +1,12 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter } from '@/utils/formatTime'
const { t } = useI18n() // 国际化
import * as getRequestsettingApi from '@/api/wms/requestsetting/index' import * as getRequestsettingApi from '@/api/wms/requestsetting/index'
import * as BalanceApi from '@/api/wms/balance'
import { Balance } from '@/views/wms/inventoryManage/balance/balance.data'
const { t } = useI18n() // 国际化
// 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值 // 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值
const queryParams = { const queryParams = {
pageSize:10, pageSize:10,
@ -28,6 +32,7 @@ export const InventorychangeRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 150 width: 150
}, },
isForm: false,
}, },
{ {
label: '单据号', label: '单据号',
@ -47,6 +52,7 @@ export const InventorychangeRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 150 width: 150
}, },
isForm: false,
}, },
{ {
label: '备注', label: '备注',
@ -71,6 +77,7 @@ export const InventorychangeRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
style: { width:'100%'},
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
@ -101,11 +108,13 @@ export const InventorychangeRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
style: { width:'100%'},
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
isForm: false,
}, },
{ {
label: '截止时间', label: '截止时间',
@ -121,6 +130,7 @@ export const InventorychangeRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
style: { width:'100%'},
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
@ -173,6 +183,7 @@ export const InventorychangeRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
style: { width:'100%'},
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
@ -283,9 +294,9 @@ export const InventorychangeRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
//表单校验 //表单校验
export const InventorychangeRequestMainRules = reactive({ export const InventorychangeRequestMainRules = reactive({
warehouseCode: [ // warehouseCode: [
{ required: true, message: '请选择仓库代码', trigger: 'change' } // { required: true, message: '请选择仓库代码', trigger: 'change' }
], // ],
departmentCode: [ departmentCode: [
{ required: true, message: '请输入部门', trigger: 'blur' } { required: true, message: '请输入部门', trigger: 'blur' }
], ],
@ -320,6 +331,9 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
table: { table: {
width: 150 width: 150
}, },
tableForm: {
disabled: true
}
}, },
{ {
label: '库位组代码', label: '库位组代码',
@ -328,6 +342,8 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
table: { table: {
width: 150 width: 150
}, },
isTableForm: false,
isForm: false,
}, },
{ {
label: '库区代码', label: '库区代码',
@ -336,6 +352,8 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
table: { table: {
width: 150 width: 150
}, },
isTableForm: false,
isForm: false,
}, },
{ {
label: '从数量', label: '从数量',
@ -346,8 +364,19 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
}, },
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: {
min: 1,
precision: 6
} }
}, },
tableForm: {
type: 'InputNumber',
min: 1,
precision: 6
},
isTableForm: false,
isForm: false,
},
{ {
label: '从货主代码', label: '从货主代码',
field: 'fromOwnerCode', field: 'fromOwnerCode',
@ -355,6 +384,8 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
table: { table: {
width: 150 width: 150
}, },
isTableForm: false,
isForm: false,
}, },
{ {
label: '从包装号', label: '从包装号',
@ -363,6 +394,25 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
table: { table: {
width: 150 width: 150
}, },
tableForm:{
isInpuFocusShow: true, // 开启查询弹窗
searchListPlaceholder: '请选择从包装号',
searchField: 'packingNumber',
searchTitle: '库存余额信息',
searchAllSchemas: Balance.allSchemas,
searchPage: BalanceApi.getBalancePage
},
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择从包装号',
searchField: 'packingNumber',
searchTitle: '库存余额信息',
searchAllSchemas: Balance.allSchemas,
searchPage: BalanceApi.getBalancePage
}
}
}, },
{ {
label: '从器具号', label: '从器具号',
@ -371,6 +421,8 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
table: { table: {
width: 150 width: 150
}, },
isTableForm: false,
isForm: false,
}, },
{ {
label: '从批次', label: '从批次',
@ -379,6 +431,9 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
table: { table: {
width: 150 width: 150
}, },
tableForm: {
disabled: true
}
}, },
{ {
label: '从替代批次', label: '从替代批次',
@ -387,6 +442,8 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
table: { table: {
width: 150 width: 150
}, },
isTableForm: false,
isForm: false,
}, },
{ {
label: '从到货日期', label: '从到货日期',
@ -402,11 +459,14 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
style: { width:'100%'},
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
isTableForm: false,
isForm: false,
}, },
{ {
label: '从生产日期', label: '从生产日期',
@ -422,11 +482,14 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
style: { width:'100%'},
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
isTableForm: false,
isForm: false,
}, },
{ {
label: '从过期日期', label: '从过期日期',
@ -442,11 +505,14 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
style: { width:'100%'},
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
isTableForm: false,
isForm: false,
}, },
{ {
label: '从库存状态', label: '从库存状态',
@ -458,6 +524,12 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
table: { table: {
width: 150 width: 150
}, },
tableForm: {
type: 'Select',
disabled: true
},
isTableForm: false,
isForm: false,
}, },
{ {
label: '到数量', label: '到数量',
@ -468,8 +540,19 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
}, },
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: {
min: 1,
precision: 6
} }
}, },
tableForm: {
type: 'InputNumber',
min: 1,
precision: 6
},
isTableForm: false,
isForm: false,
},
{ {
label: '到货主代码', label: '到货主代码',
field: 'toOwnerCode', field: 'toOwnerCode',
@ -477,6 +560,8 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
table: { table: {
width: 150 width: 150
}, },
isTableForm: false,
isForm: false,
}, },
{ {
label: '到包装号', label: '到包装号',
@ -485,6 +570,8 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
table: { table: {
width: 150 width: 150
}, },
isTableForm: false,
isForm: false,
}, },
{ {
label: '到器具号', label: '到器具号',
@ -493,6 +580,8 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
table: { table: {
width: 150 width: 150
}, },
isTableForm: false,
isForm: false,
}, },
{ {
label: '到批次', label: '到批次',
@ -501,6 +590,8 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
table: { table: {
width: 150 width: 150
}, },
isTableForm: false,
isForm: false,
}, },
{ {
label: '到替代批次', label: '到替代批次',
@ -509,6 +600,8 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
table: { table: {
width: 150 width: 150
}, },
isTableForm: false,
isForm: false,
}, },
{ {
label: '到到货日期', label: '到到货日期',
@ -524,11 +617,14 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
style: { width:'100%'},
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
isTableForm: false,
isForm: false,
}, },
{ {
label: '到生产日期', label: '到生产日期',
@ -544,11 +640,14 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
style: { width:'100%'},
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
isTableForm: false,
isForm: false,
}, },
{ {
label: '到过期日期', label: '到过期日期',
@ -564,11 +663,14 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
style: { width:'100%'},
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
isTableForm: false,
isForm: false,
}, },
{ {
label: '到库存状态', label: '到库存状态',
@ -580,6 +682,9 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
table: { table: {
width: 150 width: 150
}, },
tableForm: {
type: 'Select'
},
}, },
{ {
label: '单据号', label: '单据号',
@ -627,6 +732,7 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
style: { width:'100%'},
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
@ -642,6 +748,9 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
table: { table: {
width: 150 width: 150
}, },
tableForm: {
disabled: true
}
}, },
{ {
label: '物品名称', label: '物品名称',
@ -650,6 +759,8 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
table: { table: {
width: 150 width: 150
}, },
isTableForm: false,
isForm: false,
}, },
{ {
label: '物品描述1', label: '物品描述1',
@ -658,6 +769,8 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
table: { table: {
width: 150 width: 150
}, },
isTableForm: false,
isForm: false,
}, },
{ {
label: '物品描述2', label: '物品描述2',
@ -666,6 +779,8 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
table: { table: {
width: 150 width: 150
}, },
isTableForm: false,
isForm: false,
}, },
{ {
label: '项目代码', label: '项目代码',
@ -674,6 +789,8 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
table: { table: {
width: 150 width: 150
}, },
isTableForm: false,
isForm: false,
}, },
{ {
label: '数量', label: '数量',
@ -684,8 +801,19 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
}, },
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: {
min: 1,
precision: 6
} }
}, },
tableForm: {
type: 'InputNumber',
min: 1,
precision: 6
},
isTableForm: false,
isForm: false,
},
{ {
label: '计量单位', label: '计量单位',
field: 'uom', field: 'uom',
@ -696,6 +824,11 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
table: { table: {
width: 150 width: 150
}, },
tableForm: {
type: 'Select'
},
isTableForm: false,
isForm: false,
}, },
{ {
label: '最后更新者', label: '最后更新者',
@ -721,6 +854,7 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
style: { width:'100%'},
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
@ -747,12 +881,12 @@ export const InventorychangeRequestDetailRules = reactive({
locationCode: [ locationCode: [
{ required: true, message: '请选择库位代码', trigger: 'change' } { required: true, message: '请选择库位代码', trigger: 'change' }
], ],
locationGroupCode: [ // locationGroupCode: [
{ required: true, message: '请选择库位组代码', trigger: 'change' } // { required: true, message: '请选择库位组代码', trigger: 'change' }
], // ],
areaCode: [ // areaCode: [
{ required: true, message: '请选择库区代码', trigger: 'change' } // { required: true, message: '请选择库区代码', trigger: 'change' }
], // ],
itemCode: [ itemCode: [
{ required: true, message: '请选择物品代码', trigger: 'change' } { required: true, message: '请选择物品代码', trigger: 'change' }
], ],

48
src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue

@ -44,7 +44,6 @@
@success="getList" @success="getList"
:rules="InventorymoveRequestMainRules" :rules="InventorymoveRequestMainRules"
:formAllSchemas="InventorymoveRequestMain.allSchemas" :formAllSchemas="InventorymoveRequestMain.allSchemas"
:searchTableParams="searchTableParams"
:tableAllSchemas="InventorymoveRequestDetail.allSchemas" :tableAllSchemas="InventorymoveRequestDetail.allSchemas"
:tableFormRules="InventorymoveRequestDetailRules" :tableFormRules="InventorymoveRequestDetailRules"
:tableData="tableData" :tableData="tableData"
@ -64,12 +63,12 @@
:allSchemas="InventorymoveRequestMain.allSchemas" :allSchemas="InventorymoveRequestMain.allSchemas"
:detailAllSchemas="InventorymoveRequestDetail.allSchemas" :detailAllSchemas="InventorymoveRequestDetail.allSchemas"
:detailAllSchemasRules="InventorymoveRequestDetailRules" :detailAllSchemasRules="InventorymoveRequestDetailRules"
:searchTableParams="searchTableParams"
:apiCreate="InventorymoveRequestDetailApi.createInventorymoveRequestDetail" :apiCreate="InventorymoveRequestDetailApi.createInventorymoveRequestDetail"
:apiUpdate="InventorymoveRequestDetailApi.updateInventorymoveRequestDetail" :apiUpdate="InventorymoveRequestDetailApi.updateInventorymoveRequestDetail"
:apiPage="InventorymoveRequestDetailApi.getInventorymoveRequestDetailPage" :apiPage="InventorymoveRequestDetailApi.getInventorymoveRequestDetailPage"
:apiDelete="InventorymoveRequestDetailApi.deleteInventorymoveRequestDetail" :apiDelete="InventorymoveRequestDetailApi.deleteInventorymoveRequestDetail"
:Echo="Echo" :Echo="Echo"
@searchTableSuccessDetail="searchTableSuccessDetail"
/> />
<!-- 导入 --> <!-- 导入 -->
@ -99,41 +98,38 @@ const updataTableColumns = (val) => {
tableColumns.value = val tableColumns.value = val
} }
//
const searchTableParams = ref([
//{
// formField: 'productItemCode',
// searchTableTitle: '',
// searchTableAllSchemas: Itembasic.allSchemas,
// searchTablePage: ItembasicApi.getItembasicPage
//}
])
// //
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => {
nextTick(() => { nextTick(() => {
if (type == 'tableForm') { if (type == 'tableForm') {
// row['fromPackingNumber'] = val[0]['packingNumber']
//row[formField] = val[0][searchField] row['fromContainerNumber'] = val[0]['containerNumber']
//row['poLine'] = val[0]['poLine'] row['itemCode'] = val[0]['itemCode']
//row['batch'] = val[0]['toBatch'] row['fromBatch'] = val[0]['batch']
//row['altBatch'] = val[0]['altBatch'] row['fromInventoryStatus'] = val[0]['inventoryStatus']
//row['itemCode'] = val[0]['itemCode'] row['fromLocationCode'] = val[0]['locationCode']
//row['itemName'] = val[0]['itemName']
//row['itemDesc1'] = val[0]['itemDesc1']
//row['itemDesc2'] = val[0]['itemDesc2']
//row['projectCode'] = val[0]['projectCode']
//row['qty'] = val[0]['qty']
//row['uom'] = val[0]['uom']
} else { } else {
const setV = {} const setV = {}
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
//setV['ppNumber'] = val[0]['ppNumber']
//setV['supplierCode'] = val[0]['supplierCode']
formRef.setValues(setV) formRef.setValues(setV)
} }
}) })
} }
//
const searchTableSuccessDetail = (formField, searchField, val, formRef ) => {
nextTick(() => {
const setV = {}
setV[formField] = val[0][searchField]
setV['fromPackingNumber'] = val[0]['packingNumber']
setV['fromContainerNumber'] = val[0]['containerNumber']
setV['itemCode'] = val[0]['itemCode']
setV['fromBatch'] = val[0]['batch']
setV['fromInventoryStatus'] = val[0]['inventoryStatus']
setV['fromLocationCode'] = val[0]['locationCode']
formRef.setValues(setV)
})
}
// //
// const Echo = ['ppNumber','poLine', 'batch', 'altBatch', 'itemCode', 'itemName', 'itemDesc1', 'itemDesc2', 'projectCode', 'qty', 'uom'] // const Echo = ['ppNumber','poLine', 'batch', 'altBatch', 'itemCode', 'itemName', 'itemDesc1', 'itemDesc2', 'projectCode', 'qty', 'uom']
const Echo = [] const Echo = []

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

@ -1,8 +1,12 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter } from '@/utils/formatTime'
const { t } = useI18n() // 国际化
import * as getRequestsettingApi from '@/api/wms/requestsetting/index' import * as getRequestsettingApi from '@/api/wms/requestsetting/index'
import * as BalanceApi from '@/api/wms/balance'
import { Balance } from '@/views/wms/inventoryManage/balance/balance.data'
const { t } = useI18n() // 国际化
// 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值 // 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值
const queryParams = { const queryParams = {
pageSize:10, pageSize:10,
@ -28,6 +32,7 @@ export const InventorymoveRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
isForm: false,
}, },
{ {
label: '从库位类型范围', label: '从库位类型范围',
@ -39,6 +44,7 @@ export const InventorymoveRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
isForm: false,
}, },
{ {
label: '从库区代码范围', label: '从库区代码范围',
@ -47,6 +53,7 @@ export const InventorymoveRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
isForm: false,
}, },
{ {
label: '到仓库代码', label: '到仓库代码',
@ -55,6 +62,7 @@ export const InventorymoveRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
isForm: false,
}, },
{ {
label: '到库位类型范围', label: '到库位类型范围',
@ -67,6 +75,7 @@ export const InventorymoveRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
isSearch: true, isSearch: true,
isForm: false,
}, },
{ {
label: '到库区代码范围', label: '到库区代码范围',
@ -75,6 +84,7 @@ export const InventorymoveRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
isForm: false,
}, },
{ {
label: '单据号', label: '单据号',
@ -99,7 +109,8 @@ export const InventorymoveRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
componentProps: { componentProps: {
disabled: true disabled: true
} }
} },
isForm: false,
}, },
{ {
label: '备注', label: '备注',
@ -124,6 +135,7 @@ export const InventorymoveRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
style: { width:'100%'},
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
@ -154,11 +166,13 @@ export const InventorymoveRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
style: { width:'100%'},
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
isForm: false,
}, },
{ {
label: '截止时间', label: '截止时间',
@ -174,6 +188,7 @@ export const InventorymoveRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
style: { width:'100%'},
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
@ -226,6 +241,7 @@ export const InventorymoveRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
style: { width:'100%'},
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
@ -356,21 +372,21 @@ export const InventorymoveRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
//表单校验 //表单校验
export const InventorymoveRequestMainRules = reactive({ export const InventorymoveRequestMainRules = reactive({
fromWarehouseOde: [ // fromWarehouseOde: [
{ required: true, message: '请选择从仓库代码', trigger: 'change' } // { required: true, message: '请选择从仓库代码', trigger: 'change' }
], // ],
fromLocationTypes: [ // fromLocationTypes: [
{ required: true, message: '请选择从库位类型范围', trigger: 'change' } // { required: true, message: '请选择从库位类型范围', trigger: 'change' }
], // ],
fromAreaCodes: [ // fromAreaCodes: [
{ required: true, message: '请选择从库区代码范围', trigger: 'change' } // { required: true, message: '请选择从库区代码范围', trigger: 'change' }
], // ],
toWarehouseCode: [ // toWarehouseCode: [
{ required: true, message: '请选择到仓库代码', trigger: 'change' } // { required: true, message: '请选择到仓库代码', trigger: 'change' }
], // ],
toLocationTypes: [ // toLocationTypes: [
{ required: true, message: '请选择到库位类型范围', trigger: 'change' } // { required: true, message: '请选择到库位类型范围', trigger: 'change' }
], // ],
departmentCode: [ departmentCode: [
{ required: true, message: '请输入部门', trigger: 'blur' } { required: true, message: '请输入部门', trigger: 'blur' }
], ],
@ -389,9 +405,9 @@ export const InventorymoveRequestMainRules = reactive({
directCreateRecord: [ directCreateRecord: [
{ required: true, message: '请选择是否跳过任务直接生成记录', trigger: 'change' } { required: true, message: '请选择是否跳过任务直接生成记录', trigger: 'change' }
], ],
businessType: [ // businessType: [
{ required: true, message: '请输入业务类型', trigger: 'blur' } // { required: true, message: '请输入业务类型', trigger: 'blur' }
], // ],
}) })
/** /**
@ -405,6 +421,8 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 150 width: 150
}, },
isTableForm: false,
isForm: false,
}, },
{ {
label: '从包装号', label: '从包装号',
@ -413,6 +431,25 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 150 width: 150
}, },
tableForm:{
isInpuFocusShow: true, // 开启查询弹窗
searchListPlaceholder: '请选择从包装号',
searchField: 'packingNumber',
searchTitle: '库存余额信息',
searchAllSchemas: Balance.allSchemas,
searchPage: BalanceApi.getBalancePage
},
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择从包装号',
searchField: 'packingNumber',
searchTitle: '库存余额信息',
searchAllSchemas: Balance.allSchemas,
searchPage: BalanceApi.getBalancePage
}
}
}, },
{ {
label: '从器具号', label: '从器具号',
@ -421,6 +458,9 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 150 width: 150
}, },
tableForm: {
disabled: true
}
}, },
{ {
label: '从批次', label: '从批次',
@ -429,6 +469,9 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 150 width: 150
}, },
tableForm: {
disabled: true
}
}, },
{ {
label: '从库位代码', label: '从库位代码',
@ -437,6 +480,9 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 150 width: 150
}, },
tableForm: {
disabled: true
}
}, },
{ {
label: '从库存状态', label: '从库存状态',
@ -448,6 +494,10 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 150 width: 150
}, },
tableForm: {
disabled: true,
type: 'Select'
}
}, },
{ {
label: '到货主代码', label: '到货主代码',
@ -456,6 +506,8 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 150 width: 150
}, },
isTableForm: false,
isForm: false,
}, },
{ {
label: '到包装号', label: '到包装号',
@ -464,6 +516,8 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 150 width: 150
}, },
isTableForm: false,
isForm: false,
}, },
{ {
label: '到器具号', label: '到器具号',
@ -472,6 +526,8 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 150 width: 150
}, },
isTableForm: false,
isForm: false,
}, },
{ {
label: '到批次', label: '到批次',
@ -480,6 +536,8 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 150 width: 150
}, },
isTableForm: false,
isForm: false,
}, },
{ {
label: '到库位代码', label: '到库位代码',
@ -488,6 +546,8 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 150 width: 150
}, },
isTableForm: false,
isForm: false,
}, },
{ {
label: '到库存状态', label: '到库存状态',
@ -499,6 +559,9 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 150 width: 150
}, },
tableForm: {
type: 'Select'
},
}, },
{ {
label: '单据号', label: '单据号',
@ -546,6 +609,7 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
style: { width:'100%'},
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
@ -561,6 +625,9 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 150 width: 150
}, },
tableForm: {
disabled: true
}
}, },
{ {
label: '物品名称', label: '物品名称',
@ -569,6 +636,8 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 150 width: 150
}, },
isTableForm: false,
isForm: false,
}, },
{ {
label: '物品描述1', label: '物品描述1',
@ -577,6 +646,8 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 150 width: 150
}, },
isTableForm: false,
isForm: false,
}, },
{ {
label: '物品描述2', label: '物品描述2',
@ -585,6 +656,8 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 150 width: 150
}, },
isTableForm: false,
isForm: false,
}, },
{ {
label: '项目代码', label: '项目代码',
@ -593,6 +666,8 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 150 width: 150
}, },
isTableForm: false,
isForm: false,
}, },
{ {
label: '数量', label: '数量',
@ -603,6 +678,15 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
}, },
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: {
min: 1,
precision: 6
}
},
tableForm: {
type: 'InputNumber',
min: 1,
precision: 6
} }
}, },
{ {
@ -615,6 +699,9 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 150 width: 150
}, },
tableForm: {
type: 'Select'
}
}, },
{ {
label: '最后更新者', label: '最后更新者',
@ -640,6 +727,7 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
style: { width:'100%'},
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
@ -675,16 +763,16 @@ export const InventorymoveRequestDetailRules = reactive({
fromInventoryStatus: [ fromInventoryStatus: [
{ required: true, message: '请选择从库存状态', trigger: 'change' } { required: true, message: '请选择从库存状态', trigger: 'change' }
], ],
toPackingNumber: [ // toPackingNumber: [
{ required: true, message: '请选择到包装号', trigger: 'change' } // { required: true, message: '请选择到包装号', trigger: 'change' }
], // ],
toBatch: [ // toBatch: [
{ required: true, message: '请输入到批次', trigger: 'blur' } // { required: true, message: '请输入到批次', trigger: 'blur' }
], // ],
toLocationCode: [ // toLocationCode: [
{ required: true, message: '请选择到库位代码', trigger: 'change' } // { required: true, message: '请选择到库位代码', trigger: 'change' }
], // ],
toInventoryStatus: [ // toInventoryStatus: [
{ required: true, message: '请选择到库存状态', trigger: 'change' } // { required: true, message: '请选择到库存状态', trigger: 'change' }
], // ],
}) })
Loading…
Cancel
Save