|
@@ -2,7 +2,7 @@
|
|
<div>
|
|
<div>
|
|
|
|
|
|
<el-breadcrumb separator-class="el-icon-arrow-right">
|
|
<el-breadcrumb separator-class="el-icon-arrow-right">
|
|
- <el-breadcrumb-item>首页</el-breadcrumb-item>
|
|
|
|
|
|
+ <el-breadcrumb-item :to="{ path: '/jc/workbench' }">首页</el-breadcrumb-item>
|
|
<el-breadcrumb-item>承担单位</el-breadcrumb-item>
|
|
<el-breadcrumb-item>承担单位</el-breadcrumb-item>
|
|
<el-breadcrumb-item>任务列表</el-breadcrumb-item>
|
|
<el-breadcrumb-item>任务列表</el-breadcrumb-item>
|
|
<el-breadcrumb-item>基本信息</el-breadcrumb-item>
|
|
<el-breadcrumb-item>基本信息</el-breadcrumb-item>
|
|
@@ -148,13 +148,14 @@
|
|
<el-table-column label="操作" align="center" fixed="right">
|
|
<el-table-column label="操作" align="center" fixed="right">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-col>
|
|
<el-col>
|
|
- <el-button style="margin:5px 0" type="primary" icon="el-icon-edit-outline" size="mini" plain @click="input(scope.row.id)" v-if="scope.row.task_profile_status!== '14'">填报抽样单
|
|
|
|
|
|
+ <el-button style="margin:5px 0" type="primary" icon="el-icon-edit-outline" size="mini" plain @click="input(scope.row.id)"
|
|
|
|
+ v-if="scope.row.task_profile_status == '已查看' || scope.row.task_profile_status == '抽样中'">填报抽样单
|
|
</el-button>
|
|
</el-button>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col>
|
|
<el-col>
|
|
- <el-button type="primary" size="mini" @click="getCydlist(scope.row.id)">查看抽样单列表
|
|
|
|
|
|
+ <el-button style="margin:5px" type="primary" size="mini" @click="getCydlist(scope.row.id)">查看抽样单列表
|
|
</el-button>
|
|
</el-button>
|
|
- <el-button style="margin:5px 5px" type="primary" size="mini" plain @click="putCydStatus(scope.row.id)"
|
|
|
|
|
|
+ <el-button style="margin:5px 5px" type="primary" size="mini" @click="putCydStatus(scope.row.id)"
|
|
v-if="scope.row.task_profile_status == '已查看' || scope.row.task_profile_status == '抽样中'">上报抽样信息
|
|
v-if="scope.row.task_profile_status == '已查看' || scope.row.task_profile_status == '抽样中'">上报抽样信息
|
|
</el-button>
|
|
</el-button>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -207,8 +208,9 @@
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
|
|
|
<el-tab-pane label="检测" name="third">
|
|
<el-tab-pane label="检测" name="third">
|
|
|
|
+ <detection :task_id="task_id"></detection>
|
|
<!-- <el-tab-pane v-if="checkShow==true" label="检测" name="third"> -->
|
|
<!-- <el-tab-pane v-if="checkShow==true" label="检测" name="third"> -->
|
|
- <el-table :data="underTask" border stripe highlight-current-row @current-change="handlecyCurrentChange" style="width: 100%"
|
|
|
|
|
|
+ <!-- <el-table :data="underTask" border stripe highlight-current-row @current-change="handlecyCurrentChange" style="width: 100%"
|
|
:row-style="rowStyle" :cell-style="cellStyle">
|
|
:row-style="rowStyle" :cell-style="cellStyle">
|
|
<el-table-column :key="table.label" v-for="table in tableHeader2" :label="table.label"
|
|
<el-table-column :key="table.label" v-for="table in tableHeader2" :label="table.label"
|
|
:prop="table.prop" align="center" :width="table.width" :fixed="table.fixed" />
|
|
:prop="table.prop" align="center" :width="table.width" :fixed="table.fixed" />
|
|
@@ -217,43 +219,43 @@
|
|
|
|
|
|
<el-button style="margin:5px 0" type="primary" size="small" @click="getJcdList(scope.row.id)">查看检测单列表
|
|
<el-button style="margin:5px 0" type="primary" size="small" @click="getJcdList(scope.row.id)">查看检测单列表
|
|
</el-button>
|
|
</el-button>
|
|
- <el-button style="margin:5px 5px" type="primary" size="small" plain @click="putJcdStatus(scope.row.id)"
|
|
|
|
- v-if="scope.row.task_profile_status == '已查看'|| scope.row.task_profile_status == '抽样中' || scope.row.task_profile_status == '检测中'">上报检测单
|
|
|
|
|
|
+ <el-button style="margin:5px 5px" type="primary" size="small" @click="putJcdStatus(scope.row.id)"
|
|
|
|
+ v-if="scope.row.task_profile_status == '已查看'|| scope.row.task_profile_status == '抽样中' || scope.row.task_profile_status == '抽样完成' || scope.row.task_profile_status == '检测中'">上报检测单
|
|
</el-button>
|
|
</el-button>
|
|
|
|
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- </el-table>
|
|
|
|
|
|
+ </el-table> -->
|
|
<!-- 查看检测单列表弹框 -->
|
|
<!-- 查看检测单列表弹框 -->
|
|
- <el-dialog title="检测单列表" :visible.sync="checkTestList" width="70%" :close-on-click-modal="false"
|
|
|
|
- class="dialogItem">
|
|
|
|
|
|
+ <!-- <el-dialog title="检测单列表" :visible.sync="checkTestList" width="70%" :close-on-click-modal="false"
|
|
|
|
+ class="dialogItem"> -->
|
|
<!-- 表格数据区域-->
|
|
<!-- 表格数据区域-->
|
|
- <el-table :data="tableData1" border stripe highlight-current-row style="width: 100%"
|
|
|
|
|
|
+ <!-- <el-table :data="tableData1" border stripe highlight-current-row style="width: 100%"
|
|
:row-style="rowStyle" :cell-style="cellStyle">
|
|
:row-style="rowStyle" :cell-style="cellStyle">
|
|
<el-table-column label="序号" width="50px">
|
|
<el-table-column label="序号" width="50px">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
{{ scope.$index+1 }}
|
|
{{ scope.$index+1 }}
|
|
</template>
|
|
</template>
|
|
- </el-table-column>
|
|
|
|
|
|
+ </el-table-column> -->
|
|
|
|
|
|
- <el-table-column :key="table.label" v-for="table in checkHeader" :label="table.label"
|
|
|
|
- :prop="table.prop" align="center" :width="table.width" :fixed="table.fixed" />
|
|
|
|
- <el-table-column label="操作" align="center" fixed="right" width="350px">
|
|
|
|
|
|
+ <!-- <el-table-column :key="table.label" v-for="table in checkHeader" :label="table.label"
|
|
|
|
+ :prop="table.prop" align="center" :width="table.width" :fixed="table.fixed" /> -->
|
|
|
|
+ <!-- <el-table-column label="操作" align="center" fixed="right" width="350px">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-button style="margin:5px 5px" type="primary" size="mini" plain
|
|
<el-button style="margin:5px 5px" type="primary" size="mini" plain
|
|
- @click="getSamplesLists(scope.row.id)">获取样品列表</el-button>
|
|
|
|
|
|
+ @click="getSamplesLists(scope.row.id)">获取样品列表</el-button> -->
|
|
|
|
|
|
<!-- <el-button style="margin:5px 5px" type="primary" size="mini" plain @click="creatpdf(scope.row.sample_id)">生成检测报告
|
|
<!-- <el-button style="margin:5px 5px" type="primary" size="mini" plain @click="creatpdf(scope.row.sample_id)">生成检测报告
|
|
</el-button> -->
|
|
</el-button> -->
|
|
- </template>
|
|
|
|
|
|
+ <!-- </template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- </el-table>
|
|
|
|
|
|
+ </el-table> -->
|
|
|
|
|
|
<!-- 分页器区域-->
|
|
<!-- 分页器区域-->
|
|
- <el-pagination @size-change="handleSizeChange1" @current-change="handleCurrentChange1"
|
|
|
|
|
|
+ <!-- <el-pagination @size-change="handleSizeChange1" @current-change="handleCurrentChange1"
|
|
:current-page="queryInfo1.pageNum" :page-sizes="[1,10, 15, 20]" :page-size="queryInfo1.pageSize"
|
|
:current-page="queryInfo1.pageNum" :page-sizes="[1,10, 15, 20]" :page-size="queryInfo1.pageSize"
|
|
layout="total, sizes, prev, pager, next, jumper" :total="jcdListTotal" background />
|
|
layout="total, sizes, prev, pager, next, jumper" :total="jcdListTotal" background />
|
|
- </el-dialog>
|
|
|
|
|
|
+ </el-dialog> -->
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
|
|
|
<el-dialog title="样品信息列表" :visible.sync="getSamplesList" width="75%" :close-on-click-modal="false"
|
|
<el-dialog title="样品信息列表" :visible.sync="getSamplesList" width="75%" :close-on-click-modal="false"
|
|
@@ -272,15 +274,22 @@
|
|
align="center" :width="table.width" :fixed="table.fixed" />
|
|
align="center" :width="table.width" :fixed="table.fixed" />
|
|
<el-table-column label="操作" align="center">
|
|
<el-table-column label="操作" align="center">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <el-col style="margin-bottom: 5px;">
|
|
|
|
- <el-button style="margin:5px 5px" type="primary" size="mini" v-if="scope.row.jcd==null" plain
|
|
|
|
|
|
+ <el-col style="margin: 5px;">
|
|
|
|
+ <el-button style="" type="primary" size="mini" icon="el-icon-edit-outline" plain
|
|
@click="getJcdObj(scope.row.id,scope.row.cyd_id)">填报检测单</el-button>
|
|
@click="getJcdObj(scope.row.id,scope.row.cyd_id)">填报检测单</el-button>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col style="margin: 5px;">
|
|
|
|
+ <el-button style="" type="primary" size="mini"
|
|
|
|
+ @click="readJcdObj(scope.row.id,scope.row.cyd_id)">查看检测单</el-button>
|
|
|
|
+ </el-col>
|
|
|
|
+ <!-- <el-button style="margin:5px 5px" type="primary" size="mini" v-if="scope.row.jcd==null" plain
|
|
|
|
+ @click="getJcdObj(scope.row.id,scope.row.cyd_id)">填报检测单</el-button> -->
|
|
<!-- <el-button style="margin:5px 5px" type="primary" v-else size="mini" plain @click="update(scope.row)">修改</el-button> -->
|
|
<!-- <el-button style="margin:5px 5px" type="primary" v-else size="mini" plain @click="update(scope.row)">修改</el-button> -->
|
|
<!-- <el-button style="margin:5px 5px" type="primary" size="mini" plain @click="putJcdStatus(scope.row.jcd.id,scope.row.cyd_id)" v-else-if="scope.row.jcd.jcd_status == '1'">上报检测单
|
|
<!-- <el-button style="margin:5px 5px" type="primary" size="mini" plain @click="putJcdStatus(scope.row.jcd.id,scope.row.cyd_id)" v-else-if="scope.row.jcd.jcd_status == '1'">上报检测单
|
|
</el-button> -->
|
|
</el-button> -->
|
|
- <el-button style="margin:5px 5px" type="primary" size="mini" plain v-else-if="scope.row.jcd.jcd_status == '3'">检测单已上报
|
|
|
|
- </el-button>
|
|
|
|
- </el-col>
|
|
|
|
|
|
+ <!-- <el-button style="margin:5px 5px" type="primary" size="mini" plain v-else-if="scope.row.jcd.jcd_status == '3'">检测单已上报 -->
|
|
|
|
+ <!-- </el-button> -->
|
|
|
|
+
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
@@ -336,8 +345,8 @@
|
|
<div v-show="jcd.jcd_result==0" id="additems">
|
|
<div v-show="jcd.jcd_result==0" id="additems">
|
|
<!-- 表格数据区域-->
|
|
<!-- 表格数据区域-->
|
|
<el-table border :data="jcxItems" >
|
|
<el-table border :data="jcxItems" >
|
|
- <el-table-column type="selection"></el-table-column>
|
|
|
|
- <el-table-column label="序号">
|
|
|
|
|
|
+ <el-table-column type="selection" align="center"></el-table-column>
|
|
|
|
+ <el-table-column label="序号" align="center">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
{{scope.$index+1}}
|
|
{{scope.$index+1}}
|
|
</template>
|
|
</template>
|
|
@@ -360,12 +369,12 @@
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- <div class="footer">
|
|
|
|
|
|
+ <!-- <div class="footer">
|
|
<el-button type="primary" style="margin-bottom:30px;" size="small" @click="putJcd()">完成</el-button>
|
|
<el-button type="primary" style="margin-bottom:30px;" size="small" @click="putJcd()">完成</el-button>
|
|
- </div>
|
|
|
|
|
|
+ </div> -->
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
|
- <el-dialog title="新增不合格检测项目" :visible.sync="addJcxItemDialog" width="40%" :close-on-click-modal="false"
|
|
|
|
|
|
+ <!-- <el-dialog title="新增不合格检测项目" :visible.sync="addJcxItemDialog" width="40%" :close-on-click-modal="false"
|
|
class="dialogItem">
|
|
class="dialogItem">
|
|
<div id="addUnqualifiedJcx" style="margin:auto;">
|
|
<div id="addUnqualifiedJcx" style="margin:auto;">
|
|
<el-form ref="jcxform" :rules="rules" :model="jcxItem" style="margin:10px auto;">
|
|
<el-form ref="jcxform" :rules="rules" :model="jcxItem" style="margin:10px auto;">
|
|
@@ -389,13 +398,13 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
</div>
|
|
</div>
|
|
- <div class="footer">
|
|
|
|
- <el-button type="primary" style="margin-bottom:30px;" size="small" @click="postJcdItem('jcxform')">保存</el-button>
|
|
|
|
- </div>
|
|
|
|
- </el-dialog>
|
|
|
|
|
|
+ <div class="footer">
|
|
|
|
+ <el-button type="primary" style="margin-bottom:30px;" size="small" @click="postJcdItem('jcxform')">保存</el-button>
|
|
|
|
+ </div>
|
|
|
|
+ </el-dialog> -->
|
|
<!-- ///////////////////////////////////////////检测报告生成-------难、、、、、、、、、、、、、、、、、、、、、、 -->
|
|
<!-- ///////////////////////////////////////////检测报告生成-------难、、、、、、、、、、、、、、、、、、、、、、 -->
|
|
- <el-dialog title="生成监测报告" :visible.sync="dialogVisible2" width="50%">
|
|
|
|
- <div id="pdf">
|
|
|
|
|
|
+ <!-- <el-dialog title="生成监测报告" :visible.sync="dialogVisible2" width="50%"> -->
|
|
|
|
+ <!-- <div id="pdf">
|
|
<el-form ref="formjc" :model="formjc" label-width="100px"
|
|
<el-form ref="formjc" :model="formjc" label-width="100px"
|
|
style="margin-top: 20px;width: 100%;background-color: aliceblue;padding: 5px;">
|
|
style="margin-top: 20px;width: 100%;background-color: aliceblue;padding: 5px;">
|
|
<el-row style="text-align: center; font-size: 23px; margin: 40px 0;">
|
|
<el-row style="text-align: center; font-size: 23px; margin: 40px 0;">
|
|
@@ -521,13 +530,13 @@
|
|
<el-table-column :key="table.label" v-for="table in jcheader" :label="table.label"
|
|
<el-table-column :key="table.label" v-for="table in jcheader" :label="table.label"
|
|
:prop="table.prop" align="center" :width="table.width" :fixed="table.fixed" />
|
|
:prop="table.prop" align="center" :width="table.width" :fixed="table.fixed" />
|
|
</el-table>
|
|
</el-table>
|
|
- </div>
|
|
|
|
|
|
+ </div> -->
|
|
<!-- <div style="margin-top: 10px; text-align: center">
|
|
<!-- <div style="margin-top: 10px; text-align: center">
|
|
<el-button @click="dialogVisible2 = false">取 消</el-button>
|
|
<el-button @click="dialogVisible2 = false">取 消</el-button>
|
|
<el-button type="primary" @click="download">生成检测报告pdf</el-button>
|
|
<el-button type="primary" @click="download">生成检测报告pdf</el-button>
|
|
</div> -->
|
|
</div> -->
|
|
<!-- </span> -->
|
|
<!-- </span> -->
|
|
- </el-dialog>
|
|
|
|
|
|
+ <!-- </el-dialog> -->
|
|
|
|
|
|
<!-- <el-tab-pane label="报告上传" name="five">
|
|
<!-- <el-tab-pane label="报告上传" name="five">
|
|
<el-upload class="upload-demo" :file-list="fileList" drag :headers="myHeaders"
|
|
<el-upload class="upload-demo" :file-list="fileList" drag :headers="myHeaders"
|
|
@@ -542,6 +551,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+ import detection from './detection'
|
|
import htmlToPdf from '../../assets/js/htmlToPdf.js'
|
|
import htmlToPdf from '../../assets/js/htmlToPdf.js'
|
|
import inputCheck from './inputCheck'
|
|
import inputCheck from './inputCheck'
|
|
const token = window.sessionStorage.getItem('token')
|
|
const token = window.sessionStorage.getItem('token')
|
|
@@ -813,7 +823,8 @@
|
|
};
|
|
};
|
|
},
|
|
},
|
|
components: {
|
|
components: {
|
|
- inputCheck
|
|
|
|
|
|
+ inputCheck,
|
|
|
|
+ detection,
|
|
},
|
|
},
|
|
mounted() {},
|
|
mounted() {},
|
|
created() {
|
|
created() {
|
|
@@ -1179,6 +1190,16 @@
|
|
console.log(that.jcd_id)
|
|
console.log(that.jcd_id)
|
|
// console.log(that.cyd_id)
|
|
// console.log(that.cyd_id)
|
|
},
|
|
},
|
|
|
|
+ //查看检测单详情
|
|
|
|
+ async readJcdObj(){
|
|
|
|
+ this.$router.push({
|
|
|
|
+ name: 'readJcd',
|
|
|
|
+ params: {
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ })
|
|
|
|
+ },
|
|
//检测单列表-上报
|
|
//检测单列表-上报
|
|
async putJcdStatus(id){
|
|
async putJcdStatus(id){
|
|
var that = this
|
|
var that = this
|
|
@@ -1266,7 +1287,7 @@
|
|
this.getCheckTaskList(that.task_id)
|
|
this.getCheckTaskList(that.task_id)
|
|
}else
|
|
}else
|
|
{this.$message({
|
|
{this.$message({
|
|
- type: 'success',
|
|
|
|
|
|
+ type: 'error',
|
|
message: '上报抽样信息失败'
|
|
message: '上报抽样信息失败'
|
|
})}
|
|
})}
|
|
},
|
|
},
|