|
@@ -43,9 +43,17 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<template v-slot:sourceCode="{ row }">
|
|
<template v-slot:sourceCode="{ row }">
|
|
|
- <div>{{
|
|
|
|
|
- row.qualityPlanCode ? row.qualityPlanCode : row.workOrderCode
|
|
|
|
|
- }}</div>
|
|
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <el-link
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ :underline="false"
|
|
|
|
|
+ @click="openWorkDetails(row)"
|
|
|
|
|
+ >
|
|
|
|
|
+ {{
|
|
|
|
|
+ row.qualityPlanCode ? row.qualityPlanCode : row.workOrderCode
|
|
|
|
|
+ }}</el-link
|
|
|
|
|
+ >
|
|
|
|
|
+ </div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<template v-slot:files="scope">
|
|
<template v-slot:files="scope">
|
|
@@ -176,11 +184,12 @@
|
|
|
@click.native="generateReportApproval(row, item)"
|
|
@click.native="generateReportApproval(row, item)"
|
|
|
>{{ item.name
|
|
>{{ item.name
|
|
|
}}{{
|
|
}}{{
|
|
|
- '('+
|
|
|
|
|
|
|
+ '(' +
|
|
|
item.versionSymbol +
|
|
item.versionSymbol +
|
|
|
item.bigVersion +
|
|
item.bigVersion +
|
|
|
item.versionMark +
|
|
item.versionMark +
|
|
|
- item.smallVersion+')'
|
|
|
|
|
|
|
+ item.smallVersion +
|
|
|
|
|
+ ')'
|
|
|
}}</el-dropdown-item
|
|
}}</el-dropdown-item
|
|
|
>
|
|
>
|
|
|
</el-dropdown-menu>
|
|
</el-dropdown-menu>
|
|
@@ -230,8 +239,8 @@
|
|
|
<template v-slot:templateList="{ row }">
|
|
<template v-slot:templateList="{ row }">
|
|
|
<div style="width: 250px; max-height: 60px; overflow: auto">
|
|
<div style="width: 250px; max-height: 60px; overflow: auto">
|
|
|
<el-tag
|
|
<el-tag
|
|
|
- v-for="item in row.templateList"
|
|
|
|
|
- :key="item.inspectionName"
|
|
|
|
|
|
|
+ v-for="(item, index) in row.templateList"
|
|
|
|
|
+ :key="item.inspectionName + index"
|
|
|
:type="
|
|
:type="
|
|
|
inspectionProjectStatus.find(
|
|
inspectionProjectStatus.find(
|
|
|
(ProjectStatus) => ProjectStatus.value == item.status
|
|
(ProjectStatus) => ProjectStatus.value == item.status
|
|
@@ -293,6 +302,7 @@
|
|
|
:item="currentItem"
|
|
:item="currentItem"
|
|
|
@reload="search"
|
|
@reload="search"
|
|
|
></component>
|
|
></component>
|
|
|
|
|
+ <mesWorkOrder ref="mesWorkOrderRef"></mesWorkOrder>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
@@ -301,6 +311,7 @@
|
|
|
import addSample from '@/views/sample/sampleRecord/components/addSample.vue';
|
|
import addSample from '@/views/sample/sampleRecord/components/addSample.vue';
|
|
|
import jimureportBrowse from '@/components/jimureport/browseModal.vue';
|
|
import jimureportBrowse from '@/components/jimureport/browseModal.vue';
|
|
|
import Transfer from './components/transfer.vue';
|
|
import Transfer from './components/transfer.vue';
|
|
|
|
|
+ import mesWorkOrder from './components/mesWorkOrder.vue';
|
|
|
import processSubmitDialog from '@/components/processSubmitDialog/processSubmitDialog.vue';
|
|
import processSubmitDialog from '@/components/processSubmitDialog/processSubmitDialog.vue';
|
|
|
import inspectionProjectTaskSend from '@/views/inspectionProjectTask/components/inspectionProjectTaskSend.vue';
|
|
import inspectionProjectTaskSend from '@/views/inspectionProjectTask/components/inspectionProjectTaskSend.vue';
|
|
|
import {
|
|
import {
|
|
@@ -313,6 +324,8 @@
|
|
|
sampleCollection,
|
|
sampleCollection,
|
|
|
checkByQualityWorkOrderId
|
|
checkByQualityWorkOrderId
|
|
|
} from '@/api/inspectionWork';
|
|
} from '@/api/inspectionWork';
|
|
|
|
|
+ // import { getWorkorderById } from '@/api/inspectionWork';
|
|
|
|
|
+
|
|
|
import { queryTodo } from '@/api/bpm/task';
|
|
import { queryTodo } from '@/api/bpm/task';
|
|
|
import dictMixins from '@/mixins/dictMixins';
|
|
import dictMixins from '@/mixins/dictMixins';
|
|
|
import { getFile } from '@/api/system/file';
|
|
import { getFile } from '@/api/system/file';
|
|
@@ -337,7 +350,8 @@
|
|
|
addSample,
|
|
addSample,
|
|
|
inspectionProjectTaskSend,
|
|
inspectionProjectTaskSend,
|
|
|
inspection_report1,
|
|
inspection_report1,
|
|
|
- inspection_report2
|
|
|
|
|
|
|
+ inspection_report2,
|
|
|
|
|
+ mesWorkOrder
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
@@ -458,6 +472,20 @@
|
|
|
width: 120,
|
|
width: 120,
|
|
|
showOverflowTooltip: true
|
|
showOverflowTooltip: true
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: 'inspectionTeamName',
|
|
|
|
|
+ label: '送检班组',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ width: 120,
|
|
|
|
|
+ showOverflowTooltip: true
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: 'createUserName',
|
|
|
|
|
+ label: '送检人',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ width: 120,
|
|
|
|
|
+ showOverflowTooltip: true
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
prop: 'specification',
|
|
prop: 'specification',
|
|
|
label: '规格',
|
|
label: '规格',
|
|
@@ -590,8 +618,8 @@
|
|
|
},
|
|
},
|
|
|
processSubmitDialogFlag: false,
|
|
processSubmitDialogFlag: false,
|
|
|
rowData: {},
|
|
rowData: {},
|
|
|
- typeList: [], //类型列表
|
|
|
|
|
- qualityMode: [], //取样类型
|
|
|
|
|
|
|
+ // typeList: [], //类型列表
|
|
|
|
|
+ // qualityMode: [], //取样类型
|
|
|
// 状态(0未报工;1已报工;2已关闭;3待取样)
|
|
// 状态(0未报工;1已报工;2已关闭;3待取样)
|
|
|
statusList: [
|
|
statusList: [
|
|
|
{
|
|
{
|
|
@@ -627,8 +655,8 @@
|
|
|
this.requestDict('取样类型');
|
|
this.requestDict('取样类型');
|
|
|
this.getCode();
|
|
this.getCode();
|
|
|
this.getReportTemplateList();
|
|
this.getReportTemplateList();
|
|
|
- this.getTnspectionPlanType();
|
|
|
|
|
- this.getQualityMethodCode();
|
|
|
|
|
|
|
+ // this.getTnspectionPlanType();
|
|
|
|
|
+ // this.getQualityMethodCode();
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
|
seekList() {
|
|
seekList() {
|
|
@@ -897,6 +925,12 @@
|
|
|
query: { id, path: '/inspectionWork', name: '工单' }
|
|
query: { id, path: '/inspectionWork', name: '工单' }
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
|
|
+ openWorkDetails(row) {
|
|
|
|
|
+ if (row.qualityPlanCode) {
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$refs.mesWorkOrderRef.open(row);
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
downloadFile(file) {
|
|
downloadFile(file) {
|
|
|
getFile({ objectName: file.storePath }, file.name);
|
|
getFile({ objectName: file.storePath }, file.name);
|
|
|
},
|
|
},
|
|
@@ -927,26 +961,26 @@
|
|
|
await closeWork(row);
|
|
await closeWork(row);
|
|
|
this.done();
|
|
this.done();
|
|
|
},
|
|
},
|
|
|
- async getTnspectionPlanType() {
|
|
|
|
|
- let res = await getByCode('inspection_plan_type');
|
|
|
|
|
- if (res?.code == 0) {
|
|
|
|
|
- let list = res.data.map((item) => {
|
|
|
|
|
- let key = Object.keys(item)[0];
|
|
|
|
|
- return { value: key, label: item[key] };
|
|
|
|
|
- });
|
|
|
|
|
- this.typeList = list;
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
- async getQualityMethodCode() {
|
|
|
|
|
- let res = await getByCode('quality_method_code');
|
|
|
|
|
- if (res?.code == 0) {
|
|
|
|
|
- let list = res.data.map((item) => {
|
|
|
|
|
- let key = Object.keys(item)[0];
|
|
|
|
|
- return { value: key, label: item[key] };
|
|
|
|
|
- });
|
|
|
|
|
- this.qualityMode = list;
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ // async getTnspectionPlanType() {
|
|
|
|
|
+ // let res = await getByCode('inspection_plan_type');
|
|
|
|
|
+ // if (res?.code == 0) {
|
|
|
|
|
+ // let list = res.data.map((item) => {
|
|
|
|
|
+ // let key = Object.keys(item)[0];
|
|
|
|
|
+ // return { value: key, label: item[key] };
|
|
|
|
|
+ // });
|
|
|
|
|
+ // this.typeList = list;
|
|
|
|
|
+ // }
|
|
|
|
|
+ // },
|
|
|
|
|
+ // async getQualityMethodCode() {
|
|
|
|
|
+ // let res = await getByCode('quality_method_code');
|
|
|
|
|
+ // if (res?.code == 0) {
|
|
|
|
|
+ // let list = res.data.map((item) => {
|
|
|
|
|
+ // let key = Object.keys(item)[0];
|
|
|
|
|
+ // return { value: key, label: item[key] };
|
|
|
|
|
+ // });
|
|
|
|
|
+ // this.qualityMode = list;
|
|
|
|
|
+ // }
|
|
|
|
|
+ // },
|
|
|
async openTransfer(id) {
|
|
async openTransfer(id) {
|
|
|
const code = await verificationQualityInspector(id);
|
|
const code = await verificationQualityInspector(id);
|
|
|
if (code == '-1') {
|
|
if (code == '-1') {
|