diff --git a/src/components/SearchTable/src/SearchTable.vue b/src/components/SearchTable/src/SearchTable.vue index 64e3f6b7e..38336acc4 100644 --- a/src/components/SearchTable/src/SearchTable.vue +++ b/src/components/SearchTable/src/SearchTable.vue @@ -93,7 +93,7 @@ const tableObjectRef = ref() const getPage: any = ref() const searchSchema = ref() const tableColumns = ref() -const formFieldRef = ref() +const formFieldRef = ref('') const searchFieldRef = ref() const typeRef = ref() const rowRef = ref() @@ -102,6 +102,10 @@ const searchConditionRef = ref() const searchTableSelectionsList = ref() //表格弹窗回显的列表 const searchQuery = ref(false) const hiddenFilterBtn = ref(false) +const updateData = (list:any)=>{ + tableObjectRef.value.tableList = list + searchTableRef.value.clearSelection() +} const openData = (titleName: any, tableObject:any ,allSchemas: any,multiple: any) => { dialogWidth.value = '80%' multipleBol.value = multiple @@ -110,10 +114,10 @@ const openData = (titleName: any, tableObject:any ,allSchemas: any,multiple: any defaultButtons.defaultWhenPageBtn(null), // 选择当页 defaultButtons.defaultUnselectPageBtn(null), // 反选当页 // defaultButtons.defaultDeselectAllBtn(null), // 取消全选 - defaultButtons.defaultFilterBtn(null) // 筛选 + // defaultButtons.defaultFilterBtn(null) // 筛选 ] : [ - defaultButtons.defaultFilterBtn(null) // 筛选 + // defaultButtons.defaultFilterBtn(null) // 筛选 ] dialogTitle.value = t(`ts.${titleName}`).replace('ts.', '') tableObjectRef.value = tableObject @@ -238,7 +242,7 @@ const buttonBaseClick = (val, item) => { } -defineExpose({ open,openData,hiddenFilterButton ,changeDialogWidth,searchFormClick}) // 提供 open 方法,用于打开弹窗 +defineExpose({ open,openData,updateData,hiddenFilterButton ,changeDialogWidth,searchFormClick}) // 提供 open 方法,用于打开弹窗 // Table 组件 ref const searchTableRef = ref() diff --git a/src/locales/en-US.ts b/src/locales/en-US.ts index 938bcb939..27b9c7ea8 100644 --- a/src/locales/en-US.ts +++ b/src/locales/en-US.ts @@ -1157,6 +1157,129 @@ export default { 计划员:'Planner', 最小值:'Min', 最大值:'Max', + 富维海拉供应商系统:'FAWAY HELLA Supplier System', + 系统管理:'System Management', + 基础设施:'Infrastructure Construction', + 报表管理:'Report Management', + 报表:'Report', + 物料包装信息:'Material packaging information', + 仓库管理:'store management', + 库区管理:'reservoir region management', + 库位组管理:'Warehouse location group management', + 库位管理:'Warehouse location management', + 月台管理:'Platform management', + 采购计划策略:'Procurement Planning Strategy', + 要货预测周期管理:'Demand forecasting cycle management', + 价差数据查看:'Spread data view', + 待开票数据查询:'Invoicing data query', + 待开票单据号:'Document number to be invoiced', + 未审核:'unreviewed', + 通过:'pass', + 已开票:'Invoiced out', + 采购审批中:'Under procurement approval', + 采购审批通过:'Approval of procurement', + 发票寄出:'Send invoice', + 采购审批驳回:'Rejection of procurement approval', + 财务审批驳回:'Rejection of financial approval', + 货运单号:'number of a cargo waybill', + 差价范围:'Range of price difference', + 供应商创建时间:'Vendor creation time', + 未税金额:'Amount not taxed', + 价税合计金额:'Total amount of value and tax', + 是否有价差:'Is there a price difference', + 税额差异:'tax difference', + 价税合计差额:'Total difference between price and tax', + 系统税额:'System tax amount', + 系统价税合计:'Total system price and tax', + 系统未税金额:'System untaxed amount', + 开票日期:'invoice date', + 采购驳回原因:'Reasons for rejection of procurement', + 财务驳回原因:'Reasons for financial Rejection', + 包装名称:'Name of package', + 包装类型:'packaging type', + 默认包装规格:'Default packaging specifications', + 项:'item', + 次:'time', + 套:'set', + 年:'year', + 根:'root', + 批:'batch', + 默认:'default', + 管理精度:'Management accuracy', + 是否是功能区:'Is it a functional area', + 按数量:'exponential quantity', + 按批次:'By batch', + 按包装:'By package', + 按唯一ID:'By unique ID', + 收货待检区:'Receiving goods for inspection area', + 原料存储区:'Raw material storage area', + 化学品区:'Chemical area', + 超市区:'Super urban area', + 线边区:'Line edge area', + 半成品存储区:'Storage area for semi-finished products', + 成品存储区:'Finished product storage area', + 发货准备区:'Shipment preparation area', + 发货在途区:'The shipment is in transit', + 三方库区:'Three party reservoir area', + 客户寄售区:'Customer consignment area', + 厂内隔离区:'Isolation area inside the factory', + 客户退货隔离区:'Customer return quarantine area', + 报废区:'Scrap area', + 备货区:'storage area', + 差异调整:'Difference adjustment', + 在途区:'Area in transit', + 溢出区:'overflow area', + 器具库区:'Appliance warehouse area', + 成品器具库区:'Finished equipment warehouse area', + 线边器具库区:'Line edge appliance warehouse area', + 客户器具库区:'Customer equipment warehouse area', + 报废器具库区:'Scrap equipment storage area', + ERP库位类型:'ERP location type', + QAD库位代码:'QAD library bit code', + 巷道:'roadway', + 货架:'goods shelf', + 行:'line', + 列:'column', + 备货优先级:'Inventory priority', + 最大承重:'maximum load bearing', + 最大面积:'maximum area', + 最大体积:'maximum volume', + 默认库位代码:'Default library bit code', + 收货口:'Port of receip', + 发货口:'port of dispatch', + 星期一:'Monday', + 星期二:'Tuesday', + 星期三:'Wednesday', + 星期四:'Thursday', + 星期五:'Friday', + 星期六:'Saturday', + 星期日:'Sunday', + 策略名称:'Policy name', + 策略代码:'Policy code', + 策略描述:'Policy Description', + 优先级:'priority', + 请输入策略名称:'Please enter a policy name', + 请输入优先级:'Please enter the priority', + 规则:'rule', + 请输入名称:'Please enter a name', + 请输入描述:'Please enter description', + 规则条件:'Rule condition', + 供应商类型:'supplier type', + 请选择供应商类型:'Please select the supplier type', + 星期几:'what day', + 请输入代码:'Please enter the code', + 请选择开始时间:'Please select a start time', + 请选择结束时间:'Please select the end time', + 仓库:'warehouse', + 请选择:'please choose', + 月台:'platform', + 请选择月台:'Please select the platform', + 在途库位:'in transit', + 请选择在途库位:'Please select the location in transit', + 请输入收货人名称:'Please enter the name of consignee', + 规则配置:'Rule configuration', + 请输入联系电话:'Please enter a contact number', + 请选择范围:'Please enter a name', }, diff --git a/src/locales/zh-CN.ts b/src/locales/zh-CN.ts index 103a1a95f..e0624a8ee 100644 --- a/src/locales/zh-CN.ts +++ b/src/locales/zh-CN.ts @@ -1157,7 +1157,124 @@ export default { 计划员:'计划员', 最小值:'最小值', 最大值:'最大值', - + 富维海拉供应商系统:'富维海拉供应商系统', + 物料包装信息:'物料包装信息', + 仓库管理:'仓库管理', + 库区管理:'库区管理', + 库位组管理:'库位组管理', + 库位管理:'库位管理', + 月台管理:'月台管理', + 采购计划策略:'采购计划策略', + 要货预测周期管理:'要货预测周期管理', + 价差数据查看:'价差数据查看', + 待开票数据查询:'待开票数据查询', + 未审核:'未审核', + 通过:'通过', + 已开票:'已开票', + 采购审批中:'采购审批中', + 采购审批通过:'采购审批通过', + 发票寄出:'发票寄出', + 采购审批驳回:'采购审批驳回', + 财务审批驳回:'财务审批驳回', + 货运单号:'货运单号', + 差价范围:'差价范围', + 供应商创建时间:'供应商创建时间', + 未税金额:'未税金额', + 价税合计金额:'价税合计金额', + 是否有价差:'是否有价差', + 税额差异:'税额差异', + 价税合计差额:'价税合计差额', + 系统税额:'系统税额', + 系统价税合计:'系统价税合计', + 系统未税金额:'系统未税金额', + 开票日期:'开票日期', + 采购驳回原因:'采购驳回原因', + 财务驳回原因:'财务驳回原因', + 包装名称:'包装名称', + 包装类型:'包装类型', + 默认包装规格:'默认包装规格', + 项:'项', + 次:'次', + 套:'套', + 年:'年', + 根:'根', + 批:'批', + 默认:'默认', + 管理精度:'管理精度', + 是否是功能区:'是否是功能区', + 按数量:'按数量', + 按批次:'按批次', + 按包装:'按包装', + 按唯一ID:'按唯一ID', + 收货待检区:'收货待检区', + 原料存储区:'原料存储区', + 化学品区:'化学品区', + 超市区:'超市区', + 线边区:'线边区', + 半成品存储区:'半成品存储区', + 成品存储区:'成品存储区', + 发货准备区:'发货准备区', + 发货在途区:'发货在途区', + 三方库区:'三方库区', + 客户寄售区:'客户寄售区', + 厂内隔离区:'厂内隔离区', + 客户退货隔离区:'客户退货隔离区', + 报废区:'报废区', + 备货区:'备货区', + 差异调整:'差异调整', + 在途区:'在途区', + 溢出区:'溢出区', + 器具库区:'器具库区', + 成品器具库区:'成品器具库区', + 线边器具库区:'线边器具库区', + 客户器具库区:'客户器具库区', + 报废器具库区:'报废器具库区', + ERP库位类型:'ERP库位类型', + QAD库位代码:'QAD库位代码', + 巷道:'巷道', + 货架:'货架', + 行:'行', + 列:'列', + 备货优先级:'备货优先级', + 最大承重:'最大承重', + 最大面积:'最大面积', + 最大体积:'最大体积', + 默认库位代码:'默认库位代码', + 收货口:'收货口', + 发货口:'发货口', + 星期一:'星期一', + 星期二:'星期二', + 星期三:'星期三', + 星期四:'星期四', + 星期五:'星期五', + 星期六:'星期六', + 星期日:'星期日', + 策略名称:'策略名称', + 策略代码:'策略代码', + 策略描述:'策略描述', + 优先级:'优先级', + 请输入策略名称:'请输入策略名称', + 请输入优先级:'请输入优先级', + 规则:'规则', + 请输入名称:'请输入名称', + 请输入描述:'请输入描述', + 规则条件:'规则条件', + 供应商类型:'供应商类型', + 请选择供应商类型:'请选择供应商类型', + 星期几:'星期几', + 请输入代码:'请输入代码', + 请选择开始时间:'请选择开始时间', + 请选择结束时间:'请选择结束时间', + 仓库:'仓库', + 请选择:'请选择', + 月台:'月台', + 请选择月台:'请选择月台', + 在途库位:'在途库位', + 请选择在途库位:'请选择在途库位', + 请输入收货人名称:'请输入收货人名称', + 规则配置:'规则配置', + 请输入联系电话:'请输入联系电话', + 请选择范围:'请选择范围', }, } diff --git a/src/views/qms/inspectionJob/addForm.vue b/src/views/qms/inspectionJob/addForm.vue index cbd83e82a..6775e1ea5 100644 --- a/src/views/qms/inspectionJob/addForm.vue +++ b/src/views/qms/inspectionJob/addForm.vue @@ -478,10 +478,10 @@ " > - @@ -643,7 +643,7 @@ const formProcessRef = ref() const formSchema = ref(props.formAllSchemas?.formSchema) const tableAllSchemas = ref(props.tableAllSchemas) const tableFormRules = ref(props.tableFormRules) -const collapseShow = ref(['1','2','3']) +const collapseShow = ref(['1', '2', '3']) const data = ref({ code: '', @@ -773,12 +773,7 @@ const open = async (type: string, row?: any, masterParmas?: any, titleName?: any inspectionValue: '', //检验值 qualitativeCode: '', //定性字典项值 defectLevel: '', //缺陷级别 - qualifiedQuantity: parseFloat( - ( - parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.sampleQty) * - parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.samplePieceSize) - ).toFixed(6) - ), //合格数量 + qualifiedQuantity: parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.sampleQty), //合格数量 unqualifiedQuantity: '0' //不合格数量 }) } @@ -1484,22 +1479,22 @@ const inspectionValueInput = (item, cur) => { item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsTarget && item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i] .inspectionValue && - (parseFloat(cur.inspectionValue) > + (parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i].inspectionValue) > parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyCapping) || - parseFloat(cur.inspectionValue) < + parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i].inspectionValue) < parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyTarget)) ) { item.isPass = false return } - // 如果下限值和目标值存在,下限值不存在 大于上限并且小于目标值显示红色图标 + // 如果下限值和目标值存在,上限值不存在 小于下限并且大于目标值显示红色图标 if ( - item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsCapping && - !item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsLowlimit && + !item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsCapping && + item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsLowlimit && item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsTarget && - (parseFloat(cur.inspectionValue) > + (parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i].inspectionValue) > parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyTarget) || - parseFloat(cur.inspectionValue) < + parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i].inspectionValue) < parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyLowlimit)) ) { item.isPass = false diff --git a/src/views/qms/inspectionRecord/addForm.vue b/src/views/qms/inspectionRecord/addForm.vue index 337ae5b8d..030c4d595 100644 --- a/src/views/qms/inspectionRecord/addForm.vue +++ b/src/views/qms/inspectionRecord/addForm.vue @@ -478,10 +478,10 @@ " > - @@ -1492,22 +1492,22 @@ const inspectionValueInput = (item, cur) => { item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsTarget && item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i] .inspectionValue && - (parseFloat(cur.inspectionValue) > + (parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i].inspectionValue) > parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyCapping) || - parseFloat(cur.inspectionValue) < + parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i].inspectionValue) < parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyTarget)) ) { item.isPass = false return } - // 如果下限值和目标值存在,下限值不存在 大于上限并且小于目标值显示红色图标 + // 如果下限值和目标值存在,上限值不存在 小于下限并且大于目标值显示红色图标 if ( - item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsCapping && - !item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsLowlimit && + !item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsCapping && + item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsLowlimit && item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsTarget && - (parseFloat(cur.inspectionValue) > + (parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i].inspectionValue) > parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyTarget) || - parseFloat(cur.inspectionValue) < + parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i].inspectionValue) < parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyLowlimit)) ) { item.isPass = false diff --git a/src/views/qms/inspectionRecordFirst/addForm.vue b/src/views/qms/inspectionRecordFirst/addForm.vue index f44ed7bc0..d3c12f30a 100644 --- a/src/views/qms/inspectionRecordFirst/addForm.vue +++ b/src/views/qms/inspectionRecordFirst/addForm.vue @@ -257,7 +257,7 @@ @@ -535,10 +535,10 @@ v-if="item.inspectionJobCharacteristicsUpdateReqVO.featureType == '0'" > - @@ -693,7 +693,7 @@ const formMainRef = ref() const formFeaturesRef = ref() const formProcessRef = ref() const formSchema = ref(props.formAllSchemas?.formSchema) -const collapseShow = ref(['1','2','3']) +const collapseShow = ref(['1', '2', '3']) const data = ref({ code: '', @@ -842,12 +842,7 @@ const processList = async (InspectionSchemeObj, list) => { inspectionValue: '', //检验值 qualitativeCode: '', //定性字典项值 defectLevel: '', //缺陷级别 - qualifiedQuantity: parseFloat( - ( - parseFloat(item.samplingProcessRespVO.sampleQty) * - parseFloat(InspectionSchemeObj.samplePieceSize) - ).toFixed(6) - ), //合格数量 + qualifiedQuantity: parseFloat(item.samplingProcessRespVO.sampleQty), //合格数量 unqualifiedQuantity: '0' //不合格数量 }) } @@ -1250,12 +1245,7 @@ const searchTableSuccess = async (formField, searchField, val, type, row) => { inspectionValue: '', //检验值 qualitativeCode: '', //定性字典项值 defectLevel: '', //缺陷级别 - qualifiedQuantity: parseFloat( - ( - parseFloat(item.samplingProcessRespVO.sampleQty) * - parseFloat(InspectionSchemeObj.samplePieceSize) - ).toFixed(6) - ), //合格数量 + qualifiedQuantity: parseFloat(item.samplingProcessRespVO.sampleQty), //合格数量 unqualifiedQuantity: '0' //不合格数量 }) } @@ -1329,12 +1319,7 @@ const searchTableSuccess = async (formField, searchField, val, type, row) => { inspectionValue: '', //检验值 qualitativeCode: '', //定性字典项值 defectLevel: '', //缺陷级别 - qualifiedQuantity: parseFloat( - ( - parseFloat(item.samplingProcessRespVO.sampleQty) * - parseFloat(InspectionSchemeObj.samplePieceSize) - ).toFixed(6) - ), //合格数量 + qualifiedQuantity: parseFloat(item.samplingProcessRespVO.sampleQty), //合格数量 unqualifiedQuantity: '0' //不合格数量 }) } @@ -1500,22 +1485,22 @@ const inspectionValueInput = (item, cur) => { item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsTarget && item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i] .inspectionValue && - (parseFloat(cur.inspectionValue) > + (parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i].inspectionValue) > parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyCapping) || - parseFloat(cur.inspectionValue) < + parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i].inspectionValue) < parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyTarget)) ) { item.isPass = false return } - // 如果下限值和目标值存在,下限值不存在 大于上限并且小于目标值显示红色图标 + // 如果下限值和目标值存在,上限值不存在 小于下限并且大于目标值显示红色图标 if ( - item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsCapping && - !item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsLowlimit && + !item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsCapping && + item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsLowlimit && item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsTarget && - (parseFloat(cur.inspectionValue) > + (parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i].inspectionValue) > parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyTarget) || - parseFloat(cur.inspectionValue) < + parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i].inspectionValue) < parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyLowlimit)) ) { item.isPass = false @@ -1560,11 +1545,6 @@ const onItemBlur = async (field, pageApi) => { column: 'code', action: '==', value: data.value[field]?.trim() - }, - { - column: 'status', - action: 'in', - value: 'ENABLE' } ) // 参数整理 diff --git a/src/views/qms/inspectionScheme/addForm.vue b/src/views/qms/inspectionScheme/addForm.vue index 7001ee25a..950e2c522 100644 --- a/src/views/qms/inspectionScheme/addForm.vue +++ b/src/views/qms/inspectionScheme/addForm.vue @@ -21,7 +21,7 @@ { rules.value['inspectionCharacteristicsBaseVO.quantifyTarget'][0].required = false } } +// 物料失去焦点校验 +const onItemBlur= async (field, pageApi, item) => { + const dataObj = item ? item.inspectionCharacteristicsBaseVO : data.value + if (dataObj[field + 'Code']) { + const _searchCondition = {} + const filters: any[] = [] + filters.push( + { + action: '==', + column: 'available', + value: 'TRUE' + }, + { + column: 'code', + action: '==', + value: dataObj[field + 'Code']?.trim() + } + ) + // 参数整理 + _searchCondition.isSearch = true + _searchCondition.filters = filters + const array = await pageApi(_searchCondition) + Butttondata = [ + defaultButtons.formSaveBtn(null), // 保存 + defaultButtons.formCloseBtn(null) // 关闭 + ] + count.value++ + const obj = array.list[0] + if (obj) { + dataObj['itemName'] = obj.name + dataObj['description'] = obj.desc1 + } else { + message.alert('暂无数据') + dataObj[field + 'Code'] = '' + dataObj[field + 'Name'] = '' + } + } else { + dataObj[field + 'Name'] = '' + Butttondata = [ + defaultButtons.formSaveBtn(null), // 保存 + defaultButtons.formCloseBtn(null) // 关闭 + ] + count.value++ + } +} //失去焦点 const onBlur = async (field, pageApi, item) => { const dataObj = item ? item.inspectionCharacteristicsBaseVO : data.value diff --git a/src/views/wms/basicDataManage/documentSetting/switch/index.vue b/src/views/wms/basicDataManage/documentSetting/switch/index.vue index 4fca0adf1..49dfc5f62 100644 --- a/src/views/wms/basicDataManage/documentSetting/switch/index.vue +++ b/src/views/wms/basicDataManage/documentSetting/switch/index.vue @@ -133,7 +133,6 @@ const buttonBaseClick = (val, item) => { const butttondata = (row, $index)=>{ const hiddenArray = ['CreatePutawayRequestAfterInspectRecordCreated', 'CreateBackflushRecordAfterProductreceiptRecordCreated', - 'CreateProductputawayRequestAfterProductreceiptRecordCreated', 'CreatePurchasePlanAfterDiscretePurchaseOrderPublished', 'ExemptItemCreatePutawayRequestAfterPurchaseReceiptRecordCreated', 'CreatePurchaseReceiptRequestAfterSupplierDeliverRecordCreated' diff --git a/src/views/wms/basicDataManage/itemManage/itembasic/index.vue b/src/views/wms/basicDataManage/itemManage/itembasic/index.vue index 31a154a5c..2a331987c 100644 --- a/src/views/wms/basicDataManage/itemManage/itembasic/index.vue +++ b/src/views/wms/basicDataManage/itemManage/itembasic/index.vue @@ -317,7 +317,7 @@ const changeTabs = (item) => { } else if(item.prop == 'InventoryBalance'){ tabsExtend.value = true apiPage.value = BalanceApi.getBalancePage - detailAllSchemas.value = Balance.allSchemas + detailAllSchemas.value = JSON.parse(JSON.stringify(Balance.allSchemas)) } else if(item.prop == 'ExpectedIn'){ tabsExtend.value = true apiPage.value = ExpectinApi.getExpectinPage diff --git a/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue b/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue index cafb56f89..36dc35d9d 100644 --- a/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue +++ b/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue @@ -187,6 +187,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) => newRow['fromPackingNumber'] = item['packingNumber'] newRow['toBatch'] = item['batch'] newRow['fromLocationCode'] = item['locationCode'] + newRow['toLocationCode'] = item['locationCode'] newRow['inventoryStatus'] = item['inventoryStatus'] newRow['packUnit'] = item['packUnit'] newRow['packQty'] = item['packQty'] @@ -227,9 +228,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) => // console.log(row['itemCode']); // ItembasicApi.getItemListByCodes(row['itemCode']) row['downItemCode'] = val[0]['code'] - } else if (formField == 'toLocationCode') { - row['toLocationCode'] = val[0]['code'] - } else { + } else { row[formField] = val[0][searchField] } } else { diff --git a/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/relegateRequestMain.data.ts b/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/relegateRequestMain.data.ts index 7d116d022..7d06ecb7e 100644 --- a/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/relegateRequestMain.data.ts +++ b/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/relegateRequestMain.data.ts @@ -491,28 +491,17 @@ export const RelegateRequestDetail = useCrudSchemas(reactive([ label: '库位代码', field: 'toLocationCode', sort: 'custom', - tableForm:{ - isInpuFocusShow: true, // 开启查询弹窗 - searchListPlaceholder: '请选择到库位代码', - searchField: 'code', - searchTitle: '库位信息', - searchAllSchemas: Location.allSchemas, - searchPage: LocationApi.selectBusinessTypeToLocation, + table: { + width: 100 + }, + tableForm: { + disabled: true }, form: { - // labelMessage: '信息提示说明!!!', componentProps: { - isSearchList: true, // 开启查询弹窗 - searchListPlaceholder: '请选择到库位代码', - searchField: 'code', - searchTitle: '库位信息', - searchAllSchemas: Location.allSchemas, - searchPage: LocationApi.selectBusinessTypeToLocation, + disabled: true } - }, - table: { - width: 120 - }, + } }, { label: '到包装号', diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/AddForm.vue b/src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/AddForm.vue index 9f88fa00e..4bc82a3f3 100644 --- a/src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/AddForm.vue +++ b/src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/AddForm.vue @@ -12,35 +12,35 @@ >
-
规则
+
{{t('ts.规则').replace('ts.','')}}
- + - - + + - - + + - + - + @@ -48,22 +48,22 @@
-
规则条件
+
{{t('ts.规则条件').replace('ts.','')}}
@@ -87,16 +87,16 @@ @@ -121,7 +121,7 @@ @@ -139,7 +139,7 @@
@@ -151,37 +151,37 @@
-
规则配置
+
{{t('ts.规则配置').replace('ts.','')}}
- + - + - + - + - + - - + + - - + + diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/index.vue b/src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/index.vue index 9e358a5d5..b6b18e322 100644 --- a/src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/index.vue +++ b/src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/index.vue @@ -4,19 +4,19 @@ - - + - - + + - 搜索 + {{t('ts.搜索')}} - 重置 + {{t('ts.重置')}} @@ -26,16 +26,16 @@ - - - - - + + + + + - + diff --git a/src/views/wms/buttMesManage/mesBarCode/index.vue b/src/views/wms/buttMesManage/mesBarCode/index.vue index 8fcfd22b5..5d441845d 100644 --- a/src/views/wms/buttMesManage/mesBarCode/index.vue +++ b/src/views/wms/buttMesManage/mesBarCode/index.vue @@ -72,6 +72,8 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons' import TableHead from '@/components/TableHead/src/TableHead.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import Detail from '@/components/Detail/src/Detail.vue' +import { getTenantId }from '@/utils/auth' + defineOptions({ name: 'MesBarCode' }) @@ -83,6 +85,9 @@ const routeName = ref() routeName.value = route.name const tableColumns = ref(MesBarCode.allSchemas.tableColumns) +let names =[{"text":"1379","value":1},{"text":"1397","value":2},{"text":"2379","value":3}] +let tenant = names.find(item=>item.value == getTenantId()) + // 查询页面返回 const searchTableSuccess = (formField, searchField, val, formRef) => { nextTick(() => { @@ -165,6 +170,7 @@ const formsSuccess = async (formType,data) => { basicFormRef.value.formLoading = true try { if (formType === 'create') { + data.plnt = tenant?.text await MesBarCodeApi.createMesBarCode(data) message.success(t('common.createSuccess')) } else { diff --git a/src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRecordMain/index.vue b/src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRecordMain/index.vue index 493689051..286652a40 100644 --- a/src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRecordMain/index.vue +++ b/src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRecordMain/index.vue @@ -143,7 +143,9 @@ const labelType = ref('') // 标签类别 采购还是制造等 const handlePoint = async (row) => { // 查询是否已创建过标签 await PackageApi.getPackagePage({ - requestNumber: row.number + requestNumber: row.number, + pageSize: 500, + pageNo: 1 }).then((res) => { if(res.list.length > 0) { if (res.list[0].productionLineCode != null) { diff --git a/src/views/wms/issueManage/issue/issueRequestMain/index.vue b/src/views/wms/issueManage/issue/issueRequestMain/index.vue index 9f65f96aa..43b0edb6f 100644 --- a/src/views/wms/issueManage/issue/issueRequestMain/index.vue +++ b/src/views/wms/issueManage/issue/issueRequestMain/index.vue @@ -300,7 +300,8 @@ const butttondata = (row,$index) => { defaultButtons.mainListSubmitBtn({hide:isShowMainButton(row,['1']), hasPermi:'wms:issue-request-main:submit'}), // 提交审批 defaultButtons.mainListTurnDownBtn({hide:isShowMainButton(row,['2']), hasPermi:'wms:issue-request-main:refused'}), // 驳回 defaultButtons.mainListApproveBtn({hide:isShowMainButton(row,['2']), hasPermi:'wms:issue-request-main:handle'}), // 审批通过 - defaultButtons.mainListHandleBtn({hide:isShowMainButton(row,['3','7']), hasPermi:'wms:issue-request-main:update'}), // 处理 + // defaultButtons.mainListHandleBtn({hide:isShowMainButton(row,['3','7']), hasPermi:'wms:issue-request-main:update'}), // 处理 + defaultButtons.mainListHandleBtn({hide:isShowMainButton(row,['3']), hasPermi:'wms:issue-request-main:update'}), // 处理 defaultButtons.mainListEditBtn({hide:isShowMainButton(row,['1']), hasPermi:'wms:issue-request-main:update'}), // 编辑 // defaultButtons.mainListDeleteBtn({hasPermi:'wms:issue-request-main:delete'}), // 删除 ] diff --git a/src/views/wms/issueManage/productionscrap/productionscrapRequestMain/index.vue b/src/views/wms/issueManage/productionscrap/productionscrapRequestMain/index.vue index 0ca2ebe15..3f8cae170 100644 --- a/src/views/wms/issueManage/productionscrap/productionscrapRequestMain/index.vue +++ b/src/views/wms/issueManage/productionscrap/productionscrapRequestMain/index.vue @@ -341,17 +341,17 @@ const butttondata = (row,$index) => { defaultButtons.mainListEditBtn({hide:isShowMainButton(row,['1']), hasPermi:'wms:productionscrap-request-main:update'}), // 编辑 // defaultButtons.mainListDeleteBtn({hasPermi:'wms:productionreturn-request-main:delete'}), // 删除 // 创建标签 - { - label: '创建标签', - name: 'cjbq', - hide: isShowMainButton(row,['3']), - type: 'primary', - icon: '', - color: '', - hasPermi: '', - link: true, // 文本展现按钮 - }, - defaultButtons.mainListPointBtn({hide:isShowMainButton(row,['3','6','8'])}), // 标签打印 + // { + // label: '创建标签', + // name: 'cjbq', + // hide: isShowMainButton(row,['3']), + // type: 'primary', + // icon: '', + // color: '', + // hasPermi: '', + // link: true, // 文本展现按钮 + // }, + // defaultButtons.mainListPointBtn({hide:isShowMainButton(row,['3','6','8'])}), // 标签打印 ] } @@ -483,19 +483,19 @@ const buttonTableClick = async (val, row) => { }) } else if (val == 'mainHandle') { // 处理 - // 判断 是否已创建标签 - let isCreateLabel = false - await PackageApi.getPackagePage({ - requestNumber: row.number - }).then(res => { - if (res) { - if (res.list.length > 0) isCreateLabel = true - } - }) - if (!isCreateLabel) { - message.warning('请先创建标签') - return - } + // // 判断 是否已创建标签 + // let isCreateLabel = false + // await PackageApi.getPackagePage({ + // requestNumber: row.number + // }).then(res => { + // if (res) { + // if (res.list.length > 0) isCreateLabel = true + // } + // }) + // if (!isCreateLabel) { + // message.warning('请先创建标签') + // return + // } tableObject.loading = true ProductionscrapRequestMainApi.handle(row.masterId).then(() => { message.success(t('common.updateSuccess')) @@ -654,11 +654,11 @@ const submitForm = async (formType, submitData) => { isZC = false } }) - if(!isZC) { - formRef.value.formLoading = false - await message.confirm('含有不整箱情况,是否继续?') - formRef.value.formLoading = true - } + // if(!isZC) { + // formRef.value.formLoading = false + // await message.confirm('含有不整箱情况,是否继续?') + // formRef.value.formLoading = true + // } // 合格退料 添加参数 isOK data.isOK = true try { diff --git a/src/views/wms/issueManage/productionscrap/productionscrapRequestMain/productionscrapRequestMain.data.ts b/src/views/wms/issueManage/productionscrap/productionscrapRequestMain/productionscrapRequestMain.data.ts index 5f5c3248e..5acd62749 100644 --- a/src/views/wms/issueManage/productionscrap/productionscrapRequestMain/productionscrapRequestMain.data.ts +++ b/src/views/wms/issueManage/productionscrap/productionscrapRequestMain/productionscrapRequestMain.data.ts @@ -26,6 +26,9 @@ import { TableColumn } from '@/types/table' import * as InspectionQ3Api from '@/api/qms/inspectionQ3' import { Q3 } from '@/views/qms/inspectionQ3/inspectionQ3.data' +// import * as LocationApi from '@/api/wms/location' +// import { Location } from '@/views/wms/basicDataManage/factoryModeling/location/location.data' + const { t } = useI18n() // 国际化 // 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值 @@ -697,6 +700,53 @@ export const ProductionscrapRequestDetail = useCrudSchemas(reactive { data.subList = tableData.value // 拼接子表数据参数 let isExist = false tableData.value.forEach(item => { - let rs = tableData.value.filter(filterItem => (filterItem.fromPackingNumber&&filterItem.fromPackingNumber == item.fromPackingNumber) ) - console.log(rs,5666); + let rs = tableData.value.filter(filterItem => (filterItem.fromPackingNumber&&filterItem.fromPackingNumber == item.fromPackingNumber) ) + console.log(rs,5666); if(rs.length > 1) isExist = true }) if (isExist) { diff --git a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts index 539a42f47..5899a7623 100644 --- a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts +++ b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts @@ -709,6 +709,7 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive( value: 'in', isMainValue: false }], + isRepeat:true, verificationParams: [{ key: 'code', action: '==', @@ -920,6 +921,9 @@ export const InventorymoveRequestDetailRules = reactive({ fromLocationCode: [ { required: true, message: '请选择从库位代码', trigger: 'change' } ], + fromPackingNumber: [ + { required: true, message: '请选择从包装号', trigger: 'change' } + ], fromInventoryStatus: [ { required: true, message: '请选择从库存状态', trigger: 'change' } ], diff --git a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue index d34af2d33..2fe873942 100644 --- a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue +++ b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue @@ -128,7 +128,23 @@ :isShowFooterButtton="false" /> - + + + { + printItemCode.value = printItemCode.value.trim() + if(printItemCode.value == ''){ + searchTableRef.value.updateData(printTableList.value) + }else{ + console.log(printItemCode.value) + let printItemCodes = printItemCode.value.split(',') + console.log(printItemCodes) + let itemCodesList = printTableList.value.filter(item=>!!printItemCodes.find(item1=>item['itemCode']==item1)) + searchTableRef.value.updateData(itemCodesList) + } + +} +const resetPrint = ()=>{ + printItemCode.value = '' + searchPrint() +} const labelPrint = async (row) => { tableObject.loading = true const defaultParams = {'moduleName':'purchasereceipt_request','recordNumber':row.asnNumber} @@ -488,12 +525,14 @@ const labelPrint = async (row) => { // 获得表格的各种操作 const { getList:getListPrint } = tableMethods - getListPrint() + await getListPrint() tableObject.loading = false const tableColumns = SupplierdeliverRequestPackage.allSchemas.tableFormColumns tableColumns.forEach((item) => { item.width = item.table?.width }) + printItemCode.value = '' + printTableList.value = JSON.parse(JSON.stringify(tableObjectPrint.tableList)) searchTableRef.value.openData("标签信息",tableObjectPrint,{tableColumns},true) } diff --git a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/purchasereturnRequestMain.data.ts b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/purchasereturnRequestMain.data.ts index 13199b0e4..5ea315e1c 100644 --- a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/purchasereturnRequestMain.data.ts +++ b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/purchasereturnRequestMain.data.ts @@ -1574,9 +1574,9 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive //表单校验 export const PurchasereturnRequestDetailRules = reactive({ - packingNumber: [ - { required: true, message: '请输入包装号', trigger: 'blur' } - ], + // packingNumber: [ + // { required: true, message: '请输入包装号', trigger: 'blur' } + // ], // batch: [ // { required: true, message: '请输入批次', trigger: 'blur' } // ], diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue index 2c40fa884..013ff8a88 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue @@ -96,6 +96,7 @@ editHasPermi="wms:purchase-plan-main:update" deleteHasPermi="wms:purchase-plan-main:delete" :isOpenSearchTable="true" + :mainSubmitCreateApi="true" fieldTableColumn="poLine" /> @@ -302,8 +303,23 @@ const getSearchTableData = async (number,formField,searchField)=>{ }) } // 查询页面返回——详情 - const searchTableSuccessDetail = (formField, searchField, val, formRef) => { + const searchTableSuccessDetail = (formField, searchField, val, formRef,formModel) => { + console.log('searchTableSuccessDetail',formField, searchField, val, formRef,formModel) nextTick(async () => { + if(formModel){ + console.log(formModel) + //明细中新增 + let data = {...val[0]} + data['planQty'] = val[0]['orderQty'] + data['poLine'] = val[0]['lineNumber'] + data['number'] = formModel['number'] + data['poNumber'] = formModel['poNumber'] + console.log('data',data) + await PurchasePlanDetailApi.createPurchasePlanDetail(data) + message.success(t('common.createSuccess')) + detailRef.value.updateList() + return + } const setV = {} setV[formField] = val[0][searchField] setV['poNumber'] = val[0]['number'] diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/supplierdeliverRecordMain.data.ts b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/supplierdeliverRecordMain.data.ts index bc1b0ad40..3794079fb 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/supplierdeliverRecordMain.data.ts +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/supplierdeliverRecordMain.data.ts @@ -39,6 +39,7 @@ export const SupplierdeliverRecordMain = useCrudSchemas(reactive([ table: { width: 180 }, + isSearch: true }, { label: '供应商代码', diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts index f3405d481..154d21323 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts @@ -1261,6 +1261,9 @@ export const SupplierdeliverRequestDetailRules = reactive({ { required: true, message: '请输入发货数量1', trigger: 'change' }, // { validator: validateQty, trigger: 'change' }, ], + supplierBatch: [ + { required: true, message: '请输入供应商批次', trigger: 'blur' } + ], batch: [ { required: true, message: '请输入批次', trigger: 'blur' }, { max: 50, message: '不得超过50个字符', trigger: 'blur' },