Browse Source

2024-09-27

优化
master
fengyuan_yang 1 year ago
parent
commit
b702c5a173
  1. 46
      src/views/modules/changeManagement/changeRecord.vue
  2. 46
      src/views/modules/changeManagement/changeRequest.vue
  3. 90
      src/views/modules/customer/customerInformationManagement.vue
  4. 27
      src/views/modules/part/bomManagement.vue
  5. 24
      src/views/modules/part/partCatalogInformation.vue
  6. 136
      src/views/modules/part/partInformation.vue
  7. 19
      src/views/modules/part/routingManagement.vue
  8. 16
      src/views/modules/processManagement/processBindingInfo.vue
  9. 136
      src/views/modules/project/projectInfo/com_project_info_part.vue

46
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 = ''
},
// ======== ========

46
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 = ''
},

90
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 ========

27
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 = ''
}
},

24
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 = ''
},

136
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 = ''
},
// ======== ========

19
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 = ''
},
// ======== ========

16
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 = ''
},
// ======== ========

136
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 = ''
},
//

Loading…
Cancel
Save