|
|
@ -3,7 +3,8 @@ |
|
|
<!-- 查询条件 --> |
|
|
<!-- 查询条件 --> |
|
|
<el-form :inline="true" label-position="top" class="search-form-inline"> |
|
|
<el-form :inline="true" label-position="top" class="search-form-inline"> |
|
|
<div class="search-row"> |
|
|
<div class="search-row"> |
|
|
<el-form-item label="供应商编码" class="search-item"> |
|
|
|
|
|
|
|
|
<el-form-item class="search-item"> |
|
|
|
|
|
<span slot="label" class="choose-label" @click="getBaseList(1100)">供应商编码</span> |
|
|
<el-input v-model="searchData.supplierNo" style="width: 120px" @keyup.enter.native="getMainData"/> |
|
|
<el-input v-model="searchData.supplierNo" style="width: 120px" @keyup.enter.native="getMainData"/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="供应商名称" class="search-item"> |
|
|
<el-form-item label="供应商名称" class="search-item"> |
|
|
@ -52,7 +53,8 @@ |
|
|
<el-form-item label="PO No" class="search-item"> |
|
|
<el-form-item label="PO No" class="search-item"> |
|
|
<el-input v-model="searchData.poNo" style="width: 120px" @keyup.enter.native="getMainData"/> |
|
|
<el-input v-model="searchData.poNo" style="width: 120px" @keyup.enter.native="getMainData"/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="Part No" class="search-item"> |
|
|
|
|
|
|
|
|
<el-form-item class="search-item"> |
|
|
|
|
|
<span slot="label" class="choose-label" @click="getBaseList(2017)">Part No</span> |
|
|
<el-input v-model="searchData.partNo" style="width: 120px" @keyup.enter.native="getMainData"/> |
|
|
<el-input v-model="searchData.partNo" style="width: 120px" @keyup.enter.native="getMainData"/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</div> |
|
|
</div> |
|
|
@ -93,27 +95,26 @@ |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column fixed="right" header-align="center" align="center" width="240" label="操作"> |
|
|
<el-table-column fixed="right" header-align="center" align="center" width="240" label="操作"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<!-- 编辑 --> |
|
|
|
|
|
<a v-if="scope.row.status === '已确认'" |
|
|
|
|
|
|
|
|
<!-- 编辑:已确认 或 已赔偿 --> |
|
|
|
|
|
<a v-if="scope.row.status === '已确认' || scope.row.status === '已赔偿'" |
|
|
class="customer-a" |
|
|
class="customer-a" |
|
|
@click="editQualityIssue(scope.row)">编辑 </a> |
|
|
@click="editQualityIssue(scope.row)">编辑 </a> |
|
|
<!-- 删除 --> |
|
|
|
|
|
<a v-if="scope.row.status === '已确认'" |
|
|
|
|
|
|
|
|
<!-- 删除:已确认 或 已赔偿 --> |
|
|
|
|
|
<a v-if="scope.row.status === '已确认' || scope.row.status === '已赔偿'" |
|
|
class="customer-a" |
|
|
class="customer-a" |
|
|
@click="deleteQualityIssue(scope.row)">删除 </a> |
|
|
@click="deleteQualityIssue(scope.row)">删除 </a> |
|
|
<!-- 回复 --> |
|
|
|
|
|
<a v-if="scope.row.status === '已确认'" |
|
|
|
|
|
|
|
|
<!-- 回复:已确认 或 已赔偿 --> |
|
|
|
|
|
<a v-if="scope.row.status === '已确认' || scope.row.status === '已赔偿'" |
|
|
class="customer-a" |
|
|
class="customer-a" |
|
|
@click="replyQualityIssue(scope.row)">回复 </a> |
|
|
@click="replyQualityIssue(scope.row)">回复 </a> |
|
|
<!-- 赔偿 --> |
|
|
|
|
|
<a v-if="['已确认','已分析'].includes(scope.row.status)" |
|
|
|
|
|
|
|
|
<!-- 赔偿:已确认 或 已分析,但不能是已赔偿(已赔偿状态不显示赔偿按钮)--> |
|
|
|
|
|
<a v-if="(scope.row.status === '已确认' || scope.row.status === '已分析') && scope.row.status !== '已赔偿'" |
|
|
class="customer-a" |
|
|
class="customer-a" |
|
|
@click="compensationQualityIssue(scope.row)">赔偿 </a> |
|
|
@click="compensationQualityIssue(scope.row)">赔偿 </a> |
|
|
<!-- 关闭 --> |
|
|
|
|
|
|
|
|
<!-- 关闭:仅已分析 --> |
|
|
<a v-if="scope.row.status === '已分析'" |
|
|
<a v-if="scope.row.status === '已分析'" |
|
|
class="customer-a" |
|
|
class="customer-a" |
|
|
@click="closeQualityIssueAction(scope.row)">关闭</a> |
|
|
@click="closeQualityIssueAction(scope.row)">关闭</a> |
|
|
|
|
|
|
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
|
@ -237,9 +238,11 @@ |
|
|
<!-- 第二行 --> |
|
|
<!-- 第二行 --> |
|
|
<el-row :gutter="10"> |
|
|
<el-row :gutter="10"> |
|
|
<el-col :span="6"> |
|
|
<el-col :span="6"> |
|
|
<el-form-item label="供应商编码" prop="supplierNo"> |
|
|
|
|
|
<el-input v-model="addFormData.supplierNo" placeholder="请选择" readonly @click.native="selectSupplier" size="mini"> |
|
|
|
|
|
<i slot="suffix" class="el-icon-search" style="cursor: pointer;"></i> |
|
|
|
|
|
|
|
|
<el-form-item prop="supplierNo"><span slot="label" class="choose-label" @click="getBaseList(1100)">供应商编码</span> |
|
|
|
|
|
<el-input |
|
|
|
|
|
v-model="addFormData.supplierNo" |
|
|
|
|
|
readonly |
|
|
|
|
|
size="mini"> |
|
|
</el-input> |
|
|
</el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
@ -249,8 +252,12 @@ |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="6"> |
|
|
<el-col :span="6"> |
|
|
<el-form-item label="供应商负责人"> |
|
|
|
|
|
<el-input v-model="addFormData.supplierResponsible" placeholder="请输入" size="mini"></el-input> |
|
|
|
|
|
|
|
|
<el-form-item><span slot="label" class="choose-label" @click="getBaseList(2016)">供应商负责人</span> |
|
|
|
|
|
<el-input |
|
|
|
|
|
v-model="addFormData.supplierResponsible" |
|
|
|
|
|
readonly |
|
|
|
|
|
size="mini"> |
|
|
|
|
|
</el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
@ -280,8 +287,12 @@ |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="6"> |
|
|
<el-col :span="6"> |
|
|
<el-form-item label="Part No"> |
|
|
|
|
|
<el-input v-model="addFormData.partNo" placeholder="请输入" size="mini"></el-input> |
|
|
|
|
|
|
|
|
<el-form-item><span slot="label" class="choose-label" @click="getBaseList(2017)">Part No</span> |
|
|
|
|
|
<el-input |
|
|
|
|
|
v-model="addFormData.partNo" |
|
|
|
|
|
readonly |
|
|
|
|
|
size="mini"> |
|
|
|
|
|
</el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
@ -404,13 +415,8 @@ |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
|
|
|
|
|
|
<!-- 新增行:PO No、批次数量、拒收批次数量、投诉接收日期、样品接收日期 --> |
|
|
|
|
|
|
|
|
<!-- 批次数量、拒收批次数量、投诉接收日期、样品接收日期 --> |
|
|
<el-row :gutter="10"> |
|
|
<el-row :gutter="10"> |
|
|
<el-col :span="6"> |
|
|
|
|
|
<el-form-item label="PO No"> |
|
|
|
|
|
<el-input v-model="editFormData.poNo" placeholder="请输入" size="mini"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="6"> |
|
|
<el-col :span="6"> |
|
|
<el-form-item label="批次数量"> |
|
|
<el-form-item label="批次数量"> |
|
|
<el-input v-model="editFormData.batchQty" placeholder="请输入" size="mini" type="number"></el-input> |
|
|
<el-input v-model="editFormData.batchQty" placeholder="请输入" size="mini" type="number"></el-input> |
|
|
@ -433,9 +439,6 @@ |
|
|
</el-date-picker> |
|
|
</el-date-picker> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
|
|
|
|
|
|
|
|
|
<el-row :gutter="10"> |
|
|
|
|
|
<el-col :span="6"> |
|
|
<el-col :span="6"> |
|
|
<el-form-item label="样品接收日期"> |
|
|
<el-form-item label="样品接收日期"> |
|
|
<el-date-picker |
|
|
<el-date-picker |
|
|
@ -450,11 +453,12 @@ |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
|
|
|
|
|
|
<!-- 第二行 --> |
|
|
|
|
|
|
|
|
<!-- 第二行:供应商编码、供应商名称、供应商负责人 --> |
|
|
<el-row :gutter="10"> |
|
|
<el-row :gutter="10"> |
|
|
<el-col :span="6"> |
|
|
<el-col :span="6"> |
|
|
<el-form-item label="供应商编码"> |
|
|
|
|
|
<el-input v-model="editFormData.supplierNo" disabled size="mini"></el-input> |
|
|
|
|
|
|
|
|
<el-form-item prop="supplierNo"> |
|
|
|
|
|
<span slot="label" class="choose-label" @click="getBaseList(1100)">供应商编码</span> |
|
|
|
|
|
<el-input v-model="editFormData.supplierNo" readonly size="mini"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="12"> |
|
|
<el-col :span="12"> |
|
|
@ -463,13 +467,14 @@ |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="6"> |
|
|
<el-col :span="6"> |
|
|
<el-form-item label="供应商负责人"> |
|
|
|
|
|
<el-input v-model="editFormData.supplierResponsible" placeholder="请输入" size="mini"></el-input> |
|
|
|
|
|
|
|
|
<el-form-item> |
|
|
|
|
|
<span slot="label" class="choose-label" @click="getBaseList(2016)">供应商负责人</span> |
|
|
|
|
|
<el-input v-model="editFormData.supplierResponsible" readonly size="mini"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
|
|
|
|
|
|
<!-- 第三行 --> |
|
|
|
|
|
|
|
|
<!-- 第三行:Plant、Claim No、Product Category、Part No --> |
|
|
<el-row :gutter="10"> |
|
|
<el-row :gutter="10"> |
|
|
<el-col :span="6"> |
|
|
<el-col :span="6"> |
|
|
<el-form-item label="Plant"> |
|
|
<el-form-item label="Plant"> |
|
|
@ -494,13 +499,14 @@ |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="6"> |
|
|
<el-col :span="6"> |
|
|
<el-form-item label="Part No"> |
|
|
|
|
|
<el-input v-model="editFormData.partNo" placeholder="请输入" size="mini"></el-input> |
|
|
|
|
|
|
|
|
<el-form-item> |
|
|
|
|
|
<span slot="label" class="choose-label" @click="getBaseList(2017)">Part No</span> |
|
|
|
|
|
<el-input v-model="editFormData.partNo" readonly size="mini"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
|
|
|
|
|
|
<!-- 第四行 --> |
|
|
|
|
|
|
|
|
<!-- 第四行:问题简述、Inspector --> |
|
|
<el-row :gutter="10"> |
|
|
<el-row :gutter="10"> |
|
|
<el-col :span="18"> |
|
|
<el-col :span="18"> |
|
|
<el-form-item label="问题简述" prop="issueSummary"> |
|
|
<el-form-item label="问题简述" prop="issueSummary"> |
|
|
@ -514,7 +520,7 @@ |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
|
|
|
|
|
|
<!-- 第五行 --> |
|
|
|
|
|
|
|
|
<!-- 第五行:问题详细描述 --> |
|
|
<el-row :gutter="10"> |
|
|
<el-row :gutter="10"> |
|
|
<el-col :span="18"> |
|
|
<el-col :span="18"> |
|
|
<el-form-item label="问题详细描述"> |
|
|
<el-form-item label="问题详细描述"> |
|
|
@ -529,7 +535,7 @@ |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
|
|
|
|
|
|
<!-- 第六行 --> |
|
|
|
|
|
|
|
|
<!-- 第六行:Level、Mode1-3 --> |
|
|
<el-row :gutter="10"> |
|
|
<el-row :gutter="10"> |
|
|
<el-col :span="6"> |
|
|
<el-col :span="6"> |
|
|
<el-form-item label="Level"> |
|
|
<el-form-item label="Level"> |
|
|
@ -722,16 +728,16 @@ export default { |
|
|
// 新增弹窗相关数据 |
|
|
// 新增弹窗相关数据 |
|
|
addDialogVisible: false, |
|
|
addDialogVisible: false, |
|
|
addFormData: { |
|
|
addFormData: { |
|
|
|
|
|
supplierResponsible: '', |
|
|
|
|
|
partNo: '', |
|
|
issueNo: '', |
|
|
issueNo: '', |
|
|
issueDate: '', |
|
|
issueDate: '', |
|
|
requireReplyDate: '', |
|
|
requireReplyDate: '', |
|
|
supplierNo: '', |
|
|
supplierNo: '', |
|
|
supplierName: '', |
|
|
supplierName: '', |
|
|
supplierResponsible: '', |
|
|
|
|
|
plant: '', |
|
|
plant: '', |
|
|
claimNo: '', |
|
|
claimNo: '', |
|
|
productCategory: '', |
|
|
productCategory: '', |
|
|
partNo: '', |
|
|
|
|
|
poNo: '', |
|
|
poNo: '', |
|
|
batchQty: '', |
|
|
batchQty: '', |
|
|
rejectBatchQty: '', |
|
|
rejectBatchQty: '', |
|
|
@ -772,7 +778,6 @@ export default { |
|
|
requireReplyDate: '', |
|
|
requireReplyDate: '', |
|
|
supplierNo: '', |
|
|
supplierNo: '', |
|
|
supplierName: '', |
|
|
supplierName: '', |
|
|
supplierResponsible: '', |
|
|
|
|
|
plant: '', |
|
|
plant: '', |
|
|
claimNo: '', |
|
|
claimNo: '', |
|
|
productCategory: '', |
|
|
productCategory: '', |
|
|
@ -1051,8 +1056,31 @@ export default { |
|
|
let strVal = '' |
|
|
let strVal = '' |
|
|
let conSql = '' |
|
|
let conSql = '' |
|
|
if (val === 1100) { |
|
|
if (val === 1100) { |
|
|
|
|
|
// 供应商编码 |
|
|
|
|
|
if (this.addDialogVisible) { |
|
|
strVal = this.addFormData.supplierNo || '' |
|
|
strVal = this.addFormData.supplierNo || '' |
|
|
|
|
|
} else if (this.editDialogVisible) { |
|
|
|
|
|
strVal = this.editFormData.supplierNo || '' |
|
|
|
|
|
} else { |
|
|
|
|
|
strVal = this.searchData.supplierNo || '' |
|
|
|
|
|
} |
|
|
conSql = " and site = '" + this.$store.state.user.site + "'" |
|
|
conSql = " and site = '" + this.$store.state.user.site + "'" |
|
|
|
|
|
} else if (val === 2016) { |
|
|
|
|
|
// 供应商负责人 |
|
|
|
|
|
if (this.addDialogVisible) { |
|
|
|
|
|
strVal = this.addFormData.supplierResponsible || '' |
|
|
|
|
|
} else if (this.editDialogVisible) { |
|
|
|
|
|
strVal = this.editFormData.supplierResponsible || '' |
|
|
|
|
|
} |
|
|
|
|
|
} else if (val === 2017) { |
|
|
|
|
|
// Part No |
|
|
|
|
|
if (this.addDialogVisible) { |
|
|
|
|
|
strVal = this.addFormData.partNo || '' |
|
|
|
|
|
} else if (this.editDialogVisible) { |
|
|
|
|
|
strVal = this.editFormData.partNo || '' |
|
|
|
|
|
} else { |
|
|
|
|
|
strVal = this.searchData.partNo || '' |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
this.$refs.baseList.init(val, strVal, conSql) |
|
|
this.$refs.baseList.init(val, strVal, conSql) |
|
|
}) |
|
|
}) |
|
|
@ -1060,12 +1088,67 @@ export default { |
|
|
|
|
|
|
|
|
/* 列表方法的回调 */ |
|
|
/* 列表方法的回调 */ |
|
|
getBaseData (val) { |
|
|
getBaseData (val) { |
|
|
|
|
|
console.log('ChooseList 返回数据:', val) |
|
|
|
|
|
console.log('当前 tagNo:', this.tagNo) |
|
|
|
|
|
|
|
|
|
|
|
// 供应商 |
|
|
if (this.tagNo === 1100) { |
|
|
if (this.tagNo === 1100) { |
|
|
// 新增弹窗:使用下划线命名的字段,使用$set确保响应式 |
|
|
|
|
|
|
|
|
if (this.addDialogVisible) { |
|
|
this.$set(this.addFormData, 'supplierNo', val.supplier_no || '') |
|
|
this.$set(this.addFormData, 'supplierNo', val.supplier_no || '') |
|
|
this.$set(this.addFormData, 'supplierName', val.supplier_name || '') |
|
|
this.$set(this.addFormData, 'supplierName', val.supplier_name || '') |
|
|
|
|
|
} else if (this.editDialogVisible) { |
|
|
|
|
|
this.$set(this.editFormData, 'supplierNo', val.supplier_no || '') |
|
|
|
|
|
this.$set(this.editFormData, 'supplierName', val.supplier_name || '') |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$set(this.searchData, 'supplierNo', val.supplier_no || '') |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
// 供应商负责人 |
|
|
|
|
|
else if (this.tagNo === 2016) { |
|
|
|
|
|
const userName = val.user_display || '' |
|
|
|
|
|
if (this.addDialogVisible) { |
|
|
|
|
|
this.$set(this.addFormData, 'supplierResponsible', userName) |
|
|
|
|
|
} else if (this.editDialogVisible) { |
|
|
|
|
|
this.$set(this.editFormData, 'supplierResponsible', userName) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
// Part No |
|
|
|
|
|
else if (this.tagNo === 2017) { |
|
|
|
|
|
const partNo = val.part_no || val.partNo || '' |
|
|
|
|
|
if (this.addDialogVisible) { |
|
|
|
|
|
this.$set(this.addFormData, 'partNo', partNo) |
|
|
|
|
|
} else if (this.editDialogVisible) { |
|
|
|
|
|
this.$set(this.editFormData, 'partNo', partNo) |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$set(this.searchData, 'partNo', partNo) |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
// 选择供应商负责人 |
|
|
|
|
|
selectSupplierResponsible () { |
|
|
|
|
|
this.tagNo = 2016 |
|
|
|
|
|
|
|
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
|
this.$refs.baseList.init( |
|
|
|
|
|
2016, |
|
|
|
|
|
this.addFormData.supplierResponsible || '', |
|
|
|
|
|
'' |
|
|
|
|
|
) |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 选择 Part No |
|
|
|
|
|
selectPartNo () { |
|
|
|
|
|
this.tagNo = 2017 |
|
|
|
|
|
|
|
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
|
this.$refs.baseList.init( |
|
|
|
|
|
2017, |
|
|
|
|
|
this.addFormData.partNo || '', |
|
|
|
|
|
'' |
|
|
|
|
|
) |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
// 查询数据 |
|
|
// 查询数据 |
|
|
getMainData () { |
|
|
getMainData () { |
|
|
this.searchData.limit = this.pageSize |
|
|
this.searchData.limit = this.pageSize |
|
|
@ -1204,7 +1287,6 @@ export default { |
|
|
requireReplyDate: '', |
|
|
requireReplyDate: '', |
|
|
supplierNo: '', |
|
|
supplierNo: '', |
|
|
supplierName: '', |
|
|
supplierName: '', |
|
|
supplierResponsible: '', |
|
|
|
|
|
plant: '', |
|
|
plant: '', |
|
|
claimNo: '', |
|
|
claimNo: '', |
|
|
productCategory: '', |
|
|
productCategory: '', |
|
|
@ -1249,7 +1331,6 @@ export default { |
|
|
requireReplyDate: this.addFormData.requireReplyDate, |
|
|
requireReplyDate: this.addFormData.requireReplyDate, |
|
|
supplierNo: this.addFormData.supplierNo, |
|
|
supplierNo: this.addFormData.supplierNo, |
|
|
supplierName: this.addFormData.supplierName, |
|
|
supplierName: this.addFormData.supplierName, |
|
|
supplierResponsible: this.addFormData.supplierResponsible, |
|
|
|
|
|
plant: this.addFormData.plant, |
|
|
plant: this.addFormData.plant, |
|
|
claimNo: this.addFormData.claimNo, |
|
|
claimNo: this.addFormData.claimNo, |
|
|
productCategory: this.addFormData.productCategory, |
|
|
productCategory: this.addFormData.productCategory, |
|
|
@ -1262,6 +1343,7 @@ export default { |
|
|
issueCategory: this.addFormData.issueCategory, |
|
|
issueCategory: this.addFormData.issueCategory, |
|
|
issueSummary: this.addFormData.issueSummary, |
|
|
issueSummary: this.addFormData.issueSummary, |
|
|
issueDescription: this.addFormData.issueDescription, |
|
|
issueDescription: this.addFormData.issueDescription, |
|
|
|
|
|
supplierResponsible: this.addFormData.supplierResponsible, |
|
|
inspector: this.addFormData.inspector, |
|
|
inspector: this.addFormData.inspector, |
|
|
levelNo: this.addFormData.levelNo, |
|
|
levelNo: this.addFormData.levelNo, |
|
|
mode1: this.addFormData.mode1, |
|
|
mode1: this.addFormData.mode1, |
|
|
@ -1303,7 +1385,6 @@ export default { |
|
|
issueNo: this.editFormData.issueNo, |
|
|
issueNo: this.editFormData.issueNo, |
|
|
issueDate: this.editFormData.issueDate, |
|
|
issueDate: this.editFormData.issueDate, |
|
|
requireReplyDate: this.editFormData.requireReplyDate, |
|
|
requireReplyDate: this.editFormData.requireReplyDate, |
|
|
supplierResponsible: this.editFormData.supplierResponsible, |
|
|
|
|
|
plant: this.editFormData.plant, |
|
|
plant: this.editFormData.plant, |
|
|
claimNo: this.editFormData.claimNo, |
|
|
claimNo: this.editFormData.claimNo, |
|
|
productCategory: this.editFormData.productCategory, |
|
|
productCategory: this.editFormData.productCategory, |
|
|
@ -1321,7 +1402,8 @@ export default { |
|
|
mode1: this.editFormData.mode1, |
|
|
mode1: this.editFormData.mode1, |
|
|
mode2: this.editFormData.mode2, |
|
|
mode2: this.editFormData.mode2, |
|
|
mode3: this.editFormData.mode3, |
|
|
mode3: this.editFormData.mode3, |
|
|
status: this.editFormData.status |
|
|
|
|
|
|
|
|
status: this.editFormData.status, |
|
|
|
|
|
supplierResponsible: this.editFormData.supplierResponsible |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
console.log('更新数据:', submitData) |
|
|
console.log('更新数据:', submitData) |
|
|
@ -1349,14 +1431,14 @@ export default { |
|
|
// 编辑质量问题 |
|
|
// 编辑质量问题 |
|
|
editQualityIssue (row) { |
|
|
editQualityIssue (row) { |
|
|
this.editDialogVisible = true |
|
|
this.editDialogVisible = true |
|
|
// 自动填充表格中的数据 |
|
|
|
|
|
this.editFormData = { |
|
|
this.editFormData = { |
|
|
issueNo: row.issueNo || '', |
|
|
|
|
|
|
|
|
...row, // 展开所有字段,确保不缺字段 |
|
|
|
|
|
site: row.site || this.$store.state.user.site, |
|
|
issueDate: row.issueDate || '', |
|
|
issueDate: row.issueDate || '', |
|
|
requireReplyDate: row.requireReplyDate || '', |
|
|
requireReplyDate: row.requireReplyDate || '', |
|
|
supplierNo: row.supplierNo || '', |
|
|
supplierNo: row.supplierNo || '', |
|
|
supplierName: row.supplierName || '', |
|
|
supplierName: row.supplierName || '', |
|
|
supplierResponsible: row.supplierResponsible || '', |
|
|
|
|
|
|
|
|
supplierResponsible: row.supplierResponsible || '', // 确保有 |
|
|
plant: row.plant || '', |
|
|
plant: row.plant || '', |
|
|
claimNo: row.claimNo || '', |
|
|
claimNo: row.claimNo || '', |
|
|
productCategory: row.productCategory || '', |
|
|
productCategory: row.productCategory || '', |
|
|
@ -1374,10 +1456,8 @@ export default { |
|
|
mode1: row.mode1 || '', |
|
|
mode1: row.mode1 || '', |
|
|
mode2: row.mode2 || '', |
|
|
mode2: row.mode2 || '', |
|
|
mode3: row.mode3 || '', |
|
|
mode3: row.mode3 || '', |
|
|
status: row.status || '', |
|
|
|
|
|
site: row.site || this.$store.state.user.site |
|
|
|
|
|
|
|
|
status: row.status || '' |
|
|
} |
|
|
} |
|
|
// 清除验证状态 |
|
|
|
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
if (this.$refs.editFormData) { |
|
|
if (this.$refs.editFormData) { |
|
|
this.$refs.editFormData.clearValidate() |
|
|
this.$refs.editFormData.clearValidate() |
|
|
@ -1777,12 +1857,12 @@ export default { |
|
|
text-align: center; |
|
|
text-align: center; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/* 回复弹窗样式 */ |
|
|
|
|
|
|
|
|
/* 回复弹窗样式 - 取消灰色背景 */ |
|
|
.reply-dialog-info { |
|
|
.reply-dialog-info { |
|
|
margin-bottom: 20px; |
|
|
margin-bottom: 20px; |
|
|
padding: 15px; |
|
|
|
|
|
background-color: #f5f7fa; |
|
|
|
|
|
border-radius: 4px; |
|
|
|
|
|
|
|
|
padding: 0; |
|
|
|
|
|
background: transparent; |
|
|
|
|
|
border-radius: 0; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.reply-dialog-info .info-item { |
|
|
.reply-dialog-info .info-item { |
|
|
@ -1808,29 +1888,12 @@ export default { |
|
|
flex: 1; |
|
|
flex: 1; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.reply-dialog-form /deep/ .el-form-item { |
|
|
|
|
|
margin-bottom: 15px; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.reply-dialog-form /deep/ .el-form-item__label { |
|
|
|
|
|
font-size: 13px; |
|
|
|
|
|
color: #606266; |
|
|
|
|
|
font-weight: 500; |
|
|
|
|
|
padding-bottom: 5px; |
|
|
|
|
|
line-height: 1; |
|
|
|
|
|
height: auto; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.reply-dialog-form /deep/ .el-form-item__content { |
|
|
|
|
|
line-height: normal; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* 赔偿弹窗样式 */ |
|
|
/* 赔偿弹窗样式 */ |
|
|
.compensation-dialog-info { |
|
|
.compensation-dialog-info { |
|
|
margin-bottom: 20px; |
|
|
margin-bottom: 20px; |
|
|
padding: 15px; |
|
|
|
|
|
background-color: #f5f7fa; |
|
|
|
|
|
border-radius: 4px; |
|
|
|
|
|
|
|
|
padding: 0; |
|
|
|
|
|
background: transparent; |
|
|
|
|
|
border-radius: 0; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.compensation-dialog-info .info-item { |
|
|
.compensation-dialog-info .info-item { |
|
|
@ -1872,4 +1935,22 @@ export default { |
|
|
.compensation-dialog-form /deep/ .el-form-item__content { |
|
|
.compensation-dialog-form /deep/ .el-form-item__content { |
|
|
line-height: normal; |
|
|
line-height: normal; |
|
|
} |
|
|
} |
|
|
|
|
|
.click-label { |
|
|
|
|
|
color: #2ec7c9; |
|
|
|
|
|
cursor: pointer; |
|
|
|
|
|
font-weight: 500; |
|
|
|
|
|
} |
|
|
|
|
|
.click-label:hover { |
|
|
|
|
|
text-decoration: underline; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.choose-label { |
|
|
|
|
|
color: #2ec7c9; |
|
|
|
|
|
cursor: pointer; |
|
|
|
|
|
font-weight: 500; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.choose-label:hover { |
|
|
|
|
|
text-decoration: underline; |
|
|
|
|
|
} |
|
|
</style> |
|
|
</style> |