|
|
@@ -44,6 +44,15 @@
|
|
|
>{{ row.assigneeCode }}
|
|
|
</el-link>
|
|
|
</template>
|
|
|
+
|
|
|
+ <template v-slot:code="{ row }" v-if="tabValue == '4'">
|
|
|
+ <el-link
|
|
|
+ :underline="false"
|
|
|
+ type="primary"
|
|
|
+ @click="detailsNC(row, 'detail')"
|
|
|
+ >{{ row.code }}
|
|
|
+ </el-link>
|
|
|
+ </template>
|
|
|
<template v-slot:workOrderCode="{ row }">
|
|
|
<el-link
|
|
|
:underline="false"
|
|
|
@@ -70,16 +79,42 @@
|
|
|
type="primary"
|
|
|
@click="details('report', row)"
|
|
|
v-if="
|
|
|
- (row.disposalStatus == '1' || tabValue == '2') &&
|
|
|
- row.totalFirstArticleDualInspectionStatus == 2
|
|
|
+ (row.disposalStatus == '1' &&
|
|
|
+ isInspection == '0' &&
|
|
|
+ tabValue != '4') ||
|
|
|
+ (row.totalFirstArticleDualInspectionStatus == 2 &&
|
|
|
+ isInspection == '1' &&
|
|
|
+ tabValue != '4')
|
|
|
"
|
|
|
>报工
|
|
|
</el-link>
|
|
|
+
|
|
|
+ <el-link
|
|
|
+ :underline="false"
|
|
|
+ type="primary"
|
|
|
+ @click="details('report', row)"
|
|
|
+ v-if="tabValue == '4' && !row.status"
|
|
|
+ >报工
|
|
|
+ </el-link>
|
|
|
+ <!-- <el-link
|
|
|
+ :underline="false"
|
|
|
+ type="primary"
|
|
|
+ @click="details('report', row)"
|
|
|
+ v-if="
|
|
|
+ ((row.disposalStatus == '1' || tabValue == '2') &&
|
|
|
+ row.totalFirstArticleDualInspectionStatus == 2) ||
|
|
|
+ (!row.totalFirstArticleDualInspectionStatus &&
|
|
|
+ row.totalFirstArticleDualInspectionStatus != 0 &&
|
|
|
+ tabValue == '4' &&
|
|
|
+ row.status.code != 5)
|
|
|
+ "
|
|
|
+ >报工
|
|
|
+ </el-link> -->
|
|
|
<el-link
|
|
|
:underline="false"
|
|
|
type="primary"
|
|
|
@click="viewRecords(row.id)"
|
|
|
- v-if="row.disposalStatus == '1' || tabValue == '2'"
|
|
|
+ v-if="row.disposalStatus == '1'"
|
|
|
>报工记录
|
|
|
</el-link>
|
|
|
|
|
|
@@ -92,8 +127,9 @@
|
|
|
type="primary"
|
|
|
@click="selfRequest(row)"
|
|
|
v-if="
|
|
|
- (row.disposalStatus == '1' || tabValue == '2') &&
|
|
|
- row.hasFirstArticleDualInspection == 1
|
|
|
+ row.disposalStatus == '1' &&
|
|
|
+ tabValue != '4' &&
|
|
|
+ isInspection == '1'
|
|
|
"
|
|
|
>首件两检
|
|
|
</el-link>
|
|
|
@@ -105,7 +141,8 @@
|
|
|
v-if="
|
|
|
row.disposalStatus != '1' &&
|
|
|
row.disposalStatus != '2' &&
|
|
|
- tabValue != '2'
|
|
|
+ tabValue != '2' &&
|
|
|
+ tabValue != '4'
|
|
|
"
|
|
|
>
|
|
|
<el-button slot="reference" type="text">接收</el-button>
|
|
|
@@ -118,7 +155,8 @@
|
|
|
v-if="
|
|
|
row.disposalStatus != '1' &&
|
|
|
row.disposalStatus != '2' &&
|
|
|
- tabValue != '2'
|
|
|
+ tabValue != '2' &&
|
|
|
+ tabValue != '4'
|
|
|
"
|
|
|
>
|
|
|
<el-button slot="reference" type="text">拒绝</el-button>
|
|
|
@@ -178,6 +216,8 @@
|
|
|
</el-dialog>
|
|
|
|
|
|
<qualityInspection ref="qualityInspectionRefs"></qualityInspection>
|
|
|
+
|
|
|
+ <nc-report ref="ncReportRef" @refreshList="reload"></nc-report>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -198,13 +238,16 @@
|
|
|
} from '@/api/workOrderList';
|
|
|
import { revokeWork } from '@/api/manufacture/spreadWorkOrder';
|
|
|
import qualityInspection from '@/views/produce/components/qualityInspection/index.vue';
|
|
|
+ import ncReport from './components/ncReport.vue';
|
|
|
+ import { parameterGetByCode } from '@/api/system/dictionary-data';
|
|
|
|
|
|
export default {
|
|
|
components: {
|
|
|
TaskSearch,
|
|
|
Ddtails,
|
|
|
modifyDialog,
|
|
|
- qualityInspection
|
|
|
+ qualityInspection,
|
|
|
+ ncReport
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -221,7 +264,8 @@
|
|
|
},
|
|
|
dialogFormVisible: false,
|
|
|
teamList: [],
|
|
|
- tableHeight: 'calc(100vh - 380px)'
|
|
|
+ tableHeight: 'calc(100vh - 380px)',
|
|
|
+ isInspection: '0'
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -554,13 +598,6 @@
|
|
|
showOverflowTooltip: true,
|
|
|
width: 200
|
|
|
},
|
|
|
- {
|
|
|
- prop: 'productionCodes',
|
|
|
- label: '生产编号',
|
|
|
- align: 'center',
|
|
|
- showOverflowTooltip: true,
|
|
|
- width: 170
|
|
|
- },
|
|
|
{
|
|
|
prop: 'brandNum',
|
|
|
label: '牌号',
|
|
|
@@ -568,13 +605,7 @@
|
|
|
showOverflowTooltip: true,
|
|
|
width: 170
|
|
|
},
|
|
|
- {
|
|
|
- prop: 'batchNo',
|
|
|
- label: '批次号',
|
|
|
- align: 'center',
|
|
|
- width: 100,
|
|
|
- showOverflowTooltip: true
|
|
|
- },
|
|
|
+
|
|
|
{
|
|
|
prop: 'modelType',
|
|
|
label: '型号',
|
|
|
@@ -589,50 +620,7 @@
|
|
|
width: 200,
|
|
|
showOverflowTooltip: true
|
|
|
},
|
|
|
- {
|
|
|
- prop: 'quantity',
|
|
|
- label: '任务数量',
|
|
|
- align: 'center',
|
|
|
- showOverflowTooltip: true,
|
|
|
- width: 110
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'weight',
|
|
|
- label: '任务重量(kg)',
|
|
|
- align: 'center',
|
|
|
- showOverflowTooltip: true,
|
|
|
- width: 110
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'planStartTime',
|
|
|
- label: '计划开始时间',
|
|
|
- align: 'center',
|
|
|
- showOverflowTooltip: true,
|
|
|
- width: 180
|
|
|
- },
|
|
|
-
|
|
|
- {
|
|
|
- prop: 'planCompleteTime',
|
|
|
- label: '计划结束时间',
|
|
|
- align: 'center',
|
|
|
- showOverflowTooltip: true,
|
|
|
- width: 180
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'startTime',
|
|
|
- label: '任务开始时间',
|
|
|
- align: 'center',
|
|
|
- showOverflowTooltip: true,
|
|
|
- width: 180
|
|
|
- },
|
|
|
|
|
|
- {
|
|
|
- prop: 'endTime',
|
|
|
- label: '任务结束时间',
|
|
|
- align: 'center',
|
|
|
- showOverflowTooltip: true,
|
|
|
- width: 180
|
|
|
- },
|
|
|
{
|
|
|
label: '实际开始时间',
|
|
|
prop: 'realStartTime',
|
|
|
@@ -647,20 +635,7 @@
|
|
|
align: 'center',
|
|
|
showOverflowTooltip: true
|
|
|
},
|
|
|
- {
|
|
|
- label: '工时',
|
|
|
- prop: 'durationText',
|
|
|
- width: 150,
|
|
|
- align: 'center',
|
|
|
- showOverflowTooltip: true
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'firstTaskName',
|
|
|
- label: '首工序',
|
|
|
- align: 'center',
|
|
|
- width: 180,
|
|
|
- showOverflowTooltip: true
|
|
|
- },
|
|
|
+
|
|
|
{
|
|
|
prop: 'createTime',
|
|
|
label: '创建时间',
|
|
|
@@ -668,48 +643,17 @@
|
|
|
showOverflowTooltip: true,
|
|
|
width: 180
|
|
|
},
|
|
|
- {
|
|
|
- prop: 'statusText',
|
|
|
- label: '状态',
|
|
|
- align: 'center',
|
|
|
- // formatter: (row) => {
|
|
|
- // const obj = this.statusOpt.find((i) => i.value == row.status);
|
|
|
- // return obj && obj.label;
|
|
|
- // },
|
|
|
- width: 120
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'disposalStatus',
|
|
|
- label: '任务接收状态',
|
|
|
- align: 'center',
|
|
|
- slot: 'disposalStatus',
|
|
|
- width: 120
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'customerName',
|
|
|
- label: '客户名称',
|
|
|
- align: 'center',
|
|
|
- showOverflowTooltip: true,
|
|
|
- width: 180
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'serialNo',
|
|
|
- label: '客户代号',
|
|
|
- align: 'center',
|
|
|
- showOverflowTooltip: true,
|
|
|
- width: 180
|
|
|
- },
|
|
|
|
|
|
{
|
|
|
- prop: 'simpleName',
|
|
|
- label: '客户简称',
|
|
|
+ prop: 'remark',
|
|
|
+ label: '订单备注',
|
|
|
align: 'center',
|
|
|
showOverflowTooltip: true,
|
|
|
width: 180
|
|
|
},
|
|
|
{
|
|
|
- prop: 'remark',
|
|
|
- label: '备注',
|
|
|
+ prop: 'reportRemark',
|
|
|
+ label: '报备注',
|
|
|
align: 'center',
|
|
|
showOverflowTooltip: true,
|
|
|
width: 180
|
|
|
@@ -728,18 +672,7 @@
|
|
|
},
|
|
|
created() {},
|
|
|
mounted() {
|
|
|
- // if (this.$hasPermission('mes:taskreport:allorder')) {
|
|
|
- // this.tabValue = '2';
|
|
|
- // }
|
|
|
- // if (this.$hasPermission('mes:taskreport:myorder')) {
|
|
|
- // this.tabValue = '1';
|
|
|
- // }
|
|
|
- // if (
|
|
|
- // !this.$hasPermission('mes:taskreport:myorder') &&
|
|
|
- // !this.$hasPermission('mes:taskreport:allorder')
|
|
|
- // ) {
|
|
|
- // this.tabValue = '';
|
|
|
- // }
|
|
|
+ this.getInspections();
|
|
|
},
|
|
|
methods: {
|
|
|
handleTabClick(e) {
|
|
|
@@ -811,6 +744,14 @@
|
|
|
// if()
|
|
|
},
|
|
|
|
|
|
+ async getInspections() {
|
|
|
+ await parameterGetByCode({
|
|
|
+ code: 'first_article_dual_inspection_for_report'
|
|
|
+ }).then((res) => {
|
|
|
+ this.isInspection = res.value ? res.value : '0';
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
async chooseUser() {
|
|
|
if (!this.form.userId) {
|
|
|
return this.$message.warning('请选择转派人员');
|
|
|
@@ -861,6 +802,10 @@
|
|
|
this.$refs.selfReportingRef.open(row, type);
|
|
|
},
|
|
|
|
|
|
+ detailsNC(item, type) {
|
|
|
+ this.$refs.ncReportRef.open(item, type);
|
|
|
+ },
|
|
|
+
|
|
|
// async receiveTask(item) {
|
|
|
// await taskManagement({
|
|
|
// id: item.id,
|
|
|
@@ -943,7 +888,29 @@
|
|
|
reportQuantity: row.reportQuantity,
|
|
|
lossQuantity: row.lossQuantity
|
|
|
};
|
|
|
- this.$refs.detailsRef.open(type, currentRow, form);
|
|
|
+ if (this.tabValue == '4') {
|
|
|
+ const data = {
|
|
|
+ realStartTime: '',
|
|
|
+ realEndTime: '',
|
|
|
+ brandNum: row.brandNum,
|
|
|
+ categoryName: row.categoryName,
|
|
|
+ categoryCode: row.categoryCode,
|
|
|
+ code: row.code,
|
|
|
+ productionPlanCode: row.productionPlanCode,
|
|
|
+ produceRoutingName: row.produceRoutingName,
|
|
|
+ taskName: row.taskName,
|
|
|
+ modelType: row.modelType,
|
|
|
+ specification: row.specification,
|
|
|
+ fileParam: [],
|
|
|
+ reportRemark: row.reportRemark,
|
|
|
+ id: row.id,
|
|
|
+ sourceTaskId: row.sourceTaskId
|
|
|
+ };
|
|
|
+
|
|
|
+ this.$refs.ncReportRef.open(data);
|
|
|
+ } else {
|
|
|
+ this.$refs.detailsRef.open(type, currentRow, form);
|
|
|
+ }
|
|
|
},
|
|
|
viewRecords(apsAssigneeId) {
|
|
|
listUpdateRealTimeRecord(apsAssigneeId)
|