diff --git a/src/api/wms/business/inputBlur.ts b/src/api/wms/business/inputBlur.ts index 9fb2ca26e..0bd0e3d38 100644 --- a/src/api/wms/business/inputBlur.ts +++ b/src/api/wms/business/inputBlur.ts @@ -158,24 +158,26 @@ export const tableFormBlurVer = async (headerItem, val, row, index, routeName, f } } } - // 判断改包装号是否已经添加 - const seen = new Set() - const repeatCode = new Set() - const arr = tableData.map((item) => item[headerItem.field]?.trim()) - arr.forEach((item) => { - if (item) { - if (seen.has(item)) { - repeatCode.add(item) - } else { - seen.add(item) + // 判断代码是否存在 + if (!headerItem?.tableForm.isRepeat) { + const seen = new Set() + const repeatCode = new Set() + const arr = tableData.map((item) => item[headerItem.field]?.trim()) + arr.forEach((item) => { + if (item) { + if (seen.has(item)) { + repeatCode.add(item) + } else { + seen.add(item) + } } + }) + const arr1 = Array.from(repeatCode) + if (arr1.length > 0) { + message.warning(`${arr1.join(',')}${t('ts.已经存在')}`) + row[headerItem.field] = '' + return } - }) - const arr1 = Array.from(repeatCode) - if (arr1.length > 0) { - message.warning(`${arr1.join(',')}${t('ts.已经存在')}`) - row[headerItem.field] = '' - return } if (filters.length > 0) { params.value.isSearch = true diff --git a/src/locales/en-US.ts b/src/locales/en-US.ts index 2a84dc25b..27b9c7ea8 100644 --- a/src/locales/en-US.ts +++ b/src/locales/en-US.ts @@ -1171,8 +1171,115 @@ export default { 采购计划策略:'Procurement Planning Strategy', 要货预测周期管理:'Demand forecasting cycle management', 价差数据查看:'Spread data view', - 待开票数据查询:'Invoicing data query' - + 待开票数据查询:'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 255e68bc6..e0624a8ee 100644 --- a/src/locales/zh-CN.ts +++ b/src/locales/zh-CN.ts @@ -1167,8 +1167,114 @@ 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 1607c4db5..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,7 +773,7 @@ const open = async (type: string, row?: any, masterParmas?: any, titleName?: any inspectionValue: '', //检验值 qualitativeCode: '', //定性字典项值 defectLevel: '', //缺陷级别 - qualifiedQuantity:parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.sampleQty), //合格数量 + qualifiedQuantity: parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.sampleQty), //合格数量 unqualifiedQuantity: '0' //不合格数量 }) } @@ -1479,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 ad2321b7e..d3c12f30a 100644 --- a/src/views/qms/inspectionRecordFirst/addForm.vue +++ b/src/views/qms/inspectionRecordFirst/addForm.vue @@ -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,7 +842,7 @@ const processList = async (InspectionSchemeObj, list) => { inspectionValue: '', //检验值 qualitativeCode: '', //定性字典项值 defectLevel: '', //缺陷级别 - qualifiedQuantity:parseFloat(item.samplingProcessRespVO.sampleQty), //合格数量 + qualifiedQuantity: parseFloat(item.samplingProcessRespVO.sampleQty), //合格数量 unqualifiedQuantity: '0' //不合格数量 }) } @@ -1485,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 diff --git a/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue b/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue index 51a9c00ee..c2f08f68a 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/issueManage/productionscrap/productionscrapRequestMain/index.vue b/src/views/wms/issueManage/productionscrap/productionscrapRequestMain/index.vue index 0ca2ebe15..c3496eea1 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')) 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 == 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) { @@ -710,6 +710,7 @@ const submitForm = async (formType, submitData) => { isExist = false return message.warning('包装号重复') } + flag.value = false data.subList.forEach(item => { console.log(556565,item); if(fromInventoryStatus.value){ diff --git a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts index 539a42f47..b90d7a7c3 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: '==',