diff --git a/src/api/system/role/index.ts b/src/api/system/role/index.ts index ac8b3e736..d23f776fe 100644 --- a/src/api/system/role/index.ts +++ b/src/api/system/role/index.ts @@ -55,7 +55,7 @@ export const deleteRole = async (id: number) => { // 导出角色 export const exportRole = (params) => { return request.download({ - url: '/system/role/export-excel', + url: '/system/role/export', params }) } diff --git a/src/api/wms/balance/index.ts b/src/api/wms/balance/index.ts index af60eb822..90d253399 100644 --- a/src/api/wms/balance/index.ts +++ b/src/api/wms/balance/index.ts @@ -109,7 +109,7 @@ export const getBalancePageByBusinessType = async (params) => { } -// 查询库存余额列表根据业务类型的物料类型 +// 查询库存余额列表根据业务类型的品番类型 export const getBalancePageByBusinessTypeByItemType = async (params) => { if (params.isSearch) { delete params.isSearch diff --git a/src/api/wms/inventorymoveRecordMain/index.ts b/src/api/wms/inventorymoveRecordMain/index.ts index 79e6afd82..55b14422a 100644 --- a/src/api/wms/inventorymoveRecordMain/index.ts +++ b/src/api/wms/inventorymoveRecordMain/index.ts @@ -81,6 +81,18 @@ export const exportOkToHoldRecordMain = async (params) => { return await request.download({ url: `/wms/inventorymove-record-main/export-excel`, params }) } } + +// 导出物料隔离记录主 Excel +export const exportOkToHoldRecordOkToHoldMain = async (params) => { + params.businessType = 'OkToHold' + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.downloadPost({ url: '/wms/inventorymove-record-main/export-excel-senior-OkToHold', data }) + } else { + return await request.download({ url: `/wms/inventorymove-record-main/export-excel-OkToHold`, params }) + } +} // 导出合格转隔离记录主 Excel export const exportNokToHoldRecordMain = async (params) => { params.businessType = 'NokToHold' diff --git a/src/api/wms/itembasic/index.ts b/src/api/wms/itembasic/index.ts index 6af9d1007..8291744c2 100644 --- a/src/api/wms/itembasic/index.ts +++ b/src/api/wms/itembasic/index.ts @@ -92,7 +92,7 @@ export const importTemplate = () => { // 导入地址 export const importUrl = '/wms/itembasic/import' -// 查询物料类型为成品/半成品的信息列表 +// 查询品番类型为成品/半成品的信息列表 export const selectItembasicPageToFgAndSemibasicPage = async (params) => { if (params.isSearch) { const data = {...params} @@ -102,7 +102,7 @@ export const selectItembasicPageToFgAndSemibasicPage = async (params) => { } } -// 查询物料类型为原料/半成品的信息列表 +// 查询品番类型为原料/半成品的信息列表 export const selectTypeToItembasic = async (params) => { if (params.isSearch) { const data = {...params} @@ -112,7 +112,7 @@ export const selectTypeToItembasic = async (params) => { } } -// 查询物料类型为器具的信息列表 +// 查询品番类型为器具的信息列表 export const selectConfigToItembasic = async (params) => { if (params.isSearch) { const data = {...params} diff --git a/src/api/wms/productionlineitem/index.ts b/src/api/wms/productionlineitem/index.ts index e3975c07a..b313c00fc 100644 --- a/src/api/wms/productionlineitem/index.ts +++ b/src/api/wms/productionlineitem/index.ts @@ -33,7 +33,7 @@ export const getProductionlineitemPageBom = async (params) => { } -// 查询生产线物料关系列表——根据 生产线 物料类型为原料和半成品 +// 查询生产线物料关系列表——根据 生产线 品番类型为原料和半成品 export const getProductionlineitemPageByItemtype = async (params) => { if (params.isSearch) { delete params.isSearch diff --git a/src/api/wms/supplierdeliverRecordMain/index.ts b/src/api/wms/supplierdeliverRecordMain/index.ts index 137a552ce..31d2fb76c 100644 --- a/src/api/wms/supplierdeliverRecordMain/index.ts +++ b/src/api/wms/supplierdeliverRecordMain/index.ts @@ -86,6 +86,11 @@ export const getItemStatus = async (id) => { return await request.post({ url: `/wms/supplierdeliver-record-main/getItemStatus?id=` + id }) } +// 打印发货单前查询物料的状态,从而确定使用哪个积木模版 +export const getPoLineType = async (id) => { + return await request.post({ url: `/wms/supplierdeliver-record-main/getPoLineType?id=` + id }) +} + // 创建采购申请 export const createPurchasereceiptRequest = async (number:string) => { return await request.post({ url: `/wms/supplierdeliver-record-main/createPurchasereceiptRequest?number=`+number }) diff --git a/src/components/BasicForm/src/BasicForm.vue b/src/components/BasicForm/src/BasicForm.vue index e589c27dd..d62b8be0f 100644 --- a/src/components/BasicForm/src/BasicForm.vue +++ b/src/components/BasicForm/src/BasicForm.vue @@ -519,12 +519,20 @@ const opensearchTable = ( // searchCondition.forEach((item) => { // 查询条件为主表某字段,需要赋值主表数据,数据来源是详情的,赋值需要从row中获取 if (searchCondition[i].isMainValue) { + console.log(99,searchCondition[i].paramsFrom) if (searchCondition[i].isFilterValue) { //后端接口需要拼入到filters中 filters.push({ action: searchCondition[i].action, column: searchCondition[i].key, - value: formRef.value.formModel[searchCondition[i].value] + value: + searchCondition[i].paramsFrom == 'form' + ? formRef.value.formModel[searchCondition[i].value] + : searchCondition[i].paramsFrom == 'detailData' + ? props.detailData[searchCondition[i].value] + : searchCondition[i].paramsFrom == 'tableForm' + ? row[searchCondition[i].value] + : formRef.value.formModel[searchCondition[i].value] ? formRef.value.formModel[searchCondition[i].value] : props.detailData ? props.detailData[searchCondition[i].value] @@ -533,9 +541,14 @@ const opensearchTable = ( : '' }) } else { - _searchCondition[searchCondition[i].key] = formRef.value.formModel[ - searchCondition[i].value - ] + _searchCondition[searchCondition[i].key] = + searchCondition[i].paramsFrom == 'form' + ? formRef.value.formModel[searchCondition[i].value] + : searchCondition[i].paramsFrom == 'detailData' + ? props.detailData[searchCondition[i].value] + : searchCondition[i].paramsFrom == 'tableForm' + ? row[searchCondition[i].value] + :formRef.value.formModel[ searchCondition[i].value] ? formRef.value.formModel[searchCondition[i].value] : props.detailData ? props.detailData[searchCondition[i].value] diff --git a/src/components/Table/src/Table.vue b/src/components/Table/src/Table.vue index 0f44e08bb..43881054e 100644 --- a/src/components/Table/src/Table.vue +++ b/src/components/Table/src/Table.vue @@ -385,6 +385,7 @@ export default defineComponent({ headerAlign={headerAlign} {...props} prop={v.field} + minWidth={v.minWidth} > {{ default: (data: TableSlotDefault) => diff --git a/src/hooks/web/useCrudSchemas.ts b/src/hooks/web/useCrudSchemas.ts index 914091ff4..a43c5bc84 100644 --- a/src/hooks/web/useCrudSchemas.ts +++ b/src/hooks/web/useCrudSchemas.ts @@ -43,6 +43,8 @@ type CrudTableParams = { show?: boolean // 列宽配置 width?: number | string + // 最小列宽配置 + minWidth?: number | string // 列是否固定在左侧或者右侧 fixed?: 'left' | 'right' } & Omit diff --git a/src/locales/en-US.ts b/src/locales/en-US.ts index cbb323a08..bdf1a1b97 100644 --- a/src/locales/en-US.ts +++ b/src/locales/en-US.ts @@ -1321,8 +1321,7 @@ export default { 创建开票申请: 'Create an invoice request?', 详情:'Detail', 退回:'Return', - 作废成功:'Invalid successfully' + 作废成功: 'Invalid successfully', + '索赔金额不能为0,请修改后提交。': 'The claim amount cannot be 0, please modify and submit.' }, - - } diff --git a/src/locales/zh-CN.ts b/src/locales/zh-CN.ts index 1bd7512ce..91e2c90d3 100644 --- a/src/locales/zh-CN.ts +++ b/src/locales/zh-CN.ts @@ -1126,7 +1126,6 @@ export default { 供应商审批时间:'供应商审批时间', 快递单号:'快递单号', 开票日历管理:'开票日历管理', - 描述:'描述', 批量删除:'批量删除', 查看质检报告:'查看质检报告', 长春:'长春', @@ -1322,6 +1321,7 @@ export default { 创建开票申请: '创建开票申请', 作废成功:'作废成功', 退回: '退回', + '索赔金额不能为0,请修改后提交。':'索赔金额不能为0,请修改后提交。' }, } diff --git a/src/utils/dict.ts b/src/utils/dict.ts index 1fb2d8fee..280a64d04 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -184,8 +184,8 @@ export enum DICT_TYPE { PROMOTION_CONDITION_TYPE = 'promotion_condition_type', // 营销的条件类型枚举 // ========== 业务 - WMS ========== - ITEM_STATUS = 'item_status', // 物料状态 - ITEM_TYPE = 'item_type', // 物料类型 + ITEM_STATUS = 'item_status', // 品番状态 + ITEM_TYPE = 'item_type', // 品番类型 UOM = 'uom', // 计量单位 ABC_CLASS = 'abc_class', // ABC类 TRUE_FALSE = 'true_false', // 是否 @@ -345,7 +345,7 @@ export enum DICT_TYPE { REWORK_STATUS = 'rework_status', //返工返修状态:待返修,返修中,返修完成 REWORK_REPLACE_FLAG = 'rework_replace_flag', //是否有替换件 DISMANTLING_BILL_TYPE = 'dismantling_bill_type', //工单类型 - DISMANTLING_MATERIAL_STATUS = 'dismantling_material_status', //报废拆解物料状态 + DISMANTLING_MATERIAL_STATUS = 'dismantling_material_status', //报废拆解品番状态 DISMANTLING_MATERIAL_HANDLE_STATUS = 'dismantling_material_handle_status', //报废拆解处理状态 MES_REQUEST_TYPE = 'mes_request_type', //生产物料申请类型 @@ -420,6 +420,8 @@ export enum DICT_TYPE { SUPPLIER_TOOL_APPORT_STATEMENT_DETAIL = 'supplier_tool_apport_statement_detail', // 供应商模具费用子 PRODUCTION_LINE_ITEM = 'production_line_item', //顺引生产线项 CLASS_ITEM = 'class_item', //顺引班组项 + DUTY = 'duty', //责任 + DUTY_DETAILS ="duty_details",//责任明细字典 } diff --git a/src/utils/disposition/defaultButtons.ts b/src/utils/disposition/defaultButtons.ts index 5cdbd0bf8..f2752f177 100644 --- a/src/utils/disposition/defaultButtons.ts +++ b/src/utils/disposition/defaultButtons.ts @@ -1480,6 +1480,18 @@ export function mainSendBackBtn(option: any) { hasPermi: '' }) } +// 主列表-查看明细 +export function mainSeeDetailBtn(option: any) { + return __defaultBtnOption(option, { + label: t(`ts.查看明细`).replace('ts.', ''), + name: 'seeDetail', + hide: false, + type: 'primary', + color: '', + link: true, // 文本展现按钮 + hasPermi: '' + }) +} // 默认按钮规则 function __defaultBtnOption(option: any, specific: any) { return { diff --git a/src/utils/disposition/formFields.ts b/src/utils/disposition/formFields.ts index b833e8918..b6228190a 100644 --- a/src/utils/disposition/formFields.ts +++ b/src/utils/disposition/formFields.ts @@ -1729,7 +1729,7 @@ export const OuterPillarDeliverNote = [ { label: "物流名称", prop: 'name' }, { label: "背番", prop: 'desc1' }, { label: "描述", prop: 'desc2' }, - { label: "物料状态", prop: 'status' }, + { label: "品番状态", prop: 'status' }, { label: "允许制造", prop: 'canMake' }, { label: "允许采购", prop: 'canBuy' }, { label: "计量单位", prop: 'um' }, diff --git a/src/views/infra/config/ConfigForm.vue b/src/views/infra/config/ConfigForm.vue index 1326a1c6c..23edd78a8 100644 --- a/src/views/infra/config/ConfigForm.vue +++ b/src/views/infra/config/ConfigForm.vue @@ -19,8 +19,8 @@ - - + + @@ -92,7 +92,7 @@ const formRules = reactive({ visible: [{ required: true, message: '是否可见不能为空', trigger: 'blur' }] }) const formRef = ref() // 表单 Ref -// const itemTypeList = ref([]) // 物料类型列表 +// const itemTypeList = ref([]) // 品番类型列表 diff --git a/src/views/infra/config/index.vue b/src/views/infra/config/index.vue index 46893f423..48f1a75ee 100644 --- a/src/views/infra/config/index.vue +++ b/src/views/infra/config/index.vue @@ -45,7 +45,7 @@ - + diff --git a/src/views/mes/dismantlingMain/dismantlingMain.data.ts b/src/views/mes/dismantlingMain/dismantlingMain.data.ts index 9d43d8a76..dacfe610d 100644 --- a/src/views/mes/dismantlingMain/dismantlingMain.data.ts +++ b/src/views/mes/dismantlingMain/dismantlingMain.data.ts @@ -324,7 +324,7 @@ export const DismantlingDetail = useCrudSchemas(reactive([ } }, { - label: '物料状态', + label: '品番状态', field: 'materialStauts', sort: 'custom', dictType: DICT_TYPE.DISMANTLING_MATERIAL_STATUS, diff --git a/src/views/wms/basicDataManage/documentSetting/businesstype/businesstype.data.ts b/src/views/wms/basicDataManage/documentSetting/businesstype/businesstype.data.ts index c01539f50..8f716ae6b 100644 --- a/src/views/wms/basicDataManage/documentSetting/businesstype/businesstype.data.ts +++ b/src/views/wms/basicDataManage/documentSetting/businesstype/businesstype.data.ts @@ -43,7 +43,7 @@ export const Businesstype = useCrudSchemas(reactive([ }, { - label: '可用物料类型范围', + label: '可用品番类型范围', field: 'itemTypes', dictType: DICT_TYPE.ITEM_TYPE, dictClass: 'string', @@ -63,7 +63,7 @@ export const Businesstype = useCrudSchemas(reactive([ }, { - label: '可用物料状态范围', + label: '可用品番状态范围', field: 'itemStatuses', dictType: DICT_TYPE.ITEM_STATUS, dictClass: 'string', @@ -473,10 +473,10 @@ export const BusinesstypeRules = reactive({ { max: 50, message: '不得超过50个字符', trigger: 'blur' } ], itemTypes: [ - { required: true, message: '请选择可用物料类型范围', trigger: 'change' } + { required: true, message: '请选择可用品番类型范围', trigger: 'change' } ], itemStatuses: [ - { required: true, message: '请选择可用物料状态范围', trigger: 'change' } + { required: true, message: '请选择可用品番状态范围', trigger: 'change' } ], // outTransactionType: [ // { required: true, message: '请输入出库事务类型', trigger: 'blur' } diff --git a/src/views/wms/basicDataManage/documentSetting/businesstype/index.vue b/src/views/wms/basicDataManage/documentSetting/businesstype/index.vue index ed6634899..7071e85bd 100644 --- a/src/views/wms/basicDataManage/documentSetting/businesstype/index.vue +++ b/src/views/wms/basicDataManage/documentSetting/businesstype/index.vue @@ -162,7 +162,7 @@ const buttonTableClick = async (val, row) => { // 编辑 const rowSplit = JSON.parse(JSON.stringify(row)) // rowSplit.itemTypes = rowSplit.itemTypes.split(',') - // 可用物料类型范围 + // 可用品番类型范围 const allItemTypesValue = getStrDictOptions(DICT_TYPE.ITEM_TYPE).map(item=>(item.value)) if(rowSplit.itemTypes == allItemTypesValue){ rowSplit.itemTypes = ['全选'] @@ -170,7 +170,7 @@ const buttonTableClick = async (val, row) => { rowSplit.itemTypes = rowSplit.itemTypes.split(',') } - // 可用物料状态范围 + // 可用品番状态范围 const allItemStatusesValue = getStrDictOptions(DICT_TYPE.ITEM_STATUS).map(item=>(item.value)) if(rowSplit.itemStatuses == allItemStatusesValue){ rowSplit.itemStatuses = ['全选'] @@ -242,7 +242,7 @@ const formsSuccess = async (formType, submitData) => { data.itemTypes = data.itemTypes.join(',') } - //可用物料状态范围 + //可用品番状态范围 const allItemStatusesValue = getStrDictOptions(DICT_TYPE.ITEM_STATUS).map(item=>(item.value)) if(data.itemStatuses[data.itemStatuses.length-1]=='全选'){ data.itemStatuses = allItemStatusesValue.join(',') @@ -323,7 +323,7 @@ const formsSuccess = async (formType, submitData) => { const onChange = (field, value)=>{ console.log('onChange',field,value) if(field=='outAreaTypes'||field=='inAreaTypes'||field=='itemTypes'||field=='itemStatuses'||field=='outInventoryStatuses'||field=='inInventoryStatuses'){ - //出库区类型范围 入库区类型范围 可用物料类型范围 出库库存状态范围 入库库存状态范围 + //出库区类型范围 入库区类型范围 可用品番类型范围 出库库存状态范围 入库库存状态范围 if(value.length>0){ if(value[value.length-1]=='全选'){ //全选 diff --git a/src/views/wms/basicDataManage/itemManage/bom/bom.data.ts b/src/views/wms/basicDataManage/itemManage/bom/bom.data.ts index dbe258708..8a1af267e 100644 --- a/src/views/wms/basicDataManage/itemManage/bom/bom.data.ts +++ b/src/views/wms/basicDataManage/itemManage/bom/bom.data.ts @@ -10,7 +10,7 @@ import { Process } from '../../factoryModeling/process/process.data' const { t } = useI18n() // 国际化 /** - * @returns {Array} 基础物料清单 + * @returns {Array} 基础品番清单 */ export const Bom = useCrudSchemas(reactive([ { @@ -29,7 +29,7 @@ export const Bom = useCrudSchemas(reactive([ isSearchList: true, // 开启查询弹窗 searchListPlaceholder: '请选择品番', // 输入框占位文本 searchField: 'code', // 查询弹窗赋值字段 - searchTitle: '物料基础信息', // 查询弹窗标题 + searchTitle: '品番基础信息', // 查询弹窗标题 searchAllSchemas: Itembasic.allSchemas, // 查询弹窗所需类 searchPage: ItembasicApi.selectItembasicPageToFgAndSemibasicPage, // 查询弹窗所需分页方法 verificationParams: [{ @@ -103,7 +103,7 @@ export const Bom = useCrudSchemas(reactive([ } }, { - label: '子物料计量单位', + label: '子品番计量单位', field: 'componentUom', dictType: DICT_TYPE.UOM, dictClass: 'string', @@ -120,7 +120,7 @@ export const Bom = useCrudSchemas(reactive([ } }, { - label: '子物料数量', + label: '子品番数量', field: 'componentQty', isSearch: true, sort: 'custom', @@ -174,7 +174,7 @@ export const Bom = useCrudSchemas(reactive([ field: 'version', sort: 'custom', form: { - labelMessage: '子物料要和父物料版本相同', + labelMessage: '子品番要和父品番版本相同', } }, { @@ -341,10 +341,10 @@ export const BomRules = reactive({ { required: true, message: '请输入子品番', trigger: 'change' } ], componentUom: [ - { required: true, message: '请选择子物料计量单位', trigger: 'change' } + { required: true, message: '请选择子品番计量单位', trigger: 'change' } ], componentQty: [ - { required: true, message: '请输入子物料数量', trigger: 'blur' } + { required: true, message: '请输入子品番数量', trigger: 'blur' } ], processCode: [ { required: true, message: '请输入工序代码', trigger: 'blur' }, diff --git a/src/views/wms/basicDataManage/itemManage/itembasic/itembasic.data.ts b/src/views/wms/basicDataManage/itemManage/itembasic/itembasic.data.ts index 4a99f9e11..e1229f9ba 100644 --- a/src/views/wms/basicDataManage/itemManage/itembasic/itembasic.data.ts +++ b/src/views/wms/basicDataManage/itemManage/itembasic/itembasic.data.ts @@ -72,7 +72,7 @@ export const Itembasic = useCrudSchemas(reactive([ } , }, { - label: '物料类型', + label: '品番类型', field: 'type', sort: 'custom', dictType: DICT_TYPE.ITEM_TYPE, @@ -83,7 +83,7 @@ export const Itembasic = useCrudSchemas(reactive([ } , }, { - label: '物料状态', + label: '品番状态', field: 'status', sort: 'custom', dictType: DICT_TYPE.ITEM_STATUS, diff --git a/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue b/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue index b9d696daa..7869e1756 100644 --- a/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue +++ b/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue @@ -531,7 +531,7 @@ const buttonTableClick = async (val, row) => { console.log(item); // item.batch = '000000' - // 查询物料类型 原料 只能选择 供应商代码 半成品成品其他 只能选择 生产线 + // 查询品番类型 原料 只能选择 供应商代码 半成品成品其他 只能选择 生产线 ItembasicApi.getItembasicPage({ pageSize: 10, pageNo: 1, diff --git a/src/views/wms/basicDataManage/labelManage/callmaterials/callmaterials.data.ts b/src/views/wms/basicDataManage/labelManage/callmaterials/callmaterials.data.ts index ffc74f318..4973b67e0 100644 --- a/src/views/wms/basicDataManage/labelManage/callmaterials/callmaterials.data.ts +++ b/src/views/wms/basicDataManage/labelManage/callmaterials/callmaterials.data.ts @@ -77,6 +77,23 @@ export const Callmaterials = useCrudSchemas(reactive([ } } }, + { + label: '背番', + field: 'itemDesc1', + sort: 'custom', + isSearch: true, +isForm:false, +hiddenSearchHigh:true, +sortTableDefault:1, + table: { + width: 150 + }, +form:{ + componentProps:{ + disabled: true, + } + } + }, { label: '包装规格', field: 'packUnit', diff --git a/src/views/wms/basicDataManage/labelManage/manufacturePackage/manufacturePackage.data.ts b/src/views/wms/basicDataManage/labelManage/manufacturePackage/manufacturePackage.data.ts index 1d58b27ee..dcb712aa6 100644 --- a/src/views/wms/basicDataManage/labelManage/manufacturePackage/manufacturePackage.data.ts +++ b/src/views/wms/basicDataManage/labelManage/manufacturePackage/manufacturePackage.data.ts @@ -398,7 +398,10 @@ export const PackageInventory = useCrudSchemas( dictType: DICT_TYPE.UOM, dictClass: 'string', // 默认都是字符串类型其他暂不考虑 form: { - component: 'Select' + component: 'Select', + componentProps:{ + disabled:true + } }, table: { width: 150 @@ -424,6 +427,9 @@ export const PackageInventory = useCrudSchemas( label: '替代计量单位', field: 'altUom', sort: 'custom', + isDetail:false, + isForm:false, + isTable:false, dictType: DICT_TYPE.UOM, dictClass: 'string', // 默认都是字符串类型其他暂不考虑 form: { @@ -440,6 +446,9 @@ export const PackageInventory = useCrudSchemas( table: { width: 150 }, + isDetail:false, + isForm:false, + isTable:false, form: { component: 'InputNumber', componentProps: { @@ -543,6 +552,11 @@ export const PackageInventory = useCrudSchemas( sort: 'custom', table: { width: 150 + }, + form:{ + componentProps:{ + disabled:true, + } } }, // { diff --git a/src/views/wms/basicDataManage/labelManage/purchasePackage/purchasePackage.data.ts b/src/views/wms/basicDataManage/labelManage/purchasePackage/purchasePackage.data.ts index d23d163ce..2d13d5b0d 100644 --- a/src/views/wms/basicDataManage/labelManage/purchasePackage/purchasePackage.data.ts +++ b/src/views/wms/basicDataManage/labelManage/purchasePackage/purchasePackage.data.ts @@ -350,7 +350,7 @@ export const PackageInventory = useCrudSchemas(reactive([ }, }, { - label: '物料类型', + label: '品番类型', field: 'itemType', sort: 'custom', dictType: DICT_TYPE.ITEM_TYPE, @@ -365,7 +365,7 @@ export const PackageInventory = useCrudSchemas(reactive([ }, }, { - label: '物料状态', + label: '品番状态', field: 'status', sort: 'custom', dictType: DICT_TYPE.ITEM_STATUS, diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/batchStrategy/AddForm.vue b/src/views/wms/basicDataManage/strategySetting/strategy/batchStrategy/AddForm.vue index 48cfd7904..5e52f6940 100644 --- a/src/views/wms/basicDataManage/strategySetting/strategy/batchStrategy/AddForm.vue +++ b/src/views/wms/basicDataManage/strategySetting/strategy/batchStrategy/AddForm.vue @@ -95,9 +95,9 @@ - - - + + - - @@ -245,12 +245,12 @@ -
+ @@ -307,7 +307,7 @@ const formData = ref({ condition: [ // 供应商 { ParamCode: 'SupplierCode', Operator: 'IN', Value: '' }, - // 物料类型/物料分组/物料/abc类/项目/ + // 品番类型/物料分组/物料/abc类/项目/ { ParamCode: 'ItemType', Operator: 'IN', Value: '' } ], configuration: { @@ -362,9 +362,9 @@ const options = reactive({ ], //供应商列表 supplierList: [], - // 物料类型列表 + // 品番类型列表 itemTypeOptions: [ - { value: 'ItemType', label: '物料类型' }, + { value: 'ItemType', label: '品番类型' }, { value: 'ItemGroup', label: '物料分组' }, { value: 'ItemCode', label: '物料' }, { value: 'Project', label: '项目' }, @@ -405,7 +405,7 @@ const changeSupplierCustomer = (e) => { } } getFormSupplierList() -// 选择物料类型/物料分组/abc类/物料/项目 +// 选择品番类型/物料分组/abc类/物料/项目 const changeItemsType = () => { formData.value.condition[1].Value = '' } @@ -551,7 +551,7 @@ const resetForm = () => { condition: [ // 供应商 { ParamCode: 'SupplierCode', Operator: 'IN', Value: '' }, - // 物料类型/物料分组/物料/abc类/项目/ + // 品番类型/物料分组/物料/abc类/项目/ { ParamCode: 'ItemType', Operator: 'IN', Value: '' } ], configuration: { diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/deliverStrategy/AddForm.vue b/src/views/wms/basicDataManage/strategySetting/strategy/deliverStrategy/AddForm.vue index d46dd2be8..694554122 100644 --- a/src/views/wms/basicDataManage/strategySetting/strategy/deliverStrategy/AddForm.vue +++ b/src/views/wms/basicDataManage/strategySetting/strategy/deliverStrategy/AddForm.vue @@ -53,9 +53,9 @@
规则条件
- - - + + - - @@ -117,9 +117,9 @@ /> - @@ -513,7 +513,7 @@ const formData = ref({ status: true, //状态 //规则条件集合 condition: [ - // 物料类型/物料分组/物料/abc类/项目/ + // 品番类型/物料分组/物料/abc类/项目/ { ParamCode: 'ItemType', Operator: 'IN', Value: '' }, // 供应商 { ParamCode: 'CustomerCode', Operator: 'IN', Value: '' }, @@ -602,14 +602,14 @@ const options = reactive({ //供应商列表 supplierList: [], originSupplierList: [], - // 物料类型列表 + // 品番类型列表 itemTypeOptions: [ - { value: 'ItemType', label: '物料类型' }, + { value: 'ItemType', label: '品番类型' }, { value: 'ItemGroup', label: '物料分组' }, { value: 'ItemCode', label: '物料' }, // { value: 'Project', label: '项目' }, { value: 'AbcClass', label: 'ABC类' }, - { value: 'ItemStatus', label: '物料状态' } + { value: 'ItemStatus', label: '品番状态' } ], // 重量体积面积类型列表 calculationTypeOptions: [ @@ -682,7 +682,7 @@ const changeSupplierCustomer = (e) => { } } getFormSupplierList() -// 选择物料类型/物料分组/abc类/物料/项目 +// 选择品番类型/物料分组/abc类/物料/项目 const changeItemsType = () => { formData.value.condition[0].Value = '' } @@ -1194,7 +1194,7 @@ const resetForm = () => { status: true, //状态 //规则条件集合 condition: [ - // 物料类型/物料分组/物料/abc类/项目/ + // 品番类型/物料分组/物料/abc类/项目/ { ParamCode: 'ItemType', Operator: 'IN', Value: '' }, // 供应商 { ParamCode: 'CustomerCode', Operator: 'IN', Value: '' }, diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/AddForm.vue b/src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/AddForm.vue index aecd1cbbb..737c1d7bb 100644 --- a/src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/AddForm.vue +++ b/src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/AddForm.vue @@ -54,9 +54,9 @@ - - - + + - - @@ -118,9 +118,9 @@ /> - @@ -422,7 +422,7 @@ const formData = ref({ status: true, //状态 //规则条件集合 condition: [ - // 物料类型/物料分组/物料/abc类/项目/ + // 品番类型/物料分组/物料/abc类/项目/ { ParamCode: 'ItemType', Operator: 'IN', Value: '' }, // 生产线 { ParamCode: 'Productionline', Operator: 'IN', Value: '' } @@ -486,14 +486,14 @@ const options = reactive({ //范围下拉框列表 rangeOptions1: formatRangeOptions('IN', 'NOT IN'), rangeOptions2: formatRangeOptions('>', '<', '>=', '<='), - // 物料类型列表 + // 品番类型列表 itemTypeOptions: [ - { value: 'ItemType', label: '物料类型' }, + { value: 'ItemType', label: '品番类型' }, { value: 'ItemGroup', label: '物料分组' }, { value: 'ItemCode', label: '物料' }, // { value: 'Project', label: '项目' }, { value: 'AbcClass', label: 'ABC类' }, - { value: 'ItemStatus', label: '物料状态' } + { value: 'ItemStatus', label: '品番状态' } ], //仓库列表 warehouseTypeOptions: [ @@ -525,7 +525,7 @@ const buttonBaseClick = (val, item) => { } } -// 选择物料类型/物料分组/abc类/物料/项目 +// 选择品番类型/物料分组/abc类/物料/项目 const changeItemsType = () => { formData.value.condition[1].Value = '' } @@ -932,7 +932,7 @@ const resetForm = () => { condition: [ // 供应商 { ParamCode: 'SupplierCode', Operator: 'IN', Value: '' }, - // 物料类型/物料分组/物料/abc类/项目/ + // 品番类型/物料分组/物料/abc类/项目/ { ParamCode: 'ItemType', Operator: 'IN', Value: '' }, // /重量/体积/面积 { ParamCode: 'Weight', Operator: '>', Value: [] }, diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/manageAccuracyStrategy/AddForm.vue b/src/views/wms/basicDataManage/strategySetting/strategy/manageAccuracyStrategy/AddForm.vue index b033f9dc4..1ed28cf71 100644 --- a/src/views/wms/basicDataManage/strategySetting/strategy/manageAccuracyStrategy/AddForm.vue +++ b/src/views/wms/basicDataManage/strategySetting/strategy/manageAccuracyStrategy/AddForm.vue @@ -97,7 +97,7 @@ /> - + { } } getFormSupplierList() -// 选择物料类型/物料分组/abc类/物料/项目 +// 选择品番类型/物料分组/abc类/物料/项目 const changeItemsType = () => { formData.value.condition[1].Value = '' } @@ -605,7 +605,7 @@ const resetForm = () => { condition: [ // 供应商 { ParamCode: 'SupplierCode', Operator: 'IN', Value: '' }, - // 物料类型/物料分组/物料/abc类/项目/ + // 品番类型/物料分组/物料/abc类/项目/ { ParamCode: 'ItemType', Operator: 'IN', Value: '' }, // 仓库 { ParamCode: 'LocationCode', Operator: 'IN', Value: '' }, diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/repairMaterialStrategy/AddForm.vue b/src/views/wms/basicDataManage/strategySetting/strategy/repairMaterialStrategy/AddForm.vue index b542c19c3..e69b31373 100644 --- a/src/views/wms/basicDataManage/strategySetting/strategy/repairMaterialStrategy/AddForm.vue +++ b/src/views/wms/basicDataManage/strategySetting/strategy/repairMaterialStrategy/AddForm.vue @@ -51,7 +51,7 @@
规则条件
- + { dialogVisible.value = false } } -// 选择物料类型/物料分组/abc类/物料/项目 +// 选择品番类型/物料分组/abc类/物料/项目 const changeItemsType = () => { formData.value.condition[0].Value = '' } @@ -567,7 +567,7 @@ const resetForm = () => { status: true, //状态 //规则条件集合 condition: [ - // 物料类型/物料分组/物料/abc类/项目/ + // 品番类型/物料分组/物料/abc类/项目/ { ParamCode: 'ItemType', Operator: 'IN', Value: '' }, // 仓库 { ParamCode: 'LocationCode', Operator: 'IN', Value: '' } diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/storageCapacityStrategy/AddForm.vue b/src/views/wms/basicDataManage/strategySetting/strategy/storageCapacityStrategy/AddForm.vue index bf8534f94..2c9f67875 100644 --- a/src/views/wms/basicDataManage/strategySetting/strategy/storageCapacityStrategy/AddForm.vue +++ b/src/views/wms/basicDataManage/strategySetting/strategy/storageCapacityStrategy/AddForm.vue @@ -51,9 +51,9 @@
规则条件
- - - + + - - @@ -344,7 +344,7 @@ const formData = ref({ status: true, //状态 //规则条件集合 condition: [ - // 物料类型/物料分组/物料/abc类/项目/ + // 品番类型/物料分组/物料/abc类/项目/ { ParamCode: 'ItemGroup', Operator: 'IN', Value: '' }, // 仓库 { ParamCode: 'LocationCode', Operator: 'IN', Value: '' } @@ -396,7 +396,7 @@ const options = reactive({ //范围下拉框列表 rangeOptions1: formatRangeOptions('IN', 'NOT IN'), - // 物料类型列表 + // 品番类型列表 itemTypeOptions: [ { value: 'ItemGroup', label: '物料分组' }, { value: 'ItemCode', label: '物料' }, @@ -430,7 +430,7 @@ const buttonBaseClick = (val, item) => { dialogVisible.value = false } } -// 选择物料类型/物料分组/abc类/物料/项目 +// 选择品番类型/物料分组/abc类/物料/项目 const changeItemsType = () => { formData.value.condition[0].Value = '' } @@ -553,7 +553,7 @@ const resetForm = () => { status: true, //状态 //规则条件集合 condition: [ - // 物料类型/物料分组/物料/abc类/项目/ + // 品番类型/物料分组/物料/abc类/项目/ { ParamCode: 'ItemGroup', Operator: 'IN', Value: '' }, // 仓库 { ParamCode: 'LocationCode', Operator: 'IN', Value: '' } diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue b/src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue index 74261b5d3..2db6a90c9 100644 --- a/src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue +++ b/src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue @@ -163,9 +163,9 @@ /> --> - - - + + - - @@ -742,7 +742,7 @@ const formData = ref({ { ParamCode: 'WarehouseCode', Operator: 'IN', Value: '' }, // // 供应商 // { ParamCode: 'SupplierCode', Operator: 'IN', Value: '' }, - // 物料类型/物料分组/物料/abc类/项目/ + // 品番类型/物料分组/物料/abc类/项目/ { ParamCode: 'ItemType', Operator: 'IN', Value: '' }, // // 重量/体积/面积 // { ParamCode: 'Weight', Operator: '>', Value: [] }, @@ -827,9 +827,9 @@ const options = reactive({ //供应商列表 supplierList: [], originSupplierList: [], - // 物料类型列表 + // 品番类型列表 itemTypeOptions: [ - { value: 'ItemType', label: '物料类型' }, + { value: 'ItemType', label: '品番类型' }, { value: 'ItemGroup', label: '物料分组' }, { value: 'ItemCode', label: '物料' }, { value: 'Project', label: '项目' }, @@ -916,7 +916,7 @@ const changeSupplierCustomer = (e) => { } } getFormSupplierList() -// 选择物料类型/物料分组/abc类/物料/项目 +// 选择品番类型/物料分组/abc类/物料/项目 const changeItemsType = () => { formData.value.condition[1].Value = '' } @@ -1441,7 +1441,7 @@ const resetForm = () => { { ParamCode: 'WarehouseCode', Operator: 'IN', Value: '' }, // // 供应商 // { ParamCode: 'SupplierCode', Operator: 'IN', Value: '' }, - // 物料类型/物料分组/物料/abc类/项目/ + // 品番类型/物料分组/物料/abc类/项目/ { ParamCode: 'ItemType', Operator: 'IN', Value: '' }, // // /重量/体积/面积 // { ParamCode: 'Weight', Operator: '>', Value: [] }, diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/utensilCapacityStrategy/AddForm.vue b/src/views/wms/basicDataManage/strategySetting/strategy/utensilCapacityStrategy/AddForm.vue index 265c80d97..e6096bb06 100644 --- a/src/views/wms/basicDataManage/strategySetting/strategy/utensilCapacityStrategy/AddForm.vue +++ b/src/views/wms/basicDataManage/strategySetting/strategy/utensilCapacityStrategy/AddForm.vue @@ -94,9 +94,9 @@ /> - - - + + - - @@ -244,7 +244,7 @@ const formData = ref({ condition: [ // 器具类型 { ParamCode: 'ContainerType', Operator: 'IN', Value: '' }, - // 物料类型/物料分组/物料/abc类/项目/ + // 品番类型/物料分组/物料/abc类/项目/ { ParamCode: 'ItemGroup', Operator: 'IN', Value: '' } ], configuration: { @@ -284,7 +284,7 @@ const options = reactive({ //范围下拉框列表 rangeOptions1: formatRangeOptions('IN', 'NOT IN'), - // 物料类型列表 + // 品番类型列表 itemTypeOptions: [ { value: 'ItemGroup', label: '物料分组' }, { value: 'ItemCode', label: '物料' }, @@ -308,7 +308,7 @@ const buttonBaseClick = (val, item) => { } } -// 选择物料类型/物料分组/abc类/物料/项目 +// 选择品番类型/物料分组/abc类/物料/项目 const changeItemsType = () => { formData.value.condition[1].Value = '' } @@ -434,7 +434,7 @@ const resetForm = () => { condition: [ // 器具类型 { ParamCode: 'ContainerType', Operator: 'IN', Value: '' }, - // 物料类型/物料分组/物料/abc类/项目/ + // 品番类型/物料分组/物料/abc类/项目/ { ParamCode: 'ItemGroup', Operator: 'IN', Value: '' } ], configuration: { diff --git a/src/views/wms/basicDataManage/supplierManage/purchaseprice/purchaseprice.data.ts b/src/views/wms/basicDataManage/supplierManage/purchaseprice/purchaseprice.data.ts index a17186a43..0e2c4f7c7 100644 --- a/src/views/wms/basicDataManage/supplierManage/purchaseprice/purchaseprice.data.ts +++ b/src/views/wms/basicDataManage/supplierManage/purchaseprice/purchaseprice.data.ts @@ -91,6 +91,7 @@ export const Purchaseprice = useCrudSchemas(reactive([ label: '背番', field: 'backNumber', sort: 'custom', + isForm:false, hiddenSearchHigh:true, isSearch: true, table: { diff --git a/src/views/wms/countManage/count/countPlanMain/countPlanMain.data.ts b/src/views/wms/countManage/count/countPlanMain/countPlanMain.data.ts index 864b93dcc..2309bd1e0 100644 --- a/src/views/wms/countManage/count/countPlanMain/countPlanMain.data.ts +++ b/src/views/wms/countManage/count/countPlanMain/countPlanMain.data.ts @@ -456,7 +456,7 @@ export const CountPlanMain = useCrudSchemas(reactive([ isTable:false, isForm: false, },{ - label: '物料忽略名单', + label: '品番忽略名单', field: 'ignoreListOfItem', sort: 'custom', table: { @@ -467,9 +467,9 @@ export const CountPlanMain = useCrudSchemas(reactive([ componentProps: { isSearchList: true, // 开启查询弹窗 multiple:true,//是否可以多选 - searchListPlaceholder: '请选择物料忽略名单', // 输入框占位文本 + searchListPlaceholder: '请选择品番忽略名单', // 输入框占位文本 searchField: 'code', // 查询弹窗赋值字段 - searchTitle: '物料信息', // 查询弹窗标题 + searchTitle: '品番信息', // 查询弹窗标题 searchAllSchemas: Itembasic.allSchemas, // 查询弹窗所需类 searchPage: ItembasicApi.getItembasicPage // 查询弹窗所需分页方法 } @@ -799,7 +799,7 @@ export const CountPlanDetail = useCrudSchemas(([ searchListPlaceholder: '请选择盘点范围类型', searchField: 'type', multiple:true,//是否可以多选 - searchTitle: '物料信息', + searchTitle: '品番信息', searchAllSchemas: Itembasic.allSchemas, // 查询弹窗所需类 searchPage: ItembasicApi.getItembasicPage, // 查询弹窗所需分页方法 verificationPage: ItembasicApi.getItemListByCodes, // tableForm下方输入框校验失去焦点之后是否正确的方法 @@ -825,7 +825,7 @@ export const CountPlanDetail = useCrudSchemas(([ multiple:true,//是否可以多选 searchListPlaceholder: '请选择盘点范围类型', // 输入框占位文本 searchField: 'type', // 查询弹窗赋值字段 - searchTitle: '物料信息', // 查询弹窗标题 + searchTitle: '品番信息', // 查询弹窗标题 searchAllSchemas: Itembasic.allSchemas, // 查询弹窗所需类 searchPage: ItembasicApi.getItembasicPage // 查询弹窗所需分页方法 } @@ -857,7 +857,7 @@ export const CountPlanDetailRules = reactive({ */ export const CountPlanMain1 = useCrudSchemas(reactive([ { - label: '物料忽略名单', + label: '品番忽略名单', field: 'ignoreListOfItem', sort: 'custom', table: { @@ -868,9 +868,9 @@ export const CountPlanMain1 = useCrudSchemas(reactive([ enterSearch:true, isSearchList: true, // 开启查询弹窗 multiple:true,//是否可以多选 - searchListPlaceholder: '请选择物料忽略名单', // 输入框占位文本 + searchListPlaceholder: '请选择品番忽略名单', // 输入框占位文本 searchField: 'code', // 查询弹窗赋值字段 - searchTitle: '物料信息', // 查询弹窗标题 + searchTitle: '品番信息', // 查询弹窗标题 searchAllSchemas: Itembasic.allSchemas, // 查询弹窗所需类 searchPage: ItembasicApi.getItembasicPage, // 查询弹窗所需分页方法 verificationPage: ItembasicApi.getItemListByCodes, diff --git a/src/views/wms/countManage/count/countPlanMain/index.vue b/src/views/wms/countManage/count/countPlanMain/index.vue index 344f457c9..504a08f36 100644 --- a/src/views/wms/countManage/count/countPlanMain/index.vue +++ b/src/views/wms/countManage/count/countPlanMain/index.vue @@ -168,7 +168,7 @@ const updataTableColumns = (val) => { const searchTableParams = ref([ { formField: 'productItemCode', - searchTableTitle: '物料信息', + searchTableTitle: '品番信息', searchTableAllSchemas: Itembasic.allSchemas, searchTablePage: ItembasicApi.getItembasicPage } diff --git a/src/views/wms/deliversettlementManage/deliver/deliverJobMain/deliverJobMain.data.ts b/src/views/wms/deliversettlementManage/deliver/deliverJobMain/deliverJobMain.data.ts index 63f01df0b..5e9281f58 100644 --- a/src/views/wms/deliversettlementManage/deliver/deliverJobMain/deliverJobMain.data.ts +++ b/src/views/wms/deliversettlementManage/deliver/deliverJobMain/deliverJobMain.data.ts @@ -784,7 +784,6 @@ export const DeliverJobDetail = useCrudSchemas(reactive([ table: { width: 150 }, - hiddenInMain: true }, { label: '描述', diff --git a/src/views/wms/deliversettlementManage/deliver/deliverRecordMain/deliverRecordMain.data.ts b/src/views/wms/deliversettlementManage/deliver/deliverRecordMain/deliverRecordMain.data.ts index 8294bc888..57fd77107 100644 --- a/src/views/wms/deliversettlementManage/deliver/deliverRecordMain/deliverRecordMain.data.ts +++ b/src/views/wms/deliversettlementManage/deliver/deliverRecordMain/deliverRecordMain.data.ts @@ -576,7 +576,6 @@ export const DeliverRecordDetail = useCrudSchemas(reactive([ table: { width: 150 }, - hiddenInMain: true }, { label: '描述', diff --git a/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts b/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts index fb5417eea..1a1f4a257 100644 --- a/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts +++ b/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts @@ -869,9 +869,8 @@ export const DeliverRequestDetail = useCrudSchemas(reactive([ table: { width: 150 }, - hiddenInMain:true, - isForm: false, - isTableForm: false + isTableForm: false, + isForm: false }, { label: '描述', diff --git a/src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/deliverPlanMain.data.ts b/src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/deliverPlanMain.data.ts index 970c92dc9..b0b2ecff8 100644 --- a/src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/deliverPlanMain.data.ts +++ b/src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/deliverPlanMain.data.ts @@ -614,7 +614,7 @@ export const DeliverPlanDetail = useCrudSchemas(reactive([ field: 'itemCode', sort: 'custom', table: { - width: 150 + minWidth: 150 }, tableForm:{ multiple:true, @@ -647,12 +647,22 @@ export const DeliverPlanDetail = useCrudSchemas(reactive([ } } }, + { + label: '背番', + field: 'itemDesc1', + sort: 'custom', + table: { + minWidth: 150 + }, + isTableForm: false, + isForm: false + }, { label: '计划数量', field: 'planQty', sort: 'custom', table: { - width: 150 + minWidth: 150 }, form: { component: 'InputNumber', @@ -677,7 +687,7 @@ export const DeliverPlanDetail = useCrudSchemas(reactive([ isTable: true, sort: 'custom', table: { - width: 150 + minWidth: 150 }, tableForm: { disabled: true, @@ -957,6 +967,16 @@ export const DeliverPlanDetailRequest = useCrudSchemas(reactive([ } } }, + { + label: '背番', + field: 'itemDesc1', + sort: 'custom', + table: { + width: 150 + }, + isTableForm: false, + isForm: false + }, { label: '计划数量', field: 'planQty', diff --git a/src/views/wms/deliversettlementManage/deliverplan/saleMain/saleMain.data.ts b/src/views/wms/deliversettlementManage/deliverplan/saleMain/saleMain.data.ts index 801c75947..159b008ee 100644 --- a/src/views/wms/deliversettlementManage/deliverplan/saleMain/saleMain.data.ts +++ b/src/views/wms/deliversettlementManage/deliverplan/saleMain/saleMain.data.ts @@ -622,6 +622,17 @@ export const SaleDetail = useCrudSchemas(reactive([ } } }, + { + label: '背番', + field: 'itemDesc1', + sort: 'custom', + table: { + width: 150 + }, + hiddenInMain: true, + isTableForm:false, + isForm:false + }, { label: '备注', field: 'remark', diff --git a/src/views/wms/deliversettlementManage/inducedProduct/deliverRecordMain/deliverRecordMain.data.ts b/src/views/wms/deliversettlementManage/inducedProduct/deliverRecordMain/deliverRecordMain.data.ts index c3382d695..5cf345dac 100644 --- a/src/views/wms/deliversettlementManage/inducedProduct/deliverRecordMain/deliverRecordMain.data.ts +++ b/src/views/wms/deliversettlementManage/inducedProduct/deliverRecordMain/deliverRecordMain.data.ts @@ -1163,7 +1163,7 @@ export const DeliverRecordImportRules = reactive({ { type: 'number', message: '结束序号必须为数字', trigger: 'blur' } ], type: [ - { required: true, message: '请选择顺引物料类型', trigger: 'blur' } + { required: true, message: '请选择顺引品番类型', trigger: 'blur' } ], customerCode: [ { required: true, message: '请选择客户代码', trigger: 'blur' } diff --git a/src/views/wms/deliversettlementManage/moldAllocation/customerStatement/customerStatementMain.data.ts b/src/views/wms/deliversettlementManage/moldAllocation/customerStatement/customerStatementMain.data.ts index 96ae6790a..1edd991cd 100644 --- a/src/views/wms/deliversettlementManage/moldAllocation/customerStatement/customerStatementMain.data.ts +++ b/src/views/wms/deliversettlementManage/moldAllocation/customerStatement/customerStatementMain.data.ts @@ -267,6 +267,14 @@ export const CustomerStatementDetail = useCrudSchemas(reactive([ isSearch: true, isForm: false, }, + { + label: '背番', + field: 'backNumber', + sort: 'custom', + hiddenSearchHigh:true, + isSearch: true, + isForm: false, + }, { label: '验收年月日', field: 'checkTime', diff --git a/src/views/wms/deliversettlementManage/saleEstimate/finishedShipmentMain/finishedShipmentMain.data.ts b/src/views/wms/deliversettlementManage/saleEstimate/finishedShipmentMain/finishedShipmentMain.data.ts index 6e98326df..8aedf149c 100644 --- a/src/views/wms/deliversettlementManage/saleEstimate/finishedShipmentMain/finishedShipmentMain.data.ts +++ b/src/views/wms/deliversettlementManage/saleEstimate/finishedShipmentMain/finishedShipmentMain.data.ts @@ -176,8 +176,9 @@ export const FinishedShipmentDetail = useCrudSchemas(reactive([ }, { label: '背番', - field: 'backNumber', + field: 'itemDesc1', sort: 'custom', + isSearch:true, table: { width: 150, }, diff --git a/src/views/wms/deliversettlementManage/saleEstimate/unfinishedShipmentMain/unfinishedShipmentMain.data.ts b/src/views/wms/deliversettlementManage/saleEstimate/unfinishedShipmentMain/unfinishedShipmentMain.data.ts index 098e1560f..07a7b0f0e 100644 --- a/src/views/wms/deliversettlementManage/saleEstimate/unfinishedShipmentMain/unfinishedShipmentMain.data.ts +++ b/src/views/wms/deliversettlementManage/saleEstimate/unfinishedShipmentMain/unfinishedShipmentMain.data.ts @@ -170,7 +170,8 @@ export const UnfinishedShipmentDetail = useCrudSchemas(reactive([ }, { label: '背番', - field: 'backNumber', + field: 'itemDesc1', + isSearch:true, sort: 'custom', table: { width: 150, diff --git a/src/views/wms/inventoryManage/balance/balance.data.ts b/src/views/wms/inventoryManage/balance/balance.data.ts index 28fa956dd..034eb0916 100644 --- a/src/views/wms/inventoryManage/balance/balance.data.ts +++ b/src/views/wms/inventoryManage/balance/balance.data.ts @@ -64,7 +64,7 @@ export const Balance = useCrudSchemas( isSearch: true }, { - label: '物料类型', + label: '品番类型', field: 'itemType', sort: 'custom', dictType: DICT_TYPE.ITEM_TYPE, @@ -577,7 +577,7 @@ export const BalancePopWindow = useCrudSchemas( isSearch: true }, { - label: '物料类型', + label: '品番类型', field: 'itemType', sort: 'custom', dictType: DICT_TYPE.ITEM_TYPE, @@ -1006,6 +1006,9 @@ export const BalancePackage = useCrudSchemas(reactive([ sort: 'custom', table: { width: 150 + }, + tableForm: { + disabled: true } }, { diff --git a/src/views/wms/inventoryManage/expectin/expectin.data.ts b/src/views/wms/inventoryManage/expectin/expectin.data.ts index e4cf9f8ca..0bca62df5 100644 --- a/src/views/wms/inventoryManage/expectin/expectin.data.ts +++ b/src/views/wms/inventoryManage/expectin/expectin.data.ts @@ -30,6 +30,15 @@ export const Expectin = useCrudSchemas(reactive([ }, isSearch: true, }, + { + label: '背番', + field: 'backNumber', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true, + }, { label: '批次', field: 'batch', diff --git a/src/views/wms/inventoryManage/expectout/expectout.data.ts b/src/views/wms/inventoryManage/expectout/expectout.data.ts index 919c9e7e6..aa209337c 100644 --- a/src/views/wms/inventoryManage/expectout/expectout.data.ts +++ b/src/views/wms/inventoryManage/expectout/expectout.data.ts @@ -30,6 +30,15 @@ export const Expectout = useCrudSchemas(reactive([ }, isSearch: true, }, + { + label: '背番', + field: 'backNumber', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true, + }, { label: '包装号', field: 'packingNumber', diff --git a/src/views/wms/inventoryManage/package/index.vue b/src/views/wms/inventoryManage/package/index.vue index de25d59ad..16bf55b73 100644 --- a/src/views/wms/inventoryManage/package/index.vue +++ b/src/views/wms/inventoryManage/package/index.vue @@ -205,8 +205,13 @@ const handleSelectionPoint = async ()=>{ } if (res.cgLabel) { //采购标签 - const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken()) - window.open(src.value+'&asn_number='+res.cgLabel) + PackageApi.getPrintingLableId({packingNumbers:(rows)}).then(res => { + console.log(res) + window.open(BASE_URL + '/jmreport/view/1016234988731322368?token=' + getAccessToken()+'&id=' + res) + }).catch(err => { + console.log(err) + message.error('创建标签失败') + }) } if(!res.cgLabel&&!res.zzLabel){ message.warning('包装不存在,无法打印或者是线边物料数据不生成包装!') diff --git a/src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/index.vue b/src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/index.vue index 07173a8c8..d7f688023 100644 --- a/src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/index.vue +++ b/src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/index.vue @@ -93,6 +93,7 @@ import * as InventoryinitRequestDetailApi from '@/api/wms/inventoryinitRequestDe import * as defaultButtons from '@/utils/disposition/defaultButtons' import { formatDate } from '@/utils/formatTime' import { usePageLoading } from '@/hooks/web/usePageLoading' +import { formatTime } from '@/utils/index' const { loadStart, loadDone } = usePageLoading() // 库存初始化申请 defineOptions({ name: 'InventoryinitRequestMain' }) @@ -130,6 +131,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => newRow['packUnit'] = item['defaultPackUnit'] newRow['packQty'] = item['defaultPackQty'] newRow['uom'] = item['uom'] + newRow['batch'] = formatTime(new Date(), 'yyyyMMdd') tableData.value.push(newRow) }) diff --git a/src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/inventoryinitRequestMain.data.ts b/src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/inventoryinitRequestMain.data.ts index fcceafdf4..d0fb982f0 100644 --- a/src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/inventoryinitRequestMain.data.ts +++ b/src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/inventoryinitRequestMain.data.ts @@ -490,6 +490,19 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive( table: { width: 150 }, + tableForm: { + disabled: false, + type:'FormDate', + placeholder: '请选择到批次', + valueFormat: 'YYYYMMDD', + format: 'YYYYMMDD', + }, + form: { + componentProps: { + disabled: false, + valueFormat: 'YYYYMMDD', + } + } }, // { // label: '包装号', diff --git a/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue b/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue index 68b6e62ab..37277479e 100644 --- a/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue +++ b/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue @@ -192,7 +192,7 @@ const updataTableColumns = (val) => { tableColumns.value = val } -// 判断 物料类型是否与其他物料类型一致 +// 判断 品番类型是否与其他品番类型一致 const isItemType = async (itemCode, labelTypeParams) => { let isType = false const labelTypeOld = JSON.parse(JSON.stringify(labelType.value)) diff --git a/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/unplannedreceiptRequestMain.data.ts b/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/unplannedreceiptRequestMain.data.ts index 6ceef2caa..e82073ed5 100644 --- a/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/unplannedreceiptRequestMain.data.ts +++ b/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/unplannedreceiptRequestMain.data.ts @@ -722,7 +722,7 @@ export const ItembasicShow = useCrudSchemas( } , }, { - label: '物料状态', + label: '品番状态', field: 'status', sort: 'custom', dictType: DICT_TYPE.ITEM_STATUS, @@ -894,9 +894,19 @@ export const UnplannedreceiptRequestDetail = useCrudSchemas(reactive { } } -// 判断 物料类型是否与其他物料类型一致 +// 判断 品番类型是否与其他品番类型一致 const isItemType = async (itemCode, labelTypeParams) => { let isType = false const labelTypeOld = JSON.parse(JSON.stringify(labelType.value)) @@ -563,7 +563,7 @@ const buttonTableClick = async (val, row) => { // dialogVisible.value = true detatableData.tableList.map((item) => { // item.batch = '000000' - // 查询物料类型 原料 只能选择 供应商代码 半成品成品其他 只能选择 生产线 + // 查询品番类型 原料 只能选择 供应商代码 半成品成品其他 只能选择 生产线 ItembasicApi.getItembasicPage({ pageSize: 10, pageNo: 1, diff --git a/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/productionreturnRequestMain.data.ts b/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/productionreturnRequestMain.data.ts index 68bd98e1b..4238e2cf2 100644 --- a/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/productionreturnRequestMain.data.ts +++ b/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/productionreturnRequestMain.data.ts @@ -1760,7 +1760,7 @@ export const SupplierdeliverRequestPackage = useCrudSchemas(reactive { tableColumns.value = val } -// 判断 物料类型是否与其他物料类型一致 +// 判断 品番类型是否与其他品番类型一致 const isItemType = async (itemCode, labelTypeParams) => { let isType = false const labelTypeOld = JSON.parse(JSON.stringify(labelType.value)) @@ -504,7 +504,7 @@ const buttonTableClick = async (val, row) => { formLabelRef.value.open('create', row) detatableData.tableList.map((item) => { // item.batch = '000000' 不合格批次 用原有数据的 - // 查询物料类型 原料 只能选择 供应商代码 半成品成品其他 只能选择 生产线 + // 查询品番类型 原料 只能选择 供应商代码 半成品成品其他 只能选择 生产线 ItembasicApi.getItembasicPage({ pageSize: 10, pageNo: 1, diff --git a/src/views/wms/issueManage/productionscrap/productionscrapRequestMain/index.vue b/src/views/wms/issueManage/productionscrap/productionscrapRequestMain/index.vue index 5c98a6410..eddc39502 100644 --- a/src/views/wms/issueManage/productionscrap/productionscrapRequestMain/index.vue +++ b/src/views/wms/issueManage/productionscrap/productionscrapRequestMain/index.vue @@ -190,7 +190,7 @@ const detailValidate = (data) => { } } -// 判断 物料类型是否与其他物料类型一致 +// 判断 品番类型是否与其他品番类型一致 const isItemType = async (itemCode, labelTypeParams) => { let isType = false const labelTypeOld = JSON.parse(JSON.stringify(labelType.value)) @@ -521,7 +521,7 @@ const buttonTableClick = async (val, row) => { formLabelRef.value.open('create', row) detatableData.tableList.map((item) => { // item.batch = '000000' - // 查询物料类型 原料 只能选择 供应商代码 半成品成品其他 只能选择 生产线 + // 查询品番类型 原料 只能选择 供应商代码 半成品成品其他 只能选择 生产线 ItembasicApi.getItembasicPage({ pageSize: 10, pageNo: 1, diff --git a/src/views/wms/moveManage/inventorymove/inventorymoveRecordMainOKHOLD/index.vue b/src/views/wms/moveManage/inventorymove/inventorymoveRecordMainOKHOLD/index.vue index 4fdeef3b6..c58273f66 100644 --- a/src/views/wms/moveManage/inventorymove/inventorymoveRecordMainOKHOLD/index.vue +++ b/src/views/wms/moveManage/inventorymove/inventorymoveRecordMainOKHOLD/index.vue @@ -252,7 +252,7 @@ const handleExport = async () => { // 发起导出 loadStart() const excelTitle = ref(route.meta.title) - const data = await InventorymoveRecordMainApi.exportOkToHoldRecordMain(tableObject.params) + const data = await InventorymoveRecordMainApi.exportOkToHoldRecordOkToHoldMain(tableObject.params) download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { diff --git a/src/views/wms/moveManage/inventorymove/inventorymoveRecordMainOKHOLD/inventorymoveRecordMainOKHOLD.data.ts b/src/views/wms/moveManage/inventorymove/inventorymoveRecordMainOKHOLD/inventorymoveRecordMainOKHOLD.data.ts index fbe2cff25..364949095 100644 --- a/src/views/wms/moveManage/inventorymove/inventorymoveRecordMainOKHOLD/inventorymoveRecordMainOKHOLD.data.ts +++ b/src/views/wms/moveManage/inventorymove/inventorymoveRecordMainOKHOLD/inventorymoveRecordMainOKHOLD.data.ts @@ -228,6 +228,35 @@ export const InventorymoveRecordMain = useCrudSchemas(reactive([ }, sortTableDefault:9, }, + { + label: '责任', + field: 'duty', + dictType: DICT_TYPE.DUTY, + dictClass: 'string', + table: { + width: 150 + }, + sortTableDefault:9, + }, + { + label: '部门', + field: 'dutyDept', + sort: 'custom', + table: { + width: 150 + }, + sortTableDefault:9, + }, + { + label: '责任明细', + field: 'dutyDetails', + dictType: DICT_TYPE.DUTY_DETAILS, + dictClass: 'string', + table: { + width: 150 + }, + sortTableDefault:9, + }, // { // label: '部门', diff --git a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/inventorymoveRequestMain.data.ts b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/inventorymoveRequestMain.data.ts index 0110037d2..5bd2afe24 100644 --- a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/inventorymoveRequestMain.data.ts +++ b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/inventorymoveRequestMain.data.ts @@ -643,7 +643,7 @@ export const BalanceShow = useCrudSchemas( isSearch: true }, { - label: '物料类型', + label: '品番类型', field: 'itemType', sort: 'custom', dictType: DICT_TYPE.ITEM_TYPE, diff --git a/src/views/wms/productionManage/productionplan/productionMainAssemble/index.vue b/src/views/wms/productionManage/productionplan/productionMainAssemble/index.vue index 7cee42437..8928b57ca 100644 --- a/src/views/wms/productionManage/productionplan/productionMainAssemble/index.vue +++ b/src/views/wms/productionManage/productionplan/productionMainAssemble/index.vue @@ -599,7 +599,7 @@ const planSwitch = ref(false) const requestSwitch = ref(false) const getSwitch = async ()=>{ let switch1 = await SwitchApi.getByCode('CreatePrepareToIssuePlanAfterProductionPlanPublished') - planSwitch.value = switch1=='TRUE' + planSwitch.value = false let switch2 = await SwitchApi.getByCode('CreateProductReciptRequestAfterProductionPlanPublished') requestSwitch.value = switch2=='TRUE' console.log('switch1',switch1) diff --git a/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue b/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue index 257b5b282..a029efe9a 100644 --- a/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue +++ b/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue @@ -585,7 +585,7 @@ const buttonTableClick = async (val, row) => { // dialogVisible.value = true formLabelRef.value.open('create', row) detatableData.tableList.map((item) => { - // 查询物料类型 原料 只能选择 供应商代码 半成品成品其他 只能选择 生产线 + // 查询品番类型 原料 只能选择 供应商代码 半成品成品其他 只能选择 生产线 ItembasicApi.getItembasicPage({ pageSize: 10, pageNo: 1, diff --git a/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/productreceiptRequestMain.data.ts b/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/productreceiptRequestMain.data.ts index e883644bc..3a30605cb 100644 --- a/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/productreceiptRequestMain.data.ts +++ b/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/productreceiptRequestMain.data.ts @@ -1042,7 +1042,8 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive sortTableDefault: 1003, sortSearchDefault: 5, tableForm: { - disabled: true + disabled: true, + isPlaceholder:false }, form: { componentProps: { @@ -1836,7 +1837,8 @@ export const ProductreceiptRequestLabel = useCrudSchemas(reactive( key: 'itemCode', value: 'itemCode', message: '请先选择品番!', - isMainValue: true + isMainValue: true, + paramsFrom:'tableForm' } ], verificationParams: [ @@ -1891,6 +1893,9 @@ export const ProductreceiptRequestLabel = useCrudSchemas(reactive( sort: 'custom', table: { width: 150 + }, + tableForm: { + disabled: true, } }, { diff --git a/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/index.vue b/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/index.vue index 07eb65030..37b648e17 100644 --- a/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/index.vue +++ b/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/index.vue @@ -467,7 +467,7 @@ const buttonTableClick = async (val, row) => { // dialogVisible.value = true formLabelRef.value.open('create', row) detatableData.tableList.map((item) => { - // 查询物料类型 原料 只能选择 供应商代码 半成品成品其他 只能选择 生产线 + // 查询品番类型 原料 只能选择 供应商代码 半成品成品其他 只能选择 生产线 ItembasicApi.getItembasicPage({ pageSize: 10, pageNo: 1, diff --git a/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/productreceiptAssembleRequestMain.data.ts b/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/productreceiptAssembleRequestMain.data.ts index 48847f519..1c065f636 100644 --- a/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/productreceiptAssembleRequestMain.data.ts +++ b/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/productreceiptAssembleRequestMain.data.ts @@ -1098,7 +1098,8 @@ export const ProductreceiptRequestDetail = useCrudSchemas( isSearch: true, sortTableDefault: 1003, tableForm: { - disabled: true + disabled: true, + isPlaceholder:false }, form: { componentProps: { @@ -1856,7 +1857,8 @@ export const ProductreceiptRequestLabel = useCrudSchemas( key: 'itemCode', value: 'itemCode', message: '请先选择品番!', - isMainValue: true + isMainValue: true, + paramsFrom:'tableForm' } ], verificationParams: [ @@ -1911,6 +1913,9 @@ export const ProductreceiptRequestLabel = useCrudSchemas( sort: 'custom', table: { width: 150 + }, + tableForm: { + disabled: true } }, { diff --git a/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue b/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue index c124b1fa1..7266acb20 100644 --- a/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue +++ b/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue @@ -449,7 +449,7 @@ const buttonTableClick = async (val, row) => { // dialogVisible.value = true formLabelRef.value.open('create', row) detatableData.tableList.map((item) => { - // 查询物料类型 原料 只能选择 供应商代码 半成品成品其他 只能选择 生产线 + // 查询品番类型 原料 只能选择 供应商代码 半成品成品其他 只能选择 生产线 ItembasicApi.getItembasicPage({ pageSize: 10, pageNo: 1, diff --git a/src/views/wms/purchasereceiptManage/developpurchasereceipt/developPurchasereceiptJobMain/purchasereceiptJobMain.data.ts b/src/views/wms/purchasereceiptManage/developpurchasereceipt/developPurchasereceiptJobMain/purchasereceiptJobMain.data.ts index 25cb32f64..d9a7c0ded 100644 --- a/src/views/wms/purchasereceiptManage/developpurchasereceipt/developPurchasereceiptJobMain/purchasereceiptJobMain.data.ts +++ b/src/views/wms/purchasereceiptManage/developpurchasereceipt/developPurchasereceiptJobMain/purchasereceiptJobMain.data.ts @@ -1003,7 +1003,7 @@ export const PurchasereceiptJobDetail = useCrudSchemas( isForm: false }, { - label: '物料类型', + label: '品番类型', field: 'itemType', sort: 'custom', table: { @@ -1019,16 +1019,7 @@ export const PurchasereceiptJobDetail = useCrudSchemas( } } }, - { - label: '背番', - field: 'itemDesc1', - sort: 'custom', - table: { - width: 150 - }, - hiddenInMain: true, - sortTableDefault: 7 - }, + { label: '描述', field: 'itemDesc2', diff --git a/src/views/wms/purchasereceiptManage/developpurchasereceipt/developPurchasereceiptRecordMain/purchasereceiptRecordMain.data.ts b/src/views/wms/purchasereceiptManage/developpurchasereceipt/developPurchasereceiptRecordMain/purchasereceiptRecordMain.data.ts index 71e3db644..031364f0d 100644 --- a/src/views/wms/purchasereceiptManage/developpurchasereceipt/developPurchasereceiptRecordMain/purchasereceiptRecordMain.data.ts +++ b/src/views/wms/purchasereceiptManage/developpurchasereceipt/developPurchasereceiptRecordMain/purchasereceiptRecordMain.data.ts @@ -680,16 +680,6 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive isSearch: true, isForm: false }, - { - label: '背番', - field: 'itemDesc1', - sort: 'custom', - table: { - width: 150 - }, - sortTableDefault:11, - hiddenInMain:true - }, { label: '描述', field: 'itemDesc2', diff --git a/src/views/wms/purchasereceiptManage/developpurchasereceipt/developPurchasereceiptRequestMain/purchasereceiptRequestMain.data.ts b/src/views/wms/purchasereceiptManage/developpurchasereceipt/developPurchasereceiptRequestMain/purchasereceiptRequestMain.data.ts index be7655c46..194a02eda 100644 --- a/src/views/wms/purchasereceiptManage/developpurchasereceipt/developPurchasereceiptRequestMain/purchasereceiptRequestMain.data.ts +++ b/src/views/wms/purchasereceiptManage/developpurchasereceipt/developPurchasereceiptRequestMain/purchasereceiptRequestMain.data.ts @@ -789,7 +789,7 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive isSearch: false, }, { - label: '物料类型', + label: '品番类型', field: 'itemType', sort: 'custom', dictType: DICT_TYPE.ITEM_TYPE, diff --git a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/purchasereceiptRequestMain.data.ts b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/purchasereceiptRequestMain.data.ts index 87a2584a3..065d08724 100644 --- a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/purchasereceiptRequestMain.data.ts +++ b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/purchasereceiptRequestMain.data.ts @@ -790,7 +790,7 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive{ sort: '', by: 'ASC' }) - if(res&&res.list&&res.list.length==1){ + if(res&&res.list&&res.list.length>=1){ const setV = {} setV['hahaha'] = '' setV['hehehe'] = res.list[0]['number'] diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingSupplierMain/demandforecastingMain.data.ts b/src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingSupplierMain/demandforecastingMain.data.ts index 64ed8c744..696d0779b 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingSupplierMain/demandforecastingMain.data.ts +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingSupplierMain/demandforecastingMain.data.ts @@ -158,6 +158,36 @@ hiddenSearchHigh:true, } } }, + { + label: 'N', + field: 'sumN', + sort: 'custom', + isSearch: false, + hiddenSearchHigh:true, + table: { + width: 150 + }, + }, + { + label: 'N+1', + field: 'sumN1', + sort: 'custom', + isSearch: false, + hiddenSearchHigh:true, + table: { + width: 150 + }, + }, + { + label: 'N+2', + field: 'sumN2', + sort: 'custom', + isSearch: false, + hiddenSearchHigh:true, + table: { + width: 150 + }, + }, { label: '到货日期', field: 'dueDate', diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/purchaseMain.data.ts b/src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/purchaseMain.data.ts index 3988ef713..a6f67b895 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/purchaseMain.data.ts +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/purchaseMain.data.ts @@ -19,7 +19,7 @@ export const PurchaseMain = useCrudSchemas(reactive([ isForm: false, sortTableDefault: 1, table: { - width: 180, + minWidth: 150, fixed: 'left' }, }, @@ -35,7 +35,7 @@ export const PurchaseMain = useCrudSchemas(reactive([ sortTableDefault: 2, sort: 'custom', table: { - width: 150 + minWidth: 150 }, form: { value: '1', @@ -50,7 +50,7 @@ export const PurchaseMain = useCrudSchemas(reactive([ sort: 'custom', isSearch: true, table: { - width: 150 + minWidth: 150 }, form: { labelMessage: '影响明细中品番,需在供应商物料中维护', @@ -89,7 +89,7 @@ export const PurchaseMain = useCrudSchemas(reactive([ sort: 'custom', sortTableDefault:4, table: { - width: 150 + minWidth: 150 }, }, { @@ -102,7 +102,7 @@ export const PurchaseMain = useCrudSchemas(reactive([ sort: 'custom', sortTableDefault: 5, table: { - width: 150 + minWidth: 150 }, }, // { @@ -112,7 +112,7 @@ export const PurchaseMain = useCrudSchemas(reactive([ // isSearch: true, // sort: 'custom', // table: { - // width: 150 + // minWidth: 150 // }, // }, @@ -126,7 +126,7 @@ export const PurchaseMain = useCrudSchemas(reactive([ }, sort: 'custom', table: { - width: 180 + minWidth: 150 }, sortTableDefault: 6, form: { @@ -151,7 +151,7 @@ export const PurchaseMain = useCrudSchemas(reactive([ }, sort: 'custom', table: { - width: 180 + minWidth: 150 }, sortTableDefault: 7, form: { @@ -170,7 +170,7 @@ export const PurchaseMain = useCrudSchemas(reactive([ sort: 'custom', isTable: false, table: { - width: 150 + minWidth: 150 }, }, { @@ -178,7 +178,7 @@ export const PurchaseMain = useCrudSchemas(reactive([ field: 'taxRate', sort: 'custom', table: { - width: 150 + minWidth: 150 }, isTable: false, form: { @@ -198,7 +198,7 @@ export const PurchaseMain = useCrudSchemas(reactive([ isTable: false, isForm: false, table: { - width: 150 + minWidth: 150 }, }, { @@ -207,7 +207,7 @@ export const PurchaseMain = useCrudSchemas(reactive([ sort: 'custom', isTable: false, table: { - width: 150 + minWidth: 150 }, }, { @@ -216,7 +216,7 @@ export const PurchaseMain = useCrudSchemas(reactive([ sort: 'custom', isTable: false, table: { - width: 150 + minWidth: 150 }, }, { @@ -225,7 +225,7 @@ export const PurchaseMain = useCrudSchemas(reactive([ sort: 'custom', isTable: false, table: { - width: 150 + minWidth: 150 }, }, { @@ -236,7 +236,7 @@ export const PurchaseMain = useCrudSchemas(reactive([ isTable: false, sort: 'custom', table: { - width: 150 + minWidth: 150 }, isForm: false, form: { @@ -255,7 +255,7 @@ export const PurchaseMain = useCrudSchemas(reactive([ isTable: false, isForm:false, table: { - width: 150 + minWidth: 150 }, }, @@ -266,7 +266,7 @@ export const PurchaseMain = useCrudSchemas(reactive([ isTable:true, isForm:false, table: { - width: 150 + minWidth: 150 }, }, @@ -275,7 +275,7 @@ export const PurchaseMain = useCrudSchemas(reactive([ field: 'businessType', sort: 'custom', table: { - width: 150 + minWidth: 150 }, isForm: false, isTable: false, @@ -292,7 +292,7 @@ export const PurchaseMain = useCrudSchemas(reactive([ field: 'dataSource', sort: 'custom', table: { - width: 150 + minWidth: 150 }, isForm: false, isTable: false, @@ -304,12 +304,12 @@ export const PurchaseMain = useCrudSchemas(reactive([ // field: 'currentStage', // sort: 'custom', // table: { - // width: 150 + // minWidth: 150 // }, // form: { // component: 'InputNumber', // componentProps: { - // style: {width:'100%'}, + // style: {minWidth:'100%'}, // min: 0 // } // }, @@ -324,7 +324,7 @@ export const PurchaseMain = useCrudSchemas(reactive([ isForm: false, isTable: true, table: { - width: 150 + minWidth: 150 }, sortTableDefault: 1000, }, @@ -339,7 +339,7 @@ export const PurchaseMain = useCrudSchemas(reactive([ sort: 'custom', isForm: false, table: { - width: 180 + minWidth: 150 }, form: { component: 'DatePicker', @@ -910,7 +910,7 @@ export const PurchaseDetail = useCrudSchemas(reactive([ // dateFormat: 'YYYY-MM-DD HH:mm:ss' // }, // table: { - // width: 180 + // width: 150 // }, // hiddenInMain:false, // isForm: false, diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts index eaabc1081..7f7f215ef 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts @@ -229,6 +229,7 @@ export const PurchasePlanMain = useCrudSchemas( table: { width: 150 }, + isTable:false, form: { component: 'InputNumber', componentProps: { @@ -662,7 +663,7 @@ export const PurchasePlanDetail = useCrudSchemas( sortTableDefault: 3, isTableForm: false, isForm: false, - isTable: true, + isTable: false, isDetail:false }, { @@ -801,7 +802,7 @@ export const PurchasePlanDetail = useCrudSchemas( } }, { - label: '物料状态', + label: '品番状态', field: 'itemStatus', sort: 'custom', dictType: DICT_TYPE.ITEM_STATUS, diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/index.vue index 22d7869cc..2475f2f88 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/index.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/index.vue @@ -256,18 +256,36 @@ const handlerCreatePurchasereceiptRequest = async (number: string) => { // 单据打印 const BASE_URL = getJmreportBaseUrl() -// 物料状态是“补给品”和其余状态 的发货单模版 +// 品番状态是“补给品”和其余状态 的发货单模版 const documentSrc = ref(BASE_URL + '/jmreport/view/1019060741381099520?token=' + getAccessToken()) -// 物料状态是号试显示生准订单的发货单模版 +// 品番状态是号试显示生准订单的发货单模版 const documentSrc2 = ref(BASE_URL + '/jmreport/view/1019406772438372352?token=' + getAccessToken()) const handleDocumentPrint = async (id) => { - await SupplierdeliverRecordMainApi.getItemStatus(id).then(async (res) => { - if (res) { + await SupplierdeliverRecordMainApi.getPoLineType(id).then(async (res) => { + if (res.isM && res.haveNOM == false) { //号试(生准订单)模板 - window.open(documentSrc2.value + '&id=' + id) - } else { - window.open(documentSrc.value + '&id=' + id) + window.open(documentSrc2.value + '&id=' + id + '&type=' + 'M') + } + if (res.isM && res.haveNOM && res.noMAndItemStatus == '生准订单') { + //号试(生准订单)模板 + window.open(documentSrc2.value + '&id=' + id ) + } + if (res.isM && res.haveNOM && res.noMAndItemStatus != '生准订单') { + //(生准订单)模板 M型物料 + window.open(documentSrc.value + '&id=' + id+ '&type=' + 'M') + //(补给品订单)模板 + window.open(documentSrc.value + '&id=' + id) + } + if (res.isM == false) { + await SupplierdeliverRecordMainApi.getItemStatus(id).then(async (res) => { + if (res) { + //号试(生准订单)模板 + window.open(documentSrc2.value + '&id=' + id) + } else { + window.open(documentSrc.value + '&id=' + id) + } + }) } }) } diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue index 6c0084ce3..308786f2b 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue @@ -209,6 +209,7 @@ import { CurriculumVitaeRules } from '../supplierdeliverInspectionDetail/supplierdeliverInspectionDetail.data' import * as SupplierdeliverRequestMainApi from '@/api/wms/supplierdeliverRequestMain' +import * as SupplierdeliverRecordMainApi from '@/api/wms/supplierdeliverRecordMain' import * as SupplierdeliverRequestDetailApi from '@/api/wms/supplierdeliverRequestDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as PurchasePlanDetailApi from '@/api/wms/purchasePlanDetail' @@ -1268,19 +1269,46 @@ const print = async () => { } // 单据打印 -// 物料状态是“补给品”和其余状态 的发货单模版 +// 品番状态是“补给品”和其余状态 的发货单模版 const documentSrc = ref(BASE_URL + '/jmreport/view/1019060741381099520?token=' + getAccessToken()) -// 物料状态是号试显示生准订单的发货单模版 +// 品番状态是号试显示生准订单的发货单模版 const documentSrc2 = ref(BASE_URL + '/jmreport/view/1019406772438372352?token=' + getAccessToken()) const handleDocumentPrint = async (id, stausId) => { - await SupplierdeliverRequestMainApi.getItemStatus(stausId).then(async (res) => { - if (res) { + // await SupplierdeliverRequestMainApi.getItemStatus(stausId).then(async (res) => { + // if (res) { + // //号试(生准订单)模板 + // window.open(documentSrc2.value + '&id=' + id) + // } else { + // window.open(documentSrc.value + '&id=' + id) + // } + // }) + await SupplierdeliverRecordMainApi.getPoLineType(id).then(async (res) => { + if (res.isM && res.haveNOM == false) { //号试(生准订单)模板 - window.open(documentSrc2.value + '&id=' + id) - } else { - window.open(documentSrc.value + '&id=' + id) + window.open(documentSrc2.value + '&id=' + id + '&type=' + 'M') + } + if (res.isM && res.haveNOM && res.noMAndItemStatus == '生准订单') { + //号试(生准订单)模板 + window.open(documentSrc2.value + '&id=' + id ) + } + if (res.isM && res.haveNOM && res.noMAndItemStatus != '生准订单') { + //(生准订单)模板 M型物料 + window.open(documentSrc.value + '&id=' + id+ '&type=' + 'M') + //(补给品订单)模板 + window.open(documentSrc.value + '&id=' + id) + } + if (res.isM == false) { + await SupplierdeliverRecordMainApi.getItemStatus(id).then(async (res) => { + if (res) { + //号试(生准订单)模板 + window.open(documentSrc2.value + '&id=' + id) + } else { + window.open(documentSrc.value + '&id=' + id) + } + }) } }) + } /** diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts index 9a42d5edf..db04811ca 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts @@ -1368,6 +1368,18 @@ export const SupplierdeliverRequestDetail = useCrudSchemas(reactive { return [] } return [ + defaultButtons.mainSeeDetailBtn(null), // 查看明细 defaultButtons.mainListPlanSubBtn({ hide: isShowMainButton(row, ['1']), hasPermi: 'wms:purchaseClaimRequest:sub' @@ -296,7 +297,10 @@ const butttondata = (row, $index) => { // 列表-操作按钮事件 const buttonTableClick = async (val, row) => { - if (val == 'edit') { + if (val == 'seeDetail') { + // 查看明细 + openDetail(row, '单据号', row.number) + } else if (val == 'edit') { // 编辑 openForm('update', row) } else if (val == 'mainPlanSub') { @@ -304,7 +308,7 @@ const buttonTableClick = async (val, row) => { handleSub(row.masterId) } else if (val == 'mainPlanApp') { // 审批通过 - handleAgree(row.masterId) + handleAgree(row) } else if (val == 'mainPlanTur') { // 审批驳回 handleReject(row.masterId) @@ -361,13 +365,17 @@ const handleSub = async (masterId: number) => { } /** 审批通过按钮操作 */ -const handleAgree = async (masterId: number) => { +const handleAgree = async (row: any) => { + if (row.isApproved==1) { + message.error(t('ts.索赔金额不能为0,请修改后提交。')) + return + } try { // 关闭的二次确认 await message.confirm(t('ts.是否审批通过所选中数据?')) tableObject.loading = true // 发起关闭 - await PurchaseClaimRequestMainApi.agreePurchaseClaimRequestMain(masterId) + await PurchaseClaimRequestMainApi.agreePurchaseClaimRequestMain(row.masterId) message.success(t('ts.审批通过成功!')) tableObject.loading = false // 刷新列表 @@ -484,6 +492,7 @@ const flag = ref(false) // 主子数据 提交 const submitForm = async (formType, submitData) => { + flag.value=false let data = { ...submitData } if (data.masterId) { data.id = data.masterId @@ -510,11 +519,11 @@ const submitForm = async (formType, submitData) => { flag.value = true return } - if (obj.claimAmount == 0) { - message.error(`索赔金额不能为0!`) - flag.value = true - return - } + // if (obj.claimAmount == 0) { + // message.error(`索赔金额不能为0!`) + // flag.value = true + // return + // } }) if (flag.value) { return @@ -586,10 +595,12 @@ const submitFormDetail = async (formType, data) => { console.log(detailRef.value.formRef.dialogVisible) detailFormRef.value.dialogVisible = false detailRef.value.updateList() + getList() } catch { detailFormRef.value.formLoading = false } } + /** 初始化 **/ onMounted(async () => { getList()