Browse Source

2026-04-24

CommGroup3 单独调用接口
master
fengyuan_yang 2 months ago
parent
commit
1dfc3ca7fb
  1. 27
      src/views/modules/part/partInformation.vue
  2. 7
      src/views/modules/project/projectInfo/com_project_info_part.vue

27
src/views/modules/part/partInformation.vue

@ -259,7 +259,7 @@
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules">
<el-form-item>
<span style="cursor: pointer" slot="label" @click="getBaseList(130)"><a herf="#">商品组3 / Comm Group 3</a></span>
<el-input v-model="modalData.commGroup3" @change="commGroup3Blur(130)" style="width: 128px"></el-input>
<el-input v-model="modalData.commGroup3" :disabled="modalData.productGroupId1 !== '00100'" @change="commGroup3Blur(130)" style="width: 128px"></el-input>
<el-input v-model="modalData.commGroup3Desc" disabled style="width: 327px"></el-input>
</el-form-item>
</el-form>
@ -1755,6 +1755,7 @@
showInQueryFlag: '',
temporaryPartFlag: '',
mainInfoFlag: false, //
commGroup3InfoFlag: false, // commGroup3
costsInfoFlag: false, // costs
manufacturingInfoFlag: false, // Manufacturing
planningInfoFlag: false, // planning
@ -3451,6 +3452,7 @@
uploadDialog: false,
saveItemModelFlag: false,
mainInfoFlag: false, //
commGroup3InfoFlag: false, // commGroup3
costsInfoFlag: false, // costs
manufacturingInfoFlag: false, // Manufacturing
planningInfoFlag: false, // planning
@ -3534,6 +3536,7 @@
//
resetFlags () {
this.mainInfoFlag = false
this.commGroup3InfoFlag = false
this.costsInfoFlag = false
this.manufacturingInfoFlag = false
this.planningInfoFlag = false
@ -3551,6 +3554,7 @@
'countryOfOrigin', 'expectedLeadTime', 'durabilityDay', 'regionOfOrigin', 'intrastatConvFactor',
'customsStatNo', 'remark', 'inventoryValuationMethod', 'partCostGroupId', 'inventoryPartCostLevel',
'invoiceConsideration', 'zeroCostFlag', 'codeNo', 'supplyCode', 'commGroup3'],
commGroup3InfoFlag: ['commGroup3'],
costsInfoFlag: ['estimatedMaterialCost'],
manufacturingInfoFlag: ['cumLeadTime', 'backFlushPart', 'byProdAsSupplyInMrpDb', 'unprotectedLeadTime',
'issueType', 'mrpControlFlagDb', 'fixedLeadTimeDay', 'overReporting', 'useTheoreticalDensityDb',
@ -4181,6 +4185,7 @@
showInQueryFlag: 'Y',
temporaryPartFlag: 'Y',
mainInfoFlag: false, //
commGroup3InfoFlag: false, // commGroup3
costsInfoFlag: false, // costs
manufacturingInfoFlag: false, // Manufacturing
planningInfoFlag: false, // planning
@ -4308,6 +4313,7 @@
showInQueryFlag: row.showInQueryFlag,
temporaryPartFlag: row.temporaryPartFlag,
mainInfoFlag: false, //
commGroup3InfoFlag: false, // commGroup3
costsInfoFlag: false, // costs
manufacturingInfoFlag: false, // Manufacturing
planningInfoFlag: false, // planning
@ -4433,6 +4439,7 @@
showInQueryFlag: row.showInQueryFlag,
temporaryPartFlag: row.temporaryPartFlag,
mainInfoFlag: false, //
commGroup3InfoFlag: false, // commGroup3
costsInfoFlag: false, // costs
manufacturingInfoFlag: false, // Manufacturing
planningInfoFlag: false, // planning
@ -4557,6 +4564,7 @@
showInQueryFlag: row.showInQueryFlag,
temporaryPartFlag: row.temporaryPartFlag,
mainInfoFlag: false, //
commGroup3InfoFlag: false, // commGroup3
costsInfoFlag: false, // costs
manufacturingInfoFlag: false, // Manufacturing
planningInfoFlag: false, // planning
@ -5058,6 +5066,11 @@
this.$message.warning('商品组1为"00100"时,商品组3必填!')
return
}
// 1"00100"3
if (this.modalData.productGroupId1 !== '00100') {
this.modalData.commGroup3 = ''
this.modalData.commGroup3Desc = ''
}
if (this.modalData.umId === '' || this.modalData.umId == null) {
this.$message.warning('请选择计量单位!')
return
@ -5214,6 +5227,7 @@
})
} else {
this.modalData.mainInfoFlag = this.mainInfoFlag
this.modalData.commGroup3InfoFlag = this.commGroup3InfoFlag
this.modalData.costsInfoFlag = this.costsInfoFlag
this.modalData.manufacturingInfoFlag = this.manufacturingInfoFlag
this.modalData.planningInfoFlag = this.planningInfoFlag
@ -5562,6 +5576,10 @@
// 1
productGroupId1Blur (tagNo) {
if (this.modalData.productGroupId1 !== '00100') {
this.modalData.commGroup3 = ''
this.modalData.commGroup3Desc = ''
}
let tempData = {
tagno: tagNo,
conditionSql: " and product_group_id = '" + this.modalData.productGroupId1 + "'" + " and site = '" + this.modalData.site + "'"
@ -5987,6 +6005,9 @@
// ======== chooseList ========
// S
getBaseList (val, type) {
if (val === 130 && this.modalData.productGroupId1 !== '00100') {
return
}
this.tagNo = val
this.tempCodeNo = this.modalData.codeNo
this.$nextTick(() => {
@ -6050,6 +6071,10 @@
} else if (this.tagNo === 110) {
this.modalData.productGroupId1 = val.product_group_id
this.modalData.productGroupName1 = val.product_group_name
if (this.modalData.productGroupId1 !== '00100') {
this.modalData.commGroup3 = ''
this.modalData.commGroup3Desc = ''
}
} else if (this.tagNo === 111) {
this.modalData.productGroupId2 = val.product_group_id
this.modalData.productGroupName2 = val.product_group_name

7
src/views/modules/project/projectInfo/com_project_info_part.vue

@ -1902,6 +1902,7 @@ import CodeGeneration from "../../code/generation.vue";
watchers: [],
unwatchTable: null, //
mainInfoFlag: false, //
commGroup3InfoFlag: false, // commGroup3
costsInfoFlag: false, // costs
manufacturingInfoFlag: false, // Manufacturing
planningInfoFlag: false, // planning
@ -1918,6 +1919,7 @@ import CodeGeneration from "../../code/generation.vue";
//
resetFlags () {
this.mainInfoFlag = false
this.commGroup3InfoFlag = false
this.costsInfoFlag = false
this.manufacturingInfoFlag = false
this.planningInfoFlag = false
@ -1935,6 +1937,7 @@ import CodeGeneration from "../../code/generation.vue";
'countryOfOrigin', 'expectedLeadTime', 'durabilityDay', 'regionOfOrigin', 'intrastatConvFactor',
'customsStatNo', 'remark', 'inventoryValuationMethod', 'partCostGroupId', 'inventoryPartCostLevel',
'invoiceConsideration', 'zeroCostFlag', 'codeNo', 'supplyCode', 'commGroup3'],
commGroup3InfoFlag: ['commGroup3'],
costsInfoFlag: ['estimatedMaterialCost'],
manufacturingInfoFlag: ['cumLeadTime', 'backFlushPart', 'byProdAsSupplyInMrpDb', 'unprotectedLeadTime',
'issueType', 'mrpControlFlagDb', 'fixedLeadTimeDay', 'overReporting', 'useTheoreticalDensityDb',
@ -2306,6 +2309,7 @@ import CodeGeneration from "../../code/generation.vue";
showInQueryFlag: 'Y',
temporaryPartFlag: 'Y',
mainInfoFlag: false, //
commGroup3InfoFlag: false, // commGroup3
costsInfoFlag: false, // costs
manufacturingInfoFlag: false, // Manufacturing
planningInfoFlag: false, // planning
@ -2437,6 +2441,7 @@ import CodeGeneration from "../../code/generation.vue";
showInQueryFlag: data.rows.showInQueryFlag,
temporaryPartFlag: data.rows.temporaryPartFlag,
mainInfoFlag: false, //
commGroup3InfoFlag: false, // commGroup3
costsInfoFlag: false, // costs
manufacturingInfoFlag: false, // Manufacturing
planningInfoFlag: false, // planning
@ -2569,6 +2574,7 @@ import CodeGeneration from "../../code/generation.vue";
showInQueryFlag: 'Y',
temporaryPartFlag: 'Y',
mainInfoFlag: false, //
commGroup3InfoFlag: false, // commGroup3
costsInfoFlag: false, // costs
manufacturingInfoFlag: false, // Manufacturing
planningInfoFlag: false, // planning
@ -2735,6 +2741,7 @@ import CodeGeneration from "../../code/generation.vue";
})
} else {
this.modalData.mainInfoFlag = this.mainInfoFlag
this.modalData.commGroup3InfoFlag = this.commGroup3InfoFlag
this.modalData.costsInfoFlag = this.costsInfoFlag
this.modalData.manufacturingInfoFlag = this.manufacturingInfoFlag
this.modalData.planningInfoFlag = this.planningInfoFlag

Loading…
Cancel
Save