修改api
parent
246fe752e4
commit
5949a50f78
|
@ -28,7 +28,7 @@ export const getInspectors = (params) => post("/AppUser/listAllManageAndCorp", {
|
|||
export const getHiddenLevel = () => post("/app/dictionaries/listSelectTree", {loading: false, DICTIONARIES_ID: '5e7cf8620ba54ad89719d0be62133c7a'}) //获取隐患级别
|
||||
export const getHiddenType = () => post("/app/dictionaries/listSelectTree", {loading: false, DICTIONARIES_ID: '3babc15144444bdc8d763d0af2bdfff6'}) //获取隐患类型
|
||||
export const getInspectionType = () => post("/app/dictionaries/listSelectTree", {loading: false, DICTIONARIES_ID: '60e6481d96e44a5390ff5c347c4d1ffe'}) //获取检查类型
|
||||
export const getSafetyenvironmentalinspectorList = (params) => post("/app/safetyenvironmentalinspector/list", params) //安全环保检查检查人确认列表
|
||||
export const getSafetyenvironmentalinspectorList = (params) => post("/inspection/safety/environmental/query/app/page", params) //安全环保检查检查人确认列表
|
||||
export const setSafetyenvironmentalVerify = (params) => upload("/app/safetyenvironmentalinspector/verify", params) //安全环保检查检查人确认
|
||||
export const getCorpInfoList = (params) => post("/app/corpinfo/listRetrieval", params) //分公司信息列表
|
||||
export const getCorpInfoGoEdit = (params) => post("/app/corpinfo/goMessage", params) //分公司信息查看
|
||||
|
|
|
@ -389,7 +389,6 @@ export default {
|
|||
return;
|
||||
}
|
||||
}
|
||||
console.log(this.form.INSPECTION_USER_SIGN_IMG)
|
||||
await setSafetyenvironmentalVerify({
|
||||
filePath: this.form.INSPECTION_USER_SIGN_IMG,
|
||||
name: 'FFILE',
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
prefixIcon="search"
|
||||
placeholder="请输入关键字"
|
||||
border="surround"
|
||||
v-model="keyword"
|
||||
v-model="companyName"
|
||||
clearable
|
||||
shape="circle"
|
||||
></u--input>
|
||||
|
@ -18,40 +18,40 @@
|
|||
<u-list-item v-for="(item, index) in list" :key="index">
|
||||
<view>
|
||||
<view class="flex-between main-title">
|
||||
<text>被检查单位:{{ item.INSPECTED_CORPINFO_ID_NAME }}</text>
|
||||
<text>被检查单位:{{ item.inspectedCorpName }}</text>
|
||||
</view>
|
||||
<view class="flex-between mt-10 subtitle">
|
||||
<text>检查发起人:{{ item.INSPECTION_ORIGINATOR_NAME }}</text>
|
||||
<text>检查类型:{{ item.INSPECTION_TYPE_NAME }}</text>
|
||||
<text>检查发起人:{{ item.inspectionOriginatorUserName }}</text>
|
||||
<text>检查类型:{{ item.inspectionTypeName }}</text>
|
||||
</view>
|
||||
<view class="flex-between mt-10 subtitle">
|
||||
<text>检查时间:自 {{ item.INSPECTION_TIME_START }} 至 {{ item.INSPECTION_TIME_END }} 止</text>
|
||||
<text>检查时间:自 {{ item.inspectionTimeStart }} 至 {{ item.inspectionTimeEnd }} 止</text>
|
||||
</view>
|
||||
<view class="flex-between mt-10 subtitle">
|
||||
<text>
|
||||
状态:
|
||||
<template v-if="item.INSPECTION_STATUS === '0'">待检查人核实</template>
|
||||
<template v-else-if="item.INSPECTION_STATUS === '1'">检查人核实中</template>
|
||||
<template v-else-if="item.INSPECTION_STATUS === '2'">待被检查人确认</template>
|
||||
<template v-else-if="item.INSPECTION_STATUS === '3'">待指派</template>
|
||||
<template v-else-if="item.INSPECTION_STATUS === '4'">指派中</template>
|
||||
<template v-else-if="item.INSPECTION_STATUS === '5'">指派完成</template>
|
||||
<template v-else-if="item.INSPECTION_STATUS === '6'">检查待验收</template>
|
||||
<template v-else-if="item.INSPECTION_STATUS === '7'">检查已验收</template>
|
||||
<template v-else-if="item.INSPECTION_STATUS === '8'">已归档</template>
|
||||
<template v-else-if="item.INSPECTION_STATUS === '-1'">检查人核实打回</template>
|
||||
<template v-else-if="item.INSPECTION_STATUS === '-2'">被检查人申辩</template>
|
||||
<template v-if="item.inspectionStatus === '0'">待检查人核实</template>
|
||||
<template v-else-if="item.inspectionStatus === '1'">检查人核实中</template>
|
||||
<template v-else-if="item.inspectionStatus === '2'">待被检查人确认</template>
|
||||
<template v-else-if="item.inspectionStatus === '3'">待指派</template>
|
||||
<template v-else-if="item.inspectionStatus === '4'">指派中</template>
|
||||
<template v-else-if="item.inspectionStatus === '5'">指派完成</template>
|
||||
<template v-else-if="item.inspectionStatus === '6'">检查待验收</template>
|
||||
<template v-else-if="item.inspectionStatus === '7'">检查已验收</template>
|
||||
<template v-else-if="item.inspectionStatus === '8'">已归档</template>
|
||||
<template v-else-if="item.inspectionStatus === '-1'">检查人核实打回</template>
|
||||
<template v-else-if="item.inspectionStatus === '-2'">被检查人申辩</template>
|
||||
</text>
|
||||
</view>
|
||||
<view class="flex-end mt-10">
|
||||
<view class="see_btn">
|
||||
<u-button type="primary" text="查看" size="mini"
|
||||
@click="fnNavigatorDetail(item.INSPECTION_ID,item.INSPECTION_USER_ID,item.INSPECTION_INSPECTOR_ID,'view')"></u-button>
|
||||
@click="fnNavigatorDetail(item.inspectionId,item.inspectionUserId,item.inspectionInspectorId,'view')"></u-button>
|
||||
</view>
|
||||
<view class="see_btn ml-10"
|
||||
v-if="!validStr(item.INSPECTION_USER_SIGN_TIME) && (item.INSPECTION_STATUS === '0' || item.INSPECTION_STATUS === '1')">
|
||||
v-if="!validStr(item.inspectionUserSignTime) && (item.inspectionStatus === '0' || item.inspectionStatus === '1')">
|
||||
<u-button type="primary" text="核实" size="mini"
|
||||
@click="fnNavigatorDetail(item.INSPECTION_ID,item.INSPECTION_USER_ID,item.INSPECTION_INSPECTOR_ID,'verify')"></u-button>
|
||||
@click="fnNavigatorDetail(item.inspectionId,item.inspectionUserId,item.inspectionInspectorId,'verify')"></u-button>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
@ -68,7 +68,7 @@ import {getSafetyenvironmentalinspectorList} from "@/api";
|
|||
export default {
|
||||
data() {
|
||||
return {
|
||||
keyword: '',
|
||||
companyName: '',
|
||||
INSPECTION_STATUS: '',
|
||||
pageSize: 10,
|
||||
currentPage: 1,
|
||||
|
@ -92,14 +92,14 @@ export default {
|
|||
return false
|
||||
},
|
||||
async getData() {
|
||||
let resData = await getSafetyenvironmentalinspectorList({
|
||||
INSPECTION_USER_ID: this.userInfo.USER_ID,
|
||||
KEYWORDS: this.keyword,
|
||||
let { varList,page } = await getSafetyenvironmentalinspectorList({
|
||||
companyName: this.companyName,
|
||||
showCount: this.pageSize,
|
||||
currentPage: this.currentPage,
|
||||
pageType: "inspector",
|
||||
});
|
||||
this.list = [...this.list, ...resData.varList];
|
||||
this.totalPage = resData.page.totalPage;
|
||||
this.list = [...this.list, ...varList];
|
||||
this.totalPage = page.totalPage;
|
||||
},
|
||||
resetList() {
|
||||
this.pageSize = 10
|
||||
|
|
Loading…
Reference in New Issue