Browse Source

2026-05-06

RoHs功能优化
master
fengyuan_yang 1 month ago
parent
commit
bda57681ab
  1. 363
      src/views/modules/rohs/rohsRecord.vue

363
src/views/modules/rohs/rohsRecord.vue

@ -30,8 +30,11 @@
<el-table-column prop="referenceNo" header-align="center" align="center" label="序列号/Reference No." width="165"></el-table-column>
<el-table-column prop="status" header-align="center" align="center" label="单据状态/Status" width="120"></el-table-column>
<el-table-column prop="applicant" header-align="center" align="center" label="申请人/Applicant" width="120"></el-table-column>
<el-table-column prop="pm" header-align="center" align="center" label="PM人员/PM" width="120"></el-table-column>
<el-table-column prop="applicationDate" header-align="center" align="center" label="申请日期/Application Date" width="165"></el-table-column>
<el-table-column prop="plannedMassProductionDate" header-align="center" align="center" label="计划转量产时间/Planned Mass Production" width="210"></el-table-column>
<el-table-column prop="process" header-align="center" align="center" label="工艺/Process" width="120"></el-table-column>
<el-table-column prop="color" header-align="center" align="center" label="颜色/Color" width="120"></el-table-column>
<el-table-column prop="vendorCode" header-align="center" align="center" label="供应商代码/Vendor Code" width="160"></el-table-column>
<el-table-column prop="vendorMaterialCode" header-align="center" align="center" label="供应商材料编号/Vendor Material Code" width="200" :show-overflow-tooltip="true"></el-table-column>
<el-table-column prop="materialClassify" header-align="center" align="center" label="材料分类/Material Classify" width="200" :show-overflow-tooltip="true"></el-table-column>
@ -39,7 +42,9 @@
<el-table-column prop="materialUseFor" header-align="center" align="center" label="辅材用途/Material Use For" width="180" :show-overflow-tooltip="true"></el-table-column>
<el-table-column prop="endCustomer" header-align="center" align="center" label="最终客户/End Customer" width="150"></el-table-column>
<el-table-column prop="projectId" header-align="center" align="center" label="项目编码/Project ID" width="140"></el-table-column>
<el-table-column prop="isMacallanMaterial" header-align="center" align="center" label="Macallan材料/Macallan Material" width="180"></el-table-column>
<el-table-column prop="commGroup1" header-align="center" align="center" label="商品组1/Comm Group 1" width="170"></el-table-column>
<el-table-column prop="commGroup2" header-align="center" align="center" label="商品组2/Comm Group 2" width="170"></el-table-column>
<el-table-column prop="commGroup3" header-align="center" align="center" label="商品组3/Comm Group 3" width="170"></el-table-column>
<el-table-column prop="needCreateNumber" header-align="center" align="center" label="需创建内部编号/Need Create No." width="200"></el-table-column>
<el-table-column prop="npdEngineer" header-align="center" align="center" label="NPD工程师/NPD Engineer" width="170"></el-table-column>
<el-table-column prop="materialValidityTime" header-align="center" align="center" label="材料有效期/Material Validity Time" width="200"></el-table-column>
@ -48,8 +53,10 @@
<el-table-column prop="buyer" header-align="center" align="center" label="采购/Buyer" width="130"></el-table-column>
<el-table-column prop="expectReportTime" header-align="center" align="center" label="报告时间(月)/Expect Report Time" width="200"></el-table-column>
<el-table-column prop="sgsReportNumber" header-align="center" align="center" label="SGS报告编号/SGS Report Number" width="190" :show-overflow-tooltip="true"></el-table-column>
<el-table-column prop="expiredDate" header-align="center" align="center" label="报告有效期/Expired Date" width="165"></el-table-column>
<el-table-column prop="expiredDate" header-align="center" align="center" label="报告日期/Expired Date" width="165"></el-table-column>
<el-table-column prop="validUntil" header-align="center" align="center" label="有效期/Valid Until" width="160"></el-table-column>
<el-table-column prop="isMeetRohsRequirement" header-align="center" align="center" label="符合RoHS/Meet RoHS Req" width="170"></el-table-column>
<el-table-column prop="isAhGrade" header-align="center" align="center" label="AH属性/AH Grade" width="140"></el-table-column>
<el-table-column prop="hsfSupplierClassification" header-align="center" align="center" label="HSF供应商等级/Supplier Class" width="220"></el-table-column>
<el-table-column prop="isSameMaterialDiffSize" header-align="center" align="center" label="同材不同规格/Same Material Diff Size" width="220"></el-table-column>
<el-table-column prop="ifsPartNo" header-align="center" align="center" label="IFS编号/IFS Part No." width="150"></el-table-column>
@ -84,10 +91,10 @@
:close-on-click-modal="false"
:showClose="false">
<el-tabs tab-position="left" type="border-card" v-model="activeName" style="width: 100%;height: 565px;">
<el-tabs tab-position="left" type="border-card" v-model="activeName" style="width: 100%;height: 650px;">
<!-- 基本信息 -->
<el-tab-pane label="基本信息" name="basicInfo">
<div style="height: 550px">
<div style="height: 635px">
<el-form :inline="true" label-position="top" :model="modalData" style="margin-top: -5px;">
<el-form-item>
<span style="cursor: pointer" slot="label" @click="getBaseList(103, 1)"><a herf="#">申请人/Applicant</a></span>
@ -127,11 +134,10 @@
<el-input :disabled="modalData.endCustomerFlag" readonly v-model="modalData.endCustomer" @blur="handleQueryCustomer" style="width: 150px"></el-input>
<el-input disabled v-model="modalData.endCustomerName" style="width: 240px"></el-input>
</el-form-item>
<el-form-item label="Macallan材料/Macallan Material">
<el-radio-group v-model="modalData.isMacallanMaterial" style="width: 190px">
<el-radio label="Y" @click.native.prevent="radioClick('isMacallanMaterial', 'Y')"></el-radio>
<el-radio label="N" @click.native.prevent="radioClick('isMacallanMaterial', 'N')"></el-radio>
</el-radio-group>
<el-form-item>
<span style="cursor: pointer" slot="label" @click="getBaseList(103, 5)"><a herf="#">PM人员/PM</a></span>
<el-input v-model="modalData.pm" @blur="pmBlur(103)" style="width: 150px"></el-input>
<el-input v-model="modalData.pmName" disabled style="width: 240px"></el-input>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" :model="modalData">
@ -141,18 +147,19 @@
<el-input :disabled="modalData.projectIdFlag" readonly v-model="modalData.projectId" @blur="handleQueryProjectByCustomer" style="width: 150px"></el-input>
<el-input disabled v-model="modalData.projectName" style="width: 240px"></el-input>
</el-form-item>
<el-form-item label="需创建内部编号/Need Create No.">
<el-radio-group v-model="modalData.needCreateNumber" style="width: 190px">
<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-group>
<el-form-item label="颜色/Color">
<el-input v-model="modalData.color" style="width: 150px"></el-input>
</el-form-item>
<el-form-item label="计划转量产时间/Planned Mass Production">
<el-date-picker v-model="modalData.plannedMassProductionDate" type="datetime" value-format="yyyy-MM-dd HH:mm:ss" style="width: 230px" :editable=false></el-date-picker>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" :model="modalData">
<el-form-item>
<span style="cursor: pointer" slot="label" @click="getBaseList(103, 3)"><a herf="#">NPD工程师/NPD Engineer</a></span>
<el-input v-model="modalData.npdEngineer" @blur="npdEngineerBlur(103)" style="width: 150px"></el-input>
<el-input v-model="modalData.npdEngineerName" disabled style="width: 240px"></el-input>
<span style="cursor: pointer" slot="label" @click="getBaseList(110)"><a herf="#">商品组1 / Comm Group 1</a></span>
<el-input v-model="modalData.commGroup1" @change="commGroup1Blur(110)" style="width: 150px"></el-input>
<el-input v-model="modalData.commGroup1Desc" disabled style="width: 240px"></el-input>
</el-form-item>
<el-form-item label="是否需偏差许可/Need Deviation">
<el-radio-group v-model="modalData.needDeviation" style="width: 190px">
@ -162,11 +169,23 @@
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" :model="modalData">
<el-form-item label="材料有效期/Material Validity Time">
<el-date-picker v-model="modalData.materialValidityTime" type="date" value-format="yyyy-MM-dd" style="width: 190px" :editable=false></el-date-picker>
<el-form-item>
<span style="cursor: pointer" slot="label" @click="getBaseList(111)"><a herf="#">商品组2 / Comm Group 2</a></span>
<el-input v-model="modalData.commGroup2" @change="commGroup2Blur(111)" style="width: 150px"></el-input>
<el-input v-model="modalData.commGroup2Desc" disabled style="width: 240px"></el-input>
</el-form-item>
<el-form-item label="有效期备注/Validity Comments">
<el-input v-model="modalData.materialValidityComments" style="width: 190px"></el-input>
<el-form-item label="需创建内部编号/Need Create No.">
<el-radio-group v-model="modalData.needCreateNumber" style="width: 190px">
<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-group>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" :model="modalData">
<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: 150px"></el-input>
<el-input v-model="modalData.commGroup3Desc" disabled style="width: 240px"></el-input>
</el-form-item>
<el-form-item label="是否Fiber材料/Fiber Material">
<el-radio-group v-model="modalData.isFiberMaterial" style="width: 190px">
@ -177,9 +196,9 @@
</el-form>
<el-form :inline="true" label-position="top" :model="modalData">
<el-form-item>
<span style="cursor: pointer" slot="label" @click="getBaseList(103, 4)"><a herf="#">技术计划/Technical Plan</a></span>
<el-input v-model="modalData.technicalPlan" @blur="technicalPlanBlur(103)" style="width: 150px"></el-input>
<el-input v-model="modalData.technicalPlanName" disabled style="width: 240px"></el-input>
<span style="cursor: pointer" slot="label" @click="getBaseList(103, 3)"><a herf="#">NPD工程师/NPD Engineer</a></span>
<el-input v-model="modalData.npdEngineer" @blur="npdEngineerBlur(103)" style="width: 150px"></el-input>
<el-input v-model="modalData.npdEngineerName" disabled style="width: 240px"></el-input>
</el-form-item>
<el-form-item label="WM所需求规格/WM Required Spec">
<el-input v-model="modalData.wmRequiredSpec" style="width: 190px"></el-input>
@ -189,10 +208,11 @@
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" :model="modalData">
<el-form-item>
<span style="cursor: pointer" slot="label" @click="getBaseList(2000, 2)"><a herf="#">采购/Buyer</a></span>
<el-input v-model="modalData.buyer" @blur="buyerBlur(2000)" style="width: 150px"></el-input>
<el-input v-model="modalData.buyerName" disabled style="width: 240px"></el-input>
<el-form-item label="材料有效期/Material Validity Time">
<el-date-picker v-model="modalData.materialValidityTime" type="date" value-format="yyyy-MM-dd" style="width: 190px" :editable=false></el-date-picker>
</el-form-item>
<el-form-item label="有效期备注/Validity Comments">
<el-input v-model="modalData.materialValidityComments" style="width: 190px"></el-input>
</el-form-item>
<el-form-item label="报告时间(月)/Expect Report Time">
<el-input class="inlineNumber numInput" v-model="modalData.expectReportTime" type="number" style="width: 190px"></el-input>
@ -201,6 +221,18 @@
<el-button type="primary" icon="el-icon-upload" @click="uploadDialog = true">上传附件</el-button>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" :model="modalData">
<el-form-item>
<span style="cursor: pointer" slot="label" @click="getBaseList(103, 4)"><a herf="#">技术计划/Technical Plan</a></span>
<el-input v-model="modalData.technicalPlan" @blur="technicalPlanBlur(103)" style="width: 150px"></el-input>
<el-input v-model="modalData.technicalPlanName" disabled style="width: 240px"></el-input>
</el-form-item>
<el-form-item>
<span style="cursor: pointer" slot="label" @click="getBaseList(2000, 2)"><a herf="#">采购/Buyer</a></span>
<el-input v-model="modalData.buyer" @blur="buyerBlur(2000)" style="width: 150px"></el-input>
<el-input v-model="modalData.buyerName" disabled style="width: 240px"></el-input>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" :model="modalData">
<el-form-item label="所需审批文件/Docs Needed" >
<dict-data-select v-model="modalData.qualificationDocumentsNeededList" multiple :collapse-tags="true" style="width: 394px" dict-type="rohs_qualification_docs"></dict-data-select>
@ -219,23 +251,31 @@
<!-- HSF 填写信息 -->
<el-tab-pane label="HSF 填写信息" name="hsfInfo">
<div style="height: 550px">
<div style="height: 635px">
<el-form :inline="true" label-position="top" :model="modalData" style="margin-top: -5px;">
<!-- <el-form-item label="单据状态/Doc Status">-->
<!-- <el-input v-model="modalData.status" disabled style="width: 205px"></el-input>-->
<!-- </el-form-item>-->
<el-form-item label="SGS报告编号/SGS Report Number">
<el-input v-model="modalData.sgsReportNumber" style="width: 230px"></el-input>
</el-form-item>
<el-form-item label="报告有效期/Expired Date">
<el-form-item label="报告期/Expired Date">
<el-date-picker v-model="modalData.expiredDate" type="date" value-format="yyyy-MM-dd" style="width: 150px" :editable=false></el-date-picker>
</el-form-item>
<el-form-item label="有效期/Valid Until">
<dict-data-select v-model="modalData.validUntil" clearable style="width: 180px" dict-type="rohs_valid_until"></dict-data-select>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" :model="modalData">
<el-form-item label="是否符合RoHS/Meet RoHS Req">
<el-radio-group v-model="modalData.isMeetRohsRequirement" style="width: 180px">
<el-radio label="Y" @click.native.prevent="radioClick('isMeetRohsRequirement', 'Y')"></el-radio>
<el-radio label="N" @click.native.prevent="radioClick('isMeetRohsRequirement', 'N')"></el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="材料属性是否是AH/Is AH Grade">
<el-radio-group v-model="modalData.isAhGrade" style="width: 180px">
<el-radio label="Y" @click.native.prevent="radioClick('isAhGrade', 'Y')"></el-radio>
<el-radio label="N" @click.native.prevent="radioClick('isAhGrade', 'N')"></el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="HSF供应商等级/Supplier Class">
<el-radio-group v-model="modalData.hsfSupplierClassification" style="width: 200px">
<el-radio label="A类" @click.native.prevent="radioClick('hsfSupplierClassification', 'A类')">A类</el-radio>
@ -259,7 +299,7 @@
<!-- NPD 信息 -->
<el-tab-pane label="NPD 信息" name="npdInfo">
<div style="height: 550px">
<div style="height: 635px">
<el-form :inline="true" label-position="top" :model="modalData" style="margin-top: -5px;">
<el-form-item label="现有材料不同规格/Same Material Diff Size">
<el-radio-group v-model="modalData.isSameMaterialDiffSize" style="width: 190px">
@ -273,12 +313,17 @@
<el-input type="textarea" :rows="3" v-model="modalData.materialDesc" resize="none" style="width: 802px;height: 30px"></el-input>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" :model="modalData" style="margin-top: 50px">
<el-form-item label="备注说明/NPD Remark" style="display: block;">
<el-input type="textarea" :rows="3" v-model="modalData.npdRemark" resize="none" style="width: 802px;height: 30px"></el-input>
</el-form-item>
</el-form>
</div>
</el-tab-pane>
<!-- 材料信息 -->
<el-tab-pane label="材料信息" name="materialInfo">
<div style="height: 550px">
<div style="height: 635px">
<el-form :inline="true" label-position="top" :model="modalData" style="margin-top: -5px;">
<el-form-item label="材料IFS编号/IFS Part No.">
<el-input v-model="modalData.ifsPartNo" style="width: 190px"></el-input>
@ -360,12 +405,25 @@
<el-input :value="currentRow.applicant || ''" disabled style="width: 150px"></el-input>
<el-input :value="currentRow.applicantName || ''" disabled style="width: 240px"></el-input>
</el-form-item>
<el-form-item>
<span slot="label">PM人员/PM</span>
<el-input :value="currentRow.pm || ''" disabled style="width: 150px"></el-input>
<el-input :value="currentRow.pmName || ''" disabled style="width: 240px"></el-input>
</el-form-item>
<el-form-item label="申请日期/Application Date">
<el-date-picker :value="currentRow.applicationDate" disabled type="date" value-format="yyyy-MM-dd" style="width: 190px"></el-date-picker>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" :model="currentRow">
<el-form-item label="工艺/Process">
<el-input :value="currentRow.process || ''" disabled style="width: 190px"></el-input>
</el-form-item>
<el-form-item label="计划转量产时间/Planned Mass Production">
<el-date-picker :value="currentRow.plannedMassProductionDate" disabled type="datetime" value-format="yyyy-MM-dd HH:mm:ss" style="width: 190px"></el-date-picker>
</el-form-item>
<el-form-item label="颜色/Color">
<el-input :value="currentRow.color || ''" disabled style="width: 190px"></el-input>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" :model="currentRow">
<el-form-item label="供应商代码/Vendor Code">
@ -392,9 +450,6 @@
<el-input :value="currentRow.endCustomer || ''" disabled style="width: 150px"></el-input>
<el-input :value="currentRow.endCustomerName || ''" disabled style="width: 240px"></el-input>
</el-form-item>
<el-form-item label="Macallan材料/Macallan Material">
<el-input :value="displayYesNo(currentRow.isMacallanMaterial)" disabled style="width: 190px"></el-input>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" :model="currentRow">
<el-form-item>
@ -406,6 +461,27 @@
<el-input :value="displayYesNo(currentRow.needCreateNumber)" disabled style="width: 190px"></el-input>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" :model="currentRow">
<el-form-item>
<span slot="label">商品组1 / Comm Group 1</span>
<el-input :value="currentRow.commGroup1 || ''" disabled style="width: 128px"></el-input>
<el-input :value="currentRow.commGroup1Desc || ''" disabled style="width: 327px"></el-input>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" :model="currentRow">
<el-form-item>
<span slot="label">商品组2 / Comm Group 2</span>
<el-input :value="currentRow.commGroup2 || ''" disabled style="width: 128px"></el-input>
<el-input :value="currentRow.commGroup2Desc || ''" disabled style="width: 327px"></el-input>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" :model="currentRow">
<el-form-item>
<span slot="label">商品组3 / Comm Group 3</span>
<el-input :value="currentRow.commGroup3 || ''" disabled style="width: 128px"></el-input>
<el-input :value="currentRow.commGroup3Desc || ''" disabled style="width: 327px"></el-input>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" :model="currentRow">
<el-form-item>
<span slot="label">NPD工程师/NPD Engineer</span>
@ -469,13 +545,26 @@
<el-tab-pane label="HSF 填写信息" name="hsfInfo">
<div :style="{height: secondHeight + 'px'}" style="margin-left: 5px;margin-top: 5px; overflow-y: auto;">
<el-form :inline="true" label-position="top" :model="currentRow">
<!-- <el-form-item label="单据状态/Doc Status"><el-input :value="currentRow.status || ''" disabled style="width: 205px"></el-input></el-form-item>-->
<el-form-item label="SGS报告编号/SGS Report Number"><el-input :value="currentRow.sgsReportNumber || ''" disabled style="width: 205px"></el-input></el-form-item>
<el-form-item label="报告有效期/Expired Date"><el-date-picker :value="currentRow.expiredDate" disabled type="date" value-format="yyyy-MM-dd" style="width: 205px"></el-date-picker></el-form-item>
<el-form-item label="Fiber报告信息/Fiber Information"><el-input :value="currentRow.fiberInformation || ''" disabled style="width: 205px"></el-input></el-form-item>
<el-form-item label="是否符合RoHS/Meet RoHS Req"><el-input :value="displayYesNo(currentRow.isMeetRohsRequirement)" disabled style="width: 205px"></el-input></el-form-item>
<el-form-item label="HSF供应商等级/Supplier Class"><el-input :value="currentRow.hsfSupplierClassification || ''" disabled style="width: 205px"></el-input></el-form-item>
<el-form-item label="HSF标准/HSF Standard" style="display: block;"><el-input type="textarea" :rows="3" :value="currentRow.hsfStandard || ''" disabled resize="none" style="width: 636px;height: 30px"></el-input></el-form-item>
<el-form-item label="SGS报告编号/SGS Report Number">
<el-input :value="currentRow.sgsReportNumber || ''" disabled style="width: 230px"></el-input>
</el-form-item>
<el-form-item label="报告日期/Expired Date">
<el-date-picker :value="currentRow.expiredDate" disabled type="date" value-format="yyyy-MM-dd" style="width: 150px"></el-date-picker>
</el-form-item>
<el-form-item label="有效期/Valid Until">
<el-input :value="currentRow.validUntil || ''" disabled style="width: 180px"></el-input>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" :model="currentRow">
<el-form-item label="是否符合RoHS/Meet RoHS Req"><el-input :value="displayYesNo(currentRow.isMeetRohsRequirement)" disabled style="width: 180px"></el-input></el-form-item>
<el-form-item label="材料属性是否是AH/Is AH Grade"><el-input :value="displayYesNo(currentRow.isAhGrade)" disabled style="width: 180px"></el-input></el-form-item>
<el-form-item label="HSF供应商等级/Supplier Class"><el-input :value="currentRow.hsfSupplierClassification || ''" disabled style="width: 200px"></el-input></el-form-item>
</el-form>
<el-form :inline="true" label-position="top" :model="currentRow">
<el-form-item label="Fiber报告信息/Fiber Information" style="display: block;"><el-input type="textarea" :rows="3" :value="currentRow.fiberInformation || ''" disabled resize="none" style="width: 802px;height: 30px"></el-input></el-form-item>
</el-form>
<el-form :inline="true" label-position="top" :model="currentRow" style="margin-top: 50px">
<el-form-item label="HSF标准/HSF Standard" style="display: block;"><el-input type="textarea" :rows="3" :value="currentRow.hsfStandard || ''" disabled resize="none" style="width: 802px;height: 30px"></el-input></el-form-item>
</el-form>
</div>
</el-tab-pane>
@ -484,7 +573,12 @@
<div :style="{height: secondHeight + 'px'}" style="margin-left: 5px;margin-top: 5px; overflow-y: auto;">
<el-form :inline="true" label-position="top" :model="currentRow">
<el-form-item label="现有材料不同规格/Same Material Diff Size"><el-input :value="displayYesNo(currentRow.isSameMaterialDiffSize)" disabled style="width: 205px"></el-input></el-form-item>
<el-form-item label="材料描述/Material Desc." style="display: block;"><el-input type="textarea" :rows="3" :value="currentRow.materialDesc || ''" disabled resize="none" style="width: 636px;height: 30px"></el-input></el-form-item>
</el-form>
<el-form :inline="true" label-position="top" :model="currentRow">
<el-form-item label="材料描述/Material Desc." style="display: block;"><el-input type="textarea" :rows="3" :value="currentRow.materialDesc || ''" disabled resize="none" style="width: 802px;height: 30px"></el-input></el-form-item>
</el-form>
<el-form :inline="true" label-position="top" :model="currentRow" style="margin-top: 50px">
<el-form-item label="备注说明/NPD Remark" style="display: block;"><el-input type="textarea" :rows="3" :value="currentRow.npdRemark || ''" disabled resize="none" style="width: 802px;height: 30px"></el-input></el-form-item>
</el-form>
</div>
</el-tab-pane>
@ -645,8 +739,12 @@ export default {
site: 'DEFAULT',
referenceNo: '',
applicant: '',
pm: '',
pmName: '',
applicationDate: '',
process: '',
plannedMassProductionDate: '',
color: '',
vendorCode: '',
vendorMaterialCode: '',
materialClassify: '',
@ -654,7 +752,12 @@ export default {
materialUseFor: '',
endCustomer: '',
projectId: '',
isMacallanMaterial: '',
commGroup1: '',
commGroup1Desc: '',
commGroup2: '',
commGroup2Desc: '',
commGroup3: '',
commGroup3Desc: '',
needCreateNumber: '',
npdEngineer: '',
materialValidityTime: '',
@ -676,9 +779,12 @@ export default {
expiredDate: '',
fiberInformation: '',
hsfStandard: '',
validUntil: '',
isMeetRohsRequirement: '',
isAhGrade: '',
hsfSupplierClassification: '',
materialDesc: '',
npdRemark: '',
isSameMaterialDiffSize: '',
ifsPartNo: '',
createBy2: '',
@ -824,6 +930,11 @@ export default {
} else {
setName('applicantName', '')
}
if (this.currentRow.pm) {
tasks.push(this.queryUserDisplayName(this.currentRow.pm, site, 103).then(name => setName('pmName', name)))
} else {
setName('pmName', '')
}
if (this.currentRow.npdEngineer) {
tasks.push(this.queryUserDisplayName(this.currentRow.npdEngineer, site, 103).then(name => setName('npdEngineerName', name)))
} else {
@ -849,6 +960,21 @@ export default {
} else {
setName('projectName', '')
}
if (this.currentRow.commGroup1) {
tasks.push(this.queryCommGroupDisplayName(site, this.currentRow.commGroup1, 110).then(name => setName('commGroup1Desc', name)))
} else {
setName('commGroup1Desc', '')
}
if (this.currentRow.commGroup2) {
tasks.push(this.queryCommGroupDisplayName(site, this.currentRow.commGroup2, 111).then(name => setName('commGroup2Desc', name)))
} else {
setName('commGroup2Desc', '')
}
if (this.currentRow.commGroup3) {
tasks.push(this.queryCommGroupDisplayName(site, this.currentRow.commGroup3, 130).then(name => setName('commGroup3Desc', name)))
} else {
setName('commGroup3Desc', '')
}
if (tasks.length > 0) {
Promise.all(tasks).catch(() => {})
}
@ -901,6 +1027,23 @@ export default {
return ''
})
},
queryCommGroupDisplayName (site, commGroup, tagno) {
if (!commGroup) {
return Promise.resolve('')
}
let tempData = {
tagno: tagno,
conditionSql: " and product_group_id = '" + commGroup + "'" + " and site = '" + site + "'"
}
return verifyData(tempData).then(({data}) => {
if (data && data.code === 0 && data.baseListData && data.baseListData.length > 0) {
return data.baseListData[0].product_group_name || ''
}
return ''
}).catch(() => {
return ''
})
},
refreshCurrentTabTable () {
if (this.activeTable === 'approvalInformation') {
this.getApprovalList()
@ -1029,11 +1172,15 @@ export default {
this.$set(this.modalData, 'materialClassifyList', this.modalData.materialClassify ? this.modalData.materialClassify.split(';').filter(item => item) : [])
// Initialize names for display if needed
this.$set(this.modalData, 'applicantName', '')
this.$set(this.modalData, 'pmName', '')
this.$set(this.modalData, 'buyerName', '')
this.$set(this.modalData, 'npdEngineerName', '')
this.$set(this.modalData, 'technicalPlanName', '')
this.$set(this.modalData, 'endCustomerName', '')
this.$set(this.modalData, 'projectName', '')
this.$set(this.modalData, 'commGroup1Desc', '')
this.$set(this.modalData, 'commGroup2Desc', '')
this.$set(this.modalData, 'commGroup3Desc', '')
//
this.$set(this.modalData, 'endCustomerFlag', false)
this.$set(this.modalData, 'projectIdFlag', !this.modalData.endCustomer)
@ -1044,9 +1191,13 @@ export default {
// Try to trigger verify data on open to fetch names
this.applicantBlur(103)
this.pmBlur(103)
this.buyerBlur(2000)
this.npdEngineerBlur(103)
this.technicalPlanBlur(103)
this.commGroup1Blur(110)
this.commGroup2Blur(111)
this.commGroup3Blur(130)
this.handleQueryCustomer()
this.handleQueryProjectByCustomer()
this.loadModalButtonCondition()
@ -1062,8 +1213,12 @@ export default {
referenceNo: tempReferenceNo,
applicant: '',
applicantName: '',
pm: '',
pmName: '',
applicationDate: '',
process: '',
plannedMassProductionDate: '',
color: '',
vendorCode: '',
vendorMaterialCode: '',
materialClassify: '',
@ -1076,7 +1231,12 @@ export default {
projectId: '',
projectName: '',
projectIdFlag: true,
isMacallanMaterial: '',
commGroup1: '',
commGroup1Desc: '',
commGroup2: '',
commGroup2Desc: '',
commGroup3: '',
commGroup3Desc: '',
needCreateNumber: '',
npdEngineer: '',
npdEngineerName: '',
@ -1100,9 +1260,12 @@ export default {
expiredDate: '',
fiberInformation: '',
hsfStandard: '',
validUntil: '',
isMeetRohsRequirement: '',
isAhGrade: '',
hsfSupplierClassification: '',
materialDesc: '',
npdRemark: '',
isSameMaterialDiffSize: '',
ifsPartNo: '',
createBy2: '',
@ -1248,6 +1411,8 @@ export default {
strVal = this.modalData.npdEngineer
} else if (type === 4) {
strVal = this.modalData.technicalPlan
} else if (type === 5) {
strVal = this.modalData.pm
}
conSql = " and b.site = '" + this.$store.state.user.site + "'"
}
@ -1255,6 +1420,15 @@ export default {
strVal = this.modalData.buyer
conSql = " and b.site = '" + this.$store.state.user.site + "'"
}
if (val === 110) {
strVal = this.modalData.commGroup1
}
if (val === 111) {
strVal = this.modalData.commGroup2
}
if (val === 130) {
strVal = this.modalData.commGroup3
}
this.$refs.baseList.init(val, strVal, conSql)
})
},
@ -1284,7 +1458,22 @@ export default {
} else if (this.tagNo1 === 4) {
this.modalData.technicalPlan = val.username
this.modalData.technicalPlanName = val.user_display
} else if (this.tagNo1 === 5) {
this.modalData.pm = val.username
this.modalData.pmName = val.user_display
}
}
if (this.tagNo === 110) {
this.modalData.commGroup1 = val.product_group_id
this.modalData.commGroup1Desc = val.product_group_name
}
if (this.tagNo === 111) {
this.modalData.commGroup2 = val.product_group_id
this.modalData.commGroup2Desc = val.product_group_name
}
if (this.tagNo === 130) {
this.modalData.commGroup3 = val.product_group_id
this.modalData.commGroup3Desc = val.product_group_name
}
if (this.tagNo === 2000) {
this.modalData.buyer = val.username
@ -1423,6 +1612,27 @@ export default {
this.modalData.applicantName = ''
}
},
// PM
pmBlur (tagNo) {
if (this.modalData.pm != null && this.modalData.pm !== '') {
let tempData = {
tagno: tagNo,
conditionSql: " and a.username = '" + this.modalData.pm + "'" + " and b.site = '" + this.$store.state.user.site + "'"
}
verifyData(tempData).then(({data}) => {
if (data && data.code === 0) {
if (data.baseListData.length > 0) {
this.modalData.pm = data.baseListData[0].username
this.modalData.pmName = data.baseListData[0].user_display
return
}
}
this.modalData.pmName = ''
})
} else {
this.modalData.pmName = ''
}
},
// NPD
npdEngineerBlur (tagNo) {
if (this.modalData.npdEngineer != null && this.modalData.npdEngineer !== '') {
@ -1485,6 +1695,63 @@ export default {
} else {
this.modalData.buyerName = ''
}
},
// 1
commGroup1Blur (tagNo) {
if (this.modalData.commGroup1 != null && this.modalData.commGroup1 !== '') {
let tempData = {
tagno: tagNo,
conditionSql: " and product_group_id = '" + this.modalData.commGroup1 + "'" + " and site = '" + this.$store.state.user.site + "'"
}
verifyData(tempData).then(({data}) => {
if (data && data.code === 0 && data.baseListData.length > 0) {
this.modalData.commGroup1 = data.baseListData[0].product_group_id
this.modalData.commGroup1Desc = data.baseListData[0].product_group_name
} else {
this.modalData.commGroup1Desc = ''
}
})
} else {
this.modalData.commGroup1Desc = ''
}
},
// 2
commGroup2Blur (tagNo) {
if (this.modalData.commGroup2 != null && this.modalData.commGroup2 !== '') {
let tempData = {
tagno: tagNo,
conditionSql: " and product_group_id = '" + this.modalData.commGroup2 + "'" + " and site = '" + this.$store.state.user.site + "'"
}
verifyData(tempData).then(({data}) => {
if (data && data.code === 0 && data.baseListData.length > 0) {
this.modalData.commGroup2 = data.baseListData[0].product_group_id
this.modalData.commGroup2Desc = data.baseListData[0].product_group_name
} else {
this.modalData.commGroup2Desc = ''
}
})
} else {
this.modalData.commGroup2Desc = ''
}
},
// 3
commGroup3Blur (tagNo) {
if (this.modalData.commGroup3 != null && this.modalData.commGroup3 !== '') {
let tempData = {
tagno: tagNo,
conditionSql: " and product_group_id = '" + this.modalData.commGroup3 + "'" + " and site = '" + this.$store.state.user.site + "'"
}
verifyData(tempData).then(({data}) => {
if (data && data.code === 0 && 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 = ''
}
})
} else {
this.modalData.commGroup3Desc = ''
}
}
}
}

Loading…
Cancel
Save