Browse Source

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

intex_online20250327
赵雪冰 2 weeks ago
parent
commit
cf18f08bae
  1. 1
      src/utils/dict.ts
  2. 2
      src/views/wms/basicDataManage/supplierManage/deliTimeWms/deliTimeWms.data.ts
  3. 2
      src/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data.ts
  4. 1
      src/views/wms/deliversettlementManage/deliverPdaRecordMain/deliverRecordMain/deliverRecordMain.data.ts
  5. 272
      src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/index.vue
  6. 83
      src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue
  7. 24
      src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/unplannedreceiptRequestMain.data.ts
  8. 416
      src/views/wms/issueManage/repleinsh/repleinshRequestMain/repleinshRequestMain.data.ts
  9. 28
      src/views/wms/productionManage/productreceipt/productreceiptJobMain/productreceiptJobMain.data.ts
  10. 13
      src/views/wms/productionManage/productreceipt/productreceiptRecordMain/productreceiptRecordMain.data.ts
  11. 41
      src/views/wms/productionManage/productreceipt/productreceiptRequestMain/productreceiptRequestMain.data.ts
  12. 9
      src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleJobMain/productreceiptAssembleJobMain.data.ts
  13. 8
      src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/productreceiptAssembleRecordMain.data.ts
  14. 10
      src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/productreceiptAssembleRequestMain.data.ts
  15. 6
      src/views/wms/productionManage/productredress/productredressJobMain/productredressJobMain.data.ts
  16. 8
      src/views/wms/productionManage/productredress/productredressRecordMain/productredressRecordMain.data.ts
  17. 6
      src/views/wms/productionManage/productredress/productredressRequestMain/productredressRequestMain.data.ts
  18. 92
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRecordMain/purchasereturnRecordMain.data.ts
  19. 100
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/purchasereturnRequestMain.data.ts
  20. 100
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMainNew/purchasereturnRequestMain.data.ts
  21. 2
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue
  22. 2
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/index.vue

1
src/utils/dict.ts

@ -429,4 +429,5 @@ export enum DICT_TYPE {
COUNT_MODE = "count_mode",//盘点模式(1:PAD盘点,2:Excel导入) COUNT_MODE = "count_mode",//盘点模式(1:PAD盘点,2:Excel导入)
INVENTORY_MODE = "inventory_mode", INVENTORY_MODE = "inventory_mode",
INVOICE_TYPE = 'invoice_type', // 开票种类 INVOICE_TYPE = 'invoice_type', // 开票种类
DELISHIF = "deliShif",// 班次
} }

2
src/views/wms/basicDataManage/supplierManage/deliTimeWms/deliTimeWms.data.ts

@ -19,7 +19,7 @@ export const DeliTimeWms = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '班次', label: '班次',
field: 'shift', field: 'shift',
dictType: DICT_TYPE.SHIFT, dictType: DICT_TYPE.DELISHIF,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: true,
isDetail: true, isDetail: true,

2
src/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data.ts

@ -202,7 +202,7 @@ export const Supplieritem = useCrudSchemas(reactive<CrudSchema[]>([
form: { form: {
component: 'Switch', component: 'Switch',
componentProps: { componentProps: {
disabled: true, disabled: false,
inactiveValue: 'FALSE', inactiveValue: 'FALSE',
activeValue: 'TRUE' activeValue: 'TRUE'
} }

1
src/views/wms/deliversettlementManage/deliverPdaRecordMain/deliverRecordMain/deliverRecordMain.data.ts

@ -256,6 +256,7 @@ export const DeliverRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
label: '品番', label: '品番',
field: 'itemCode', field: 'itemCode',
sort: 'custom', sort: 'custom',
isSearch:true,
table: { table: {
width: 150 width: 150
}, },

272
src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/index.vue

@ -1,7 +1,14 @@
<template> <template>
<ContentWrap> <ContentWrap>
<!-- 搜索工作栏 --> <!-- 搜索工作栏 -->
<Search :schema="[...InventoryinitRequestMain.allSchemas.searchSchema,...InventoryinitRequestDetail.allSchemas.searchSchema]" @search="setSearchParams" @reset="setSearchParams" /> <Search
:schema="[
...InventoryinitRequestMain.allSchemas.searchSchema,
...InventoryinitRequestDetail.allSchemas.searchSchema
]"
@search="setSearchParams"
@reset="setSearchParams"
/>
</ContentWrap> </ContentWrap>
<!-- 列表头部 --> <!-- 列表头部 -->
@ -17,7 +24,8 @@
<!-- 列表 --> <!-- 列表 -->
<ContentWrap> <ContentWrap>
<Table v-clientTable <Table
v-clientTable
:columns="tableColumns" :columns="tableColumns"
:data="tableObject.tableList" :data="tableObject.tableList"
:loading="tableObject.loading" :loading="tableObject.loading"
@ -28,13 +36,16 @@
v-model:currentPage="tableObject.currentPage" v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort" v-model:sort="tableObject.sort"
> >
<template #number="{row}"> <template #number="{ row }">
<el-button type="primary" link @click="openDetail(row, '单据号', row.number)"> <el-button type="primary" link @click="openDetail(row, '单据号', row.number)">
<span>{{ row.number }}</span> <span>{{ row.number }}</span>
</el-button> </el-button>
</template> </template>
<template #action="{ row,$index }"> <template #action="{ row, $index }">
<ButtonBaseMore :Butttondata="butttondata(row,$index)" @button-base-click="buttonTableClick($event,row)" /> <ButtonBaseMore
:Butttondata="butttondata(row, $index)"
@button-base-click="buttonTableClick($event, row)"
/>
</template> </template>
</Table> </Table>
</ContentWrap> </ContentWrap>
@ -78,17 +89,36 @@
/> />
<!-- 导入 --> <!-- 导入 -->
<ImportForm ref="importFormRef" url="/wms/inventoryinit-request-main/import" :importTemplateData="importTemplateData" <ImportForm
@success="importSuccess" :updateIsDisable="true" :coverIsDisable="true" :mode="2" /> ref="importFormRef"
url="/wms/inventoryinit-request-main/import"
:importTemplateData="importTemplateData"
@success="importSuccess"
:updateIsDisable="true"
:coverIsDisable="true"
:mode="2"
/>
<ImportForm ref="importFormRefLine" url="/wms/inventoryinit-request-main/importLine" :importTemplateData="importTemplateData" <ImportForm
@success="importSuccess" :updateIsDisable="true" :coverIsDisable="true" :mode="2" /> ref="importFormRefLine"
url="/wms/inventoryinit-request-main/importLine"
: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 download from '@/utils/download'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache' import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { InventoryinitRequestMain,InventoryinitRequestMainRules,InventoryinitRequestDetail,InventoryinitRequestDetailRules } from './inventoryinitRequestMain.data' import {
InventoryinitRequestMain,
InventoryinitRequestMainRules,
InventoryinitRequestDetail,
InventoryinitRequestDetailRules
} from './inventoryinitRequestMain.data'
import * as InventoryinitRequestMainApi from '@/api/wms/inventoryinitRequestMain' import * as InventoryinitRequestMainApi from '@/api/wms/inventoryinitRequestMain'
import * as InventoryinitRequestDetailApi from '@/api/wms/inventoryinitRequestDetail' import * as InventoryinitRequestDetailApi from '@/api/wms/inventoryinitRequestDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
@ -105,7 +135,10 @@ const { t } = useI18n() // 国际化
const route = useRoute() // const route = useRoute() //
const routeName = ref() const routeName = ref()
routeName.value = route.name routeName.value = route.name
const tableColumns = ref([...InventoryinitRequestMain.allSchemas.tableColumns,...InventoryinitRequestDetail.allSchemas.tableMainColumns]) const tableColumns = ref([
...InventoryinitRequestMain.allSchemas.tableColumns,
...InventoryinitRequestDetail.allSchemas.tableMainColumns
])
// //
const updataTableColumns = (val) => { const updataTableColumns = (val) => {
@ -113,21 +146,25 @@ const updataTableColumns = (val) => {
} }
// //
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { const searchTableSuccess = (formField, searchField, val, formRef, type, row) => {
nextTick(() => { nextTick(() => {
if (type == 'tableForm') { if (type == 'tableForm') {
// //
if(formField=='itemCode'){ if (formField == 'itemCode') {
// //
let itemCodes = val.filter(item=>tableData.value.find(item1=>item1['itemCode']==item['code'])) let itemCodes = val.filter((item) =>
if(itemCodes.length>0){ tableData.value.find((item1) => item1['itemCode'] == item['code'])
itemCodes = itemCodes.map(item=>(item['code'])) )
if (itemCodes.length > 0) {
itemCodes = itemCodes.map((item) => item['code'])
message.warning(`物料${itemCodes.join(',')}已经存在`) message.warning(`物料${itemCodes.join(',')}已经存在`)
} }
val = val.filter(item=>!tableData.value.find(item1=>item1['itemCode']==item['code'])) val = val.filter(
if(val.length==0) return (item) => !tableData.value.find((item1) => item1['itemCode'] == item['code'])
val.forEach(item=>{ )
const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item})) if (val.length == 0) return
val.forEach((item) => {
const newRow = JSON.parse(JSON.stringify({ ...tableFormKeys, ...item }))
newRow[formField] = item[searchField] newRow[formField] = item[searchField]
newRow['packUnit'] = item['defaultPackUnit'] newRow['packUnit'] = item['defaultPackUnit']
newRow['packQty'] = item['defaultPackQty'] newRow['packQty'] = item['defaultPackQty']
@ -135,22 +172,21 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
newRow['batch'] = formatTime(new Date(), 'yyyyMMdd') newRow['batch'] = formatTime(new Date(), 'yyyyMMdd')
tableData.value.push(newRow) tableData.value.push(newRow)
}) })
} else if (formField == 'packUnit') {
}else if(formField=='packUnit'){
//1 //1
row[formField] = val[0][searchField] row[formField] = val[0][searchField]
row['packUnit'] = val[0]['packUnit'] row['packUnit'] = val[0]['packUnit']
row['packQty'] = val[0]['packQty'] row['packQty'] = val[0]['packQty']
}else if(formField=='secondPackUnit'){ } else if (formField == 'secondPackUnit') {
//2 //2
row[formField] = val[0][searchField] row[formField] = val[0][searchField]
row['secondPackUnit'] = val[0]['packUnit'] row['secondPackUnit'] = val[0]['packUnit']
row['secondPackQty'] = val[0]['packQty'] row['secondPackQty'] = val[0]['packQty']
}else if(formField == 'balancePackUnit'){ } else if (formField == 'balancePackUnit') {
// //
row[formField] = val[0][searchField] row[formField] = val[0][searchField]
row['balancePackUnit'] = val[0]['packUnit'] row['balancePackUnit'] = val[0]['packUnit']
}else{ } else {
row[formField] = val[0][searchField] row[formField] = val[0][searchField]
} }
} else { } else {
@ -163,21 +199,21 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
}) })
} }
// //
const searchTableSuccessDetail = (formField, searchField, val, formRef ) => { const searchTableSuccessDetail = (formField, searchField, val, formRef) => {
nextTick(() => { nextTick(() => {
const setV = {} const setV = {}
if(formField=='itemCode'){ if (formField == 'itemCode') {
// //
setV['uom'] = val[0]['uom'] setV['uom'] = val[0]['uom']
}else if(formField=='packUnit'){ } else if (formField == 'packUnit') {
//1 //1
setV['packUnit'] = val[0]['packUnit'] setV['packUnit'] = val[0]['packUnit']
setV['packQty'] = val[0]['packQty'] setV['packQty'] = val[0]['packQty']
}else if(formField=='secondPackUnit'){ } else if (formField == 'secondPackUnit') {
//2 //2
setV['secondPackUnit'] = val[0]['packUnit'] setV['secondPackUnit'] = val[0]['packUnit']
setV['secondPackQty'] = val[0]['packQty'] setV['secondPackQty'] = val[0]['packQty']
}else if(formField == 'balancePackUnit'){ } else if (formField == 'balancePackUnit') {
// //
setV['balancePackUnit'] = val[0]['packUnit'] setV['balancePackUnit'] = val[0]['packUnit']
} }
@ -199,8 +235,8 @@ const { getList, setSearchParams } = tableMethods
// //
const HeadButttondata = [ const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:inventoryinit-request-main:create'}), // defaultButtons.defaultAddBtn({ hasPermi: 'wms:inventoryinit-request-main:create' }), //
defaultButtons.defaultImportBtn({hasPermi:'wms:inventoryinit-request-main:import'}), // defaultButtons.defaultImportBtn({ hasPermi: 'wms:inventoryinit-request-main:import' }), //
{ {
label: '线边导入', label: '线边导入',
name: 'importLine', name: 'importLine',
@ -210,10 +246,10 @@ const HeadButttondata = [
color: '', color: '',
hasPermi: '' hasPermi: ''
}, },
defaultButtons.defaultExportBtn({hasPermi:'wms:inventoryinit-request-main:export'}), // defaultButtons.defaultExportBtn({ hasPermi: 'wms:inventoryinit-request-main:export' }), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), // defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), // defaultButtons.defaultSetBtn(null) //
// { // {
// label: '', // label: '',
// name: 'zdy', // name: 'zdy',
@ -226,30 +262,36 @@ const HeadButttondata = [
// //
const buttonBaseClick = (val, item) => { const buttonBaseClick = (val, item) => {
if (val == 'add') { // if (val == 'add') {
//
openForm('create') openForm('create')
} else if (val == 'import') { // } else if (val == 'import') {
//
handleImport() handleImport()
} else if(val == 'importLine'){ } else if (val == 'importLine') {
handleImportLine() handleImportLine()
}else if (val == 'export') { // } else if (val == 'export') {
//
handleExport() handleExport()
} else if (val == 'refresh') { // } else if (val == 'refresh') {
if (tableObject.params.filters && tableObject.params.filters.length > 0 ) { //
if (tableObject.params.filters && tableObject.params.filters.length > 0) {
searchFormClick({ searchFormClick({
filters: tableObject.params.filters filters: tableObject.params.filters
}) })
} else { } else {
getList() getList()
} }
} else if (val == 'filtrate') { // } else if (val == 'filtrate') {
} else { // //
} else {
//
console.log('其他按钮', item) console.log('其他按钮', item)
} }
} }
// //
const isShowMainButton = (row,val) => { const isShowMainButton = (row, val) => {
if (val.indexOf(row.status) > -1) { if (val.indexOf(row.status) > -1) {
return false return false
} else { } else {
@ -258,44 +300,71 @@ const isShowMainButton = (row,val) => {
} }
// - // -
const butttondata = (row,$index) => { const butttondata = (row, $index) => {
const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 const findIndex = row['masterId']
if(findIndex>-1&&findIndex<$index){ ? tableObject.tableList.findIndex((item) => item['masterId'] == row['masterId'])
: -1
if (findIndex > -1 && findIndex < $index) {
return [] return []
} }
return [ return [
defaultButtons.mainListCloseBtn({hide:isShowMainButton(row,['1','2','3','4']),hasPermi:'wms:inventoryinit-request-main:close'}), // defaultButtons.mainListCloseBtn({
defaultButtons.mainListReAddBtn({hide:isShowMainButton(row,['5']),hasPermi:'wms:inventoryinit-request-main:reAdd'}), // hide: isShowMainButton(row, ['1', '2', '3', '4']),
defaultButtons.mainListSubmitBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:inventoryinit-request-main:submit'}), // hasPermi: 'wms:inventoryinit-request-main:close'
defaultButtons.mainListTurnDownBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:inventoryinit-request-main:refused'}), // }), //
defaultButtons.mainListApproveBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:inventoryinit-request-main:agree'}), // defaultButtons.mainListReAddBtn({
defaultButtons.mainListHandleBtn({hide:isShowMainButton(row,['3']),hasPermi:'wms:inventoryinit-request-main:handle'}), // hide: isShowMainButton(row, ['5']),
defaultButtons.mainListEditBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:inventoryinit-request-main:update'}), // hasPermi: 'wms:inventoryinit-request-main:reAdd'
}), //
defaultButtons.mainListSubmitBtn({
hide: isShowMainButton(row, ['1']),
hasPermi: 'wms:inventoryinit-request-main:submit'
}), //
defaultButtons.mainListTurnDownBtn({
hide: isShowMainButton(row, ['2']),
hasPermi: 'wms:inventoryinit-request-main:refused'
}), //
defaultButtons.mainListApproveBtn({
hide: isShowMainButton(row, ['2']),
hasPermi: 'wms:inventoryinit-request-main:agree'
}), //
defaultButtons.mainListHandleBtn({
hide: isShowMainButton(row, ['3']),
hasPermi: 'wms:inventoryinit-request-main:handle'
}), //
defaultButtons.mainListEditBtn({
hide: isShowMainButton(row, ['1']),
hasPermi: 'wms:inventoryinit-request-main:update'
}) //
] ]
} }
// - // -
const buttonTableClick = async (val, row) => { const buttonTableClick = async (val, row) => {
if (val == 'mainClose') { // if (val == 'mainClose') {
//
handleClose(row.masterId) handleClose(row.masterId)
} else if (val == 'mainReAdd') { // } else if (val == 'mainReAdd') {
//
handleReAdd(row.masterId) handleReAdd(row.masterId)
} else if (val == 'mainSubmit') { // } else if (val == 'mainSubmit') {
//
handleSubmit(row.masterId) handleSubmit(row.masterId)
} else if (val == 'mainTurnDown') { // } else if (val == 'mainTurnDown') {
//
handleRefused(row.masterId) handleRefused(row.masterId)
} else if (val == 'mainApprove') { // } else if (val == 'mainApprove') {
//
handleAgree(row.masterId) handleAgree(row.masterId)
} else if (val == 'mainHandle') { // } else if (val == 'mainHandle') {
//
handleHandle(row.masterId) handleHandle(row.masterId)
} else if (val == 'edit') { // } else if (val == 'edit') {
//
openForm('update', row) openForm('update', row)
} }
} }
/** 关闭按钮操作 */ /** 关闭按钮操作 */
const handleClose = async (id: number) => { const handleClose = async (id: number) => {
try { try {
@ -304,13 +373,13 @@ const handleClose = async (id: number) => {
await InventoryinitRequestMainApi.closeInventoryinitRequestMain(id) await InventoryinitRequestMainApi.closeInventoryinitRequestMain(id)
message.success(t('common.closeSuccess')) message.success(t('common.closeSuccess'))
tableObject.loading = false tableObject.loading = false
buttonBaseClick('refresh',null) buttonBaseClick('refresh', null)
} catch {}finally{ } catch {
} finally {
tableObject.loading = false tableObject.loading = false
} }
} }
/** 重新添加按钮操作 */ /** 重新添加按钮操作 */
const handleReAdd = async (id: number) => { const handleReAdd = async (id: number) => {
try { try {
@ -319,13 +388,13 @@ const handleReAdd = async (id: number) => {
await InventoryinitRequestMainApi.reAddInventoryinitRequestMain(id) await InventoryinitRequestMainApi.reAddInventoryinitRequestMain(id)
message.success(t('common.reAddSuccess')) message.success(t('common.reAddSuccess'))
tableObject.loading = false tableObject.loading = false
buttonBaseClick('refresh',null) buttonBaseClick('refresh', null)
} catch {}finally{ } catch {
} finally {
tableObject.loading = false tableObject.loading = false
} }
} }
/** 提交按钮操作 */ /** 提交按钮操作 */
const handleSubmit = async (id: number) => { const handleSubmit = async (id: number) => {
try { try {
@ -334,13 +403,13 @@ const handleSubmit = async (id: number) => {
await InventoryinitRequestMainApi.submitInventoryinitRequestMain(id) await InventoryinitRequestMainApi.submitInventoryinitRequestMain(id)
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false tableObject.loading = false
buttonBaseClick('refresh',null) buttonBaseClick('refresh', null)
} catch {}finally{ } catch {
} finally {
tableObject.loading = false tableObject.loading = false
} }
} }
/** 审批通过按钮操作 */ /** 审批通过按钮操作 */
const handleAgree = async (id: number) => { const handleAgree = async (id: number) => {
try { try {
@ -349,13 +418,13 @@ const handleAgree = async (id: number) => {
await InventoryinitRequestMainApi.agreeInventoryinitRequestMain(id) await InventoryinitRequestMainApi.agreeInventoryinitRequestMain(id)
message.success(t('common.agreeSuccess')) message.success(t('common.agreeSuccess'))
tableObject.loading = false tableObject.loading = false
buttonBaseClick('refresh',null) buttonBaseClick('refresh', null)
} catch {}finally{ } catch {
} finally {
tableObject.loading = false tableObject.loading = false
} }
} }
/** 处理按钮操作 */ /** 处理按钮操作 */
const handleHandle = async (id: number) => { const handleHandle = async (id: number) => {
try { try {
@ -363,13 +432,13 @@ const handleHandle = async (id: number) => {
tableObject.loading = true tableObject.loading = true
await InventoryinitRequestMainApi.handleInventoryinitRequestMain(id) await InventoryinitRequestMainApi.handleInventoryinitRequestMain(id)
message.success(t('common.handleSuccess')) message.success(t('common.handleSuccess'))
buttonBaseClick('refresh',null) buttonBaseClick('refresh', null)
} catch {}finally{ } catch {
} finally {
tableObject.loading = false tableObject.loading = false
} }
} }
/** 审批驳回按钮操作 */ /** 审批驳回按钮操作 */
const handleRefused = async (id: number) => { const handleRefused = async (id: number) => {
try { try {
@ -378,19 +447,33 @@ const handleRefused = async (id: number) => {
await InventoryinitRequestMainApi.refusedInventoryinitRequestMain(id) await InventoryinitRequestMainApi.refusedInventoryinitRequestMain(id)
message.success(t('common.refusedSuccess')) message.success(t('common.refusedSuccess'))
tableObject.loading = false tableObject.loading = false
buttonBaseClick('refresh',null) buttonBaseClick('refresh', null)
} catch {}finally{ } catch {
} finally {
tableObject.loading = false tableObject.loading = false
} }
} }
/** 添加/修改操作 */ /** 添加/修改操作 */
const formRef = ref() const formRef = ref()
const openForm =async (type: string, row?: any) => { const openForm = async (type: string, row?: any) => {
tableData.value = [] // tableData.value = [] //
const row1 = {...row} const row1 = { ...row }
if (type == 'update') { if (type == 'update') {
row1.remark = row.remark1 row1.remark = row.remark1
InventoryinitRequestMain.allSchemas.formSchema.forEach((item) => {
if (item.field == 'warehouseCode') {
item.componentProps.isSearchList = false
item.componentProps.disabled = true
}
})
} else {
InventoryinitRequestMain.allSchemas.formSchema.forEach((item) => {
if (item.field == 'warehouseCode') {
item.componentProps.isSearchList = true
item.componentProps.disabled = false
}
})
} }
formRef.value.open(type, row1) formRef.value.open(type, row1)
} }
@ -400,9 +483,11 @@ 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) => {
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,'requestInventoryinitMain') detailRef.value.openDetail(row, titleName, titleValue, 'requestInventoryinitMain')
} }
/** 删除按钮操作 */ /** 删除按钮操作 */
@ -426,7 +511,9 @@ const handleExport = async () => {
// //
loadStart() loadStart()
const excelTitle = ref(route.meta.title) const excelTitle = ref(route.meta.title)
const data = await InventoryinitRequestMainApi.exportInventoryinitRequestMain(tableObject.params) const data = await InventoryinitRequestMainApi.exportInventoryinitRequestMain(
tableObject.params
)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
@ -436,9 +523,9 @@ const handleExport = async () => {
/** /**
* tableForm方法 * tableForm方法
*/ */
const tableFormKeys = {} const tableFormKeys = {}
InventoryinitRequestDetail.allSchemas.tableFormColumns.forEach(item => { InventoryinitRequestDetail.allSchemas.tableFormColumns.forEach((item) => {
tableFormKeys[item.field] = item.default ? item.default : '' tableFormKeys[item.field] = item.default ? item.default : ''
}) })
const tableData = ref([]) const tableData = ref([])
@ -450,16 +537,16 @@ const handleAddTable = () => {
// //
const handleDeleteTable = (item, index) => { const handleDeleteTable = (item, index) => {
let itemIndex = tableData.value.indexOf(item) let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){ if (itemIndex > -1) {
tableData.value.splice(itemIndex, 1) tableData.value.splice(itemIndex, 1)
} }
} }
const tableSelectionDelete = (selection) => { const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item)) tableData.value = tableData.value.filter((item) => !selection.includes(item))
} }
// //
const submitForm = async (formType, submitData) => { const submitForm = async (formType, submitData) => {
let data = {...submitData} let data = { ...submitData }
// if(data.masterId){ // if(data.masterId){
// data.id = data.masterId // data.id = data.masterId
// } // }
@ -477,8 +564,8 @@ const submitForm = async (formType, submitData) => {
// //
if (formType === 'create') { if (formType === 'create') {
getList() getList()
}else{ } else {
buttonBaseClick('refresh',null) buttonBaseClick('refresh', null)
} }
} finally { } finally {
formRef.value.formLoading = false formRef.value.formLoading = false
@ -491,7 +578,6 @@ const handleImport = () => {
importFormRef.value.open() importFormRef.value.open()
} }
/** 线边导入 */ /** 线边导入 */
const importFormRefLine = ref() const importFormRefLine = ref()
const handleImportLine = () => { const handleImportLine = () => {

83
src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue

@ -92,6 +92,9 @@
<Detail <Detail
ref="detailRef" ref="detailRef"
:isBasic="false" :isBasic="false"
:detailButtonIsShowAdd="false"
:detailButtonIsShowEdit="false"
:detailButtonIsShowDelete="false"
:allSchemas="UnplannedreceiptRequestMain.allSchemas" :allSchemas="UnplannedreceiptRequestMain.allSchemas"
:detailAllSchemas="UnplannedreceiptRequestDetail.allSchemas" :detailAllSchemas="UnplannedreceiptRequestDetail.allSchemas"
:detailAllSchemasRules="UnplannedreceiptRequestDetailRules" :detailAllSchemasRules="UnplannedreceiptRequestDetailRules"
@ -634,11 +637,10 @@ const buttonTableClick = async (val, row) => {
} }
}) })
}) })
}finally { } finally {
tableObject.loading = false tableObject.loading = false
} }
} }
} }
/** 关闭按钮操作 */ /** 关闭按钮操作 */
@ -869,7 +871,7 @@ const submitForm = async (formType, submitData) => {
try { try {
let newVal = data.subList.some((item) => item.isEnableBuy == 'TRUE') let newVal = data.subList.some((item) => item.isEnableBuy == 'TRUE')
let newVal1 = data.subList.some((item) => item.isEnableBuy == 'FALSE') let newVal1 = data.subList.some((item) => item.isEnableBuy == 'FALSE')
console.log(newVal,newVal1) console.log(newVal, newVal1)
if (newVal && newVal1) { if (newVal && newVal1) {
message.warning('不能同时选择可制造和可采购的物料') message.warning('不能同时选择可制造和可采购的物料')
return return
@ -958,25 +960,29 @@ const submitFormLabel = async (formType, data) => {
try { try {
formLabelRef.value.formLoading = true formLabelRef.value.formLoading = true
detatableData.tableList.forEach(async (item) => { detatableData.tableList.forEach(async (item) => {
const unitConversion = await UnitConversionApi.getUnitConversionByCode(item.itemCode); const unitConversion = await UnitConversionApi.getUnitConversionByCode(item.itemCode)
let convertRate = 1// let convertRate = 1 //
let purchaseUom = item.uom// let purchaseUom = item.uom //
let purchaseStdQty// let purchaseStdQty //
if(unitConversion!=null){ if (unitConversion != null) {
if(unitConversion.convertRate!=null&&unitConversion.convertRate!='' && unitConversion.convertRate!=0){ if (
convertRate = unitConversion.convertRate; unitConversion.convertRate != null &&
} unitConversion.convertRate != '' &&
if(unitConversion.purchaseUom!=null&&unitConversion.purchaseUom!='' ){ unitConversion.convertRate != 0
purchaseUom = unitConversion.purchaseUom; ) {
} convertRate = unitConversion.convertRate
} }
let purchaseQty = (item.qty / convertRate).toFixed(5);// if (unitConversion.purchaseUom != null && unitConversion.purchaseUom != '') {
purchaseStdQty = (item.packQty / convertRate).toFixed(5);// purchaseUom = unitConversion.purchaseUom
item.purchaseQty = purchaseQty;// }
item.convertRate = convertRate;// }
item.purchaseStdQty = purchaseStdQty;// let purchaseQty = (item.qty / convertRate).toFixed(5) //
item.purchaseUom = purchaseUom;// purchaseStdQty = (item.packQty / convertRate).toFixed(5) //
console.log('item======================',item) item.purchaseQty = purchaseQty //
item.convertRate = convertRate //
item.purchaseStdQty = purchaseStdQty //
item.purchaseUom = purchaseUom //
console.log('item======================', item)
await PackageApi.createPackageLabel(item) await PackageApi.createPackageLabel(item)
.then((res) => { .then((res) => {
isCreateLabel.value = true isCreateLabel.value = true
@ -1070,13 +1076,15 @@ const labelPrint = async (row) => {
try { try {
await PackageApi.getPackagePage({ await PackageApi.getPackagePage({
requestNumber: row.number requestNumber: row.number
}).then((res) => { })
.then((res) => {
if (res.list.length > 0) { if (res.list.length > 0) {
isCreateLabel.value = true isCreateLabel.value = true
} else { } else {
isCreateLabel.value = false isCreateLabel.value = false
} }
}).catch((err) => { })
.catch((err) => {
isCreateLabel.value = false isCreateLabel.value = false
console.log(err) console.log(err)
}) })
@ -1085,18 +1093,35 @@ const labelPrint = async (row) => {
// labelPrint(row) // labelPrint(row)
await UnplannedreceiptRequestDetailApi.getDetailList(row.masterId).then(async (res) => { await UnplannedreceiptRequestDetailApi.getDetailList(row.masterId).then(async (res) => {
if (res.length > 0) { if (res.length > 0) {
const itemType = res.some((item) => item.itemType == '可采购' && item.itemBasicType =='TOOL')// const itemType = res.some(
const itemType2 = res.some((item) => item.itemType == '可采购' && item.itemBasicType !='TOOL') (item) => item.itemType == '可采购' && item.itemBasicType == 'TOOL'
) //
const itemType2 = res.some(
(item) => item.itemType == '可采购' && item.itemBasicType != 'TOOL'
)
const itemType1 = res.some((item) => item.itemType == '可制造') const itemType1 = res.some((item) => item.itemType == '可制造')
if (itemType) { if (itemType) {
window.open( BASE_URL + '/jmreport/view/1028102732077142016?token=' + getAccessToken() + '&request_number=' + row.number ) window.open(
BASE_URL +
'/jmreport/view/1028102732077142016?token=' +
getAccessToken() +
'&request_number=' +
row.number
)
} }
if (itemType2) { if (itemType2) {
window.open( BASE_URL + '/jmreport/view/1016234988731322368?token=' + getAccessToken() + '&request_number=' + row.number ) window.open(
BASE_URL +
'/jmreport/view/1016234988731322368?token=' +
getAccessToken() +
'&request_number=' +
row.number
)
} }
if (itemType1) { if (itemType1) {
// window.open(src.value + '&request_number=' + row.number) // window.open(src.value + '&request_number=' + row.number)
await PackageApi.batchPrintingLableForYT(row.number).then((res) => { await PackageApi.batchPrintingLableForYT(row.number)
.then((res) => {
console.log(res) console.log(res)
const src = ref( const src = ref(
BASE_URL + '/jmreport/view/922734157577715712?token=' + getAccessToken() BASE_URL + '/jmreport/view/922734157577715712?token=' + getAccessToken()

24
src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/unplannedreceiptRequestMain.data.ts

@ -1423,18 +1423,18 @@ export const UnplannedreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[
isTableForm: false, isTableForm: false,
isForm: false isForm: false
}, },
{ // {
label: '操作', // label: '操作',
field: 'action', // field: 'action',
isDetail: false, // isDetail: false,
hiddenInMain:true, // hiddenInMain:true,
isForm: false , // isForm: false ,
table: { // table: {
width: 150, // width: 150,
fixed: 'right' // fixed: 'right'
}, // },
isTableForm:false, // isTableForm:false,
} // }
])) ]))
function validateQty(rule, value, callback) { function validateQty(rule, value, callback) {
if (value>0) { if (value>0) {

416
src/views/wms/issueManage/repleinsh/repleinshRequestMain/repleinshRequestMain.data.ts

@ -15,28 +15,29 @@ const { t } = useI18n() // 国际化
// 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值 // 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值
const queryParams = { const queryParams = {
pageSize:10, pageSize: 10,
pageNo:1, pageNo: 1,
code:'RepleinmentRequest', code: 'RepleinmentRequest',
businessTypeCode: 'Repleinment' businessTypeCode: 'Repleinment'
} }
const data = await getRequestsettingApi.getRequestsettingPage(queryParams) const data = await getRequestsettingApi.getRequestsettingPage(queryParams)
const requestsettingData =data?.list[0]||{} const requestsettingData = data?.list[0] || {}
// 获取当前操作人的部门 // 获取当前操作人的部门
import { useUserStore } from '@/store/modules/user' import { useUserStore } from '@/store/modules/user'
import { TableColumn } from '@/types/table' import { TableColumn } from '@/types/table'
import {getLocationPageRepleinsh} from "@/api/wms/location"; import { getLocationPageRepleinsh } from '@/api/wms/location'
const userStore = useUserStore() const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept const userDept = userStore.userSelfInfo.dept
// id 转str 否则form回显匹配不到 // id 转str 否则form回显匹配不到
userDept.id = userDept.id.toString() userDept.id = userDept.id.toString()
const userDeptArray:any = [userDept] const userDeptArray: any = [userDept]
/** /**
* @returns {Array} * @returns {Array}
*/ */
export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ export const RepleinshRequestMain = useCrudSchemas(
reactive<CrudSchema[]>([
{ {
label: '单据号', label: '单据号',
field: 'number', field: 'number',
@ -47,18 +48,18 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isForm: false, isForm: false,
isSearch: true, isSearch: true,
sortSearchDefault:1, sortSearchDefault: 1
}, },
{ {
label: '状态', label: '状态',
field: 'status', field: 'status',
dictType: DICT_TYPE.REQUEST_STATUS, dictType: DICT_TYPE.REQUEST_STATUS,
dictClass: 'string', dictClass: 'string',
isForm:false, isForm: false,
isTable: true, isTable: true,
isSearch: true, isSearch: true,
sort: 'custom', sort: 'custom',
sortTableDefault:1, sortTableDefault: 1,
table: { table: {
width: 150 width: 150
}, },
@ -69,65 +70,6 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{
label: '到库位代码',
field: 'toLocationCode',
sort: 'custom',
table: {
width: 150
},
hiddenInMain:true,
// isTableForm: false,
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
enterSearch:true,
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择到库位代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '库位信息', // 查询弹窗标题
searchAllSchemas: Location.allSchemas, // 查询弹窗所需类
searchPage: LocationApi.getLocationPageRepleinsh, // 查询弹窗所需分页方法
searchCondition:[{
key: 'available',
value: 'TRUE',
isMainValue: false
}],
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
}
},
tableForm:{
isInpuFocusShow: true,
searchListPlaceholder: '请选择到库位代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '库位信息', // 查询弹窗标题
searchAllSchemas: Location.allSchemas, // 查询弹窗所需类
searchPage: LocationApi.getLocationPageRepleinsh, // 查询弹窗所需分页方法
searchCondition:[{
key: 'available',
value: 'TRUE',
isMainValue: false
}]
},
},
{
label: '来源',
field: 'sourceType',
sort: 'custom',
table: {
width: 150
},
isForm: false,
isTable: true,
isDetail: true
},
{ {
label: '生产线代码', label: '生产线代码',
field: 'productionLineCode', field: 'productionLineCode',
@ -150,9 +92,9 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
isTable: true, isTable: true,
isDetail: true isDetail: true
}, },
{ {
label: '日期', label: '日期',
sortTableDefault:5, sortTableDefault: 5,
field: 'day', field: 'day',
sort: 'custom', sort: 'custom',
isDetail: true, isDetail: true,
@ -182,9 +124,75 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
detail: { detail: {
dateFormat:'YYYY-MM-DD' dateFormat: 'YYYY-MM-DD'
} }
}, },
{
label: '到库位代码',
field: 'toLocationCode',
sort: 'custom',
table: {
width: 150
},
hiddenInMain: true,
// isTableForm: false,
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
enterSearch: true,
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择到库位代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '库位信息', // 查询弹窗标题
searchAllSchemas: Location.allSchemas, // 查询弹窗所需类
searchPage: LocationApi.getLocationPageRepleinsh, // 查询弹窗所需分页方法
searchCondition: [
{
key: 'available',
value: 'TRUE',
isMainValue: false
}
],
verificationParams: [
{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true
}
] // 失去焦点校验参数
}
},
tableForm: {
isInpuFocusShow: true,
searchListPlaceholder: '请选择到库位代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '库位信息', // 查询弹窗标题
searchAllSchemas: Location.allSchemas, // 查询弹窗所需类
searchPage: LocationApi.getLocationPageRepleinsh, // 查询弹窗所需分页方法
searchCondition: [
{
key: 'available',
value: 'TRUE',
isMainValue: false
}
]
}
},
{
label: '来源',
field: 'sourceType',
sort: 'custom',
table: {
width: 150
},
isForm: false,
isTable: true,
isDetail: true
},
{ {
label: '便次', label: '便次',
field: 'deliNo', field: 'deliNo',
@ -193,12 +201,12 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
isTable:true, isTable: true,
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: { componentProps: {
min: 1, min: 1
}, }
} }
}, },
{ {
@ -211,7 +219,7 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
isForm: false, isForm: false
}, },
{ {
label: '到库区类型范围', label: '到库区类型范围',
@ -223,7 +231,7 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
isForm: false, isForm: false
}, },
{ {
label: '从库区代码范围', label: '从库区代码范围',
@ -233,7 +241,7 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
isTable: false, isTable: false,
isForm: false, isForm: false
}, },
{ {
label: '到库区代码范围', label: '到库区代码范围',
@ -243,7 +251,7 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
isTable: false, isTable: false,
isForm: false, isForm: false
}, },
{ {
label: '申请时间', label: '申请时间',
@ -260,13 +268,13 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
style: { width:'100%'}, style: { width: '100%' },
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x'
} }
}, },
isForm: false, isForm: false
}, },
{ {
label: '截止时间', label: '截止时间',
@ -283,18 +291,18 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
style: { width:'100%'}, style: { width: '100%' },
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x'
}
} }
},
}, },
{ {
label: '部门', label: '部门',
field: 'departmentCode', field: 'departmentCode',
sort: 'custom', sort: 'custom',
isForm:false, isForm: false,
table: { table: {
width: 150 width: 150
}, },
@ -322,14 +330,14 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
isTable:false, isTable: false,
form: { form: {
value: 'Repleinment', value: 'Repleinment',
componentProps: { componentProps: {
disabled: true disabled: true
} }
}, },
isForm: false, isForm: false
}, },
{ {
label: '备注', label: '备注',
@ -388,7 +396,7 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isTable: false, isTable: false,
isForm:false, isForm: false,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -408,7 +416,7 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'autoAgree', field: 'autoAgree',
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isForm:false, isForm: false,
isTable: false, isTable: false,
sort: 'custom', sort: 'custom',
table: { table: {
@ -429,7 +437,7 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'autoExecute', field: 'autoExecute',
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isForm:false, isForm: false,
isTable: false, isTable: false,
sort: 'custom', sort: 'custom',
table: { table: {
@ -482,7 +490,7 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
componentProps: { componentProps: {
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x'
} }
}, },
isForm: false, isForm: false,
@ -493,8 +501,8 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
valueFormat: 'YYYY-MM-DD HH:mm:ss', valueFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'daterange', type: 'daterange',
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')]
}, }
}, }
}, },
{ {
label: '创建者', label: '创建者',
@ -504,7 +512,7 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
isTable: true, isTable: true,
isForm: false, isForm: false
}, },
{ {
label: '最后更新时间', label: '最后更新时间',
@ -518,18 +526,18 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 180 width: 180
}, },
isDetail: true, isDetail: true,
hiddenInMain:true, hiddenInMain: true,
isTable: false, isTable: false,
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
style: { width:'100%'}, style: { width: '100%' },
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x'
} }
}, },
isForm: false, isForm: false
}, },
{ {
label: '最后更新者', label: '最后更新者',
@ -538,11 +546,11 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
hiddenInMain:true, hiddenInMain: true,
isTable: false, isTable: false,
isDetail: true, isDetail: true,
isForm: false, isForm: false
}, }
// { // {
// label: '操作', // label: '操作',
// field: 'action', // field: 'action',
@ -573,52 +581,32 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
// }, // },
// sortTableDefault:8, // sortTableDefault:8,
// }, // },
])) ])
)
//表单校验 //表单校验
export const RepleinshRequestMainRules = reactive({ export const RepleinshRequestMainRules = reactive({
fromWarehouseCode: [ fromWarehouseCode: [{ required: true, message: '请输入从仓库代码', trigger: 'blur' }],
{ required: true, message: '请输入从仓库代码', trigger: 'blur' } fromAreaTypes: [{ required: true, message: '请选择从库区类型范围', trigger: 'change' }],
], toWarehouseCode: [{ required: true, message: '请输入到仓库代码', trigger: 'blur' }],
fromAreaTypes: [ toAreaTypes: [{ required: true, message: '请选择到库区类型范围', trigger: 'change' }],
{ required: true, message: '请选择从库区类型范围', trigger: 'change' } departmentCode: [{ required: true, message: '请输入部门', trigger: 'blur' }],
], autoCommit: [{ required: true, message: '请选择是否自动提交', trigger: 'change' }],
toWarehouseCode: [ autoAgree: [{ required: true, message: '请选择是否自动通过', trigger: 'change' }],
{ required: true, message: '请输入到仓库代码', trigger: 'blur' } autoExecute: [{ required: true, message: '请选择是否自动执行', trigger: 'change' }],
], toLocationCode: [{ required: true, message: '请输入到库位代码', trigger: ['change', 'blur'] }],
toAreaTypes: [
{ required: true, message: '请选择到库区类型范围', trigger: 'change' }
],
departmentCode: [
{ required: true, message: '请输入部门', trigger: 'blur' }
],
autoCommit: [
{ required: true, message: '请选择是否自动提交', trigger: 'change' }
],
autoAgree: [
{ required: true, message: '请选择是否自动通过', trigger: 'change' }
],
autoExecute: [
{ required: true, message: '请选择是否自动执行', trigger: 'change' }
],
toLocationCode: [
{ required: true, message: '请输入到库位代码', trigger: ['change', 'blur']}
],
directCreateRecord: [ directCreateRecord: [
{ required: true, message: '请选择是否跳过任务直接生成记录', trigger: 'change' } { required: true, message: '请选择是否跳过任务直接生成记录', trigger: 'change' }
], ],
businessType: [ businessType: [{ required: true, message: '请输入业务类型', trigger: 'blur' }],
{ required: true, message: '请输入业务类型', trigger: 'blur' } remark: [{ max: 50, message: '不得超过50个字符', trigger: 'blur' }]
],
remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
}) })
/** /**
* @returns {Array} * @returns {Array}
*/ */
export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ export const RepleinshRequestDetail = useCrudSchemas(
reactive<CrudSchema[]>([
{ {
label: '品番', label: '品番',
field: 'itemCode', field: 'itemCode',
@ -626,9 +614,9 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
isSearch:true, isSearch: true,
sortSearchDefault:2, sortSearchDefault: 2,
sortTableDefault:3, sortTableDefault: 3,
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
@ -638,49 +626,56 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
searchTitle: '物料基础信息', // 查询弹窗标题 searchTitle: '物料基础信息', // 查询弹窗标题
searchAllSchemas: Itembasic.allSchemas, // 查询弹窗所需类 searchAllSchemas: Itembasic.allSchemas, // 查询弹窗所需类
searchPage: ItembasicApi.getItembasicPage, // 查询弹窗所需分页方法 searchPage: ItembasicApi.getItembasicPage, // 查询弹窗所需分页方法
searchCondition:[{ searchCondition: [
{
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
isMainValue: false isMainValue: false
}] }
]
} }
}, },
tableForm:{ tableForm: {
multiple:true, multiple: true,
disabled:true, disabled: true,
// isInpuFocusShow: true, // isInpuFocusShow: true,
searchListPlaceholder: '请选择品番', // 输入框占位文本 searchListPlaceholder: '请选择品番', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段 searchField: 'code', // 查询弹窗赋值字段
searchTitle: '物料基础信息', // 查询弹窗标题 searchTitle: '物料基础信息', // 查询弹窗标题
searchAllSchemas: Itembasic.allSchemas, // 查询弹窗所需类 searchAllSchemas: Itembasic.allSchemas, // 查询弹窗所需类
searchPage: ItembasicApi.getItembasicPage, // 查询弹窗所需分页方法 searchPage: ItembasicApi.getItembasicPage, // 查询弹窗所需分页方法
searchCondition:[{ searchCondition: [
{
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
isMainValue: false isMainValue: false
},{ },
key : 'businessTypeCode', {
key: 'businessTypeCode',
value: queryParams.businessTypeCode value: queryParams.businessTypeCode
}], }
],
verificationPage: ItembasicApi.getItemListByCodes, // 校验数去焦点输入是否正确的方法 verificationPage: ItembasicApi.getItemListByCodes, // 校验数去焦点输入是否正确的方法
isShowTableFormSearch: true, isShowTableFormSearch: true,
verificationParams: [{ verificationParams: [
{
key: 'code', key: 'code',
action: '==', action: '==',
value: '', value: '',
isMainValue: false, isMainValue: false,
isSearch: true, isSearch: true,
isFormModel: true, isFormModel: true
}], // 失去焦点校验参数 }
}, ] // 失去焦点校验参数
}
}, },
{ {
label: '品名', label: '品名',
field: 'itemName', field: 'itemName',
sort: 'custom', sort: 'custom',
sortTableDefault:4, sortTableDefault: 4,
isTableForm: false, isTableForm: false,
isForm: false, isForm: false
}, },
{ {
label: '背番', label: '背番',
@ -700,17 +695,17 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
hiddenInMain:true, hiddenInMain: true,
isTableForm: false, isTableForm: false,
isForm: false, isForm: false
}, },
{ {
label: '数量', label: '数量',
field: 'unexecutedQty', field: 'unexecutedQty',
sort: 'custom', sort: 'custom',
sortTableDefault:4, sortTableDefault: 4,
isTableForm: false, isTableForm: false,
isForm: false, isForm: false
}, },
{ {
label: '计量单位', label: '计量单位',
@ -722,7 +717,7 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
sortTableDefault:9, sortTableDefault: 9,
tableForm: { tableForm: {
type: 'Select', type: 'Select',
disabled: true disabled: true
@ -740,14 +735,14 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
hiddenInMain:true, hiddenInMain: true,
sortSearchDefault:1000, sortSearchDefault: 1000,
// isSearch: true, // isSearch: true,
sortTableDefault:1100, sortTableDefault: 1100,
isTableForm: false, isTableForm: false,
form: { form: {
componentProps: { componentProps: {
disabled:true, disabled: true
} }
} }
}, },
@ -781,17 +776,19 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
dictType: DICT_TYPE.INVENTORY_STATUS, dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string', dictClass: 'string',
isTableForm: false, isTableForm: false,
isTable:false, isTable: false,
sort: 'custom', sort: 'custom',
form: { form: {
value: 'OK', value: 'OK',
componentProps: { componentProps: {
disabled: true, disabled: true,
searchCondition:[{ searchCondition: [
{
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
isMainValue: false isMainValue: false
}] }
]
} }
}, },
table: { table: {
@ -811,9 +808,9 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 180 width: 180
}, },
hiddenInMain:true, hiddenInMain: true,
isTableForm: false, isTableForm: false,
isTable:false, isTable: false,
form: { form: {
componentProps: { componentProps: {
disabled: true disabled: true
@ -825,12 +822,12 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
label: '备注', label: '备注',
field: 'remark', field: 'remark',
sort: 'custom', sort: 'custom',
isTableForm:false, isTableForm: false,
table: { table: {
width: 150 width: 150
}, },
isTable:false, isTable: false,
hiddenInMain:true, hiddenInMain: true
}, },
{ {
label: '创建时间', label: '创建时间',
@ -843,14 +840,14 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 180 width: 180
}, },
hiddenInMain:true, hiddenInMain: true,
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
style: { width:'100%'}, style: { width: '100%' },
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x'
} }
}, },
isTableForm: false, isTableForm: false,
@ -863,7 +860,7 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
hiddenInMain:true, hiddenInMain: true,
isTableForm: false, isTableForm: false,
isForm: false isForm: false
}, },
@ -875,10 +872,10 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
hiddenInMain:true, hiddenInMain: true,
isTableForm: false, isTableForm: false,
isTable:false, isTable: false,
isForm: false, isForm: false
}, },
{ {
@ -888,10 +885,10 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
hiddenInMain:true, hiddenInMain: true,
isTableForm: false, isTableForm: false,
sortTableDefault:1, sortTableDefault: 1,
isTable:false, isTable: false
}, },
{ {
label: '订单行', label: '订单行',
@ -900,10 +897,10 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
hiddenInMain:true, hiddenInMain: true,
isTableForm: false, isTableForm: false,
sortTableDefault:2, sortTableDefault: 2,
isTable:false, isTable: false
}, },
{ {
@ -915,8 +912,8 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isTableForm: false, isTableForm: false,
isForm: false, isForm: false,
hiddenInMain:true, hiddenInMain: true,
isTable:false, isTable: false
}, },
{ {
label: '到货主代码', label: '到货主代码',
@ -927,8 +924,8 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isTableForm: false, isTableForm: false,
isForm: false, isForm: false,
hiddenInMain:true, hiddenInMain: true,
isTable:false, isTable: false
}, },
{ {
label: '最后更新时间', label: '最后更新时间',
@ -941,17 +938,17 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 180 width: 180
}, },
isTable:false, isTable: false,
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
style: { width:'100%'}, style: { width: '100%' },
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x'
} }
}, },
hiddenInMain:true, hiddenInMain: true,
isTableForm: false, isTableForm: false,
isForm: false isForm: false
}, },
@ -963,10 +960,10 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
isTableForm: false, isTableForm: false,
hiddenInMain:true, hiddenInMain: true,
isTable:false, isTable: false,
isForm: false isForm: false
}, }
// { // {
// label: '未执行任务数量', // label: '未执行任务数量',
// field: 'unexecutedQty', // field: 'unexecutedQty',
@ -992,7 +989,8 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
// }, // },
// isTableForm:false, // isTableForm:false,
// } // }
])) ])
)
//表单校验 //表单校验
export const RepleinshRequestDetailRules = reactive({ export const RepleinshRequestDetailRules = reactive({
@ -1002,10 +1000,6 @@ export const RepleinshRequestDetailRules = reactive({
// toLocationCode: [ // toLocationCode: [
// { required: true, message: '请输入到库位代码', trigger: 'blur' } // { required: true, message: '请输入到库位代码', trigger: 'blur' }
// ], // ],
itemCode: [ itemCode: [{ required: true, message: '请输入品番', trigger: 'blur' }],
{ required: true, message: '请输入品番', trigger: 'blur' } remark: [{ max: 50, message: '不得超过50个字符', trigger: 'blur' }]
],
remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
}) })

28
src/views/wms/productionManage/productreceipt/productreceiptJobMain/productreceiptJobMain.data.ts

@ -16,6 +16,7 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
fixed: 'left' fixed: 'left'
}, },
isSearch: true, isSearch: true,
sortTableDefault:1
}, },
{ {
label: '申请单号', label: '申请单号',
@ -25,6 +26,7 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 180 width: 180
}, },
isSearch: true, isSearch: true,
sortTableDefault:7
}, },
{ {
label: '状态', label: '状态',
@ -37,6 +39,7 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
sortTableDefault:8
}, },
{ {
label: '生产计划单号', label: '生产计划单号',
@ -48,6 +51,7 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: true, isSearch: true,
isForm: false, isForm: false,
isTable:true, isTable:true,
sortTableDefault:10
}, },
{ {
label: '车间代码', label: '车间代码',
@ -56,6 +60,7 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
sortTableDefault:13
}, },
{ {
label: '生产线代码', label: '生产线代码',
@ -65,6 +70,7 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
sortTableDefault:16
}, },
{ {
label: '班组', label: '班组',
@ -74,6 +80,7 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
sortTableDefault:13
}, },
{ {
label: '班组', label: '班组',
@ -93,6 +100,7 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
sortTableDefault:14
}, },
{ {
label: '班次', label: '班次',
@ -716,16 +724,15 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '批次', label: '批次',
field: 'batch', field: 'batch',
sortTableDefault:1002,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
sortTableDefault:12
}, },
{ {
label: '生产日期', label: '生产日期',
field: 'produceDate', field: 'produceDate',
sortTableDefault:1008,
formatter: dateFormatter2, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD' dateFormat: 'YYYY-MM-DD'
@ -743,6 +750,7 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
valueFormat: 'x', valueFormat: 'x',
} }
}, },
sortTableDefault:9
}, },
{ {
label: '过期日期', label: '过期日期',
@ -770,7 +778,6 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '库存状态', label: '库存状态',
field: 'inventoryStatus', field: 'inventoryStatus',
sortTableDefault:1007,
dictType: DICT_TYPE.INVENTORY_STATUS, dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: true,
@ -778,15 +785,16 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
sortTableDefault:11
}, },
{ {
label: '到库位代码', label: '到库位代码',
field: 'toLocationCode', field: 'toLocationCode',
sortTableDefault:1009,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
sortTableDefault:10
}, },
{ {
label: '订单号', label: '订单号',
@ -836,20 +844,20 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '品番', label: '品番',
field: 'itemCode', field: 'itemCode',
sortTableDefault:1000,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
sortTableDefault:2
}, },
{ {
label: '品名', label: '品名',
field: 'itemName', field: 'itemName',
sortTableDefault:1001,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
sortTableDefault:4
}, },
{ {
label: '背番', label: '背番',
@ -861,7 +869,6 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isTableForm: false, isTableForm: false,
isForm: false, isForm: false,
sortTableDefault: 1001,
tableForm: { tableForm: {
disabled: true disabled: true
}, },
@ -869,7 +876,8 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
componentProps: { componentProps: {
disabled: true disabled: true
} }
} },
sortTableDefault:3
}, },
// { // {
// label: '背番', // label: '背番',
@ -905,13 +913,13 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
label: '数量', label: '数量',
field: 'qty', field: 'qty',
sort: 'custom', sort: 'custom',
sortTableDefault:1005,
table: { table: {
width: 150 width: 150
}, },
form: { form: {
component: 'InputNumber', component: 'InputNumber',
} }
,sortTableDefault:5
}, },
{ {
label: '计量单位', label: '计量单位',
@ -948,11 +956,11 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '创建者', label: '创建者',
field: 'creator', field: 'creator',
sortTableDefault:1011,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
sortTableDefault:6
}, },
{ {
label: '创建时间', label: '创建时间',

13
src/views/wms/productionManage/productreceipt/productreceiptRecordMain/productreceiptRecordMain.data.ts

@ -15,7 +15,8 @@ export const ProductreceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 180, width: 180,
fixed: 'left' fixed: 'left'
}, },
isSearch: true isSearch: true,
sortTableDefault:1
}, },
{ {
label: '申请单据号', label: '申请单据号',
@ -24,7 +25,8 @@ export const ProductreceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 180 width: 180
}, },
isSearch: true isSearch: true,
sortTableDefault:7
}, },
{ {
label: '任务单号', label: '任务单号',
@ -280,7 +282,8 @@ export const ProductreceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
return '否' return '否'
} }
} }
} },
sortTableDefault:8
}, },
{ {
label: '创建者', label: '创建者',
@ -498,6 +501,7 @@ export const ProductreceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 150 width: 150
}, },
sortTableDefault:2
}, },
{ {
label: '品名', label: '品名',
@ -506,6 +510,7 @@ export const ProductreceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 150 width: 150
}, },
sortTableDefault:4
}, },
{ {
label: '背番', label: '背番',
@ -525,6 +530,7 @@ export const ProductreceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
disabled: true disabled: true
} }
} }
,sortTableDefault:3
}, },
// { // {
// label: '背番', // label: '背番',
@ -579,6 +585,7 @@ export const ProductreceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
form: { form: {
component: 'InputNumber', component: 'InputNumber',
} }
,sortTableDefault:5
}, },
{ {
label: '计量单位', label: '计量单位',

41
src/views/wms/productionManage/productreceipt/productreceiptRequestMain/productreceiptRequestMain.data.ts

@ -68,6 +68,7 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isForm: false, isForm: false,
isSearch: true, isSearch: true,
sortTableDefault:1
}, },
{ {
label: '状态', label: '状态',
@ -87,6 +88,7 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
disabled: true disabled: true
} }
} }
,sortTableDefault:6
}, },
{ {
label: '生产计划单号', label: '生产计划单号',
@ -97,7 +99,8 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isSearch: true, isSearch: true,
isForm: false, isForm: false,
isTable: true, isTable: true
,sortTableDefault:9
}, },
{ {
label: '车间代码', label: '车间代码',
@ -132,6 +135,7 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
}], // 失去焦点校验参数 }], // 失去焦点校验参数
} }
} }
,sortTableDefault:10
}, },
{ {
label: '生产线代码', label: '生产线代码',
@ -193,7 +197,8 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
isFormModel: true, isFormModel: true,
}], // 失去焦点校验参数 }], // 失去焦点校验参数
} }
} },
sortTableDefault:11
}, },
{ {
label: '班组', label: '班组',
@ -203,7 +208,6 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
isTable:false, isTable:false,
sortTableDefault: 1000,
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
@ -229,6 +233,7 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
}], // 失去焦点校验参数 }], // 失去焦点校验参数
} }
} }
,sortTableDefault:14
}, },
{ {
label: '班组', label: '班组',
@ -239,7 +244,7 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isDetail:false, isDetail:false,
isForm:false, isForm:false,
sortTableDefault: 1001, sortTableDefault: 14,
}, },
{ {
label: '班次', label: '班次',
@ -249,7 +254,6 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
isTable:false, isTable:false,
sortTableDefault: 1001,
form: { form: {
component:'Select', component:'Select',
componentProps:{ componentProps:{
@ -268,7 +272,7 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
}], // 失去焦点校验参数 }], // 失去焦点校验参数
} }
} }
,sortTableDefault:15
}, },
{ {
label: '班次', label: '班次',
@ -279,7 +283,6 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isForm:false, isForm:false,
isDetail:false, isDetail:false,
sortTableDefault: 1001,
isSearch: true, isSearch: true,
search: { search: {
component:'Select', component:'Select',
@ -291,7 +294,7 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
} }
} }
,sortTableDefault:15
}, },
{ {
label: '收货类型', label: '收货类型',
@ -688,6 +691,7 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
}] }]
} }
} }
,sortTableDefault:11
}, },
{ {
label: '工位代码', label: '工位代码',
@ -755,6 +759,7 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
}], // 失去焦点校验参数 }], // 失去焦点校验参数
} }
} }
,sortTableDefault:12
}, },
{ {
label: '工序代码', label: '工序代码',
@ -835,6 +840,7 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
}], // 失去焦点校验参数 }], // 失去焦点校验参数
} }
} }
,sortTableDefault:13
}, },
{ {
label: '包装号', label: '包装号',
@ -963,7 +969,6 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
label: '品番', label: '品番',
field: 'itemCode', field: 'itemCode',
sort: 'custom', sort: 'custom',
sortTableDefault: 1003,
table: { table: {
width: 150 width: 150
}, },
@ -1029,6 +1034,7 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
}], // 失去焦点校验参数 }], // 失去焦点校验参数
} }
} }
,sortTableDefault:2
}, },
{ {
label: '背番', label: '背番',
@ -1039,7 +1045,6 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
}, },
isSearch:true, isSearch:true,
isForm: false, isForm: false,
sortTableDefault: 1003,
sortSearchDefault: 5, sortSearchDefault: 5,
tableForm: { tableForm: {
disabled: true, disabled: true,
@ -1050,6 +1055,7 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
disabled: true disabled: true
} }
} }
,sortTableDefault:3
}, },
{ {
label: 'Bom版本', label: 'Bom版本',
@ -1058,7 +1064,6 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
table: { table: {
width: 150 width: 150
}, },
sortTableDefault: 1004,
tableForm: { tableForm: {
isInpuFocusShow: true, isInpuFocusShow: true,
searchListPlaceholder: '请选择Bom版本', // 输入框占位文本 searchListPlaceholder: '请选择Bom版本', // 输入框占位文本
@ -1098,12 +1103,13 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
}] }]
} }
}, },
sortTableDefault:16
}, },
{ {
label: '批次', label: '批次',
field: 'batch', field: 'batch',
sort: 'custom', sort: 'custom',
sortTableDefault: 1006, sortTableDefault: 17,
table: { table: {
width: 150 width: 150
}, },
@ -1112,12 +1118,12 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
label: '品名', label: '品名',
field: 'itemName', field: 'itemName',
sort: 'custom', sort: 'custom',
sortTableDefault: 1005,
table: { table: {
width: 150 width: 150
}, },
isTableForm: false, isTableForm: false,
isForm: false isForm: false
,sortTableDefault:4
}, },
// { // {
// label: '背番', // label: '背番',
@ -1159,7 +1165,6 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
label: '数量', label: '数量',
field: 'qty', field: 'qty',
sort: 'custom', sort: 'custom',
sortTableDefault: 1006,
table: { table: {
width: 150 width: 150
}, },
@ -1177,13 +1182,13 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
max:9999, max:9999,
// precision: 6 // precision: 6
} }
,sortTableDefault:5
}, },
{ {
label: '计量单位', label: '计量单位',
field: 'uom', field: 'uom',
dictType: DICT_TYPE.UOM, dictType: DICT_TYPE.UOM,
dictClass: 'string', dictClass: 'string',
sortTableDefault: 1007,
isTable: true, isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
@ -1198,7 +1203,7 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
disabled: true disabled: true
} }
} }
,sortTableDefault:7
}, },
{ {
label: '生产日期', label: '生产日期',
@ -1207,7 +1212,6 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
detail: { detail: {
dateFormat: 'YYYY-MM-DD' dateFormat: 'YYYY-MM-DD'
}, },
sortTableDefault: 1008,
sort: 'custom', sort: 'custom',
table: { table: {
width: 180 width: 180
@ -1224,7 +1228,8 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
dateFormat: 'YYYY-MM-DD', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, }
,sortTableDefault:8
}, },
{ {
label: '过期日期', label: '过期日期',

9
src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleJobMain/productreceiptAssembleJobMain.data.ts

@ -16,6 +16,7 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
fixed: 'left' fixed: 'left'
}, },
isSearch: true, isSearch: true,
sortTableDefault:1
}, },
{ {
label: '申请单号', label: '申请单号',
@ -837,20 +838,20 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '品番', label: '品番',
field: 'itemCode', field: 'itemCode',
sortTableDefault:1000,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
sortTableDefault:2
}, },
{ {
label: '品名', label: '品名',
field: 'itemName', field: 'itemName',
sortTableDefault:1001,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, }
,sortTableDefault:4
}, },
{ {
label: '背番', label: '背番',
@ -862,7 +863,6 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isTableForm: false, isTableForm: false,
isForm: false, isForm: false,
sortTableDefault: 1001,
tableForm: { tableForm: {
disabled: true disabled: true
}, },
@ -871,6 +871,7 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
disabled: true disabled: true
} }
} }
,sortTableDefault:3
}, },
// { // {
// label: '背番', // label: '背番',

8
src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/productreceiptAssembleRecordMain.data.ts

@ -15,7 +15,8 @@ export const ProductreceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 180, width: 180,
fixed: 'left' fixed: 'left'
}, },
isSearch: true isSearch: true,
sortTableDefault:1
}, },
{ {
label: '申请单号', label: '申请单号',
@ -502,6 +503,7 @@ export const ProductreceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 150 width: 150
}, },
sortTableDefault:2
}, },
{ {
label: '品名', label: '品名',
@ -510,6 +512,7 @@ export const ProductreceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 150 width: 150
}, },
sortTableDefault:4
}, },
{ {
label: '背番', label: '背番',
@ -528,7 +531,8 @@ export const ProductreceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
componentProps: { componentProps: {
disabled: true disabled: true
} }
} },
sortTableDefault:3
}, },
// { // {
// label: '背番', // label: '背番',

10
src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/productreceiptAssembleRequestMain.data.ts

@ -74,7 +74,8 @@ export const ProductreceiptRequestMain = useCrudSchemas(
fixed: 'left' fixed: 'left'
}, },
isForm: false, isForm: false,
isSearch: true isSearch: true,
sortTableDefault:1
}, },
{ {
label: '状态', label: '状态',
@ -94,6 +95,7 @@ export const ProductreceiptRequestMain = useCrudSchemas(
disabled: true disabled: true
} }
} }
,sortTableDefault:6
}, },
{ {
label: '生产计划单号', label: '生产计划单号',
@ -1010,7 +1012,6 @@ export const ProductreceiptRequestDetail = useCrudSchemas(
label: '品番', label: '品番',
field: 'itemCode', field: 'itemCode',
sort: 'custom', sort: 'custom',
sortTableDefault: 1003,
table: { table: {
width: 150 width: 150
}, },
@ -1086,6 +1087,7 @@ export const ProductreceiptRequestDetail = useCrudSchemas(
] // 失去焦点校验参数 ] // 失去焦点校验参数
} }
} }
,sortTableDefault:2
}, },
{ {
label: '背番', label: '背番',
@ -1096,7 +1098,6 @@ export const ProductreceiptRequestDetail = useCrudSchemas(
}, },
isForm: false, isForm: false,
isSearch: true, isSearch: true,
sortTableDefault: 1003,
tableForm: { tableForm: {
disabled: true, disabled: true,
isPlaceholder:false isPlaceholder:false
@ -1106,6 +1107,7 @@ export const ProductreceiptRequestDetail = useCrudSchemas(
disabled: true disabled: true
} }
} }
,sortTableDefault:3
}, },
{ {
label: 'Bom版本', label: 'Bom版本',
@ -1221,7 +1223,6 @@ export const ProductreceiptRequestDetail = useCrudSchemas(
label: '数量', label: '数量',
field: 'qty', field: 'qty',
sort: 'custom', sort: 'custom',
sortTableDefault: 1006,
table: { table: {
width: 150 width: 150
}, },
@ -1239,6 +1240,7 @@ export const ProductreceiptRequestDetail = useCrudSchemas(
max: 9999 max: 9999
// precision: 6 // precision: 6
} }
,sortTableDefault:4
}, },
{ {
label: '计量单位', label: '计量单位',

6
src/views/wms/productionManage/productredress/productredressJobMain/productredressJobMain.data.ts

@ -16,6 +16,7 @@ export const ProductredressJobMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isForm: false, isForm: false,
isSearch: true, isSearch: true,
sortTableDefault:1
}, },
{ {
label: '申请单号', label: '申请单号',
@ -496,6 +497,7 @@ export const ProductredressJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
sortTableDefault:2
}, },
{ {
label: '品名', label: '品名',
@ -504,6 +506,7 @@ export const ProductredressJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
sortTableDefault:5
}, },
{ {
label: '背番', label: '背番',
@ -522,7 +525,8 @@ export const ProductredressJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
componentProps: { componentProps: {
disabled: true disabled: true
} }
} },
sortTableDefault:3
}, },
{ {
label: '批次', label: '批次',

8
src/views/wms/productionManage/productredress/productredressRecordMain/productredressRecordMain.data.ts

@ -25,6 +25,7 @@ export const ProductredressRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isForm: false, isForm: false,
isSearch: true, isSearch: true,
sortTableDefault:1
}, },
{ {
label: '申请单号', label: '申请单号',
@ -379,7 +380,8 @@ export const ProductredressRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
} },
sortTableDefault:2
}, },
{ {
label: '品名', label: '品名',
@ -388,6 +390,7 @@ export const ProductredressRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 150 width: 150
}, },
sortTableDefault:4
}, },
{ {
label: '背番', label: '背番',
@ -406,7 +409,8 @@ export const ProductredressRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
componentProps: { componentProps: {
disabled: true disabled: true
} }
} },
sortTableDefault:3
}, },
{ {
label: '批次', label: '批次',

6
src/views/wms/productionManage/productredress/productredressRequestMain/productredressRequestMain.data.ts

@ -46,6 +46,7 @@ export const ProductredressRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isForm: false, isForm: false,
isSearch: true, isSearch: true,
sortTableDefault:1
}, },
// { // {
// label: '生产计划单号', // label: '生产计划单号',
@ -597,6 +598,7 @@ export const ProductredressRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
] ]
}, },
sortTableDefault:2
}, },
{ {
label: '品名', label: '品名',
@ -610,6 +612,7 @@ export const ProductredressRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
tableForm: { tableForm: {
disabled: true disabled: true
}, },
sortTableDefault:4
}, },
{ {
label: '背番', label: '背番',
@ -627,7 +630,8 @@ export const ProductredressRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
componentProps: { componentProps: {
disabled: true disabled: true
} }
} },
sortTableDefault:3
}, },
// { // {
// label: '背番', // label: '背番',

92
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRecordMain/purchasereturnRecordMain.data.ts

@ -82,52 +82,52 @@ export const PurchasereturnRecordMain = useCrudSchemas(
}, },
isTable: false isTable: false
}, },
{ // {
label: 'Q2通知单号', // label: 'Q2通知单号',
field: 'q2Number', // field: 'q2Number',
sort: 'custom', // sort: 'custom',
isSearch: false, // isSearch: false,
isDetail: true, // isDetail: true,
sortTableDefault: 4, // sortTableDefault: 4,
table: { // table: {
width: 150 // width: 150
}, // },
form: { // form: {
// labelMessage: '信息提示说明!!!', // // labelMessage: '信息提示说明!!!',
componentProps: { // componentProps: {
enterSearch: true, // enterSearch: true,
// multiple: true, // // multiple: true,
isSearchList: true, // 开启查询弹窗 // isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择Q2通知单号', // 输入框占位文本 // searchListPlaceholder: '请选择Q2通知单号', // 输入框占位文本
searchField: 'number', // 查询弹窗赋值字段 // searchField: 'number', // 查询弹窗赋值字段
searchTitle: 'Q2通知单号', // 查询弹窗标题 // searchTitle: 'Q2通知单号', // 查询弹窗标题
searchAllSchemas: Q2.allSchemas, // 查询弹窗所需类 // searchAllSchemas: Q2.allSchemas, // 查询弹窗所需类
searchPage: InspectionQ2Api.getQ2Page, // 查询弹窗所需分页方法 // searchPage: InspectionQ2Api.getQ2Page, // 查询弹窗所需分页方法
searchCondition: [ // searchCondition: [
{ // {
key: 'available', // key: 'available',
value: 'TRUE', // value: 'TRUE',
isMainValue: false // isMainValue: false
}, // },
{ // {
key: 'status', // key: 'status',
value: '0', // value: '0',
isMainValue: false // isMainValue: false
} // }
], // ],
verificationParams: [ // verificationParams: [
{ // {
key: 'number', // key: 'number',
action: '==', // action: '==',
value: '', // value: '',
isMainValue: false, // isMainValue: false,
isSearch: true, // isSearch: true,
isFormModel: true // isFormModel: true
} // }
] // 失去焦点校验参数 // ] // 失去焦点校验参数
} // }
} // }
}, // },
{ {
label: '供应商代码', label: '供应商代码',
field: 'supplierCode', field: 'supplierCode',

100
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/purchasereturnRequestMain.data.ts

@ -275,56 +275,56 @@ export const PurchasereturnRequestMain = useCrudSchemas(
isForm: false, isForm: false,
isTable: false isTable: false
}, },
{ // {
label: 'Q2通知单号', // label: 'Q2通知单号',
field: 'q2Number', // field: 'q2Number',
sort: 'custom', // sort: 'custom',
isSearch: false, // isSearch: false,
isDetail: true, // isDetail: true,
table: { // table: {
width: 150 // width: 150
}, // },
form: { // form: {
// labelMessage: '信息提示说明!!!', // // labelMessage: '信息提示说明!!!',
componentProps: { // componentProps: {
enterSearch: true, // enterSearch: true,
// multiple: true, // // multiple: true,
isSearchList: true, // 开启查询弹窗 // isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择Q2通知单号', // 输入框占位文本 // searchListPlaceholder: '请选择Q2通知单号', // 输入框占位文本
searchField: 'number', // 查询弹窗赋值字段 // searchField: 'number', // 查询弹窗赋值字段
searchTitle: 'Q2通知单号', // 查询弹窗标题 // searchTitle: 'Q2通知单号', // 查询弹窗标题
searchAllSchemas: Q2.allSchemas, // 查询弹窗所需类 // searchAllSchemas: Q2.allSchemas, // 查询弹窗所需类
searchPage: InspectionQ2Api.getQ2Page, // 查询弹窗所需分页方法 // searchPage: InspectionQ2Api.getQ2Page, // 查询弹窗所需分页方法
searchCondition: [ // searchCondition: [
{ // {
key: 'available', // key: 'available',
value: 'TRUE', // value: 'TRUE',
isMainValue: false // isMainValue: false
}, // },
{ // {
key: 'status', // key: 'status',
value: '0', // value: '0',
isMainValue: false // isMainValue: false
}, // },
{ // {
key: 'supplierCode', // key: 'supplierCode',
value: 'supplierCode', // value: 'supplierCode',
isMainValue: true // isMainValue: true
} // }
], // ],
verificationParams: [ // verificationParams: [
{ // {
key: 'number', // key: 'number',
action: '==', // action: '==',
value: '', // value: '',
isMainValue: false, // isMainValue: false,
isSearch: true, // isSearch: true,
isFormModel: true // isFormModel: true
} // }
] // 失去焦点校验参数 // ] // 失去焦点校验参数
} // }
} // }
}, // },
{ {
label: '承运商', label: '承运商',
field: 'carrierCode', field: 'carrierCode',

100
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMainNew/purchasereturnRequestMain.data.ts

@ -275,56 +275,56 @@ export const PurchasereturnRequestMain = useCrudSchemas(
isForm: false, isForm: false,
isTable: false isTable: false
}, },
{ // {
label: 'Q2通知单号', // label: 'Q2通知单号',
field: 'q2Number', // field: 'q2Number',
sort: 'custom', // sort: 'custom',
isSearch: false, // isSearch: false,
isDetail: true, // isDetail: true,
table: { // table: {
width: 150 // width: 150
}, // },
form: { // form: {
// labelMessage: '信息提示说明!!!', // // labelMessage: '信息提示说明!!!',
componentProps: { // componentProps: {
enterSearch: true, // enterSearch: true,
// multiple: true, // // multiple: true,
isSearchList: true, // 开启查询弹窗 // isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择Q2通知单号', // 输入框占位文本 // searchListPlaceholder: '请选择Q2通知单号', // 输入框占位文本
searchField: 'number', // 查询弹窗赋值字段 // searchField: 'number', // 查询弹窗赋值字段
searchTitle: 'Q2通知单号', // 查询弹窗标题 // searchTitle: 'Q2通知单号', // 查询弹窗标题
searchAllSchemas: Q2.allSchemas, // 查询弹窗所需类 // searchAllSchemas: Q2.allSchemas, // 查询弹窗所需类
searchPage: InspectionQ2Api.getQ2Page, // 查询弹窗所需分页方法 // searchPage: InspectionQ2Api.getQ2Page, // 查询弹窗所需分页方法
searchCondition: [ // searchCondition: [
{ // {
key: 'available', // key: 'available',
value: 'TRUE', // value: 'TRUE',
isMainValue: false // isMainValue: false
}, // },
{ // {
key: 'status', // key: 'status',
value: '0', // value: '0',
isMainValue: false // isMainValue: false
}, // },
{ // {
key: 'supplierCode', // key: 'supplierCode',
value: 'supplierCode', // value: 'supplierCode',
isMainValue: true // isMainValue: true
} // }
], // ],
verificationParams: [ // verificationParams: [
{ // {
key: 'number', // key: 'number',
action: '==', // action: '==',
value: '', // value: '',
isMainValue: false, // isMainValue: false,
isSearch: true, // isSearch: true,
isFormModel: true // isFormModel: true
} // }
] // 失去焦点校验参数 // ] // 失去焦点校验参数
} // }
} // }
}, // },
{ {
label: '承运商', label: '承运商',
field: 'carrierCode', field: 'carrierCode',

2
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

@ -560,7 +560,7 @@ const butttondata = (row, $index) => {
}, },
defaultButtons.mainListPointBtn({ defaultButtons.mainListPointBtn({
hide: isShowMainButton(row, ['3', '8']), hide: isShowMainButton(row, ['3', '8']),
type: row.isShowSuccess ? 'success' : 'primary', type: row.isShowSuccess ? 'warning' : 'primary',
hasPermi: 'wms:supplierdeliver-request-main:printLabel' hasPermi: 'wms:supplierdeliver-request-main:printLabel'
}), // }), //
//defaultButtons.mainListDocumentPrintBtn({ hide: isShowMainButton(row, ['3','8']) }), // //defaultButtons.mainListDocumentPrintBtn({ hide: isShowMainButton(row, ['3','8']) }), //

2
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/index.vue

@ -212,7 +212,7 @@ const { getList, setSearchParams } = tableMethods
// //
const HeadButttondata = [ const HeadButttondata = [
defaultButtons.defaultExportBtn({hasPermi:'wms:supplierinvoice-record-main:export'}), // defaultButtons.defaultExportBtn({hasPermi:'wms:supplierinvoice-record-main:export'}), //
defaultButtons.mainLisSelectiontPointBtn(null), // // defaultButtons.mainLisSelectiontPointBtn(null), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), // defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), // defaultButtons.defaultSetBtn(null), //

Loading…
Cancel
Save