Browse Source

备货任务前端页面按钮展示

master_hella_20240701
chenfang 8 months ago
parent
commit
cf5a8ed18c
  1. 2
      .env.development
  2. 20
      src/api/wms/stockupMainJob/index.ts
  3. 278
      src/views/wms/deliversettlementManage/stockup/stockupMainJob/index.vue
  4. 318
      src/views/wms/deliversettlementManage/stockup/stockupMainJob/stockupMainJob.data.ts
  5. 2
      src/views/wms/deliversettlementManage/stockup/stockupMainRequest/stockupMainRequest.data.ts

2
.env.development

@ -4,7 +4,7 @@ NODE_ENV=development
VITE_DEV=false VITE_DEV=false
# 请求路径 # 请求路径
VITE_BASE_URL='http://localhost:12080' VITE_BASE_URL='http://192.168.0.113:12080'
# 上传路径 # 上传路径
VITE_UPLOAD_URL='http://localhost:12080/admin-api/infra/file/upload' VITE_UPLOAD_URL='http://localhost:12080/admin-api/infra/file/upload'

20
src/api/wms/stockupMainJob/index.ts

@ -88,3 +88,23 @@ export const exportStockupMainJob = async (params) => {
export const importTemplate = () => { export const importTemplate = () => {
return request.download({ url: '/wms/stockup-main-job/get-import-template' }) return request.download({ url: '/wms/stockup-main-job/get-import-template' })
} }
// 承接发货任务 Excel
export const acceptStockupMainJob = async (id) => {
return await request.put({ url: `/wms/stockup-main-job/accept?id=` + id })
}
// 取消承接发货任务 Excel
export const abandonStockupMainJob = async (id) => {
return await request.put({ url: `/wms/stockup-main-job/abandon?id=` + id })
}
// 关闭发货任务主 Excel
export const closeStockupMainJob = async (id) => {
return await request.put({ url: `/wms/stockup-main-job/close?id=` + id })
}
// 执行发货任务主
export const executeStockupMainJob = async (data: StockupMainJobVO) => {
return await request.put({ url: `/wms/stockup-main-job/execute`, data })
}

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

@ -27,43 +27,53 @@
v-model:currentPage="tableObject.currentPage" v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort" v-model:sort="tableObject.sort"
> >
<template #code="{row}"> <template #number="{row}">
<el-button type="primary" link @click="openDetail(row, '代码', row.code)"> <el-button type="primary" link @click="openDetail(row, '单据号', row.number)">
<span>{{ row.code }}</span> <span>{{ row.number }}</span>
</el-button> </el-button>
</template> </template>
<template #action="{ row }"> <template #action="{ row }">
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event,row)" /> <ButtonBase :Butttondata="butttondata(row)" @button-base-click="buttonTableClick($event,row)" />
</template> </template>
</Table> </Table>
</ContentWrap> </ContentWrap>
<!-- 表单弹窗添加/修改 --> <!-- 表单弹窗添加/修改 -->
<BasicForm <BasicForm
ref="basicFormRef" ref="formRef"
@success="formsSuccess" @success="getList"
:rules="StockupMainJobRules" :rules="StockupMainJobRules"
:formAllSchemas="StockupMainJob.allSchemas" :formAllSchemas="StockupMainJob.allSchemas"
:apiUpdate="StockupMainJobApi.updateStockupMainJob" :searchTableParams="searchTableParams"
:apiCreate="StockupMainJobApi.createStockupMainJob" :tableAllSchemas="StockupDetailJob.allSchemas"
:tableFormRules="StockupDetailJobRules"
:apiUpdate="StockupJobMainApi.updateStockupMainJob"
:apiCreate="StockupJobMainApi.createStockupMainJob"
:isBusiness="true"
@searchTableSuccess="searchTableSuccess" @searchTableSuccess="searchTableSuccess"
:isBusiness="false"
/> />
<!-- 详情 --> <!-- 详情 -->
<Detail ref="detailRef" :isBasic="true" :allSchemas="StockupMainJob.allSchemas" /> <Detail
ref="detailRef"
:isBasic="false"
:allSchemas="StockupMainJob.allSchemas"
:detailAllSchemas="StockupDetailJob.allSchemas"
:detailAllSchemasRules="StockupDetailJobRules"
:searchTableParams="searchTableParams"
:apiPage="StockupJobDetailApi.getStockupDetailJobPage"
/>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import { StockupMainJob,StockupMainJobRules } from './stockupMainJob.data' import { StockupMainJob,StockupMainJobRules,StockupDetailJob,StockupDetailJobRules } from './stockupMainJob.data'
import * as StockupMainJobApi from '@/api/wms/stockupMainJob' import * as StockupJobMainApi from '@/api/wms/stockupMainJob'
import * as StockupJobDetailApi from '@/api/wms/stockupDetailJob'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import Detail from '@/components/Detail/src/Detail.vue'
defineOptions({ name: 'StockupMainJob' }) //
defineOptions({ name: 'StockupJobMain' })
const message = useMessage() // const message = useMessage() //
const { t } = useI18n() // const { t } = useI18n() //
@ -73,22 +83,52 @@ const routeName = ref()
routeName.value = route.name routeName.value = route.name
const tableColumns = ref(StockupMainJob.allSchemas.tableColumns) const tableColumns = ref(StockupMainJob.allSchemas.tableColumns)
//
const searchTableSuccess = (formField, searchField, val, formRef) => {
nextTick(() => {
const setV = {}
setV[formField] = val[0][searchField]
formRef.setValues(setV)
})
}
// //
const updataTableColumns = (val) => { 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 ) => {
nextTick(() => {
if (type == 'tableForm') {
//
//row[formField] = val[0][searchField]
//row['poLine'] = val[0]['poLine']
//row['batch'] = val[0]['toBatch']
//row['altBatch'] = val[0]['altBatch']
//row['itemCode'] = val[0]['itemCode']
//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 {
const setV = {}
setV[formField] = val[0][searchField]
//setV['ppNumber'] = val[0]['ppNumber']
//setV['supplierCode'] = val[0]['supplierCode']
formRef.setValues(setV)
}
})
}
//
// const Echo = ['ppNumber','poLine', 'batch', 'altBatch', 'itemCode', 'itemName', 'itemDesc1', 'itemDesc2', 'projectCode', 'qty', 'uom']
const Echo = []
const { tableObject, tableMethods } = useTable({ const { tableObject, tableMethods } = useTable({
getListApi: StockupMainJobApi.getStockupMainJobPage // getListApi: StockupJobMainApi.getStockupMainJobPage //
}) })
// //
@ -96,9 +136,7 @@ const { getList, setSearchParams } = tableMethods
// //
const HeadButttondata = [ const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:stockupMainJob:create'}), // defaultButtons.defaultExportBtn({hasPermi:'wms:stockup-job-main:export'}), //
defaultButtons.defaultImportBtn({hasPermi:'wms:stockupMainJob:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'wms:stockupMainJob:export'}), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), // defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), // defaultButtons.defaultSetBtn(null), //
@ -114,78 +152,158 @@ const HeadButttondata = [
// //
const buttonBaseClick = (val, item) => { const buttonBaseClick = (val, item) => {
if (val == 'add') { // if (val == 'export') { //
openForm('create')
} else if (val == 'export') { //
handleExport() handleExport()
} else if (val == 'refresh') { // } else if (val == 'refresh') { //
getList() if (tableObject.params.filters && tableObject.params.filters.length > 0 ) {
searchFormClick({
filters: tableObject.params.filters
})
} else {
getList()
}
} else if (val == 'filtrate') { // } else if (val == 'filtrate') { //
} else { // } else { //
console.log('其他按钮', item) console.log('其他按钮', item)
} }
} }
// - //
const butttondata = [ const isShowMainButton = (row,val) => {
defaultButtons.mainListEditBtn({hasPermi:'wms:stockupMainJob:update'}), // if (val.indexOf(row.status) > -1) {
defaultButtons.mainListDeleteBtn({hasPermi:'wms:stockupMainJob:delete'}), // return false
] } else {
return true
// -
const buttonTableClick = async (val, row) => {
if (val == 'edit') { //
openForm('update', row)
} else if (val == 'delete') { //
handleDelete(row.id)
} }
} }
/** 添加/修改操作 */ // -
const basicFormRef = ref() const butttondata = (row) => {
const openForm = (type: string, row?: any) => { return [
basicFormRef.value.open(type, row) defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), //
defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1'])}), //
defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), //
defaultButtons.mainListJobExeBtn({hide:isShowMainButton(row,['2'])}), //
]
} }
// form // -
const formsSuccess = async (formType,data) => { const buttonTableClick = async (val, row) => {
var isHave =StockupMainJob.allSchemas.formSchema.some(function (item) {  if (val == 'mainJobExe') { //
return item.field === 'activeTime' || item.field === 'expireTime';     let aaa = {
}); "id": 6,
if(isHave){ "requestNumber": "REQ4520240313-0003",
if(data.activeTime && data.expireTime && data.activeTime >=data.expireTime){ "deliverPlanNumber": null,
message.error('失效时间要大于生效时间') "fromWarehouseCode": "CKV",
return; "toWarehouseCode": "CKV",
} "details": null,
} "requestTime": null,
if(data.activeTime==0)data.activeTime = null; "requestDueTime": null,
if(data.expireTime==0)data.expireTime = null; "status": "1",
if (formType === 'create') { "expiredTime": null,
await StockupMainJobApi.createStockupMainJob(data) "concurrencyStamp": "1",
message.success(t('common.createSuccess')) "jobStageStatus": null,
} else { "priority": null,
await StockupMainJobApi.updateStockupMainJob(data) "priorityincrement": null,
message.success(t('common.updateSuccess')) "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') { //
StockupJobMainApi.abandonStockupMainJob(row.id)
} else if (val == 'mainJobClo') { //
StockupJobMainApi.closeStockupMainJob(row.id)
} else if (val == 'mainJobAcc') { //
StockupJobMainApi.acceptStockupMainJob(row.id)
} }
basicFormRef.value.dialogVisible = false
getList()
} }
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { const openDetail = (row: any, titleName: any, titleValue: any) => {
detailRef.value.openDetail(row, titleName, titleValue, 'basicStockupMainJob') detailRef.value.openDetail(row, titleName, titleValue,'jobStockupMain')
} }
/** 删除按钮操作 */ const handleHandle = async (data) => {
const handleDelete = async (id: number) => {
try { try {
// await message.confirm(t('common.confirmHandle'))
await message.delConfirm() await StockupJobMainApi.executeStockupMainJob(data)
// message.success(t('common.handleSuccess'))
await StockupMainJobApi.deleteStockupMainJob(id)
message.success(t('common.delSuccess'))
//
await getList() await getList()
} catch {} } catch {}
} }
@ -198,7 +316,7 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const data = await StockupMainJobApi.exportStockupMainJob(tableObject.params) const data = await StockupJobMainApi.exportStockupMainJob(tableObject.params)
download.excel(data, '备货任务主.xlsx') download.excel(data, '备货任务主.xlsx')
} catch { } catch {
} finally { } finally {

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

@ -7,47 +7,53 @@ export const StockupMainJobRules = reactive({
export const StockupMainJob = useCrudSchemas(reactive<CrudSchema[]>([ export const StockupMainJob = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: 'id', label: '单据号',
field: 'id', field: 'number',
sort: 'custom', sort: 'custom',
isSearch: true,
isForm: false, isForm: false,
}, },
{ {
label: '申请单号', label: '申请单号',
field: 'requestNumber', field: 'requestNumber',
sort: 'custom', sort: 'custom',
isSearch: true, isForm: false,
}, },
{ {
label: '发货计划单号', label: '发货计划单号',
field: 'deliverPlanNumber', field: 'deliverPlanNumber',
sort: 'custom', sort: 'custom',
isSearch: true, isForm: false,
}, },
{ {
label: '从仓库代码', label: '从仓库代码',
field: 'fromWarehouseCode', field: 'fromWarehouseCode',
sort: 'custom', sort: 'custom',
isSearch: true, isForm: false,
}, },
{ {
label: '到仓库代码', label: '到仓库代码',
field: 'toWarehouseCode', field: 'toWarehouseCode',
sort: 'custom', sort: 'custom',
isSearch: true, isForm: false,
}, },
{ {
label: '明细', label: '状态',
field: 'details', field: 'status',
sort: 'custom', sort: 'custom',
isSearch: true,
form: {
component: 'Radio'
},
}, },
{ {
label: '申请时间', label: '申请时间',
field: 'requestTime', field: 'requestTime',
sort: 'custom', sort: 'custom',
formatter: dateFormatter, formatter: dateFormatter,
isSearch: true,
search: { search: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -69,7 +75,6 @@ export const StockupMainJob = useCrudSchemas(reactive<CrudSchema[]>([
field: 'requestDueTime', field: 'requestDueTime',
sort: 'custom', sort: 'custom',
formatter: dateFormatter, formatter: dateFormatter,
isSearch: true,
search: { search: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -86,21 +91,13 @@ export const StockupMainJob = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
}, },
{
label: '状态',
field: 'status',
sort: 'custom',
isSearch: true,
form: {
component: 'Radio'
},
},
{ {
label: '过期时间', label: '过期时间',
field: 'expiredTime', field: 'expiredTime',
sort: 'custom', sort: 'custom',
formatter: dateFormatter, formatter: dateFormatter,
isSearch: true,
search: { search: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -117,71 +114,24 @@ export const StockupMainJob = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
}, },
{
label: '并发乐观锁',
field: 'concurrencyStamp',
sort: 'custom',
isSearch: true,
},
{
label: '状态',
field: 'jobStageStatus',
sort: 'custom',
isSearch: true,
form: {
component: 'Radio'
},
},
{
label: '优先级',
field: 'priority',
sort: 'custom',
isSearch: true,
form: {
component: 'InputNumber',
value: 0
},
},
{
label: '优先级增量',
field: 'priorityincrement',
sort: 'custom',
isSearch: true,
form: {
component: 'InputNumber',
value: 0
},
},
{ {
label: '部门', label: '部门',
field: 'departmentCode', field: 'departmentCode',
sort: 'custom', sort: 'custom',
isSearch: true,
},
{
label: '用户组',
field: 'userGroupCode',
sort: 'custom',
isSearch: true,
},
{
label: '承接人用户ID',
field: 'acceptUserId',
sort: 'custom',
isSearch: true,
}, },
{ {
label: '承接人用户名', label: '承接人用户名',
field: 'acceptUserName', field: 'acceptUserName',
sort: 'custom', sort: 'custom',
isSearch: true,
}, },
{ {
label: '承接时间', label: '承接时间',
field: 'acceptTime', field: 'acceptTime',
sort: 'custom', sort: 'custom',
formatter: dateFormatter, formatter: dateFormatter,
isSearch: true,
search: { search: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -198,24 +148,16 @@ export const StockupMainJob = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
}, },
{
label: '完成人用户ID',
field: 'completeUserId',
sort: 'custom',
isSearch: true,
},
{ {
label: '完成人用户名', label: '完成人用户名',
field: 'completeUserName', field: 'completeUserName',
sort: 'custom', sort: 'custom',
isSearch: true,
}, },
{ {
label: '完成时间', label: '完成时间',
field: 'completeTime', field: 'completeTime',
sort: 'custom', sort: 'custom',
formatter: dateFormatter, formatter: dateFormatter,
isSearch: true,
search: { search: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -236,25 +178,16 @@ export const StockupMainJob = useCrudSchemas(reactive<CrudSchema[]>([
label: '从库区类型范围', label: '从库区类型范围',
field: 'fromAreaTypes', field: 'fromAreaTypes',
sort: 'custom', sort: 'custom',
isSearch: true,
}, },
{ {
label: '到库区类型范围', label: '到库区类型范围',
field: 'toAreaTypes', field: 'toAreaTypes',
sort: 'custom', sort: 'custom',
isSearch: true,
},
{
label: '单据号',
field: 'number',
sort: 'custom',
isSearch: true,
}, },
{ {
label: '业务类型', label: '业务类型',
field: 'businessType', field: 'businessType',
sort: 'custom', sort: 'custom',
isSearch: true,
form: { form: {
component: 'SelectV2' component: 'SelectV2'
}, },
@ -263,14 +196,106 @@ export const StockupMainJob = useCrudSchemas(reactive<CrudSchema[]>([
label: '备注', label: '备注',
field: 'remark', field: 'remark',
sort: 'custom', sort: 'custom',
isSearch: true,
},
{
label: '自动完成',
field: 'autoComplete',
sort: 'custom',
},
{
label: '允许修改库位',
field: 'allowModifyLocation',
sort: 'custom',
},
{
label: '允许修改数量',
field: 'allowModifyQty',
sort: 'custom',
},
{
label: '允许大于推荐数量',
field: 'allowBiggerQty',
sort: 'custom',
},
{
label: '允许小于推荐数量',
field: 'allowSmallerQty',
sort: 'custom',
},
{
label: '允许修改库存状态',
field: 'allowModifyInventoryStatus',
sort: 'custom',
form: {
component: 'Radio'
},
},
{
label: '允许连续扫描',
field: 'allowContinuousScanning',
sort: 'custom',
},
{
label: '允许部分完成',
field: 'allowPartialComplete',
sort: 'custom',
},
{
label: '允许修改批次',
field: 'allowModifyBatch',
sort: 'custom',
},
{
label: '允许修改箱码',
field: 'allowModifyPackingNumber',
sort: 'custom',
},
{
label: '从库区代码范围',
field: 'fromAreaCodes',
sort: 'custom',
},
{
label: '到库区代码范围',
field: 'toAreaCodes',
sort: 'custom',
},
{
label: '工作流流水号',
field: 'serialNumber',
sort: 'custom',
},
{
label: '入库库存状态范围',
field: 'inInventoryStatuses',
sort: 'custom',
},
{
label: '出库库存状态范围',
field: 'outInventoryStatuses',
sort: 'custom',
}, },
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
sort: 'custom', sort: 'custom',
formatter: dateFormatter, formatter: dateFormatter,
isSearch: true,
search: { search: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -282,119 +307,145 @@ export const StockupMainJob = useCrudSchemas(reactive<CrudSchema[]>([
isForm: false, isForm: false,
}, },
{ {
label: '扩展属性', label: '操作',
field: 'extraProperties', field: 'action',
isForm: false,
table: {
width: 150,
fixed: 'right'
}
}
]))
// 表单校验
export const StockupDetailJobRules = reactive({
})
export const StockupDetailJob = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '单据号',
field: 'number',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
}, },
{ {
label: '地点ID', label: '包装号',
field: 'siteId', field: 'packingNumber',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
}, },
{ {
label: '自动完成', label: '批次',
field: 'autoComplete', field: 'batch',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
}, },
{ {
label: '允许修改库位', label: '库存状态',
field: 'allowModifyLocation', field: 'inventoryStatus',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
form: {
component: 'Radio'
},
}, },
{ {
label: '允许修改数量', label: '货主代码',
field: 'allowModifyQty', field: 'ownerCode',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
}, },
{ {
label: '允许大于推荐数量', label: '器具号',
field: 'allowBiggerQty', field: 'containerNumber',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
}, },
{ {
label: '允许小于推荐数量', label: '从库位代码',
field: 'allowSmallerQty', field: 'fromLocationCode',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
}, },
{ {
label: '允许修改库存状态', label: '到库位代码',
field: 'allowModifyInventoryStatus', field: 'toLocationCode',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
form: {
component: 'Radio'
},
}, },
{ {
label: '允许连续扫描', label: '物品代码',
field: 'allowContinuousScanning', field: 'itemCode',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
}, },
{ {
label: '允许部分完成', label: '物品名称',
field: 'allowPartialComplete', field: 'itemName',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
}, },
{ {
label: '权限所属人员id', label: '物品描述1',
field: 'ruleUserId', field: 'itemDesc1',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
form: {
component: 'InputNumber',
value: 0
},
}, },
{ {
label: '允许修改批次', label: '物品描述2',
field: 'allowModifyBatch', field: 'itemDesc2',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
}, },
{ {
label: '允许修改箱码', label: '项目代码',
field: 'allowModifyPackingNumber', field: 'projectCode',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
}, },
{ {
label: '从库区代码范围', label: '数量',
field: 'fromAreaCodes', field: 'qty',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
}, },
{ {
label: '到库区代码范围', label: '计量单位',
field: 'toAreaCodes', field: 'uom',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
}, },
{ {
label: '工作流流水号', label: '主表ID',
field: 'serialNumber', field: 'masterId',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
form: {
component: 'InputNumber',
value: 0
},
}, },
{ {
label: '入库库存状态范围', label: '备注',
field: 'inInventoryStatuses', field: 'remark',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
}, },
{ {
label: '出库库存状态范围', label: '创建时间',
field: 'outInventoryStatuses', field: 'createTime',
sort: 'custom', sort: 'custom',
formatter: dateFormatter,
isSearch: true, isSearch: true,
search: {
component: 'DatePicker',
componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'daterange',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
}
},
isForm: false,
}, },
{ {
label: '操作', label: '操作',
@ -406,3 +457,4 @@ export const StockupMainJob = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
])) ]))

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

@ -434,7 +434,7 @@ export const StockupMainRequest = useCrudSchemas(reactive<CrudSchema[]>([
field: 'action', field: 'action',
isForm: false, isForm: false,
table: { table: {
width: 150, width: 300,
fixed: 'right' fixed: 'right'
} }
} }

Loading…
Cancel
Save