|
|
@ -103,6 +103,13 @@
|
|
|
|
@click="handleOrderDetails(scope.row)"
|
|
|
|
@click="handleOrderDetails(scope.row)"
|
|
|
|
>检验详情
|
|
|
|
>检验详情
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
|
|
type="text"
|
|
|
|
|
|
|
|
icon="el-icon-d-arrow-right"
|
|
|
|
|
|
|
|
@click="findInspectInfo(scope.row)"
|
|
|
|
|
|
|
|
>质检材料
|
|
|
|
|
|
|
|
</el-button>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table>
|
|
|
|
</el-table>
|
|
|
@ -134,12 +141,12 @@
|
|
|
|
<el-table :data="reportDetailList" :row-class-name="rowDetailIndex"
|
|
|
|
<el-table :data="reportDetailList" :row-class-name="rowDetailIndex"
|
|
|
|
ref="reportDetailRef"
|
|
|
|
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 label="序号" prop="index" width="150">
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="质检工位" prop="PRODUCT_LINE_NAME" width="150">
|
|
|
|
<el-table-column label="质检工位" prop="PRODUCT_LINE_NAME" width="150">
|
|
|
|
</el-table-column>
|
|
|
|
</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">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<dict-tag :options="dict.type.treatment_measures" :value="scope.row.TREATMENT_MEASURE"/>
|
|
|
|
<dict-tag :options="dict.type.treatment_measures" :value="scope.row.TREATMENT_MEASURE"/>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
@ -163,7 +170,6 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
@ -175,7 +181,7 @@ import { findProductLineList } from '@//api/base/productLine'
|
|
|
|
import { parseTime } from '@//utils/ruoyi'
|
|
|
|
import { parseTime } from '@//utils/ruoyi'
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: 'ReportInfo',
|
|
|
|
name: 'ProductTraceabilityReport',
|
|
|
|
dicts: ['is_flag', 'treatment_measures'],
|
|
|
|
dicts: ['is_flag', 'treatment_measures'],
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
@ -300,12 +306,12 @@ export default {
|
|
|
|
/** 查看明细 */
|
|
|
|
/** 查看明细 */
|
|
|
|
handleOrderDetails(row) {
|
|
|
|
handleOrderDetails(row) {
|
|
|
|
// this.$tab.openPage("SAP订单信息","/order/orderInfo" , {ORDER_CODE: row.ORDER_CODE})
|
|
|
|
// 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条码!')
|
|
|
|
this.$modal.msgError('该产品无MES条码!')
|
|
|
|
return;
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.form.BOX_CODE= row.BOX_CODE
|
|
|
|
this.form.BOX_CODE = row.BOX_CODE
|
|
|
|
this.form.ORDER_CODE= row.ORDER_CODE
|
|
|
|
this.form.ORDER_CODE = row.ORDER_CODE
|
|
|
|
productTraceabilityDetailList({ BOX_CODE: row.BOX_CODE }).then(response => {
|
|
|
|
productTraceabilityDetailList({ BOX_CODE: row.BOX_CODE }).then(response => {
|
|
|
|
this.reportDetailList = response.data
|
|
|
|
this.reportDetailList = response.data
|
|
|
|
this.open = true
|
|
|
|
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) {
|
|
|
|
handleSelectionChange(selection) {
|
|
|
|
this.ids = selection.map(item => item.objId)
|
|
|
|
this.ids = selection.map(item => item.objId)
|
|
|
|