Browse Source

修改pqc任务功能

java8
赵宏斌 5 months ago
parent
commit
d9d37df4d6
  1. 1
      src/api/qc/qc.js
  2. 409
      src/views/modules/qc/PQCResultEntry.vue
  3. 1
      src/views/modules/qc/qcPartAttribute.vue

1
src/api/qc/qc.js

@ -149,6 +149,7 @@ export const getHuanXianSysUserList = data => createAPI(`/pms/pqc/getHuanXianSys
export const getAllUserList = data => createAPI(`/pms/pqc/getAllUserList`,'post',data)
export const queryResourceList2 = data => createAPI(`/pms/pqc/queryResourceList2`,'post',data)
export const querySopNum = data => createAPI(`/pms/pqc/querySopNum`,'post',data)
export const previewSopFile = data => createAPI(`/pms/pqc/previewSopFile`,'post',data,'download')
// ===================================== IPQC检验 =====================================
export const qcIPQCInspectionSearch = data => createAPI(`/pms/qc/qcIPQCInspectionSearch`,'post',data)

409
src/views/modules/qc/PQCResultEntry.vue

@ -313,7 +313,7 @@
</el-form-item>
<el-form-item :label="'物料编码'">
<span style="cursor: pointer" slot="label" @click="queryALLPartList"><a>物料编码</a></span>
<el-input v-model="modalData.partNo" style="width: 103px;height: 30px"></el-input>
<el-input v-model="modalData.partNo" disabled style="width: 103px;height: 30px"></el-input>
</el-form-item>
<el-form-item :label="'物料描述'">
<el-input v-model="modalData.partDesc" disabled style="width: 340px;height: 30px"></el-input>
@ -344,15 +344,14 @@
</el-form>
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: -5px;">
<el-form-item :label="'SOP类型'">
<el-select v-model="modalData.sopType" style="width: 221px;height: 30px">
<el-select v-model="modalData.sopType" @change="querySopNum" style="width: 221px;height: 30px">
<el-option label="SOP-ST" value="SOP-ST"></el-option>
<el-option label="TPI" value="TPI"></el-option>
<el-option label="PD" value="PD"></el-option>
</el-select>
</el-form-item>
<el-form-item :label="' '">
<el-button type="primary" @click="querySopNum">查询SOP编号</el-button>
<el-button type="primary" @click="sopPreview">预览SOP</el-button>
<el-button type="primary" @click="previewFile(1)">预览SOP</el-button>
</el-form-item>
<el-form-item :label="'SOP编号'">
<el-input v-model="modalData.sopNum" disabled style="width: 221px;height: 30px"></el-input>
@ -418,19 +417,7 @@
<el-button type="primary" @click="partFlag=false">关闭</el-button>
</el-footer>
</el-dialog>
<!-- SOP预览-->
<el-dialog title="SOP预览" :visible.sync="pdfDialogVisible" width="80%">
<!-- <pdf v-if="pdfUrl" :src="pdfUrl" style="width:100%;height:600px"/>-->
<iframe
:src="pdfUrl"
width="100%"
height="600px"
frameborder="0"
></iframe>
<el-footer style="height:40px;margin-top: 20px;text-align:center">
<el-button type="primary" @click="pdfDialogVisible=false">关闭</el-button>
</el-footer>
</el-dialog>
<!-- 检验单详情页 -->
@ -466,27 +453,28 @@
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" @keyup.enter.native = "getDataList">
<el-form-item :label="'送检数量'">
<el-input-number :controls="false" :step="0" v-model="detailData.rollQty" style="width: 85px"></el-input-number>
</el-form-item>
<el-form-item :label="'抽样数量'">
<el-input-number :controls="false" :step="0" v-model="detailData.samplingQty" style="width: 85px"></el-input-number>
</el-form-item>
<el-form-item :label="'合格数量'">
<el-input-number :controls="false" :step="0" min="0" v-if="detailData.submitFlag === 'Y'" v-model="detailData.passQty" disabled style="width: 85px"></el-input-number>
<el-input-number :controls="false" :step="0" min="0" v-else v-model="detailData.passQty" style="width: 85px"></el-input-number>
</el-form-item>
<el-form-item :label="'不合格数量'">
<el-input-number :controls="false" :step="0" min="0" v-model="detailData.notPassQty" disabled style="width: 85px"></el-input-number>
</el-form-item>
<el-form-item :label="'不合格项目数量'">
<el-input-number :controls="false" :step="0" v-if="detailData.submitFlag === 'Y'" v-model="detailData.unqualifiedQty" disabled style="width: 85px"></el-input-number>
<el-input-number :controls="false" :step="0" v-else v-model="detailData.unqualifiedQty" style="width: 85px"></el-input-number>
</el-form-item>
<el-form-item :label="'批次合格数'">
<el-input-number :controls="false" :step="0" min="0" v-model="detailData.batchQualifiedQty" disabled style="width: 85px"></el-input-number>
</el-form-item>
<el-form-item style="margin-top: 13px;margin-left: 405px">
<!-- <el-form-item :label="'送检数量'">-->
<!-- <el-input-number :controls="false" :step="0" v-model="detailData.rollQty" style="width: 85px"></el-input-number>-->
<!-- </el-form-item>-->
<!-- <el-form-item :label="'抽样数量'">-->
<!-- <el-input-number :controls="false" :step="0" v-model="detailData.samplingQty" style="width: 85px"></el-input-number>-->
<!-- </el-form-item>-->
<!-- <el-form-item :label="'合格数量'">-->
<!-- <el-input-number :controls="false" :step="0" min="0" v-if="detailData.submitFlag === 'Y'" v-model="detailData.passQty" disabled style="width: 85px"></el-input-number>-->
<!-- <el-input-number :controls="false" :step="0" min="0" v-else v-model="detailData.passQty" style="width: 85px"></el-input-number>-->
<!-- </el-form-item>-->
<!-- <el-form-item :label="'不合格数量'">-->
<!-- <el-input-number :controls="false" :step="0" min="0" v-model="detailData.notPassQty" disabled style="width: 85px"></el-input-number>-->
<!-- </el-form-item>-->
<!-- <el-form-item :label="'不合格项目数量'">-->
<!-- <el-input-number :controls="false" :step="0" v-if="detailData.submitFlag === 'Y'" v-model="detailData.unqualifiedQty" disabled style="width: 85px"></el-input-number>-->
<!-- <el-input-number :controls="false" :step="0" v-else v-model="detailData.unqualifiedQty" style="width: 85px"></el-input-number>-->
<!-- </el-form-item>-->
<!-- <el-form-item :label="'批次合格数'">-->
<!-- <el-input-number :controls="false" :step="0" min="0" v-model="detailData.batchQualifiedQty" disabled style="width: 85px"></el-input-number>-->
<!-- </el-form-item>-->
<el-form-item style="margin-top: 13px;margin-left: 600px">
<el-button type="primary" @click="previewFile(2)">预览SOP</el-button>
<el-button v-if="detailData.submitFlag !== 'Y'" :loading="loadFlag" @click="dataAcquisition">
<svg t="1739002700745" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="38076" width="22" height="22"><path d="M922.000696 762.746435V465.363478l55.652174-0.111304v299.542261c0 131.695304-106.562783 239.571478-236.922435 239.571478H285.42887C155.158261 1004.365913 48.484174 896.623304 48.484174 764.794435V465.252174h59.258435v299.542261c0 101.843478 77.022609 179.712 177.775304 179.712H740.841739c100.61913 0 181.158957-79.916522 181.158957-181.76z" fill="#1D293F" p-id="38077"></path><path d="M290.148174 192.556522c20.301913-20.925217 30.47513-48.617739 30.47513-83.099826 0-72.548174-36.285217-108.833391-108.722087-108.833392H141.401043v223.365566h70.255305c32.055652-0.111304 58.167652-10.529391 78.491826-31.432348z m-105.227131-7.635479V39.446261h23.596522c19.70087 0 35.661913 6.166261 47.994435 18.632348 12.354783 12.466087 18.387478 29.740522 18.387478 52.001391 0 22.973217-5.921391 41.22713-17.652869 54.650435s-27.937391 20.190609-48.617739 20.190608H184.921043zM634.434783 595.366957h-84.057044V498.866087a102.511304 102.511304 0 0 0 74.262261-98.54887c0-56.230957-45.478957-102.310957-101.10887-102.310956-55.629913 0-101.086609 46.08-101.086608 102.310956 0 46.08 30.586435 85.25913 72.192 97.947826v96.990609h-81.252174c-16.829217-43.78713-50.688-99.283478-81.65287-143.070609a101.331478 101.331478 0 0 0 14.269218-52.001391c0-56.230957-45.946435-102.310957-102.177392-102.310956s-102.177391 46.08-102.177391 102.310956c0 56.230957 45.946435 102.310957 102.177391 102.310957 15.716174 0 30.72-3.628522 44.009739-10.017392 21.170087 34.326261 42.829913 74.351304 57.811479 102.778435h-73.906087l128.333913 130.493218 94.675478-108.966957v145.853217h-111.616l148.034783 148.858435 130.715826-148.858435h-111.504696v-129.402434l91.180522 92.516174 113.307826-130.248348h-53.203478c14.758957-28.42713 36.173913-68.452174 57.210434-102.800696 13.178435 6.41113 27.937391 10.039652 43.542261 10.039652 55.629913 0 101.086609-46.08 101.086609-102.310956 0-56.230957-45.456696-102.310957-101.086609-102.310957-55.652174 0-101.220174 46.08-101.220174 102.310957a102.4 102.4 0 0 0 14.135653 52.001391c-30.72 43.653565-64.200348 99.283478-80.896 142.937044z m-390.611479-148.48a46.614261 46.614261 0 0 1-46.436174-46.458435c0-25.510957 20.925217-46.436174 46.436174-46.436174s46.436174 20.925217 46.436174 46.436174-20.925217 46.436174-46.436174 46.436174z m279.819131 0c-25.266087 0-45.946435-20.925217-45.946435-46.458435 0-25.510957 20.702609-46.436174 45.968696-46.436174 25.266087 0 45.946435 20.925217 45.946434 46.436174s-20.680348 46.436174-45.946434 46.436174z m278.639304-93.005914c25.288348 0 45.968696 20.925217 45.968696 46.436174s-20.702609 46.436174-45.968696 46.436174c-25.266087 0-45.946435-20.925217-45.946435-46.436174s20.680348-46.436174 45.946435-46.436174zM395.130435 172.722087h74.128695l15.248696 51.155478h47.415652L458.707478 0.623304h-51.155478L332.8 223.98887h47.170783l15.11513-51.266783z m32.768-114.777044c1.825391-6.032696 3.027478-12.332522 3.517217-18.854956h1.202087c0.601043 8.102957 1.691826 14.514087 3.138783 19.456l23.218087 77.401043h-54.405566l23.329392-78.002087z m168.96 165.932522h43.631304V39.446261h58.189913V0.623304h-159.877565v38.956522h58.056348v184.297739z m169.894956-51.155478h74.128696l15.248696 51.155478h47.415652L830.330435 0.623304h-51.155478l-74.752 223.365566h47.193043l15.09287-51.266783z m32.768-114.777044c1.825391-6.032696 3.027478-12.332522 3.517218-18.854956h1.202087c0.601043 8.102957 1.691826 14.514087 3.161043 19.456l23.218087 77.401043h-54.427826l23.329391-78.002087z" fill="#FD9F01" p-id="38078"></path></svg>
</el-button>
@ -498,22 +486,22 @@
</el-button>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top">
<el-form-item :label="'检验结论'">
<el-select v-if="detailData.submitFlag === 'Y'" v-model="detailData.inspectionResult" disabled style="width: 100px" placeholder="请选择">
<el-option label="合格" value="合格"></el-option>
<el-option label="不合格" value="不合格"></el-option>
</el-select>
<el-select v-else v-model="detailData.inspectionResult" style="width: 100px" placeholder="请选择">
<el-option label="合格" value="合格"></el-option>
<el-option label="不合格" value="不合格"></el-option>
</el-select>
</el-form-item>
<el-form-item :label="'质检备注'">
<el-input v-if="detailData.submitFlag === 'Y'" v-model="detailData.inspectionRemark" disabled style="width: 293px"></el-input>
<el-input v-else v-model="detailData.inspectionRemark" style="width: 293px"></el-input>
</el-form-item>
<el-form-item v-show="detailData.inspectionResult === '不合格'" style="margin-top: 5px">
<el-form :inline="true" label-position="top" style="margin-top: -30px">
<!-- <el-form-item :label="'检验结论'">-->
<!-- <el-select v-if="detailData.submitFlag === 'Y'" v-model="detailData.inspectionResult" disabled style="width: 100px" placeholder="请选择">-->
<!-- <el-option label="合格" value="合格"></el-option>-->
<!-- <el-option label="不合格" value="不合格"></el-option>-->
<!-- </el-select>-->
<!-- <el-select v-else v-model="detailData.inspectionResult" style="width: 100px" placeholder="请选择">-->
<!-- <el-option label="合格" value="合格"></el-option>-->
<!-- <el-option label="不合格" value="不合格"></el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<!-- <el-form-item :label="'质检备注'">-->
<!-- <el-input v-if="detailData.submitFlag === 'Y'" v-model="detailData.inspectionRemark" disabled style="width: 293px"></el-input>-->
<!-- <el-input v-else v-model="detailData.inspectionRemark" style="width: 293px"></el-input>-->
<!-- </el-form-item>-->
<!-- <el-form-item v-show="detailData.inspectionResult === '不合格'" style="margin-top: 5px">-->
<el-form-item :label="'处置措施'">
<el-select v-if="detailData.submitFlag === 'Y'" clearable v-model="detailData.disposalMeasures" disabled style="width: 100px">
<el-option
@ -536,7 +524,7 @@
<el-input v-if="detailData.submitFlag === 'Y'" v-model="detailData.disposalRemark" disabled style="width: 293px"></el-input>
<el-input v-else v-model="detailData.disposalRemark" style="width: 293px"></el-input>
</el-form-item>
</el-form-item>
<!-- </el-form-item>-->
</el-form>
<!-- 展示列表 -->
<div class="rq ">
@ -544,7 +532,7 @@
:height="500"
:data="detailList"
border
style="width: 100%;">
style="width: 100%;margin-top: 10px">
<el-table-column
prop=""
header-align="center"
@ -593,28 +581,28 @@
<el-button v-else type="primary" @click="subDetailModal(scope.row) ">点击输入</el-button>
</template>
</el-table-column>
<el-table-column
prop=""
header-align="center"
align="right"
min-width="80"
label="抽样数量">
<template slot-scope="scope">
<el-input-number :controls="false" :step="0" v-if="detailData.submitFlag === 'Y'" v-model="scope.row.samplingQty" disabled style="height: 11px; width: 98%"></el-input-number>
<el-input-number :controls="false" :step="0" v-else :ref="`samplingQty${scope.$index}`" v-model="scope.row.samplingQty" @keyup.enter.native="focusNextInput(scope.$index, 'samplingQty')" style="height: 11px; width: 98%"></el-input-number>
</template>
</el-table-column>
<el-table-column
prop=""
header-align="center"
align="right"
min-width="80"
label="不合格数量">
<template slot-scope="scope">
<el-input-number :controls="false" :step="0" v-if="detailData.submitFlag === 'Y'" v-model="scope.row.unqualifiedQuantity" disabled style="height: 11px; width: 98%"></el-input-number>
<el-input-number :controls="false" :step="0" v-else :ref="`unqualifiedQuantity${scope.$index}`" v-model="scope.row.unqualifiedQuantity" @keyup.enter.native="focusNextInput(scope.$index, 'unqualifiedQuantity')" style="height: 11px; width: 98%"></el-input-number>
</template>
</el-table-column>
<!-- <el-table-column-->
<!-- prop=""-->
<!-- header-align="center"-->
<!-- align="right"-->
<!-- min-width="80"-->
<!-- label="抽样数量">-->
<!-- <template slot-scope="scope">-->
<!-- <el-input-number :controls="false" :step="0" v-if="detailData.submitFlag === 'Y'" v-model="scope.row.samplingQty" disabled style="height: 11px; width: 98%"></el-input-number>-->
<!-- <el-input-number :controls="false" :step="0" v-else :ref="`samplingQty${scope.$index}`" v-model="scope.row.samplingQty" @keyup.enter.native="focusNextInput(scope.$index, 'samplingQty')" style="height: 11px; width: 98%"></el-input-number>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- prop=""-->
<!-- header-align="center"-->
<!-- align="right"-->
<!-- min-width="80"-->
<!-- label="不合格数量">-->
<!-- <template slot-scope="scope">-->
<!-- <el-input-number :controls="false" :step="0" v-if="detailData.submitFlag === 'Y'" v-model="scope.row.unqualifiedQuantity" disabled style="height: 11px; width: 98%"></el-input-number>-->
<!-- <el-input-number :controls="false" :step="0" v-else :ref="`unqualifiedQuantity${scope.$index}`" v-model="scope.row.unqualifiedQuantity" @keyup.enter.native="focusNextInput(scope.$index, 'unqualifiedQuantity')" style="height: 11px; width: 98%"></el-input-number>-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column
prop=""
header-align="center"
@ -1062,6 +1050,7 @@ import {
queryUserDefaultOperationListByUsername,//
getHuanXianSysUserList,//
querySopNum,//Sop
previewSopFile,//Sop
} from "@/api/qc/qc.js"
import {getTableDefaultListLanguage, getTableUserListLanguage} from "@/api/table.js"
import Chooselist from '@/views/modules/common/Chooselist_eam'
@ -1232,7 +1221,6 @@ export default {
dataListSelections: [],
partFlag: false,
pdfDialogVisible: false,
pdfUrl: '',
partModalData:{},
modalData: {
flag: '',
@ -1872,42 +1860,42 @@ export default {
fixed: '',
columnWidth: 150,
},
{
userId: this.$store.state.user.name,
functionId: 301015,
serialNumber: '301015Table2SamplingLevelDesc',
tableId: "301015Table2",
tableName: "检验单明细表",
columnProp: 'samplingLevelDesc',
headerAlign: "center",
align: "left",
columnLabel: '检验水平',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 120,
},
{
userId: this.$store.state.user.name,
functionId: 301015,
serialNumber: '301015Table2SamplingProgrammeDesc',
tableId: "301015Table2",
tableName: "检验单明细表",
columnProp: 'samplingProgrammeDesc',
headerAlign: "center",
align: "left",
columnLabel: '检验方案',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 120,
},
// {
// userId: this.$store.state.user.name,
// functionId: 301015,
// serialNumber: '301015Table2SamplingLevelDesc',
// tableId: "301015Table2",
// tableName: "",
// columnProp: 'samplingLevelDesc',
// headerAlign: "center",
// align: "left",
// columnLabel: '',
// columnHidden: false,
// columnImage: false,
// columnSortable: false,
// sortLv: 0,
// status: true,
// fixed: '',
// columnWidth: 120,
// },
// {
// userId: this.$store.state.user.name,
// functionId: 301015,
// serialNumber: '301015Table2SamplingProgrammeDesc',
// tableId: "301015Table2",
// tableName: "",
// columnProp: 'samplingProgrammeDesc',
// headerAlign: "center",
// align: "left",
// columnLabel: '',
// columnHidden: false,
// columnImage: false,
// columnSortable: false,
// sortLv: 0,
// status: true,
// fixed: '',
// columnWidth: 120,
// },
{
userId: this.$store.state.user.name,
functionId: 301015,
@ -1944,78 +1932,78 @@ export default {
fixed: '',
columnWidth: 200,
},
{
userId: this.$store.state.user.name,
functionId: 301015,
serialNumber: '301015Table2ObjectDesc',
tableId: "301015Table2",
tableName: "检验单明细表",
columnProp: 'objectDesc',
headerAlign: "center",
align: "center",
columnLabel: '检测仪器',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 120,
},
{
userId: this.$store.state.user.name,
functionId: 301015,
serialNumber: '301015Table2Aql',
tableId: "301015Table2",
tableName: "检验单明细表",
columnProp: 'aql',
headerAlign: "center",
align: "right",
columnLabel: 'AQL',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100,
},
{
userId: this.$store.state.user.name,
functionId: 301015,
serialNumber: '301015Table2Ac',
tableId: "301015Table2",
tableName: "检验单明细表",
columnProp: 'ac',
headerAlign: "center",
align: "right",
columnLabel: 'AC',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100,
},
{
userId: this.$store.state.user.name,
functionId: 301015,
serialNumber: '301015Table2Re',
tableId: "301015Table2",
tableName: "检验单明细表",
columnProp: 're',
headerAlign: "center",
align: "right",
columnLabel: 'RE',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100,
},
// {
// userId: this.$store.state.user.name,
// functionId: 301015,
// serialNumber: '301015Table2ObjectDesc',
// tableId: "301015Table2",
// tableName: "",
// columnProp: 'objectDesc',
// headerAlign: "center",
// align: "center",
// columnLabel: '',
// columnHidden: false,
// columnImage: false,
// columnSortable: false,
// sortLv: 0,
// status: true,
// fixed: '',
// columnWidth: 120,
// },
// {
// userId: this.$store.state.user.name,
// functionId: 301015,
// serialNumber: '301015Table2Aql',
// tableId: "301015Table2",
// tableName: "",
// columnProp: 'aql',
// headerAlign: "center",
// align: "right",
// columnLabel: 'AQL',
// columnHidden: false,
// columnImage: false,
// columnSortable: false,
// sortLv: 0,
// status: true,
// fixed: '',
// columnWidth: 100,
// },
// {
// userId: this.$store.state.user.name,
// functionId: 301015,
// serialNumber: '301015Table2Ac',
// tableId: "301015Table2",
// tableName: "",
// columnProp: 'ac',
// headerAlign: "center",
// align: "right",
// columnLabel: 'AC',
// columnHidden: false,
// columnImage: false,
// columnSortable: false,
// sortLv: 0,
// status: true,
// fixed: '',
// columnWidth: 100,
// },
// {
// userId: this.$store.state.user.name,
// functionId: 301015,
// serialNumber: '301015Table2Re',
// tableId: "301015Table2",
// tableName: "",
// columnProp: 're',
// headerAlign: "center",
// align: "right",
// columnLabel: 'RE',
// columnHidden: false,
// columnImage: false,
// columnSortable: false,
// sortLv: 0,
// status: true,
// fixed: '',
// columnWidth: 100,
// },
{
userId: this.$store.state.user.name,
functionId: 301015,
@ -3163,20 +3151,40 @@ export default {
if (data.code==0){
this.modalData.sopNum = data.rows[0].sopName
this.modalData.sopUrl = data.rows[0].sopUrl
this.$message.success(this.modalData.sopUrl)
}else{
this.modalData.sopNum = ''
this.modalData.sopUrl = ''
this.$message.warning("当前的物料和SOP类型没有下达的SOP编码")
}
})
},
sopPreview(){
if(this.modalData.sopNum == null || this.modalData.sopNum == ''){
this.$message.warning("请先查询SOP编码")
return
previewFile(flag){
let sopUrl = ''
if (flag==1) {
if (this.modalData.sopUrl==null || this.modalData.sopUrl==''){
this.$message.warning("请先查询SOP信息")
return
}
sopUrl = this.modalData.sopUrl
} else {
if (this.detailData.sopUrl==null || this.detailData.sopUrl==''){
this.$message.warning("请先查询SOP信息")
return
}
sopUrl = this.detailData.sopUrl
}
let params = {
sopUrl: sopUrl
}
this.$message.success(this.modalData.sopUrl)
this.pdfUrl = this.modalData.sopUrl
this.pdfDialogVisible = true
previewSopFile(params).then(({data}) => {
let type = 'application/pdf;charset=UTF-8'
const blob = new Blob([data], { type: type })
console.log(blob,type)
// URL
const fileURL = URL.createObjectURL(blob)
//
window.open(fileURL, '_blank')
})
},
queryALLPartList(){
queryPartDescByNo(this.partModalData).then(({data})=>{
@ -3610,6 +3618,7 @@ export default {
this.modalData.partNo = row.partNo
this.modalData.partDesc = row.partDesc
this.operationDescInput()
this.querySopNum()
this.partFlag = false
},
@ -3812,10 +3821,10 @@ export default {
Transfer (type) {
if (type === '2') {
if (this.detailData.inspectionResult === '' || this.detailData.inspectionResult == null) {
this.$message.warning('请选择检验结论!')
return
}
// if (this.detailData.inspectionResult === '' || this.detailData.inspectionResult == null) {
// this.$message.warning('')
// return
// }
if (this.detailData.inspectionResult === '不合格' && (this.detailData.disposalMeasures == null || this.detailData.disposalMeasures === '')) {
this.$message.warning('请选择处置措施!')
return
@ -3965,6 +3974,8 @@ export default {
this.detailData.responsiblePerson = row.responsiblePerson
this.detailData.responsiblePersonName = row.responsiblePersonName
this.detailData.state = row.state
this.detailData.sopType = row.sopType
this.detailData.sopUrl = row.sopUrl
if (row.state === '待检验') {
this.detailData.passQty = row.samplingQty
} else {

1
src/views/modules/qc/qcPartAttribute.vue

@ -1899,7 +1899,6 @@
//
getOperationList () {
this.$message.success(this.operationData)
getOperationDescList(this.operationData).then(({data}) => {
if (data && data.code === 0) {
this.operationList = data.rows

Loading…
Cancel
Save