Merge remote-tracking branch 'origin/pet' into pet

pull/9/head
guoyuepeng 2024-12-30 14:08:09 +08:00
commit a983264050
42 changed files with 1212 additions and 9 deletions

View File

@ -16,6 +16,7 @@
<el-option value="4" label="安全环保检查(监管端)"/> <el-option value="4" label="安全环保检查(监管端)"/>
<el-option value="5" label="安全环保检查(企业端)"/> <el-option value="5" label="安全环保检查(企业端)"/>
<el-option value="6" label="消防点检"/> <el-option value="6" label="消防点检"/>
<el-option value="8" label="点检隐患"/>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -134,6 +135,9 @@
<span v-else-if="row.SOURCE=='6'"> <span v-else-if="row.SOURCE=='6'">
消防点检 消防点检
</span> </span>
<span v-else-if="row.SOURCE=='8'">
点检隐患
</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="HIDDENDESCR" label="隐患描述"/> <el-table-column prop="HIDDENDESCR" label="隐患描述"/>

View File

@ -23,6 +23,9 @@
<template v-else-if="pd.SOURCE=='5'"> <template v-else-if="pd.SOURCE=='5'">
<td colspan="3">安全环保检查(企业端)</td> <td colspan="3">安全环保检查(企业端)</td>
</template> </template>
<template v-else-if="pd.SOURCE=='8'">
<td colspan="3">点检隐患</td>
</template>
</tr> </tr>
<!--<tr> <!--<tr>
<td class="tbg">检查内容</td> <td class="tbg">检查内容</td>

View File

@ -22,6 +22,9 @@
<template v-else-if="pd.SOURCE=='5'"> <template v-else-if="pd.SOURCE=='5'">
<td colspan="3">安全环保检查(企业端)</td> <td colspan="3">安全环保检查(企业端)</td>
</template> </template>
<template v-else-if="pd.SOURCE=='8'">
<td colspan="3">点检隐患</td>
</template>
</tr> </tr>
<!--<tr> <!--<tr>
<td class="tbg">检查内容</td> <td class="tbg">检查内容</td>

View File

@ -11,6 +11,7 @@
<el-option value="4" label="安全环保检查(监管端)"/> <el-option value="4" label="安全环保检查(监管端)"/>
<el-option value="5" label="安全环保检查(企业端)"/> <el-option value="5" label="安全环保检查(企业端)"/>
<el-option value="6" label="消防点检"/> <el-option value="6" label="消防点检"/>
<el-option value="8" label="点检隐患"/>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -97,6 +98,9 @@
<span v-else-if="row.SOURCE=='6'"> <span v-else-if="row.SOURCE=='6'">
消防点检 消防点检
</span> </span>
<span v-else-if="row.SOURCE=='8'">
点检隐患
</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="HIDDENDESCR" label="隐患描述"/> <el-table-column prop="HIDDENDESCR" label="隐患描述"/>

View File

@ -18,6 +18,7 @@
<span v-else-if="row.SOURCE == 2">清单排查</span> <span v-else-if="row.SOURCE == 2">清单排查</span>
<span v-else-if="row.SOURCE == 4">安全环保检查(监管端)</span> <span v-else-if="row.SOURCE == 4">安全环保检查(监管端)</span>
<span v-else-if="row.SOURCE == 5">安全环保检查(企业端)</span> <span v-else-if="row.SOURCE == 5">安全环保检查(企业端)</span>
<span v-else-if="row.SOURCE == 8">点检隐患</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="HIDDENDESCR" label="隐患描述"/> <el-table-column prop="HIDDENDESCR" label="隐患描述"/>
@ -72,6 +73,7 @@
<template v-if="item.SOURCE == 2"></template> <template v-if="item.SOURCE == 2"></template>
<template v-if="item.SOURCE == 4">() </template> <template v-if="item.SOURCE == 4">() </template>
<template v-if="item.SOURCE == 5">() </template> <template v-if="item.SOURCE == 5">() </template>
<template v-if="item.SOURCE == 8"></template>
</td> </td>
<td>{{ item.HIDDENDESCR }}</td> <td>{{ item.HIDDENDESCR }}</td>
<td>{{ item.FINDUSER }}</td> <td>{{ item.FINDUSER }}</td>

View File

@ -11,6 +11,7 @@
<el-option :value="4" label="安全环保检查(监管端)"/> <el-option :value="4" label="安全环保检查(监管端)"/>
<el-option :value="5" label="安全环保检查(企业端)"/> <el-option :value="5" label="安全环保检查(企业端)"/>
<el-option :value="6" label="消防检查"/> <el-option :value="6" label="消防检查"/>
<el-option :value="8" label="点检隐患"/>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -158,6 +159,7 @@
<template v-else-if="row.SOURCE=='4'">安全环保检查(监管端) </template> <template v-else-if="row.SOURCE=='4'">安全环保检查(监管端) </template>
<template v-else-if="row.SOURCE=='5'">安全环保检查(企业端) </template> <template v-else-if="row.SOURCE=='5'">安全环保检查(企业端) </template>
<template v-else-if="row.SOURCE=='6'">消防检查 </template> <template v-else-if="row.SOURCE=='6'">消防检查 </template>
<template v-else-if="row.SOURCE=='8'">点检隐患 </template>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="HIDDENDESCR" label="隐患描述"/> <el-table-column prop="HIDDENDESCR" label="隐患描述"/>

View File

@ -25,6 +25,9 @@
<template v-else-if="pd.SOURCE=='6'"> <template v-else-if="pd.SOURCE=='6'">
<td colspan="3">消防检查</td> <td colspan="3">消防检查</td>
</template> </template>
<template v-else-if="pd.SOURCE=='8'">
<td colspan="3">点检隐患</td>
</template>
</tr> </tr>
<!--<tr> <!--<tr>
<td class="tbg">检查内容</td> <td class="tbg">检查内容</td>

View File

@ -9,6 +9,7 @@
<el-option :value="2" label="清单排查"/> <el-option :value="2" label="清单排查"/>
<el-option :value="4" label="安全环保检查(监管端)"/> <el-option :value="4" label="安全环保检查(监管端)"/>
<el-option :value="5" label="安全环保检查(企业端)"/> <el-option :value="5" label="安全环保检查(企业端)"/>
<el-option :value="8" label="点检隐患"/>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -117,6 +118,7 @@
<span v-if="row.SOURCE == 1"></span> <span v-if="row.SOURCE == 1"></span>
<span v-else-if="row.SOURCE == 4">安全环保检查(监管端)</span> <span v-else-if="row.SOURCE == 4">安全环保检查(监管端)</span>
<span v-else-if="row.SOURCE == 5">安全环保检查(企业端)</span> <span v-else-if="row.SOURCE == 5">安全环保检查(企业端)</span>
<span v-else-if="row.SOURCE == 8">点检隐患</span>
<span v-else></span> <span v-else></span>
</template> </template>
</el-table-column> </el-table-column>

View File

@ -23,6 +23,9 @@
<template v-else-if="pd.SOURCE=='5'"> <template v-else-if="pd.SOURCE=='5'">
安全环保检查(企业端) 安全环保检查(企业端)
</template> </template>
<template v-else-if="pd.SOURCE=='8'">
点检隐患
</template>
</td> </td>
</tr> </tr>
<tr> <tr>

View File

@ -9,6 +9,7 @@
<el-option :value="2" label="清单排查"/> <el-option :value="2" label="清单排查"/>
<el-option :value="4" label="安全环保检查(监管端)"/> <el-option :value="4" label="安全环保检查(监管端)"/>
<el-option :value="5" label="安全环保检查(企业端)"/> <el-option :value="5" label="安全环保检查(企业端)"/>
<el-option :value="8" label="点检隐患"/>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -82,6 +83,7 @@
<span v-if="row.SOURCE == 1"></span> <span v-if="row.SOURCE == 1"></span>
<span v-else-if="row.SOURCE == 4">安全环保检查(监管端)</span> <span v-else-if="row.SOURCE == 4">安全环保检查(监管端)</span>
<span v-else-if="row.SOURCE == 5">安全环保检查(企业端)</span> <span v-else-if="row.SOURCE == 5">安全环保检查(企业端)</span>
<span v-else-if="row.SOURCE == 8">点检隐患</span>
<span v-else></span> <span v-else></span>
</template> </template>
</el-table-column> </el-table-column>

View File

@ -23,6 +23,9 @@
<template v-else-if="pd.SOURCE=='5'"> <template v-else-if="pd.SOURCE=='5'">
安全环保检查(企业端) 安全环保检查(企业端)
</template> </template>
<template v-else-if="pd.SOURCE=='8'">
点检隐患
</template>
</td> </td>
</tr> </tr>
<tr> <tr>

View File

@ -20,6 +20,9 @@
<template v-else-if="pd.SOURCE=='6'"> <template v-else-if="pd.SOURCE=='6'">
<td>消防检查</td> <td>消防检查</td>
</template> </template>
<template v-else-if="pd.SOURCE=='8'">
<td>点检隐患</td>
</template>
</tr> </tr>
<tr> <tr>
<td class="tbg">隐患描述</td> <td class="tbg">隐患描述</td>

View File

@ -107,6 +107,7 @@
<template v-if="row.SOURCE =='2'"></template> <template v-if="row.SOURCE =='2'"></template>
<template v-if="row.SOURCE =='3'"></template> <template v-if="row.SOURCE =='3'"></template>
<template v-if="row.SOURCE =='6'"></template> <template v-if="row.SOURCE =='6'"></template>
<template v-if="row.SOURCE =='8'"></template>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="隐患描述" prop="HIDDENDESCR" > <el-table-column label="隐患描述" prop="HIDDENDESCR" >
@ -181,7 +182,8 @@ export default {
varList: [], varList: [],
hiddenSourceList: [ // 1- 2- hiddenSourceList: [ // 1- 2-
{ value: '1', label: '隐患快报' }, { value: '1', label: '隐患快报' },
{ value: '2', label: '清单排查' } { value: '2', label: '清单排查' },
{ value: '8', label: '点检隐患' }
], ],
statusList: [ statusList: [
{ ID: '14', NAME: '待验收' }, { ID: '14', NAME: '待验收' },

View File

@ -7,6 +7,7 @@
<el-select v-model="form.SOURCE" placeholder="隐患来源" clearable style="width: 100%" class="filter-item"> <el-select v-model="form.SOURCE" placeholder="隐患来源" clearable style="width: 100%" class="filter-item">
<el-option :value="1" label="隐患快报"/> <el-option :value="1" label="隐患快报"/>
<el-option :value="2" label="清单排查"/> <el-option :value="2" label="清单排查"/>
<el-option :value="8" label="点检隐患"/>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -139,6 +140,7 @@
<el-table-column prop="SOURCE" label="隐患来源"> <el-table-column prop="SOURCE" label="隐患来源">
<template slot-scope="{row}"> <template slot-scope="{row}">
<span v-if="row.SOURCE == 1"></span> <span v-if="row.SOURCE == 1"></span>
<span v-else-if="row.SOURCE == 8">点检隐患</span>
<span v-else></span> <span v-else></span>
</template> </template>
</el-table-column> </el-table-column>

View File

@ -17,6 +17,9 @@
<template v-else-if="pd.SOURCE=='3'"> <template v-else-if="pd.SOURCE=='3'">
清单排查 清单排查
</template> </template>
<template v-else-if="pd.SOURCE=='8'">
点检隐患
</template>
</td> </td>
</tr> </tr>
<tr v-if="pd.SOURCE=='2'"> <tr v-if="pd.SOURCE=='2'">

View File

@ -9,6 +9,7 @@
<el-option :value="2" label="清单排查"/> <el-option :value="2" label="清单排查"/>
<el-option :value="2" label="清单排查"/> <el-option :value="2" label="清单排查"/>
<el-option :value="6" label="消防检查"/> <el-option :value="6" label="消防检查"/>
<el-option :value="8" label="点检隐患"/>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -66,6 +67,7 @@
<span v-if="row.SOURCE == 2"></span> <span v-if="row.SOURCE == 2"></span>
<span v-if="row.SOURCE == 3"></span> <span v-if="row.SOURCE == 3"></span>
<span v-if="row.SOURCE == 6"></span> <span v-if="row.SOURCE == 6"></span>
<span v-if="row.SOURCE == 8"></span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="CREATORNAME" label="隐患发现人"/> <el-table-column prop="CREATORNAME" label="隐患发现人"/>

View File

@ -20,6 +20,9 @@
<template v-else-if="pd.SOURCE=='6'"> <template v-else-if="pd.SOURCE=='6'">
消防检查 消防检查
</template> </template>
<template v-else-if="pd.SOURCE=='8'">
点检隐患
</template>
</td> </td>
</tr> </tr>
<tr> <tr>

View File

@ -20,6 +20,9 @@
<template v-else-if="pd.SOURCE=='6'"> <template v-else-if="pd.SOURCE=='6'">
<td>消防检查</td> <td>消防检查</td>
</template> </template>
<template v-else-if="pd.SOURCE=='8'">
<td>点检隐患</td>
</template>
</tr> </tr>
<tr> <tr>
<td class="tbg">隐患描述</td> <td class="tbg">隐患描述</td>

View File

@ -107,6 +107,7 @@
<template v-if="row.SOURCE =='2'"></template> <template v-if="row.SOURCE =='2'"></template>
<template v-if="row.SOURCE =='3'"></template> <template v-if="row.SOURCE =='3'"></template>
<template v-if="row.SOURCE =='6'"></template> <template v-if="row.SOURCE =='6'"></template>
<template v-if="row.SOURCE =='8'"></template>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="隐患描述" prop="HIDDENDESCR" > <el-table-column label="隐患描述" prop="HIDDENDESCR" >
@ -178,7 +179,8 @@ export default {
varList: [], varList: [],
hiddenSourceList: [ // 1- 2- hiddenSourceList: [ // 1- 2-
{ value: '1', label: '隐患快报' }, { value: '1', label: '隐患快报' },
{ value: '2', label: '清单排查' } { value: '2', label: '清单排查' },
{ value: '8', label: '点检隐患' }
], ],
statusList: [ statusList: [
{ ID: '-2', NAME: '待确认' }, { ID: '-2', NAME: '待确认' },

View File

@ -17,6 +17,9 @@
<template v-else-if="pd.SOURCE=='3'"> <template v-else-if="pd.SOURCE=='3'">
<td>清单排查</td> <td>清单排查</td>
</template> </template>
<template v-else-if="pd.SOURCE=='8'">
<td>点检隐患</td>
</template>
</tr> </tr>
<tr> <tr>
<td class="tbg">隐患描述</td> <td class="tbg">隐患描述</td>

View File

@ -106,6 +106,7 @@
<template v-if="row.SOURCE =='1'"></template> <template v-if="row.SOURCE =='1'"></template>
<template v-if="row.SOURCE =='2'"></template> <template v-if="row.SOURCE =='2'"></template>
<template v-if="row.SOURCE =='3'"></template> <template v-if="row.SOURCE =='3'"></template>
<template v-if="row.SOURCE =='8'"></template>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="隐患描述" prop="HIDDENDESCR" > <el-table-column label="隐患描述" prop="HIDDENDESCR" >
@ -181,7 +182,8 @@ export default {
varList: [], varList: [],
hiddenSourceList: [ // 1- 2- hiddenSourceList: [ // 1- 2-
{ value: '1', label: '隐患快报' }, { value: '1', label: '隐患快报' },
{ value: '2', label: '清单排查' } { value: '2', label: '清单排查' },
{ value: '8', label: '点检隐患' }
], ],
statusList: [ statusList: [
{ ID: '13', NAME: '待整改' }, { ID: '13', NAME: '待整改' },

View File

@ -19,6 +19,9 @@
<template v-else-if="pd.SOURCE=='3'"> <template v-else-if="pd.SOURCE=='3'">
清单排查 清单排查
</template> </template>
<template v-else-if="pd.SOURCE=='8'">
点检隐患
</template>
</td> </td>
</tr> </tr>
<tr v-if="pd.SOURCE=='2'"> <tr v-if="pd.SOURCE=='2'">

View File

@ -72,6 +72,9 @@
<template v-else-if="row.SOURCE=='3'"> <template v-else-if="row.SOURCE=='3'">
<span class="label label-info">清单排查</span> <span class="label label-info">清单排查</span>
</template> </template>
<template v-else-if="row.SOURCE=='8'">
<span class="label label-info">点检隐患</span>
</template>
</template> </template>
</el-table-column> </el-table-column>
<!-- <el-table-column prop="TYPE_NAME" label="企业类型" />--> <!-- <el-table-column prop="TYPE_NAME" label="企业类型" />-->

View File

@ -19,6 +19,9 @@
<template v-else-if="pd.SOURCE=='3'"> <template v-else-if="pd.SOURCE=='3'">
清单排查 清单排查
</template> </template>
<template v-else-if="pd.SOURCE=='8'">
点检隐患
</template>
</td> </td>
</tr> </tr>
<tr> <tr>

View File

@ -28,6 +28,9 @@
<template v-else-if="pd.SOURCE=='5'"> <template v-else-if="pd.SOURCE=='5'">
<td>安全环保检查(企业端)</td> <td>安全环保检查(企业端)</td>
</template> </template>
<template v-else-if="pd.SOURCE=='8'">
<td>点检隐患</td>
</template>
</tr> </tr>
<tr> <tr>
<td class="tbg">隐患描述</td> <td class="tbg">隐患描述</td>

View File

@ -14,6 +14,7 @@
<!-- <el-option value="3" label="清单排查"/>--> <!-- <el-option value="3" label="清单排查"/>-->
<el-option value="4" label="安全环保检查(监管端)"/> <el-option value="4" label="安全环保检查(监管端)"/>
<el-option value="5" label="安全环保检查(企业端)"/> <el-option value="5" label="安全环保检查(企业端)"/>
<el-option value="8" label="点检隐患"/>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -111,6 +112,9 @@
<span v-else-if="row.SOURCE=='5'"> <span v-else-if="row.SOURCE=='5'">
安全环保检查(企业端) 安全环保检查(企业端)
</span> </span>
<span v-else-if="row.SOURCE=='8'">
点检隐患
</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="HIDDENDESCR" label="隐患描述"/> <el-table-column prop="HIDDENDESCR" label="隐患描述"/>

View File

@ -9,6 +9,7 @@
<!-- <el-option value="3" label="清单排查"/>--> <!-- <el-option value="3" label="清单排查"/>-->
<el-option value="4" label="安全环保检查(监管端)"/> <el-option value="4" label="安全环保检查(监管端)"/>
<el-option value="5" label="安全环保检查(企业端)"/> <el-option value="5" label="安全环保检查(企业端)"/>
<el-option value="8" label="点检隐患"/>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -87,6 +88,9 @@
<span v-else-if="row.SOURCE=='5'"> <span v-else-if="row.SOURCE=='5'">
安全环保检查(企业端) 安全环保检查(企业端)
</span> </span>
<span v-else-if="row.SOURCE=='8'">
点检隐患
</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="HIDDENDESCR" label="隐患描述"/> <el-table-column prop="HIDDENDESCR" label="隐患描述"/>

View File

@ -151,7 +151,8 @@ export default {
sourceState: { sourceState: {
1: 'AI报警', 1: 'AI报警',
4: '安全环保检查(监管端)', 4: '安全环保检查(监管端)',
5: '安全环保检查(企业端)' 5: '安全环保检查(企业端)',
8: '点检隐患'
}, },
state: { state: {
1: '未整改', 1: '未整改',
@ -161,7 +162,8 @@ export default {
SOURCEList: [ SOURCEList: [
{ ID: '1', NAME: 'AI报警' }, { ID: '1', NAME: 'AI报警' },
{ ID: '4', NAME: '安全环保检查(监管端)' }, { ID: '4', NAME: '安全环保检查(监管端)' },
{ ID: '5', NAME: '安全环保检查(企业端)' } { ID: '5', NAME: '安全环保检查(企业端)' },
{ ID: '8', NAME: '点检隐患' }
], ],
zList: [ zList: [
{ ID: '1', NAME: '未整改' }, { ID: '1', NAME: '未整改' },

View File

@ -27,6 +27,9 @@
<template v-else-if="pd.SOURCE=='6'"> <template v-else-if="pd.SOURCE=='6'">
<td>消防检查</td> <td>消防检查</td>
</template> </template>
<template v-else-if="pd.SOURCE=='8'">
<td>点检隐患</td>
</template>
</tr> </tr>
<tr> <tr>
<td class="tbg">隐患描述</td> <td class="tbg">隐患描述</td>

View File

@ -357,7 +357,8 @@ export default {
EMPLOYMENT_FORM: this.searchForm.EMPLOYMENT_FORM, EMPLOYMENT_FORM: this.searchForm.EMPLOYMENT_FORM,
SELECT_FORM: this.searchForm.SELECT_FORM, SELECT_FORM: this.searchForm.SELECT_FORM,
MAIN_DEP: JSON.parse(sessionStorage.getItem('user')).DEPARTMENT_ID, MAIN_DEP: JSON.parse(sessionStorage.getItem('user')).DEPARTMENT_ID,
CORP_TYPE: this.searchForm.CORP_TYPE CORP_TYPE: this.searchForm.CORP_TYPE,
canApprove: '1'
} }
).then((data) => { ).then((data) => {
this.listLoading = false this.listLoading = false

View File

@ -0,0 +1,520 @@
<template>
<div class="app-container">
<el-form label-width="130px" >
<el-row :gutter="24">
<el-col :span="6">
<el-form-item label="相关方单位名称">
<el-input v-model="KEYWORDS" style="width: 100%" placeholder="搜索相关方单位名称" />
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="开户时间">
<el-date-picker
v-model="date"
style="width: 100%"
type="daterange"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
format="yyyy-MM-dd"
value-format="yyyy-MM-dd"/>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="属地">
<el-cascader
ref="POSSESSION_SEARCH"
v-model="queryForm.POSSESSION"
:options="areaList"
:props="areaProps"
style="width: 100%"
placeholder="请选择属地"
@change="cascaderChange"/>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="集团单位">
<el-select v-model="queryForm.CORP_TYPE" style="width: 100%">
<el-option v-for="item in corpTypeList" :key="item.BIANMA" :label="item.NAME" :value="item.BIANMA"/>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="24">
<el-col :span="6">
<el-form-item label="股份主管部门">
<Treeselect
:options="treeData"
:normalizer="normalizer"
v-model="queryForm.MAIN_DEP"
placeholder="请选择主管部门"
no-options-text="请选择主管部门"
no-children-text="请选择主管部门"
style="width: 100%;"
/>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="基层单位主管部门">
<Treeselect
:options="treeDataSupervise"
:normalizer="normalizer"
v-model="queryForm.SUPERVISE_DEPARTMENT_ID"
placeholder="请选择基层单位主管部门"
no-options-text="请选择基层单位主管部门"
no-children-text="请选择基层单位主管部门"
style="width: 100%;"
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-button v-waves class="filter-item" type="primary" icon="el-icon-search" @click="getQuery">
搜索
</el-button>
<el-button v-waves class="filter-item" type="success" icon="el-icon-refresh" @click="resetSearch">
重置
</el-button>
<el-button v-waves class="filter-item" type="info" icon="el-icon-right" size="mini" plain @click="getDaochu">
导出全部数据
</el-button>
<el-button v-waves class="filter-item" type="info" icon="el-icon-right" size="mini" plain @click="getonly">
导出
</el-button>
</el-col>
</el-row>
</el-form>
<el-table
v-loading="listLoading"
ref="multipleTable"
:data="varList"
:row-key="getRowKey"
:header-cell-style="{
'font-weight': 'bold',
'color': '#000'
}"
:row-class-name="tableRowClassName"
tooltip-effect="dark"
border
fit
highlight-current-row
>
<el-table-column
:reserve-selection="true"
type="selection"
width="55"
align="center"/>
<el-table-column type="index" label="序号" width="50" align="center" />
<el-table-column prop="corpTypeName" label="集团单位" />
<el-table-column prop="RELEVANT_UNIT_NAME" label="相关方单位名称" />
<el-table-column label="属地">
<template slot-scope="{row}">
<span v-if="row.COMPANY_AREA">
{{ row.COMPANY_AREA.replaceAll(',',' ') }}
</span>
</template>
</el-table-column>
<el-table-column prop="MAIN_DEPARTMENT_NAME" label="股份主管部门" />
<el-table-column prop="MANAGER_DEPARTMENT_NAME" label="股份监管部门" />
<el-table-column prop="SUPERVISE_CORPINFO_DEPT_NAME" label="基层单位主管部门" show-overflow-tooltip/>
<el-table-column prop="COMPETENT_DEPT_NAME" label="基层单位监管部门" show-overflow-tooltip/>
<el-table-column prop="CREATOR_NAME" label="开户人员" />
<el-table-column :formatter="(row) => formatStateLabel(row)" prop="STATE" label="状态" />
<el-table-column label="操作" align="center" width="300">
<template slot-scope="{row}">
<el-button type="primary" icon="el-icon-edit" size="mini" @click="handleEdit(row)"></el-button>
<el-button type="warning" icon="el-icon-refresh" size="mini" @click="resetPassword(row)"></el-button>
<el-button type="danger" icon="el-icon-delete" size="mini" @click="deleteCorpInfo(row)"></el-button>
</template>
</el-table-column>
</el-table>
<div class="page-btn-group">
<div/>
<pagination :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList" />
</div>
</div>
</template>
<script>
import Pagination from '@/components/Pagination' // el-pagination
import { requestFN } from '@/utils/request'
import waves from '@/directive/waves' // waves directive
import SelectTree from '@/components/SelectTree'
import Treeselect from '@riophae/vue-treeselect'
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
export default {
components: { Pagination, SelectTree, Treeselect },
directives: { waves },
data() {
return {
normalizer(node) {
return {
id: node.id,
label: node.name,
children: node.nodes
}
},
config: config,
date: [],
startDate: '',
endDate: '',
treeData: [],
treeDataSupervise: [],
defaultProps: {
value: 'id',
children: 'nodes',
label: 'name'
},
DEPTIDS: '',
listLoading: true,
add: false,
del: false,
edit: false,
listQuery: {
page: 1,
limit: 20
},
total: 0,
KEYWORDS: '',
varList: [],
pd: [],
areaList: [], //
areaProps: {
lazy: true,
lazyLoad: async(node, resolve) => {
const resData = await this.getAreaDict(
(node.data && node.data.DICTIONARIES_ID) || 'e725d2a91b8248f4b8f49889038df7de'
)
const { level } = node
resolve(
resData.map((item) => {
return {
DICTIONARIES_ID: item.DICTIONARIES_ID,
BIANMA: item.BIANMA,
NAME: item.NAME,
leaf: level >= 3
}
})
)
},
value: 'BIANMA',
id: 'DICTIONARIES_ID',
label: 'NAME',
children: 'children',
checkStrictly: true
},
multipleSelectionAll: [], //
multipleSelection: [], //
dialogFormEdit: false,
queryForm: {
POSSESSION: '', //
MAIN_DEP: null, //
PROVINCE: '',
CITY: '',
COUNTY: '',
VILLAGE: '',
cteateDate: '',
CORP_TYPE: ''
},
corpTypeList: []
}
},
created() {
console.log(this.$data)
this.getList()
this.getDict()
this.getTreeList()
// this.ROLE_ID
},
methods: {
onChange(value) {
},
getTreeList() {
requestFN(
'/department/listTree/',
{}
).then((data) => {
this.treeData = JSON.parse(data.zTreeNodes)
}).catch((e) => {
})
},
async getAreaDict(DICTIONARIES_ID) {
const { list } = await requestFN(
'/xgf/dictionaries/getAreaLevels',
{
DICTIONARIES_ID
}
)
return list
},
cascaderChange(e) {
this.$nextTick(() => {
const dom = document.getElementsByClassName('el-radio is-checked')
const radioDom = dom[dom.length - 1]
const brother = radioDom.nextElementSibling
if (radioDom.getElementsByClassName('el-radio__original')[0].value.split(',').length < 4) {
brother.click()
}
})
},
tableRowClassName({ row, rowIndex }) {
var timeType = this.judgeTime(row.CREATTIME)
if (timeType == 1) {
return 'yellow-row'
} else if (timeType == 2) {
return 'red-row'
}
return ''
},
judgeTime(startTime) {
startTime = startTime.replace(/\-/g, '/')
var endTime = new Date()
var sTime = new Date(startTime) //
var eTime = new Date(endTime) //
var timeType = 1000 * 3600 * 24
var differDay = (eTime.getTime() - sTime.getTime()) / timeType
var nineMon = 270
var oneYear = 365
if (differDay >= oneYear) {
return 2
}
if (differDay >= nineMon) {
return 1
}
return 0
},
getRowKey(row) {
return row.CORPINFO_ID
},
//
getQuery() {
this.$refs.multipleTable.clearSelection()
this.getList()
},
//
getList() {
this.listLoading = true
if (this.date.length > 1) {
this.startDate = this.date[0] + ' ' + '00:00:00'
this.endDate = this.date[1] + ' ' + '23:59:59'
} else if (this.date.length == 1) {
this.startDate = this.date[0] + ' ' + '00:00:00'
}
requestFN(
'/relevantunits/getCorpInfoList?showCount=' + this.listQuery.limit + '&currentPage=' + this.listQuery.page,
{
KEYWORDS: this.KEYWORDS,
startDate: this.startDate,
endDate: this.endDate,
SUPERVISE_DEPARTMENT_ID: this.queryForm.SUPERVISE_DEPARTMENT_ID,
PROVINCE: this.queryForm.POSSESSION[0] || '',
CITY: this.queryForm.POSSESSION[1] || '',
COUNTY: this.queryForm.POSSESSION[2] || '',
VILLAGE: this.queryForm.POSSESSION[3] || '',
STREET: this.queryForm.POSSESSION[4] || '',
MAIN_DEP: this.queryForm.MAIN_DEP || JSON.parse(sessionStorage.getItem('user')).DEPARTMENT_ID,
CORP_TYPE: this.queryForm.CORP_TYPE,
TYPE: '1'
}
).then((data) => {
this.listLoading = false
this.varList = data.varList
this.total = data.page.totalResult
this.hasButton()
this.pd = data.pd
}).catch((e) => {
this.listLoading = false
})
},
//
hasButton: function() {
var keys = 'relevantunits:add,relevantunits:del,relevantunits:edit,toExcel'
requestFN(
'/head/hasButton',
{
keys: keys
}
).then((data) => {
this.add = data.corpinfofhadminadd //
this.del = data.corpinfofhadmindel //
this.edit = data.corpinfofhadminedit //
}).catch((e) => {
this.listLoading = false
})
},
//
goEditPage(ID) {
this.$parent.activeName = 'CorpInfoEdit'
this.$parent.CORPINFO_ID = ID
},
//
handleAdd() {
this.$parent.activeName = 'CorpInfoAdd'
},
//
handleEdit(row) {
this.$parent.CORPINFO_ID = row.CORPINFO_ID
this.$parent.activeName = 'CorpInfoEdit'
},
//
resetSearch() {
this.queryForm.POSSESSION = ''
this.queryForm.MAIN_DEP = null
this.queryForm.PROVINCE = ''
this.queryForm.CITY = ''
this.queryForm.SUPERVISE_DEPARTMENT_ID = null
this.queryForm.COUNTY = ''
this.queryForm.VILLAGE = ''
this.queryForm.cteateDate = ''
this.queryForm.CORP_TYPE = ''
this.date = []
this.KEYWORDS = ''
this.startDate = ''
this.endDate = ''
this.getList()
},
//
formatStateLabel(row) {
const status = row.STATE
if (status) {
if (status === '0') {
return '未填报'
} else if (status === '-1') {
return '未审核'
} else if (status === '1') {
return '待审核'
} else if (status === '2') {
return '审核通过'
} else if (status === '3') {
return '已打回'
} else if (status === '4') {
return '已填报'
}
}
return status
},
//
resetPassword(row) {
this.$confirm('确定重置该企业的密码?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.listLoading = true
requestFN(
'/relevantunits/resetPassword',
{
CORPINFO_ID: row.CORPINFO_ID,
RELEVANT_UNIT_NAME: row.RELEVANT_UNIT_NAME
}
).then(() => {
this.$message({
message: '重置成功',
type: 'success'
})
this.listLoading = false
this.getList()
}).catch((e) => {
this.listLoading = false
})
}).catch(() => {
})
},
//
deleteCorpInfo(row) {
this.$confirm('确定删除该企业吗?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.listLoading = true
requestFN(
'/xgf/corp/deleteCorpInfo',
{
CORPINFO_ID: row.CORPINFO_ID,
RELEVANT_UNIT_NAME: row.RELEVANT_UNIT_NAME
}
).then(() => {
this.$message({
message: '删除成功',
type: 'success'
})
this.listLoading = false
this.getList()
}).catch((e) => {
this.listLoading = false
})
}).catch(() => {
})
},
//
getonly() {
const _selectData = this.$refs.multipleTable.selection
if (_selectData == null || _selectData.length == 0) {
this.$message({
message: '请选中要导出的数据...',
type: 'error'
})
return false
}
const ids = _selectData.map((item, index) => {
return item.CORPINFO_ID
}).join(',')
this.$confirm('确定要导出到excel吗?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.listLoading = false
window.open(this.config.httpurl + '/relevantunits/excelAll?ids=' + ids)
}).catch(() => {
this.listLoading = false
})
this.listLoading = false
},
//
getDaochu() {
this.$confirm('确定要导出到excel吗?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.listLoading = false
window.open(this.config.httpurl + '/relevantunits/excelAll')
}).catch(() => {
this.listLoading = false
})
this.listLoading = false
},
//
getDict: function() {
requestFN(
'/corpDepartment/listTreeManageAndCorpHasOrder',
{}
).then((data) => {
const treeData = this.listTransTree(JSON.parse(data.zTreeNodes), 'id', 'pId', 'nodes')
this.treeDataSupervise = this.removeEmptyChildren(treeData)
}).catch((e) => {
})
requestFN(
'/xgf/dictionaries/getLevels',
{
DICTIONARIES_ID: '37d8385931f14bb0b962082cf6bb3395'
}
).then((data) => {
this.corpTypeList = data.list
})
}
}
}
</script>
<style>
.el-table .yellow-row {
background: #f8e71c;
}
.el-table .red-row {
background: #fc0221;
}
</style>

View File

@ -0,0 +1,24 @@
<template>
<component :is="activeName" />
</template>
<script>
import CorpInfoList from './components/corpInfoList'
import CorpInfoEdit from '../insert/components/corpInfoEdit'
export default {
components: {
CorpInfoList: CorpInfoList,
CorpInfoEdit: CorpInfoEdit
},
data() {
return {
activeName: 'CorpInfoList',
CORPINFO_ID: '',
USERNAME: JSON.parse(sessionStorage.getItem('user')).USERNAME
}
}
}
</script>
<style scoped>
</style>

View File

@ -0,0 +1,519 @@
<template>
<div class="app-container">
<el-form label-width="130px" >
<el-row :gutter="24">
<el-col :span="6">
<el-form-item label="相关方单位名称">
<el-input v-model="KEYWORDS" style="width: 100%" placeholder="搜索相关方单位名称" />
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="开户时间">
<el-date-picker
v-model="date"
style="width: 100%"
type="daterange"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
format="yyyy-MM-dd"
value-format="yyyy-MM-dd"/>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="属地">
<el-cascader
ref="POSSESSION_SEARCH"
v-model="queryForm.POSSESSION"
:options="areaList"
:props="areaProps"
style="width: 100%"
placeholder="请选择属地"
@change="cascaderChange"/>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="集团单位">
<el-select v-model="queryForm.CORP_TYPE" style="width: 100%">
<el-option v-for="item in corpTypeList" :key="item.BIANMA" :label="item.NAME" :value="item.BIANMA"/>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="24">
<el-col :span="6">
<el-form-item label="股份主管部门">
<Treeselect
:options="treeData"
:normalizer="normalizer"
v-model="queryForm.MAIN_DEP"
placeholder="请选择主管部门"
no-options-text="请选择主管部门"
no-children-text="请选择主管部门"
style="width: 100%;"
/>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="基层单位主管部门">
<Treeselect
:options="treeDataSupervise"
:normalizer="normalizer"
v-model="queryForm.SUPERVISE_DEPARTMENT_ID"
placeholder="请选择基层单位主管部门"
no-options-text="请选择基层单位主管部门"
no-children-text="请选择基层单位主管部门"
style="width: 100%;"
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-button v-waves class="filter-item" type="primary" icon="el-icon-search" @click="getQuery">
搜索
</el-button>
<el-button v-waves class="filter-item" type="success" icon="el-icon-refresh" @click="resetSearch">
重置
</el-button>
<el-button v-waves class="filter-item" type="info" icon="el-icon-right" size="mini" plain @click="getDaochu">
导出全部数据
</el-button>
<el-button v-waves class="filter-item" type="info" icon="el-icon-right" size="mini" plain @click="getonly">
导出
</el-button>
</el-col>
</el-row>
</el-form>
<el-table
v-loading="listLoading"
ref="multipleTable"
:data="varList"
:row-key="getRowKey"
:header-cell-style="{
'font-weight': 'bold',
'color': '#000'
}"
:row-class-name="tableRowClassName"
tooltip-effect="dark"
border
fit
highlight-current-row
>
<el-table-column
:reserve-selection="true"
type="selection"
width="55"
align="center"/>
<el-table-column type="index" label="序号" width="50" align="center" />
<el-table-column prop="corpTypeName" label="集团单位" />
<el-table-column prop="RELEVANT_UNIT_NAME" label="相关方单位名称" />
<el-table-column label="属地">
<template slot-scope="{row}">
<span v-if="row.COMPANY_AREA">
{{ row.COMPANY_AREA.replaceAll(',',' ') }}
</span>
</template>
</el-table-column>
<el-table-column prop="MAIN_DEPARTMENT_NAME" label="股份主管部门" />
<el-table-column prop="MANAGER_DEPARTMENT_NAME" label="股份监管部门" />
<el-table-column prop="SUPERVISE_CORPINFO_DEPT_NAME" label="基层单位主管部门" show-overflow-tooltip/>
<el-table-column prop="COMPETENT_DEPT_NAME" label="基层单位监管部门" show-overflow-tooltip/>
<el-table-column prop="CREATOR_NAME" label="开户人员" />
<el-table-column :formatter="(row) => formatStateLabel(row)" prop="STATE" label="状态" />
<el-table-column label="操作" align="center" width="300">
<template slot-scope="{row}">
<el-button type="primary" icon="el-icon-edit" size="mini" @click="handleEdit(row)"></el-button>
<el-button type="warning" icon="el-icon-refresh" size="mini" @click="resetPassword(row)"></el-button>
<el-button type="danger" icon="el-icon-delete" size="mini" @click="deleteCorpInfo(row)"></el-button>
</template>
</el-table-column>
</el-table>
<div class="page-btn-group">
<div/>
<pagination :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList" />
</div>
</div>
</template>
<script>
import Pagination from '@/components/Pagination' // el-pagination
import { requestFN } from '@/utils/request'
import waves from '@/directive/waves' // waves directive
import SelectTree from '@/components/SelectTree'
import Treeselect from '@riophae/vue-treeselect'
export default {
components: { Pagination, SelectTree, Treeselect },
directives: { waves },
data() {
return {
normalizer(node) {
return {
id: node.id,
label: node.name,
children: node.nodes
}
},
config: config,
date: [],
startDate: '',
endDate: '',
treeData: [],
treeDataSupervise: [],
defaultProps: {
value: 'id',
children: 'nodes',
label: 'name'
},
DEPTIDS: '',
listLoading: true,
add: false,
del: false,
edit: false,
listQuery: {
page: 1,
limit: 20
},
total: 0,
KEYWORDS: '',
varList: [],
pd: [],
areaList: [], //
areaProps: {
lazy: true,
lazyLoad: async(node, resolve) => {
const resData = await this.getAreaDict(
(node.data && node.data.DICTIONARIES_ID) || 'e725d2a91b8248f4b8f49889038df7de'
)
const { level } = node
resolve(
resData.map((item) => {
return {
DICTIONARIES_ID: item.DICTIONARIES_ID,
BIANMA: item.BIANMA,
NAME: item.NAME,
leaf: level >= 3
}
})
)
},
value: 'BIANMA',
id: 'DICTIONARIES_ID',
label: 'NAME',
children: 'children',
checkStrictly: true
},
multipleSelectionAll: [], //
multipleSelection: [], //
dialogFormEdit: false,
queryForm: {
POSSESSION: '', //
MAIN_DEP: null, //
PROVINCE: '',
CITY: '',
COUNTY: '',
VILLAGE: '',
cteateDate: '',
CORP_TYPE: ''
},
corpTypeList: []
}
},
created() {
console.log(this.$data)
this.getList()
this.getDict()
this.getTreeList()
// this.ROLE_ID
},
methods: {
onChange(value) {
},
getTreeList() {
requestFN(
'/department/listTree/',
{}
).then((data) => {
this.treeData = JSON.parse(data.zTreeNodes)
}).catch((e) => {
})
},
async getAreaDict(DICTIONARIES_ID) {
const { list } = await requestFN(
'/xgf/dictionaries/getAreaLevels',
{
DICTIONARIES_ID
}
)
return list
},
cascaderChange(e) {
this.$nextTick(() => {
const dom = document.getElementsByClassName('el-radio is-checked')
const radioDom = dom[dom.length - 1]
const brother = radioDom.nextElementSibling
if (radioDom.getElementsByClassName('el-radio__original')[0].value.split(',').length < 4) {
brother.click()
}
})
},
tableRowClassName({ row, rowIndex }) {
var timeType = this.judgeTime(row.CREATTIME)
if (timeType == 1) {
return 'yellow-row'
} else if (timeType == 2) {
return 'red-row'
}
return ''
},
judgeTime(startTime) {
startTime = startTime.replace(/\-/g, '/')
var endTime = new Date()
var sTime = new Date(startTime) //
var eTime = new Date(endTime) //
var timeType = 1000 * 3600 * 24
var differDay = (eTime.getTime() - sTime.getTime()) / timeType
var nineMon = 270
var oneYear = 365
if (differDay >= oneYear) {
return 2
}
if (differDay >= nineMon) {
return 1
}
return 0
},
getRowKey(row) {
return row.CORPINFO_ID
},
//
getQuery() {
this.$refs.multipleTable.clearSelection()
this.getList()
},
//
getList() {
this.listLoading = true
if (this.date.length > 1) {
this.startDate = this.date[0] + ' ' + '00:00:00'
this.endDate = this.date[1] + ' ' + '23:59:59'
} else if (this.date.length == 1) {
this.startDate = this.date[0] + ' ' + '00:00:00'
}
requestFN(
'/relevantunits/getCorpInfoList?showCount=' + this.listQuery.limit + '&currentPage=' + this.listQuery.page,
{
KEYWORDS: this.KEYWORDS,
startDate: this.startDate,
endDate: this.endDate,
SUPERVISE_DEPARTMENT_ID: this.queryForm.SUPERVISE_DEPARTMENT_ID,
PROVINCE: this.queryForm.POSSESSION[0] || '',
CITY: this.queryForm.POSSESSION[1] || '',
COUNTY: this.queryForm.POSSESSION[2] || '',
VILLAGE: this.queryForm.POSSESSION[3] || '',
STREET: this.queryForm.POSSESSION[4] || '',
MAIN_DEP: this.queryForm.MAIN_DEP || JSON.parse(sessionStorage.getItem('user')).DEPARTMENT_ID,
CORP_TYPE: this.queryForm.CORP_TYPE,
TYPE: '2'
}
).then((data) => {
this.listLoading = false
this.varList = data.varList
this.total = data.page.totalResult
this.hasButton()
this.pd = data.pd
}).catch((e) => {
this.listLoading = false
})
},
//
hasButton: function() {
var keys = 'relevantunits:add,relevantunits:del,relevantunits:edit,toExcel'
requestFN(
'/head/hasButton',
{
keys: keys
}
).then((data) => {
this.add = data.corpinfofhadminadd //
this.del = data.corpinfofhadmindel //
this.edit = data.corpinfofhadminedit //
}).catch((e) => {
this.listLoading = false
})
},
//
goEditPage(ID) {
this.$parent.activeName = 'CorpInfoEdit'
this.$parent.CORPINFO_ID = ID
},
//
handleAdd() {
this.$parent.activeName = 'CorpInfoAdd'
},
//
handleEdit(row) {
this.$parent.CORPINFO_ID = row.CORPINFO_ID
this.$parent.activeName = 'CorpInfoEdit'
},
//
resetSearch() {
this.queryForm.POSSESSION = ''
this.queryForm.MAIN_DEP = null
this.queryForm.PROVINCE = ''
this.queryForm.CITY = ''
this.queryForm.SUPERVISE_DEPARTMENT_ID = null
this.queryForm.COUNTY = ''
this.queryForm.VILLAGE = ''
this.queryForm.cteateDate = ''
this.queryForm.CORP_TYPE = ''
this.date = []
this.KEYWORDS = ''
this.startDate = ''
this.endDate = ''
this.getList()
},
//
formatStateLabel(row) {
const status = row.STATE
if (status) {
if (status === '0') {
return '未填报'
} else if (status === '-1') {
return '未审核'
} else if (status === '1') {
return '待审核'
} else if (status === '2') {
return '审核通过'
} else if (status === '3') {
return '已打回'
} else if (status === '4') {
return '已填报'
}
}
return status
},
//
resetPassword(row) {
this.$confirm('确定重置该企业的密码?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.listLoading = true
requestFN(
'/relevantunits/resetPassword',
{
CORPINFO_ID: row.CORPINFO_ID,
RELEVANT_UNIT_NAME: row.RELEVANT_UNIT_NAME
}
).then(() => {
this.$message({
message: '重置成功',
type: 'success'
})
this.listLoading = false
this.getList()
}).catch((e) => {
this.listLoading = false
})
}).catch(() => {
})
},
//
deleteCorpInfo(row) {
this.$confirm('确定删除该企业吗?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.listLoading = true
requestFN(
'/xgf/corp/deleteCorpInfo',
{
CORPINFO_ID: row.CORPINFO_ID,
RELEVANT_UNIT_NAME: row.RELEVANT_UNIT_NAME
}
).then(() => {
this.$message({
message: '删除成功',
type: 'success'
})
this.listLoading = false
this.getList()
}).catch((e) => {
this.listLoading = false
})
}).catch(() => {
})
},
//
getonly() {
const _selectData = this.$refs.multipleTable.selection
if (_selectData == null || _selectData.length == 0) {
this.$message({
message: '请选中要导出的数据...',
type: 'error'
})
return false
}
const ids = _selectData.map((item, index) => {
return item.CORPINFO_ID
}).join(',')
this.$confirm('确定要导出到excel吗?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.listLoading = false
window.open(this.config.httpurl + '/relevantunits/excelAll?ids=' + ids)
}).catch(() => {
this.listLoading = false
})
this.listLoading = false
},
//
getDaochu() {
this.$confirm('确定要导出到excel吗?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.listLoading = false
window.open(this.config.httpurl + '/relevantunits/excelAll')
}).catch(() => {
this.listLoading = false
})
this.listLoading = false
},
//
getDict: function() {
requestFN(
'/corpDepartment/listTreeManageAndCorpHasOrder',
{}
).then((data) => {
const treeData = this.listTransTree(JSON.parse(data.zTreeNodes), 'id', 'pId', 'nodes')
this.treeDataSupervise = this.removeEmptyChildren(treeData)
}).catch((e) => {
})
requestFN(
'/xgf/dictionaries/getLevels',
{
DICTIONARIES_ID: '37d8385931f14bb0b962082cf6bb3395'
}
).then((data) => {
this.corpTypeList = data.list
})
}
}
}
</script>
<style>
.el-table .yellow-row {
background: #f8e71c;
}
.el-table .red-row {
background: #fc0221;
}
</style>

View File

@ -0,0 +1,24 @@
<template>
<component :is="activeName" />
</template>
<script>
import CorpInfoList from './components/corpInfoList'
import CorpInfoEdit from '../insert/components/corpInfoEdit'
export default {
components: {
CorpInfoList: CorpInfoList,
CorpInfoEdit: CorpInfoEdit
},
data() {
return {
activeName: 'CorpInfoList',
CORPINFO_ID: '',
USERNAME: JSON.parse(sessionStorage.getItem('user')).USERNAME
}
}
}
</script>
<style scoped>
</style>

View File

@ -80,6 +80,15 @@
<el-input id="CREATOR" ref="CREATOR" v-model="CREATOR_NAME" maxlength="50" placeholder="开户人" title="开户人" disabled/> <el-input id="CREATOR" ref="CREATOR" v-model="CREATOR_NAME" maxlength="50" placeholder="开户人" title="开户人" disabled/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12">
<el-form-item label="企业类型" prop="CREATOR">
<el-select v-model="form.TYPE" clearable style="width: 100%">
<el-option label="驻港企业" value="1"/>
<el-option label="货主企业" value="2"/>
</el-select>
<h style="color: red;font-size: 10px">注意若相关方企业类型为驻港货主时该企业的所有信息将不会被统计在相关方统计中仅在对应的统计功能中展示</h>
</el-form-item>
</el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
@ -354,7 +363,8 @@ export default {
CITY: '', CITY: '',
COUNTY: '', COUNTY: '',
VILLAGE: '', VILLAGE: '',
INDUSTRYALL: '' INDUSTRYALL: '',
TYPE: ''
}, },
hylxList: [], // (GB-T4754-2017) hylxList: [], // (GB-T4754-2017)
dialogImageUrl: '', // dialogImageUrl: '', //

View File

@ -83,6 +83,14 @@
<el-input id="CREATOR" ref="CREATOR" v-model="CREATOR_NAME" maxlength="50" placeholder="开户人" title="开户人" disabled/> <el-input id="CREATOR" ref="CREATOR" v-model="CREATOR_NAME" maxlength="50" placeholder="开户人" title="开户人" disabled/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12">
<el-form-item label="企业类型" prop="CREATOR">
<el-select v-model="form.TYPE" clearable style="width: 100%">
<el-option label="驻港企业" value="1"/>
<el-option label="货主企业" value="2"/>
</el-select>
</el-form-item>
</el-col>
</el-row> </el-row>
<el-row :gutter="24"> <el-row :gutter="24">
<el-col :span="12"> <el-col :span="12">
@ -232,7 +240,6 @@ export default {
{ {
RELEVANT_UNIT_NAME: value, RELEVANT_UNIT_NAME: value,
CORPINFO_ID: this.$parent.CORPINFO_ID CORPINFO_ID: this.$parent.CORPINFO_ID
} }
).then((data) => { ).then((data) => {
if (data.pd) { if (data.pd) {
@ -370,7 +377,8 @@ export default {
CITY: '', CITY: '',
COUNTY: '', COUNTY: '',
VILLAGE: '', VILLAGE: '',
INDUSTRYALL: '' INDUSTRYALL: '',
TYPE: ''
}, },
hylxList: [], // (GB-T4754-2017) hylxList: [], // (GB-T4754-2017)
dialogImageUrl: '', // dialogImageUrl: '', //

View File

@ -23,6 +23,9 @@
<template v-else-if="pd.SOURCE=='5'"> <template v-else-if="pd.SOURCE=='5'">
<td>安全环保检查企业端</td> <td>安全环保检查企业端</td>
</template> </template>
<template v-else-if="pd.SOURCE=='8'">
<td>点检隐患</td>
</template>
</tr> </tr>
<tr> <tr>
<td class="tbg">隐患描述</td> <td class="tbg">隐患描述</td>

View File

@ -14,6 +14,9 @@
<template v-else-if="pd.SOURCE=='5'"> <template v-else-if="pd.SOURCE=='5'">
<td>安全环保检查(企业端)</td> <td>安全环保检查(企业端)</td>
</template> </template>
<template v-else-if="pd.SOURCE=='8'">
<td>点检隐患</td>
</template>
</tr> </tr>
<tr> <tr>
<td class="tbg">位置</td> <td class="tbg">位置</td>

View File

@ -42,6 +42,8 @@
<el-table-column prop="USERNAME" label="用户名" align="center"/> <el-table-column prop="USERNAME" label="用户名" align="center"/>
<el-table-column prop="NAME" label="姓名" align="center"/> <el-table-column prop="NAME" label="姓名" align="center"/>
<el-table-column prop="BELONG_TO_CORP_NAME" label="外派公司名称" align="center"/> <el-table-column prop="BELONG_TO_CORP_NAME" label="外派公司名称" align="center"/>
<el-table-column prop="VALIDITY_PERIOD_START" label="培训有效期开始时间" align="center"/>
<el-table-column prop="VALIDITY_PERIOD_END" label="培训有效期结束时间" align="center"/>
<el-table-column label="操作" align="center" width="300"> <el-table-column label="操作" align="center" width="300">
<template slot-scope="{row}"> <template slot-scope="{row}">
<el-row> <el-row>

View File

@ -59,6 +59,8 @@
<el-table-column prop="BELONG_TO_CORP_NAME" label="外派公司名称" align="center"/> <el-table-column prop="BELONG_TO_CORP_NAME" label="外派公司名称" align="center"/>
<el-table-column prop="STUDY_STATUS_NAME" label="培训状态" align="center"/> <el-table-column prop="STUDY_STATUS_NAME" label="培训状态" align="center"/>
<el-table-column prop="CHECK_STATUS_NAME" label="审核状态" align="center"/> <el-table-column prop="CHECK_STATUS_NAME" label="审核状态" align="center"/>
<el-table-column prop="VALIDITY_PERIOD_START" label="培训有效期开始时间" align="center"/>
<el-table-column prop="VALIDITY_PERIOD_END" label="培训有效期结束时间" align="center"/>
<el-table-column label="操作" align="center" width="350"> <el-table-column label="操作" align="center" width="350">
<template slot-scope="{row}"> <template slot-scope="{row}">
<el-button type="primary" icon="el-icon-edit" size="mini" @click="handleShow(row)"></el-button> <el-button type="primary" icon="el-icon-edit" size="mini" @click="handleShow(row)"></el-button>

View File

@ -29,6 +29,9 @@
<template v-else-if="pd.SOURCE=='3'"> <template v-else-if="pd.SOURCE=='3'">
清单排查 清单排查
</template> </template>
<template v-else-if="pd.SOURCE=='8'">
点检隐患
</template>
</div> </div>
</div> </div>
<div v-if="pd.SOURCE=='2'" class="base-cell"> <div v-if="pd.SOURCE=='2'" class="base-cell">

View File

@ -29,6 +29,9 @@
<template v-else-if="pd.SOURCE=='3'"> <template v-else-if="pd.SOURCE=='3'">
清单排查 清单排查
</template> </template>
<template v-else-if="pd.SOURCE=='8'">
点检隐患
</template>
</div> </div>
</div> </div>
<div v-if="pd.SOURCE=='2'" class="base-cell"> <div v-if="pd.SOURCE=='2'" class="base-cell">