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. 196
      src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/index.vue
  6. 61
      src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue
  7. 24
      src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/unplannedreceiptRequestMain.data.ts
  8. 288
      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导入)
INVENTORY_MODE = "inventory_mode",
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: '班次',
field: 'shift',
dictType: DICT_TYPE.SHIFT,
dictType: DICT_TYPE.DELISHIF,
dictClass: 'string',
isTable: true,
isDetail: true,

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

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

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

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

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

@ -1,7 +1,14 @@
<template>
<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>
<!-- 列表头部 -->
@ -17,7 +24,8 @@
<!-- 列表 -->
<ContentWrap>
<Table v-clientTable
<Table
v-clientTable
:columns="tableColumns"
:data="tableObject.tableList"
:loading="tableObject.loading"
@ -34,7 +42,10 @@
</el-button>
</template>
<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>
</Table>
</ContentWrap>
@ -78,17 +89,36 @@
/>
<!-- 导入 -->
<ImportForm ref="importFormRef" url="/wms/inventoryinit-request-main/import" :importTemplateData="importTemplateData"
@success="importSuccess" :updateIsDisable="true" :coverIsDisable="true" :mode="2" />
<ImportForm
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"
@success="importSuccess" :updateIsDisable="true" :coverIsDisable="true" :mode="2" />
<ImportForm
ref="importFormRefLine"
url="/wms/inventoryinit-request-main/importLine"
:importTemplateData="importTemplateData"
@success="importSuccess"
:updateIsDisable="true"
:coverIsDisable="true"
:mode="2"
/>
</template>
<script setup lang="ts">
import download from '@/utils/download'
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 InventoryinitRequestDetailApi from '@/api/wms/inventoryinitRequestDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
@ -105,7 +135,10 @@ const { t } = useI18n() // 国际化
const route = useRoute() //
const routeName = ref()
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) => {
@ -119,14 +152,18 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
//
if (formField == 'itemCode') {
//
let itemCodes = val.filter(item=>tableData.value.find(item1=>item1['itemCode']==item['code']))
let itemCodes = val.filter((item) =>
tableData.value.find((item1) => item1['itemCode'] == item['code'])
)
if (itemCodes.length > 0) {
itemCodes = itemCodes.map(item=>(item['code']))
itemCodes = itemCodes.map((item) => item['code'])
message.warning(`物料${itemCodes.join(',')}已经存在`)
}
val = val.filter(item=>!tableData.value.find(item1=>item1['itemCode']==item['code']))
val = val.filter(
(item) => !tableData.value.find((item1) => item1['itemCode'] == item['code'])
)
if (val.length == 0) return
val.forEach(item=>{
val.forEach((item) => {
const newRow = JSON.parse(JSON.stringify({ ...tableFormKeys, ...item }))
newRow[formField] = item[searchField]
newRow['packUnit'] = item['defaultPackUnit']
@ -135,7 +172,6 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
newRow['batch'] = formatTime(new Date(), 'yyyyMMdd')
tableData.value.push(newRow)
})
} else if (formField == 'packUnit') {
//1
row[formField] = val[0][searchField]
@ -213,7 +249,7 @@ const HeadButttondata = [
defaultButtons.defaultExportBtn({ hasPermi: 'wms:inventoryinit-request-main:export' }), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
defaultButtons.defaultSetBtn(null) //
// {
// label: '',
// name: 'zdy',
@ -226,15 +262,19 @@ const HeadButttondata = [
//
const buttonBaseClick = (val, item) => {
if (val == 'add') { //
if (val == 'add') {
//
openForm('create')
} else if (val == 'import') { //
} else if (val == 'import') {
//
handleImport()
} else if (val == 'importLine') {
handleImportLine()
}else if (val == 'export') { //
} else if (val == 'export') {
//
handleExport()
} else if (val == 'refresh') { //
} else if (val == 'refresh') {
//
if (tableObject.params.filters && tableObject.params.filters.length > 0) {
searchFormClick({
filters: tableObject.params.filters
@ -242,8 +282,10 @@ const buttonBaseClick = (val, item) => {
} else {
getList()
}
} else if (val == 'filtrate') { //
} else { //
} else if (val == 'filtrate') {
//
} else {
//
console.log('其他按钮', item)
}
}
@ -259,43 +301,70 @@ const isShowMainButton = (row,val) => {
// -
const butttondata = (row, $index) => {
const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1
const findIndex = row['masterId']
? tableObject.tableList.findIndex((item) => item['masterId'] == row['masterId'])
: -1
if (findIndex > -1 && findIndex < $index) {
return []
}
return [
defaultButtons.mainListCloseBtn({hide:isShowMainButton(row,['1','2','3','4']),hasPermi:'wms:inventoryinit-request-main:close'}), //
defaultButtons.mainListReAddBtn({hide:isShowMainButton(row,['5']),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'}), //
defaultButtons.mainListCloseBtn({
hide: isShowMainButton(row, ['1', '2', '3', '4']),
hasPermi: 'wms:inventoryinit-request-main:close'
}), //
defaultButtons.mainListReAddBtn({
hide: isShowMainButton(row, ['5']),
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) => {
if (val == 'mainClose') { //
if (val == 'mainClose') {
//
handleClose(row.masterId)
} else if (val == 'mainReAdd') { //
} else if (val == 'mainReAdd') {
//
handleReAdd(row.masterId)
} else if (val == 'mainSubmit') { //
} else if (val == 'mainSubmit') {
//
handleSubmit(row.masterId)
} else if (val == 'mainTurnDown') { //
} else if (val == 'mainTurnDown') {
//
handleRefused(row.masterId)
} else if (val == 'mainApprove') { //
} else if (val == 'mainApprove') {
//
handleAgree(row.masterId)
} else if (val == 'mainHandle') { //
} else if (val == 'mainHandle') {
//
handleHandle(row.masterId)
} else if (val == 'edit') { //
} else if (val == 'edit') {
//
openForm('update', row)
}
}
/** 关闭按钮操作 */
const handleClose = async (id: number) => {
try {
@ -305,12 +374,12 @@ const handleClose = async (id: number) => {
message.success(t('common.closeSuccess'))
tableObject.loading = false
buttonBaseClick('refresh', null)
} catch {}finally{
} catch {
} finally {
tableObject.loading = false
}
}
/** 重新添加按钮操作 */
const handleReAdd = async (id: number) => {
try {
@ -320,12 +389,12 @@ const handleReAdd = async (id: number) => {
message.success(t('common.reAddSuccess'))
tableObject.loading = false
buttonBaseClick('refresh', null)
} catch {}finally{
} catch {
} finally {
tableObject.loading = false
}
}
/** 提交按钮操作 */
const handleSubmit = async (id: number) => {
try {
@ -335,12 +404,12 @@ const handleSubmit = async (id: number) => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
buttonBaseClick('refresh', null)
} catch {}finally{
} catch {
} finally {
tableObject.loading = false
}
}
/** 审批通过按钮操作 */
const handleAgree = async (id: number) => {
try {
@ -350,12 +419,12 @@ const handleAgree = async (id: number) => {
message.success(t('common.agreeSuccess'))
tableObject.loading = false
buttonBaseClick('refresh', null)
} catch {}finally{
} catch {
} finally {
tableObject.loading = false
}
}
/** 处理按钮操作 */
const handleHandle = async (id: number) => {
try {
@ -364,12 +433,12 @@ const handleHandle = async (id: number) => {
await InventoryinitRequestMainApi.handleInventoryinitRequestMain(id)
message.success(t('common.handleSuccess'))
buttonBaseClick('refresh', null)
} catch {}finally{
} catch {
} finally {
tableObject.loading = false
}
}
/** 审批驳回按钮操作 */
const handleRefused = async (id: number) => {
try {
@ -379,7 +448,8 @@ const handleRefused = async (id: number) => {
message.success(t('common.refusedSuccess'))
tableObject.loading = false
buttonBaseClick('refresh', null)
} catch {}finally{
} catch {
} finally {
tableObject.loading = false
}
}
@ -391,6 +461,19 @@ const openForm =async (type: string, row?: any) => {
const row1 = { ...row }
if (type == 'update') {
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)
}
@ -400,7 +483,9 @@ const { wsCache } = useCache()
/** 详情操作 */
const detailRef = ref()
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))
detailRef.value.openDetail(row, titleName, titleValue, 'requestInventoryinitMain')
}
@ -426,7 +511,9 @@ const handleExport = async () => {
//
loadStart()
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`)
} catch {
} finally {
@ -438,7 +525,7 @@ const handleExport = async () => {
* tableForm方法
*/
const tableFormKeys = {}
InventoryinitRequestDetail.allSchemas.tableFormColumns.forEach(item => {
InventoryinitRequestDetail.allSchemas.tableFormColumns.forEach((item) => {
tableFormKeys[item.field] = item.default ? item.default : ''
})
const tableData = ref([])
@ -455,7 +542,7 @@ const handleDeleteTable = (item, index) => {
}
}
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) => {
@ -491,7 +578,6 @@ const handleImport = () => {
importFormRef.value.open()
}
/** 线边导入 */
const importFormRefLine = ref()
const handleImportLine = () => {

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

@ -92,6 +92,9 @@
<Detail
ref="detailRef"
:isBasic="false"
:detailButtonIsShowAdd="false"
:detailButtonIsShowEdit="false"
:detailButtonIsShowDelete="false"
:allSchemas="UnplannedreceiptRequestMain.allSchemas"
:detailAllSchemas="UnplannedreceiptRequestDetail.allSchemas"
:detailAllSchemasRules="UnplannedreceiptRequestDetailRules"
@ -638,7 +641,6 @@ const buttonTableClick = async (val, row) => {
tableObject.loading = false
}
}
}
/** 关闭按钮操作 */
@ -958,24 +960,28 @@ const submitFormLabel = async (formType, data) => {
try {
formLabelRef.value.formLoading = true
detatableData.tableList.forEach(async (item) => {
const unitConversion = await UnitConversionApi.getUnitConversionByCode(item.itemCode);
const unitConversion = await UnitConversionApi.getUnitConversionByCode(item.itemCode)
let convertRate = 1 //
let purchaseUom = item.uom //
let purchaseStdQty //
if (unitConversion != null) {
if(unitConversion.convertRate!=null&&unitConversion.convertRate!='' && unitConversion.convertRate!=0){
convertRate = unitConversion.convertRate;
if (
unitConversion.convertRate != null &&
unitConversion.convertRate != '' &&
unitConversion.convertRate != 0
) {
convertRate = unitConversion.convertRate
}
if (unitConversion.purchaseUom != null && unitConversion.purchaseUom != '') {
purchaseUom = unitConversion.purchaseUom;
purchaseUom = unitConversion.purchaseUom
}
}
let purchaseQty = (item.qty / convertRate).toFixed(5);//
purchaseStdQty = (item.packQty / convertRate).toFixed(5);//
item.purchaseQty = purchaseQty;//
item.convertRate = convertRate;//
item.purchaseStdQty = purchaseStdQty;//
item.purchaseUom = purchaseUom;//
let purchaseQty = (item.qty / convertRate).toFixed(5) //
purchaseStdQty = (item.packQty / convertRate).toFixed(5) //
item.purchaseQty = purchaseQty //
item.convertRate = convertRate //
item.purchaseStdQty = purchaseStdQty //
item.purchaseUom = purchaseUom //
console.log('item======================', item)
await PackageApi.createPackageLabel(item)
.then((res) => {
@ -1070,13 +1076,15 @@ const labelPrint = async (row) => {
try {
await PackageApi.getPackagePage({
requestNumber: row.number
}).then((res) => {
})
.then((res) => {
if (res.list.length > 0) {
isCreateLabel.value = true
} else {
isCreateLabel.value = false
}
}).catch((err) => {
})
.catch((err) => {
isCreateLabel.value = false
console.log(err)
})
@ -1085,18 +1093,35 @@ const labelPrint = async (row) => {
// labelPrint(row)
await UnplannedreceiptRequestDetailApi.getDetailList(row.masterId).then(async (res) => {
if (res.length > 0) {
const itemType = res.some((item) => item.itemType == '可采购' && item.itemBasicType =='TOOL')//
const itemType2 = res.some((item) => item.itemType == '可采购' && item.itemBasicType !='TOOL')
const itemType = res.some(
(item) => item.itemType == '可采购' && item.itemBasicType == 'TOOL'
) //
const itemType2 = res.some(
(item) => item.itemType == '可采购' && item.itemBasicType != 'TOOL'
)
const itemType1 = res.some((item) => item.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) {
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) {
// 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)
const src = ref(
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,
isForm: false
},
{
label: '操作',
field: 'action',
isDetail: false,
hiddenInMain:true,
isForm: false ,
table: {
width: 150,
fixed: 'right'
},
isTableForm:false,
}
// {
// label: '操作',
// field: 'action',
// isDetail: false,
// hiddenInMain:true,
// isForm: false ,
// table: {
// width: 150,
// fixed: 'right'
// },
// isTableForm:false,
// }
]))
function validateQty(rule, value, callback) {
if (value>0) {

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

@ -26,7 +26,7 @@ const queryParams = {
// 获取当前操作人的部门
import { useUserStore } from '@/store/modules/user'
import { TableColumn } from '@/types/table'
import {getLocationPageRepleinsh} from "@/api/wms/location";
import { getLocationPageRepleinsh } from '@/api/wms/location'
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
// id 转str 否则form回显匹配不到
@ -36,7 +36,8 @@ import {getLocationPageRepleinsh} from "@/api/wms/location";
/**
* @returns {Array}
*/
export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
export const RepleinshRequestMain = useCrudSchemas(
reactive<CrudSchema[]>([
{
label: '单据号',
field: 'number',
@ -47,7 +48,7 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
},
isForm: false,
isSearch: true,
sortSearchDefault:1,
sortSearchDefault: 1
},
{
label: '状态',
@ -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: '生产线代码',
field: 'productionLineCode',
@ -185,6 +127,72 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
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: '便次',
field: 'deliNo',
@ -197,8 +205,8 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
form: {
component: 'InputNumber',
componentProps: {
min: 1,
},
min: 1
}
}
},
{
@ -211,7 +219,7 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isForm: false,
isForm: false
},
{
label: '到库区类型范围',
@ -223,7 +231,7 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isForm: false,
isForm: false
},
{
label: '从库区代码范围',
@ -233,7 +241,7 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150
},
isTable: false,
isForm: false,
isForm: false
},
{
label: '到库区代码范围',
@ -243,7 +251,7 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150
},
isTable: false,
isForm: false,
isForm: false
},
{
label: '申请时间',
@ -263,10 +271,10 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
style: { width: '100%' },
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
valueFormat: 'x'
}
},
isForm: false,
isForm: false
},
{
label: '截止时间',
@ -286,9 +294,9 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
style: { width: '100%' },
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
valueFormat: 'x'
}
}
},
},
{
label: '部门',
@ -329,7 +337,7 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
disabled: true
}
},
isForm: false,
isForm: false
},
{
label: '备注',
@ -482,7 +490,7 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
componentProps: {
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
valueFormat: 'x'
}
},
isForm: false,
@ -493,8 +501,8 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
valueFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'daterange',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
},
},
}
}
},
{
label: '创建者',
@ -504,7 +512,7 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150
},
isTable: true,
isForm: false,
isForm: false
},
{
label: '最后更新时间',
@ -526,10 +534,10 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
style: { width: '100%' },
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
valueFormat: 'x'
}
},
isForm: false,
isForm: false
},
{
label: '最后更新者',
@ -541,8 +549,8 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
hiddenInMain: true,
isTable: false,
isDetail: true,
isForm: false,
},
isForm: false
}
// {
// label: '操作',
// field: 'action',
@ -573,52 +581,32 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
// },
// sortTableDefault:8,
// },
]))
])
)
//表单校验
export const RepleinshRequestMainRules = reactive({
fromWarehouseCode: [
{ required: true, message: '请输入从仓库代码', trigger: 'blur' }
],
fromAreaTypes: [
{ required: true, message: '请选择从库区类型范围', trigger: 'change' }
],
toWarehouseCode: [
{ required: true, message: '请输入到仓库代码', trigger: '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']}
],
fromWarehouseCode: [{ required: true, message: '请输入从仓库代码', trigger: 'blur' }],
fromAreaTypes: [{ required: true, message: '请选择从库区类型范围', trigger: 'change' }],
toWarehouseCode: [{ required: true, message: '请输入到仓库代码', trigger: '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: [
{ required: true, message: '请选择是否跳过任务直接生成记录', trigger: 'change' }
],
businessType: [
{ required: true, message: '请输入业务类型', trigger: 'blur' }
],
remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
businessType: [{ required: true, message: '请输入业务类型', trigger: 'blur' }],
remark: [{ max: 50, message: '不得超过50个字符', trigger: 'blur' }]
})
/**
* @returns {Array}
*/
export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
export const RepleinshRequestDetail = useCrudSchemas(
reactive<CrudSchema[]>([
{
label: '品番',
field: 'itemCode',
@ -638,11 +626,13 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
searchTitle: '物料基础信息', // 查询弹窗标题
searchAllSchemas: Itembasic.allSchemas, // 查询弹窗所需类
searchPage: ItembasicApi.getItembasicPage, // 查询弹窗所需分页方法
searchCondition:[{
searchCondition: [
{
key: 'available',
value: 'TRUE',
isMainValue: false
}]
}
]
}
},
tableForm: {
@ -654,25 +644,30 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
searchTitle: '物料基础信息', // 查询弹窗标题
searchAllSchemas: Itembasic.allSchemas, // 查询弹窗所需类
searchPage: ItembasicApi.getItembasicPage, // 查询弹窗所需分页方法
searchCondition:[{
searchCondition: [
{
key: 'available',
value: 'TRUE',
isMainValue: false
},{
},
{
key: 'businessTypeCode',
value: queryParams.businessTypeCode
}],
}
],
verificationPage: ItembasicApi.getItemListByCodes, // 校验数去焦点输入是否正确的方法
isShowTableFormSearch: true,
verificationParams: [{
verificationParams: [
{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
},
isFormModel: true
}
] // 失去焦点校验参数
}
},
{
label: '品名',
@ -680,7 +675,7 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom',
sortTableDefault: 4,
isTableForm: false,
isForm: false,
isForm: false
},
{
label: '背番',
@ -702,7 +697,7 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
},
hiddenInMain: true,
isTableForm: false,
isForm: false,
isForm: false
},
{
label: '数量',
@ -710,7 +705,7 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom',
sortTableDefault: 4,
isTableForm: false,
isForm: false,
isForm: false
},
{
label: '计量单位',
@ -747,7 +742,7 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
isTableForm: false,
form: {
componentProps: {
disabled:true,
disabled: true
}
}
},
@ -787,11 +782,13 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
value: 'OK',
componentProps: {
disabled: true,
searchCondition:[{
searchCondition: [
{
key: 'available',
value: 'TRUE',
isMainValue: false
}]
}
]
}
},
table: {
@ -830,7 +827,7 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
width: 150
},
isTable: false,
hiddenInMain:true,
hiddenInMain: true
},
{
label: '创建时间',
@ -850,7 +847,7 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
style: { width: '100%' },
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
valueFormat: 'x'
}
},
isTableForm: false,
@ -878,7 +875,7 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
hiddenInMain: true,
isTableForm: false,
isTable: false,
isForm: false,
isForm: false
},
{
@ -891,7 +888,7 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
hiddenInMain: true,
isTableForm: false,
sortTableDefault: 1,
isTable:false,
isTable: false
},
{
label: '订单行',
@ -903,7 +900,7 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
hiddenInMain: true,
isTableForm: false,
sortTableDefault: 2,
isTable:false,
isTable: false
},
{
@ -916,7 +913,7 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
isTableForm: false,
isForm: false,
hiddenInMain: true,
isTable:false,
isTable: false
},
{
label: '到货主代码',
@ -928,7 +925,7 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
isTableForm: false,
isForm: false,
hiddenInMain: true,
isTable:false,
isTable: false
},
{
label: '最后更新时间',
@ -948,7 +945,7 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
style: { width: '100%' },
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
valueFormat: 'x'
}
},
hiddenInMain: true,
@ -966,7 +963,7 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
hiddenInMain: true,
isTable: false,
isForm: false
},
}
// {
// label: '未执行任务数量',
// field: 'unexecutedQty',
@ -992,7 +989,8 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
// },
// isTableForm:false,
// }
]))
])
)
//表单校验
export const RepleinshRequestDetailRules = reactive({
@ -1002,10 +1000,6 @@ export const RepleinshRequestDetailRules = reactive({
// toLocationCode: [
// { required: true, message: '请输入到库位代码', trigger: 'blur' }
// ],
itemCode: [
{ required: true, message: '请输入品番', trigger: 'blur' }
],
remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
itemCode: [{ required: true, message: '请输入品番', 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'
},
isSearch: true,
sortTableDefault:1
},
{
label: '申请单号',
@ -25,6 +26,7 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 180
},
isSearch: true,
sortTableDefault:7
},
{
label: '状态',
@ -37,6 +39,7 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
sortTableDefault:8
},
{
label: '生产计划单号',
@ -48,6 +51,7 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: true,
isForm: false,
isTable:true,
sortTableDefault:10
},
{
label: '车间代码',
@ -56,6 +60,7 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
sortTableDefault:13
},
{
label: '生产线代码',
@ -65,6 +70,7 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
sortTableDefault:16
},
{
label: '班组',
@ -74,6 +80,7 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
sortTableDefault:13
},
{
label: '班组',
@ -93,6 +100,7 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
sortTableDefault:14
},
{
label: '班次',
@ -716,16 +724,15 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '批次',
field: 'batch',
sortTableDefault:1002,
sort: 'custom',
table: {
width: 150
},
sortTableDefault:12
},
{
label: '生产日期',
field: 'produceDate',
sortTableDefault:1008,
formatter: dateFormatter2,
detail: {
dateFormat: 'YYYY-MM-DD'
@ -743,6 +750,7 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
valueFormat: 'x',
}
},
sortTableDefault:9
},
{
label: '过期日期',
@ -770,7 +778,6 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '库存状态',
field: 'inventoryStatus',
sortTableDefault:1007,
dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string',
isTable: true,
@ -778,15 +785,16 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
sortTableDefault:11
},
{
label: '到库位代码',
field: 'toLocationCode',
sortTableDefault:1009,
sort: 'custom',
table: {
width: 150
},
sortTableDefault:10
},
{
label: '订单号',
@ -836,20 +844,20 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '品番',
field: 'itemCode',
sortTableDefault:1000,
sort: 'custom',
table: {
width: 150
},
sortTableDefault:2
},
{
label: '品名',
field: 'itemName',
sortTableDefault:1001,
sort: 'custom',
table: {
width: 150
},
sortTableDefault:4
},
{
label: '背番',
@ -861,7 +869,6 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
},
isTableForm: false,
isForm: false,
sortTableDefault: 1001,
tableForm: {
disabled: true
},
@ -869,7 +876,8 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
componentProps: {
disabled: true
}
}
},
sortTableDefault:3
},
// {
// label: '背番',
@ -905,13 +913,13 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
label: '数量',
field: 'qty',
sort: 'custom',
sortTableDefault:1005,
table: {
width: 150
},
form: {
component: 'InputNumber',
}
,sortTableDefault:5
},
{
label: '计量单位',
@ -948,11 +956,11 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '创建者',
field: 'creator',
sortTableDefault:1011,
sort: 'custom',
table: {
width: 150
},
sortTableDefault:6
},
{
label: '创建时间',

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@ -560,7 +560,7 @@ const butttondata = (row, $index) => {
},
defaultButtons.mainListPointBtn({
hide: isShowMainButton(row, ['3', '8']),
type: row.isShowSuccess ? 'success' : 'primary',
type: row.isShowSuccess ? 'warning' : 'primary',
hasPermi: 'wms:supplierdeliver-request-main:printLabel'
}), //
//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 = [
defaultButtons.defaultExportBtn({hasPermi:'wms:supplierinvoice-record-main:export'}), //
defaultButtons.mainLisSelectiontPointBtn(null), //
// defaultButtons.mainLisSelectiontPointBtn(null), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //

Loading…
Cancel
Save