diff --git a/src/api/base/properties.js b/src/api/base/properties.js index 43f09e2..c36c495 100644 --- a/src/api/base/properties.js +++ b/src/api/base/properties.js @@ -22,4 +22,4 @@ export const goUpItem= data => createAPI(`/properties/goUpItem`,'post',data) export const goDownItem= data => createAPI(`/properties/goDownItem`,'post',data) export const searchAllItemTypeList= (data) => createAPI(`/properties/item/type/list`,'post',data) -export const searchAllTypeList= (data) => createAPI(`/properties/type/list`,'get',data) +export const searchAllTypeList= (data) => createAPI(`/properties/type/list`,'get',data) \ No newline at end of file diff --git a/src/api/srm/srmPart.js b/src/api/part/partInfo.js similarity index 100% rename from src/api/srm/srmPart.js rename to src/api/part/partInfo.js diff --git a/src/api/part/partProperties.js b/src/api/part/partProperties.js new file mode 100644 index 0000000..0daa5e4 --- /dev/null +++ b/src/api/part/partProperties.js @@ -0,0 +1,8 @@ +import { createAPI } from "@/utils/httpRequest.js"; + +export const refreshPropertiesModal= (data) => createAPI(`/properties/refreshPropertiesModal`,'post',data) +export const updatePropertiesList= (data) => createAPI(`/properties/updatePropertiesList`,'post',data) +export const getPropertiesListByPartAndCodeNo = (data) => createAPI(`/properties/getPropertiesListByPartAndCodeNo`,'post',data) +export const searchPropertiesItemList= data => createAPI(`/properties/searchPropertiesItemList`,'post',data) +export const saveSubPropertiesValueForAlone= data => createAPI(`/properties/saveSubPropertiesValueForAlone`,'post',data) +export const deleteSubPropertiesValueForAlone= data => createAPI(`/properties/deleteSubPropertiesValueForAlone`,'post',data) diff --git a/src/api/part/partSupplierRelation.js b/src/api/part/partSupplierRelation.js new file mode 100644 index 0000000..c3ee7ba --- /dev/null +++ b/src/api/part/partSupplierRelation.js @@ -0,0 +1,10 @@ +import { createAPI } from '@/utils/httpRequest.js' + + +export const searchPartSupplierRelationList = data => createAPI('/partSupplierRelation/list', 'POST', data) +export const createPartSupplierRelation = data => createAPI('/partSupplierRelation/save', 'POST', data) +export const updatePartSupplierRelation = data => createAPI('/partSupplierRelation/save', 'POST', data) +export const getPartSupplierRelation = data => createAPI('partSupplierRelation/getPart','POST', data) +export const deletePartSupplierRelation = id => createAPI('/partSupplierRelation/delete', 'POST', { id: id }) + +export const searchMaterialFamilySupplierData= (data) => createAPI(`/srmSupplierShare/searchMaterialFamilySupplierData`,'post',data) \ No newline at end of file diff --git a/src/views/modules/srmPart/com_part_Attachments.vue b/src/views/modules/srmPart/com_part_Attachments.vue index b057485..8efdf97 100644 --- a/src/views/modules/srmPart/com_part_Attachments.vue +++ b/src/views/modules/srmPart/com_part_Attachments.vue @@ -89,8 +89,7 @@ import { removeOssFile } from "../../../api/srm/srmSupplier"; import { downLoadObjectFile } from "../../../api/supplierStock/supplierStockRequest"; import { ossUploadNoSaveOSSForYJY, - queryOssFilePlus, - previewOssFileById} from "../../../api/oss/oss"; + queryOssFilePlus} from "../../../api/oss/oss"; export default { data() { diff --git a/src/views/modules/srmPart/com_part_BasicInfo.vue b/src/views/modules/srmPart/com_part_BasicInfo.vue index 976228d..9f9d920 100644 --- a/src/views/modules/srmPart/com_part_BasicInfo.vue +++ b/src/views/modules/srmPart/com_part_BasicInfo.vue @@ -97,7 +97,7 @@ - diff --git a/src/views/modules/srmPart/com_part_SpecParams_old.vue b/src/views/modules/srmPart/com_part_SpecParams_old.vue new file mode 100644 index 0000000..c4fa118 --- /dev/null +++ b/src/views/modules/srmPart/com_part_SpecParams_old.vue @@ -0,0 +1,260 @@ + + + + + + + + + + + + Query + + + + + + + + {{scope.row[item.columnProp]}} + + + + + + + + + + + diff --git a/src/views/modules/srmPart/com_part_Suppliers.vue b/src/views/modules/srmPart/com_part_Suppliers.vue index 90a584b..89176f9 100644 --- a/src/views/modules/srmPart/com_part_Suppliers.vue +++ b/src/views/modules/srmPart/com_part_Suppliers.vue @@ -1,34 +1,16 @@ - - - - - - - - - - - - - - - Query - - - + + + + + + + 查询 + 新增 + + + + + Renew | + Edit | + Delete + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -297,8 +421,26 @@ export default { height: auto; line-height: 1.5; } -/deep/ .el-table__fixed-right-patch { - display: none !important; + +.dialog-content { + width: 100%; } - +/* 对话框底部按钮居中 */ +.dialog-footer-center { + text-align: center; + padding: 15px 0 5px 0; + border-top: 1px solid #E4E7ED; + margin-top: 15px; +} + +.dialog-footer-center .el-button { + margin: 0 10px; + min-width: 90px; + height: 36px; + padding: 0 20px; + font-size: 14px; +} + + + \ No newline at end of file diff --git a/src/views/modules/srmPart/partInfoList.vue b/src/views/modules/srmPart/partInfoList.vue index e752026..6a5cce1 100644 --- a/src/views/modules/srmPart/partInfoList.vue +++ b/src/views/modules/srmPart/partInfoList.vue @@ -198,7 +198,7 @@ import { createPart, updatePart, deletePart -} from '@/api/srm/srmPart.js' +} from '@/api/part/partInfo.js' import excel from '@/utils/excel-util.js' import Chooselist from '@/views/modules/common/Chooselist_eam' import basicInfo from './com_part_BasicInfo' @@ -482,12 +482,20 @@ export default { site: this.$store.state.user.site, }, partRules: { - partNo: [ + partNo: [ { required: true, message: ' ', trigger: 'blur' } ], - partDesc: [ + partDesc: [ { required: true, message: ' ', trigger: 'blur' } + ], + npc: [ + { required: true, message: ' ', trigger: 'blur' } + ], + partSpec: [ + { required: true, message: ' ', trigger: 'blur' } ] + + } } }, @@ -538,7 +546,7 @@ export default { strVal = this.currentpart.codeNo } - this.$refs.baseList.init(val, strVal) + this.$refs.baseList.init(val, strVal?strVal:'') }) }, @@ -548,11 +556,11 @@ export default { this.searchData.partNo = val.part_no } if (this.tagNo === 526) { - this.currentpart.category = val.category_name + this.currentpart.category = val.family_id } if (this.tagNo === 525) { - this.currentpart.unit = val.unit_code + this.currentpart.unit = val.UMID } if (this.tagNo === 522) { this.currentpart.buyerName = val.buyer_name @@ -562,7 +570,7 @@ export default { } if (this.tagNo === 527) { - this.currentpart.codeNo = val.template_code + this.currentpart.codeNo = val.code_no } }, @@ -660,6 +668,8 @@ export default { let inData = { site: this.currentRow.site, partNo: this.currentRow.partNo, + codeNo: this.currentRow.codeNo, + functionType:"P", height: Number(this.height) - 20 } this.$refs.specParams.init(inData)