|
@@ -16,31 +16,27 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item prop="sample_address" label="地区" >
|
|
|
<el-cascader :options="region" v-model="sample_address"
|
|
|
- @change="handleChange">
|
|
|
+ @change="handleChange" clearable>
|
|
|
</el-cascader>
|
|
|
</el-form-item>
|
|
|
+
|
|
|
+ <!-- <el-form-item prop="sample_address" label="地区" >
|
|
|
+ <el-cascader :options="options" :props="props" v-model="sample_address" clearable ></el-cascader>
|
|
|
+ </el-form-item> -->
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
<!-- 底部按钮 -->
|
|
|
<el-form-item>
|
|
|
<el-button type="success" @click="onSubmit()">保存</el-button>
|
|
|
<el-button @click="reBack">返回</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
-
|
|
|
+<!-- 抽样机构 -->
|
|
|
<!-- 选择抽样机构对话框 -->
|
|
|
<template scope-slot="scope">
|
|
|
<el-dialog title="机构选择" :visible.sync="getOrganizationsShow1" width="50%" :close-on-click-modal="false" @open="getOrganizations1()" class="dialogItem">
|
|
|
<el-form v-if="getOrganizationsShow1" :model="getOrganizationsForm1">
|
|
|
- <!-- 检索功能 -->
|
|
|
- <!-- <el-row :gutter="20">
|
|
|
- <el-col :span="6">
|
|
|
- <el-form-item label="单位名称" >
|
|
|
- <el-input v-model="queryInfo1.name"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="6">
|
|
|
- <el-button type="success" @click="search()" style="margin-top:40px">搜索</el-button>
|
|
|
- </el-col>
|
|
|
- </el-row> -->
|
|
|
<!-- 表格数据区域-->
|
|
|
<el-table ref="multipleTable" :data="testList" row-key="id" @selection-change="handleSelectionChange1"
|
|
|
border stripe highlight-current-row style="width: 100%">
|
|
@@ -54,7 +50,7 @@
|
|
|
:prop="table.prop" align="center" :width="table.width" :fixed="table.fixed" />
|
|
|
</el-table>
|
|
|
<div class="footer">
|
|
|
-<!--抽样机构分页器区域-->
|
|
|
+ <!--抽样机构分页器区域-->
|
|
|
<el-pagination @size-change="handleSizeChange1" @current-change="handleCurrentChange1"
|
|
|
:current-page="queryInfo1.pageNum" :page-sizes="[1,10, 15, 20]" :page-size="queryInfo1.pageSize"
|
|
|
layout="total, sizes, prev, pager, next, jumper" :total="total" background />
|
|
@@ -65,7 +61,7 @@
|
|
|
</el-dialog>
|
|
|
</template>
|
|
|
|
|
|
-
|
|
|
+<!-- 检测机构 -->
|
|
|
<!-- 选择检测机构对话框 -->
|
|
|
<el-dialog title="机构选择" :visible.sync="getOrganizationsShow2" width="50%" :close-on-click-modal="false" @open="getOrganizations2()" class="dialogItem">
|
|
|
<el-form v-if="getOrganizationsShow2" :model="getOrganizationsForm2">
|
|
@@ -82,7 +78,7 @@
|
|
|
:prop="table.prop" align="center" :width="table.width" :fixed="table.fixed" />
|
|
|
</el-table>
|
|
|
<div class="footer">
|
|
|
-<!--检测机构分页器区域-->
|
|
|
+ <!--检测机构分页器区域-->
|
|
|
<el-pagination @size-change="handleSizeChange2" @current-change="handleCurrentChange2"
|
|
|
:current-page="queryInfo2.pageNum" :page-sizes="[1,10, 15, 20]" :page-size="queryInfo2.pageSize"
|
|
|
layout="total, sizes, prev, pager, next, jumper" :total="total2" background />
|
|
@@ -92,7 +88,18 @@
|
|
|
</el-form>
|
|
|
</el-dialog>
|
|
|
|
|
|
-
|
|
|
+<!-- 地区表格区域 -->
|
|
|
+ <el-table ref="multipleTable" :data="regionList" row-key="id" @selection-change="handleSelectionChange3"
|
|
|
+ border stripe highlight-current-row style="width: 100%">
|
|
|
+ <el-table-column type="selection" :reserve-selection="true" width="50"></el-table-column>
|
|
|
+ <el-table-column label="序号" width="50px">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{ scope.$index+1 }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column :key="table.prop" v-for="table in tableHeader3" :label="table.label"
|
|
|
+ :prop="table.prop" align="center" :width="table.width" :fixed="table.fixed" />
|
|
|
+ </el-table>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
@@ -106,6 +113,8 @@ import {
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
+ // 地区单选
|
|
|
+ props: { multiple: true },
|
|
|
CodeToText:'',
|
|
|
form: {
|
|
|
// name:'',
|
|
@@ -117,7 +126,7 @@ import {
|
|
|
groupname:'',
|
|
|
properties:'',
|
|
|
main_unit:[],
|
|
|
- check_unit:[],
|
|
|
+ check_unit:[],
|
|
|
sample_org_id:'',
|
|
|
check_org_id:''
|
|
|
},
|
|
@@ -147,8 +156,9 @@ import {
|
|
|
// label: '企业'
|
|
|
// }],
|
|
|
// 抽样地区
|
|
|
- region: regionData,
|
|
|
- sample_address:'',
|
|
|
+ // region: regionData,
|
|
|
+ region: regionData[11].children,
|
|
|
+ sample_address:[],
|
|
|
// 机构地域表格数据
|
|
|
underTask: [],
|
|
|
underTasktotal: 0,
|