|
|
|
@ -314,24 +314,11 @@ |
|
|
|
<el-input v-model="formData.reportNo" disabled /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="状态/Status"> |
|
|
|
<el-input v-model="formData.status" disabled /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="类型/Type"> |
|
|
|
<el-input v-model="formData.type" disabled /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="日期/Date"> |
|
|
|
<el-date-picker v-model="formData.mrbDate" type="date" value-format="yyyy-MM-dd" format="yyyy-MM-dd" clearable style="width: 100%" :disabled="formReadOnly" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
|
|
|
|
<el-row :gutter="12"> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="发起人/Initiator"> |
|
|
|
<el-input v-model="formData.initiator" :disabled="formReadOnly" /> |
|
|
|
@ -353,6 +340,9 @@ |
|
|
|
</el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
|
|
|
|
<el-row :gutter="12"> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="Operations Center"> |
|
|
|
<dict-data-select v-model="formData.operationsCenter" dict-type="mrb_operations_center" :use-default-value="false" clearable :disabled="formReadOnly" /> |
|
|
|
@ -363,16 +353,16 @@ |
|
|
|
<dict-data-select v-model="formData.industryType" dict-type="mrb_industry_type" :use-default-value="false" clearable :disabled="formReadOnly" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
|
|
|
|
<el-row :gutter="12"> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item> |
|
|
|
<span slot="label" class="click-label" @click="openChooseList('materialPn')"><a herf="#">原材料编号/Material PN</a></span> |
|
|
|
<el-input v-model="formData.materialPn" :disabled="formReadOnly" @blur="verifyChooseField('materialPn')" style="width: 100px" /> |
|
|
|
<el-input v-model="formData.materialPnName" disabled style="width: 155px" /> |
|
|
|
<el-input v-model="formData.materialPn" :disabled="formReadOnly" @blur="verifyChooseField('materialPn')" style="width: 120px" /> |
|
|
|
<el-input v-model="formData.materialPnName" disabled style="width: 281px" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
|
|
|
|
<el-row :gutter="12"> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="原材料订单号/Purchase No."> |
|
|
|
<el-input v-model="formData.purchaseNo" :disabled="formReadOnly" /> |
|
|
|
@ -383,16 +373,16 @@ |
|
|
|
<el-input v-model="formData.supplierLotNo" :disabled="formReadOnly" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
|
|
|
|
<el-row :gutter="12"> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item> |
|
|
|
<span slot="label" class="click-label" @click="openChooseList('supplierNo')"><a herf="#">供应商编码/Supplier No.</a></span> |
|
|
|
<el-input v-model="formData.supplierNo" :disabled="formReadOnly" @blur="verifyChooseField('supplierNo')" style="width: 100px" /> |
|
|
|
<el-input v-model="formData.supplierNoName" disabled style="width: 155px" /> |
|
|
|
<el-input v-model="formData.supplierNo" :disabled="formReadOnly" @blur="verifyChooseField('supplierNo')" style="width: 120px" /> |
|
|
|
<el-input v-model="formData.supplierNoName" disabled style="width: 281px" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
|
|
|
|
<el-row :gutter="12"> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="材料类别/Material Category"> |
|
|
|
<el-input v-model="formData.materialCategory" :disabled="formReadOnly" /> |
|
|
|
@ -403,9 +393,6 @@ |
|
|
|
<el-input v-model="formData.purchaseQty" :disabled="formReadOnly" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
|
|
|
|
<el-row :gutter="12"> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="不良率(%) / Defect Rate"> |
|
|
|
<el-input-number v-model="formData.defectRate" :disabled="formReadOnly" :precision="2" :step="0.01" :controls="false" style="width: 100%" /> |
|
|
|
@ -416,6 +403,9 @@ |
|
|
|
<el-input v-model="formData.defectQty" :disabled="formReadOnly" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
|
|
|
|
<el-row :gutter="12"> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="材料不良类型/Material Defect Type"> |
|
|
|
<el-select v-model="formData.materialDefectType" clearable style="width: 100%" :disabled="formReadOnly"> |
|
|
|
@ -442,46 +432,41 @@ |
|
|
|
<el-input v-model="formData.reportNo" disabled /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="状态/Status"> |
|
|
|
<el-input v-model="formData.status" disabled /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="类型/Type"> |
|
|
|
<el-input v-model="formData.type" disabled /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="日期/Date"> |
|
|
|
<el-date-picker v-model="formData.mrbDate" type="date" value-format="yyyy-MM-dd" format="yyyy-MM-dd" clearable style="width: 100%" :disabled="formReadOnly" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
|
|
|
|
<el-row :gutter="12"> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="发起人/Initiator"> |
|
|
|
<el-input v-model="formData.initiator" :disabled="formReadOnly" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="IPQE/生产主管/IPQE/Production Supervisor"> |
|
|
|
<el-form-item label="IPQE/Production Supervisor"> |
|
|
|
<el-select v-model="formData.ipqeProductionSupervisorList" multiple filterable collapse-tags style="width: 100%" :disabled="formReadOnly || userOptionsLoading"> |
|
|
|
<el-option v-for="item in userOptions" :key="item.value" :label="item.label" :value="item.value" /> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
|
|
|
|
<el-row :gutter="12"> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="Operations Center"> |
|
|
|
<dict-data-select v-model="formData.operationsCenter" dict-type="mrb_operations_center" :use-default-value="false" clearable :disabled="formReadOnly" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item> |
|
|
|
<span slot="label" class="click-label" @click="openChooseList('productPn')"><a herf="#">产品编号/Product P/N</a></span> |
|
|
|
<el-input v-model="formData.productPn" :disabled="formReadOnly" @blur="verifyChooseField('productPn')" style="width: 100px" /> |
|
|
|
<el-input v-model="formData.productPnName" disabled style="width: 155px" /> |
|
|
|
<el-input v-model="formData.productPn" :disabled="formReadOnly" @blur="verifyChooseField('productPn')" style="width: 120px" /> |
|
|
|
<el-input v-model="formData.productPnName" disabled style="width: 279px" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="场所/Workcell"> |
|
|
|
<dict-data-select v-model="formData.workCell" dict-type="mrb_work_cell" :use-default-value="false" clearable :disabled="formReadOnly" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
@ -490,15 +475,15 @@ |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item> |
|
|
|
<span slot="label" class="click-label" @click="openChooseList('directCustomer')"><a herf="#">直接客户/Direct Customer</a></span> |
|
|
|
<el-input v-model="formData.directCustomer" :disabled="formReadOnly" @blur="verifyChooseField('directCustomer')" style="width: 100px" /> |
|
|
|
<el-input v-model="formData.directCustomerName" disabled style="width: 155px" /> |
|
|
|
<el-input v-model="formData.directCustomer" :disabled="formReadOnly" @blur="verifyChooseField('directCustomer')" style="width: 120px" /> |
|
|
|
<el-input v-model="formData.directCustomerName" disabled style="width: 279px" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item> |
|
|
|
<span slot="label" class="click-label" @click="openChooseList('endCustomer')"><a herf="#">最终客户/End Customer</a></span> |
|
|
|
<el-input v-model="formData.endCustomer" :disabled="formReadOnly" @blur="verifyChooseField('endCustomer')" style="width: 100px" /> |
|
|
|
<el-input v-model="formData.endCustomerName" disabled style="width: 155px" /> |
|
|
|
<el-input v-model="formData.endCustomer" :disabled="formReadOnly" @blur="verifyChooseField('endCustomer')" style="width: 120px" /> |
|
|
|
<el-input v-model="formData.endCustomerName" disabled style="width: 279px" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
@ -520,18 +505,13 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="不良率(%) / Defect Rate"> |
|
|
|
<el-form-item label="不良率(%)/Defect Rate"> |
|
|
|
<el-input-number v-model="formData.defectRate" :disabled="formReadOnly" :precision="2" :step="0.01" :controls="false" style="width: 100%" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
|
|
|
|
<el-row :gutter="12"> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="场所/Workcell"> |
|
|
|
<dict-data-select v-model="formData.workCell" dict-type="mrb_work_cell" :use-default-value="false" clearable :disabled="formReadOnly" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="站点/Station"> |
|
|
|
<dict-data-select v-model="formData.station" dict-type="mrb_station" :use-default-value="false" clearable :disabled="formReadOnly" /> |
|
|
|
@ -569,20 +549,16 @@ |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="6" v-if="isIqcType"> |
|
|
|
<el-col :span="12" v-if="isIqcType"> |
|
|
|
<el-form-item> |
|
|
|
<span slot="label" class="click-label" @click="openChooseList('buyer')"><a herf="#">采购/Buyer</a></span> |
|
|
|
<el-input v-model="formData.buyer" :disabled="formReadOnly" @blur="verifyChooseField('buyer')" style="width: 100px" /> |
|
|
|
<el-input v-model="formData.buyerName" disabled style="width: 155px" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="6" v-if="isIqcType"> |
|
|
|
<el-form-item> |
|
|
|
<span slot="label" class="click-label" @click="openChooseList('planner')"><a herf="#">计划/Planner</a></span> |
|
|
|
<el-input v-model="formData.planner" :disabled="formReadOnly" @blur="verifyChooseField('planner')" style="width: 100px" /> |
|
|
|
<el-input v-model="formData.plannerName" disabled style="width: 155px" /> |
|
|
|
<el-input v-model="formData.buyer" :disabled="formReadOnly" @blur="verifyChooseField('buyer')" style="width: 120px" /> |
|
|
|
<el-input v-model="formData.buyerName" disabled style="width: 281px" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
|
|
|
|
<el-row :gutter="12"> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="MRB结论/MRB Conclusion"> |
|
|
|
<dict-data-select |
|
|
|
@ -593,6 +569,13 @@ |
|
|
|
:disabled="formReadOnly" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12" v-if="isIqcType"> |
|
|
|
<el-form-item> |
|
|
|
<span slot="label" class="click-label" @click="openChooseList('planner')"><a herf="#">计划/Planner</a></span> |
|
|
|
<el-input v-model="formData.planner" :disabled="formReadOnly" @blur="verifyChooseField('planner')" style="width: 120px" /> |
|
|
|
<el-input v-model="formData.plannerName" disabled style="width: 281px" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
|
|
|
|
<el-form-item :label="isIqcType ? 'SQE备注/SQE Comments' : '备注/Comments'"> |
|
|
|
@ -923,7 +906,7 @@ export default { |
|
|
|
return this.normalizeType(this.formData.type) === DOC_TYPE_IPQE |
|
|
|
}, |
|
|
|
confirmTabLabel () { |
|
|
|
return this.isIqcType ? 'SQE确认信息' : 'IPQE/生产主管确认信息' |
|
|
|
return this.isIqcType ? 'SQE确认信息' : 'IPQE确认信息' |
|
|
|
}, |
|
|
|
dialogTitle () { |
|
|
|
if (this.formReadOnly) { |
|
|
|
@ -1770,7 +1753,7 @@ export default { |
|
|
|
|
|
|
|
.mrb-dialog-tabs { |
|
|
|
width: 100%; |
|
|
|
height: 777px; |
|
|
|
height: 600px; |
|
|
|
} |
|
|
|
|
|
|
|
.mrb-dialog-tab-pane { |
|
|
|
|