Browse Source

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

master_hella_20240701
陈薪名 8 months ago
parent
commit
ffdb7c8678
  1. 0
      src/api/mes/index.ts
  2. 49
      src/api/mes/workstation/index.ts
  3. 1
      src/api/wms/itembasic/index.ts
  4. 9
      src/api/wms/purchasereceiptRecordDetail/index.ts
  5. 5
      src/api/wms/putawayJobDetail/index.ts
  6. 5
      src/api/wms/putawayRecordDetail/index.ts
  7. 5
      src/api/wms/putawayRequestDetail/index.ts
  8. 20
      src/api/wms/stockupMainJob/index.ts
  9. 12
      src/utils/disposition/defaultButtons.ts
  10. 248
      src/views/mes/workstation/index.vue
  11. 78
      src/views/mes/workstation/workstation.data.ts
  12. 5
      src/views/wms/basicDataManage/factoryModeling/workstation/workstation.data.ts
  13. 217
      src/views/wms/basicDataManage/itemManage/itemarea/index.vue
  14. 133
      src/views/wms/basicDataManage/itemManage/itemarea/itemarea.data.ts
  15. 6
      src/views/wms/basicDataManage/itemManage/packageunit/packageunit.data.ts
  16. 278
      src/views/wms/deliversettlementManage/stockup/stockupMainJob/index.vue
  17. 318
      src/views/wms/deliversettlementManage/stockup/stockupMainJob/stockupMainJob.data.ts
  18. 119
      src/views/wms/deliversettlementManage/stockup/stockupMainRecord/index.vue
  19. 433
      src/views/wms/deliversettlementManage/stockup/stockupMainRecord/stockupMainRecord.data.ts
  20. 26
      src/views/wms/deliversettlementManage/stockup/stockupMainRequest/index.vue
  21. 168
      src/views/wms/deliversettlementManage/stockup/stockupMainRequest/stockupMainRequest.data.ts
  22. 17
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/index.vue
  23. 54
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/index.vue
  24. 351
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/purchasereceiptRecordMain.data.ts
  25. 2
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue
  26. 56
      src/views/wms/purchasereceiptManage/putaway/putawayJobMain/index.vue
  27. 372
      src/views/wms/purchasereceiptManage/putaway/putawayJobMain/putawayJobMain.data.ts
  28. 57
      src/views/wms/purchasereceiptManage/putaway/putawayRecordMain/index.vue
  29. 505
      src/views/wms/purchasereceiptManage/putaway/putawayRecordMain/putawayRecordMain.data.ts
  30. 61
      src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/index.vue
  31. 421
      src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/putawayRequestMain.data.ts

0
src/api/mes/index.ts

49
src/api/mes/workstation/index.ts

@ -0,0 +1,49 @@
import request from '@/config/axios'
export interface WorkstationVO {
code: string
activeTime: Date
expireTime: Date
name: string
}
// 查询工位列表
export const getWorkstationPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/mes/workstation/senior', data })
} else {
return await request.get({ url: `/mes/workstation/page`, params })
}
}
// 查询工位详情
export const getWorkstation = async (id: number) => {
return await request.get({ url: `/mes/workstation/get?id=` + id })
}
// 新增工位
export const createWorkstation = async (data: WorkstationVO) => {
return await request.post({ url: `/mes/workstation/create`, data })
}
// 修改工位
export const updateWorkstation = async (data: WorkstationVO) => {
return await request.put({ url: `/mes/workstation/update`, data })
}
// 删除工位
export const deleteWorkstation = async (id: number) => {
return await request.delete({ url: `/mes/workstation/delete?id=` + id })
}
// 导出工位 Excel
export const exportWorkstation = async (params) => {
return await request.download({ url: `/mes/workstation/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/mes/workstation/get-import-template' })
}

1
src/api/wms/itembasic/index.ts

@ -32,6 +32,7 @@ export interface ItembasicVO {
// 查询物料基本信息列表 // 查询物料基本信息列表
export const getItembasicPage = async (params) => { export const getItembasicPage = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch
const data = {...params} const data = {...params}
return request.post({ url: '/wms/itembasic/senior', data }) return request.post({ url: '/wms/itembasic/senior', data })
} else { } else {

9
src/api/wms/purchasereceiptRecordDetail/index.ts

@ -45,7 +45,9 @@ export interface PurchasereceiptRecordDetailVO {
interfaceType: string interfaceType: string
fromOwnerCode: string fromOwnerCode: string
toOwnerCode: string toOwnerCode: string
toBatch: string toBatch: string,
parentPackingNumber:string
packingNumber:string
} }
// 查询采购收货记录子列表 // 查询采购收货记录子列表
@ -117,4 +119,9 @@ export const getScarceGoodsDetailPage = async (params) => {
// 查询采购收货记录子包装数据 // 查询采购收货记录子包装数据
export const queryPurchaseceiptChildPackingNumber = async (params) => { export const queryPurchaseceiptChildPackingNumber = async (params) => {
return await request.get({ url: `/wms/purchasereceipt-record-detail/pageChildPackingNumber`, params }) return await request.get({ url: `/wms/purchasereceipt-record-detail/pageChildPackingNumber`, params })
}
// 查询采购收货缺货记录子包装数据
export const queryPurchaseshortageChildPackingNumber = async (params) => {
return await request.get({ url: `/wms/purchaseshortage-detail/pageChildPackingNumber`, params })
} }

5
src/api/wms/putawayJobDetail/index.ts

@ -63,4 +63,9 @@ export const exportPutawayJobDetail = async (params) => {
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {
return request.download({ url: '/wms/putaway-job-detail/get-import-template' }) return request.download({ url: '/wms/putaway-job-detail/get-import-template' })
}
// 查询上架任务子列表--自包装数量
export const getPutawayJobDetailPageChildPackingNumber = async (params) => {
return await request.get({ url: `/wms/putaway-job-detail/pageChildPackingNumber`, params })
} }

5
src/api/wms/putawayRecordDetail/index.ts

@ -73,4 +73,9 @@ export const exportPutawayRecordDetail = async (params) => {
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {
return request.download({ url: '/wms/putaway-record-detail/get-import-template' }) return request.download({ url: '/wms/putaway-record-detail/get-import-template' })
}
// 查询上架记录子列表--子包装数据
export const getPutawayJobDetailPageChildPackingNumber = async (params) => {
return await request.get({ url: `/wms/putaway-record-detail/pageChildPackingNumber`, params })
} }

5
src/api/wms/putawayRequestDetail/index.ts

@ -64,4 +64,9 @@ export const exportPutawayRequestDetail = async (params) => {
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {
return request.download({ url: '/wms/putaway-request-detail/get-import-template' }) return request.download({ url: '/wms/putaway-request-detail/get-import-template' })
}
// 查询上架申请子列表--子包装数据
export const getPutawayRequestDetailPageChildPackingNumber = async (params) => {
return await request.get({ url: `/wms/putaway-request-detail/pageChildPackingNumber`, params })
} }

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

@ -87,4 +87,24 @@ 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 })
} }

12
src/utils/disposition/defaultButtons.ts

@ -735,6 +735,18 @@ export function mainThawRequesttBtn(option:any) {
hasPermi: '' hasPermi: ''
}) })
} }
// 主列表-绑定
export function mainListBindBtn(option:any) {
return __defaultBtnOption(option,{
label: '绑定',
name: 'bind',
hide: false,
type: 'primary',
color: '',
link: true, // 文本展现按钮
hasPermi: ''
})
}
// 默认按钮规则 // 默认按钮规则
function __defaultBtnOption(option:any,specific:any){ function __defaultBtnOption(option:any,specific:any){
return { return {

248
src/views/mes/workstation/index.vue

@ -0,0 +1,248 @@
<template>
<ContentWrap>
<!-- 搜索工作栏 -->
<Search :schema="Workstation.allSchemas.searchSchema" @search="setSearchParams" @reset="setSearchParams" />
</ContentWrap>
<!-- 列表头部 -->
<TableHead
:HeadButttondata="HeadButttondata"
@button-base-click="buttonBaseClick"
:routeName="routeName"
@updataTableColumns="updataTableColumns"
@searchFormClick="searchFormClick"
:allSchemas="Workstation.allSchemas"
/>
<!-- 列表 -->
<ContentWrap>
<Table
:columns="tableColumns"
:data="tableObject.tableList"
:loading="tableObject.loading"
:pagination="{
total: tableObject.total
}"
v-model:pageSize="tableObject.pageSize"
v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort"
>
<template #code="{row}">
<el-button type="primary" link @click="openDetail(row, '代码', row.code)">
<span>{{ row.code }}</span>
</el-button>
</template>
<template #action="{ row }">
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event,row)" />
</template>
</Table>
</ContentWrap>
<!-- 表单弹窗添加/修改 -->
<BasicForm
ref="basicFormRef"
@success="formsSuccess"
:rules="WorkstationRules"
:formAllSchemas="Workstation.allSchemas"
:apiUpdate="WorkstationApi.updateWorkstation"
:apiCreate="WorkstationApi.createWorkstation"
@searchTableSuccess="searchTableSuccess"
:isBusiness="false"
/>
<!-- 详情 -->
<Detail ref="detailRef" :isBasic="true" :allSchemas="Workstation.allSchemas" />
<!-- 导入 -->
<ImportForm ref="importFormRef" url="/mes/workstation/import" :importTemplateData="importTemplateData" @success="importSuccess" />
</template>
<script setup lang="ts">
import download from '@/utils/download'
import { Workstation,WorkstationRules } from './workstation.data'
import * as WorkstationApi from '@/api/mes/workstation'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import {mainBindBtn} from "@/utils/disposition/defaultButtons";
defineOptions({ name: 'Workstation' })
const message = useMessage() //
const { t } = useI18n() //
const route = useRoute() //
const routeName = ref()
routeName.value = route.name
const tableColumns = ref(Workstation.allSchemas.tableColumns)
//
const searchTableSuccess = (formField, searchField, val, formRef) => {
nextTick(() => {
const setV = {}
setV[formField] = val[0][searchField]
formRef.setValues(setV)
})
}
//
const updataTableColumns = (val) => {
tableColumns.value = val
}
const { tableObject, tableMethods } = useTable({
getListApi: WorkstationApi.getWorkstationPage //
})
//
const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:workstation:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'wms:workstation:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'wms:workstation:export'}), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
// {
// label: '',
// name: 'zdy',
// hide: false,
// type: 'primary',
// icon: 'Select',
// color: ''
// },
]
//
const buttonBaseClick = (val, item) => {
if (val == 'add') { //
openForm('create')
} else if (val == 'import') { //
handleImport()
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList()
} else if (val == 'filtrate') { //
} else { //
console.log('其他按钮', item)
}
}
// -
const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'wms:workstation:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'wms:workstation:delete'}), //
defaultButtons.mainListBindBtn({hasPermi:'wms:workstation:update'}), //
]
// -
const buttonTableClick = async (val, row) => {
if (val == 'edit') { //
openForm('update', row)
} else if (val == 'delete') { //
handleDelete(row.id)
}else if (val == 'bind') { //
detailRef.value.openDetail(row, row.name, "绑定", 'mesWorkstation')
}
}
/** 添加/修改操作 */
const basicFormRef = ref()
const openForm = (type: string, row?: any) => {
basicFormRef.value.open(type, row)
}
// form
const formsSuccess = async (formType,data) => {
var isHave =Workstation.allSchemas.formSchema.some(function (item) {
return item.field === 'activeTime' || item.field === 'expireTime';
});
if(isHave){
if(data.activeTime && data.expireTime && data.activeTime >=data.expireTime){
message.error('失效时间要大于生效时间')
return;
}
}
if(data.activeTime==0)data.activeTime = null;
if(data.expireTime==0)data.expireTime = null;
if (formType === 'create') {
await WorkstationApi.createWorkstation(data)
message.success(t('common.createSuccess'))
} else {
await WorkstationApi.updateWorkstation(data)
message.success(t('common.updateSuccess'))
}
basicFormRef.value.dialogVisible = false
getList()
}
/** 详情操作 */
const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => {
detailRef.value.openDetail(row, titleName, titleValue, 'basicWorkstation')
}
/** 删除按钮操作 */
const handleDelete = async (id: number) => {
try {
//
await message.delConfirm()
//
await WorkstationApi.deleteWorkstation(id)
message.success(t('common.delSuccess'))
//
await getList()
} catch {}
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
const data = await WorkstationApi.exportWorkstation(tableObject.params)
download.excel(data, '工位.xlsx')
} catch {
} finally {
exportLoading.value = false
}
}
/** 导入 */
const importFormRef = ref()
const handleImport = () => {
importFormRef.value.open()
}
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '工位导入模版.xlsx'
})
//
const importSuccess = () => {
getList()
}
//
const searchFormClick = (searchData) => {
tableObject.params = {
isSearch: true,
filters: searchData.filters
}
getList() //
}
/** 初始化 **/
onMounted(async () => {
getList()
importTemplateData.templateUrl = await WorkstationApi.importTemplate()
})
</script>

78
src/views/mes/workstation/workstation.data.ts

@ -0,0 +1,78 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime'
// 表单校验
export const WorkstationRules = reactive({
code: [required],
name: [required]
})
export const Workstation = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '代码',
field: 'code',
sort: 'custom',
isSearch: true
},
{
label: '名称',
field: 'name',
sort: 'custom',
isSearch: true
},
{
label: '车间代码',
field: 'workshopCode',
sort: 'custom',
isSearch: true,
isForm: false
},
{
label: '生产线代码',
field: 'productionLineCode',
sort: 'custom',
isSearch: true,
isForm: false
},
{
label: '班组代码',
field: 'teamCode',
sort: 'custom',
isSearch: true,
isForm: false
},
{
label: '生效时间',
field: 'activeTime',
sort: 'custom',
formatter: dateFormatter,
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
valueFormat: 'x'
}
}
},
{
label: '失效时间',
field: 'expireTime',
sort: 'custom',
formatter: dateFormatter,
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
valueFormat: 'x'
}
}
},
{
label: '操作',
field: 'action',
isForm: false,
table: {
width: 150,
fixed: 'right'
}
}
]))

5
src/views/wms/basicDataManage/factoryModeling/workstation/workstation.data.ts

@ -14,6 +14,8 @@ import { Workshop } from '@/views/wms/basicDataManage/factoryModeling/workshop/w
import * as WorkstationApi from '@/api/wms/workstation' import * as WorkstationApi from '@/api/wms/workstation'
import { validateYS } from '@/utils/validator' import { validateYS } from '@/utils/validator'
import {Team} from "@/views/wms/basicDataManage/orderManage/team/team.data";
import * as TeamApi from "@/api/wms/team";
const { t } = useI18n() // 国际化 const { t } = useI18n() // 国际化
@ -106,6 +108,7 @@ export const Workstation = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{ {
label: '原料库位', label: '原料库位',
field: 'rawLocationCode', field: 'rawLocationCode',
@ -288,4 +291,4 @@ export const WorkstationRules = reactive({
fgLocationCode: [ fgLocationCode: [
{ required: true, message: '请选择成品库位', trigger: 'change' } { required: true, message: '请选择成品库位', trigger: 'change' }
], ],
}) })

217
src/views/wms/basicDataManage/itemManage/itemarea/index.vue

@ -28,58 +28,71 @@
v-model:sort="tableObject.sort" v-model:sort="tableObject.sort"
> >
<template #itemCode="{row}"> <template #itemCode="{row}">
<el-button type="primary" link @click="openDetail(row, '代码', row.itemCode)"> <el-button type="primary" link @click="openDetail(row, '物料号', row.itemCode)">
<span>{{ row.itemCode }}</span> <span>{{ row.itemCode }}</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="ItemareaRules" :rules="ItemareaRules"
:formAllSchemas="Itemarea.allSchemas" :formAllSchemas="Itemarea.allSchemas"
:tableAllSchemas="ItemareaDetail.allSchemas"
:tableFormRules="ItemareaDetailRules"
:tableData="tableData"
:apiUpdate="ItemareaApi.updateItemarea" :apiUpdate="ItemareaApi.updateItemarea"
:apiCreate="ItemareaApi.createItemarea" :apiCreate="ItemareaApi.createItemarea"
:isBusiness="true"
@handleAddTable="handleAddTable"
@handleDeleteTable="handleDeleteTable"
@searchTableSuccess="searchTableSuccess" @searchTableSuccess="searchTableSuccess"
:isBusiness="false" @submitForm="submitForm"
:basicFormWidth="'60%'" :isShowButton = isShowButton
/> />
<!-- 详情 --> <!-- 详情 -->
<Detail <Detail
ref="detailRef" ref="detailRef"
:isBasic="true" :isBasic="false"
:allSchemas="Itemarea.allSchemas" :allSchemas="Itemarea.allSchemas"
:detailAllSchemas="ItemareaDetail.allSchemas" :detailAllSchemas="ItemareaDetail.allSchemas"
:detailAllSchemasRules="ItemareaDetailRules"
:apiCreate="ItemareaDetailApi.createItemareaDetail" :apiCreate="ItemareaDetailApi.createItemareaDetail"
:apiUpdate="ItemareaDetailApi.updateItemareaDetail" :apiUpdate="ItemareaDetailApi.updateItemareaDetail"
:apiPage="ItemareaDetailApi.getItemareaDetailPage" :apiPage="ItemareaDetailApi.getItemareaDetailPage"
:apiDelete="ItemareaDetailApi.deleteItemareaDetail" :apiDelete="ItemareaDetailApi.deleteItemareaDetail"
@searchTableSuccessDetail="searchTableSuccessDetail" @searchTableSuccessDetail="searchTableSuccessDetail"
/> :detailButtonIsShowAdd="true"
:detailButtonIsShowDelete="true"
@detailOpenForm="detailOpenForm"
/>
<!-- 导入 --> <!-- 导入 -->
<ImportForm ref="importFormRef" url="/wms/itemarea/import" :importTemplateData="importTemplateData" @success="importSuccess" /> <ImportForm ref="importFormRef" url="/wms/itemarea/import" :importTemplateData="importTemplateData"
@success="importSuccess" :updateIsDisable="true" :coverIsDisable="true" :mode="2" />
</template> </template>
<script setup lang="ts">   <script setup lang="ts">
import download from '@/utils/download' import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { Itemarea,ItemareaRules,ItemareaDetail } from './itemarea.data'   import download from '@/utils/download'
import * as ItemareaApi from '@/api/wms/itemarea'   import { Itemarea,ItemareaRules,ItemareaDetail,ItemareaDetailRules } from './itemarea.data'
import * as ItemareaDetailApi from '@/api/wms/itemareaDetail'   import * as ItemareaApi from '@/api/wms/itemarea'
import * as defaultButtons from '@/utils/disposition/defaultButtons'   import * as ItemareaDetailApi from '@/api/wms/itemareaDetail'
import TableHead from '@/components/TableHead/src/TableHead.vue'   import * as defaultButtons from '@/utils/disposition/defaultButtons'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'   import TableHead from '@/components/TableHead/src/TableHead.vue'
import Detail from '@/components/Detail/src/Detail.vue'   import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
  import Detail from '@/components/Detail/src/Detail.vue'
 
//
defineOptions({ name: 'Itemarea' }) defineOptions({ name: 'Itemarea' })
const message = useMessage() // const message = useMessage() //
@ -90,29 +103,40 @@ const routeName = ref()
routeName.value = route.name routeName.value = route.name
const tableColumns = ref(Itemarea.allSchemas.tableColumns) const tableColumns = ref(Itemarea.allSchemas.tableColumns)
const isShowButton = ref(true)
//
const updataTableColumns = (val) => {
tableColumns.value = val
}
// //
const searchTableSuccess = (formField, searchField, val, formRef) => { const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => {
nextTick(() => { nextTick(() => {
if (type == 'tableForm') {
if(formField == 'locationGroupCode') {
row['locationGroupCode'] = val[0]['code']
}else if(formField == 'locationCode') {
row['locationCode'] = val[0]['code']
}else{
row[formField] = val[0][searchField]
}
}
const setV = {} const setV = {}
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
formRef.setValues(setV) formRef.setValues(setV)
}) })
} }
// //
const searchTableSuccessDetail = (formField, searchField, val, formRef ) => { const searchTableSuccessDetail = (formField, searchField, val, formRef ) => {
nextTick(() => { nextTick(() => {
const setV = {} const setV = {}
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
formRef.setValues(setV) formRef.setValues(setV)
}) })
} }
//
const updataTableColumns = (val) => {
tableColumns.value = val
}
const { tableObject, tableMethods } = useTable({ const { tableObject, tableMethods } = useTable({
getListApi: ItemareaApi.getItemareaPage // getListApi: ItemareaApi.getItemareaPage //
}) })
@ -147,22 +171,42 @@ const buttonBaseClick = (val, item) => {
} else if (val == 'export') { // } 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 isShowMainButton = (row,val) => {
if (val.indexOf(row.status) > -1) {
return false
} else {
return true
}
}
// - // -
const butttondata = [ const butttondata = (row) => {
defaultButtons.mainListEditBtn({hasPermi:'wms:itemarea:update'}), // row.status = "1"
defaultButtons.mainListDeleteBtn({hasPermi:'wms:itemarea:delete'}), // return [
] defaultButtons.mainListEditBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:itemarea:update'}), //
// defaultButtons.mainListDeleteBtn({hasPermi:'wms:itemarea:delete'}), //
]
}
// - // -
const buttonTableClick = async (val, row) => { const buttonTableClick = async (val, row) => {
if (val == 'edit') { // if (val == 'edit') { //
openForm('update', row) openForm('update', row)
} else if (val == 'delete') { // } else if (val == 'delete') { //
handleDelete(row.id) handleDelete(row.id)
@ -170,39 +214,42 @@ const buttonTableClick = async (val, row) => {
} }
/** 添加/修改操作 */ /** 添加/修改操作 */
const basicFormRef = ref() const formRef = ref()
const openForm = (type: string, row?: any) => { const openForm =async (type: string, row?: number) => {
basicFormRef.value.open(type, row) if(type == "update"){
Itemarea.allSchemas.formSchema.forEach((item) => {
if (item.field == 'areaCode') {
item.componentProps.isSearchList = false,
item.componentProps.disabled = true
}})
}else {
Itemarea.allSchemas.formSchema.forEach((item) => {
if (item.field == 'areaCode') {
item.componentProps.isSearchList = true
}
})
}
tableData.value = [] //
formRef.value.open(type, row)
} }
// form /**
const formsSuccess = async (formType,data) => { * 详情 编辑页面打开
var isHave =Itemarea.allSchemas.formSchema.some(function (item) { * @param row
return item.field === 'activeTime' || item.field === 'expireTime'; */
}); const detailOpenForm = (type) => {
if(isHave){
if(data.activeTime && data.expireTime && data.activeTime >=data.expireTime){
message.error('失效时间要大于生效时间')
return;
}
}
if(data.activeTime==0)data.activeTime = null;
if(data.expireTime==0)data.expireTime = null;
if (formType === 'create') {
await ItemareaApi.createItemarea(data)
message.success(t('common.createSuccess'))
} else {
await ItemareaApi.updateItemarea(data)
message.success(t('common.updateSuccess'))
}
basicFormRef.value.dialogVisible = false
getList()
} }
//
const { wsCache } = useCache()
/** 详情操作 */ /** 详情操作 */
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, 'basicItemarea') const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name
if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode))
row.status = "1";
detailRef.value.openDetail(row, titleName, titleValue,'itemarea')
} }
/** 删除按钮操作 */ /** 删除按钮操作 */
@ -210,8 +257,10 @@ const handleDelete = async (id: number) => {
try { try {
// //
await message.delConfirm() await message.delConfirm()
tableObject.loading = true
// //
await ItemareaApi.deleteItemarea(id) await ItemareaDetailApi.deleteItemareaDetail(id)
tableObject.loading = false
message.success(t('common.delSuccess')) message.success(t('common.delSuccess'))
// //
await getList() await getList()
@ -227,23 +276,62 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await ItemareaApi.exportItemarea(tableObject.params) const data = await ItemareaApi.exportItemarea(tableObject.params)
download.excel(data, '物料库区配置.xlsx') download.excel(data, '发货申请主.xlsx')
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false
} }
} }
/**
* tableForm方法
*/
const tableFormKeys = {}
ItemareaDetail.allSchemas.tableFormColumns.forEach(item => {
tableFormKeys[item.field] = item.default ? item.default : ''
})
const tableData = ref([])
//
const handleAddTable = () => {
tableData.value.push(JSON.parse(JSON.stringify(tableFormKeys)))
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
}
//
const submitForm = async (formType, data) => {
data.subList = tableData.value //
try {
if (formType === 'create') {
await ItemareaApi.createItemarea(data)
message.success(t('common.createSuccess'))
} else {
await ItemareaApi.updateItemarea(data)
message.success(t('common.updateSuccess'))
}
formRef.value.dialogVisible = false
//
getList()
} finally {
formRef.value.formLoading = false
}
}
/** 导入 */ /** 导入 */
const importFormRef = ref() const importFormRef = ref()
const handleImport = () => { const handleImport = () => {
importFormRef.value.open() importFormRef.value.open()
} }
// //
const importTemplateData = reactive({ const importTemplateData = reactive({
templateUrl: '', templateUrl: '',
templateTitle: '物料库区配置导入模版.xlsx' templateTitle: '物料库区配置导入模版.xlsx'
}) })
// //
const importSuccess = () => { const importSuccess = () => {
getList() getList()
@ -263,5 +351,4 @@ onMounted(async () => {
getList() getList()
importTemplateData.templateUrl = await ItemareaApi.importTemplate() importTemplateData.templateUrl = await ItemareaApi.importTemplate()
}) })
</script> </script>

133
src/views/wms/basicDataManage/itemManage/itemarea/itemarea.data.ts

@ -1,9 +1,18 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter } from '@/utils/formatTime'
import * as ItembasicApi from '@/api/wms/itembasic' import * as ItembasicApi from '@/api/wms/itembasic'
import { Itembasic } from '../itembasic/itembasic.data' import { Itembasic } from '../itembasic/itembasic.data'
import * as AreaApi from '@/api/wms/areabasic' import * as AreaApi from '@/api/wms/areabasic'
import { Area } from '../../factoryModeling/areabasic/areabasic.data' import { Area } from '../../factoryModeling/areabasic/areabasic.data'
import * as LocationgroupApi from '@/api/wms/locationgroup'
import { Locationgroup } from '../../factoryModeling/locationgroup/locationgroup.data'
import * as LocationApi from '@/api/wms/location'
import { Location } from '../../factoryModeling/location/location.data'
import * as PackageunitApi from '@/api/wms/packageunit' import * as PackageunitApi from '@/api/wms/packageunit'
import { Packageunit } from '../packageunit/packageunit.data' import { Packageunit } from '../packageunit/packageunit.data'
@ -29,8 +38,6 @@ export const Itemarea = useCrudSchemas(reactive<CrudSchema[]>([
searchCondition: [{ searchCondition: [{
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
action: '==',
isSearch: true,
isMainValue: false isMainValue: false
}] }]
} }
@ -56,8 +63,6 @@ export const Itemarea = useCrudSchemas(reactive<CrudSchema[]>([
searchCondition: [{ searchCondition: [{
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
action: '==',
isSearch: true,
isMainValue: false isMainValue: false
}] }]
} }
@ -83,8 +88,6 @@ export const Itemarea = useCrudSchemas(reactive<CrudSchema[]>([
searchCondition: [{ searchCondition: [{
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
action: '==',
isSearch: true,
isMainValue: false isMainValue: false
}] }]
} }
@ -110,8 +113,6 @@ export const Itemarea = useCrudSchemas(reactive<CrudSchema[]>([
searchCondition: [{ searchCondition: [{
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
action: '==',
isSearch: true,
isMainValue: false isMainValue: false
}] }]
} }
@ -202,8 +203,6 @@ export const Itemarea = useCrudSchemas(reactive<CrudSchema[]>([
searchCondition: [{ searchCondition: [{
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
action: '==',
isSearch: true,
isMainValue: false isMainValue: false
}] }]
} }
@ -322,13 +321,31 @@ export const Itemarea = useCrudSchemas(reactive<CrudSchema[]>([
label: '出库后剩余库存自动转换为出库包装规格', label: '出库后剩余库存自动转换为出库包装规格',
field: 'surplusToOutpackunit', field: 'surplusToOutpackunit',
sort: 'custom', sort: 'custom',
isSearch: false, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
form: {
component: 'Switch',
value: 'FALSE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
},
}, },
{ {
label: '超过高储是否允许叫料', label: '超过高储是否允许叫料',
field: 'allowIssueRequest', field: 'allowIssueRequest',
sort: 'custom', sort: 'custom',
isSearch: false, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
form: {
component: 'Switch',
value: 'FALSE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
},
}, },
{ {
label: '优先空库位', label: '优先空库位',
@ -618,61 +635,62 @@ export const ItemareaRules = reactive({
*/ */
export const ItemareaDetail = useCrudSchemas(reactive<CrudSchema[]>([ export const ItemareaDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: 'id', label: '库位组',
field: 'id', field: 'locationGroupCode',
sort: 'custom', sort: 'custom',
isForm: false, isForm: false,
isTableForm: false,
}, },
{ {
label: '主表ID', label: '库位代码',
field: 'masterId', field: 'locationCode',
sort: 'custom', sort: 'custom',
form: { tableForm:{
component: 'InputNumber', isInpuFocusShow: true, // 开启查询弹窗
value: 0 searchListPlaceholder: '请选择库位代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '库位基础信息', // 查询弹窗标题
searchAllSchemas: Location.allSchemas, // 查询弹窗所需类
searchPage: LocationApi.getLocationPage, // 查询弹窗所需分页方法
searchCondition: [{
key: 'available',
value: 'TRUE',
isMainValue: false
},{
key: 'areaCode',
value: 'areaCode',
message: '请选择区域代码!',
isMainValue: true
}]
}, },
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择库位代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '库位基础信息', // 查询弹窗标题
searchAllSchemas: Location.allSchemas, // 查询弹窗所需类
searchPage: LocationApi.getLocationPage, // 查询弹窗所需分页方法
searchCondition: [{
key: 'available',
value: 'TRUE',
isMainValue: false
},{
key: 'areaCode',
value: 'areaCode',
message: '请选择区域代码!',
isMainValue: true
}]
}
}
}, },
{ {
label: '备注', label: '备注',
field: 'remark', field: 'remark',
sort: 'custom', sort: 'custom',
}, },
{
label: '创建时间',
field: 'createTime',
sort: 'custom',
formatter: dateFormatter,
isForm: false,
},
{
label: '创建者Id',
field: 'creator',
sort: 'custom',
isForm: false,
},
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom',
formatter: dateFormatter,
isForm: false,
},
{
label: '最后更新者Id',
field: 'updater',
sort: 'custom',
isForm: false,
},
{
label: '库位组',
field: 'locationGroup',
sort: 'custom',
},
{
label: '库位代码',
field: 'locationCode',
sort: 'custom',
},
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',
@ -683,3 +701,8 @@ export const ItemareaDetail = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
])) ]))
// 表单校验
export const ItemareaDetailRules = reactive({
})

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

@ -294,15 +294,11 @@ export const Packageunit = useCrudSchemas(reactive<CrudSchema[]>([
searchField: 'code', searchField: 'code',
searchTitle: '包装规格信息', searchTitle: '包装规格信息',
searchAllSchemas: PackageunitCopy.allSchemas, searchAllSchemas: PackageunitCopy.allSchemas,
searchPage: PackageunitApi.getCustomeritemPage, searchPage: PackageunitApi.getPackageunitPage,
searchCondition: [{ searchCondition: [{
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
isMainValue: false isMainValue: false
},{
key: 'customerCode',
value: 'customerCode',
isMainValue: true
}] }]
} }
} }

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[]>([
} }
} }
])) ]))

119
src/views/wms/deliversettlementManage/stockup/stockupMainRecord/index.vue

@ -27,43 +27,47 @@
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="StockupMainRecordRules" :rules="StockupMainRecordRules"
:formAllSchemas="StockupMainRecord.allSchemas" :formAllSchemas="StockupMainRecord.allSchemas"
:apiUpdate="StockupMainRecordApi.updateStockupMainRecord" :tableAllSchemas="StockupDetailRecord.allSchemas"
:apiCreate="StockupMainRecordApi.createStockupMainRecord" :tableFormRules="StockupDetailRecordRules"
@searchTableSuccess="searchTableSuccess" :isBusiness="true"
:isBusiness="false"
/> />
<!-- 详情 --> <!-- 详情 -->
<Detail ref="detailRef" :isBasic="true" :allSchemas="StockupMainRecord.allSchemas" /> <Detail
ref="detailRef"
:isBasic="false"
:allSchemas="StockupMainRecord.allSchemas"
:detailAllSchemas="StockupDetailRecord.allSchemas"
:detailAllSchemasRules="StockupDetailRecordRules"
:apiPage="StockupDetailRecordApi.getStockupDetailRecordPage"
/>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import { StockupMainRecord,StockupMainRecordRules } from './stockupMainRecord.data' import { StockupMainRecord,StockupMainRecordRules,StockupDetailRecord,StockupDetailRecordRules } from './stockupMainRecord.data'
import * as StockupMainRecordApi from '@/api/wms/stockupMainRecord' import * as StockupMainRecordApi from '@/api/wms/stockupMainRecord'
import * as StockupDetailRecordApi from '@/api/wms/stockupDetailRecord'
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: 'StockupMainRecord' }) defineOptions({ name: 'StockupMainRecord' })
const message = useMessage() // const message = useMessage() //
@ -74,15 +78,6 @@ const routeName = ref()
routeName.value = route.name routeName.value = route.name
const tableColumns = ref(StockupMainRecord.allSchemas.tableColumns) const tableColumns = ref(StockupMainRecord.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
@ -97,8 +92,7 @@ const { getList, setSearchParams } = tableMethods
// //
const HeadButttondata = [ const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:stockupMainRecord:create'}), // defaultButtons.defaultExportBtn({hasPermi:'wms:deliver-record-main:export'}), //
defaultButtons.defaultExportBtn({hasPermi:'wms:stockupMainRecord:export'}), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), // defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), // defaultButtons.defaultSetBtn(null), //
@ -114,12 +108,16 @@ 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)
@ -127,67 +125,18 @@ const buttonBaseClick = (val, item) => {
} }
// - // -
const butttondata = [ const butttondata = (row) => {
defaultButtons.mainListEditBtn({hasPermi:'wms:stockupMainRecord:update'}), // return []
defaultButtons.mainListDeleteBtn({hasPermi:'wms:stockupMainRecord:delete'}), // }
]
// - // -
const buttonTableClick = async (val, row) => { const buttonTableClick = async (val, row) => {
if (val == 'edit') { //
openForm('update', row)
} else if (val == 'delete') { //
handleDelete(row.id)
}
}
/** 添加/修改操作 */
const basicFormRef = ref()
const openForm = (type: string, row?: any) => {
basicFormRef.value.open(type, row)
}
// form
const formsSuccess = async (formType,data) => {
var isHave =StockupMainRecord.allSchemas.formSchema.some(function (item) {
return item.field === 'activeTime' || item.field === 'expireTime';
});
if(isHave){
if(data.activeTime && data.expireTime && data.activeTime >=data.expireTime){
message.error('失效时间要大于生效时间')
return;
}
}
if(data.activeTime==0)data.activeTime = null;
if(data.expireTime==0)data.expireTime = null;
if (formType === 'create') {
await StockupMainRecordApi.createStockupMainRecord(data)
message.success(t('common.createSuccess'))
} else {
await StockupMainRecordApi.updateStockupMainRecord(data)
message.success(t('common.updateSuccess'))
}
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, 'basicStockupMainRecord') detailRef.value.openDetail(row, titleName, titleValue,'recordDeliverMain')
}
/** 删除按钮操作 */
const handleDelete = async (id: number) => {
try {
//
await message.delConfirm()
//
await StockupMainRecordApi.deleteStockupMainRecord(id)
message.success(t('common.delSuccess'))
//
await getList()
} catch {}
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
@ -206,7 +155,6 @@ const handleExport = async () => {
} }
} }
// //
const searchFormClick = (searchData) => { const searchFormClick = (searchData) => {
tableObject.params = { tableObject.params = {
@ -220,5 +168,4 @@ const searchFormClick = (searchData) => {
onMounted(async () => { onMounted(async () => {
getList() getList()
}) })
</script> </script>

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

@ -5,73 +5,81 @@ import { dateFormatter } from '@/utils/formatTime'
export const StockupMainRecordRules = reactive({ export const StockupMainRecordRules = reactive({
}) })
//主表
export const StockupMainRecord = useCrudSchemas(reactive<CrudSchema[]>([ export const StockupMainRecord = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: 'id', label: '单据号',
field: 'id', field: 'number',
sort: 'custom', sort: 'custom',
isForm: false, isSearch: true,
table: {
width: 180
},
}, },
{ {
label: '申请单号', label: '申请单号',
field: 'requestNumber', field: 'requestNumber',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
table: {
width: 180
},
}, },
{ {
label: '任务单号', label: '任务单号',
field: 'jobNumber', field: 'jobNumber',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
table: {
width: 180
},
}, },
{ {
label: '发货计划单号', label: '发货计划单号',
field: 'deliverPlanNumber', field: 'deliverPlanNumber',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
table: {
width: 180
},
}, },
{ {
label: '从仓库代码', label: '从仓库代码',
field: 'fromWarehouseCode', field: 'fromWarehouseCode',
sort: 'custom', sort: 'custom',
isSearch: true, table: {
width: 150
},
}, },
{ {
label: '到仓库代码', label: '到仓库代码',
field: 'toWarehouseCode', field: 'toWarehouseCode',
sort: 'custom', sort: 'custom',
isSearch: true, table: {
}, width: 150
{ },
label: '明细',
field: 'details',
sort: 'custom',
isSearch: true,
}, },
{ {
label: '出库事务类型', label: '出库事务类型',
field: 'outTransactionType', field: 'outTransactionType',
sort: 'custom', sort: 'custom',
isSearch: true, table: {
form: { width: 150
component: 'SelectV2' },
},
}, },
{ {
label: '入库事务类型', label: '入库事务类型',
field: 'inTransactionType', field: 'inTransactionType',
sort: 'custom', sort: 'custom',
isSearch: true, table: {
form: { width: 150
component: 'SelectV2' },
},
}, },
{ {
label: '执行时间', label: '执行时间',
field: 'executeTime', field: 'executeTime',
sort: 'custom', sort: 'custom',
formatter: dateFormatter, formatter: dateFormatter,
isSearch: true,
search: { search: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -80,6 +88,9 @@ export const StockupMainRecord = useCrudSchemas(reactive<CrudSchema[]>([
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
} }
}, },
table: {
width: 180
},
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -93,46 +104,33 @@ export const StockupMainRecord = useCrudSchemas(reactive<CrudSchema[]>([
field: 'activeDate', field: 'activeDate',
sort: 'custom', sort: 'custom',
formatter: dateFormatter, formatter: dateFormatter,
isSearch: true, detail: {
search: { dateFormat: 'YYYY-MM-DD HH:mm:ss'
component: 'DatePicker', },
componentProps: { table: {
valueFormat: 'YYYY-MM-DD HH:mm:ss', width: 180
type: 'daterange',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
}
}, },
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x' valueFormat: 'x'
} }
}, },
}, },
{
label: '是否可用',
field: 'available',
sort: 'custom',
isSearch: true,
},
{ {
label: '申请时间', label: '申请时间',
field: 'requestTime', field: 'requestTime',
sort: 'custom', sort: 'custom',
formatter: dateFormatter, formatter: dateFormatter,
isSearch: true, table: {
search: { width: 180
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')]
}
}, },
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
dateFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'datetime', type: 'datetime',
valueFormat: 'x' valueFormat: 'x'
} }
@ -143,7 +141,6 @@ export const StockupMainRecord = useCrudSchemas(reactive<CrudSchema[]>([
field: 'dueTime', field: 'dueTime',
sort: 'custom', sort: 'custom',
formatter: dateFormatter, formatter: dateFormatter,
isSearch: true,
search: { search: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -152,6 +149,9 @@ export const StockupMainRecord = useCrudSchemas(reactive<CrudSchema[]>([
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
} }
}, },
table: {
width: 180
},
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -161,46 +161,280 @@ export const StockupMainRecord = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '部门', label: '是否可用',
field: 'departmentCode', field: 'available',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isTable: true,
sort: 'custom', sort: 'custom',
isSearch: true, table: {
width: 150
},
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
}
}, },
{ {
label: '用户组', label: '部门',
field: 'userGroupCode', field: 'departmentCode',
sort: 'custom', sort: 'custom',
isSearch: true, table: {
width: 150
},
}, },
{ {
label: '接口类型', label: '接口类型',
field: 'interfaceType', field: 'interfaceType',
dictType: DICT_TYPE.INTERFACE_TYPE,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
},
{
label: '业务类型',
field: 'businessType',
sort: 'custom',
table: {
width: 150
},
},
{
label: '备注',
field: 'remark',
sort: 'custom',
table: {
width: 100
},
},
{
label: '创建时间',
field: 'createTime',
sort: 'custom',
formatter: dateFormatter,
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')]
}
},
table: {
width: 180
},
isForm: false,
},
{
label: '从库区类型范围',
field: 'fromAreaTypes',
dictType: DICT_TYPE.LOCATION_TYPE,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 180
},
},
{
label: '从库区代码范围',
field: 'fromAreaCodes',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
form: {
component: 'SelectV2'
},
}, },
{
label: '到库区类型范围',
field: 'toAreaTypes',
dictType: DICT_TYPE.LOCATION_TYPE,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 180
},
},
{
label: '到库区代码范围',
field: 'toAreaCodes',
sort: 'custom',
},
{
label: '操作',
field: 'action',
isForm: false,
table: {
width: 150,
fixed: 'right'
}
}
]))
//子表
// 表单校验
export const StockupDetailRecordRules = reactive({
})
export const StockupDetailRecord = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '单据号', label: '单据号',
field: 'number', field: 'number',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
table: {
width: 180
},
}, },
{ {
label: '业务类型', label: '包装号',
field: 'businessType', field: 'packingNumber',
sort: 'custom',
isSearch: true,
table: {
width: 150
},
},
{
label: '批次',
field: 'batch',
sort: 'custom',
isSearch: true,
table: {
width: 150
},
},
{
label: '库存状态',
field: 'inventoryStatus',
dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
},
{
label: '从货主代码',
field: 'fromOwnerCode',
sort: 'custom',
isSearch: true,
table: {
width: 150
},
},
{
label: '从器具号',
field: 'fromContainerNumber',
sort: 'custom',
isSearch: true,
table: {
width: 150
},
},
{
label: '从库位代码',
field: 'fromLocationCode',
sort: 'custom',
isSearch: true,
table: {
width: 150
},
},
{
label: '从库位组代码',
field: 'fromLocationGroupCode',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
form: { table: {
component: 'SelectV2' width: 150
}, },
},
{
label: '从库区代码',
field: 'fromAreaCode',
sort: 'custom',
isSearch: true,
table: {
width: 150
},
},
{
label: '到货主代码',
field: 'toOwnerCode',
sort: 'custom',
isSearch: true,
table: {
width: 150
},
},
{
label: '到器具号',
field: 'toContainerNumber',
sort: 'custom',
isSearch: true,
table: {
width: 150
},
},
{
label: '到库位代码',
field: 'toLocationCode',
sort: 'custom',
isSearch: true,
table: {
width: 150
},
},
{
label: '到库位组代码',
field: 'toLocationGroupCode',
sort: 'custom',
isSearch: true,
table: {
width: 150
},
},
{
label: '到库区代码',
field: 'toAreaCode',
sort: 'custom',
isSearch: true,
table: {
width: 150
},
},
{
label: '单价',
field: 'singlePrice',
sort: 'custom',
isSearch: true,
table: {
width: 150
},
},
{
label: '金额',
field: 'amount',
sort: 'custom',
isSearch: true,
table: {
width: 150
},
}, },
{ {
label: '备注', label: '备注',
field: 'remark', field: 'remark',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
table: {
width: 150
},
}, },
{ {
label: '创建时间', label: '创建时间',
@ -208,6 +442,9 @@ export const StockupMainRecord = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
formatter: dateFormatter, formatter: dateFormatter,
isSearch: true, isSearch: true,
table: {
width: 180
},
search: { search: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -219,46 +456,100 @@ export const StockupMainRecord = useCrudSchemas(reactive<CrudSchema[]>([
isForm: false, isForm: false,
}, },
{ {
label: '扩展属性', label: '物品代码',
field: 'extraProperties', field: 'itemCode',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
table: {
width: 150
},
}, },
{ {
label: '地点ID', label: '物品名称',
field: 'siteId', field: 'itemName',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
table: {
width: 150
},
}, },
{ {
label: '代码', label: '物品描述1',
field: 'code', field: 'itemDesc1',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
table: {
width: 150
},
}, },
{ {
label: '从库区类型范围', label: '物品描述2',
field: 'fromAreaTypes', field: 'itemDesc2',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
table: {
width: 150
},
}, },
{ {
label: '从库区代码范围', label: '项目代码',
field: 'fromAreaCodes', field: 'projectCode',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
table: {
width: 150
},
}, },
{ {
label: '到库区类型范围', label: '数量',
field: 'toAreaTypes', field: 'qty',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
table: {
width: 150
},
}, },
{ {
label: '到库区代码范围', label: '计量单位',
field: 'toAreaCodes', field: 'uom',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
},
{
label: '接口类型',
field: 'interfaceType',
dictType: DICT_TYPE.INTERFACE_TYPE,
dictClass: 'string',
isTable: true,
sort: 'custom', sort: 'custom',
table: {
width: 150
},
},
{
label: '是否可用',
field: 'available',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isSearch: true, isSearch: true,
isTable: true,
sort: 'custom',
table: {
width: 150
},
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
}
}, },
{ {
label: '操作', label: '操作',

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

@ -324,19 +324,19 @@ const openForm = (type: string, row?: number) => {
} }
// //
// const { wsCache } = useCache() const { wsCache } = useCache()
// /** */ /** 详情操作 */
// const detailRef = ref() const detailRef = ref()
// const openDetail = (row: any, titleName: any, titleValue: any) => { const openDetail = (row: any, titleName: any, titleValue: any) => {
// if(row.deliverPlanNumber != null){ if(row.deliverPlanNumber != null){
// trueFalse.value = false trueFalse.value = false
// }else { }else {
// trueFalse.value = true trueFalse.value = true
// } }
// const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name
// if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode))
// detailRef.value.openDetail(row, titleName, titleValue,'requestDeliverMain') detailRef.value.openDetail(row, titleName, titleValue,'stockupMainRequest')
// } }
/** 删除按钮操作 */ /** 删除按钮操作 */
const handleDelete = async (id: number) => { const handleDelete = async (id: number) => {

168
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'
} }
} }
@ -464,6 +464,17 @@ export const StockupDetailRequestRules = reactive({
// //子表 // //子表
export const StockupDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([ export const StockupDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '单据号',
field: 'number',
sort: 'custom',
isSearch: true,
isForm: false,
isTableForm: false,
table: {
width: 100
},
},
{ {
label: '包装号', label: '包装号',
field: 'packingNumber', field: 'packingNumber',
@ -511,6 +522,9 @@ export const StockupDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([
label: '器具号', label: '器具号',
field: 'containerNumber', field: 'containerNumber',
sort: 'custom', sort: 'custom',
table: {
width: 100
},
isSearch: true, isSearch: true,
}, },
{ {
@ -535,7 +549,7 @@ export const StockupDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([
isTable: true, isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 120
}, },
tableForm: { tableForm: {
disabled: true, disabled: true,
@ -547,82 +561,14 @@ export const StockupDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{
label: '到货主代码',
field: 'toOwnerCode',
sort: 'custom',
isSearch: true,
isTableForm: false,
},
{
label: '到库位代码',
field: 'toLocationCode',
sort: 'custom',
isSearch: true,
tableForm:{
isInpuFocusShow: true, // 开启查询弹窗
searchListPlaceholder: '请选择库位代码',
searchField: 'location',
searchTitle: '库位基础信息',
searchAllSchemas: Location.allSchemas,
searchPage: locationApi.getLocationPage,
searchCondition: [{
key: 'available',
value: 'TRUE',
isMainValue: false
}]
},
form: {
componentProps: {
isSearchList: true,
searchListPlaceholder: '请选择库位代码',
searchField: 'location',
searchTitle: '库位基础信息',
searchAllSchemas: Location.allSchemas,
searchPage: locationApi.getLocationPage,
searchCondition: [{
key: 'available',
value: 'TRUE',
isMainValue: false
}]
}
}
},
{
label: '主表ID',
field: 'masterId',
sort: 'custom',
isSearch: true,
isTableForm: false,
},
{
label: '单据号',
field: 'number',
sort: 'custom',
isSearch: true,
isTableForm: false,
},
{
label: '创建时间',
field: 'createTime',
sort: 'custom',
formatter: dateFormatter,
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')]
}
},
isTableForm: false,
},
{ {
label: '物品代码', label: '物品代码',
field: 'itemCode', field: 'itemCode',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
table: {
width: 120
},
tableForm: { tableForm: {
disabled: true disabled: true
}, },
@ -638,6 +584,9 @@ export const StockupDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
isTableForm: false, isTableForm: false,
table: {
width: 120
},
}, },
{ {
label: '物品描述1', label: '物品描述1',
@ -645,6 +594,9 @@ export const StockupDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
isTableForm: false, isTableForm: false,
table: {
width: 120
},
}, },
{ {
label: '物品描述2', label: '物品描述2',
@ -652,6 +604,9 @@ export const StockupDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
isTableForm: false, isTableForm: false,
table: {
width: 120
},
}, },
{ {
label: '项目代码', label: '项目代码',
@ -659,6 +614,9 @@ export const StockupDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
isTableForm: false, isTableForm: false,
table: {
width: 120
},
}, },
{ {
label: '数量', label: '数量',
@ -685,6 +643,43 @@ export const StockupDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{
label: '到库位代码',
field: 'toLocationCode',
sort: 'custom',
isSearch: true,
table: {
width: 120
},
tableForm:{
isInpuFocusShow: true, // 开启查询弹窗
searchListPlaceholder: '请选择库位代码',
searchField: 'location',
searchTitle: '库位基础信息',
searchAllSchemas: Location.allSchemas,
searchPage: locationApi.getLocationPage,
searchCondition: [{
key: 'available',
value: 'TRUE',
isMainValue: false
}]
},
form: {
componentProps: {
isSearchList: true,
searchListPlaceholder: '请选择库位代码',
searchField: 'location',
searchTitle: '库位基础信息',
searchAllSchemas: Location.allSchemas,
searchPage: locationApi.getLocationPage,
searchCondition: [{
key: 'available',
value: 'TRUE',
isMainValue: false
}]
}
}
},
{ {
label: '备注', label: '备注',
field: 'remark', field: 'remark',
@ -692,11 +687,34 @@ export const StockupDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: true, isSearch: true,
}, },
{ {
label: '从货主代码', label: '创建时间',
field: 'fromOwnerCode', field: 'createTime',
sort: 'custom', sort: 'custom',
formatter: dateFormatter,
isSearch: true, isSearch: true,
table: {
width: 120
},
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')]
}
},
isTableForm: false, isTableForm: false,
},
{
label: '操作',
field: 'action',
isDetail: false,
isForm: false ,
table: {
width: 150,
fixed: 'right'
},
isTableForm:false,
} }
])) ]))

17
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/index.vue

@ -62,6 +62,8 @@
:detailAllSchemasRules="PurchasereceiptJobDetailRules" :detailAllSchemasRules="PurchasereceiptJobDetailRules"
:searchTableParams="searchTableParams" :searchTableParams="searchTableParams"
:apiPage="PurchasereceiptJobDetailApi.getPurchasereceiptJobDetailPage" :apiPage="PurchasereceiptJobDetailApi.getPurchasereceiptJobDetailPage"
:detailButtonIsShowEdit="false"
:detailButtonIsShowDelete="false"
:buttondataTable="buttondataTable" :buttondataTable="buttondataTable"
@tableFormButton="tableFormButton" @tableFormButton="tableFormButton"
/> />
@ -195,10 +197,19 @@ 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']),hasPermi:'wms:purchasereceipt-job-main:close'}), // // defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:purchasereceipt-job-main:close'}), //
// defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), // // defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), //
// defaultButtons.mainListJobExeBtn({hide:isShowMainButton(row,['2'])}), // // defaultButtons.mainListJobExeBtn({hide:isShowMainButton(row,['2'])}), //
] {
label: '拒收',
name: 'mainJobClo',
hide: isShowMainButton(row, ['1']),
type: 'primary',
icon: '',
color: '',
hasPermi: 'wms:purchasereceipt-job-main:close',
link: true //
}]
} }
// - // -
@ -207,7 +218,7 @@ const buttonTableClick = async (val, row) => {
console.log('列表-操作按钮事件-执行') console.log('列表-操作按钮事件-执行')
} else if (val == 'mainJobAba') { // } else if (val == 'mainJobAba') { //
console.log('列表-操作按钮事件-放弃') console.log('列表-操作按钮事件-放弃')
} else if (val == 'mainJobClo') { // } else if (val == 'mainJobClo') { //
handleClose(row.id) handleClose(row.id)
} else if (val == 'mainJobAcc') { // } else if (val == 'mainJobAcc') { //
console.log('列表-操作按钮事件-承接') console.log('列表-操作按钮事件-承接')

54
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/index.vue

@ -63,7 +63,7 @@
@tableFormButton="tableFormButton" @tableFormButton="tableFormButton"
/> />
<!-- 子包装弹窗 --> <!-- 记录子包装弹窗 -->
<BasicForm <BasicForm
ref="detailParenPackingRef" ref="detailParenPackingRef"
@success="getList" @success="getList"
@ -76,6 +76,19 @@
:isShowFooterButtton="false" :isShowFooterButtton="false"
/> />
<!-- 缺货子包装弹窗 -->
<BasicForm
ref="outStockDetailParenPackingRef"
@success="getList"
:tableAllSchemas="PurchasereceiptRecordDetailPackingNumber.allSchemas"
:tableFormRules="PurchasereceiptRecordDetailRules"
:tableData="outStockPackingDetatableData.tableList"
:isBusiness="true"
:isShowButton="false"
:isShowReduceButton="false"
:isShowFooterButtton="false"
/>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@ -185,6 +198,7 @@ const handleCreateInspectRequest = async (number:string) => {
} }
} }
// //
const detailParenPackingRef = ref() const detailParenPackingRef = ref()
const { tableObject: packingDetatableData, tableMethods: packDetatableMethods } = useTable({ const { tableObject: packingDetatableData, tableMethods: packDetatableMethods } = useTable({
@ -192,6 +206,14 @@ const { tableObject: packingDetatableData, tableMethods: packDetatableMethods }
}) })
const { getList:queryDetailList } = packDetatableMethods const { getList:queryDetailList } = packDetatableMethods
//
const outStockDetailParenPackingRef = ref()
const { tableObject: outStockPackingDetatableData, tableMethods: outStockPackDetatableMethods } = useTable({
getListApi: PurchasereceiptRecordDetailApi.queryPurchaseshortageChildPackingNumber
})
const { getList:queryOutStockDetailList } = outStockPackDetatableMethods
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { const openDetail = (row: any, titleName: any, titleValue: any) => {
@ -210,15 +232,25 @@ const buttondataTable = ref([{
link: true, // link: true, //
}]) }])
const tabeKey = ref("receiptDetail");
// //
const tableFormButton = async (val , row) => { const tableFormButton = async (val , row) => {
if (val == 'viewParentPickingNumber') { // if (val == 'viewParentPickingNumber' && tabeKey.value == 'receiptDetail') { //
packingDetatableData.params = { packingDetatableData.params = {
masterId:row.masterId, masterId:row.masterId,
parentPackingNumber:row.packingNumber parentPackingNumber:row.packingNumber
} }
await queryDetailList() await queryDetailList()
detailParenPackingRef.value.open('create', row, null,'viewDetail')// detailParenPackingRef.value.open('create', row, null,'viewDetail')//
}
if (val == 'viewParentPickingNumber' && tabeKey.value == 'scarceGoodsDetail') { //
outStockPackingDetatableData.params = {
masterId:row.masterId,
parentPackingNumber:row.packingNumber
}
await queryOutStockDetailList()
outStockDetailParenPackingRef.value.open('create', row, null,'viewDetail')//
} }
} }
@ -251,10 +283,12 @@ const changeTabs = (data) =>{
if(data.prop == 'receiptDetail'){ if(data.prop == 'receiptDetail'){
console.log(data) console.log(data)
apiPage.value = PurchasereceiptRecordDetailApi.getPurchasereceiptRecordDetailPage apiPage.value = PurchasereceiptRecordDetailApi.getPurchasereceiptRecordDetailPage
detailAllSchemas.value = PurchasereceiptRecordDetail.allSchemas detailAllSchemas.value = PurchasereceiptRecordDetail.allSchemas
tabeKey.value = 'receiptDetail'
}else if(data.prop == 'scarceGoodsDetail'){ }else if(data.prop == 'scarceGoodsDetail'){
apiPage.value = PurchasereceiptRecordDetailApi.getScarceGoodsDetailPage apiPage.value = PurchasereceiptRecordDetailApi.getScarceGoodsDetailPage
detailAllSchemas.value = PurchasereceiptRecordDetail.allSchemas detailAllSchemas.value = PurchasereceiptRecordDetail.allSchemas
tabeKey.value = 'scarceGoodsDetail'
} }
} }

351
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/purchasereceiptRecordMain.data.ts

@ -952,6 +952,14 @@ export const PurchasereceiptRecordDetailPackingNumber = useCrudSchemas(reactive<
width: 180, width: 180,
fixed: 'left' fixed: 'left'
}, },
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
}, },
{ {
label: '订单号', label: '订单号',
@ -960,6 +968,14 @@ export const PurchasereceiptRecordDetailPackingNumber = useCrudSchemas(reactive<
table: { table: {
width: 150 width: 150
}, },
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
}, },
{ {
label: '订单行', label: '订单行',
@ -968,6 +984,14 @@ export const PurchasereceiptRecordDetailPackingNumber = useCrudSchemas(reactive<
table: { table: {
width: 150 width: 150
}, },
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
}, },
{ {
label: '物料代码', label: '物料代码',
@ -976,6 +1000,14 @@ export const PurchasereceiptRecordDetailPackingNumber = useCrudSchemas(reactive<
table: { table: {
width: 150 width: 150
}, },
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
}, },
{ {
label: '物料名称', label: '物料名称',
@ -984,6 +1016,14 @@ export const PurchasereceiptRecordDetailPackingNumber = useCrudSchemas(reactive<
table: { table: {
width: 150 width: 150
}, },
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
}, },
{ {
label: '物料描述1', label: '物料描述1',
@ -992,6 +1032,14 @@ export const PurchasereceiptRecordDetailPackingNumber = useCrudSchemas(reactive<
table: { table: {
width: 150 width: 150
}, },
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
}, },
{ {
label: '物料描述2', label: '物料描述2',
@ -1000,6 +1048,14 @@ export const PurchasereceiptRecordDetailPackingNumber = useCrudSchemas(reactive<
table: { table: {
width: 150 width: 150
}, },
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
}, },
{ {
label: '从批次', label: '从批次',
@ -1008,6 +1064,14 @@ export const PurchasereceiptRecordDetailPackingNumber = useCrudSchemas(reactive<
table: { table: {
width: 150 width: 150
}, },
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
}, },
{ {
label: '到批次', label: '到批次',
@ -1016,6 +1080,14 @@ export const PurchasereceiptRecordDetailPackingNumber = useCrudSchemas(reactive<
table: { table: {
width: 150 width: 150
}, },
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
}, },
{ {
label: '替代批次', label: '替代批次',
@ -1024,6 +1096,14 @@ export const PurchasereceiptRecordDetailPackingNumber = useCrudSchemas(reactive<
table: { table: {
width: 150 width: 150
}, },
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
}, },
{ {
label: '从包装号', label: '从包装号',
@ -1032,6 +1112,14 @@ export const PurchasereceiptRecordDetailPackingNumber = useCrudSchemas(reactive<
table: { table: {
width: 150 width: 150
}, },
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
}, },
{ {
label: '到包装号', label: '到包装号',
@ -1040,6 +1128,14 @@ export const PurchasereceiptRecordDetailPackingNumber = useCrudSchemas(reactive<
table: { table: {
width: 150 width: 150
}, },
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
}, },
{ {
label: '从器具号', label: '从器具号',
@ -1048,6 +1144,14 @@ export const PurchasereceiptRecordDetailPackingNumber = useCrudSchemas(reactive<
table: { table: {
width: 150 width: 150
}, },
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
}, },
{ {
label: '到器具号', label: '到器具号',
@ -1056,6 +1160,14 @@ export const PurchasereceiptRecordDetailPackingNumber = useCrudSchemas(reactive<
table: { table: {
width: 150 width: 150
}, },
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
}, },
{ {
label: '数量', label: '数量',
@ -1066,6 +1178,12 @@ export const PurchasereceiptRecordDetailPackingNumber = useCrudSchemas(reactive<
}, },
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
} }
}, },
{ {
@ -1079,6 +1197,14 @@ export const PurchasereceiptRecordDetailPackingNumber = useCrudSchemas(reactive<
table: { table: {
width: 150 width: 150
}, },
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
}, },
{ {
@ -1090,7 +1216,14 @@ export const PurchasereceiptRecordDetailPackingNumber = useCrudSchemas(reactive<
}, },
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
} }
}, },
{ {
label: '包装规格', label: '包装规格',
@ -1102,8 +1235,16 @@ export const PurchasereceiptRecordDetailPackingNumber = useCrudSchemas(reactive<
table: { table: {
width: 150 width: 150
}, },
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
}, },
{ {
label: '供应商计量数量', label: '供应商计量数量',
field: 'supplierQty', field: 'supplierQty',
@ -1113,6 +1254,12 @@ export const PurchasereceiptRecordDetailPackingNumber = useCrudSchemas(reactive<
}, },
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
} }
}, },
{ {
@ -1126,8 +1273,15 @@ export const PurchasereceiptRecordDetailPackingNumber = useCrudSchemas(reactive<
table: { table: {
width: 150 width: 150
}, },
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
}, },
{ {
label: '库存状态', label: '库存状态',
field: 'inventoryStatus', field: 'inventoryStatus',
@ -1139,6 +1293,14 @@ export const PurchasereceiptRecordDetailPackingNumber = useCrudSchemas(reactive<
table: { table: {
width: 150 width: 150
}, },
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
}, },
{ {
label: '从库位代码', label: '从库位代码',
@ -1147,6 +1309,14 @@ export const PurchasereceiptRecordDetailPackingNumber = useCrudSchemas(reactive<
table: { table: {
width: 150 width: 150
}, },
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
}, },
{ {
label: '到库位代码', label: '到库位代码',
@ -1155,6 +1325,14 @@ export const PurchasereceiptRecordDetailPackingNumber = useCrudSchemas(reactive<
table: { table: {
width: 150 width: 150
}, },
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
}, },
{ {
label: '从库位组代码', label: '从库位组代码',
@ -1163,6 +1341,14 @@ export const PurchasereceiptRecordDetailPackingNumber = useCrudSchemas(reactive<
table: { table: {
width: 150 width: 150
}, },
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
}, },
{ {
label: '到库位组代码', label: '到库位组代码',
@ -1171,6 +1357,14 @@ export const PurchasereceiptRecordDetailPackingNumber = useCrudSchemas(reactive<
table: { table: {
width: 150 width: 150
}, },
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
}, },
{ {
label: '从库区代码', label: '从库区代码',
@ -1179,6 +1373,14 @@ export const PurchasereceiptRecordDetailPackingNumber = useCrudSchemas(reactive<
table: { table: {
width: 150 width: 150
}, },
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
}, },
{ {
label: '到库区代码', label: '到库区代码',
@ -1187,6 +1389,14 @@ export const PurchasereceiptRecordDetailPackingNumber = useCrudSchemas(reactive<
table: { table: {
width: 150 width: 150
}, },
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
}, },
{ {
label: '从货主代码', label: '从货主代码',
@ -1195,6 +1405,14 @@ export const PurchasereceiptRecordDetailPackingNumber = useCrudSchemas(reactive<
table: { table: {
width: 150 width: 150
}, },
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
}, },
{ {
label: '到货主代码', label: '到货主代码',
@ -1203,6 +1421,14 @@ export const PurchasereceiptRecordDetailPackingNumber = useCrudSchemas(reactive<
table: { table: {
width: 150 width: 150
}, },
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
}, },
{ {
label: '到货日期', label: '到货日期',
@ -1218,12 +1444,18 @@ export const PurchasereceiptRecordDetailPackingNumber = useCrudSchemas(reactive<
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
disabled: true,
style: {width: '100%'}, style: {width: '100%'},
type: 'date', type: 'date',
dateFormat: 'YYYY-MM-DD', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
tableForm: {
disabled: true,
type:'FormDate',
valueFormat: 'x',
}
}, },
{ {
label: '生产日期', label: '生产日期',
@ -1239,12 +1471,18 @@ export const PurchasereceiptRecordDetailPackingNumber = useCrudSchemas(reactive<
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
disabled: true,
style: {width: '100%'}, style: {width: '100%'},
type: 'date', type: 'date',
dateFormat: 'YYYY-MM-DD', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
tableForm: {
disabled: true,
type:'FormDate',
valueFormat: 'x',
}
}, },
{ {
label: '过期日期', label: '过期日期',
@ -1260,12 +1498,18 @@ export const PurchasereceiptRecordDetailPackingNumber = useCrudSchemas(reactive<
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
disabled: true,
style: {width: '100%'}, style: {width: '100%'},
type: 'date', type: 'date',
dateFormat: 'YYYY-MM-DD', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
tableForm: {
disabled: true,
type:'FormDate',
valueFormat: 'x',
}
}, },
{ {
label: '转换率', label: '转换率',
@ -1276,6 +1520,12 @@ export const PurchasereceiptRecordDetailPackingNumber = useCrudSchemas(reactive<
}, },
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
} }
}, },
{ {
@ -1285,6 +1535,14 @@ export const PurchasereceiptRecordDetailPackingNumber = useCrudSchemas(reactive<
table: { table: {
width: 150 width: 150
}, },
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
}, },
{ {
label: '目检照片', label: '目检照片',
@ -1293,6 +1551,14 @@ export const PurchasereceiptRecordDetailPackingNumber = useCrudSchemas(reactive<
table: { table: {
width: 150 width: 150
}, },
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
}, },
{ {
label: '不合格原因', label: '不合格原因',
@ -1305,6 +1571,14 @@ export const PurchasereceiptRecordDetailPackingNumber = useCrudSchemas(reactive<
table: { table: {
width: 150 width: 150
}, },
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
}, },
{ {
label: '单价', label: '单价',
@ -1315,6 +1589,12 @@ export const PurchasereceiptRecordDetailPackingNumber = useCrudSchemas(reactive<
}, },
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
} }
}, },
{ {
@ -1326,17 +1606,14 @@ export const PurchasereceiptRecordDetailPackingNumber = useCrudSchemas(reactive<
}, },
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
} }
}, },
// {
// label: '任务明细ID',
// field: 'jobDetailId',
// sort: 'custom',
// table: {
// width: 150
// },
// },
{ {
label: '项目代码', label: '项目代码',
field: 'projectCode', field: 'projectCode',
@ -1344,15 +1621,15 @@ export const PurchasereceiptRecordDetailPackingNumber = useCrudSchemas(reactive<
table: { table: {
width: 150 width: 150
}, },
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
}, },
// {
// label: '代码',
// field: 'code',
// sort: 'custom',
// table: {
// width: 150
// },
// },
{ {
label: '接口类型', label: '接口类型',
field: 'interfaceType', field: 'interfaceType',
@ -1364,6 +1641,14 @@ export const PurchasereceiptRecordDetailPackingNumber = useCrudSchemas(reactive<
table: { table: {
width: 150 width: 150
}, },
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
}, },
{ {
label: '备注', label: '备注',
@ -1372,33 +1657,13 @@ export const PurchasereceiptRecordDetailPackingNumber = useCrudSchemas(reactive<
table: { table: {
width: 150 width: 150
}, },
},
{
label: '创建时间',
field: 'createTime',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 180
},
form: { form: {
component: 'DatePicker',
componentProps: { componentProps: {
type: 'datetime', disabled:true
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
} }
}, },
}, tableForm: {
{ disabled: true,
label: '创建者', }
field: 'creator',
sort: 'custom',
table: {
width: 150
},
} }
])) ]))

2
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue

@ -71,6 +71,8 @@
fromeWhere="purchasereceipt" fromeWhere="purchasereceipt"
@searchTableSuccessDetail="searchTableSuccessDetail" @searchTableSuccessDetail="searchTableSuccessDetail"
:detailButtonIsShowAdd="false" :detailButtonIsShowAdd="false"
:detailButtonIsShowEdit="false"
:detailButtonIsShowDelete="false"
:buttondataTable="buttondataTable" :buttondataTable="buttondataTable"
@tableFormButton="tableFormButton" @tableFormButton="tableFormButton"
/> />

56
src/views/wms/purchasereceiptManage/putaway/putawayJobMain/index.vue

@ -62,12 +62,35 @@
:detailAllSchemasRules="PutawayJobDetailRules" :detailAllSchemasRules="PutawayJobDetailRules"
:searchTableParams="searchTableParams" :searchTableParams="searchTableParams"
:apiPage="PutawayJobDetailApi.getPutawayJobDetailPage" :apiPage="PutawayJobDetailApi.getPutawayJobDetailPage"
:detailButtonIsShowAdd="false"
:detailButtonIsShowEdit="false"
:detailButtonIsShowDelete="false"
:buttondataTable="buttondataTable"
@tableFormButton="tableFormButton"
/> />
<!-- 子包装弹窗 -->
<BasicForm
ref="detailParenPackingRef"
@success="getList"
:tableAllSchemas="PutawayJobDetailPackingNumber.allSchemas"
:tableFormRules="PutawayJobDetailRules"
:tableData="packingDetatableData.tableList"
:isBusiness="true"
:isShowButton="false"
:isShowReduceButton="false"
:isShowFooterButtton="false"
/>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import { PutawayJobMain,PutawayJobMainRules,PutawayJobDetail,PutawayJobDetailRules } from './putawayJobMain.data' import { PutawayJobMain,
PutawayJobMainRules,
PutawayJobDetail,
PutawayJobDetailRules,
PutawayJobDetailPackingNumber } from './putawayJobMain.data'
import * as PutawayJobMainApi from '@/api/wms/putawayJobMain' import * as PutawayJobMainApi from '@/api/wms/putawayJobMain'
import * as PutawayJobDetailApi from '@/api/wms/putawayJobDetail' import * as PutawayJobDetailApi from '@/api/wms/putawayJobDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
@ -200,12 +223,43 @@ const buttonTableClick = async (val, row) => {
} }
} }
//
const detailParenPackingRef = ref()
const { tableObject: packingDetatableData, tableMethods: packDetatableMethods } = useTable({
getListApi: PutawayJobDetailApi.getPutawayJobDetailPageChildPackingNumber
})
const { getList:queryDetailList } = packDetatableMethods
/** 详情操作 */ /** 详情操作 */
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,'jobPutawayMain') detailRef.value.openDetail(row, titleName, titleValue,'jobPutawayMain')
} }
// table
const buttondataTable = ref([{
label: '查看其他包装规格',
name: 'viewParentPickingNumber',
hide: false,
type: 'primary',
icon: '',
color: '',
hasPermi: '',
link: true, //
}])
//
const tableFormButton = async (val , row) => {
if (val == 'viewParentPickingNumber') { //
packingDetatableData.params = {
masterId:row.masterId,
parentPackingNumber:row.packingNumber
}
await queryDetailList()
detailParenPackingRef.value.open('create', row, null,'viewDetail')//
}
}
/** 关闭按钮操作 */ /** 关闭按钮操作 */
const handleClose = async (id: number) => { const handleClose = async (id: number) => {
try { try {

372
src/views/wms/purchasereceiptManage/putaway/putawayJobMain/putawayJobMain.data.ts

@ -747,6 +747,17 @@ export const PutawayJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
}, },
{
label: '操作',
field: 'action',
isDetail: false,
isForm: false ,
table: {
width: 150,
fixed: 'right'
},
isTableForm:true,
}
])) ]))
//表单校验 //表单校验
@ -779,3 +790,364 @@ export const PutawayJobDetailRules = reactive({
{ required: true, message: '请输入创建者', trigger: 'blur' } { required: true, message: '请输入创建者', trigger: 'blur' }
], ],
}) })
/**
* @returns {Array}
*/
export const PutawayJobDetailPackingNumber = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '包装号',
field: 'packingNumber',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '器具号',
field: 'containerNumber',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '批次',
field: 'batch',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '库存状态',
field: 'inventoryStatus',
dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '订单号',
field: 'poNumber',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '订单行',
field: 'poLine',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '从库位代码',
field: 'fromLocationCode',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '到库位代码',
field: 'toLocationCode',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '物料代码',
field: 'itemCode',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '物料名称',
field: 'itemName',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '物料描述1',
field: 'itemDesc1',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '物料描述2',
field: 'itemdesc2',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '项目代码',
field: 'projectCode',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '数量',
field: 'qty',
sort: 'custom',
table: {
width: 150
},
form: {
component: 'InputNumber',
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '计量单位',
field: 'uom',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '单据号',
field: 'number',
sort: 'custom',
table: {
width: 180
},
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '备注',
field: 'remark',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '从货主代码',
field: 'fromOwnerCode',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '到货主代码',
field: 'toOwnerCode',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '创建时间',
field: 'createTime',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 180
},
form: {
component: 'DatePicker',
componentProps: {
disabled:true,
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
tableForm: {
disabled: true,
type:'FormDateTime',
format:'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
{
label: '创建者',
field: 'creator',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
]))

57
src/views/wms/purchasereceiptManage/putaway/putawayRecordMain/index.vue

@ -57,12 +57,35 @@
:detailAllSchemas="PutawayRecordDetail.allSchemas" :detailAllSchemas="PutawayRecordDetail.allSchemas"
:detailAllSchemasRules="PutawayRecordDetailRules" :detailAllSchemasRules="PutawayRecordDetailRules"
:apiPage="PutawayRecordDetailApi.getPutawayRecordDetailPage" :apiPage="PutawayRecordDetailApi.getPutawayRecordDetailPage"
:detailButtonIsShowAdd="false"
:detailButtonIsShowEdit="false"
:detailButtonIsShowDelete="false"
:buttondataTable="buttondataTable"
@tableFormButton="tableFormButton"
/> />
<!-- 子包装弹窗 -->
<BasicForm
ref="detailParenPackingRef"
@success="getList"
:tableAllSchemas="PutawayRecordDetailChildPackingNumber.allSchemas"
:tableFormRules="PutawayRecordDetailRules"
:tableData="packingDetatableData.tableList"
:isBusiness="true"
:isShowButton="false"
:isShowReduceButton="false"
:isShowFooterButtton="false"
/>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import { PutawayRecordMain,PutawayRecordMainRules,PutawayRecordDetail,PutawayRecordDetailRules } from './putawayRecordMain.data' import { PutawayRecordMain,
PutawayRecordMainRules,
PutawayRecordDetail,
PutawayRecordDetailRules,
PutawayRecordDetailChildPackingNumber } from './putawayRecordMain.data'
import * as PutawayRecordMainApi from '@/api/wms/putawayRecordMain' import * as PutawayRecordMainApi from '@/api/wms/putawayRecordMain'
import * as PutawayRecordDetailApi from '@/api/wms/putawayRecordDetail' import * as PutawayRecordDetailApi from '@/api/wms/putawayRecordDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
@ -133,12 +156,44 @@ const butttondata = (row) => {
const buttonTableClick = async (val, row) => { const buttonTableClick = async (val, row) => {
} }
//
const detailParenPackingRef = ref()
const { tableObject: packingDetatableData, tableMethods: packDetatableMethods } = useTable({
getListApi: PutawayRecordDetailApi.getPutawayJobDetailPageChildPackingNumber
})
const { getList:queryDetailList } = packDetatableMethods
/** 详情操作 */ /** 详情操作 */
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,'recordPutawayMain') detailRef.value.openDetail(row, titleName, titleValue,'recordPutawayMain')
} }
// table
const buttondataTable = ref([{
label: '查看其他包装规格',
name: 'viewParentPickingNumber',
hide: false,
type: 'primary',
icon: '',
color: '',
hasPermi: '',
link: true, //
}])
//
const tableFormButton = async (val , row) => {
if (val == 'viewParentPickingNumber') { //
packingDetatableData.params = {
masterId:row.masterId,
parentPackingNumber:row.packingNumber
}
await queryDetailList()
detailParenPackingRef.value.open('create', row, null,'viewDetail')//
}
}
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) // const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {

505
src/views/wms/purchasereceiptManage/putaway/putawayRecordMain/putawayRecordMain.data.ts

@ -613,6 +613,17 @@ export const PutawayRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
}, },
{
label: '操作',
field: 'action',
isDetail: false,
isForm: false ,
table: {
width: 150,
fixed: 'right'
},
isTableForm:true,
}
])) ]))
//表单校验 //表单校验
@ -662,4 +673,496 @@ export const PutawayRecordDetailRules = reactive({
creator: [ creator: [
{ required: true, message: '请输入创建者', trigger: 'blur' } { required: true, message: '请输入创建者', trigger: 'blur' }
], ],
}) })
/**
* @returns {Array} --
*/
export const PutawayRecordDetailChildPackingNumber = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '从包装号',
field: 'fromPackingNumber',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '到包装号',
field: 'toPackingNumber',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '从批次',
field: 'fromBatch',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '到批次',
field: 'toBatch',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '库存状态',
field: 'inventoryStatus',
dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '订单号',
field: 'poNumber',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '订单行',
field: 'poLine',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '从货主代码',
field: 'fromOwnerCode',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '从库位代码',
field: 'fromLocationCode',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '从库位组代码',
field: 'fromLocationGroupCode',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '从库区代码',
field: 'fromAreaCode',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '到货主代码',
field: 'toOwnerCode',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '到库位代码',
field: 'toLocationCode',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '到库位组代码',
field: 'toLocationGroupCode',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '到库区代码',
field: 'toAreaCode',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '单据号',
field: 'number',
sort: 'custom',
table: {
width: 180
},
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '物料代码',
field: 'itemCode',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '备注',
field: 'remark',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '创建时间',
field: 'createTime',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 180
},
form: {
component: 'DatePicker',
componentProps: {
disabled:true,
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
tableForm: {
disabled: true,
type:'FormDateTime',
format:'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
{
label: '创建者',
field: 'creator',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '物料名称',
field: 'itemName',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '物料描述1',
field: 'itemDesc1',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '物料描述2',
field: 'itemDesc2',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '项目代码',
field: 'projectCode',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '数量',
field: 'qty',
sort: 'custom',
table: {
width: 150
},
form: {
component: 'InputNumber',
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '计量单位',
field: 'uom',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '接口类型',
field: 'interfaceType',
dictType: DICT_TYPE.INTERFACE_TYPE,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '从器具号',
field: 'fromContainerNumber',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '到器具号',
field: 'toContainerNumber',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
]))

61
src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/index.vue

@ -70,17 +70,40 @@
fromeWhere="putawayRequest" fromeWhere="putawayRequest"
@searchTableSuccessDetail="searchTableSuccessDetail" @searchTableSuccessDetail="searchTableSuccessDetail"
:detailButtonIsShowAdd="false" :detailButtonIsShowAdd="false"
:detailButtonIsShowEdit="false"
:detailButtonIsShowDelete="false"
:buttondataTable="buttondataTable"
@tableFormButton="tableFormButton"
/> />
<!-- 导入 --> <!-- 导入 -->
<ImportForm ref="importFormRef" url="/wms/putaway-request-main/import" :importTemplateData="importTemplateData" <ImportForm ref="importFormRef" url="/wms/putaway-request-main/import" :importTemplateData="importTemplateData"
@success="importSuccess" :updateIsDisable="true" :coverIsDisable="true" :mode="2" /> @success="importSuccess" :updateIsDisable="true" :coverIsDisable="true" :mode="2" />
<!-- 子包装弹窗 -->
<BasicForm
ref="detailParenPackingRef"
@success="getList"
:tableAllSchemas="PutawayRequestDetailChildPackingNumber.allSchemas"
:tableFormRules="PutawayRequestDetailRules"
:tableData="packingDetatableData.tableList"
:isBusiness="true"
:isShowButton="false"
:isShowReduceButton="false"
:isShowFooterButtton="false"
/>
</template> </template>
<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 { PutawayRequestMain,PutawayRequestMainRules,PutawayRequestDetail,PutawayRequestDetailRules } from './putawayRequestMain.data' import { PutawayRequestMain,
PutawayRequestMainRules,
PutawayRequestDetail,
PutawayRequestDetailRules,
PutawayRequestDetailChildPackingNumber } from './putawayRequestMain.data'
import * as PutawayRequestMainApi from '@/api/wms/putawayRequestMain' import * as PutawayRequestMainApi from '@/api/wms/putawayRequestMain'
import * as PutawayRequestDetailApi from '@/api/wms/putawayRequestDetail' import * as PutawayRequestDetailApi from '@/api/wms/putawayRequestDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
@ -202,8 +225,6 @@ const butttondata = (row) => {
] ]
} }
// - // -
const buttonTableClick = async (val, row) => { const buttonTableClick = async (val, row) => {
if (val == 'mainClose') { // if (val == 'mainClose') { //
@ -223,6 +244,7 @@ const buttonTableClick = async (val, row) => {
} }
} }
/** 添加/修改操作 */ /** 添加/修改操作 */
const formRef = ref() const formRef = ref()
const openForm =async (type: string, row?: number) => { const openForm =async (type: string, row?: number) => {
@ -312,6 +334,13 @@ const handleSubmit = async (id: number) => {
} }
} }
//
const detailParenPackingRef = ref()
const { tableObject: packingDetatableData, tableMethods: packDetatableMethods } = useTable({
getListApi: PutawayRequestDetailApi.getPutawayRequestDetailPageChildPackingNumber
})
const { getList:queryDetailList } = packDetatableMethods
// //
const { wsCache } = useCache() const { wsCache } = useCache()
/** 详情操作 */ /** 详情操作 */
@ -322,6 +351,32 @@ const openDetail = (row: any, titleName: any, titleValue: any) => {
detailRef.value.openDetail(row, titleName, titleValue,'requestPutawayMain') detailRef.value.openDetail(row, titleName, titleValue,'requestPutawayMain')
} }
// table
const buttondataTable = ref([{
label: '查看其他包装规格',
name: 'viewParentPickingNumber',
hide: false,
type: 'primary',
icon: '',
color: '',
hasPermi: '',
link: true, //
}])
//
const tableFormButton = async (val , row) => {
if (val == 'viewParentPickingNumber') { //
packingDetatableData.params = {
masterId:row.masterId,
parentPackingNumber:row.packingNumber
}
await queryDetailList()
detailParenPackingRef.value.open('create', row, null,'viewDetail')//
}
}
/** 删除按钮操作 */ /** 删除按钮操作 */
const handleDelete = async (id: number) => { const handleDelete = async (id: number) => {
try { try {

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

@ -768,12 +768,11 @@ export const PutawayRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
field: 'action', field: 'action',
isDetail: false, isDetail: false,
isForm: false, isForm: false,
isTable: false,
table: { table: {
width: 150, width: 150,
fixed: 'right' fixed: 'right'
}, },
isTableForm: false, isTableForm: true,
} }
])) ]))
@ -795,3 +794,421 @@ export const PutawayRequestDetailRules = reactive({
{ required: true, message: '请输入物料代码', trigger: 'blur' } { required: true, message: '请输入物料代码', trigger: 'blur' }
], ],
}) })
/**
* @returns {Array} --
*/
export const PutawayRequestDetailChildPackingNumber = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '包装号',
field: 'packingNumber',
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
isForm: false,
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '器具号',
field: 'containerNumber',
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
isForm: false,
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '批次',
field: 'batch',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '库存状态',
field: 'inventoryStatus',
dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
tableForm: {
disabled: true,
type: 'Select'
},
form: {
componentProps: {
disabled:true
}
},
},
{
label: '物料代码',
field: 'itemCode',
sort: 'custom',
table: {
width: 150
},
tableForm: {
disabled: true,
isInpuFocusShow: false,
earchListPlaceholder: '请选择包装号',
searchField: 'packingNumber',
searchTitle: '库存余额信息',
searchAllSchemas: Balance.allSchemas,
searchPage: BalanceApi.getBalancePagePutaway,
searchCondition: [{
key: 'available',
value: 'TRUE',
isMainValue: false
}, {
key: 'workshopCode',
value: 'workshopCode',
isMainValue: true
}]
},
},
{
label: '计量单位',
field: 'uom',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
tableForm: {
disabled: true,
type: 'Select'
}
},
{
label: '订单号',
field: 'poNumber',
sort: 'custom',
table: {
width: 150
},
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: false,
searchListPlaceholder: '请选择订单号',
searchField: 'number',
searchTitle: '采购订单信息',
searchAllSchemas: PurchaseDetail.allSchemas,
searchPage: PurchaseDetailApi.getPurchaseMainPage
}
},
tableForm: {
disabled: true,
isInpuFocusShow: false,
searchListPlaceholder: '请选择订单号',
searchField: 'number',
searchTitle: '采购订单信息',
searchAllSchemas: PurchaseDetail.allSchemas,
searchPage: PurchaseMainApi.getPurchaseMainPage
}
},
{
label: '订单行',
field: 'poLine',
sort: 'custom',
table: {
width: 150
},
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: false,
searchListPlaceholder: '请选择订单行',
searchField: 'lineNumber',
searchTitle: '采购订单信息',
searchAllSchemas: PurchaseDetail.allSchemas,
searchPage: PurchaseDetailApi.getPurchaseDetailPage
}
},
tableForm: {
disabled: true,
isInpuFocusShow: false,
searchListPlaceholder: '请选择订单行',
searchField: 'lineNumber',
searchTitle: '采购订单信息',
searchAllSchemas: PurchaseDetail.allSchemas,
searchPage: PurchaseDetailApi.getPurchaseDetailPage
}
},
{
label: '从库位代码',
field: 'fromLocationCode',
sort: 'custom',
table: {
width: 150
},
tableForm: {
disabled: true,
isInpuFocusShow: false,
searchListPlaceholder: '请选择从库位代码',
searchField: 'code',
searchTitle: '库位基础信息',
searchAllSchemas: Location.allSchemas,
searchPage: LocationApi.getLocationPage
},
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
disabled: true,
isSearchList: false,
searchListPlaceholder: '请选择从库位代码',
searchField: 'code',
searchTitle: '库位基础信息',
searchAllSchemas: Location.allSchemas,
searchPage: LocationApi.getLocationPage
}
}
},
{
label: '单据号',
field: 'number',
sort: 'custom',
table: {
width: 180
},
isTableForm: false,
form: {
componentProps: {
disabled: true
}
},
tableForm: {
disabled: true,
}
},
{
label: '备注',
field: 'remark',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '创建时间',
field: 'createTime',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 180
},
form: {
component: 'DatePicker',
componentProps: {
disabled:true,
style: { width: '100%' },
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
isTableForm: false,
isForm: false,
tableForm: {
disabled: true,
type:'FormDateTime',
format:'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
{
label: '创建者',
field: 'creator',
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
isForm: false,
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '物料名称',
field: 'itemName',
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
isForm: false,
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '物料描述1',
field: 'itemDesc1',
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
isForm: false,
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '物料描述2',
field: 'itemDesc2',
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
isForm: false,
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '项目代码',
field: 'projectCode',
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
isForm: false,
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '数量',
field: 'qty',
sort: 'custom',
table: {
width: 150
},
form: {
component: 'InputNumber',
componentProps: {
disabled:true,
min: 1,
precision: 6
},
},
tableForm: {
disabled: true,
type: 'InputNumber',
min: 1,
precision: 6
}
},
{
label: '从货主代码',
field: 'fromOwnerCode',
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
isForm: false,
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
},
{
label: '到货主代码',
field: 'toOwnerCode',
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
isForm: false,
form: {
componentProps: {
disabled:true
}
},
tableForm: {
disabled: true,
}
}
]))
Loading…
Cancel
Save