|
|
|
@ -69,16 +69,16 @@
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button
|
|
|
|
|
type="warning"
|
|
|
|
|
plain
|
|
|
|
|
icon="el-icon-download"
|
|
|
|
|
size="mini"
|
|
|
|
|
@click="handleExport"
|
|
|
|
|
>导出
|
|
|
|
|
</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button
|
|
|
|
|
type="warning"
|
|
|
|
|
plain
|
|
|
|
|
icon="el-icon-download"
|
|
|
|
|
size="mini"
|
|
|
|
|
@click="handleExport"
|
|
|
|
|
>导出
|
|
|
|
|
</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
@ -103,6 +103,13 @@
|
|
|
|
|
@click="handleOrderDetails(scope.row)"
|
|
|
|
|
>检验详情
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-d-arrow-right"
|
|
|
|
|
@click="findInspectInfo(scope.row)"
|
|
|
|
|
>质检材料
|
|
|
|
|
</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
@ -134,12 +141,12 @@
|
|
|
|
|
<el-table :data="reportDetailList" :row-class-name="rowDetailIndex"
|
|
|
|
|
ref="reportDetailRef"
|
|
|
|
|
>
|
|
|
|
|
<!-- <el-table-column type="selection" width="50" align="center"/>-->
|
|
|
|
|
<!-- <el-table-column type="selection" width="50" align="center"/>-->
|
|
|
|
|
<el-table-column label="序号" prop="index" width="150">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="质检工位" prop="PRODUCT_LINE_NAME" width="150">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="处理措施" prop="TREATMENT_MEASURE" width="150">
|
|
|
|
|
<el-table-column label="质检结果" prop="TREATMENT_MEASURE" width="150">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<dict-tag :options="dict.type.treatment_measures" :value="scope.row.TREATMENT_MEASURE"/>
|
|
|
|
|
</template>
|
|
|
|
@ -163,7 +170,6 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
@ -175,7 +181,7 @@ import { findProductLineList } from '@//api/base/productLine'
|
|
|
|
|
import { parseTime } from '@//utils/ruoyi'
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: 'ReportInfo',
|
|
|
|
|
name: 'ProductTraceabilityReport',
|
|
|
|
|
dicts: ['is_flag', 'treatment_measures'],
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
@ -300,12 +306,12 @@ export default {
|
|
|
|
|
/** 查看明细 */
|
|
|
|
|
handleOrderDetails(row) {
|
|
|
|
|
// this.$tab.openPage("SAP订单信息","/order/orderInfo" , {ORDER_CODE: row.ORDER_CODE})
|
|
|
|
|
if (row.BOX_CODE == null){
|
|
|
|
|
if (row.BOX_CODE == null) {
|
|
|
|
|
this.$modal.msgError('该产品无MES条码!')
|
|
|
|
|
return;
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
this.form.BOX_CODE= row.BOX_CODE
|
|
|
|
|
this.form.ORDER_CODE= row.ORDER_CODE
|
|
|
|
|
this.form.BOX_CODE = row.BOX_CODE
|
|
|
|
|
this.form.ORDER_CODE = row.ORDER_CODE
|
|
|
|
|
productTraceabilityDetailList({ BOX_CODE: row.BOX_CODE }).then(response => {
|
|
|
|
|
this.reportDetailList = response.data
|
|
|
|
|
this.open = true
|
|
|
|
@ -313,7 +319,11 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/** 查看质检材料 */
|
|
|
|
|
findInspectInfo: function(row) {
|
|
|
|
|
const orderCode = row.ORDER_CODE;
|
|
|
|
|
this.$router.push("/report/quality-material/index/" + orderCode);
|
|
|
|
|
},
|
|
|
|
|
// 多选框选中数据
|
|
|
|
|
handleSelectionChange(selection) {
|
|
|
|
|
this.ids = selection.map(item => item.objId)
|
|
|
|
|