|
|
|
@ -91,7 +91,7 @@ |
|
|
|
<span slot="label" style="" @click="getBaseList(106,1)"><a herf="#">BU</a></span> |
|
|
|
<el-input v-model="modalData.buDesc" readonly ></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-tabs v-model="inventoryPartTable" style="width: 100%;height: 430px;" type="border-card" @tab-click="inventoryPartClick"> |
|
|
|
<el-tabs v-model="inventoryPartTable" style="width: 100%;height: 465px;" type="border-card" @tab-click="inventoryPartClick"> |
|
|
|
<el-tab-pane label="General" name="General"> |
|
|
|
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-top: -5px;"> |
|
|
|
<el-form-item label="零件类型 / Part Type" prop="partType" :rules="rules.partType"> |
|
|
|
@ -155,6 +155,13 @@ |
|
|
|
<el-input v-model="modalData.typeDesignation" clearable style="width: 461px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<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.commGroup3Desc" disabled style="width: 330px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules"> |
|
|
|
<el-form-item> |
|
|
|
<span style="cursor: pointer" slot="label" @click="getBaseList(124)"><a herf="#">资产等级 / Asset Class</a></span> |
|
|
|
@ -238,6 +245,14 @@ |
|
|
|
<el-input v-model="modalData.customsStatDesc" disabled style="width: 330px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules"> |
|
|
|
<el-form-item label="默认物料需求供应 / Default Mtr Req Supply"> |
|
|
|
<el-select v-model="modalData.supplyCode" style="width: 458px" clearable> |
|
|
|
<el-option label="Inventory Order" value="IO"></el-option> |
|
|
|
<el-option label="Purchase Order" value="PO"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules"> |
|
|
|
<el-form-item label="备注" style="height: 80px"> |
|
|
|
<el-input type="textarea" v-model="modalData.remark" :rows="3" resize='none' show-word-limit style="width: 937px"></el-input> |
|
|
|
@ -988,6 +1003,7 @@ import {downLoadFile, queryFileId, readPartFromFile} from "../../../../api/part/ |
|
|
|
this.modalData.productGroupId4 = this.modalData.productGroupId4.toUpperCase() |
|
|
|
this.modalData.hazardCode = this.modalData.hazardCode.toUpperCase() |
|
|
|
this.modalData.productGroupId3 = this.modalData.productGroupId3.toUpperCase() |
|
|
|
this.modalData.commGroup3 = this.modalData.commGroup3 ? this.modalData.commGroup3.toUpperCase() : '' |
|
|
|
// this.modalData.umId = this.modalData.umId.toUpperCase() |
|
|
|
this.modalData.groupId = this.modalData.groupId.toUpperCase() |
|
|
|
this.modalData.productGroupId1 = this.modalData.productGroupId1.toUpperCase() |
|
|
|
@ -1413,6 +1429,8 @@ import {downLoadFile, queryFileId, readPartFromFile} from "../../../../api/part/ |
|
|
|
productGroupName3: '', |
|
|
|
productGroupId4: '', |
|
|
|
productGroupName4: '', |
|
|
|
commGroup3: '', |
|
|
|
commGroup3Desc: '', |
|
|
|
erpPartNo: '', |
|
|
|
codeNo: '', |
|
|
|
codeDesc: '', |
|
|
|
@ -1445,6 +1463,7 @@ import {downLoadFile, queryFileId, readPartFromFile} from "../../../../api/part/ |
|
|
|
customsStatDesc: '', |
|
|
|
durabilityDay: '', |
|
|
|
intrastatConvFactor: '', |
|
|
|
supplyCode: '', |
|
|
|
umDesc: '', |
|
|
|
status: '', |
|
|
|
partStatus: '', |
|
|
|
@ -1945,6 +1964,8 @@ import {downLoadFile, queryFileId, readPartFromFile} from "../../../../api/part/ |
|
|
|
strVal = this.modalData.productGroupId3 |
|
|
|
} else if (val === 113) { |
|
|
|
strVal = this.modalData.productGroupId4 |
|
|
|
} else if (val === 130) { |
|
|
|
strVal = this.modalData.commGroup3 |
|
|
|
} else if (val === 114) { |
|
|
|
strVal = this.modalData.manufacturerId |
|
|
|
} else if (val === 20) { |
|
|
|
@ -1998,6 +2019,9 @@ import {downLoadFile, queryFileId, readPartFromFile} from "../../../../api/part/ |
|
|
|
} else if (this.tagNo === 113) { |
|
|
|
this.modalData.productGroupId4 = val.product_group_id |
|
|
|
this.modalData.productGroupName4 = val.product_group_name |
|
|
|
} else if (this.tagNo === 130) { |
|
|
|
this.modalData.commGroup3 = val.product_group_id |
|
|
|
this.modalData.commGroup3Desc = val.product_group_name |
|
|
|
} else if (this.tagNo === 114) { |
|
|
|
this.modalData.manufacturerId = val.manufacturer_id |
|
|
|
this.modalData.manufacturerName = val.manufacturer_name |
|
|
|
@ -2115,6 +2139,8 @@ import {downLoadFile, queryFileId, readPartFromFile} from "../../../../api/part/ |
|
|
|
productGroupName3: '', |
|
|
|
productGroupId4: '*', |
|
|
|
productGroupName4: 'NorthSky Application owner', |
|
|
|
commGroup3: '', |
|
|
|
commGroup3Desc: '', |
|
|
|
erpPartNo: '', |
|
|
|
codeNo: '', |
|
|
|
codeDesc: '', |
|
|
|
@ -2144,6 +2170,7 @@ import {downLoadFile, queryFileId, readPartFromFile} from "../../../../api/part/ |
|
|
|
customsStatDesc: '', |
|
|
|
durabilityDay: '', |
|
|
|
intrastatConvFactor: '', |
|
|
|
supplyCode: '', |
|
|
|
umDesc: '', |
|
|
|
status: 'N', |
|
|
|
partStatus: 'A', |
|
|
|
@ -2244,6 +2271,8 @@ import {downLoadFile, queryFileId, readPartFromFile} from "../../../../api/part/ |
|
|
|
productGroupName3: data.rows.productGroupName3, |
|
|
|
productGroupId4: data.rows.productGroupId4, |
|
|
|
productGroupName4: data.rows.productGroupName4, |
|
|
|
commGroup3: data.rows.commGroup3, |
|
|
|
commGroup3Desc: data.rows.commGroup3Desc, |
|
|
|
erpPartNo: data.rows.erpPartNo, |
|
|
|
codeNo: data.rows.codeNo, |
|
|
|
codeDesc: data.rows.codeDesc, |
|
|
|
@ -2273,6 +2302,7 @@ import {downLoadFile, queryFileId, readPartFromFile} from "../../../../api/part/ |
|
|
|
customsStatDesc: data.rows.customsStatDesc, |
|
|
|
durabilityDay: data.rows.durabilityDay, |
|
|
|
intrastatConvFactor: data.rows.intrastatConvFactor, |
|
|
|
supplyCode: data.rows.supplyCode, |
|
|
|
umDesc: data.rows.umDesc, |
|
|
|
status: data.rows.status, |
|
|
|
partStatus: data.rows.partStatus, |
|
|
|
@ -2402,6 +2432,7 @@ import {downLoadFile, queryFileId, readPartFromFile} from "../../../../api/part/ |
|
|
|
customsStatDesc: data.rows.customsStatDesc, |
|
|
|
durabilityDay: data.rows.durabilityDay, |
|
|
|
intrastatConvFactor: data.rows.intrastatConvFactor, |
|
|
|
supplyCode: data.rows.supplyCode, |
|
|
|
umDesc: data.rows.umDesc, |
|
|
|
status: data.rows.status, |
|
|
|
partStatus: data.rows.partStatus, |
|
|
|
@ -2529,6 +2560,11 @@ import {downLoadFile, queryFileId, readPartFromFile} from "../../../../api/part/ |
|
|
|
this.$message.warning('请选择计划人!') |
|
|
|
return |
|
|
|
} |
|
|
|
// 如果商品组1是"00100",则商品组3必填 |
|
|
|
if (this.modalData.productGroupId1 === '00100' && (this.modalData.commGroup3 === '' || this.modalData.commGroup3 == null)) { |
|
|
|
this.$message.warning('商品组1为"00100"时,商品组3必填!') |
|
|
|
return |
|
|
|
} |
|
|
|
if (this.modalData.umId === '' || this.modalData.umId == null) { |
|
|
|
this.$message.warning('请选择计量单位!') |
|
|
|
return |
|
|
|
@ -3365,6 +3401,24 @@ import {downLoadFile, queryFileId, readPartFromFile} from "../../../../api/part/ |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// 商品组3输入校验 |
|
|
|
commGroup3Blur (tagNo) { |
|
|
|
let tempData = { |
|
|
|
tagno: tagNo, |
|
|
|
conditionSql: " and product_group_id = '" + this.modalData.commGroup3 + "'" + " and site = '" + this.modalData.site + "'" |
|
|
|
} |
|
|
|
verifyData(tempData).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
if (data.baseListData.length > 0) { |
|
|
|
this.modalData.commGroup3 = data.baseListData[0].product_group_id |
|
|
|
this.modalData.commGroup3Desc = data.baseListData[0].product_group_name |
|
|
|
} else { |
|
|
|
this.modalData.commGroup3Desc = '' |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// 资产等级输入校验 |
|
|
|
assetClassBlur (tagNo) { |
|
|
|
let tempData = { |
|
|
|
|