|
|
@ -230,7 +230,7 @@ |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<span style="cursor: pointer" v-if="!isRohsFieldDisabled('commGroup3')" slot="label" @click="getBaseList(130)"><a herf="#">商品组3/Comm Group 3</a></span> |
|
|
<span style="cursor: pointer" v-if="!isRohsFieldDisabled('commGroup3')" slot="label" @click="getBaseList(130)"><a herf="#">商品组3/Comm Group 3</a></span> |
|
|
<span v-else slot="label">商品组3/Comm Group 3</span> |
|
|
<span v-else slot="label">商品组3/Comm Group 3</span> |
|
|
<el-input v-model="modalData.commGroup3" @change="commGroup3Blur(130)" :disabled="isRohsFieldDisabled('commGroup3')" style="width: 100px"></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="modalData.commGroup3" @change="commGroup3Blur(130)" :disabled="isRohsFieldDisabled('commGroup3') || modalData.commGroup1 !== '00100'" style="width: 100px"></el-input> |
|
|
<el-input v-model="modalData.commGroup3Desc" disabled style="width: 156px"></el-input> |
|
|
<el-input v-model="modalData.commGroup3Desc" disabled style="width: 156px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
@ -241,7 +241,7 @@ |
|
|
<el-radio label="N" @click.native.prevent="radioClick('isFiberMaterial', 'N')">否</el-radio> |
|
|
<el-radio label="N" @click.native.prevent="radioClick('isFiberMaterial', 'N')">否</el-radio> |
|
|
</el-radio-group> |
|
|
</el-radio-group> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="是否需要创建300/700/900号/Dose Need Create 300/700/900 Number"> |
|
|
|
|
|
|
|
|
<el-form-item label="是否需要创建IFS料号/Does Need Create IFS Part No."> |
|
|
<el-radio-group v-model="modalData.needCreateNumber" :disabled="isRohsFieldDisabled('needCreateNumber')" style="width: 374px"> |
|
|
<el-radio-group v-model="modalData.needCreateNumber" :disabled="isRohsFieldDisabled('needCreateNumber')" style="width: 374px"> |
|
|
<el-radio label="Y" @click.native.prevent="radioClick('needCreateNumber', 'Y')">是</el-radio> |
|
|
<el-radio label="Y" @click.native.prevent="radioClick('needCreateNumber', 'Y')">是</el-radio> |
|
|
<el-radio label="N" @click.native.prevent="radioClick('needCreateNumber', 'N')">否</el-radio> |
|
|
<el-radio label="N" @click.native.prevent="radioClick('needCreateNumber', 'N')">否</el-radio> |
|
|
@ -1380,7 +1380,7 @@ |
|
|
<el-radio label="N">否</el-radio> |
|
|
<el-radio label="N">否</el-radio> |
|
|
</el-radio-group> |
|
|
</el-radio-group> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="是否需要创建300/700/900号/Dose Need Create 300/700/900 Number"> |
|
|
|
|
|
|
|
|
<el-form-item label="是否需要创建IFS料号/Does Need Create IFS Part No."> |
|
|
<el-radio-group :value="currentRow.needCreateNumber" disabled style="width: 374px"> |
|
|
<el-radio-group :value="currentRow.needCreateNumber" disabled style="width: 374px"> |
|
|
<el-radio label="Y">是</el-radio> |
|
|
<el-radio label="Y">是</el-radio> |
|
|
<el-radio label="N">否</el-radio> |
|
|
<el-radio label="N">否</el-radio> |
|
|
@ -2559,6 +2559,9 @@ export default { |
|
|
if (fieldConfig.fieldId === 'hsfStandard' && !this.shouldShowHsfStandard(this.modalData.endCustomer)) { |
|
|
if (fieldConfig.fieldId === 'hsfStandard' && !this.shouldShowHsfStandard(this.modalData.endCustomer)) { |
|
|
continue |
|
|
continue |
|
|
} |
|
|
} |
|
|
|
|
|
if (fieldConfig.fieldId === 'commGroup3' && String(this.modalData.commGroup1 || '').trim() !== '00100') { |
|
|
|
|
|
continue |
|
|
|
|
|
} |
|
|
if (fieldConfig.fieldId === 'validUntil' || fieldConfig.fieldId === 'validUntilValue') { |
|
|
if (fieldConfig.fieldId === 'validUntil' || fieldConfig.fieldId === 'validUntilValue') { |
|
|
if (validUntilPairRequiredChecked) { |
|
|
if (validUntilPairRequiredChecked) { |
|
|
continue |
|
|
continue |
|
|
@ -3793,6 +3796,9 @@ export default { |
|
|
this.$set(this.modalData, 'isAhGrade', this.normalizeCheckboxFlag(this.modalData.isAhGrade)) |
|
|
this.$set(this.modalData, 'isAhGrade', this.normalizeCheckboxFlag(this.modalData.isAhGrade)) |
|
|
this.normalizeHsfStandardByCustomer(this.modalData) |
|
|
this.normalizeHsfStandardByCustomer(this.modalData) |
|
|
this.syncHsfApproverFields() |
|
|
this.syncHsfApproverFields() |
|
|
|
|
|
if (!this.validateCommGroupRule()) { |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
if (!this.validateValidUntilPair()) { |
|
|
if (!this.validateValidUntilPair()) { |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
@ -3865,6 +3871,9 @@ export default { |
|
|
this.$set(this.modalData, 'isAhGrade', this.normalizeCheckboxFlag(this.modalData.isAhGrade)) |
|
|
this.$set(this.modalData, 'isAhGrade', this.normalizeCheckboxFlag(this.modalData.isAhGrade)) |
|
|
this.normalizeHsfStandardByCustomer(this.modalData) |
|
|
this.normalizeHsfStandardByCustomer(this.modalData) |
|
|
this.syncHsfApproverFields() |
|
|
this.syncHsfApproverFields() |
|
|
|
|
|
if (!this.validateCommGroupRule()) { |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
if (!this.validateValidUntilPair()) { |
|
|
if (!this.validateValidUntilPair()) { |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
@ -4721,8 +4730,27 @@ export default { |
|
|
}).catch(() => {}) |
|
|
}).catch(() => {}) |
|
|
}, |
|
|
}, |
|
|
// ======== chooseList相关方法 ======== |
|
|
// ======== chooseList相关方法 ======== |
|
|
|
|
|
applyCommGroup3RuleByCommGroup1 (needValidate = false) { |
|
|
|
|
|
const commGroup1 = String(this.modalData.commGroup1 || '').trim() |
|
|
|
|
|
if (commGroup1 !== '00100') { |
|
|
|
|
|
this.modalData.commGroup3 = '' |
|
|
|
|
|
this.modalData.commGroup3Desc = '' |
|
|
|
|
|
return true |
|
|
|
|
|
} |
|
|
|
|
|
if (needValidate && !String(this.modalData.commGroup3 || '').trim()) { |
|
|
|
|
|
this.$message.warning('商品组1为"00100"时,商品组3必填!') |
|
|
|
|
|
return false |
|
|
|
|
|
} |
|
|
|
|
|
return true |
|
|
|
|
|
}, |
|
|
|
|
|
validateCommGroupRule () { |
|
|
|
|
|
return this.applyCommGroup3RuleByCommGroup1(true) |
|
|
|
|
|
}, |
|
|
// 获取基础数据列表 |
|
|
// 获取基础数据列表 |
|
|
getBaseList (val, type) { |
|
|
getBaseList (val, type) { |
|
|
|
|
|
if (val === 130 && this.modalData.commGroup1 !== '00100') { |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
this.tagNo = val |
|
|
this.tagNo = val |
|
|
this.tagNo1 = type |
|
|
this.tagNo1 = type |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
@ -4801,6 +4829,7 @@ export default { |
|
|
if (this.tagNo === 110) { |
|
|
if (this.tagNo === 110) { |
|
|
this.modalData.commGroup1 = val.product_group_id |
|
|
this.modalData.commGroup1 = val.product_group_id |
|
|
this.modalData.commGroup1Desc = val.product_group_name |
|
|
this.modalData.commGroup1Desc = val.product_group_name |
|
|
|
|
|
this.applyCommGroup3RuleByCommGroup1(false) |
|
|
} |
|
|
} |
|
|
if (this.tagNo === 111) { |
|
|
if (this.tagNo === 111) { |
|
|
this.modalData.commGroup2 = val.product_group_id |
|
|
this.modalData.commGroup2 = val.product_group_id |
|
|
@ -5041,6 +5070,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
// 商品组1输入校验 |
|
|
// 商品组1输入校验 |
|
|
commGroup1Blur (tagNo) { |
|
|
commGroup1Blur (tagNo) { |
|
|
|
|
|
this.applyCommGroup3RuleByCommGroup1(false) |
|
|
if (this.modalData.commGroup1 != null && this.modalData.commGroup1 !== '') { |
|
|
if (this.modalData.commGroup1 != null && this.modalData.commGroup1 !== '') { |
|
|
let tempData = { |
|
|
let tempData = { |
|
|
tagno: tagNo, |
|
|
tagno: tagNo, |
|
|
@ -5050,6 +5080,7 @@ export default { |
|
|
if (data && data.code === 0 && data.baseListData.length > 0) { |
|
|
if (data && data.code === 0 && data.baseListData.length > 0) { |
|
|
this.modalData.commGroup1 = data.baseListData[0].product_group_id |
|
|
this.modalData.commGroup1 = data.baseListData[0].product_group_id |
|
|
this.modalData.commGroup1Desc = data.baseListData[0].product_group_name |
|
|
this.modalData.commGroup1Desc = data.baseListData[0].product_group_name |
|
|
|
|
|
this.applyCommGroup3RuleByCommGroup1(false) |
|
|
} else { |
|
|
} else { |
|
|
this.modalData.commGroup1Desc = '' |
|
|
this.modalData.commGroup1Desc = '' |
|
|
} |
|
|
} |
|
|
@ -5079,6 +5110,10 @@ export default { |
|
|
}, |
|
|
}, |
|
|
// 商品组3输入校验 |
|
|
// 商品组3输入校验 |
|
|
commGroup3Blur (tagNo) { |
|
|
commGroup3Blur (tagNo) { |
|
|
|
|
|
if (this.modalData.commGroup1 !== '00100') { |
|
|
|
|
|
this.applyCommGroup3RuleByCommGroup1(false) |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
if (this.modalData.commGroup3 != null && this.modalData.commGroup3 !== '') { |
|
|
if (this.modalData.commGroup3 != null && this.modalData.commGroup3 !== '') { |
|
|
let tempData = { |
|
|
let tempData = { |
|
|
tagno: tagNo, |
|
|
tagno: tagNo, |
|
|
|