diff --git a/src/views/modules/changeManagement/changeRecord.vue b/src/views/modules/changeManagement/changeRecord.vue index 199becc..0052f17 100644 --- a/src/views/modules/changeManagement/changeRecord.vue +++ b/src/views/modules/changeManagement/changeRecord.vue @@ -3789,20 +3789,14 @@ this.modalData.applicantId = data.baseListData[0].username this.modalData.applicantName = data.baseListData[0].user_display this.getDepartmentByUserName() - } else { - this.$message.warning('该申请人员不存在!') - this.modalData.applicantName = '' - this.modalData.applicationDepartmentId = '' - this.modalData.applicationDepartmentName = '' + return } - } else { - this.$message.warning(data.msg) - this.modalData.applicantName = '' - this.modalData.applicationDepartmentId = '' - this.modalData.applicationDepartmentName = '' } }) } + this.modalData.applicantName = '' + this.modalData.applicationDepartmentId = '' + this.modalData.applicationDepartmentName = '' }, // 审批人员输入校验 @@ -3817,16 +3811,12 @@ if (data.baseListData.length > 0) { this.modalData.tpEngineerId = data.baseListData[0].username this.modalData.tpEngineerName = data.baseListData[0].user_display - } else { - this.$message.warning('该审批人员不存在!') - this.modalData.tpEngineerName = '' + return } - } else { - this.$message.warning(data.msg) - this.modalData.tpEngineerName = '' } }) } + this.modalData.tpEngineerName = '' }, // I/E输入校验 @@ -3841,16 +3831,12 @@ if (data.baseListData.length > 0) { this.modalData.industrialEngineerId = data.baseListData[0].username this.modalData.industrialEngineerName = data.baseListData[0].user_display - } else { - this.$message.warning('该I/E人员不存在!') - this.modalData.industrialEngineerName = '' + return } - } else { - this.$message.warning(data.msg) - this.modalData.industrialEngineerName = '' } }) } + this.modalData.industrialEngineerName = '' }, // CQC输入校验 @@ -3865,16 +3851,12 @@ if (data.baseListData.length > 0) { this.modalData.cqcOperatorId = data.baseListData[0].username this.modalData.cqcOperatorName = data.baseListData[0].user_display - } else { - this.$message.warning('该CQC人员不存在!') - this.modalData.cqcOperatorName = '' + return } - } else { - this.$message.warning(data.msg) - this.modalData.cqcOperatorName = '' } }) } + this.modalData.cqcOperatorName = '' }, // FAI输入校验 @@ -3889,16 +3871,12 @@ if (data.baseListData.length > 0) { this.modalData.faiOperatorId = data.baseListData[0].username this.modalData.faiOperatorName = data.baseListData[0].user_display - } else { - this.$message.warning('该FAI人员不存在!') - this.modalData.faiOperatorName = '' + return } - } else { - this.$message.warning(data.msg) - this.modalData.faiOperatorName = '' } }) } + this.modalData.faiOperatorName = '' }, // ======== 导出相关方法 ======== diff --git a/src/views/modules/changeManagement/changeRequest.vue b/src/views/modules/changeManagement/changeRequest.vue index 3aa03d7..558c8e4 100644 --- a/src/views/modules/changeManagement/changeRequest.vue +++ b/src/views/modules/changeManagement/changeRequest.vue @@ -2812,20 +2812,14 @@ this.modalData.applicantId = data.baseListData[0].username this.modalData.applicantName = data.baseListData[0].user_display this.getDepartmentByUserName() - } else { - this.$message.warning('该申请人员不存在!') - this.modalData.applicantName = '' - this.modalData.applicationDepartmentId = '' - this.modalData.applicationDepartmentName = '' + return } - } else { - this.$message.warning(data.msg) - this.modalData.applicantName = '' - this.modalData.applicationDepartmentId = '' - this.modalData.applicationDepartmentName = '' } }) } + this.modalData.applicantName = '' + this.modalData.applicationDepartmentId = '' + this.modalData.applicationDepartmentName = '' }, // 审批人员输入校验 @@ -2840,16 +2834,12 @@ if (data.baseListData.length > 0) { this.modalData.tpEngineerId = data.baseListData[0].username this.modalData.tpEngineerName = data.baseListData[0].user_display - } else { - this.$message.warning('该审批人员不存在!') - this.modalData.tpEngineerName = '' + return } - } else { - this.$message.warning(data.msg) - this.modalData.tpEngineerName = '' } }) } + this.modalData.tpEngineerName = '' }, // I/E输入校验 @@ -2864,16 +2854,12 @@ if (data.baseListData.length > 0) { this.modalData.industrialEngineerId = data.baseListData[0].username this.modalData.industrialEngineerName = data.baseListData[0].user_display - } else { - this.$message.warning('该I/E人员不存在!') - this.modalData.industrialEngineerName = '' + return } - } else { - this.$message.warning(data.msg) - this.modalData.industrialEngineerName = '' } }) } + this.modalData.industrialEngineerName = '' }, // CQC输入校验 @@ -2888,16 +2874,12 @@ if (data.baseListData.length > 0) { this.modalData.cqcOperatorId = data.baseListData[0].username this.modalData.cqcOperatorName = data.baseListData[0].user_display - } else { - this.$message.warning('该CQC人员不存在!') - this.modalData.cqcOperatorName = '' + return } - } else { - this.$message.warning(data.msg) - this.modalData.cqcOperatorName = '' } }) } + this.modalData.cqcOperatorName = '' }, // FAI输入校验 @@ -2912,16 +2894,12 @@ if (data.baseListData.length > 0) { this.modalData.faiOperatorId = data.baseListData[0].username this.modalData.faiOperatorName = data.baseListData[0].user_display - } else { - this.$message.warning('该FAI人员不存在!') - this.modalData.faiOperatorName = '' + return } - } else { - this.$message.warning(data.msg) - this.modalData.faiOperatorName = '' } }) } + this.modalData.faiOperatorName = '' }, diff --git a/src/views/modules/customer/customerInformationManagement.vue b/src/views/modules/customer/customerInformationManagement.vue index 1d696cb..4f7c88d 100644 --- a/src/views/modules/customer/customerInformationManagement.vue +++ b/src/views/modules/customer/customerInformationManagement.vue @@ -2078,80 +2078,6 @@ export default { } }); }, - // ======== 列表数据刷新方法 ======== - /** - * 获取数据列表 - */ - getDataList () { - this.searchData.limit = this.pageSize - this.searchData.page = this.pageIndex - customerInformationSearch(this.searchData).then(({data}) => { - if (data.code === 0) { - this.dataList = data.page.list - this.pageIndex = data.page.currPage - this.pageSize = data.page.pageSize - this.totalPage = data.page.totalCount - // 判断是否全部存在数据 - if (this.dataList.length > 0) { - // 设置选中行 - this.$refs.customerTable.setCurrentRow(this.dataList[0]) - } else { - this.customerCurrentRow = {} - } - // 加载当前的页签的table - this.refreshCurrentTabTable() - } - }) - }, - /** - * 刷新客户联系人的列表 - */ - getCustomerContactList () { - let tempData = { - site: this.$store.state.user.site, - customerNo: this.customerCurrentRow.customerNo - } - customerContactSearch(tempData).then(({data}) => { - if (data && data.code === 0) { - this.contactList = data.rows - } else { - this.contactList = [] - } - }); - }, - /** - * 刷新客户联系地址的列表 - */ - getCustomerAddressList () { - let tempData = { - site: this.$store.state.user.site, - customerNo: this.customerCurrentRow.customerNo, - customerDesc: this.customerCurrentRow.customerDesc - } - customerAddressSearch(tempData).then(({data}) => { - if (data && data.code === 0) { - this.addressList = data.rows - } else { - this.addressList = [] - } - }); - }, - /** - * 刷新客户项目信息的列表 - */ - getProjectInformationList () { - let tempData = { - site: this.$store.state.user.site, - customerId: this.customerCurrentRow.customerNo - } - projectInformationSearch(tempData).then(({data}) => { - if (data && data.code === 0) { - this.projectInformationList = data.rows - } else { - this.projectInformationList = [] - } - }); - }, // ======== 新增模态框 ======== /** @@ -3061,16 +2987,12 @@ export default { if (data.baseListData.length > 0) { this.modalData.customerGroupId1 = data.baseListData[0].customer_group_id this.modalData.customerGroupName1 = data.baseListData[0].customer_group_name - } else { - this.$message.warning('该客户组1不存在!') - this.modalData.customerGroupName1 = '' + return } - } else { - this.$message.warning(data.msg) - this.modalData.customerGroupName1 = '' } }) } + this.modalData.customerGroupName1 = '' }, // 客户组2输入校验 @@ -3085,16 +3007,12 @@ export default { if (data.baseListData.length > 0) { this.modalData.customerGroupId2 = data.baseListData[0].customer_group_id this.modalData.customerGroupName2 = data.baseListData[0].customer_group_name - } else { - this.$message.warning('该客户组2不存在!') - this.modalData.customerGroupName2 = '' + return } - } else { - this.$message.warning(data.msg) - this.modalData.customerGroupName2 = '' } }) } + this.modalData.customerGroupName2 = '' }, // ======== chooseList相关方法 ======== diff --git a/src/views/modules/part/bomManagement.vue b/src/views/modules/part/bomManagement.vue index d4b5e3a..d13accd 100644 --- a/src/views/modules/part/bomManagement.vue +++ b/src/views/modules/part/bomManagement.vue @@ -3360,13 +3360,13 @@ export default { this.modalData.partDesc = data.page.list[0].partDesc this.modalData.printUnit = data.page.list[0].printUnit this.modalData.printUnitName = data.page[0].printUnitName - } else { - this.modalData.partDesc = '' - this.modalData.printUnit = '' - this.modalData.printUnitName = '' + return } } }) + this.modalData.partDesc = '' + this.modalData.printUnit = '' + this.modalData.printUnitName = '' }, /** @@ -3533,15 +3533,14 @@ export default { this.componentData.componentPartDesc = data.page.list[0].partDesc this.componentData.printUnit = data.page.list[0].printUnit this.componentData.printUnitName = data.page.list[0].printUnitName - } else { - this.$message.warning('该子物料不存在!') - this.componentData.componentPartDesc = '' - this.componentData.printUnit = '' - this.componentData.printUnitName = '' + return } } }) } + this.componentData.componentPartDesc = '' + this.componentData.printUnit = '' + this.componentData.printUnitName = '' }, // copy物料编码失焦事件 @@ -3555,13 +3554,12 @@ export default { if (data && data.code === 0) { if (data.page.list.length === 1) { this.copyBomData.partDesc = data.page.list[0].partDesc - } else { - this.$message.warning('该物料编码不存在或制造类型不合规!') - this.copyBomData.partDesc = '' + return } } }) } + this.copyBomData.partDesc = '' } else { if (this.copyAlternativeData.partNo != null && this.copyAlternativeData.partNo !== '') { this.copyPartData.limit = this.pageSize4 @@ -3571,13 +3569,12 @@ export default { if (data && data.code === 0) { if (data.page.list.length === 1) { this.copyAlternativeData.partDesc = data.page.list[0].partDesc - } else { - this.$message.warning('该物料编码不存在或制造类型不合规!') - this.copyAlternativeData.partDesc = '' + return } } }) } + this.copyAlternativeData.partDesc = '' } }, diff --git a/src/views/modules/part/partCatalogInformation.vue b/src/views/modules/part/partCatalogInformation.vue index 536a3d0..a044b30 100644 --- a/src/views/modules/part/partCatalogInformation.vue +++ b/src/views/modules/part/partCatalogInformation.vue @@ -1696,16 +1696,12 @@ if (data.baseListData.length > 0) { this.modalData.umId = data.baseListData[0].um_id this.modalData.umName = data.baseListData[0].um_name - } else { - this.$message.warning('该计量单位不存在!') - this.modalData.umName = '' + return } - } else { - this.$message.warning(data.msg) - this.modalData.umName = '' } }) } + this.modalData.umName = '' }, // 产品代码输入校验 @@ -1720,16 +1716,12 @@ if (data.baseListData.length > 0) { this.modalData.partMainGroup = data.baseListData[0].group_id this.modalData.groupName = data.baseListData[0].group_name - } else { - this.$message.warning('该物料分组不存在!') - this.modalData.groupName = '' + return } - } else { - this.$message.warning(data.msg) - this.modalData.groupName = '' } }) } + this.modalData.groupName = '' }, // 属性模板输入校验 @@ -1744,16 +1736,12 @@ if (data.baseListData.length > 0) { this.modalData.codeNo = data.baseListData[0].Code_no this.modalData.codeDesc = data.baseListData[0].Code_desc - } else { - this.$message.warning('该属性模板不存在!') - this.modalData.codeDesc = '' + return } - } else { - this.$message.warning(data.msg) - this.modalData.codeDesc = '' } }) } + this.modalData.codeDesc = '' }, diff --git a/src/views/modules/part/partInformation.vue b/src/views/modules/part/partInformation.vue index 707e5b2..3b8e308 100644 --- a/src/views/modules/part/partInformation.vue +++ b/src/views/modules/part/partInformation.vue @@ -4702,16 +4702,12 @@ if (data.baseListData.length > 0) { this.modalData.hazardCode = data.baseListData[0].hazard_code this.modalData.hazardDesc = data.baseListData[0].hazard_desc - } else { - this.$message.warning('该安全代码不存在!') - this.modalData.hazardDesc = '' + return } - } else { - this.$message.warning(data.msg) - this.modalData.hazardDesc = '' } }) } + this.modalData.hazardDesc = '' }, // 计划人输入校验 @@ -4726,16 +4722,12 @@ if (data.baseListData.length > 0) { this.modalData.productGroupId4 = data.baseListData[0].product_group_id this.modalData.productGroupName4 = data.baseListData[0].product_group_name - } else { - this.$message.warning('该计划人不存在!') - this.modalData.productGroupName4 = '' + return } - } else { - this.$message.warning(data.msg) - this.modalData.productGroupName4 = '' } }) } + this.modalData.productGroupName4 = '' }, // 会计组输入校验 @@ -4750,16 +4742,12 @@ if (data.baseListData.length > 0) { this.modalData.productGroupId3 = data.baseListData[0].product_group_id this.modalData.productGroupName3 = data.baseListData[0].product_group_name - } else { - this.$message.warning('该会计组不存在!') - this.modalData.productGroupName3 = '' + return } - } else { - this.$message.warning(data.msg) - this.modalData.productGroupName3 = '' } }) } + this.modalData.productGroupName3 = '' }, // 计量单位输入校验 @@ -4774,16 +4762,12 @@ if (data.baseListData.length > 0) { this.modalData.umId = data.baseListData[0].um_id this.modalData.umName = data.baseListData[0].um_name - } else { - this.$message.warning('该计量单位不存在!') - this.modalData.umName = '' + return } - } else { - this.$message.warning(data.msg) - this.modalData.umName = '' } }) } + this.modalData.umName = '' }, // 产品代码输入校验 @@ -4798,16 +4782,12 @@ if (data.baseListData.length > 0) { this.modalData.groupId = data.baseListData[0].group_id this.modalData.groupName = data.baseListData[0].group_name - } else { - this.$message.warning('该产品代码不存在!') - this.modalData.groupName = '' + return } - } else { - this.$message.warning(data.msg) - this.modalData.groupName = '' } }) } + this.modalData.groupName = '' }, // 商品组1输入校验 @@ -4822,16 +4802,12 @@ if (data.baseListData.length > 0) { this.modalData.productGroupId1 = data.baseListData[0].product_group_id this.modalData.productGroupName1 = data.baseListData[0].product_group_name - } else { - this.$message.warning('该商品组1不存在!') - this.modalData.productGroupName1 = '' + return } - } else { - this.$message.warning(data.msg) - this.modalData.productGroupName1 = '' } }) } + this.modalData.productGroupName1 = '' }, // 产品大类输入校验 @@ -4846,16 +4822,12 @@ if (data.baseListData.length > 0) { this.modalData.familyId = data.baseListData[0].family_id this.modalData.familyName = data.baseListData[0].family_name - } else { - this.$message.warning('该产品大类不存在!') - this.modalData.familyName = '' + return } - } else { - this.$message.warning(data.msg) - this.modalData.familyName = '' } }) } + this.modalData.familyName = '' }, // 商品组2输入校验 @@ -4870,16 +4842,12 @@ if (data.baseListData.length > 0) { this.modalData.productGroupId2 = data.baseListData[0].product_group_id this.modalData.productGroupName2 = data.baseListData[0].product_group_name - } else { - this.$message.warning('该商品组2不存在!') - this.modalData.productGroupName2 = '' + return } - } else { - this.$message.warning(data.msg) - this.modalData.productGroupName2 = '' } }) } + this.modalData.productGroupName2 = '' }, // 资产等级输入校验 @@ -4894,16 +4862,12 @@ if (data.baseListData.length > 0) { this.modalData.assetClass = data.baseListData[0].asset_class this.modalData.assetClassDesc = data.baseListData[0].asset_class_desc - } else { - this.$message.warning('该资产等级不存在!') - this.modalData.assetClassDesc = '' + return } - } else { - this.$message.warning(data.msg) - this.modalData.assetClassDesc = '' } }) } + this.modalData.assetClassDesc = '' }, // 零件状态输入校验 @@ -4918,16 +4882,12 @@ if (data.baseListData.length > 0) { this.modalData.partStatus = data.baseListData[0].part_status this.modalData.partStatusDesc = data.baseListData[0].part_status_desc - } else { - this.$message.warning('该零件状态不存在!') - this.modalData.partStatusDesc = '' + return } - } else { - this.$message.warning(data.msg) - this.modalData.partStatusDesc = '' } }) } + this.modalData.partStatusDesc = '' }, // abc类输入校验 @@ -4942,16 +4902,12 @@ if (data.baseListData.length > 0) { this.modalData.abcClass = data.baseListData[0].abc_class this.modalData.abcClassDesc = data.baseListData[0].abc_class_desc - } else { - this.$message.warning('该ABC类不存在!') - this.modalData.abcClassDesc = '' + return } - } else { - this.$message.warning(data.msg) - this.modalData.abcClassDesc = '' } }) } + this.modalData.abcClassDesc = '' }, // 属性模板输入校验 @@ -4966,16 +4922,12 @@ if (data.baseListData.length > 0) { this.modalData.codeNo = data.baseListData[0].Code_no this.modalData.codeDesc = data.baseListData[0].Code_desc - } else { - this.$message.warning('该属性模板不存在!') - this.modalData.codeDesc = '' + return } - } else { - this.$message.warning(data.msg) - this.modalData.codeDesc = '' } }) } + this.modalData.codeDesc = '' }, // 来源国家输入校验 @@ -4990,16 +4942,12 @@ if (data.baseListData.length > 0) { this.modalData.countryOfOrigin = data.baseListData[0].country_of_origin this.modalData.countryOfOriginDesc = data.baseListData[0].country_of_origin_desc - } else { - this.$message.warning('该来源国家不存在!') - this.modalData.countryOfOriginDesc = '' + return } - } else { - this.$message.warning(data.msg) - this.modalData.countryOfOriginDesc = '' } }) } + this.modalData.countryOfOriginDesc = '' }, // 区域代码输入校验 @@ -5014,16 +4962,12 @@ if (data.baseListData.length > 0) { this.modalData.regionOfOrigin = data.baseListData[0].region_of_origin this.modalData.regionOfOriginDesc = data.baseListData[0].region_of_origin_desc - } else { - this.$message.warning('该区域代码不存在!') - this.modalData.regionOfOriginDesc = '' + return } - } else { - this.$message.warning(data.msg) - this.modalData.regionOfOriginDesc = '' } }) } + this.modalData.regionOfOriginDesc = '' }, // 海关统计序号输入校验 @@ -5038,16 +4982,12 @@ if (data.baseListData.length > 0) { this.modalData.customsStatNo = data.baseListData[0].customs_stat_no this.modalData.customsStatDesc = data.baseListData[0].customs_stat_desc - } else { - this.$message.warning('该海关统计序号不存在!') - this.modalData.customsStatDesc = '' + return } - } else { - this.$message.warning(data.msg) - this.modalData.customsStatDesc = '' } }) } + this.modalData.customsStatDesc = '' }, // 零件成本组输入校验 @@ -5062,16 +5002,12 @@ if (data.baseListData.length > 0) { this.modalData.partCostGroupId = data.baseListData[0].part_cost_group_id this.modalData.partCostGroupDesc = data.baseListData[0].part_cost_group_desc - } else { - this.$message.warning('该零件成本组不存在!') - this.modalData.partCostGroupDesc = '' + return } - } else { - this.$message.warning(data.msg) - this.modalData.partCostGroupDesc = '' } }) } + this.modalData.partCostGroupDesc = '' }, // 计划方法 @@ -5086,16 +5022,12 @@ if (data.baseListData.length > 0) { this.modalData.planningMethod = data.baseListData[0].planning_method this.modalData.planningMethodDesc = data.baseListData[0].planning_method_desc - } else { - this.$message.warning('该计划方法不存在!') - this.modalData.planningMethodDesc = '' + return } - } else { - this.$message.warning(data.msg) - this.modalData.planningMethodDesc = '' } }) } + this.modalData.planningMethodDesc = '' }, // ======== 列表操作方法 ======== diff --git a/src/views/modules/part/routingManagement.vue b/src/views/modules/part/routingManagement.vue index 060bd1a..d3c99c2 100644 --- a/src/views/modules/part/routingManagement.vue +++ b/src/views/modules/part/routingManagement.vue @@ -2640,13 +2640,12 @@ export default { if (data && data.code === 0) { if (data.page.list.length === 1) { this.copyRoutingData.partDesc = data.page.list[0].partDesc - } else { - this.$message.warning('该物料不存在!') - this.copyRoutingData.partDesc = '' + return } } }) } + this.copyRoutingData.partDesc = '' } else { if (this.copyAlternativeData.partNo != null && this.copyAlternativeData.partNo !== '') { this.copyPartData.limit = this.pageSize4 @@ -2656,13 +2655,12 @@ export default { if (data && data.code === 0) { if (data.page.list.length === 1) { this.copyAlternativeData.partDesc = data.page.list[0].partDesc - } else { - this.$message.warning('该物料不存在!') - this.copyAlternativeData.partDesc = '' + return } } }) } + this.copyAlternativeData.partDesc = '' } }, @@ -4450,16 +4448,13 @@ export default { this.componentData.workCenterNo = data.baseListData[0].work_center_no this.componentData.workCenterDesc = data.baseListData[0].work_center_desc this.componentData.workCenterType = data.baseListData[0].work_center_type - } else { - this.$message.warning('该加工中心不存在!') - this.componentData.workCenterDesc = '' + return } - } else { - this.$message.warning(data.msg) - this.componentData.workCenterDesc = '' } }) } + this.componentData.workCenterDesc = '' + this.componentData.workCenterType = '' }, // ======== 导出相关方法 ======== diff --git a/src/views/modules/processManagement/processBindingInfo.vue b/src/views/modules/processManagement/processBindingInfo.vue index 292bb3a..0d9029b 100644 --- a/src/views/modules/processManagement/processBindingInfo.vue +++ b/src/views/modules/processManagement/processBindingInfo.vue @@ -1652,16 +1652,12 @@ if (data.baseListData.length > 0) { this.modalData.workflowId = data.baseListData[0].Workflowid this.modalData.workflowname = data.baseListData[0].Workflowname - } else { - this.$message.warning('该流程不存在!') - this.modalData.workflowname = '' + return } - } else { - this.$message.warning('该流程不存在!') - this.modalData.workflowname = '' } }) } + this.modalData.workflowname = '' }, // 菜单ID输入校验 @@ -1676,16 +1672,12 @@ if (data.baseListData.length > 0) { this.modalData.menuId = data.baseListData[0].Menu_id this.modalData.name = data.baseListData[0].Name - } else { - this.$message.warning('该菜单不存在!') - this.modalData.name = '' + return } - } else { - this.$message.warning('该菜单不存在!') - this.modalData.name = '' } }) } + this.modalData.name = '' }, // ======== 导出相关方法 ======== diff --git a/src/views/modules/project/projectInfo/com_project_info_part.vue b/src/views/modules/project/projectInfo/com_project_info_part.vue index d84ec95..2e942f2 100644 --- a/src/views/modules/project/projectInfo/com_project_info_part.vue +++ b/src/views/modules/project/projectInfo/com_project_info_part.vue @@ -2766,16 +2766,12 @@ if (data.baseListData.length > 0) { this.modalData.hazardCode = data.baseListData[0].hazard_code this.modalData.hazardDesc = data.baseListData[0].hazard_desc - } else { - this.$message.warning('该安全代码不存在!') - this.modalData.hazardDesc = '' + return } - } else { - this.$message.warning(data.msg) - this.modalData.hazardDesc = '' } }) } + this.modalData.hazardDesc = '' }, // 计划人输入校验 @@ -2790,16 +2786,12 @@ if (data.baseListData.length > 0) { this.modalData.productGroupId4 = data.baseListData[0].product_group_id this.modalData.productGroupName4 = data.baseListData[0].product_group_name - } else { - this.$message.warning('该计划人不存在!') - this.modalData.productGroupName4 = '' + return } - } else { - this.$message.warning(data.msg) - this.modalData.productGroupName4 = '' } }) } + this.modalData.productGroupName4 = '' }, // 会计组输入校验 @@ -2814,16 +2806,12 @@ if (data.baseListData.length > 0) { this.modalData.productGroupId3 = data.baseListData[0].product_group_id this.modalData.productGroupName3 = data.baseListData[0].product_group_name - } else { - this.$message.warning('该会计组不存在!') - this.modalData.productGroupName3 = '' + return } - } else { - this.$message.warning(data.msg) - this.modalData.productGroupName3 = '' } }) } + this.modalData.productGroupName3 = '' }, // 计量单位输入校验 @@ -2838,16 +2826,12 @@ if (data.baseListData.length > 0) { this.modalData.umId = data.baseListData[0].um_id this.modalData.umName = data.baseListData[0].um_name - } else { - this.$message.warning('该计量单位不存在!') - this.modalData.umName = '' + return } - } else { - this.$message.warning(data.msg) - this.modalData.umName = '' } }) } + this.modalData.umName = '' }, // 产品代码输入校验 @@ -2862,16 +2846,12 @@ if (data.baseListData.length > 0) { this.modalData.groupId = data.baseListData[0].group_id this.modalData.groupName = data.baseListData[0].group_name - } else { - this.$message.warning('该产品代码不存在!') - this.modalData.groupName = '' + return } - } else { - this.$message.warning(data.msg) - this.modalData.groupName = '' } }) } + this.modalData.groupName = '' }, // 商品组1输入校验 @@ -2886,16 +2866,12 @@ if (data.baseListData.length > 0) { this.modalData.productGroupId1 = data.baseListData[0].product_group_id this.modalData.productGroupName1 = data.baseListData[0].product_group_name - } else { - this.$message.warning('该商品组1不存在!') - this.modalData.productGroupName1 = '' + return } - } else { - this.$message.warning(data.msg) - this.modalData.productGroupName1 = '' } }) } + this.modalData.productGroupName1 = '' }, // 产品大类输入校验 @@ -2910,16 +2886,12 @@ if (data.baseListData.length > 0) { this.modalData.familyId = data.baseListData[0].family_id this.modalData.familyName = data.baseListData[0].family_name - } else { - this.$message.warning('该产品大类不存在!') - this.modalData.familyName = '' + return } - } else { - this.$message.warning(data.msg) - this.modalData.familyName = '' } }) } + this.modalData.familyName = '' }, // 商品组2输入校验 @@ -2934,16 +2906,12 @@ if (data.baseListData.length > 0) { this.modalData.productGroupId2 = data.baseListData[0].product_group_id this.modalData.productGroupName2 = data.baseListData[0].product_group_name - } else { - this.$message.warning('该商品组2不存在!') - this.modalData.productGroupName2 = '' + return } - } else { - this.$message.warning(data.msg) - this.modalData.productGroupName2 = '' } }) } + this.modalData.productGroupName2 = '' }, // 资产等级输入校验 @@ -2958,16 +2926,12 @@ if (data.baseListData.length > 0) { this.modalData.assetClass = data.baseListData[0].asset_class this.modalData.assetClassDesc = data.baseListData[0].asset_class_desc - } else { - this.$message.warning('该资产等级不存在!') - this.modalData.assetClassDesc = '' + return } - } else { - this.$message.warning(data.msg) - this.modalData.assetClassDesc = '' } }) } + this.modalData.assetClassDesc = '' }, // 零件状态输入校验 @@ -2982,16 +2946,12 @@ if (data.baseListData.length > 0) { this.modalData.partStatus = data.baseListData[0].part_status this.modalData.partStatusDesc = data.baseListData[0].part_status_desc - } else { - this.$message.warning('该零件状态不存在!') - this.modalData.partStatusDesc = '' + return } - } else { - this.$message.warning(data.msg) - this.modalData.partStatusDesc = '' } }) } + this.modalData.partStatusDesc = '' }, // abc类输入校验 @@ -3006,16 +2966,12 @@ if (data.baseListData.length > 0) { this.modalData.abcClass = data.baseListData[0].abc_class this.modalData.abcClassDesc = data.baseListData[0].abc_class_desc - } else { - this.$message.warning('该ABC类不存在!') - this.modalData.abcClassDesc = '' + return } - } else { - this.$message.warning(data.msg) - this.modalData.abcClassDesc = '' } }) } + this.modalData.abcClassDesc = '' }, // 属性模板输入校验 @@ -3030,16 +2986,12 @@ if (data.baseListData.length > 0) { this.modalData.codeNo = data.baseListData[0].Code_no this.modalData.codeDesc = data.baseListData[0].Code_desc - } else { - this.$message.warning('该属性模板不存在!') - this.modalData.codeDesc = '' + return } - } else { - this.$message.warning(data.msg) - this.modalData.codeDesc = '' } }) } + this.modalData.codeDesc = '' }, // 来源国家输入校验 @@ -3054,16 +3006,12 @@ if (data.baseListData.length > 0) { this.modalData.countryOfOrigin = data.baseListData[0].country_of_origin this.modalData.countryOfOriginDesc = data.baseListData[0].country_of_origin_desc - } else { - this.$message.warning('该来源国家不存在!') - this.modalData.countryOfOriginDesc = '' + return } - } else { - this.$message.warning(data.msg) - this.modalData.countryOfOriginDesc = '' } }) } + this.modalData.countryOfOriginDesc = '' }, // 区域代码输入校验 @@ -3078,16 +3026,12 @@ if (data.baseListData.length > 0) { this.modalData.regionOfOrigin = data.baseListData[0].region_of_origin this.modalData.regionOfOriginDesc = data.baseListData[0].region_of_origin_desc - } else { - this.$message.warning('该区域代码不存在!') - this.modalData.regionOfOriginDesc = '' + return } - } else { - this.$message.warning(data.msg) - this.modalData.regionOfOriginDesc = '' } }) } + this.modalData.regionOfOriginDesc = '' }, // 海关统计序号输入校验 @@ -3102,16 +3046,12 @@ if (data.baseListData.length > 0) { this.modalData.customsStatNo = data.baseListData[0].customs_stat_no this.modalData.customsStatDesc = data.baseListData[0].customs_stat_desc - } else { - this.$message.warning('该海关统计序号不存在!') - this.modalData.customsStatDesc = '' + return } - } else { - this.$message.warning(data.msg) - this.modalData.customsStatDesc = '' } }) } + this.modalData.customsStatDesc = '' }, // 零件成本组输入校验 @@ -3126,16 +3066,12 @@ if (data.baseListData.length > 0) { this.modalData.partCostGroupId = data.baseListData[0].part_cost_group_id this.modalData.partCostGroupDesc = data.baseListData[0].part_cost_group_desc - } else { - this.$message.warning('该零件成本组不存在!') - this.modalData.partCostGroupDesc = '' + return } - } else { - this.$message.warning(data.msg) - this.modalData.partCostGroupDesc = '' } }) } + this.modalData.partCostGroupDesc = '' }, // 计划方法 @@ -3150,16 +3086,12 @@ if (data.baseListData.length > 0) { this.modalData.planningMethod = data.baseListData[0].planning_method this.modalData.planningMethodDesc = data.baseListData[0].planning_method_desc - } else { - this.$message.warning('该计划方法不存在!') - this.modalData.planningMethodDesc = '' + return } - } else { - this.$message.warning(data.msg) - this.modalData.planningMethodDesc = '' } }) } + this.modalData.planningMethodDesc = '' }, // 天数内容改变事件