diff --git a/src/api/customer/projectInformation.js b/src/api/customer/projectInformation.js index d260f2c..641dc92 100644 --- a/src/api/customer/projectInformation.js +++ b/src/api/customer/projectInformation.js @@ -6,4 +6,5 @@ import { createAPI } from "@/utils/httpRequest.js"; * @returns {*} */ export const projectInformationSearch = data => createAPI(`/plm/projectInformation/projectInformationSearch`,'post',data) +export const projectInformationSearchByCustomers = data => createAPI(`/plm/projectInformation/projectInformationSearch/customers`,'post',data) diff --git a/src/api/sampleManagement/technicalSpecificationList.js b/src/api/sampleManagement/technicalSpecificationList.js index 4b891ca..4f68bbb 100644 --- a/src/api/sampleManagement/technicalSpecificationList.js +++ b/src/api/sampleManagement/technicalSpecificationList.js @@ -1,6 +1,7 @@ import { createAPI } from "@/utils/httpRequest.js"; export const technicalSpecificationListSearch = data => createAPI(`/technicalSpecification/technicalSpecificationListSearch`,'post',data) +export const technicalSpecificationListSearchInPane = data => createAPI(`/technicalSpecification/technicalSpecificationListSearch/pane`,'post',data) export const technicalSpecificationListSearchByAnyField = data => createAPI(`/technicalSpecification/technicalSpecificationListSearch/any`,'post',data) export const saveTechnicalSpecificationSheet = data => createAPI(`/technicalSpecification/saveTechnicalSpecificationSheet`,'post',data) export const searchTechnicalSpecificationTeamStr = data => createAPI(`/technicalSpecification/searchTechnicalSpecificationTeamStr`,'post',data) diff --git a/src/views/modules/customer/customerInformationManagement.vue b/src/views/modules/customer/customerInformationManagement.vue index f85b2e5..68b1b06 100644 --- a/src/views/modules/customer/customerInformationManagement.vue +++ b/src/views/modules/customer/customerInformationManagement.vue @@ -753,6 +753,7 @@ import DictDataSelect from '../sys/dict-data-select.vue' import saveOrUpdate from '../project/projectInfo/com_projectInfo-add-or-update.vue' import partUploadFile from '../part/part_upload_file.vue' import AddOrUpdate from "../project/projectInfo/com_projectInfo-add-or-update.vue"; +import {projectInformationSearchByCustomers} from "../../../api/customer/projectInformation"; export default { components: { @@ -2467,20 +2468,39 @@ export default { cancelButtonText: '取消', type: 'warning' }).then(() => { - let tempData = { - informationList: this.customerSelections + let tempData1 = { + projectList: this.customerSelections.map(item => ({ + ...item, + customerId: item.customerNo + })) } - customerInformationDelete(tempData).then(({data}) => { - if (data && data.code === 0) { - this.getDataList() - this.customerSelections = [] - this.$message({ - message: '操作成功', - type: 'success', - duration: 1500, - onClose: () => { + projectInformationSearchByCustomers(tempData1).then((data) => { + if (data.data && data.data.code === 0) { + if (data.data.rows.length > 0){ + this.$message.warning('该客户已关联项目信息,不允许删除!') + } + else { + let tempData = { + informationList: this.customerSelections } - }) + customerInformationDelete(tempData).then(({data}) => { + if (data && data.code === 0) { + this.getDataList() + this.customerSelections = [] + this.$message({ + message: '操作成功', + type: 'success', + duration: 1500, + onClose: () => { + } + }) + } else { + this.$alert(data.msg, '错误', { + confirmButtonText: '确定' + }) + } + }) + } } else { this.$alert(data.msg, '错误', { confirmButtonText: '确定' diff --git a/src/views/modules/part/bomManagement.vue b/src/views/modules/part/bomManagement.vue index 4d5ce90..79743d3 100644 --- a/src/views/modules/part/bomManagement.vue +++ b/src/views/modules/part/bomManagement.vue @@ -270,7 +270,7 @@ 更多 - 产品BOM + 产品BOM 配方BOM Routing diff --git a/src/views/modules/part/partInformation.vue b/src/views/modules/part/partInformation.vue index 33dd9b0..06c4b02 100644 --- a/src/views/modules/part/partInformation.vue +++ b/src/views/modules/part/partInformation.vue @@ -129,8 +129,8 @@ 更多 - 产品BOM - 配方BOM + 产品BOM + 配方BOM Routing 转正式物料 @@ -4807,6 +4807,10 @@ this.$message.warning('存在物料属性,属性模板不能为空值!') return } + if (this.modalData.partType==='Manufactured Recipe'&&!(this.modalData.density&&this.modalData.density!=='')){ + this.$message.warning('请填写密度!') + return + } // 校验属性必须都填有属性值 if (this.partItemList.length > 0 && this.partItemList.some(item => { @@ -5787,10 +5791,10 @@ if (type === 'Routing' ) { path = 'routing' // } else if (type === 'BOM' && row.partType !== 'Manufactured Recipe') { - } else if (row.ifHasPeifang === 'N') { + } else if (type === 'BOM') { path = 'bom' // } else if (type === 'BOM' && row.partType === 'Manufactured Recipe') { - } else if (row.ifHasPeifang === 'Y') { + } else if (type === 'Recipe') { path = 'recipe' } if (this.$router.resolve(`/part-${path}Management`).resolved.name === '404') { diff --git a/src/views/modules/part/recipeManagement.vue b/src/views/modules/part/recipeManagement.vue index e3b840e..babe92d 100644 --- a/src/views/modules/part/recipeManagement.vue +++ b/src/views/modules/part/recipeManagement.vue @@ -76,7 +76,7 @@ fixed="right" header-align="center" align="center" - width="120" + width="150" label="操作">