Compare commits
8 Commits
6ca59939b0
...
ba72e50421
| Author | SHA1 | Date |
|---|---|---|
|
|
ba72e50421 | |
|
|
ae2a7c28af | |
|
|
b32ed7f9dc | |
|
|
04f46009e0 | |
|
|
56ab9c0b01 | |
|
|
f4221acc74 | |
|
|
97c933d60b | |
|
|
eae8982e0e |
|
|
@ -1,6 +1,2 @@
|
||||||
/.hbuilderx/
|
|
||||||
/.idea/
|
/.idea/
|
||||||
/node_modules/
|
/.hbuilderx/
|
||||||
/unpackage/
|
|
||||||
/package-lock.json
|
|
||||||
/integrated_traffic_uniapp.iml
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
QA-UniApp
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="17" project-jdk-type="JavaSDK">
|
||||||
|
<output url="file://$PROJECT_DIR$/classes" />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectModuleManager">
|
||||||
|
<modules>
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/UniApp_integrated_whb.iml" filepath="$PROJECT_DIR$/UniApp_integrated_whb.iml" />
|
||||||
|
</modules>
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="" vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
|
// export var basePath = "http://192.168.0.42:8099/";
|
||||||
// export var basePath = "http://192.168.0.16:7082/";
|
export var basePath = "http://192.168.0.49:8099/";
|
||||||
// export var basePath = "http://192.168.0.30:7082/";
|
// export var basePath = "https://gateway.qhdsafety.com/";
|
||||||
// export var basePath = "http://192.168.20.240:8412/integrated_traffic/";
|
|
||||||
export var basePath = "http://39.101.166.211:8073/integrated_traffic/";
|
|
||||||
export const baseImgPath = "https://file.zcloudchina.com/YTHFile";
|
export const baseImgPath = "https://file.zcloudchina.com/YTHFile";
|
||||||
export const adminPath = "http://192.168.0.18:8085";
|
export const adminPath = "http://192.168.0.18:8085";
|
||||||
export const projectManagerUrl = 'https://pm.qhdsafety.com/zy-projectManage/';
|
export const projectManagerUrl = 'https://pm.qhdsafety.com/zy-projectManage/';
|
||||||
|
|
@ -14,7 +12,7 @@ export var corpinfoId = ''; //
|
||||||
export var loginUserId = '';
|
export var loginUserId = '';
|
||||||
export var loginUser = '';
|
export var loginUser = '';
|
||||||
export function loginSession() {
|
export function loginSession() {
|
||||||
if ('' == loginUserId || undefined == loginUserId ||
|
if ('' == corpinfoId || undefined == corpinfoId || '' == loginUserId || undefined == loginUserId ||
|
||||||
'' == loginUser || undefined == loginUser) {
|
'' == loginUser || undefined == loginUser) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/login/home',
|
url: '/pages/login/home',
|
||||||
|
|
@ -112,76 +110,6 @@ function noMultipleClicks(methods, e) {
|
||||||
console.log("请稍后点击")
|
console.log("请稍后点击")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 验证身份证号码
|
|
||||||
*/
|
|
||||||
export function validateIdCard(value) {
|
|
||||||
return /^\d{6}(18|19|20)?\d{2}(0[1-9]|1[0-2])(([0-2][1-9])|10|20|30|31)\d{3}(\d|X|x)$/.test(
|
|
||||||
value
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 验证手机格式
|
|
||||||
*/
|
|
||||||
export function validateMobile(value) {
|
|
||||||
return /^(?:(?:\+|00)86)?1(?:(?:3[\d])|(?:4[5-79])|(?:5[0-35-9])|(?:6[5-7])|(?:7[0-8])|(?:8[\d])|(?:9[189]))\d{8}$/.test(value)
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
//获取数据字典数据
|
|
||||||
export async function getLevel(dataParams) {
|
|
||||||
const list = await sendPost(dataParams, '/dictionaries/getDictList')
|
|
||||||
return list
|
|
||||||
}
|
|
||||||
//获取数据字典数据(3级字典)
|
|
||||||
export async function getLevelCustom(dataParams) {
|
|
||||||
const list = await sendPost(dataParams, '/dictionaries/getLevelCustom')
|
|
||||||
return list
|
|
||||||
}
|
|
||||||
|
|
||||||
export async function listCorpAll(dataParams) {
|
|
||||||
const list = await sendPost(dataParams, '/app/corpinfo/listAll')
|
|
||||||
return list
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 获取字典
|
|
||||||
*/
|
|
||||||
async function sendPost(dataParams, url) {
|
|
||||||
let resData = await uni.request({
|
|
||||||
method: 'POST',
|
|
||||||
dataType: 'json',
|
|
||||||
header: {
|
|
||||||
'Content-type': 'application/x-www-form-urlencoded'
|
|
||||||
},
|
|
||||||
url: basePath + url,
|
|
||||||
data: dataParams
|
|
||||||
})
|
|
||||||
return resData[1].data.list
|
|
||||||
}
|
|
||||||
|
|
||||||
export async function checkIdCard(dataParams) {
|
|
||||||
const data = await getData(dataParams, '/app/user/hasUserIdCard')
|
|
||||||
return data
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 获取字典
|
|
||||||
*/
|
|
||||||
async function getData(dataParams, url) {
|
|
||||||
let resData = await uni.request({
|
|
||||||
method: 'POST',
|
|
||||||
dataType: 'json',
|
|
||||||
header: {
|
|
||||||
'Content-type': 'application/x-www-form-urlencoded'
|
|
||||||
},
|
|
||||||
url: basePath + url,
|
|
||||||
data: dataParams
|
|
||||||
})
|
|
||||||
return resData[1].data
|
|
||||||
}
|
|
||||||
//导出
|
//导出
|
||||||
export default {
|
export default {
|
||||||
noMultipleClicks, //禁止多次点击
|
noMultipleClicks, //禁止多次点击
|
||||||
|
|
|
||||||
|
|
@ -1,162 +1,117 @@
|
||||||
{
|
{
|
||||||
"name": "integrated_traffic_uniapp",
|
|
||||||
"lockfileVersion": 3,
|
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"lockfileVersion": 1,
|
||||||
"": {
|
"dependencies": {
|
||||||
"dependencies": {
|
"@babel/parser": {
|
||||||
"@dcloudio/uni-ui": "^1.5.0",
|
|
||||||
"moment": "^2.29.4",
|
|
||||||
"vue-aliplayer": "^1.0.0"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"@types/html5plus": "^1.0.2",
|
|
||||||
"@types/uni-app": "^1.4.4"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@babel/parser": {
|
|
||||||
"version": "7.23.6",
|
"version": "7.23.6",
|
||||||
"resolved": "https://registry.npmmirror.com/@babel/parser/-/parser-7.23.6.tgz",
|
"resolved": "https://registry.npmmirror.com/@babel/parser/-/parser-7.23.6.tgz",
|
||||||
"integrity": "sha512-Z2uID7YJ7oNvAI20O9X0bblw7Qqs8Q2hFy0R9tAfnfLkp5MW0UH9eUvnDSnFwKZ0AvgS1ucqR4KzvVHgnke1VQ==",
|
"integrity": "sha512-Z2uID7YJ7oNvAI20O9X0bblw7Qqs8Q2hFy0R9tAfnfLkp5MW0UH9eUvnDSnFwKZ0AvgS1ucqR4KzvVHgnke1VQ==",
|
||||||
"dev": true,
|
"dev": true
|
||||||
"bin": {
|
|
||||||
"parser": "bin/babel-parser.js"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=6.0.0"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"node_modules/@dcloudio/uni-ui": {
|
"@dcloudio/uni-ui": {
|
||||||
"version": "1.5.0",
|
"version": "1.5.0",
|
||||||
"resolved": "https://registry.npmmirror.com/@dcloudio/uni-ui/-/uni-ui-1.5.0.tgz",
|
"resolved": "https://registry.npmmirror.com/@dcloudio/uni-ui/-/uni-ui-1.5.0.tgz",
|
||||||
"integrity": "sha512-E7D37VbRZeh1E2yzrIie8psBckIrErdkUbUA751rlG8zdioGovW3zOuUsKgY+Gh7csMvi6XMEoSacvboe8o4Gw=="
|
"integrity": "sha512-E7D37VbRZeh1E2yzrIie8psBckIrErdkUbUA751rlG8zdioGovW3zOuUsKgY+Gh7csMvi6XMEoSacvboe8o4Gw=="
|
||||||
},
|
},
|
||||||
"node_modules/@types/html5plus": {
|
"@types/html5plus": {
|
||||||
"version": "1.0.5",
|
"version": "1.0.5",
|
||||||
"resolved": "https://registry.npmmirror.com/@types/html5plus/-/html5plus-1.0.5.tgz",
|
"resolved": "https://registry.npmmirror.com/@types/html5plus/-/html5plus-1.0.5.tgz",
|
||||||
"integrity": "sha512-qt5z+3WYkARL/rWnJRcB2fCDOZLKa/hEOkse9sjA6FFkXZtKb+OPxKqo8bDgix4+ufahOff0adarVfaUaK1mfw==",
|
"integrity": "sha512-qt5z+3WYkARL/rWnJRcB2fCDOZLKa/hEOkse9sjA6FFkXZtKb+OPxKqo8bDgix4+ufahOff0adarVfaUaK1mfw==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/@types/uni-app": {
|
"@types/uni-app": {
|
||||||
"version": "1.4.8",
|
"version": "1.4.8",
|
||||||
"resolved": "https://registry.npmmirror.com/@types/uni-app/-/uni-app-1.4.8.tgz",
|
"resolved": "https://registry.npmmirror.com/@types/uni-app/-/uni-app-1.4.8.tgz",
|
||||||
"integrity": "sha512-plxwi9MvGDrekCsDKuNlCN3ZXIv9zkqHsKZJOsc8FQqLSHveDBOm11qOaswe4QyNWVHpvwZMViii/Ni1/d40LA==",
|
"integrity": "sha512-plxwi9MvGDrekCsDKuNlCN3ZXIv9zkqHsKZJOsc8FQqLSHveDBOm11qOaswe4QyNWVHpvwZMViii/Ni1/d40LA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"requires": {
|
||||||
"vue": "^2.6.8"
|
"vue": "^2.6.8"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@vue/compiler-sfc": {
|
"@vue/compiler-sfc": {
|
||||||
"version": "2.7.16",
|
"version": "2.7.16",
|
||||||
"resolved": "https://registry.npmmirror.com/@vue/compiler-sfc/-/compiler-sfc-2.7.16.tgz",
|
"resolved": "https://registry.npmmirror.com/@vue/compiler-sfc/-/compiler-sfc-2.7.16.tgz",
|
||||||
"integrity": "sha512-KWhJ9k5nXuNtygPU7+t1rX6baZeqOYLEforUPjgNDBnLicfHCoi48H87Q8XyLZOrNNsmhuwKqtpDQWjEFe6Ekg==",
|
"integrity": "sha512-KWhJ9k5nXuNtygPU7+t1rX6baZeqOYLEforUPjgNDBnLicfHCoi48H87Q8XyLZOrNNsmhuwKqtpDQWjEFe6Ekg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"requires": {
|
||||||
"@babel/parser": "^7.23.5",
|
"@babel/parser": "^7.23.5",
|
||||||
"postcss": "^8.4.14",
|
"postcss": "^8.4.14",
|
||||||
|
"prettier": "^1.18.2 || ^2.0.0",
|
||||||
"source-map": "^0.6.1"
|
"source-map": "^0.6.1"
|
||||||
},
|
|
||||||
"optionalDependencies": {
|
|
||||||
"prettier": "^1.18.2 || ^2.0.0"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/csstype": {
|
"csstype": {
|
||||||
"version": "3.1.3",
|
"version": "3.1.3",
|
||||||
"resolved": "https://registry.npmmirror.com/csstype/-/csstype-3.1.3.tgz",
|
"resolved": "https://registry.npmmirror.com/csstype/-/csstype-3.1.3.tgz",
|
||||||
"integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==",
|
"integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/moment": {
|
"moment": {
|
||||||
"version": "2.30.1",
|
"version": "2.30.1",
|
||||||
"resolved": "https://registry.npmmirror.com/moment/-/moment-2.30.1.tgz",
|
"resolved": "https://registry.npmmirror.com/moment/-/moment-2.30.1.tgz",
|
||||||
"integrity": "sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how==",
|
"integrity": "sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how=="
|
||||||
"engines": {
|
|
||||||
"node": "*"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"node_modules/nanoid": {
|
"nanoid": {
|
||||||
"version": "3.3.7",
|
"version": "3.3.7",
|
||||||
"resolved": "https://registry.npmmirror.com/nanoid/-/nanoid-3.3.7.tgz",
|
"resolved": "https://registry.npmmirror.com/nanoid/-/nanoid-3.3.7.tgz",
|
||||||
"integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==",
|
"integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==",
|
||||||
"dev": true,
|
"dev": true
|
||||||
"bin": {
|
|
||||||
"nanoid": "bin/nanoid.cjs"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"node_modules/picocolors": {
|
"picocolors": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"resolved": "https://registry.npmmirror.com/picocolors/-/picocolors-1.0.0.tgz",
|
"resolved": "https://registry.npmmirror.com/picocolors/-/picocolors-1.0.0.tgz",
|
||||||
"integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==",
|
"integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/postcss": {
|
"postcss": {
|
||||||
"version": "8.4.33",
|
"version": "8.4.33",
|
||||||
"resolved": "https://registry.npmmirror.com/postcss/-/postcss-8.4.33.tgz",
|
"resolved": "https://registry.npmmirror.com/postcss/-/postcss-8.4.33.tgz",
|
||||||
"integrity": "sha512-Kkpbhhdjw2qQs2O2DGX+8m5OVqEcbB9HRBvuYM9pgrjEFUg30A9LmXNlTAUj4S9kgtGyrMbTzVjH7E+s5Re2yg==",
|
"integrity": "sha512-Kkpbhhdjw2qQs2O2DGX+8m5OVqEcbB9HRBvuYM9pgrjEFUg30A9LmXNlTAUj4S9kgtGyrMbTzVjH7E+s5Re2yg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"requires": {
|
||||||
"nanoid": "^3.3.7",
|
"nanoid": "^3.3.7",
|
||||||
"picocolors": "^1.0.0",
|
"picocolors": "^1.0.0",
|
||||||
"source-map-js": "^1.0.2"
|
"source-map-js": "^1.0.2"
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": "^10 || ^12 || >=14"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/prettier": {
|
"prettier": {
|
||||||
"version": "2.8.8",
|
"version": "2.8.8",
|
||||||
"resolved": "https://registry.npmmirror.com/prettier/-/prettier-2.8.8.tgz",
|
"resolved": "https://registry.npmmirror.com/prettier/-/prettier-2.8.8.tgz",
|
||||||
"integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==",
|
"integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"optional": true,
|
"optional": true
|
||||||
"bin": {
|
|
||||||
"prettier": "bin-prettier.js"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=10.13.0"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"node_modules/source-map": {
|
"source-map": {
|
||||||
"version": "0.6.1",
|
"version": "0.6.1",
|
||||||
"resolved": "https://registry.npmmirror.com/source-map/-/source-map-0.6.1.tgz",
|
"resolved": "https://registry.npmmirror.com/source-map/-/source-map-0.6.1.tgz",
|
||||||
"integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
|
"integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
|
||||||
"dev": true,
|
"dev": true
|
||||||
"engines": {
|
|
||||||
"node": ">=0.10.0"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"node_modules/source-map-js": {
|
"source-map-js": {
|
||||||
"version": "1.0.2",
|
"version": "1.0.2",
|
||||||
"resolved": "https://registry.npmmirror.com/source-map-js/-/source-map-js-1.0.2.tgz",
|
"resolved": "https://registry.npmmirror.com/source-map-js/-/source-map-js-1.0.2.tgz",
|
||||||
"integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==",
|
"integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==",
|
||||||
"dev": true,
|
"dev": true
|
||||||
"engines": {
|
|
||||||
"node": ">=0.10.0"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"node_modules/vue": {
|
"vue": {
|
||||||
"version": "2.7.16",
|
"version": "2.7.16",
|
||||||
"resolved": "https://registry.npmmirror.com/vue/-/vue-2.7.16.tgz",
|
"resolved": "https://registry.npmmirror.com/vue/-/vue-2.7.16.tgz",
|
||||||
"integrity": "sha512-4gCtFXaAA3zYZdTp5s4Hl2sozuySsgz4jy1EnpBHNfpMa9dK1ZCG7viqBPCwXtmgc8nHqUsAu3G4gtmXkkY3Sw==",
|
"integrity": "sha512-4gCtFXaAA3zYZdTp5s4Hl2sozuySsgz4jy1EnpBHNfpMa9dK1ZCG7viqBPCwXtmgc8nHqUsAu3G4gtmXkkY3Sw==",
|
||||||
"deprecated": "Vue 2 has reached EOL and is no longer actively maintained. See https://v2.vuejs.org/eol/ for more details.",
|
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"requires": {
|
||||||
"@vue/compiler-sfc": "2.7.16",
|
"@vue/compiler-sfc": "2.7.16",
|
||||||
"csstype": "^3.1.0"
|
"csstype": "^3.1.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/vue-aliplayer": {
|
"vue-aliplayer": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"resolved": "https://registry.npmmirror.com/vue-aliplayer/-/vue-aliplayer-1.0.0.tgz",
|
"resolved": "https://registry.npmmirror.com/vue-aliplayer/-/vue-aliplayer-1.0.0.tgz",
|
||||||
"integrity": "sha512-z29s38hlNJDckGSPtuTsYwMdjj70SsvJ5VzbEoBoV2BTrg3ucvodM2CW7BWstrG9WaQqz4F8nVGLSON05RrmJw==",
|
"integrity": "sha512-z29s38hlNJDckGSPtuTsYwMdjj70SsvJ5VzbEoBoV2BTrg3ucvodM2CW7BWstrG9WaQqz4F8nVGLSON05RrmJw==",
|
||||||
"dependencies": {
|
"requires": {
|
||||||
"vue-github-badge": "^1.0.0"
|
"vue-github-badge": "^1.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/vue-github-badge": {
|
"vue-github-badge": {
|
||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
"resolved": "https://registry.npmmirror.com/vue-github-badge/-/vue-github-badge-1.0.1.tgz",
|
"resolved": "https://registry.npmmirror.com/vue-github-badge/-/vue-github-badge-1.0.1.tgz",
|
||||||
"integrity": "sha512-8X+FUWapnnDfs6cRUg3mCfHUf2r5arUfCSRdvbIn860oj9us3Rz3VOtioUgmfzh6EhaaYTs0Oh78EzJ+Z6uqAA=="
|
"integrity": "sha512-8X+FUWapnnDfs6cRUg3mCfHUf2r5arUfCSRdvbIn860oj9us3Rz3VOtioUgmfzh6EhaaYTs0Oh78EzJ+Z6uqAA=="
|
||||||
|
|
|
||||||
1287
pages.json
1287
pages.json
File diff suppressed because it is too large
Load Diff
|
|
@ -0,0 +1,264 @@
|
||||||
|
<template>
|
||||||
|
<view>
|
||||||
|
<cu-custom bgColor="bg-gradual-blueness" :isBack="true" :isRingt="true">
|
||||||
|
<block slot="backText">返回</block>
|
||||||
|
<block slot="content">盲板抽堵作业</block>
|
||||||
|
</cu-custom>
|
||||||
|
|
||||||
|
<view class="apps-box">
|
||||||
|
<view class="apps-row">
|
||||||
|
<view class="apps-title">
|
||||||
|
<text class="apps-title-line"></text>
|
||||||
|
<text>盲板抽堵作业审批管理</text>
|
||||||
|
</view>
|
||||||
|
<view class="apps-warp">
|
||||||
|
<navigator class="apps-item" hover-class="none" url="/pages/application/blind-board/blind-board-apply/blind-board-apply-list">
|
||||||
|
<view class="imgs action">
|
||||||
|
<image src="../../../static/icon-apps/icon-yxkj-1.png" mode=""></image>
|
||||||
|
<view v-if="count.COUNTBACK" class="cu-tag badge">{{count.COUNTBACK}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="text-semi" style="text-align: center;">
|
||||||
|
<view>盲板抽堵作业</view>
|
||||||
|
<view>申请</view>
|
||||||
|
</view>
|
||||||
|
</navigator>
|
||||||
|
<navigator class="apps-item" hover-class="none" url="/pages/application/blind-board/blind-board-construction/blind-board-construction-list">
|
||||||
|
<view class="imgs action">
|
||||||
|
<image src="../../../static/icon-apps/icon-903.png" mode=""></image>
|
||||||
|
<view v-if="count.COUNTCONSTRUCTION" class="cu-tag badge">{{count.COUNTCONSTRUCTION}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="text-semi" style="text-align: center;">
|
||||||
|
<view>作业负责人</view>
|
||||||
|
<view>意见</view>
|
||||||
|
</view>
|
||||||
|
</navigator>
|
||||||
|
<navigator class="apps-item" hover-class="none" url="/pages/application/blind-board/blind-board-leader/blind-board-leader-list">
|
||||||
|
<view class="imgs action">
|
||||||
|
<image src="../../../static/icon-apps/icon-904.png" mode=""></image>
|
||||||
|
<view v-if="count.COUNTLEADER" class="cu-tag badge">{{count.COUNTLEADER}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="text-semi" style="text-align: center;">
|
||||||
|
<view>所在单位</view>
|
||||||
|
<view>意见</view>
|
||||||
|
</view>
|
||||||
|
</navigator>
|
||||||
|
<navigator class="apps-item" hover-class="none" url="/pages/application/blind-board/blind-board-accept/blind-board-accept-list">
|
||||||
|
<view class="imgs action">
|
||||||
|
<image src="../../../static/icon-apps/icon-905.png" mode=""></image>
|
||||||
|
<view v-if="count.COUNTACCEPT" class="cu-tag badge">{{count.COUNTACCEPT}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="text-semi" style="text-align: center;">
|
||||||
|
<view>完工验收</view>
|
||||||
|
</view>
|
||||||
|
</navigator>
|
||||||
|
<navigator class="apps-item" hover-class="none" url="/pages/application/blind-board/blind-board-guardian/blind-board-guardian-list">
|
||||||
|
<view class="imgs action">
|
||||||
|
<image src="../../../static/icon-apps/icon-jh-1.png" mode=""></image>
|
||||||
|
<view v-if="count.COUNTGUARDIAN" class="cu-tag badge">{{count.COUNTGUARDIAN}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="text-semi" style="text-align: center;">
|
||||||
|
<view>监护人</view>
|
||||||
|
</view>
|
||||||
|
</navigator>
|
||||||
|
<navigator class="apps-item" hover-class="none" url="/pages/application/blind-board/blind-board-confess/blind-board-confess-list">
|
||||||
|
<view class="imgs action">
|
||||||
|
<image src="../../../static/icon-apps/icon-aq-1.png" mode=""></image>
|
||||||
|
<view v-if="count.COUNTCONFESS" class="cu-tag badge">{{count.COUNTCONFESS}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="text-semi" style="text-align: center;">
|
||||||
|
<view>安全交底人</view>
|
||||||
|
</view>
|
||||||
|
</navigator>
|
||||||
|
<navigator class="apps-item" hover-class="none" url="/pages/application/blind-board/blind-board-acceptconfess/blind-board-acceptconfess-list">
|
||||||
|
<view class="imgs action">
|
||||||
|
<image src="../../../static/icon-apps/icon-js-1.png" mode=""></image>
|
||||||
|
<view v-if="count.COUNTACCEPTCONFESS" class="cu-tag badge">{{count.COUNTACCEPTCONFESS}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="text-semi" style="text-align: center;">
|
||||||
|
<view>接受交底人</view>
|
||||||
|
</view>
|
||||||
|
</navigator>
|
||||||
|
<!-- <navigator class="apps-item" hover-class="none" url="/pages/application/blind-board/blind-board-production/blind-board-production-list">-->
|
||||||
|
<!-- <view class="imgs action">-->
|
||||||
|
<!-- <image src="../../../static/icon-apps/icon-902.png" mode=""></image>-->
|
||||||
|
<!-- <view v-if="count.COUNTPRODUCTION" class="cu-tag badge">{{count.COUNTPRODUCTION}}</view>-->
|
||||||
|
<!-- </view>-->
|
||||||
|
<!-- <view class="text-semi" style="text-align: center;">-->
|
||||||
|
<!-- <view>生产部门</view>-->
|
||||||
|
<!-- <view>意见</view>-->
|
||||||
|
<!-- </view>-->
|
||||||
|
<!-- </navigator>-->
|
||||||
|
<!-- <navigator class="apps-item" hover-class="none" url="/pages/application/blind-board/blind-board-safety/blind-board-safety-list">-->
|
||||||
|
<!-- <view class="imgs action">-->
|
||||||
|
<!-- <image src="../../../static/icon-apps/icon-906.png" mode=""></image>-->
|
||||||
|
<!-- <view v-if="count.COUNTSAFETY" class="cu-tag badge">{{count.COUNTSAFETY}}</view>-->
|
||||||
|
<!-- </view>-->
|
||||||
|
<!-- <view class="text-semi" style="text-align: center;">-->
|
||||||
|
<!-- <view>安全部门</view>-->
|
||||||
|
<!-- <view>意见</view>-->
|
||||||
|
<!-- </view>-->
|
||||||
|
<!-- </navigator>-->
|
||||||
|
</view>
|
||||||
|
<view class="apps-warp">
|
||||||
|
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<!-- <view class="apps-row">
|
||||||
|
<view class="apps-title">
|
||||||
|
<text class="apps-title-line"></text>
|
||||||
|
<text>其他应用</text>
|
||||||
|
</view>
|
||||||
|
<view class="apps-warp">
|
||||||
|
<navigator class="apps-item" hover-class="none" url="/pages/application/other-apps/videos/videos">
|
||||||
|
<view class="imgs action">
|
||||||
|
<image src="../../static/icon-apps/icon-zl-7.png" mode=""></image>
|
||||||
|
</view>
|
||||||
|
<view class="text-semi">视频中心</view>
|
||||||
|
</navigator>
|
||||||
|
</view>
|
||||||
|
</view> -->
|
||||||
|
<view class="cu-tabbar-height"></view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import {
|
||||||
|
basePath,
|
||||||
|
loginUserId,
|
||||||
|
formatDate,
|
||||||
|
corpinfoId,
|
||||||
|
loginUser,
|
||||||
|
setloginUserId,
|
||||||
|
setCorpinfoId,
|
||||||
|
setloginUser,
|
||||||
|
setDeptId,
|
||||||
|
isRest
|
||||||
|
} from '@/common/tool.js';
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
isRest :'',
|
||||||
|
count : {}
|
||||||
|
};
|
||||||
|
},
|
||||||
|
mounted(){
|
||||||
|
this.isRest = isRest;
|
||||||
|
|
||||||
|
},
|
||||||
|
onShow() {
|
||||||
|
this.getData();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
showRest(){
|
||||||
|
|
||||||
|
uni.showModal({
|
||||||
|
title: '提示',
|
||||||
|
showCancel:false,
|
||||||
|
content: '您处于离岗状态,无需检查清单。',
|
||||||
|
confirmText: "返回", // 确认按钮文字
|
||||||
|
success: (res) => {
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// getData(){
|
||||||
|
// var _this = this;
|
||||||
|
// uni.showLoading({
|
||||||
|
// title:"加载中..."
|
||||||
|
// });//加载中动画
|
||||||
|
// uni.request({
|
||||||
|
// url: basePath +'/app/blindboard/countCheck',
|
||||||
|
// method: 'POST',
|
||||||
|
// dataType: 'json',
|
||||||
|
// header: {
|
||||||
|
// 'Content-type':'application/x-www-form-urlencoded'
|
||||||
|
// },
|
||||||
|
// data: {
|
||||||
|
// tm:new Date().getTime(),
|
||||||
|
// CORPINFO_ID:loginUser.CORPINFO_ID,
|
||||||
|
// USER_ID:loginUser.USER_ID,
|
||||||
|
// },
|
||||||
|
// success: (res) => {
|
||||||
|
// uni.hideLoading();//结束加载中动画
|
||||||
|
// if ("success" == res.data.result) {
|
||||||
|
// _this.count = res.data.count;
|
||||||
|
// _this.$forceUpdate()
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// }
|
||||||
|
// })
|
||||||
|
// },
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.app-banner{
|
||||||
|
width: 100%;
|
||||||
|
height: 380upx;
|
||||||
|
}
|
||||||
|
.app-banner image{
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
.apps-box {}
|
||||||
|
|
||||||
|
.apps-row {
|
||||||
|
padding: 20upx 20upx 10upx 20upx;
|
||||||
|
background-color: #fff;
|
||||||
|
margin-top: 20upx;
|
||||||
|
}
|
||||||
|
.apps-row:first-child{
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.apps-title {
|
||||||
|
position: relative;
|
||||||
|
padding-left: 20upx;
|
||||||
|
color: #989898;
|
||||||
|
padding-bottom: 20upx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.apps-title-line {
|
||||||
|
display: inline-block;
|
||||||
|
background-color: #37a6ff;
|
||||||
|
width: 10upx;
|
||||||
|
height: 23upx;
|
||||||
|
position: absolute;
|
||||||
|
left: 0upx;
|
||||||
|
top: 11upx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.apps-warp {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.apps-item {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
width: 25%;
|
||||||
|
font-size: 25upx;
|
||||||
|
margin-bottom: 20upx;
|
||||||
|
}
|
||||||
|
.apps-item .text-semi{
|
||||||
|
margin-top: 6upx;
|
||||||
|
}
|
||||||
|
.apps-item .action{
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.apps-item .action .cu-tag.badge{
|
||||||
|
right: -20upx;
|
||||||
|
}
|
||||||
|
.apps-item .imgs {
|
||||||
|
width: 50upx;
|
||||||
|
height: 50upx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.apps-item .imgs image {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
<view>
|
<view>
|
||||||
<cu-custom bgColor="bg-gradual-blueness" :isBack="true" :isRingt="true">
|
<cu-custom bgColor="bg-gradual-blueness" :isBack="true" :isRingt="true">
|
||||||
<block slot="backText">返回</block>
|
<block slot="backText">返回</block>
|
||||||
<block slot="content">受限空间</block>
|
<block slot="content">受限空间作业</block>
|
||||||
</cu-custom>
|
</cu-custom>
|
||||||
|
|
||||||
<view class="apps-box">
|
<view class="apps-box">
|
||||||
|
|
@ -26,137 +26,121 @@
|
||||||
<view class="apps-row">
|
<view class="apps-row">
|
||||||
<view class="apps-title">
|
<view class="apps-title">
|
||||||
<text class="apps-title-line"></text>
|
<text class="apps-title-line"></text>
|
||||||
<text>受限空间审批管理</text>
|
<text>受限空间作业审批管理</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="apps-warp">
|
<view class="apps-warp">
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/confinedspace/confinedspace-list/index?flow=提交申请">
|
<navigator class="apps-item" hover-class="none" url="/pages/application/confinedspace/confinedspace-apply/confinedspace-apply-list">
|
||||||
<view class="imgs action">
|
<view class="imgs action">
|
||||||
<image src="../../../static/icon-apps/icon-yxkj-1.png" mode=""></image>
|
<image src="../../../static/icon-apps/icon-yxkj-1.png" mode=""></image>
|
||||||
<view v-if="count.CREATE" class="cu-tag badge">{{count.CREATE}}</view>
|
<view v-if="count.COUNTBACK" class="cu-tag badge">{{count.COUNTBACK}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="text-semi" style="text-align: center;">
|
<view class="text-semi" style="text-align: center;">
|
||||||
<view>受限空间</view>
|
<view>受限空间作业</view>
|
||||||
<view>申请</view>
|
<view>申请</view>
|
||||||
</view>
|
</view>
|
||||||
</navigator>
|
</navigator>
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/confinedspace/confinedspace-list/index?flow=气体检测">
|
<navigator class="apps-item" hover-class="none" url="/pages/application/confinedspace/confinedspace-confirm/confinedspace-confirm-list">
|
||||||
<view class="imgs action">
|
|
||||||
<image src="../../../static/icon-apps/icon-zl-8.png" mode=""></image>
|
|
||||||
<view v-if="count.ANALYZE" class="cu-tag badge">{{count.ANALYZE}}</view>
|
|
||||||
</view>
|
|
||||||
<view class="text-semi" style="text-align: center;">
|
|
||||||
<view>气体分析</view>
|
|
||||||
</view>
|
|
||||||
</navigator>
|
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/confinedspace/confinedspace-list/index?flow=设置安全措施确认人">
|
|
||||||
<view class="imgs action">
|
<view class="imgs action">
|
||||||
<image src="../../../static/icon-apps/icon-yh-1.png" mode=""></image>
|
<image src="../../../static/icon-apps/icon-yh-1.png" mode=""></image>
|
||||||
<view v-if="count.MEASURES_SET" class="cu-tag badge">{{count.MEASURES_SET}}</view>
|
<view v-if="count.COUNTCONFIRM" class="cu-tag badge">{{count.COUNTCONFIRM}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="text-semi" style="text-align: center;">
|
<view class="text-semi" style="text-align: center;">
|
||||||
<view>设置安全</view>
|
|
||||||
<view>措施确认人</view>
|
|
||||||
</view>
|
|
||||||
</navigator>
|
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/confinedspace/confinedspace-list/index?flow=安全措施确认">
|
|
||||||
<view class="imgs action">
|
|
||||||
<image src="../../../static/icon-apps/icon-yh-1.png" mode=""></image>
|
|
||||||
<view v-if="count.MEASURES_CONFIRM" class="cu-tag badge">{{count.MEASURES_CONFIRM}}</view>
|
|
||||||
</view>
|
|
||||||
<view class="text-semi" style="text-align: center;">
|
|
||||||
<view>安全措施确认</view>
|
|
||||||
</view>
|
|
||||||
</navigator>
|
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/confinedspace/confinedspace-list/index?flow=监护人签字">
|
|
||||||
<view class="imgs action">
|
|
||||||
<image src="../../../static/icon-apps/icon-zl-9.png" mode=""></image>
|
|
||||||
<view v-if="count.GUARDIAN" class="cu-tag badge">{{count.GUARDIAN}}</view>
|
|
||||||
</view>
|
|
||||||
<view class="text-semi" style="text-align: center;">
|
|
||||||
<view>监护人</view>
|
|
||||||
<view>意见</view>
|
|
||||||
</view>
|
|
||||||
</navigator>
|
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/confinedspace/confinedspace-list/index?flow=安全交底人签字">
|
|
||||||
<view class="imgs action">
|
|
||||||
<image src="../../../static/icon-apps/icon-807.png" mode=""></image>
|
|
||||||
<view v-if="count.CONFESS" class="cu-tag badge">{{count.CONFESS}}</view>
|
|
||||||
</view>
|
|
||||||
<view class="text-semi" style="text-align: center;">
|
|
||||||
<view>安全交底人</view>
|
|
||||||
<view>意见</view>
|
|
||||||
</view>
|
|
||||||
</navigator>
|
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/confinedspace/confinedspace-list/index?flow=接受交底人签字">
|
|
||||||
<view class="imgs action">
|
|
||||||
<image src="../../../static/icon-apps/icon-yxkj-4.png" mode=""></image>
|
|
||||||
<view v-if="count.ACCEPT_CONFESS" class="cu-tag badge">{{count.ACCEPT_CONFESS}}</view>
|
|
||||||
</view>
|
|
||||||
<view class="text-semi" style="text-align: center;">
|
|
||||||
<view>接受交底人</view>
|
|
||||||
<view>意见</view>
|
|
||||||
</view>
|
|
||||||
</navigator>
|
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/confinedspace/confinedspace-list/index?flow=作业人签字">
|
|
||||||
<view class="imgs action">
|
|
||||||
<image src="../../../static/icon-apps/icon-yxkj-2.png" mode=""></image>
|
|
||||||
<view v-if="count.WORK_USER" class="cu-tag badge">{{count.WORK_USER}}</view>
|
|
||||||
</view>
|
|
||||||
<view class="text-semi" style="text-align: center;">
|
|
||||||
<view>作业人</view>
|
|
||||||
<view>意见</view>
|
|
||||||
</view>
|
|
||||||
</navigator>
|
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/confinedspace/confinedspace-list/index?flow=作业负责人签字">
|
|
||||||
<view class="imgs action">
|
|
||||||
<image src="../../../static/icon-apps/icon-yxkj-2.png" mode=""></image>
|
|
||||||
<view v-if="count.CONFIRM" class="cu-tag badge">{{count.CONFIRM}}</view>
|
|
||||||
</view>
|
|
||||||
<view class="text-semi" style="text-align: center;">
|
|
||||||
<view>作业负责人</view>
|
<view>作业负责人</view>
|
||||||
<view>意见</view>
|
<view>意见</view>
|
||||||
</view>
|
</view>
|
||||||
</navigator>
|
</navigator>
|
||||||
|
<!-- <navigator class="apps-item" hover-class="none" url="/pages/application/confinedspace/confinedspace-guardian/confinedspace-guardian-list">-->
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/confinedspace/confinedspace-list/index?flow=所在单位签字">
|
<!-- <view class="imgs action">-->
|
||||||
|
<!-- <image src="../../../static/icon-apps/icon-zl-9.png" mode=""></image>-->
|
||||||
|
<!-- <view v-if="count.COUNTGUARDIAN" class="cu-tag badge">{{count.COUNTGUARDIAN}}</view>-->
|
||||||
|
<!-- </view>-->
|
||||||
|
<!-- <view class="text-semi" style="text-align: center;">-->
|
||||||
|
<!-- <view>监护人</view>-->
|
||||||
|
<!-- <view>意见</view>-->
|
||||||
|
<!-- </view>-->
|
||||||
|
<!-- </navigator>-->
|
||||||
|
<!-- <navigator class="apps-item" hover-class="none" url="/pages/application/confinedspace/confinedspace-audit/confinedspace-audit-list">-->
|
||||||
|
<!-- <view class="imgs action">-->
|
||||||
|
<!-- <image src="../../../static/icon-apps/icon-zl-10.png" mode=""></image>-->
|
||||||
|
<!-- <view v-if="count.COUNTAUDIT" class="cu-tag badge">{{count.COUNTAUDIT}}</view>-->
|
||||||
|
<!-- </view>-->
|
||||||
|
<!-- <view class="text-semi" style="text-align: center;">-->
|
||||||
|
<!-- <view>审核部门</view>-->
|
||||||
|
<!-- <view>审核</view>-->
|
||||||
|
<!-- </view>-->
|
||||||
|
<!-- </navigator>-->
|
||||||
|
<navigator class="apps-item" hover-class="none" url="/pages/application/confinedspace/confinedspace-approve/confinedspace-approve-list">
|
||||||
<view class="imgs action">
|
<view class="imgs action">
|
||||||
<image src="../../../static/icon-apps/icon-907.png" mode=""></image>
|
<image src="../../../static/icon-apps/icon-yxkj-2.png" mode=""></image>
|
||||||
<view v-if="count.LEADER" class="cu-tag badge">{{count.LEADER}}</view>
|
<view v-if="count.COUNTAPPROVE" class="cu-tag badge">{{count.COUNTAPPROVE}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="text-semi" style="text-align: center;">
|
<view class="text-semi" style="text-align: center;">
|
||||||
<view>所在单位</view>
|
<view>所在单位</view>
|
||||||
<view>意见</view>
|
<view>意见</view>
|
||||||
</view>
|
</view>
|
||||||
</navigator>
|
</navigator>
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/confinedspace/confinedspace-list/index?flow=开始作业">
|
<navigator class="apps-item" hover-class="none" url="/pages/application/confinedspace/confinedspace-accept/confinedspace-accept-list">
|
||||||
|
<view class="imgs action">
|
||||||
|
<image src="../../../static/icon-apps/icon-901.png" mode=""></image>
|
||||||
|
<view v-if="count.COUNTACCEPT" class="cu-tag badge">{{count.COUNTACCEPT}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="text-semi" style="text-align: center;">
|
||||||
|
<view>完工验收</view>
|
||||||
|
</view>
|
||||||
|
</navigator>
|
||||||
|
<navigator class="apps-item" hover-class="none" url="/pages/application/confinedspace/confinedspace-gas/confinedspace-gas-list">
|
||||||
|
<view class="imgs action">
|
||||||
|
<image src="../../../static/icon-apps/icon-zl-8.png" mode=""></image>
|
||||||
|
<view v-if="count.COUNTANALYZE" class="cu-tag badge">{{count.COUNTANALYZE}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="text-semi" style="text-align: center;">
|
||||||
|
<view>气体检测</view>
|
||||||
|
</view>
|
||||||
|
</navigator>
|
||||||
|
<navigator class="apps-item" hover-class="none" url="/pages/application/confinedspace/confinedspace-guardian/confinedspace-guardian-list">
|
||||||
|
<view class="imgs action">
|
||||||
|
<image src="../../../static/icon-apps/icon-jh-1.png" mode=""></image>
|
||||||
|
<view v-if="count.COUNTGUARDIAN" class="cu-tag badge">{{count.COUNTGUARDIAN}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="text-semi" style="text-align: center;">
|
||||||
|
<view>监护人</view>
|
||||||
|
</view>
|
||||||
|
</navigator>
|
||||||
|
<navigator class="apps-item" hover-class="none" url="/pages/application/confinedspace/confinedspace-confess/confinedspace-confess-list">
|
||||||
<view class="imgs action">
|
<view class="imgs action">
|
||||||
<image src="../../../static/icon-apps/icon-aq-1.png" mode=""></image>
|
<image src="../../../static/icon-apps/icon-aq-1.png" mode=""></image>
|
||||||
<view v-if="count.WORK_START" class="cu-tag badge">{{count.WORK_START}}</view>
|
<view v-if="count.COUNTCONFESS" class="cu-tag badge">{{count.COUNTCONFESS}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="text-semi" style="text-align: center;">
|
<view class="text-semi" style="text-align: center;">
|
||||||
<view>开始作业时间</view>
|
<view>安全交底人</view>
|
||||||
</view>
|
</view>
|
||||||
</navigator>
|
</navigator>
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/confinedspace/confinedspace-list/index?flow=结束作业">
|
<navigator class="apps-item" hover-class="none" url="/pages/application/confinedspace/confinedspace-acceptconfess/confinedspace-acceptconfess-list">
|
||||||
<view class="imgs action">
|
<view class="imgs action">
|
||||||
<image src="../../../static/icon-apps/icon-js-1.png" mode=""></image>
|
<image src="../../../static/icon-apps/icon-js-1.png" mode=""></image>
|
||||||
<view v-if="count.WORK_END" class="cu-tag badge">{{count.WORK_END}}</view>
|
<view v-if="count.COUNTACCEPTCONFESS" class="cu-tag badge">{{count.COUNTACCEPTCONFESS}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="text-semi" style="text-align: center;">
|
<view class="text-semi" style="text-align: center;">
|
||||||
<view>结束作业时间</view>
|
<view>接受交底人</view>
|
||||||
</view>
|
|
||||||
</navigator>
|
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/confinedspace/confinedspace-list/index?flow=验收签字">
|
|
||||||
<view class="imgs action">
|
|
||||||
<image src="../../../static/icon-apps/icon-js-1.png" mode=""></image>
|
|
||||||
<view v-if="count.ACCEPT" class="cu-tag badge">{{count.ACCEPT}}</view>
|
|
||||||
</view>
|
|
||||||
<view class="text-semi" style="text-align: center;">
|
|
||||||
<view>验收归档</view>
|
|
||||||
</view>
|
</view>
|
||||||
</navigator>
|
</navigator>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
<!-- <view class="apps-row">
|
||||||
|
<view class="apps-title">
|
||||||
|
<text class="apps-title-line"></text>
|
||||||
|
<text>其他应用</text>
|
||||||
|
</view>
|
||||||
|
<view class="apps-warp">
|
||||||
|
<navigator class="apps-item" hover-class="none" url="/pages/application/other-apps/videos/videos">
|
||||||
|
<view class="imgs action">
|
||||||
|
<image src="../../static/icon-apps/icon-zl-7.png" mode=""></image>
|
||||||
|
</view>
|
||||||
|
<view class="text-semi">视频中心</view>
|
||||||
|
</navigator>
|
||||||
|
</view>
|
||||||
|
</view> -->
|
||||||
<view class="cu-tabbar-height"></view>
|
<view class="cu-tabbar-height"></view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -201,32 +185,32 @@
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getData(){
|
// getData(){
|
||||||
var _this = this;
|
// var _this = this;
|
||||||
uni.showLoading({
|
// uni.showLoading({
|
||||||
title:"加载中..."
|
// title:"加载中..."
|
||||||
});//加载中动画
|
// });//加载中动画
|
||||||
uni.request({
|
// uni.request({
|
||||||
url: basePath +'/app/confinedspace/checkWorkCount',
|
// url: basePath +'/app/confinedspace/countCheck',
|
||||||
method: 'POST',
|
// method: 'POST',
|
||||||
dataType: 'json',
|
// dataType: 'json',
|
||||||
header: {
|
// header: {
|
||||||
'Content-type':'application/x-www-form-urlencoded'
|
// 'Content-type':'application/x-www-form-urlencoded'
|
||||||
},
|
// },
|
||||||
data: {
|
// data: {
|
||||||
tm:new Date().getTime(),
|
// tm:new Date().getTime(),
|
||||||
CORPINFO_ID:loginUser.CORPINFO_ID,
|
// CORPINFO_ID:loginUser.CORPINFO_ID,
|
||||||
USER_ID:loginUser.USER_ID,
|
// USER_ID:loginUser.USER_ID,
|
||||||
},
|
// },
|
||||||
success: (res) => {
|
// success: (res) => {
|
||||||
uni.hideLoading();//结束加载中动画
|
// uni.hideLoading();//结束加载中动画
|
||||||
if ("success" == res.data.result) {
|
// if ("success" == res.data.result) {
|
||||||
_this.count = res.data.count;
|
// _this.count = res.data.count;
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
}
|
// }
|
||||||
})
|
// })
|
||||||
},
|
// },
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
<view>
|
<view>
|
||||||
<cu-custom bgColor="bg-gradual-blueness" :isBack="true" :isRingt="true">
|
<cu-custom bgColor="bg-gradual-blueness" :isBack="true" :isRingt="true">
|
||||||
<block slot="backText">返回</block>
|
<block slot="backText">返回</block>
|
||||||
<block slot="content">特殊作业</block>
|
<block slot="content">高危作业</block>
|
||||||
</cu-custom>
|
</cu-custom>
|
||||||
|
|
||||||
<view class="apps-box">
|
<view class="apps-box">
|
||||||
|
|
@ -12,85 +12,89 @@
|
||||||
<text>八项作业</text>
|
<text>八项作业</text>
|
||||||
</view> -->
|
</view> -->
|
||||||
<view class="apps-warp">
|
<view class="apps-warp">
|
||||||
|
<navigator v-show="premission.confinedspace" class="apps-item" hover-class="none" url="/pages/application/confinedspace/home">
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/hotwork/home">
|
|
||||||
<view class="imgs action">
|
|
||||||
<image src="../../static/icon-apps/icon-807.png" mode=""></image>
|
|
||||||
<view v-if="eight_work_count.HOTWORK_COUNT" class="cu-tag badge">{{eight_work_count.HOTWORK_COUNT}}</view>
|
|
||||||
</view>
|
|
||||||
<view class="text-semi" style="text-align: center;">
|
|
||||||
<view>动火作业</view>
|
|
||||||
</view>
|
|
||||||
</navigator>
|
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/highwork/home">
|
|
||||||
<view class="imgs action">
|
|
||||||
<image src="../../static/icon-apps/icon-803.png" mode=""></image>
|
|
||||||
<view v-if="eight_work_count.HIGHWORK_COUNT" class="cu-tag badge">{{eight_work_count.HIGHWORK_COUNT}}</view>
|
|
||||||
</view>
|
|
||||||
<view class="text-semi" style="text-align: center;">
|
|
||||||
<view>高处作业</view>
|
|
||||||
</view>
|
|
||||||
</navigator>
|
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/confinedspace/home">
|
|
||||||
<view class="imgs action">
|
<view class="imgs action">
|
||||||
<image src="../../static/icon-apps/icon-806.png" mode=""></image>
|
<image src="../../static/icon-apps/icon-806.png" mode=""></image>
|
||||||
<view v-if="eight_work_count.CONFINEDSPACE_COUNT" class="cu-tag badge">{{eight_work_count.CONFINEDSPACE_COUNT}}</view>
|
<view v-if="confinedspace_count" class="cu-tag badge">{{confinedspace_count}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="text-semi" style="text-align: center;">
|
<view class="text-semi" style="text-align: center;">
|
||||||
<view>受限空间</view>
|
<view>受限空间</view>
|
||||||
<view>安全作业</view>
|
<view>安全作业</view>
|
||||||
</view>
|
</view>
|
||||||
</navigator>
|
</navigator>
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/hoisting/home">
|
<!-- <navigator class="apps-item" hover-class="none" url="/pages/application/equipment-overhaul/home">-->
|
||||||
<view class="imgs action">
|
<!-- <view class="imgs action">-->
|
||||||
<image src="../../static/icon-apps/icon-804.png" mode=""></image>
|
<!-- <image src="../../static/icon-apps/icon-800.png" mode=""></image>-->
|
||||||
<view v-if="eight_work_count.HOISTING_COUNT" class="cu-tag badge">{{eight_work_count.HOISTING_COUNT}}</view>
|
<!-- </view>-->
|
||||||
</view>
|
<!-- <view class="text-semi" style="text-align: center;">-->
|
||||||
<view class="text-semi" style="text-align: center;">
|
<!-- <view>设备检修</view>-->
|
||||||
<view>吊装作业</view>
|
<!-- </view>-->
|
||||||
</view>
|
<!-- </navigator>-->
|
||||||
</navigator>
|
<navigator v-show="premission['blind-board']" class="apps-item" hover-class="none" url="/pages/application/blind-board/home">
|
||||||
|
|
||||||
|
|
||||||
<!-- </view>-->
|
|
||||||
<!-- <view class="apps-warp">-->
|
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/breakground/home">
|
|
||||||
<view class="imgs action">
|
|
||||||
<image src="../../static/icon-apps/icon-802.png" mode=""></image>
|
|
||||||
<view v-if="eight_work_count.BREAKGROUND_COUNT" class="cu-tag badge">{{eight_work_count.BREAKGROUND_COUNT}}</view>
|
|
||||||
</view>
|
|
||||||
<view class="text-semi" style="text-align: center;">
|
|
||||||
<view>动土作业</view>
|
|
||||||
</view>
|
|
||||||
</navigator>
|
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/electricity/home">
|
|
||||||
<view class="imgs action">
|
|
||||||
<image src="../../static/icon-apps/icon-805.png" mode=""></image>
|
|
||||||
<view v-if="eight_work_count.ELECTRICITY_COUNT" class="cu-tag badge">{{eight_work_count.ELECTRICITY_COUNT}}</view>
|
|
||||||
</view>
|
|
||||||
<view class="text-semi" style="text-align: center;">
|
|
||||||
<view>临时用电作业</view>
|
|
||||||
</view>
|
|
||||||
</navigator>
|
|
||||||
|
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/cutroad/home">
|
|
||||||
<view class="imgs action">
|
|
||||||
<image src="../../static/icon-apps/open-circuit.png" mode=""></image>
|
|
||||||
<view v-if="eight_work_count.OPEN_CIRCUIT_COUNT" class="cu-tag badge">{{eight_work_count.OPEN_CIRCUIT_COUNT}}</view>
|
|
||||||
</view>
|
|
||||||
<view class="text-semi" style="text-align: center;">
|
|
||||||
<view>断路作业</view>
|
|
||||||
</view>
|
|
||||||
</navigator>
|
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/blindboard/home">
|
|
||||||
<view class="imgs action">
|
<view class="imgs action">
|
||||||
<image src="../../static/icon-apps/icon-801.png" mode=""></image>
|
<image src="../../static/icon-apps/icon-801.png" mode=""></image>
|
||||||
<view v-if="eight_work_count.BLIND_BOARD_COUNT" class="cu-tag badge">{{eight_work_count.BLIND_BOARD_COUNT}}</view>
|
<view v-if="blind_board_count" class="cu-tag badge">{{blind_board_count}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="text-semi" style="text-align: center;">
|
<view class="text-semi" style="text-align: center;">
|
||||||
<view>盲板抽堵作业</view>
|
<view>盲板抽堵作业</view>
|
||||||
</view>
|
</view>
|
||||||
</navigator>
|
</navigator>
|
||||||
|
<navigator v-show="premission['break-ground']" class="apps-item" hover-class="none" url="/pages/application/break-ground/home">
|
||||||
|
<view class="imgs action">
|
||||||
|
<image src="../../static/icon-apps/icon-802.png" mode=""></image>
|
||||||
|
<view v-if="break_ground_count" class="cu-tag badge">{{break_ground_count}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="text-semi" style="text-align: center;">
|
||||||
|
<view>动土作业</view>
|
||||||
|
</view>
|
||||||
|
</navigator>
|
||||||
|
<navigator v-show="premission['high-work']" class="apps-item" hover-class="none" url="/pages/application/high-work/home">
|
||||||
|
<view class="imgs action">
|
||||||
|
<image src="../../static/icon-apps/icon-803.png" mode=""></image>
|
||||||
|
<view v-if="high_work_count" class="cu-tag badge">{{high_work_count}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="text-semi" style="text-align: center;">
|
||||||
|
<view>高处作业</view>
|
||||||
|
</view>
|
||||||
|
</navigator>
|
||||||
|
<!-- </view>-->
|
||||||
|
<!-- <view class="apps-warp">-->
|
||||||
|
<navigator v-show="premission.hoisting" class="apps-item" hover-class="none" url="/pages/application/hoisting/home">
|
||||||
|
<view class="imgs action">
|
||||||
|
<image src="../../static/icon-apps/icon-804.png" mode=""></image>
|
||||||
|
<view v-if="hoisting_count" class="cu-tag badge">{{hoisting_count}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="text-semi" style="text-align: center;">
|
||||||
|
<view>吊装作业</view>
|
||||||
|
</view>
|
||||||
|
</navigator>
|
||||||
|
<navigator v-show="premission.electricity" class="apps-item" hover-class="none" url="/pages/application/electricity/home">
|
||||||
|
<view class="imgs action">
|
||||||
|
<image src="../../static/icon-apps/icon-805.png" mode=""></image>
|
||||||
|
<view v-if="electricity_count" class="cu-tag badge">{{electricity_count}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="text-semi" style="text-align: center;">
|
||||||
|
<view>临时用电作业</view>
|
||||||
|
</view>
|
||||||
|
</navigator>
|
||||||
|
<navigator v-show="premission.hotwork" class="apps-item" hover-class="none" url="/pages/application/hotwork/home">
|
||||||
|
<view class="imgs action">
|
||||||
|
<image src="../../static/icon-apps/icon-807.png" mode=""></image>
|
||||||
|
<view v-if="hotwork_count" class="cu-tag badge">{{hotwork_count}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="text-semi" style="text-align: center;">
|
||||||
|
<view>动火作业</view>
|
||||||
|
</view>
|
||||||
|
</navigator>
|
||||||
|
<navigator v-show="premission['open-circuit']" class="apps-item" hover-class="none" url="/pages/application/open-circuit/home">
|
||||||
|
<view class="imgs action">
|
||||||
|
<image src="../../static/icon-apps/open-circuit.png" mode=""></image>
|
||||||
|
<view v-if="open_circuit_count" class="cu-tag badge">{{open_circuit_count}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="text-semi" style="text-align: center;">
|
||||||
|
<view>断路作业</view>
|
||||||
|
</view>
|
||||||
|
</navigator>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
@ -123,7 +127,7 @@
|
||||||
setCorpinfoId,
|
setCorpinfoId,
|
||||||
setloginUser,
|
setloginUser,
|
||||||
setDeptId,
|
setDeptId,
|
||||||
premission,
|
premission,
|
||||||
isRest
|
isRest
|
||||||
} from '@/common/tool.js';
|
} from '@/common/tool.js';
|
||||||
export default {
|
export default {
|
||||||
|
|
@ -131,7 +135,14 @@
|
||||||
return {
|
return {
|
||||||
premission: {},
|
premission: {},
|
||||||
isRest :'',
|
isRest :'',
|
||||||
eight_work_count: {},
|
confinedspace_count:0,
|
||||||
|
blind_board_count:0,
|
||||||
|
break_ground_count:0,
|
||||||
|
high_work_count:0,
|
||||||
|
hoisting_count:0,
|
||||||
|
electricity_count:0,
|
||||||
|
hotwork_count:0,
|
||||||
|
open_circuit_count:0,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted(){
|
mounted(){
|
||||||
|
|
@ -139,8 +150,15 @@
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.premission = Object.assign({}, premission)
|
this.premission = Object.assign({}, premission)
|
||||||
console.log(this.premission)
|
console.info( this.premission)
|
||||||
this.eight_work_count = {}
|
this. confinedspace_count = 0
|
||||||
|
this.blind_board_count = 0
|
||||||
|
this.break_ground_count = 0
|
||||||
|
this.high_work_count = 0
|
||||||
|
this.hoisting_count = 0
|
||||||
|
this.electricity_count = 0
|
||||||
|
this.hotwork_count = 0
|
||||||
|
this.open_circuit_count = 0
|
||||||
this.getRedPoint();
|
this.getRedPoint();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
@ -157,22 +175,173 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
getRedPoint(){
|
getRedPoint(){
|
||||||
uni.request({
|
// uni.request({
|
||||||
url: basePath + '/app/eightwork/checkWork',
|
// url: basePath +'/app/confinedspace/countCheck',
|
||||||
method: 'POST',
|
// method: 'POST',
|
||||||
dataType: 'json',
|
// dataType: 'json',
|
||||||
header: {
|
// header: {
|
||||||
'Content-type': 'application/x-www-form-urlencoded'
|
// 'Content-type':'application/x-www-form-urlencoded'
|
||||||
},
|
// },
|
||||||
data: {
|
// data: {
|
||||||
USER_ID: loginUser.USER_ID,
|
// tm:new Date().getTime(),
|
||||||
},
|
// CORPINFO_ID:loginUser.CORPINFO_ID,
|
||||||
success: (res) => {
|
// USER_ID:loginUser.USER_ID,
|
||||||
if ("success" == res.data.result) {
|
// },
|
||||||
this.eight_work_count = res.data.count
|
// success: (res) => {
|
||||||
}
|
// if ("success" == res.data.result) {
|
||||||
}
|
// Object.values(res.data.count).forEach(item=>{
|
||||||
})
|
// this.confinedspace_count += (item || 0)
|
||||||
|
// })
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// })
|
||||||
|
|
||||||
|
// uni.request({
|
||||||
|
// url: basePath +'/app/blindboard/countCheck',
|
||||||
|
// method: 'POST',
|
||||||
|
// dataType: 'json',
|
||||||
|
// header: {
|
||||||
|
// 'Content-type':'application/x-www-form-urlencoded'
|
||||||
|
// },
|
||||||
|
// data: {
|
||||||
|
// tm:new Date().getTime(),
|
||||||
|
// CORPINFO_ID:loginUser.CORPINFO_ID,
|
||||||
|
// USER_ID:loginUser.USER_ID,
|
||||||
|
// },
|
||||||
|
// success: (res) => {
|
||||||
|
// if ("success" == res.data.result) {
|
||||||
|
// Object.values(res.data.count).forEach(item=>{
|
||||||
|
// this.blind_board_count += (item || 0)
|
||||||
|
// })
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// })
|
||||||
|
|
||||||
|
// uni.request({
|
||||||
|
// url: basePath +'/app/breakground/countCheck',
|
||||||
|
// method: 'POST',
|
||||||
|
// dataType: 'json',
|
||||||
|
// header: {
|
||||||
|
// 'Content-type':'application/x-www-form-urlencoded'
|
||||||
|
// },
|
||||||
|
// data: {
|
||||||
|
// tm:new Date().getTime(),
|
||||||
|
// CORPINFO_ID:loginUser.CORPINFO_ID,
|
||||||
|
// USER_ID:loginUser.USER_ID,
|
||||||
|
// },
|
||||||
|
// success: (res) => {
|
||||||
|
// if ("success" == res.data.result) {
|
||||||
|
// Object.values(res.data.count).forEach(item=>{
|
||||||
|
// this.break_ground_count += (item || 0)
|
||||||
|
// })
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// })
|
||||||
|
|
||||||
|
// uni.request({
|
||||||
|
// url: basePath +'/app/highwork/countCheck',
|
||||||
|
// method: 'POST',
|
||||||
|
// dataType: 'json',
|
||||||
|
// header: {
|
||||||
|
// 'Content-type':'application/x-www-form-urlencoded'
|
||||||
|
// },
|
||||||
|
// data: {
|
||||||
|
// tm:new Date().getTime(),
|
||||||
|
// CORPINFO_ID:loginUser.CORPINFO_ID,
|
||||||
|
// USER_ID:loginUser.USER_ID,
|
||||||
|
// },
|
||||||
|
// success: (res) => {
|
||||||
|
// if ("success" == res.data.result) {
|
||||||
|
// Object.values(res.data.count).forEach(item=>{
|
||||||
|
// this.high_work_count += (item || 0)
|
||||||
|
// })
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// })
|
||||||
|
|
||||||
|
// uni.request({
|
||||||
|
// url: basePath +'/app/hoisting/countCheck',
|
||||||
|
// method: 'POST',
|
||||||
|
// dataType: 'json',
|
||||||
|
// header: {
|
||||||
|
// 'Content-type':'application/x-www-form-urlencoded'
|
||||||
|
// },
|
||||||
|
// data: {
|
||||||
|
// tm:new Date().getTime(),
|
||||||
|
// CORPINFO_ID:loginUser.CORPINFO_ID,
|
||||||
|
// USER_ID:loginUser.USER_ID,
|
||||||
|
// },
|
||||||
|
// success: (res) => {
|
||||||
|
// if ("success" == res.data.result) {
|
||||||
|
// Object.values(res.data.count).forEach(item=>{
|
||||||
|
// this.hoisting_count += (item || 0)
|
||||||
|
// })
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// })
|
||||||
|
|
||||||
|
// uni.request({
|
||||||
|
// url: basePath +'/app/electricity/countCheck',
|
||||||
|
// method: 'POST',
|
||||||
|
// dataType: 'json',
|
||||||
|
// header: {
|
||||||
|
// 'Content-type':'application/x-www-form-urlencoded'
|
||||||
|
// },
|
||||||
|
// data: {
|
||||||
|
// tm:new Date().getTime(),
|
||||||
|
// CORPINFO_ID:loginUser.CORPINFO_ID,
|
||||||
|
// USER_ID:loginUser.USER_ID,
|
||||||
|
// },
|
||||||
|
// success: (res) => {
|
||||||
|
// if ("success" == res.data.result) {
|
||||||
|
// Object.values(res.data.count).forEach(item=>{
|
||||||
|
// this.electricity_count += (item || 0)
|
||||||
|
// })
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// })
|
||||||
|
|
||||||
|
// uni.request({
|
||||||
|
// url: basePath +'/app/hotwork/countCheck',
|
||||||
|
// method: 'POST',
|
||||||
|
// dataType: 'json',
|
||||||
|
// header: {
|
||||||
|
// 'Content-type':'application/x-www-form-urlencoded'
|
||||||
|
// },
|
||||||
|
// data: {
|
||||||
|
// tm:new Date().getTime(),
|
||||||
|
// CORPINFO_ID:loginUser.CORPINFO_ID,
|
||||||
|
// USER_ID:loginUser.USER_ID,
|
||||||
|
// },
|
||||||
|
// success: (res) => {
|
||||||
|
// if ("success" == res.data.result) {
|
||||||
|
// Object.values(res.data.count).forEach(item=>{
|
||||||
|
// this.hotwork_count += (item || 0)
|
||||||
|
// })
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// })
|
||||||
|
|
||||||
|
// uni.request({
|
||||||
|
// url: basePath +'/app/cutroad/countCheck',
|
||||||
|
// method: 'POST',
|
||||||
|
// dataType: 'json',
|
||||||
|
// header: {
|
||||||
|
// 'Content-type':'application/x-www-form-urlencoded'
|
||||||
|
// },
|
||||||
|
// data: {
|
||||||
|
// tm:new Date().getTime(),
|
||||||
|
// CORPINFO_ID:loginUser.CORPINFO_ID,
|
||||||
|
// USER_ID:loginUser.USER_ID,
|
||||||
|
// },
|
||||||
|
// success: (res) => {
|
||||||
|
// if ("success" == res.data.result) {
|
||||||
|
// Object.values(res.data.count).forEach(item=>{
|
||||||
|
// this.open_circuit_count += (item || 0)
|
||||||
|
// })
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,164 +2,118 @@
|
||||||
<view>
|
<view>
|
||||||
<cu-custom bgColor="bg-gradual-blueness" :isBack="true" :isRingt="true">
|
<cu-custom bgColor="bg-gradual-blueness" :isBack="true" :isRingt="true">
|
||||||
<block slot="backText">返回</block>
|
<block slot="backText">返回</block>
|
||||||
<block slot="content">临时用电</block>
|
<block slot="content">临时用电作业</block>
|
||||||
</cu-custom>
|
</cu-custom>
|
||||||
|
|
||||||
<view class="apps-box">
|
<view class="apps-box">
|
||||||
|
|
||||||
<view class="apps-row">
|
<view class="apps-row">
|
||||||
<view class="apps-title">
|
<view class="apps-title">
|
||||||
<text class="apps-title-line"></text>
|
<text class="apps-title-line"></text>
|
||||||
<text>临时用电审批管理</text>
|
<text>临时用电作业审批管理</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="apps-warp">
|
<view class="apps-warp">
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/electricity/electricity-list/index?flow=提交申请">
|
<navigator class="apps-item" hover-class="none" url="/pages/application/electricity/electricity-apply/electricity-apply-list">
|
||||||
<view class="imgs action">
|
<view class="imgs action">
|
||||||
<image src="../../../static/icon-apps/icon-yxkj-1.png" mode=""></image>
|
<image src="../../../static/icon-apps/icon-yxkj-1.png" mode=""></image>
|
||||||
<view v-if="count.CREATE" class="cu-tag badge">{{count.CREATE}}</view>
|
<view v-if="count.COUNTBACK" class="cu-tag badge">{{count.COUNTBACK}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="text-semi" style="text-align: center;">
|
<view class="text-semi" style="text-align: center;">
|
||||||
<view>临时用电</view>
|
<view>临时用电</view>
|
||||||
<view>申请</view>
|
<view>作业申请</view>
|
||||||
</view>
|
</view>
|
||||||
</navigator>
|
</navigator>
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/electricity/electricity-list/index?flow=气体检测">
|
<navigator class="apps-item" hover-class="none" url="/pages/application/electricity/electricity-confirm/electricity-confirm-list">
|
||||||
<view class="imgs action">
|
|
||||||
<image src="../../../static/icon-apps/icon-zl-8.png" mode=""></image>
|
|
||||||
<view v-if="count.ANALYZE" class="cu-tag badge">{{count.ANALYZE}}</view>
|
|
||||||
</view>
|
|
||||||
<view class="text-semi" style="text-align: center;">
|
|
||||||
<view>气体分析</view>
|
|
||||||
</view>
|
|
||||||
</navigator>
|
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/electricity/electricity-list/index?flow=设置安全措施确认人">
|
|
||||||
<view class="imgs action">
|
<view class="imgs action">
|
||||||
<image src="../../../static/icon-apps/icon-yh-1.png" mode=""></image>
|
<image src="../../../static/icon-apps/icon-yh-1.png" mode=""></image>
|
||||||
<view v-if="count.MEASURES_SET" class="cu-tag badge">{{count.MEASURES_SET}}</view>
|
<view v-if="count.COUNTCONFIRM" class="cu-tag badge">{{count.COUNTCONFIRM}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="text-semi" style="text-align: center;">
|
<view class="text-semi" style="text-align: center;">
|
||||||
<view>设置安全</view>
|
|
||||||
<view>措施确认人</view>
|
|
||||||
</view>
|
|
||||||
</navigator>
|
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/electricity/electricity-list/index?flow=安全措施确认">
|
|
||||||
<view class="imgs action">
|
|
||||||
<image src="../../../static/icon-apps/icon-yh-1.png" mode=""></image>
|
|
||||||
<view v-if="count.MEASURES_CONFIRM" class="cu-tag badge">{{count.MEASURES_CONFIRM}}</view>
|
|
||||||
</view>
|
|
||||||
<view class="text-semi" style="text-align: center;">
|
|
||||||
<view>安全措施确认</view>
|
|
||||||
</view>
|
|
||||||
</navigator>
|
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/electricity/electricity-list/index?flow=监护人签字">
|
|
||||||
<view class="imgs action">
|
|
||||||
<image src="../../../static/icon-apps/icon-zl-9.png" mode=""></image>
|
|
||||||
<view v-if="count.GUARDIAN" class="cu-tag badge">{{count.GUARDIAN}}</view>
|
|
||||||
</view>
|
|
||||||
<view class="text-semi" style="text-align: center;">
|
|
||||||
<view>监护人</view>
|
|
||||||
<view>意见</view>
|
|
||||||
</view>
|
|
||||||
</navigator>
|
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/electricity/electricity-list/index?flow=用电人签字">
|
|
||||||
<view class="imgs action">
|
|
||||||
<image src="../../../static/icon-apps/icon-yxkj-4.png" mode=""></image>
|
|
||||||
<view v-if="count.ELECTRICITY" class="cu-tag badge">{{count.ELECTRICITY}}</view>
|
|
||||||
</view>
|
|
||||||
<view class="text-semi" style="text-align: center;">
|
|
||||||
<view>用电人意见</view>
|
|
||||||
</view>
|
|
||||||
</navigator>
|
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/electricity/electricity-list/index?flow=安全交底人签字">
|
|
||||||
<view class="imgs action">
|
|
||||||
<image src="../../../static/icon-apps/icon-807.png" mode=""></image>
|
|
||||||
<view v-if="count.CONFESS" class="cu-tag badge">{{count.CONFESS}}</view>
|
|
||||||
</view>
|
|
||||||
<view class="text-semi" style="text-align: center;">
|
|
||||||
<view>安全交底人</view>
|
|
||||||
<view>意见</view>
|
|
||||||
</view>
|
|
||||||
</navigator>
|
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/electricity/electricity-list/index?flow=接受交底人签字">
|
|
||||||
<view class="imgs action">
|
|
||||||
<image src="../../../static/icon-apps/icon-yxkj-4.png" mode=""></image>
|
|
||||||
<view v-if="count.ACCEPT_CONFESS" class="cu-tag badge">{{count.ACCEPT_CONFESS}}</view>
|
|
||||||
</view>
|
|
||||||
<view class="text-semi" style="text-align: center;">
|
|
||||||
<view>接受交底人</view>
|
|
||||||
<view>意见</view>
|
|
||||||
</view>
|
|
||||||
</navigator>
|
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/electricity/electricity-list/index?flow=作业人签字">
|
|
||||||
<view class="imgs action">
|
|
||||||
<image src="../../../static/icon-apps/icon-yxkj-2.png" mode=""></image>
|
|
||||||
<view v-if="count.WORK_USER" class="cu-tag badge">{{count.WORK_USER}}</view>
|
|
||||||
</view>
|
|
||||||
<view class="text-semi" style="text-align: center;">
|
|
||||||
<view>作业人</view>
|
|
||||||
<view>意见</view>
|
|
||||||
</view>
|
|
||||||
</navigator>
|
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/electricity/electricity-list/index?flow=作业负责人签字">
|
|
||||||
<view class="imgs action">
|
|
||||||
<image src="../../../static/icon-apps/icon-yxkj-2.png" mode=""></image>
|
|
||||||
<view v-if="count.CONFIRM" class="cu-tag badge">{{count.CONFIRM}}</view>
|
|
||||||
</view>
|
|
||||||
<view class="text-semi" style="text-align: center;">
|
|
||||||
<view>作业负责人</view>
|
<view>作业负责人</view>
|
||||||
<view>意见</view>
|
<view>意见</view>
|
||||||
</view>
|
</view>
|
||||||
</navigator>
|
</navigator>
|
||||||
|
<navigator class="apps-item" hover-class="none" url="/pages/application/electricity/electricity-audit/electricity-audit-list">
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/electricity/electricity-list/index?flow=用电单位签字">
|
|
||||||
<view class="imgs action">
|
<view class="imgs action">
|
||||||
<image src="../../../static/icon-apps/icon-907.png" mode=""></image>
|
<image src="../../../static/icon-apps/icon-zl-10.png" mode=""></image>
|
||||||
<view v-if="count.AUDIT" class="cu-tag badge">{{count.AUDIT}}</view>
|
<view v-if="count.COUNTAUDIT" class="cu-tag badge">{{count.COUNTAUDIT}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="text-semi" style="text-align: center;">
|
<view class="text-semi" style="text-align: center;">
|
||||||
<view>用电单位</view>
|
<view>用电单位</view>
|
||||||
<view>意见</view>
|
<view>意见</view>
|
||||||
</view>
|
</view>
|
||||||
</navigator>
|
</navigator>
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/electricity/electricity-list/index?flow=配送电单位签字">
|
<navigator class="apps-item" hover-class="none" url="/pages/application/electricity/electricity-approve/electricity-approve-list">
|
||||||
<view class="imgs action">
|
<view class="imgs action">
|
||||||
<image src="../../../static/icon-apps/icon-907.png" mode=""></image>
|
<image src="../../../static/icon-apps/icon-zl-9.png" mode=""></image>
|
||||||
<view v-if="count.APPROVE" class="cu-tag badge">{{count.APPROVE}}</view>
|
<view v-if="count.COUNTAPPROVE" class="cu-tag badge">{{count.COUNTAPPROVE}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="text-semi" style="text-align: center;">
|
<view class="text-semi" style="text-align: center;">
|
||||||
<view>配送电单位</view>
|
<view>配送电单位</view>
|
||||||
<view>意见</view>
|
<view>意见</view>
|
||||||
</view>
|
</view>
|
||||||
</navigator>
|
</navigator>
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/electricity/electricity-list/index?flow=开始作业">
|
<navigator class="apps-item" hover-class="none" url="/pages/application/electricity/electricity-accept/electricity-accept-list">
|
||||||
|
<view class="imgs action">
|
||||||
|
<image src="../../../static/icon-apps/icon-901.png" mode=""></image>
|
||||||
|
<view v-if="count.COUNTACCEPT" class="cu-tag badge">{{count.COUNTACCEPT}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="text-semi" style="text-align: center;">
|
||||||
|
<view>完工验收</view>
|
||||||
|
</view>
|
||||||
|
</navigator>
|
||||||
|
<navigator class="apps-item" hover-class="none" url="/pages/application/electricity/electricity-gas/electricity-gas-list">
|
||||||
|
<view class="imgs action">
|
||||||
|
<image src="../../../static/icon-apps/icon-zl-8.png" mode=""></image>
|
||||||
|
<view v-if="count.COUNTANALYZE" class="cu-tag badge">{{count.COUNTANALYZE}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="text-semi" style="text-align: center;">
|
||||||
|
<view>气体检测</view>
|
||||||
|
</view>
|
||||||
|
</navigator>
|
||||||
|
<navigator class="apps-item" hover-class="none" url="/pages/application/electricity/electricity-guardian/electricity-guardian-list">
|
||||||
|
<view class="imgs action">
|
||||||
|
<image src="../../../static/icon-apps/icon-jh-1.png" mode=""></image>
|
||||||
|
<view v-if="count.COUNTGUARDIAN" class="cu-tag badge">{{count.COUNTGUARDIAN}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="text-semi" style="text-align: center;">
|
||||||
|
<view>监护人</view>
|
||||||
|
</view>
|
||||||
|
</navigator>
|
||||||
|
<navigator class="apps-item" hover-class="none" url="/pages/application/electricity/electricity-confess/electricity-confess-list">
|
||||||
<view class="imgs action">
|
<view class="imgs action">
|
||||||
<image src="../../../static/icon-apps/icon-aq-1.png" mode=""></image>
|
<image src="../../../static/icon-apps/icon-aq-1.png" mode=""></image>
|
||||||
<view v-if="count.WORK_START" class="cu-tag badge">{{count.WORK_START}}</view>
|
<view v-if="count.COUNTCONFESS" class="cu-tag badge">{{count.COUNTCONFESS}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="text-semi" style="text-align: center;">
|
<view class="text-semi" style="text-align: center;">
|
||||||
<view>开始作业时间</view>
|
<view>安全交底人</view>
|
||||||
</view>
|
</view>
|
||||||
</navigator>
|
</navigator>
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/electricity/electricity-list/index?flow=结束作业">
|
<navigator class="apps-item" hover-class="none" url="/pages/application/electricity/electricity-acceptconfess/electricity-acceptconfess-list">
|
||||||
<view class="imgs action">
|
<view class="imgs action">
|
||||||
<image src="../../../static/icon-apps/icon-js-1.png" mode=""></image>
|
<image src="../../../static/icon-apps/icon-js-1.png" mode=""></image>
|
||||||
<view v-if="count.WORK_END" class="cu-tag badge">{{count.WORK_END}}</view>
|
<view v-if="count.COUNTACCEPTCONFESS" class="cu-tag badge">{{count.COUNTACCEPTCONFESS}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="text-semi" style="text-align: center;">
|
<view class="text-semi" style="text-align: center;">
|
||||||
<view>结束作业时间</view>
|
<view>接受交底人</view>
|
||||||
</view>
|
|
||||||
</navigator>
|
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/electricity/electricity-list/index?flow=验收签字">
|
|
||||||
<view class="imgs action">
|
|
||||||
<image src="../../../static/icon-apps/icon-js-1.png" mode=""></image>
|
|
||||||
<view v-if="count.ACCEPT" class="cu-tag badge">{{count.ACCEPT}}</view>
|
|
||||||
</view>
|
|
||||||
<view class="text-semi" style="text-align: center;">
|
|
||||||
<view>验收归档</view>
|
|
||||||
</view>
|
</view>
|
||||||
</navigator>
|
</navigator>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
<!-- <view class="apps-row">
|
||||||
|
<view class="apps-title">
|
||||||
|
<text class="apps-title-line"></text>
|
||||||
|
<text>其他应用</text>
|
||||||
|
</view>
|
||||||
|
<view class="apps-warp">
|
||||||
|
<navigator class="apps-item" hover-class="none" url="/pages/application/other-apps/videos/videos">
|
||||||
|
<view class="imgs action">
|
||||||
|
<image src="../../static/icon-apps/icon-zl-7.png" mode=""></image>
|
||||||
|
</view>
|
||||||
|
<view class="text-semi">视频中心</view>
|
||||||
|
</navigator>
|
||||||
|
</view>
|
||||||
|
</view> -->
|
||||||
<view class="cu-tabbar-height"></view>
|
<view class="cu-tabbar-height"></view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -204,32 +158,32 @@
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getData(){
|
// getData(){
|
||||||
var _this = this;
|
// var _this = this;
|
||||||
uni.showLoading({
|
// uni.showLoading({
|
||||||
title:"加载中..."
|
// title:"加载中..."
|
||||||
});//加载中动画
|
// });//加载中动画
|
||||||
uni.request({
|
// uni.request({
|
||||||
url: basePath +'/app/electricity/checkWorkCount',
|
// url: basePath +'/app/electricity/countCheck',
|
||||||
method: 'POST',
|
// method: 'POST',
|
||||||
dataType: 'json',
|
// dataType: 'json',
|
||||||
header: {
|
// header: {
|
||||||
'Content-type':'application/x-www-form-urlencoded'
|
// 'Content-type':'application/x-www-form-urlencoded'
|
||||||
},
|
// },
|
||||||
data: {
|
// data: {
|
||||||
tm:new Date().getTime(),
|
// tm:new Date().getTime(),
|
||||||
CORPINFO_ID:loginUser.CORPINFO_ID,
|
// CORPINFO_ID:loginUser.CORPINFO_ID,
|
||||||
USER_ID:loginUser.USER_ID,
|
// USER_ID:loginUser.USER_ID,
|
||||||
},
|
// },
|
||||||
success: (res) => {
|
// success: (res) => {
|
||||||
uni.hideLoading();//结束加载中动画
|
// uni.hideLoading();//结束加载中动画
|
||||||
if ("success" == res.data.result) {
|
// if ("success" == res.data.result) {
|
||||||
_this.count = res.data.count;
|
// _this.count = res.data.count;
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
}
|
// }
|
||||||
})
|
// })
|
||||||
},
|
// },
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -12,143 +12,90 @@
|
||||||
<text>高处作业审批管理</text>
|
<text>高处作业审批管理</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="apps-warp">
|
<view class="apps-warp">
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/highwork/highwork-list/index?flow=提交申请">
|
<navigator class="apps-item" hover-class="none" url="/pages/application/high-work/high-work-apply/high-work-apply-list">
|
||||||
<view class="imgs action">
|
<view class="imgs action">
|
||||||
<image src="../../../static/icon-apps/icon-yxkj-1.png" mode=""></image>
|
<image src="../../../static/icon-apps/icon-yxkj-1.png" mode=""></image>
|
||||||
<view v-if="count.CREATE" class="cu-tag badge">{{count.CREATE}}</view>
|
<view v-if="count.COUNTBACK" class="cu-tag badge">{{count.COUNTBACK}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="text-semi" style="text-align: center;">
|
<view class="text-semi" style="text-align: center;">
|
||||||
<view>高处作业</view>
|
<view>高处作业</view>
|
||||||
<view>申请</view>
|
<view>申请</view>
|
||||||
</view>
|
</view>
|
||||||
</navigator>
|
</navigator>
|
||||||
|
<navigator class="apps-item" hover-class="none" url="/pages/application/high-work/high-work-confirm/high-work-confirm-list">
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/highwork/highwork-list/index?flow=设置安全措施确认人">
|
|
||||||
<view class="imgs action">
|
|
||||||
<image src="../../../static/icon-apps/icon-yh-1.png" mode=""></image>
|
|
||||||
<view v-if="count.MEASURES_SET" class="cu-tag badge">{{count.MEASURES_SET}}</view>
|
|
||||||
</view>
|
|
||||||
<view class="text-semi" style="text-align: center;">
|
|
||||||
<view>设置安全</view>
|
|
||||||
<view>措施确认人</view>
|
|
||||||
</view>
|
|
||||||
</navigator>
|
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/highwork/highwork-list/index?flow=安全措施确认">
|
|
||||||
<view class="imgs action">
|
|
||||||
<image src="../../../static/icon-apps/icon-yh-1.png" mode=""></image>
|
|
||||||
<view v-if="count.MEASURES_CONFIRM" class="cu-tag badge">{{count.MEASURES_CONFIRM}}</view>
|
|
||||||
</view>
|
|
||||||
<view class="text-semi" style="text-align: center;">
|
|
||||||
<view>安全措施确认</view>
|
|
||||||
</view>
|
|
||||||
</navigator>
|
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/highwork/highwork-list/index?flow=监护人签字">
|
|
||||||
<view class="imgs action">
|
|
||||||
<image src="../../../static/icon-apps/icon-zl-9.png" mode=""></image>
|
|
||||||
<view v-if="count.GUARDIAN" class="cu-tag badge">{{count.GUARDIAN}}</view>
|
|
||||||
</view>
|
|
||||||
<view class="text-semi" style="text-align: center;">
|
|
||||||
<view>监护人</view>
|
|
||||||
<view>意见</view>
|
|
||||||
</view>
|
|
||||||
</navigator>
|
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/highwork/highwork-list/index?flow=安全交底人签字">
|
|
||||||
<view class="imgs action">
|
|
||||||
<image src="../../../static/icon-apps/icon-807.png" mode=""></image>
|
|
||||||
<view v-if="count.CONFESS" class="cu-tag badge">{{count.CONFESS}}</view>
|
|
||||||
</view>
|
|
||||||
<view class="text-semi" style="text-align: center;">
|
|
||||||
<view>安全交底人</view>
|
|
||||||
<view>意见</view>
|
|
||||||
</view>
|
|
||||||
</navigator>
|
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/highwork/highwork-list/index?flow=接受交底人签字">
|
|
||||||
<view class="imgs action">
|
<view class="imgs action">
|
||||||
<image src="../../../static/icon-apps/icon-yxkj-4.png" mode=""></image>
|
<image src="../../../static/icon-apps/icon-yxkj-4.png" mode=""></image>
|
||||||
<view v-if="count.ACCEPT_CONFESS" class="cu-tag badge">{{count.ACCEPT_CONFESS}}</view>
|
<view v-if="count.COUNTCONSTRUCTION" class="cu-tag badge">{{count.COUNTCONSTRUCTION}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="text-semi" style="text-align: center;">
|
<view class="text-semi" style="text-align: center;">
|
||||||
<view>接受交底人</view>
|
|
||||||
<view>意见</view>
|
|
||||||
</view>
|
|
||||||
</navigator>
|
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/highwork/highwork-list/index?flow=作业人签字">
|
|
||||||
<view class="imgs action">
|
|
||||||
<image src="../../../static/icon-apps/icon-yxkj-2.png" mode=""></image>
|
|
||||||
<view v-if="count.WORK_USER" class="cu-tag badge">{{count.WORK_USER}}</view>
|
|
||||||
</view>
|
|
||||||
<view class="text-semi" style="text-align: center;">
|
|
||||||
<view>作业人</view>
|
|
||||||
<view>意见</view>
|
|
||||||
</view>
|
|
||||||
</navigator>
|
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/highwork/highwork-list/index?flow=作业负责人签字">
|
|
||||||
<view class="imgs action">
|
|
||||||
<image src="../../../static/icon-apps/icon-yxkj-2.png" mode=""></image>
|
|
||||||
<view v-if="count.CONFIRM" class="cu-tag badge">{{count.CONFIRM}}</view>
|
|
||||||
</view>
|
|
||||||
<view class="text-semi" style="text-align: center;">
|
|
||||||
<view>作业负责人</view>
|
<view>作业负责人</view>
|
||||||
<view>意见</view>
|
<view>意见</view>
|
||||||
</view>
|
</view>
|
||||||
</navigator>
|
</navigator>
|
||||||
|
<navigator class="apps-item" hover-class="none" url="/pages/application/high-work/high-work-leader/high-work-leader-list">
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/highwork/highwork-list/index?flow=所在单位签字">
|
|
||||||
<view class="imgs action">
|
<view class="imgs action">
|
||||||
<image src="../../../static/icon-apps/icon-907.png" mode=""></image>
|
<image src="../../../static/icon-apps/icon-yxkj-4.png" mode=""></image>
|
||||||
<view v-if="count.LEADER" class="cu-tag badge">{{count.LEADER}}</view>
|
<view v-if="count.COUNTLEADER" class="cu-tag badge">{{count.COUNTLEADER}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="text-semi" style="text-align: center;">
|
<view class="text-semi" style="text-align: center;">
|
||||||
<view>所在单位</view>
|
<view>所在单位</view>
|
||||||
<view>意见</view>
|
<view>意见</view>
|
||||||
</view>
|
</view>
|
||||||
</navigator>
|
</navigator>
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/highwork/highwork-list/index?flow=安全管理部门签字">
|
<navigator class="apps-item" hover-class="none" url="/pages/application/high-work/high-work-audit/high-work-audit-list">
|
||||||
<view class="imgs action">
|
<view class="imgs action">
|
||||||
<image src="../../../static/icon-apps/icon-901.png" mode=""></image>
|
<image src="../../../static/icon-apps/icon-yxkj-2.png" mode=""></image>
|
||||||
<view v-if="count.AUDIT" class="cu-tag badge">{{count.AUDIT}}</view>
|
<view v-if="count.COUNTAUDIT" class="cu-tag badge">{{count.COUNTAUDIT}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="text-semi" style="text-align: center;">
|
<view class="text-semi" style="text-align: center;">
|
||||||
<view>审核部门</view>
|
<view>审核部门</view>
|
||||||
<view>意见</view>
|
<view>意见</view>
|
||||||
</view>
|
</view>
|
||||||
</navigator>
|
</navigator>
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/highwork/highwork-list/index?flow=审批人签字">
|
<navigator class="apps-item" hover-class="none" url="/pages/application/high-work/high-work-approve/high-work-approve-list">
|
||||||
<view class="imgs action">
|
<view class="imgs action">
|
||||||
<image src="../../../static/icon-apps/icon-901.png" mode=""></image>
|
<image src="../../../static/icon-apps/icon-zl-10.png" mode=""></image>
|
||||||
<view v-if="count.APPROVE" class="cu-tag badge">{{count.APPROVE}}</view>
|
<view v-if="count.COUNTAPPROVE" class="cu-tag badge">{{count.COUNTAPPROVE}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="text-semi" style="text-align: center;">
|
<view class="text-semi" style="text-align: center;">
|
||||||
<view>审批部门</view>
|
<view>审批部门</view>
|
||||||
<view>意见</view>
|
<view>意见</view>
|
||||||
</view>
|
</view>
|
||||||
</navigator>
|
</navigator>
|
||||||
|
<navigator class="apps-item" hover-class="none" url="/pages/application/high-work/high-work-accept/high-work-accept-list">
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/highwork/highwork-list/index?flow=开始作业">
|
<view class="imgs action">
|
||||||
|
<image src="../../../static/icon-apps/icon-901.png" mode=""></image>
|
||||||
|
<view v-if="count.COUNTACCEPT" class="cu-tag badge">{{count.COUNTACCEPT}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="text-semi" style="text-align: center;">
|
||||||
|
<view>完工验收</view>
|
||||||
|
</view>
|
||||||
|
</navigator>
|
||||||
|
<navigator class="apps-item" hover-class="none" url="/pages/application/high-work/high-work-guardian/high-work-guardian-list">
|
||||||
|
<view class="imgs action">
|
||||||
|
<image src="../../../static/icon-apps/icon-jh-1.png" mode=""></image>
|
||||||
|
<view v-if="count.COUNTGUARDIAN" class="cu-tag badge">{{count.COUNTGUARDIAN}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="text-semi" style="text-align: center;">
|
||||||
|
<view>监护人</view>
|
||||||
|
</view>
|
||||||
|
</navigator>
|
||||||
|
<navigator class="apps-item" hover-class="none" url="/pages/application/high-work/high-work-confess/high-work-confess-list">
|
||||||
<view class="imgs action">
|
<view class="imgs action">
|
||||||
<image src="../../../static/icon-apps/icon-aq-1.png" mode=""></image>
|
<image src="../../../static/icon-apps/icon-aq-1.png" mode=""></image>
|
||||||
<view v-if="count.WORK_START" class="cu-tag badge">{{count.WORK_START}}</view>
|
<view v-if="count.COUNTCONFESS" class="cu-tag badge">{{count.COUNTCONFESS}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="text-semi" style="text-align: center;">
|
<view class="text-semi" style="text-align: center;">
|
||||||
<view>开始作业时间</view>
|
<view>安全交底人</view>
|
||||||
</view>
|
</view>
|
||||||
</navigator>
|
</navigator>
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/highwork/highwork-list/index?flow=结束作业">
|
<navigator class="apps-item" hover-class="none" url="/pages/application/high-work/high-work-acceptconfess/high-work-acceptconfess-list">
|
||||||
<view class="imgs action">
|
<view class="imgs action">
|
||||||
<image src="../../../static/icon-apps/icon-js-1.png" mode=""></image>
|
<image src="../../../static/icon-apps/icon-js-1.png" mode=""></image>
|
||||||
<view v-if="count.WORK_END" class="cu-tag badge">{{count.WORK_END}}</view>
|
<view v-if="count.COUNTACCEPTCONFESS" class="cu-tag badge">{{count.COUNTACCEPTCONFESS}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="text-semi" style="text-align: center;">
|
<view class="text-semi" style="text-align: center;">
|
||||||
<view>结束作业时间</view>
|
<view>接受交底人</view>
|
||||||
</view>
|
|
||||||
</navigator>
|
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/highwork/highwork-list/index?flow=验收签字">
|
|
||||||
<view class="imgs action">
|
|
||||||
<image src="../../../static/icon-apps/icon-js-1.png" mode=""></image>
|
|
||||||
<view v-if="count.ACCEPT" class="cu-tag badge">{{count.ACCEPT}}</view>
|
|
||||||
</view>
|
|
||||||
<view class="text-semi" style="text-align: center;">
|
|
||||||
<view>验收归档</view>
|
|
||||||
</view>
|
</view>
|
||||||
</navigator>
|
</navigator>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -212,32 +159,32 @@
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getData(){
|
// getData(){
|
||||||
var _this = this;
|
// var _this = this;
|
||||||
uni.showLoading({
|
// uni.showLoading({
|
||||||
title:"加载中..."
|
// title:"加载中..."
|
||||||
});//加载中动画
|
// });//加载中动画
|
||||||
uni.request({
|
// uni.request({
|
||||||
url: basePath +'/app/highwork/checkWorkCount',
|
// url: basePath +'/app/highwork/countCheck',
|
||||||
method: 'POST',
|
// method: 'POST',
|
||||||
dataType: 'json',
|
// dataType: 'json',
|
||||||
header: {
|
// header: {
|
||||||
'Content-type':'application/x-www-form-urlencoded'
|
// 'Content-type':'application/x-www-form-urlencoded'
|
||||||
},
|
// },
|
||||||
data: {
|
// data: {
|
||||||
tm:new Date().getTime(),
|
// tm:new Date().getTime(),
|
||||||
CORPINFO_ID:loginUser.CORPINFO_ID,
|
// CORPINFO_ID:loginUser.CORPINFO_ID,
|
||||||
USER_ID:loginUser.USER_ID,
|
// USER_ID:loginUser.USER_ID,
|
||||||
},
|
// },
|
||||||
success: (res) => {
|
// success: (res) => {
|
||||||
uni.hideLoading();//结束加载中动画
|
// uni.hideLoading();//结束加载中动画
|
||||||
if ("success" == res.data.result) {
|
// if ("success" == res.data.result) {
|
||||||
_this.count = res.data.count;
|
// _this.count = res.data.count;
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
}
|
// }
|
||||||
})
|
// })
|
||||||
},
|
// },
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -1,332 +1,260 @@
|
||||||
<template>
|
<template>
|
||||||
<view>
|
<view>
|
||||||
<cu-custom bgColor="bg-gradual-blueness" :isBack="true" :isRingt="true">
|
<cu-custom bgColor="bg-gradual-blueness" :isBack="true" :isRingt="true">
|
||||||
<block slot="backText">返回</block>
|
<block slot="backText">返回</block>
|
||||||
<block slot="content">吊装作业</block>
|
<block slot="content">吊装作业</block>
|
||||||
</cu-custom>
|
</cu-custom>
|
||||||
|
|
||||||
<view class="apps-box">
|
<view class="apps-box">
|
||||||
<view class="apps-row">
|
<view class="apps-row">
|
||||||
<view class="apps-title">
|
<view class="apps-title">
|
||||||
<text class="apps-title-line"></text>
|
<text class="apps-title-line"></text>
|
||||||
<text>吊装作业审批管理</text>
|
<text>吊装作业审批管理</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="apps-warp">
|
<view class="apps-warp">
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/hoisting/hoisting-list/index?flow=提交申请">
|
<navigator class="apps-item" hover-class="none" url="/pages/application/hoisting/hoisting-apply/hoisting-apply-list">
|
||||||
<view class="imgs action">
|
<view class="imgs action">
|
||||||
<image src="../../../static/icon-apps/icon-yxkj-1.png" mode=""></image>
|
<image src="../../../static/icon-apps/icon-yxkj-1.png" mode=""></image>
|
||||||
<view v-if="count.CREATE" class="cu-tag badge">{{count.CREATE}}</view>
|
<view v-if="count.COUNTBACK" class="cu-tag badge">{{count.COUNTBACK}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="text-semi" style="text-align: center;">
|
<view class="text-semi" style="text-align: center;">
|
||||||
<view>吊装作业</view>
|
<view>吊装作业</view>
|
||||||
<view>申请</view>
|
<view>申请</view>
|
||||||
</view>
|
</view>
|
||||||
</navigator>
|
</navigator>
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/hoisting/hoisting-list/index?flow=司索人签字">
|
<navigator class="apps-item" hover-class="none" url="/pages/application/hoisting/hoisting-leader/hoisting-leader-list">
|
||||||
<view class="imgs action">
|
<view class="imgs action">
|
||||||
<image src="../../../static/icon-apps/icon-yxkj-2.png" mode=""></image>
|
<image src="../../../static/icon-apps/icon-yxkj-4.png" mode=""></image>
|
||||||
<view v-if="count.SISUO" class="cu-tag badge">{{count.SISUO}}</view>
|
<view v-if="count.COUNTLEADER" class="cu-tag badge">{{count.COUNTLEADER}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="text-semi" style="text-align: center;">
|
<view class="text-semi" style="text-align: center;">
|
||||||
<view>司索人</view>
|
<view>作业指挥</view>
|
||||||
<view>意见</view>
|
<view>意见</view>
|
||||||
</view>
|
</view>
|
||||||
</navigator>
|
</navigator>
|
||||||
|
<navigator class="apps-item" hover-class="none" url="/pages/application/hoisting/hoisting-confirm/hoisting-confirm-list">
|
||||||
|
<view class="imgs action">
|
||||||
|
<image src="../../../static/icon-apps/icon-yxkj-4.png" mode=""></image>
|
||||||
|
<view v-if="count.COUNTCONSTRUCTION" class="cu-tag badge">{{count.COUNTCONSTRUCTION}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="text-semi" style="text-align: center;">
|
||||||
|
<view>所在单位</view>
|
||||||
|
<view>意见</view>
|
||||||
|
</view>
|
||||||
|
</navigator>
|
||||||
|
<navigator class="apps-item" hover-class="none" url="/pages/application/hoisting/hoisting-audit/hoisting-audit-list">
|
||||||
|
<view class="imgs action">
|
||||||
|
<image src="../../../static/icon-apps/icon-yxkj-2.png" mode=""></image>
|
||||||
|
<view v-if="count.COUNTAUDIT" class="cu-tag badge">{{count.COUNTAUDIT}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="text-semi" style="text-align: center;">
|
||||||
|
<view>审核部门</view>
|
||||||
|
<view>意见</view>
|
||||||
|
</view>
|
||||||
|
</navigator>
|
||||||
|
<navigator class="apps-item" hover-class="none" url="/pages/application/hoisting/hoisting-approve/hoisting-approve-list">
|
||||||
|
<view class="imgs action">
|
||||||
|
<image src="../../../static/icon-apps/icon-zl-10.png" mode=""></image>
|
||||||
|
<view v-if="count.COUNTAPPROVE" class="cu-tag badge">{{count.COUNTAPPROVE}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="text-semi" style="text-align: center;">
|
||||||
|
<view>审批部门</view>
|
||||||
|
<view>意见</view>
|
||||||
|
</view>
|
||||||
|
</navigator>
|
||||||
|
<navigator class="apps-item" hover-class="none" url="/pages/application/hoisting/hoisting-accept/hoisting-accept-list">
|
||||||
|
<view class="imgs action">
|
||||||
|
<image src="../../../static/icon-apps/icon-zl-10.png" mode=""></image>
|
||||||
|
<view v-if="count.COUNTACCEPT" class="cu-tag badge">{{count.COUNTACCEPT}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="text-semi" style="text-align: center;">
|
||||||
|
<view>完工验收</view>
|
||||||
|
</view>
|
||||||
|
</navigator>
|
||||||
|
<navigator class="apps-item" hover-class="none" url="/pages/application/hoisting/hoisting-guardian/hoisting-guardian-list">
|
||||||
|
<view class="imgs action">
|
||||||
|
<image src="../../../static/icon-apps/icon-jh-1.png" mode=""></image>
|
||||||
|
<view v-if="count.COUNTGUARDIAN" class="cu-tag badge">{{count.COUNTGUARDIAN}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="text-semi" style="text-align: center;">
|
||||||
|
<view>监护人</view>
|
||||||
|
</view>
|
||||||
|
</navigator>
|
||||||
|
<navigator class="apps-item" hover-class="none" url="/pages/application/hoisting/hoisting-confess/hoisting-confess-list">
|
||||||
|
<view class="imgs action">
|
||||||
|
<image src="../../../static/icon-apps/icon-aq-1.png" mode=""></image>
|
||||||
|
<view v-if="count.COUNTCONFESS" class="cu-tag badge">{{count.COUNTCONFESS}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="text-semi" style="text-align: center;">
|
||||||
|
<view>安全交底人</view>
|
||||||
|
</view>
|
||||||
|
</navigator>
|
||||||
|
<navigator class="apps-item" hover-class="none" url="/pages/application/hoisting/hoisting-acceptconfess/hoisting-acceptconfess-list">
|
||||||
|
<view class="imgs action">
|
||||||
|
<image src="../../../static/icon-apps/icon-js-1.png" mode=""></image>
|
||||||
|
<view v-if="count.COUNTACCEPTCONFESS" class="cu-tag badge">{{count.COUNTACCEPTCONFESS}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="text-semi" style="text-align: center;">
|
||||||
|
<view>接受交底人</view>
|
||||||
|
</view>
|
||||||
|
</navigator>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/hoisting/hoisting-list/index?flow=设置安全措施确认人">
|
<!-- <view class="apps-row">
|
||||||
<view class="imgs action">
|
<view class="apps-title">
|
||||||
<image src="../../../static/icon-apps/icon-yh-1.png" mode=""></image>
|
<text class="apps-title-line"></text>
|
||||||
<view v-if="count.MEASURES_SET" class="cu-tag badge">{{count.MEASURES_SET}}</view>
|
<text>其他应用</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="text-semi" style="text-align: center;">
|
<view class="apps-warp">
|
||||||
<view>设置安全</view>
|
<navigator class="apps-item" hover-class="none" url="/pages/application/other-apps/videos/videos">
|
||||||
<view>措施确认人</view>
|
<view class="imgs action">
|
||||||
</view>
|
<image src="../../static/icon-apps/icon-zl-7.png" mode=""></image>
|
||||||
</navigator>
|
</view>
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/hoisting/hoisting-list/index?flow=安全措施确认">
|
<view class="text-semi">视频中心</view>
|
||||||
<view class="imgs action">
|
</navigator>
|
||||||
<image src="../../../static/icon-apps/icon-yh-1.png" mode=""></image>
|
</view>
|
||||||
<view v-if="count.MEASURES_CONFIRM" class="cu-tag badge">{{count.MEASURES_CONFIRM}}</view>
|
</view> -->
|
||||||
</view>
|
<view class="cu-tabbar-height"></view>
|
||||||
<view class="text-semi" style="text-align: center;">
|
</view>
|
||||||
<view>安全措施确认</view>
|
</view>
|
||||||
</view>
|
|
||||||
</navigator>
|
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/hoisting/hoisting-list/index?flow=监护人签字">
|
|
||||||
<view class="imgs action">
|
|
||||||
<image src="../../../static/icon-apps/icon-zl-9.png" mode=""></image>
|
|
||||||
<view v-if="count.GUARDIAN" class="cu-tag badge">{{count.GUARDIAN}}</view>
|
|
||||||
</view>
|
|
||||||
<view class="text-semi" style="text-align: center;">
|
|
||||||
<view>监护人</view>
|
|
||||||
<view>意见</view>
|
|
||||||
</view>
|
|
||||||
</navigator>
|
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/hoisting/hoisting-list/index?flow=安全交底人签字">
|
|
||||||
<view class="imgs action">
|
|
||||||
<image src="../../../static/icon-apps/icon-807.png" mode=""></image>
|
|
||||||
<view v-if="count.CONFESS" class="cu-tag badge">{{count.CONFESS}}</view>
|
|
||||||
</view>
|
|
||||||
<view class="text-semi" style="text-align: center;">
|
|
||||||
<view>安全交底人</view>
|
|
||||||
<view>意见</view>
|
|
||||||
</view>
|
|
||||||
</navigator>
|
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/hoisting/hoisting-list/index?flow=接受交底人签字">
|
|
||||||
<view class="imgs action">
|
|
||||||
<image src="../../../static/icon-apps/icon-yxkj-4.png" mode=""></image>
|
|
||||||
<view v-if="count.ACCEPT_CONFESS" class="cu-tag badge">{{count.ACCEPT_CONFESS}}</view>
|
|
||||||
</view>
|
|
||||||
<view class="text-semi" style="text-align: center;">
|
|
||||||
<view>接受交底人</view>
|
|
||||||
<view>意见</view>
|
|
||||||
</view>
|
|
||||||
</navigator>
|
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/hoisting/hoisting-list/index?flow=作业人签字">
|
|
||||||
<view class="imgs action">
|
|
||||||
<image src="../../../static/icon-apps/icon-yxkj-2.png" mode=""></image>
|
|
||||||
<view v-if="count.WORK_USER" class="cu-tag badge">{{count.WORK_USER}}</view>
|
|
||||||
</view>
|
|
||||||
<view class="text-semi" style="text-align: center;">
|
|
||||||
<view>作业人</view>
|
|
||||||
<view>意见</view>
|
|
||||||
</view>
|
|
||||||
</navigator>
|
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/hoisting/hoisting-list/index?flow=作业负责人签字">
|
|
||||||
<view class="imgs action">
|
|
||||||
<image src="../../../static/icon-apps/icon-yxkj-2.png" mode=""></image>
|
|
||||||
<view v-if="count.CONFIRM" class="cu-tag badge">{{count.CONFIRM}}</view>
|
|
||||||
</view>
|
|
||||||
<view class="text-semi" style="text-align: center;">
|
|
||||||
<view>作业负责人</view>
|
|
||||||
<view>意见</view>
|
|
||||||
</view>
|
|
||||||
</navigator>
|
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/hoisting/hoisting-list/index?flow=吊装指挥人签字">
|
|
||||||
<view class="imgs action">
|
|
||||||
<image src="../../../static/icon-apps/icon-yxkj-2.png" mode=""></image>
|
|
||||||
<view v-if="count.PROJECT_MANAGER" class="cu-tag badge">{{count.PROJECT_MANAGER}}</view>
|
|
||||||
</view>
|
|
||||||
<view class="text-semi" style="text-align: center;">
|
|
||||||
<view>吊装指挥人</view>
|
|
||||||
<view>意见</view>
|
|
||||||
</view>
|
|
||||||
</navigator>
|
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/hoisting/hoisting-list/index?flow=所在单位签字">
|
|
||||||
<view class="imgs action">
|
|
||||||
<image src="../../../static/icon-apps/icon-907.png" mode=""></image>
|
|
||||||
<view v-if="count.LEADER" class="cu-tag badge">{{count.LEADER}}</view>
|
|
||||||
</view>
|
|
||||||
<view class="text-semi" style="text-align: center;">
|
|
||||||
<view>所在单位</view>
|
|
||||||
<view>意见</view>
|
|
||||||
</view>
|
|
||||||
</navigator>
|
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/hoisting/hoisting-list/index?flow=安全管理部门签字">
|
|
||||||
<view class="imgs action">
|
|
||||||
<image src="../../../static/icon-apps/icon-901.png" mode=""></image>
|
|
||||||
<view v-if="count.AUDIT" class="cu-tag badge">{{count.AUDIT}}</view>
|
|
||||||
</view>
|
|
||||||
<view class="text-semi" style="text-align: center;">
|
|
||||||
<view>审核部门</view>
|
|
||||||
<view>意见</view>
|
|
||||||
</view>
|
|
||||||
</navigator>
|
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/hoisting/hoisting-list/index?flow=审批人签字">
|
|
||||||
<view class="imgs action">
|
|
||||||
<image src="../../../static/icon-apps/icon-901.png" mode=""></image>
|
|
||||||
<view v-if="count.APPROVE" class="cu-tag badge">{{count.APPROVE}}</view>
|
|
||||||
</view>
|
|
||||||
<view class="text-semi" style="text-align: center;">
|
|
||||||
<view>审批部门</view>
|
|
||||||
<view>意见</view>
|
|
||||||
</view>
|
|
||||||
</navigator>
|
|
||||||
|
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/hoisting/hoisting-list/index?flow=开始作业">
|
|
||||||
<view class="imgs action">
|
|
||||||
<image src="../../../static/icon-apps/icon-aq-1.png" mode=""></image>
|
|
||||||
<view v-if="count.WORK_START" class="cu-tag badge">{{count.WORK_START}}</view>
|
|
||||||
</view>
|
|
||||||
<view class="text-semi" style="text-align: center;">
|
|
||||||
<view>开始作业时间</view>
|
|
||||||
</view>
|
|
||||||
</navigator>
|
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/hoisting/hoisting-list/index?flow=结束作业">
|
|
||||||
<view class="imgs action">
|
|
||||||
<image src="../../../static/icon-apps/icon-js-1.png" mode=""></image>
|
|
||||||
<view v-if="count.WORK_END" class="cu-tag badge">{{count.WORK_END}}</view>
|
|
||||||
</view>
|
|
||||||
<view class="text-semi" style="text-align: center;">
|
|
||||||
<view>结束作业时间</view>
|
|
||||||
</view>
|
|
||||||
</navigator>
|
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/hoisting/hoisting-list/index?flow=验收签字">
|
|
||||||
<view class="imgs action">
|
|
||||||
<image src="../../../static/icon-apps/icon-js-1.png" mode=""></image>
|
|
||||||
<view v-if="count.ACCEPT" class="cu-tag badge">{{count.ACCEPT}}</view>
|
|
||||||
</view>
|
|
||||||
<view class="text-semi" style="text-align: center;">
|
|
||||||
<view>验收归档</view>
|
|
||||||
</view>
|
|
||||||
</navigator>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
|
|
||||||
<!-- <view class="apps-row">
|
|
||||||
<view class="apps-title">
|
|
||||||
<text class="apps-title-line"></text>
|
|
||||||
<text>其他应用</text>
|
|
||||||
</view>
|
|
||||||
<view class="apps-warp">
|
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/other-apps/videos/videos">
|
|
||||||
<view class="imgs action">
|
|
||||||
<image src="../../static/icon-apps/icon-zl-7.png" mode=""></image>
|
|
||||||
</view>
|
|
||||||
<view class="text-semi">视频中心</view>
|
|
||||||
</navigator>
|
|
||||||
</view>
|
|
||||||
</view> -->
|
|
||||||
<view class="cu-tabbar-height"></view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
basePath,
|
basePath,
|
||||||
loginUserId,
|
loginUserId,
|
||||||
formatDate,
|
formatDate,
|
||||||
corpinfoId,
|
corpinfoId,
|
||||||
loginUser,
|
loginUser,
|
||||||
setloginUserId,
|
setloginUserId,
|
||||||
setCorpinfoId,
|
setCorpinfoId,
|
||||||
setloginUser,
|
setloginUser,
|
||||||
setDeptId,
|
setDeptId,
|
||||||
isRest
|
isRest
|
||||||
} from '@/common/tool.js';
|
} from '@/common/tool.js';
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
isRest :'',
|
isRest :'',
|
||||||
count : {}
|
count : {}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted(){
|
mounted(){
|
||||||
this.isRest = isRest;
|
this.isRest = isRest;
|
||||||
|
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.getData();
|
this.getData();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
showRest(){
|
showRest(){
|
||||||
|
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '提示',
|
title: '提示',
|
||||||
showCancel:false,
|
showCancel:false,
|
||||||
content: '您处于离岗状态,无需检查清单。',
|
content: '您处于离岗状态,无需检查清单。',
|
||||||
confirmText: "返回", // 确认按钮文字
|
confirmText: "返回", // 确认按钮文字
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getData(){
|
// getData(){
|
||||||
var _this = this;
|
// var _this = this;
|
||||||
uni.showLoading({
|
// uni.showLoading({
|
||||||
title:"加载中..."
|
// title:"加载中..."
|
||||||
});//加载中动画
|
// });//加载中动画
|
||||||
uni.request({
|
// uni.request({
|
||||||
url: basePath +'/app/hoisting/checkWorkCount',
|
// url: basePath +'/app/hoisting/countCheck',
|
||||||
method: 'POST',
|
// method: 'POST',
|
||||||
dataType: 'json',
|
// dataType: 'json',
|
||||||
header: {
|
// header: {
|
||||||
'Content-type':'application/x-www-form-urlencoded'
|
// 'Content-type':'application/x-www-form-urlencoded'
|
||||||
},
|
// },
|
||||||
data: {
|
// data: {
|
||||||
tm:new Date().getTime(),
|
// tm:new Date().getTime(),
|
||||||
CORPINFO_ID:loginUser.CORPINFO_ID,
|
// CORPINFO_ID:loginUser.CORPINFO_ID,
|
||||||
USER_ID:loginUser.USER_ID,
|
// USER_ID:loginUser.USER_ID,
|
||||||
},
|
// },
|
||||||
success: (res) => {
|
// success: (res) => {
|
||||||
uni.hideLoading();//结束加载中动画
|
// uni.hideLoading();//结束加载中动画
|
||||||
if ("success" == res.data.result) {
|
// if ("success" == res.data.result) {
|
||||||
_this.count = res.data.count;
|
// _this.count = res.data.count;
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
}
|
// }
|
||||||
})
|
// })
|
||||||
},
|
// },
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.app-banner{
|
.app-banner{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 380upx;
|
height: 380upx;
|
||||||
}
|
}
|
||||||
.app-banner image{
|
.app-banner image{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
.apps-box {}
|
.apps-box {}
|
||||||
|
|
||||||
.apps-row {
|
.apps-row {
|
||||||
padding: 20upx 20upx 10upx 20upx;
|
padding: 20upx 20upx 10upx 20upx;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
margin-top: 20upx;
|
margin-top: 20upx;
|
||||||
}
|
}
|
||||||
.apps-row:first-child{
|
.apps-row:first-child{
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.apps-title {
|
.apps-title {
|
||||||
position: relative;
|
position: relative;
|
||||||
padding-left: 20upx;
|
padding-left: 20upx;
|
||||||
color: #989898;
|
color: #989898;
|
||||||
padding-bottom: 20upx;
|
padding-bottom: 20upx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.apps-title-line {
|
.apps-title-line {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
background-color: #37a6ff;
|
background-color: #37a6ff;
|
||||||
width: 10upx;
|
width: 10upx;
|
||||||
height: 23upx;
|
height: 23upx;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0upx;
|
left: 0upx;
|
||||||
top: 11upx;
|
top: 11upx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.apps-warp {
|
.apps-warp {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.apps-item {
|
.apps-item {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
width: 25%;
|
width: 25%;
|
||||||
font-size: 25upx;
|
font-size: 25upx;
|
||||||
margin-bottom: 20upx;
|
margin-bottom: 20upx;
|
||||||
}
|
}
|
||||||
.apps-item .text-semi{
|
.apps-item .text-semi{
|
||||||
margin-top: 6upx;
|
margin-top: 6upx;
|
||||||
}
|
}
|
||||||
.apps-item .action{
|
.apps-item .action{
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
.apps-item .action .cu-tag.badge{
|
.apps-item .action .cu-tag.badge{
|
||||||
right: -20upx;
|
right: -20upx;
|
||||||
}
|
}
|
||||||
.apps-item .imgs {
|
.apps-item .imgs {
|
||||||
width: 50upx;
|
width: 50upx;
|
||||||
height: 50upx;
|
height: 50upx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.apps-item .imgs image {
|
.apps-item .imgs image {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -12,150 +12,119 @@
|
||||||
<text>动火作业审批管理</text>
|
<text>动火作业审批管理</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="apps-warp">
|
<view class="apps-warp">
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/hotwork/hotwork-list/index?flow=提交申请">
|
<navigator class="apps-item" hover-class="none" url="/pages/application/hotwork/hotwork-apply/hotwork-apply-list">
|
||||||
<view class="imgs action">
|
<view class="imgs action">
|
||||||
<image src="../../../static/icon-apps/icon-yxkj-1.png" mode=""></image>
|
<image src="../../../static/icon-apps/icon-yxkj-1.png" mode=""></image>
|
||||||
<view v-if="count.CREATE" class="cu-tag badge">{{count.CREATE}}</view>
|
<view v-if="count.COUNTBACK" class="cu-tag badge">{{count.COUNTBACK}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="text-semi" style="text-align: center;">
|
<view class="text-semi" style="text-align: center;">
|
||||||
<view>动火作业</view>
|
<view>动火作业</view>
|
||||||
<view>申请</view>
|
<view>申请</view>
|
||||||
</view>
|
</view>
|
||||||
</navigator>
|
</navigator>
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/hotwork/hotwork-list/index?flow=气体检测">
|
<navigator class="apps-item" hover-class="none" url="/pages/application/hotwork/hotwork-gas/hotwork-gas-list">
|
||||||
<view class="imgs action">
|
<view class="imgs action">
|
||||||
<image src="../../../static/icon-apps/icon-zl-8.png" mode=""></image>
|
<image src="../../../static/icon-apps/icon-zl-8.png" mode=""></image>
|
||||||
<view v-if="count.ANALYZE" class="cu-tag badge">{{count.ANALYZE}}</view>
|
<view v-if="count.COUNTANALYZE" class="cu-tag badge">{{count.COUNTANALYZE}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="text-semi" style="text-align: center;">
|
<view class="text-semi" style="text-align: center;">
|
||||||
<view>气体分析</view>
|
<view>气体分析</view>
|
||||||
</view>
|
</view>
|
||||||
</navigator>
|
</navigator>
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/hotwork/hotwork-list/index?flow=设置安全措施确认人">
|
<navigator class="apps-item" hover-class="none" url="/pages/application/hotwork/hotwork-confirm/hotwork-confirm-list">
|
||||||
<view class="imgs action">
|
<view class="imgs action">
|
||||||
<image src="../../../static/icon-apps/icon-yh-1.png" mode=""></image>
|
<image src="../../../static/icon-apps/icon-yh-1.png" mode=""></image>
|
||||||
<view v-if="count.MEASURES_SET" class="cu-tag badge">{{count.MEASURES_SET}}</view>
|
<view v-if="count.COUNTCONFIRM" class="cu-tag badge">{{count.COUNTCONFIRM}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="text-semi" style="text-align: center;">
|
<view class="text-semi" style="text-align: center;">
|
||||||
<view>设置安全</view>
|
|
||||||
<view>措施确认人</view>
|
|
||||||
</view>
|
|
||||||
</navigator>
|
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/hotwork/hotwork-list/index?flow=安全措施确认">
|
|
||||||
<view class="imgs action">
|
|
||||||
<image src="../../../static/icon-apps/icon-yh-1.png" mode=""></image>
|
|
||||||
<view v-if="count.MEASURES_CONFIRM" class="cu-tag badge">{{count.MEASURES_CONFIRM}}</view>
|
|
||||||
</view>
|
|
||||||
<view class="text-semi" style="text-align: center;">
|
|
||||||
<view>安全措施确认</view>
|
|
||||||
</view>
|
|
||||||
</navigator>
|
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/hotwork/hotwork-list/index?flow=监护人签字">
|
|
||||||
<view class="imgs action">
|
|
||||||
<image src="../../../static/icon-apps/icon-zl-9.png" mode=""></image>
|
|
||||||
<view v-if="count.GUARDIAN" class="cu-tag badge">{{count.GUARDIAN}}</view>
|
|
||||||
</view>
|
|
||||||
<view class="text-semi" style="text-align: center;">
|
|
||||||
<view>监护人</view>
|
|
||||||
<view>意见</view>
|
|
||||||
</view>
|
|
||||||
</navigator>
|
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/hotwork/hotwork-list/index?flow=安全交底人签字">
|
|
||||||
<view class="imgs action">
|
|
||||||
<image src="../../../static/icon-apps/icon-807.png" mode=""></image>
|
|
||||||
<view v-if="count.CONFESS" class="cu-tag badge">{{count.CONFESS}}</view>
|
|
||||||
</view>
|
|
||||||
<view class="text-semi" style="text-align: center;">
|
|
||||||
<view>安全交底人</view>
|
|
||||||
<view>意见</view>
|
|
||||||
</view>
|
|
||||||
</navigator>
|
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/hotwork/hotwork-list/index?flow=接受交底人签字">
|
|
||||||
<view class="imgs action">
|
|
||||||
<image src="../../../static/icon-apps/icon-yxkj-4.png" mode=""></image>
|
|
||||||
<view v-if="count.ACCEPT_CONFESS" class="cu-tag badge">{{count.ACCEPT_CONFESS}}</view>
|
|
||||||
</view>
|
|
||||||
<view class="text-semi" style="text-align: center;">
|
|
||||||
<view>接受交底人</view>
|
|
||||||
<view>意见</view>
|
|
||||||
</view>
|
|
||||||
</navigator>
|
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/hotwork/hotwork-list/index?flow=作业负责人签字">
|
|
||||||
<view class="imgs action">
|
|
||||||
<image src="../../../static/icon-apps/icon-yxkj-2.png" mode=""></image>
|
|
||||||
<view v-if="count.CONFIRM" class="cu-tag badge">{{count.CONFIRM}}</view>
|
|
||||||
</view>
|
|
||||||
<view class="text-semi" style="text-align: center;">
|
|
||||||
<view>作业负责人</view>
|
<view>作业负责人</view>
|
||||||
<view>意见</view>
|
<view>意见</view>
|
||||||
</view>
|
</view>
|
||||||
</navigator>
|
</navigator>
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/hotwork/hotwork-list/index?flow=所在单位签字">
|
<!-- <navigator class="apps-item" hover-class="none" url="/pages/application/hotwork/hotwork-guardian/hotwork-guardian-list">-->
|
||||||
|
<!-- <view class="imgs action">-->
|
||||||
|
<!-- <image src="../../../static/icon-apps/icon-zl-9.png" mode=""></image>-->
|
||||||
|
<!-- <view v-if="count.COUNTGUARDIAN" class="cu-tag badge">{{count.COUNTGUARDIAN}}</view>-->
|
||||||
|
<!-- </view>-->
|
||||||
|
<!-- <view class="text-semi" style="text-align: center;">-->
|
||||||
|
<!-- <view>监护人</view>-->
|
||||||
|
<!-- <view>意见</view>-->
|
||||||
|
<!-- </view>-->
|
||||||
|
<!-- </navigator>-->
|
||||||
|
<navigator class="apps-item" hover-class="none" url="/pages/application/hotwork/hotwork-leader/hotwork-leader-list">
|
||||||
<view class="imgs action">
|
<view class="imgs action">
|
||||||
<image src="../../../static/icon-apps/icon-907.png" mode=""></image>
|
<image src="../../../static/icon-apps/icon-807.png" mode=""></image>
|
||||||
<view v-if="count.LEADER" class="cu-tag badge">{{count.LEADER}}</view>
|
<view v-if="count.COUNTLEADER" class="cu-tag badge">{{count.COUNTLEADER}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="text-semi" style="text-align: center;">
|
<view class="text-semi" style="text-align: center;">
|
||||||
<view>所在单位</view>
|
<view>所在单位</view>
|
||||||
<view>意见</view>
|
<view>意见</view>
|
||||||
</view>
|
</view>
|
||||||
</navigator>
|
</navigator>
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/hotwork/hotwork-list/index?flow=安全管理部门签字">
|
<navigator class="apps-item" hover-class="none" url="/pages/application/hotwork/hotwork-audit/hotwork-audit-list">
|
||||||
<view class="imgs action">
|
<view class="imgs action">
|
||||||
<image src="../../../static/icon-apps/icon-901.png" mode=""></image>
|
<image src="../../../static/icon-apps/icon-yxkj-4.png" mode=""></image>
|
||||||
<view v-if="count.AUDIT" class="cu-tag badge">{{count.AUDIT}}</view>
|
<view v-if="count.COUNTAUDIT" class="cu-tag badge">{{count.COUNTAUDIT}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="text-semi" style="text-align: center;">
|
<view class="text-semi" style="text-align: center;">
|
||||||
<view>安全管理部门</view>
|
<view>安全管理部门</view>
|
||||||
<view>意见</view>
|
<view>意见</view>
|
||||||
</view>
|
</view>
|
||||||
</navigator>
|
</navigator>
|
||||||
|
<navigator class="apps-item" hover-class="none" url="/pages/application/hotwork/hotwork-approve/hotwork-approve-list">
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/hotwork/hotwork-list/index?flow=审批人签字">
|
|
||||||
<view class="imgs action">
|
<view class="imgs action">
|
||||||
<image src="../../../static/icon-apps/icon-901.png" mode=""></image>
|
<image src="../../../static/icon-apps/icon-yxkj-2.png" mode=""></image>
|
||||||
<view v-if="count.APPROVE" class="cu-tag badge">{{count.APPROVE}}</view>
|
<view v-if="count.COUNTAPPROVE" class="cu-tag badge">{{count.COUNTAPPROVE}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="text-semi" style="text-align: center;">
|
<view class="text-semi" style="text-align: center;">
|
||||||
<view>动火审批人</view>
|
<view>动火审批人</view>
|
||||||
<view>意见</view>
|
<view>意见</view>
|
||||||
</view>
|
</view>
|
||||||
</navigator>
|
</navigator>
|
||||||
|
<navigator class="apps-item" hover-class="none" url="/pages/application/hotwork/hotwork-monitor/hotwork-monitor-list">
|
||||||
|
<view class="imgs action">
|
||||||
|
<image src="../../../static/icon-apps/icon-907.png" mode=""></image>
|
||||||
|
<view v-if="count.COUNTMONITOR" class="cu-tag badge">{{count.COUNTMONITOR}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="text-semi" style="text-align: center;">
|
||||||
|
<view>班长验票</view>
|
||||||
|
</view>
|
||||||
|
</navigator>
|
||||||
|
<navigator class="apps-item" hover-class="none" url="/pages/application/hotwork/hotwork-accept/hotwork-accept-list">
|
||||||
|
<view class="imgs action">
|
||||||
|
<image src="../../../static/icon-apps/icon-901.png" mode=""></image>
|
||||||
|
<view v-if="count.COUNTACCEPT" class="cu-tag badge">{{count.COUNTACCEPT}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="text-semi" style="text-align: center;">
|
||||||
|
<view>完工验收</view>
|
||||||
|
</view>
|
||||||
|
</navigator>
|
||||||
|
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/hotwork/hotwork-list/index?flow=当班班长验票">
|
<navigator class="apps-item" hover-class="none" url="/pages/application/hotwork/hotwork-guardian/hotwork-guardian-list">
|
||||||
<view class="imgs action">
|
<view class="imgs action">
|
||||||
<image src="../../../static/icon-apps/icon-jh-1.png" mode=""></image>
|
<image src="../../../static/icon-apps/icon-jh-1.png" mode=""></image>
|
||||||
<view v-if="count.MONITOR" class="cu-tag badge">{{count.MONITOR}}</view>
|
<view v-if="count.COUNTGUARDIAN" class="cu-tag badge">{{count.COUNTGUARDIAN}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="text-semi" style="text-align: center;">
|
<view class="text-semi" style="text-align: center;">
|
||||||
<view>当班班长验票</view>
|
<view>监护人</view>
|
||||||
</view>
|
</view>
|
||||||
</navigator>
|
</navigator>
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/hotwork/hotwork-list/index?flow=开始作业">
|
<navigator class="apps-item" hover-class="none" url="/pages/application/hotwork/hotwork-confess/hotwork-confess-list">
|
||||||
<view class="imgs action">
|
<view class="imgs action">
|
||||||
<image src="../../../static/icon-apps/icon-aq-1.png" mode=""></image>
|
<image src="../../../static/icon-apps/icon-aq-1.png" mode=""></image>
|
||||||
<view v-if="count.WORK_START" class="cu-tag badge">{{count.WORK_START}}</view>
|
<view v-if="count.COUNTCONFESS" class="cu-tag badge">{{count.COUNTCONFESS}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="text-semi" style="text-align: center;">
|
<view class="text-semi" style="text-align: center;">
|
||||||
<view>开始作业时间</view>
|
<view>安全交底人</view>
|
||||||
</view>
|
</view>
|
||||||
</navigator>
|
</navigator>
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/hotwork/hotwork-list/index?flow=结束作业">
|
<navigator class="apps-item" hover-class="none" url="/pages/application/hotwork/hotwork-acceptconfess/hotwork-acceptconfess-list">
|
||||||
<view class="imgs action">
|
<view class="imgs action">
|
||||||
<image src="../../../static/icon-apps/icon-js-1.png" mode=""></image>
|
<image src="../../../static/icon-apps/icon-js-1.png" mode=""></image>
|
||||||
<view v-if="count.WORK_END" class="cu-tag badge">{{count.WORK_END}}</view>
|
<view v-if="count.COUNTACCEPTCONFESS" class="cu-tag badge">{{count.COUNTACCEPTCONFESS}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="text-semi" style="text-align: center;">
|
<view class="text-semi" style="text-align: center;">
|
||||||
<view>结束作业时间</view>
|
<view>接受交底人</view>
|
||||||
</view>
|
|
||||||
</navigator>
|
|
||||||
<navigator class="apps-item" hover-class="none" url="/pages/application/hotwork/hotwork-list/index?flow=验收签字">
|
|
||||||
<view class="imgs action">
|
|
||||||
<image src="../../../static/icon-apps/icon-js-1.png" mode=""></image>
|
|
||||||
<view v-if="count.ACCEPT" class="cu-tag badge">{{count.ACCEPT}}</view>
|
|
||||||
</view>
|
|
||||||
<view class="text-semi" style="text-align: center;">
|
|
||||||
<view>验收归档</view>
|
|
||||||
</view>
|
</view>
|
||||||
</navigator>
|
</navigator>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -219,32 +188,32 @@
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getData(){
|
// getData(){
|
||||||
var _this = this;
|
// var _this = this;
|
||||||
uni.showLoading({
|
// uni.showLoading({
|
||||||
title:"加载中..."
|
// title:"加载中..."
|
||||||
});//加载中动画
|
// });//加载中动画
|
||||||
uni.request({
|
// uni.request({
|
||||||
url: basePath +'/app/hotwork/checkWorkCount',
|
// url: basePath +'/app/hotwork/countCheck',
|
||||||
method: 'POST',
|
// method: 'POST',
|
||||||
dataType: 'json',
|
// dataType: 'json',
|
||||||
header: {
|
// header: {
|
||||||
'Content-type':'application/x-www-form-urlencoded'
|
// 'Content-type':'application/x-www-form-urlencoded'
|
||||||
},
|
// },
|
||||||
data: {
|
// data: {
|
||||||
tm:new Date().getTime(),
|
// tm:new Date().getTime(),
|
||||||
CORPINFO_ID:loginUser.CORPINFO_ID,
|
// CORPINFO_ID:loginUser.CORPINFO_ID,
|
||||||
USER_ID:loginUser.USER_ID,
|
// USER_ID:loginUser.USER_ID,
|
||||||
},
|
// },
|
||||||
success: (res) => {
|
// success: (res) => {
|
||||||
uni.hideLoading();//结束加载中动画
|
// uni.hideLoading();//结束加载中动画
|
||||||
if ("success" == res.data.result) {
|
// if ("success" == res.data.result) {
|
||||||
_this.count = res.data.count;
|
// _this.count = res.data.count;
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
}
|
// }
|
||||||
})
|
// })
|
||||||
},
|
// },
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,263 @@
|
||||||
|
<template>
|
||||||
|
<view>
|
||||||
|
<cu-custom bgColor="bg-gradual-blueness" :isBack="true" :isRingt="true">
|
||||||
|
<block slot="backText">返回</block>
|
||||||
|
<block slot="content">断路安全作业</block>
|
||||||
|
</cu-custom>
|
||||||
|
|
||||||
|
<view class="apps-box">
|
||||||
|
<view class="apps-row">
|
||||||
|
<view class="apps-title">
|
||||||
|
<text class="apps-title-line"></text>
|
||||||
|
<text>断路安全作业审批管理</text>
|
||||||
|
</view>
|
||||||
|
<view class="apps-warp">
|
||||||
|
<navigator class="apps-item" hover-class="none" url="/pages/application/open-circuit/open-circuit-apply/open-circuit-apply-list">
|
||||||
|
<view class="imgs action">
|
||||||
|
<image src="../../../static/icon-apps/icon-yxkj-1.png" mode=""></image>
|
||||||
|
<view v-if="count.COUNTBACK" class="cu-tag badge">{{count.COUNTBACK}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="text-semi" style="text-align: center;">
|
||||||
|
<view>断路安全</view>
|
||||||
|
<view>作业申请</view>
|
||||||
|
</view>
|
||||||
|
</navigator>
|
||||||
|
<navigator class="apps-item" hover-class="none" url="/pages/application/open-circuit/open-circuit-construction/open-circuit-construction-list">
|
||||||
|
<view class="imgs action">
|
||||||
|
<image src="../../../static/icon-apps/icon-903.png" mode=""></image>
|
||||||
|
<view v-if="count.COUNTCONSTRUCTION" class="cu-tag badge">{{count.COUNTCONSTRUCTION}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="text-semi" style="text-align: center;">
|
||||||
|
<view>作业负责人</view>
|
||||||
|
<view>意见</view>
|
||||||
|
</view>
|
||||||
|
</navigator>
|
||||||
|
<navigator class="apps-item" hover-class="none" url="/pages/application/open-circuit/open-circuit-production/open-circuit-production-list">
|
||||||
|
<view class="imgs action">
|
||||||
|
<image src="../../../static/icon-apps/icon-902.png" mode=""></image>
|
||||||
|
<view v-if="count.COUNTPRODUCTION" class="cu-tag badge">{{count.COUNTPRODUCTION}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="text-semi" style="text-align: center;">
|
||||||
|
<view>所在单位</view>
|
||||||
|
<view>意见</view>
|
||||||
|
</view>
|
||||||
|
</navigator>
|
||||||
|
<navigator class="apps-item" hover-class="none" url="/pages/application/open-circuit/open-circuit-safety/open-circuit-safety-list">
|
||||||
|
<view class="imgs action">
|
||||||
|
<image src="../../../static/icon-apps/icon-906.png" mode=""></image>
|
||||||
|
<view v-if="count.COUNTSAFETY" class="cu-tag badge">{{count.COUNTSAFETY}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="text-semi" style="text-align: center;">
|
||||||
|
<view>消防、安全</view>
|
||||||
|
<view>管理部门意见</view>
|
||||||
|
</view>
|
||||||
|
</navigator>
|
||||||
|
</view>
|
||||||
|
<view class="apps-warp">
|
||||||
|
<navigator class="apps-item" hover-class="none" url="/pages/application/open-circuit/open-circuit-leader/open-circuit-leader-list">
|
||||||
|
<view class="imgs action">
|
||||||
|
<image src="../../../static/icon-apps/icon-904.png" mode=""></image>
|
||||||
|
<view v-if="count.COUNTLEADER" class="cu-tag badge">{{count.COUNTLEADER}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="text-semi" style="text-align: center;">
|
||||||
|
<view>审批部门</view>
|
||||||
|
<view>意见</view>
|
||||||
|
</view>
|
||||||
|
</navigator>
|
||||||
|
<navigator class="apps-item" hover-class="none" url="/pages/application/open-circuit/open-circuit-accept/open-circuit-accept-list">
|
||||||
|
<view class="imgs action">
|
||||||
|
<image src="../../../static/icon-apps/icon-905.png" mode=""></image>
|
||||||
|
<view v-if="count.COUNTACCEPT" class="cu-tag badge">{{count.COUNTACCEPT}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="text-semi" style="text-align: center;">
|
||||||
|
<view>完工验收</view>
|
||||||
|
</view>
|
||||||
|
</navigator>
|
||||||
|
<navigator class="apps-item" hover-class="none" url="/pages/application/open-circuit/open-circuit-guardian/open-circuit-guardian-list">
|
||||||
|
<view class="imgs action">
|
||||||
|
<image src="../../../static/icon-apps/icon-jh-1.png" mode=""></image>
|
||||||
|
<view v-if="count.COUNTGUARDIAN" class="cu-tag badge">{{count.COUNTGUARDIAN}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="text-semi" style="text-align: center;">
|
||||||
|
<view>监护人</view>
|
||||||
|
</view>
|
||||||
|
</navigator>
|
||||||
|
<navigator class="apps-item" hover-class="none" url="/pages/application/open-circuit/open-circuit-confess/open-circuit-confess-list">
|
||||||
|
<view class="imgs action">
|
||||||
|
<image src="../../../static/icon-apps/icon-aq-1.png" mode=""></image>
|
||||||
|
<view v-if="count.COUNTCONFESS" class="cu-tag badge">{{count.COUNTCONFESS}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="text-semi" style="text-align: center;">
|
||||||
|
<view>安全交底人</view>
|
||||||
|
</view>
|
||||||
|
</navigator>
|
||||||
|
<navigator class="apps-item" hover-class="none" url="/pages/application/open-circuit/open-circuit-acceptconfess/open-circuit-acceptconfess-list">
|
||||||
|
<view class="imgs action">
|
||||||
|
<image src="../../../static/icon-apps/icon-js-1.png" mode=""></image>
|
||||||
|
<view v-if="count.COUNTACCEPTCONFESS" class="cu-tag badge">{{count.COUNTACCEPTCONFESS}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="text-semi" style="text-align: center;">
|
||||||
|
<view>接受交底人</view>
|
||||||
|
</view>
|
||||||
|
</navigator>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<!-- <view class="apps-row">
|
||||||
|
<view class="apps-title">
|
||||||
|
<text class="apps-title-line"></text>
|
||||||
|
<text>其他应用</text>
|
||||||
|
</view>
|
||||||
|
<view class="apps-warp">
|
||||||
|
<navigator class="apps-item" hover-class="none" url="/pages/application/other-apps/videos/videos">
|
||||||
|
<view class="imgs action">
|
||||||
|
<image src="../../static/icon-apps/icon-zl-7.png" mode=""></image>
|
||||||
|
</view>
|
||||||
|
<view class="text-semi">视频中心</view>
|
||||||
|
</navigator>
|
||||||
|
</view>
|
||||||
|
</view> -->
|
||||||
|
<view class="cu-tabbar-height"></view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import {
|
||||||
|
basePath,
|
||||||
|
loginUserId,
|
||||||
|
formatDate,
|
||||||
|
corpinfoId,
|
||||||
|
loginUser,
|
||||||
|
setloginUserId,
|
||||||
|
setCorpinfoId,
|
||||||
|
setloginUser,
|
||||||
|
setDeptId,
|
||||||
|
isRest
|
||||||
|
} from '@/common/tool.js';
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
isRest :'',
|
||||||
|
count : {}
|
||||||
|
};
|
||||||
|
},
|
||||||
|
mounted(){
|
||||||
|
this.isRest = isRest;
|
||||||
|
|
||||||
|
},
|
||||||
|
onShow() {
|
||||||
|
this.getData();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
showRest(){
|
||||||
|
|
||||||
|
uni.showModal({
|
||||||
|
title: '提示',
|
||||||
|
showCancel:false,
|
||||||
|
content: '您处于离岗状态,无需检查清单。',
|
||||||
|
confirmText: "返回", // 确认按钮文字
|
||||||
|
success: (res) => {
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// getData(){
|
||||||
|
// var _this = this;
|
||||||
|
// uni.showLoading({
|
||||||
|
// title:"加载中..."
|
||||||
|
// });//加载中动画
|
||||||
|
// uni.request({
|
||||||
|
// url: basePath +'/app/cutroad/countCheck',
|
||||||
|
// method: 'POST',
|
||||||
|
// dataType: 'json',
|
||||||
|
// header: {
|
||||||
|
// 'Content-type':'application/x-www-form-urlencoded'
|
||||||
|
// },
|
||||||
|
// data: {
|
||||||
|
// tm:new Date().getTime(),
|
||||||
|
// CORPINFO_ID:loginUser.CORPINFO_ID,
|
||||||
|
// USER_ID:loginUser.USER_ID,
|
||||||
|
// },
|
||||||
|
// success: (res) => {
|
||||||
|
// uni.hideLoading();//结束加载中动画
|
||||||
|
// if ("success" == res.data.result) {
|
||||||
|
// _this.count = res.data.count;
|
||||||
|
// _this.$forceUpdate()
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// }
|
||||||
|
// })
|
||||||
|
// },
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.app-banner{
|
||||||
|
width: 100%;
|
||||||
|
height: 380upx;
|
||||||
|
}
|
||||||
|
.app-banner image{
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
.apps-box {}
|
||||||
|
|
||||||
|
.apps-row {
|
||||||
|
padding: 20upx 20upx 10upx 20upx;
|
||||||
|
background-color: #fff;
|
||||||
|
margin-top: 20upx;
|
||||||
|
}
|
||||||
|
.apps-row:first-child{
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.apps-title {
|
||||||
|
position: relative;
|
||||||
|
padding-left: 20upx;
|
||||||
|
color: #989898;
|
||||||
|
padding-bottom: 20upx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.apps-title-line {
|
||||||
|
display: inline-block;
|
||||||
|
background-color: #37a6ff;
|
||||||
|
width: 10upx;
|
||||||
|
height: 23upx;
|
||||||
|
position: absolute;
|
||||||
|
left: 0upx;
|
||||||
|
top: 11upx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.apps-warp {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.apps-item {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
width: 25%;
|
||||||
|
font-size: 25upx;
|
||||||
|
margin-bottom: 20upx;
|
||||||
|
}
|
||||||
|
.apps-item .text-semi{
|
||||||
|
margin-top: 6upx;
|
||||||
|
}
|
||||||
|
.apps-item .action{
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.apps-item .action .cu-tag.badge{
|
||||||
|
right: -20upx;
|
||||||
|
}
|
||||||
|
.apps-item .imgs {
|
||||||
|
width: 50upx;
|
||||||
|
height: 50upx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.apps-item .imgs image {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
@ -47,7 +47,7 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="de-item">
|
<view class="de-item">
|
||||||
<view class="de-sub-title">
|
<view class="de-sub-title">
|
||||||
<text class="text-grey" style="white-space: nowrap">申辩是否成立</text>
|
<text class="text-grey">申辩是否成立</text>
|
||||||
</view>
|
</view>
|
||||||
<view style="display: flex">
|
<view style="display: flex">
|
||||||
<view class="group mr20">
|
<view class="group mr20">
|
||||||
|
|
@ -62,7 +62,7 @@
|
||||||
</view>
|
</view>
|
||||||
<view v-if="INSPECTION_STATUS==='3'" class="de-item-sp">
|
<view v-if="INSPECTION_STATUS==='3'" class="de-item-sp">
|
||||||
<view class="de-sub-title">
|
<view class="de-sub-title">
|
||||||
<text class="text-grey" style="white-space: nowrap">不成立理由</text>
|
<text class="text-grey">不成立理由内容</text>
|
||||||
</view>
|
</view>
|
||||||
<input name="input" ref="INSPECTION_PLACE" :disabled="forbidEdit" v-model="form.INSPECTED_EXPLAIN_REFUSE" placeholder="请输入理由"></input>
|
<input name="input" ref="INSPECTION_PLACE" :disabled="forbidEdit" v-model="form.INSPECTED_EXPLAIN_REFUSE" placeholder="请输入理由"></input>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -263,7 +263,7 @@
|
||||||
},
|
},
|
||||||
delImg(e) {
|
delImg(e) {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '温馨提示',
|
title: '双控平台',
|
||||||
content: '确定要删除这张图片吗?',
|
content: '确定要删除这张图片吗?',
|
||||||
cancelColor: "#000000",
|
cancelColor: "#000000",
|
||||||
cancelText: '取消',
|
cancelText: '取消',
|
||||||
|
|
@ -399,11 +399,14 @@
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
ViewShowImage2(e) {
|
ViewShowImage2(e) {
|
||||||
let fullPath = this.baseImgPath + this.form.INSPECTED_SITEUSER_SIGN_IMG;
|
let files = [];
|
||||||
uni.previewImage({
|
for (var i = 0; i < this.files2.length; i++) {
|
||||||
urls: [fullPath], // 确保这里是一个数组,即使只有一个图片路径
|
files.push(baseImgPath+this.files2[i].FILEPATH)
|
||||||
current: fullPath // 当前显示图片的http链接
|
}
|
||||||
});
|
uni.previewImage({
|
||||||
|
urls: files,
|
||||||
|
current: e.currentTarget.dataset.index
|
||||||
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
ViewShowImage4(e) {
|
ViewShowImage4(e) {
|
||||||
|
|
|
||||||
|
|
@ -229,25 +229,26 @@
|
||||||
</view>
|
</view>
|
||||||
<view v-if="type&& type === 'detail'" class="form">
|
<view v-if="type&& type === 'detail'" class="form">
|
||||||
<view class="wui-form-list">
|
<view class="wui-form-list">
|
||||||
<view class="cu-form-group" v-if="form.INSPECTION_STATUS === '3'">
|
<view class="cu-form-group">
|
||||||
<view class="title">被检查单位现场负责人意见:</view>
|
<view class="title">被检查单位现场负责人意见:</view>
|
||||||
<text>{{ form.INSPECTED_EXPLAIN }}</text>
|
<text> {{ validStr(form.INSPECTED_EXPLAIN) ? '申辩' : '同意' }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="cu-form-textarea" v-if="form.INSPECTED_EXPLAIN">
|
<view class="cu-form-textarea" v-if="form.INSPECTED_EXPLAIN">
|
||||||
<view class="cu-form-title text-hui">申辩说明</view>
|
<view class="cu-form-title text-hui">申辩说明</view>
|
||||||
<view class="cu-form-textarea">
|
<view class="cu-form-textarea">
|
||||||
<textarea disabled v-model="form.INSPECTED_EXPLAIN"></textarea>
|
<textarea disabled v-model="form.INSPECTED_EXPLAIN"></textarea>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="cu-form-group" v-if="form.INSPECTION_STATUS === '3'">
|
<view class="cu-form-group">
|
||||||
<view class="title">被检查单位现场负责人签字:</view>
|
<view class="title">被检查单位现场负责人签字:</view>
|
||||||
<view>
|
<view>
|
||||||
<view>
|
<view>
|
||||||
<image :src="baseImgPath + form.INSPECTED_SITEUSER_SIGN_IMG" style="width: 180upx;height: 100upx"></image>
|
<image :src="baseImgPath + form.INSPECTED_SITEUSER_SIGN_IMG"
|
||||||
</view>
|
style="width: 180upx;height: 100upx"></image>
|
||||||
<view style="text-align: center">{{ form.INSPECTED_SITEUSER_SIGN_TIME }}</view>
|
</view>
|
||||||
</view>
|
<view style="text-align: center">{{ form.INSPECTED_SITEUSER_SIGN_TIME }}</view>
|
||||||
</view>
|
</view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="cu-bar btn-group" style="margin-top: 30upx;">
|
<view class="cu-bar btn-group" style="margin-top: 30upx;">
|
||||||
|
|
@ -321,12 +322,10 @@
|
||||||
<view class="cu-form-group">
|
<view class="cu-form-group">
|
||||||
<view class="title">隐患部位</view>
|
<view class="title">隐患部位</view>
|
||||||
<view class="picker-tree-box">
|
<view class="picker-tree-box">
|
||||||
<!-- <view v-if="hiddenIsEdit" class="picker-tree" @tap="showZgTree('tkiTree3', 3)">-->
|
<view v-if="hiddenIsEdit" class="picker-tree" @tap="showZgTree('tkiTree3', 3)">
|
||||||
<!-- {{ hiddenForm.HIDDENPART_NAME ? hiddenForm.HIDDENPART_NAME : hiddenForm.HIDDENPART || '请选择' }}-->
|
{{ hiddenForm.HIDDENPART_NAME ? hiddenForm.HIDDENPART_NAME : hiddenForm.HIDDENPART || '请选择' }}
|
||||||
<!-- </view>-->
|
</view>
|
||||||
<input v-if="hiddenIsEdit" v-model="hiddenForm.HIDDENPART" class="input-text" type="text" placeholder="请输入隐患部位"></input>
|
<view v-else>{{
|
||||||
|
|
||||||
<view v-else>{{
|
|
||||||
hiddenForm.HIDDENPART_NAME ? hiddenForm.HIDDENPART_NAME : hiddenForm.HIDDENPART
|
hiddenForm.HIDDENPART_NAME ? hiddenForm.HIDDENPART_NAME : hiddenForm.HIDDENPART
|
||||||
}}
|
}}
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -343,76 +342,63 @@
|
||||||
</view>
|
</view>
|
||||||
<view v-else>{{ hiddenForm.HIDDENLEVEL_NAME }}</view> -->
|
<view v-else>{{ hiddenForm.HIDDENLEVEL_NAME }}</view> -->
|
||||||
<picker @change="hiddenLevelChange" :disabled="forbidEdit || !hiddenIsEdit"
|
<picker @change="hiddenLevelChange" :disabled="forbidEdit || !hiddenIsEdit"
|
||||||
:value="hiddenForm.HIDDENLEVEL_INDEX" :range="hiddenLevelTreeList" range-key="NAME">
|
:value="hiddenForm.HIDDENLEVEL_INDEX" :range="hiddenLevelTreeList" range-key="label">
|
||||||
<view class="picker">
|
<view class="picker">
|
||||||
{{ hiddenForm.HIDDENLEVEL_NAME || '请选择' }}
|
{{ hiddenForm.HIDDENLEVEL_NAME || '请选择' }}
|
||||||
</view>
|
</view>
|
||||||
</picker>
|
</picker>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="cu-form-group">-->
|
<view class="cu-form-group">
|
||||||
<!-- <view class="title">隐患类型</view>-->
|
<view class="title">隐患类型</view>
|
||||||
<!-- <view class="picker-tree-box">-->
|
<view class="picker-tree-box">
|
||||||
<!-- <view v-if="hiddenIsEdit" class="picker-tree" @tap="showZgTree('tkiTree5', 5)">-->
|
<view v-if="hiddenIsEdit" class="picker-tree" @tap="showZgTree('tkiTree5', 5)">
|
||||||
<!-- {{hiddenForm.HIDDENTYPE_NAME || '请选择'}}-->
|
{{hiddenForm.HIDDENTYPE_NAME || '请选择'}}
|
||||||
<!-- </view>-->
|
</view>
|
||||||
<!-- <view v-else>{{ hiddenForm.HIDDENTYPE_NAME }}</view>-->
|
<view v-else>{{ hiddenForm.HIDDENTYPE_NAME }}</view>
|
||||||
<!-- </view>-->
|
</view>
|
||||||
<!-- <tki-tree ref="tkiTree5" :selectParent=false :range="hiddenTypeTreeList" rangeKey="name"-->
|
<tki-tree ref="tkiTree5" :selectParent=false :range="hiddenTypeTreeList" rangeKey="name"
|
||||||
<!-- @confirm="zgtreeConfirm($event,'hiddenTypeTreeList')" @cancel="zgtreeCancel">-->
|
@confirm="zgtreeConfirm($event,'hiddenTypeTreeList')" @cancel="zgtreeCancel">
|
||||||
<!-- </tki-tree>-->
|
</tki-tree>
|
||||||
<!-- </view>-->
|
</view>
|
||||||
<view class="cu-form-group">
|
<view class="cu-form-group margin-top">
|
||||||
<view class="title">隐患类型</view>
|
<view class="title text-hui asterisk">是否相关方</view>
|
||||||
<view class="picker-tree-box">
|
<radio-group v-if="hiddenIsEdit" class="selected">
|
||||||
<view class="picker-tree" @tap="showZgTree2">{{hiddenForm.HIDDENTYPENAME?hiddenForm.HIDDENTYPENAME:'请选择'}}</view>
|
<view class="group mr20">
|
||||||
</view>
|
<radio class='radio' value="1" :checked="hiddenForm.ISRELEVANT=='1'"
|
||||||
<tki-tree ref="tkiTree2"
|
@click="radioISRELEVANT('1')"></radio>
|
||||||
:selectParent="true"
|
<text>是</text>
|
||||||
:range="hiddenTypeList"
|
<radio class='radio' value="2" :checked="hiddenForm.ISRELEVANT=='2'"
|
||||||
rangeKey="name"
|
@click="radioISRELEVANT('2')"></radio>
|
||||||
@confirm="zgtreeConfirm2"
|
<text>否</text>
|
||||||
@cancel="zgtreeCancel2">
|
</view>
|
||||||
</tki-tree>
|
</radio-group>
|
||||||
</view>
|
<view v-else>{{ hiddenForm.ISRELEVANT=='1'?'是':'否' }}</view>
|
||||||
<!-- <view class="cu-form-group margin-top">-->
|
</view>
|
||||||
<!-- <view class="title text-hui asterisk">是否相关方</view>-->
|
|
||||||
<!-- <radio-group v-if="hiddenIsEdit" class="selected">-->
|
|
||||||
<!-- <view class="group mr20">-->
|
|
||||||
<!-- <radio class='radio' value="1" :checked="hiddenForm.ISRELEVANT=='1'"-->
|
|
||||||
<!-- @click="radioISRELEVANT('1')"></radio>-->
|
|
||||||
<!-- <text>是</text>-->
|
|
||||||
<!-- <radio class='radio' value="2" :checked="hiddenForm.ISRELEVANT=='2'"-->
|
|
||||||
<!-- @click="radioISRELEVANT('2')"></radio>-->
|
|
||||||
<!-- <text>否</text>-->
|
|
||||||
<!-- </view>-->
|
|
||||||
<!-- </radio-group>-->
|
|
||||||
<!-- <view v-else>{{ hiddenForm.ISRELEVANT=='1'?'是':'否' }}</view>-->
|
|
||||||
<!-- </view>-->
|
|
||||||
<view class="cu-form-group">
|
<view class="cu-form-group">
|
||||||
<view class="title">隐患发现时间</view>
|
<view class="title">隐患发现时间</view>
|
||||||
<ruiDatePicker :disabled="!hiddenIsEdit" fields="minute"
|
<ruiDatePicker :disabled="!hiddenIsEdit" fields="minute"
|
||||||
:value="hiddenForm.CREATTIME || '请选择'" @change="changeDiscoverDate"></ruiDatePicker>
|
:value="hiddenForm.DISCOVERYTIME || '请选择'" @change="changeDiscoverDate"></ruiDatePicker>
|
||||||
|
</view>
|
||||||
|
<view class="cu-form-group">
|
||||||
|
<view class="title">隐患上报位置:</view>
|
||||||
|
<button v-if="hiddenIsEdit" class="cu-btn bg-green shadow" @tap="showMapModal">定位</button>
|
||||||
|
</view>
|
||||||
|
<view class="cu-form-group" v-if="hiddenForm.LONGITUDE && hiddenForm.LONGITUDE != 'undefined'">
|
||||||
|
<view class="sign-title">经度:</view>
|
||||||
|
<view class="wui-sign-cotent">{{hiddenForm.LONGITUDE}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="cu-form-group" v-if="hiddenForm.LATITUDE && hiddenForm.LATITUDE != 'undefined'">
|
||||||
|
<view class="sign-title">纬度:</view>
|
||||||
|
<view class="wui-sign-cotent">{{hiddenForm.LATITUDE}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="cu-form-group">
|
||||||
|
<view class="title">隐患位置描述:</view>
|
||||||
|
<!-- <textarea maxlength="-1" :disabled="modalName!=null" v-model="hiddenForm.POSITIONDESC"
|
||||||
|
placeholder="请输入隐患位置描述"></textarea> -->
|
||||||
|
<input name="input" ref="POSITIONDESC" :disabled="modalName!=null"
|
||||||
|
v-model="hiddenForm.POSITIONDESC" placeholder="请输入隐患位置描述"></input>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="cu-form-group">-->
|
|
||||||
<!-- <view class="title">隐患上报位置:</view>-->
|
|
||||||
<!-- <button v-if="hiddenIsEdit" class="cu-btn bg-green shadow" @tap="showMapModal">定位</button>-->
|
|
||||||
<!-- </view>-->
|
|
||||||
<!-- <view class="cu-form-group" v-if="hiddenForm.LONGITUDE && hiddenForm.LONGITUDE != 'undefined'">-->
|
|
||||||
<!-- <view class="sign-title">经度:</view>-->
|
|
||||||
<!-- <view class="wui-sign-cotent">{{hiddenForm.LONGITUDE}}</view>-->
|
|
||||||
<!-- </view>-->
|
|
||||||
<!-- <view class="cu-form-group" v-if="hiddenForm.LATITUDE && hiddenForm.LATITUDE != 'undefined'">-->
|
|
||||||
<!-- <view class="sign-title">纬度:</view>-->
|
|
||||||
<!-- <view class="wui-sign-cotent">{{hiddenForm.LATITUDE}}</view>-->
|
|
||||||
<!-- </view>-->
|
|
||||||
<!-- <view class="cu-form-group">-->
|
|
||||||
<!-- <view class="title">隐患位置描述:</view>-->
|
|
||||||
<!-- <!– <textarea maxlength="-1" :disabled="modalName!=null" v-model="hiddenForm.POSITIONDESC"-->
|
|
||||||
<!-- placeholder="请输入隐患位置描述"></textarea> –>-->
|
|
||||||
<!-- <input name="input" ref="POSITIONDESC" :disabled="modalName!=null"-->
|
|
||||||
<!-- v-model="hiddenForm.POSITIONDESC" placeholder="请输入隐患位置描述"></input>-->
|
|
||||||
<!-- </view>-->
|
|
||||||
<view class="cu-form-group">
|
<view class="cu-form-group">
|
||||||
<view class="title">隐患发现人</view>
|
<view class="title">隐患发现人</view>
|
||||||
<picker @change="creatorChange" :disabled="forbidEdit || !hiddenIsEdit"
|
<picker @change="creatorChange" :disabled="forbidEdit || !hiddenIsEdit"
|
||||||
|
|
@ -491,7 +477,6 @@
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
hiddenTypeList: [],
|
|
||||||
buttonSubmit: false,
|
buttonSubmit: false,
|
||||||
baseImgPath: baseImgPath,
|
baseImgPath: baseImgPath,
|
||||||
isUps: false,
|
isUps: false,
|
||||||
|
|
@ -503,8 +488,6 @@
|
||||||
inspectionTypeTreeList: [], // 检查类型下拉数据
|
inspectionTypeTreeList: [], // 检查类型下拉数据
|
||||||
inspectorList: [], // 检查人员(二维数组)下拉数据
|
inspectorList: [], // 检查人员(二维数组)下拉数据
|
||||||
form: {
|
form: {
|
||||||
RECTIFICATIONTYPE: '2',//整改类型
|
|
||||||
HIDDENTYPENAME: '',//隐患类型
|
|
||||||
INSPECTION_ID: '', // 检查ID
|
INSPECTION_ID: '', // 检查ID
|
||||||
INSPECTION_SUBJECT: '', // 检查标题
|
INSPECTION_SUBJECT: '', // 检查标题
|
||||||
INSPECTION_SOURCE: '5', // 检查来源(4-监管端 5-企业端)
|
INSPECTION_SOURCE: '5', // 检查来源(4-监管端 5-企业端)
|
||||||
|
|
@ -582,7 +565,7 @@
|
||||||
showHiddenWindow: false, // 隐患添加窗口显隐
|
showHiddenWindow: false, // 隐患添加窗口显隐
|
||||||
hiddenIsEdit: true,
|
hiddenIsEdit: true,
|
||||||
hiddenRegionTreeList: [], // 隐患部位下拉数据
|
hiddenRegionTreeList: [], // 隐患部位下拉数据
|
||||||
hiddenLevelTreeList: [], // 隐患级别下拉数据
|
hiddenLevelTreeList: [{ value: 'hiddenLevel1002', label: '一般隐患' }, { value: 'hiddenLevel1004', label: '轻微隐患' }], // 隐患级别下拉数据
|
||||||
hiddenTypeTreeList: [], // 隐患类型下拉数据
|
hiddenTypeTreeList: [], // 隐患类型下拉数据
|
||||||
hiddenType2TreeList: [], // 隐患类型2下拉数据
|
hiddenType2TreeList: [], // 隐患类型2下拉数据
|
||||||
creatorList: [], // 隐患责任人下拉数据
|
creatorList: [], // 隐患责任人下拉数据
|
||||||
|
|
@ -600,7 +583,7 @@
|
||||||
HIDDENTYPE2_NAME: '',
|
HIDDENTYPE2_NAME: '',
|
||||||
LONGITUDE: '', // 隐患位置经度
|
LONGITUDE: '', // 隐患位置经度
|
||||||
LATITUDE: '', // 隐患位置纬度
|
LATITUDE: '', // 隐患位置纬度
|
||||||
CREATTIME: '', // 隐患发现时间
|
DISCOVERYTIME: '', // 隐患发现时间
|
||||||
HIDDENFINDDEPT: '', // 隐患发现部门(隐患责任人部门)
|
HIDDENFINDDEPT: '', // 隐患发现部门(隐患责任人部门)
|
||||||
HIDDENFINDDEPT_NAME: '',
|
HIDDENFINDDEPT_NAME: '',
|
||||||
CREATOR: '', // 发现人(隐患责任人)
|
CREATOR: '', // 发现人(隐患责任人)
|
||||||
|
|
@ -626,7 +609,7 @@
|
||||||
message: '请选择隐患类型'
|
message: '请选择隐患类型'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'CREATTIME',
|
name: 'DISCOVERYTIME',
|
||||||
message: '请选择隐患发现时间'
|
message: '请选择隐患发现时间'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -665,31 +648,10 @@
|
||||||
// 初始化现场作业负责人
|
// 初始化现场作业负责人
|
||||||
this.getDept()
|
this.getDept()
|
||||||
this.getDict()
|
this.getDict()
|
||||||
this.getHiddenType();
|
|
||||||
loginSession();
|
loginSession();
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
showZgTree2(){
|
|
||||||
this.isUps=true
|
|
||||||
this.$refs.tkiTree2._show();
|
|
||||||
},
|
|
||||||
zgtreeConfirm2(e){
|
|
||||||
this.isUps=false;
|
|
||||||
if(e[0]?.parents.length === 1){
|
|
||||||
this.hiddenForm.HIDDENTYPE = [e[0]?.parents[0]?.id || '', e[0]?.id || ''];
|
|
||||||
this.hiddenForm.HIDDENTYPENAME = [e[0]?.parents[0]?.name || '', e[0]?.name || ''].join('/')
|
|
||||||
}else if(e[0]?.parents.length === 2) {
|
|
||||||
this.hiddenForm.HIDDENTYPE = [e[0]?.parents[0]?.id || '', e[0]?.parents[1]?.id || '', e[0]?.id || ''];
|
|
||||||
this.hiddenForm.HIDDENTYPENAME = [e[0]?.parents[0]?.name || '', e[0]?.parents[1]?.name || '', e[0]?.name || ''].join('/')
|
|
||||||
}else{
|
|
||||||
this.hiddenForm.HIDDENTYPE = [e[0]?.id || ''];
|
|
||||||
this.hiddenForm.HIDDENTYPENAME = [e[0]?.name || ''].join('/');
|
|
||||||
}
|
|
||||||
this.$forceUpdate();//强制刷新
|
|
||||||
},
|
|
||||||
zgtreeCancel2(e){
|
|
||||||
this.isUps=false;
|
|
||||||
},
|
|
||||||
getData() {
|
getData() {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
|
|
@ -708,7 +670,6 @@
|
||||||
if ("success" == res.data.result) {
|
if ("success" == res.data.result) {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
_this.form = res.data.pd; //参数map
|
_this.form = res.data.pd; //参数map
|
||||||
console.log("打印后端响应数据:", res.data.pd)
|
|
||||||
for (let i = 0; i < _this.form.inspectorList.length; i++) {
|
for (let i = 0; i < _this.form.inspectorList.length; i++) {
|
||||||
_this.inspectorList.push([])
|
_this.inspectorList.push([])
|
||||||
_this.getUserList('inspectorList', _this.form.inspectorList[i]
|
_this.getUserList('inspectorList', _this.form.inspectorList[i]
|
||||||
|
|
@ -789,7 +750,7 @@
|
||||||
for (let j = 0; j < this.form.hiddenList[i].hiddenImgs.length; j++) {
|
for (let j = 0; j < this.form.hiddenList[i].hiddenImgs.length; j++) {
|
||||||
if (!this.form.hiddenList[i].hiddenImgs[j].IMGFILES_ID) {
|
if (!this.form.hiddenList[i].hiddenImgs[j].IMGFILES_ID) {
|
||||||
var file = {};
|
var file = {};
|
||||||
file.type = '3';
|
file.type = 3;
|
||||||
file.FILEPATH = this.form.hiddenList[i].hiddenImgs[j].FILEPATH;
|
file.FILEPATH = this.form.hiddenList[i].hiddenImgs[j].FILEPATH;
|
||||||
fileList.push(file);
|
fileList.push(file);
|
||||||
}
|
}
|
||||||
|
|
@ -818,7 +779,6 @@
|
||||||
INSPECTION_USER_NAME: loginUser.NAME
|
INSPECTION_USER_NAME: loginUser.NAME
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$set(this.form, 'INSPECTORJSON', JSON.stringify(this.form.inspectorList))
|
this.$set(this.form, 'INSPECTORJSON', JSON.stringify(this.form.inspectorList))
|
||||||
this.$set(this.form, 'SITUATIONJSON', JSON.stringify(this.form.situationList))
|
this.$set(this.form, 'SITUATIONJSON', JSON.stringify(this.form.situationList))
|
||||||
this.$set(this.form, 'HIDDENJSON', JSON.stringify(this.form.hiddenList))
|
this.$set(this.form, 'HIDDENJSON', JSON.stringify(this.form.hiddenList))
|
||||||
|
|
@ -830,9 +790,6 @@
|
||||||
this.$set(this.form, 'CORPINFO_ID', corpinfoId)
|
this.$set(this.form, 'CORPINFO_ID', corpinfoId)
|
||||||
this.$set(this.form, 'ACTION_USER', loginUser.NAME)
|
this.$set(this.form, 'ACTION_USER', loginUser.NAME)
|
||||||
this.$set(this.form, 'OPERATOR', loginUser.USER_ID)
|
this.$set(this.form, 'OPERATOR', loginUser.USER_ID)
|
||||||
this.form.hiddenList.forEach((hidden, index) => {
|
|
||||||
console.log(`隐患项 ${index + 1} 的 POSITIONDESC 字段的值:`, hidden.POSITIONDESC);
|
|
||||||
});
|
|
||||||
this.submit(hiddenList)
|
this.submit(hiddenList)
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
@ -993,15 +950,15 @@
|
||||||
// this.hiddenForm.HIDDENLEVEL = e[0].id
|
// this.hiddenForm.HIDDENLEVEL = e[0].id
|
||||||
// this.hiddenForm.HIDDENLEVEL_NAME = e[0].name
|
// this.hiddenForm.HIDDENLEVEL_NAME = e[0].name
|
||||||
// }
|
// }
|
||||||
if (list === 'hiddenTypeTreeList') { // 隐患类型
|
if (list === 'hiddenTypeTreeList') { // 隐患级别
|
||||||
this.hiddenForm.HIDDENTYPE = e[0].id
|
this.hiddenForm.HIDDENTYPE = e[0].id
|
||||||
this.hiddenForm.HIDDENTYPE_NAME = e[0].name
|
this.hiddenForm.HIDDENTYPE_NAME = e[0].name
|
||||||
}
|
}
|
||||||
if (list === 'hiddenType2TreeList') { // 隐患类型
|
if (list === 'hiddenType2TreeList') { // 隐患级别
|
||||||
this.hiddenForm.HIDDENTYPE2 = e[0].id
|
this.hiddenForm.HIDDENTYPE2 = e[0].id
|
||||||
this.hiddenForm.HIDDENTYPE2_NAME = e[0].name
|
this.hiddenForm.HIDDENTYPE2_NAME = e[0].name
|
||||||
}
|
}
|
||||||
if (list === 'creatorList') { // 隐患发现人
|
if (list === 'creatorList') { // 隐患级别
|
||||||
this.hiddenForm.HIDDENFINDDEPT = e[0].id
|
this.hiddenForm.HIDDENFINDDEPT = e[0].id
|
||||||
this.hiddenForm.HIDDENFINDDEPT_NAME = e[0].name
|
this.hiddenForm.HIDDENFINDDEPT_NAME = e[0].name
|
||||||
this.hiddenForm.CREATOR_INDEX = ''
|
this.hiddenForm.CREATOR_INDEX = ''
|
||||||
|
|
@ -1082,7 +1039,7 @@
|
||||||
content: '确定移除发现问题吗?',
|
content: '确定移除发现问题吗?',
|
||||||
success: function(res) {
|
success: function(res) {
|
||||||
if (res.cancel) {
|
if (res.cancel) {
|
||||||
console.info(_this.form,'打印数据2');
|
console.info(_this.form)
|
||||||
_this.form.hiddenList.splice(index, 1);
|
_this.form.hiddenList.splice(index, 1);
|
||||||
if (item.HIDDEN_ID) {
|
if (item.HIDDEN_ID) {
|
||||||
_this.delHiddens.push(item.HIDDEN_ID)
|
_this.delHiddens.push(item.HIDDEN_ID)
|
||||||
|
|
@ -1127,71 +1084,52 @@
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.hiddenForm = item
|
this.hiddenForm = item
|
||||||
this.hiddenForm.HIDDENTYPENAME = item.HIDDENTYPE_NAME || this.hiddenForm.HIDDENTYPENAME;
|
|
||||||
this.$refs['showHiddenWindow'].open()
|
this.$refs['showHiddenWindow'].open()
|
||||||
this.showHiddenWindow = true
|
this.showHiddenWindow = true
|
||||||
this.hiddenIsEdit = false
|
this.hiddenIsEdit = false
|
||||||
},
|
},
|
||||||
// 保存隐患
|
// 保存隐患
|
||||||
saveHidden() {
|
saveHidden() {
|
||||||
let required = true;
|
let required = true
|
||||||
|
|
||||||
// 检查隐患图片
|
|
||||||
if (this.hiddenForm.hiddenImgs.length <= 0) {
|
|
||||||
uni.showToast({
|
|
||||||
icon: 'none',
|
|
||||||
title: '请上传隐患图片',
|
|
||||||
duration: 1500
|
|
||||||
});
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 检查隐患部位是否输入
|
|
||||||
if (!this.hiddenForm.HIDDENPART) {
|
|
||||||
uni.showToast({
|
|
||||||
icon: 'none',
|
|
||||||
title: '请输入隐患部位',
|
|
||||||
duration: 1500
|
|
||||||
});
|
|
||||||
required = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 检查其他必填项
|
|
||||||
this.hiddenRules.forEach(({ name, message }) => {
|
|
||||||
if (!this.hiddenForm[name] || this.hiddenForm[name] === '请选择' || this.hiddenForm[name] === '请输入') {
|
|
||||||
uni.showToast({
|
|
||||||
icon: 'none',
|
|
||||||
title: message,
|
|
||||||
duration: 1500
|
|
||||||
});
|
|
||||||
required = false;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
if (!required) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
uni.showLoading({
|
|
||||||
title: '请稍候'
|
|
||||||
});
|
|
||||||
|
|
||||||
// 检查并设置发现人相关信息
|
|
||||||
this.form.inspectorList.forEach(item => {
|
|
||||||
if (item.INSPECTION_USER_ID === this.hiddenForm.CREATOR) {
|
|
||||||
this.hiddenForm.HIDDENFINDDEPT = item.INSPECTION_DEPARTMENT_ID;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
// 将当前隐患信息添加到列表中
|
|
||||||
this.form.hiddenList.push(this.hiddenForm);
|
|
||||||
|
|
||||||
// 关闭并重置隐患信息输入窗口
|
|
||||||
this.cancelHidden();
|
|
||||||
|
|
||||||
uni.hideLoading();
|
|
||||||
},
|
|
||||||
|
|
||||||
|
if (this.hiddenForm.hiddenImgs.length <= 0) {
|
||||||
|
uni.showToast({
|
||||||
|
icon: 'none',
|
||||||
|
title: '请上传隐患图片',
|
||||||
|
duration: 1500
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this.hiddenRules.map(({
|
||||||
|
name,
|
||||||
|
message
|
||||||
|
}) => {
|
||||||
|
if (!this.hiddenForm[name] || this.hiddenForm[name] === '请选择' || this.hiddenForm[name] ===
|
||||||
|
'请输入') {
|
||||||
|
uni.showToast({
|
||||||
|
icon: 'none',
|
||||||
|
title: message,
|
||||||
|
duration: 1500
|
||||||
|
});
|
||||||
|
required = false
|
||||||
|
}
|
||||||
|
})
|
||||||
|
if (!required) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
uni.showLoading({
|
||||||
|
title: '请稍候'
|
||||||
|
})
|
||||||
|
this.form.inspectorList.forEach(item => {
|
||||||
|
if (item.INSPECTION_USER_ID === this.hiddenForm.CREATOR) {
|
||||||
|
this.hiddenForm.HIDDENFINDDEPT = item.INSPECTION_DEPARTMENT_ID
|
||||||
|
}
|
||||||
|
})
|
||||||
|
console.info(this.hiddenForm)
|
||||||
|
this.form.hiddenList.push(this.hiddenForm)
|
||||||
|
this.cancelHidden()
|
||||||
|
uni.hideLoading();
|
||||||
|
},
|
||||||
// 取消添加隐患
|
// 取消添加隐患
|
||||||
cancelHidden() {
|
cancelHidden() {
|
||||||
this.$refs['showHiddenWindow'].close()
|
this.$refs['showHiddenWindow'].close()
|
||||||
|
|
@ -1252,6 +1190,7 @@
|
||||||
var _this = this;
|
var _this = this;
|
||||||
let i = e.currentTarget.dataset.index
|
let i = e.currentTarget.dataset.index
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
|
title: '秦港-双基双控',
|
||||||
content: '确定要删除这张图片吗?',
|
content: '确定要删除这张图片吗?',
|
||||||
cancelColor: "#000000",
|
cancelColor: "#000000",
|
||||||
cancelText: '取消',
|
cancelText: '取消',
|
||||||
|
|
@ -1308,6 +1247,7 @@
|
||||||
var _this = this;
|
var _this = this;
|
||||||
let i = e.currentTarget.dataset.index
|
let i = e.currentTarget.dataset.index
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
|
title: '秦港-双基双控',
|
||||||
content: '确定要删除这张图片吗?',
|
content: '确定要删除这张图片吗?',
|
||||||
cancelColor: "#000000",
|
cancelColor: "#000000",
|
||||||
cancelText: '取消',
|
cancelText: '取消',
|
||||||
|
|
@ -1350,6 +1290,7 @@
|
||||||
},
|
},
|
||||||
DelVideo(e) {
|
DelVideo(e) {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
|
title: '秦港-双基双控',
|
||||||
content: '确定要删除这个视频吗?',
|
content: '确定要删除这个视频吗?',
|
||||||
cancelColor: "#000000",
|
cancelColor: "#000000",
|
||||||
cancelText: '取消',
|
cancelText: '取消',
|
||||||
|
|
@ -1393,7 +1334,7 @@
|
||||||
this.modalShow = true
|
this.modalShow = true
|
||||||
},
|
},
|
||||||
changeDiscoverDate(e) {
|
changeDiscoverDate(e) {
|
||||||
this.hiddenForm.CREATTIME = e
|
this.hiddenForm.DISCOVERYTIME = e
|
||||||
this.$forceUpdate(); //强制刷新
|
this.$forceUpdate(); //强制刷新
|
||||||
},
|
},
|
||||||
creatorChange(e) {
|
creatorChange(e) {
|
||||||
|
|
@ -1403,8 +1344,8 @@
|
||||||
},
|
},
|
||||||
hiddenLevelChange(e) {
|
hiddenLevelChange(e) {
|
||||||
this.hiddenForm.HIDDENLEVEL_INDEX = e.detail.value;
|
this.hiddenForm.HIDDENLEVEL_INDEX = e.detail.value;
|
||||||
this.hiddenForm.HIDDENLEVEL = this.hiddenLevelTreeList[e.detail.value].BIANMA;
|
this.hiddenForm.HIDDENLEVEL = this.hiddenLevelTreeList[e.detail.value].value;
|
||||||
this.hiddenForm.HIDDENLEVEL_NAME = this.hiddenLevelTreeList[e.detail.value].NAME;
|
this.hiddenForm.HIDDENLEVEL_NAME = this.hiddenLevelTreeList[e.detail.value].label;
|
||||||
},
|
},
|
||||||
/** 坐标定位 */
|
/** 坐标定位 */
|
||||||
showMapModal() {
|
showMapModal() {
|
||||||
|
|
@ -1479,54 +1420,6 @@
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
filterHiddenLevels(){
|
|
||||||
this.hiddenLevelTreeList = this.hiddenLevelTreeList.filter(item => item.NAME != '重大隐患' && item.NAME !='轻微隐患');
|
|
||||||
},
|
|
||||||
getHiddenType: function () {
|
|
||||||
var _this = this;
|
|
||||||
uni.request({
|
|
||||||
method: 'POST',
|
|
||||||
dataType: 'json',
|
|
||||||
header: {
|
|
||||||
'Content-type': 'application/x-www-form-urlencoded'
|
|
||||||
},
|
|
||||||
url: basePath + '/dictionaries/getLevels',
|
|
||||||
data: {
|
|
||||||
DICTIONARIES_ID: '3babc15144444bdc8d763d0af2bdfff8',
|
|
||||||
CORPINFO_ID:loginUser.CORPINFO_ID,
|
|
||||||
USER_ID:loginUser.USER_ID,
|
|
||||||
},
|
|
||||||
success: function ({data}) {
|
|
||||||
for (let i = 0; i < data.list.length; i++) {
|
|
||||||
if (data.list[i].BIANMA.indexOf(loginUser.PROVINCE) > -1) {
|
|
||||||
_this.getTrainDicList(data.list[i].DICTIONARIES_ID)
|
|
||||||
break
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
getTrainDicList(parentId) { // trainDicList
|
|
||||||
var _this = this;
|
|
||||||
uni.request({
|
|
||||||
method: 'POST',
|
|
||||||
dataType: 'json',
|
|
||||||
header: {
|
|
||||||
'Content-type': 'application/x-www-form-urlencoded'
|
|
||||||
},
|
|
||||||
url: basePath + '/dictionaries/listAllDictToParId',
|
|
||||||
data: {
|
|
||||||
parentId,
|
|
||||||
CORPINFO_ID:loginUser.CORPINFO_ID,
|
|
||||||
USER_ID:loginUser.USER_ID,
|
|
||||||
},
|
|
||||||
success: function ({data}) {
|
|
||||||
let zTreeNodes = data.zTreeNodes
|
|
||||||
zTreeNodes = zTreeNodes.replace(/"nodes":\[/g, '"children":[')
|
|
||||||
_this.hiddenTypeList = JSON.parse(zTreeNodes)
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
//获取数据字典数据
|
//获取数据字典数据
|
||||||
getDict() {
|
getDict() {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
|
|
@ -1570,22 +1463,32 @@
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
uni.request({
|
// uni.request({
|
||||||
method: 'POST',
|
// method: 'POST',
|
||||||
dataType: 'json',
|
// dataType: 'json',
|
||||||
header: {
|
// header: {
|
||||||
'Content-type': 'application/x-www-form-urlencoded'
|
// 'Content-type': 'application/x-www-form-urlencoded'
|
||||||
},
|
// },
|
||||||
url: basePath + '/dictionaries/getLevels?tm=' + new Date().getTime(),
|
// url: basePath + '/dictionaries/listSelectTreeByTkiTree?tm=' + new Date().getTime(),
|
||||||
data: {
|
// data: {
|
||||||
DICTIONARIES_ID: '5e7cf8620ba54ad89719d0be62133c7a',
|
// DICTIONARIES_ID: '5e7cf8620ba54ad89719d0be62133c7a'
|
||||||
},
|
// },
|
||||||
success: function (res) {
|
// success: function(res) {
|
||||||
_this.hiddenLevelTreeList = res.data.list;
|
// var data = JSON.parse(res.data.zTreeNodes);
|
||||||
_this.filterHiddenLevels();
|
// for (let i = 0; i < data.length; i++) {
|
||||||
}
|
// for (let j = 0; j < data[i].children.length; j++) {
|
||||||
});
|
// if (data[i].children[j].id == 'jdyh001' || data[i].children[j].id ==
|
||||||
|
// 'hiddenLevel1001') {
|
||||||
|
// data[i].children.splice(j, 1)
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// if (data[i].id == 'hiddenLevel0002') {
|
||||||
|
// data.splice(i, 1)
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// _this.hiddenLevelTreeList = data
|
||||||
|
// }
|
||||||
|
// })
|
||||||
|
|
||||||
uni.request({
|
uni.request({
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|
@ -1595,7 +1498,7 @@
|
||||||
},
|
},
|
||||||
url: basePath + '/dictionaries/listSelectTreeByTkiTree?tm=' + new Date().getTime(),
|
url: basePath + '/dictionaries/listSelectTreeByTkiTree?tm=' + new Date().getTime(),
|
||||||
data: {
|
data: {
|
||||||
DICTIONARIES_ID: 'b4a7325f96af40808ec64c85c162933d'
|
DICTIONARIES_ID: '3babc15144444bdc8d763d0af2bdfff6'
|
||||||
},
|
},
|
||||||
success: function(res) {
|
success: function(res) {
|
||||||
var jons = res.data.zTreeNodes;
|
var jons = res.data.zTreeNodes;
|
||||||
|
|
@ -1656,7 +1559,7 @@
|
||||||
HIDDENTYPE2_NAME: '',
|
HIDDENTYPE2_NAME: '',
|
||||||
LONGITUDE: '', // 隐患位置经度
|
LONGITUDE: '', // 隐患位置经度
|
||||||
LATITUDE: '', // 隐患位置纬度
|
LATITUDE: '', // 隐患位置纬度
|
||||||
CREATTIME: '', // 隐患发现时间
|
DISCOVERYTIME: '', // 隐患发现时间
|
||||||
HIDDENFINDDEPT: '', // 隐患发现部门(隐患责任人部门)
|
HIDDENFINDDEPT: '', // 隐患发现部门(隐患责任人部门)
|
||||||
HIDDENFINDDEPT_NAME: '',
|
HIDDENFINDDEPT_NAME: '',
|
||||||
CREATOR: '', // 发现人(隐患责任人)
|
CREATOR: '', // 发现人(隐患责任人)
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@
|
||||||
<button class="cu-btn bg-green margin-tb-sm lg" @click="goback()">返回
|
<button class="cu-btn bg-green margin-tb-sm lg" @click="goback()">返回
|
||||||
</button>
|
</button>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
</picker>
|
</picker>
|
||||||
<view class="search-form radius" style="margin-left: 0;">
|
<view class="search-form radius" style="margin-left: 0;">
|
||||||
<text class="cuIcon-search"></text>
|
<text class="cuIcon-search"></text>
|
||||||
<input @input="InputBlur" placeholder="请输入被检查单位部门关键字"
|
<input @input="InputBlur" placeholder="请输入关键字"
|
||||||
confirm-type="search" />
|
confirm-type="search" />
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
|
||||||
|
|
@ -245,7 +245,7 @@
|
||||||
<view class="picker-tree" @tap="showZgTree('tkiTree3', 3)">{{hiddenForm.HIDDENPART_NAME || '请选择'}}</view>
|
<view class="picker-tree" @tap="showZgTree('tkiTree3', 3)">{{hiddenForm.HIDDENPART_NAME || '请选择'}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view v-else class="picker-tree-box">
|
<view v-else class="picker-tree-box">
|
||||||
<view>{{ hiddenForm.HIDDENPART }}</view>
|
<view>{{ hiddenForm.HIDDENPART_NAME }}</view>
|
||||||
</view>
|
</view>
|
||||||
<tki-tree ref="tkiTree3" :selectParent=false :range="hiddenRegionTreeList" rangeKey="name" @confirm="zgtreeConfirm($event,'hiddenRegionTreeList')"
|
<tki-tree ref="tkiTree3" :selectParent=false :range="hiddenRegionTreeList" rangeKey="name" @confirm="zgtreeConfirm($event,'hiddenRegionTreeList')"
|
||||||
@cancel="zgtreeCancel"></tki-tree>
|
@cancel="zgtreeCancel"></tki-tree>
|
||||||
|
|
@ -274,31 +274,31 @@
|
||||||
@cancel="zgtreeCancel">
|
@cancel="zgtreeCancel">
|
||||||
</tki-tree>
|
</tki-tree>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="cu-form-group margin-top">-->
|
<view class="cu-form-group margin-top">
|
||||||
<!-- <view class="title">是否相关方</view>-->
|
<view class="title">是否相关方</view>
|
||||||
<!-- <view >{{ hiddenForm.ISRELEVANT=='1'?'是':'否' }}</view>-->
|
<view >{{ hiddenForm.ISRELEVANT=='1'?'是':'否' }}</view>
|
||||||
<!-- </view>-->
|
</view>
|
||||||
<!-- <view class="cu-form-group">-->
|
<view class="cu-form-group">
|
||||||
<!-- <view class="title">隐患部位描述</view>-->
|
<view class="title">隐患部位描述</view>
|
||||||
<!-- <text>{{ hiddenForm.POSITIONDESC }}</text>-->
|
<text>{{ hiddenForm.POSITIONDESC }}</text>
|
||||||
<!-- </view>-->
|
</view>
|
||||||
<view class="cu-form-group">
|
<view class="cu-form-group">
|
||||||
<view class="title">隐患发现时间</view>
|
<view class="title">隐患发现时间</view>
|
||||||
<ruiDatePicker :start="todayDate" :disabled="forbidEdit" fields="minute" :value="hiddenForm.CREATTIME || '请选择'"
|
<ruiDatePicker :start="todayDate" :disabled="forbidEdit" fields="minute" :value="hiddenForm.DISCOVERYTIME || '请选择'"
|
||||||
@change="changeDiscoverDate"></ruiDatePicker>
|
@change="changeDiscoverDate"></ruiDatePicker>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="cu-form-group">-->
|
<view class="cu-form-group">
|
||||||
<!-- <view class="title">隐患上报位置:</view>-->
|
<view class="title">隐患上报位置:</view>
|
||||||
<!-- <button v-if="!forbidEdit" class="cu-btn bg-green shadow" @tap="showMapModal" >定位</button>-->
|
<button v-if="!forbidEdit" class="cu-btn bg-green shadow" @tap="showMapModal" >定位</button>
|
||||||
<!-- </view>-->
|
</view>
|
||||||
<!-- <view class="cu-form-group" v-if="hiddenForm.LONGITUDE && hiddenForm.LONGITUDE != 'undefined'">-->
|
<view class="cu-form-group" v-if="hiddenForm.LONGITUDE && hiddenForm.LONGITUDE != 'undefined'">
|
||||||
<!-- <view class="sign-title">经度:</view>-->
|
<view class="sign-title">经度:</view>
|
||||||
<!-- <view class="wui-sign-cotent">{{hiddenForm.LONGITUDE}}</view>-->
|
<view class="wui-sign-cotent">{{hiddenForm.LONGITUDE}}</view>
|
||||||
<!-- </view>-->
|
</view>
|
||||||
<!-- <view class="cu-form-group" v-if="hiddenForm.LATITUDE && hiddenForm.LATITUDE != 'undefined'">-->
|
<view class="cu-form-group" v-if="hiddenForm.LATITUDE && hiddenForm.LATITUDE != 'undefined'">
|
||||||
<!-- <view class="sign-title">纬度:</view>-->
|
<view class="sign-title">纬度:</view>
|
||||||
<!-- <view class="wui-sign-cotent">{{hiddenForm.LATITUDE}}</view>-->
|
<view class="wui-sign-cotent">{{hiddenForm.LATITUDE}}</view>
|
||||||
<!-- </view>-->
|
</view>
|
||||||
<view class="cu-form-group">
|
<view class="cu-form-group">
|
||||||
<view class="title">隐患发现人</view>
|
<view class="title">隐患发现人</view>
|
||||||
<picker @change="creatorChange" :disabled="forbidEdit" :value="hiddenForm.CREATOR_INDEX"
|
<picker @change="creatorChange" :disabled="forbidEdit" :value="hiddenForm.CREATOR_INDEX"
|
||||||
|
|
@ -426,7 +426,7 @@
|
||||||
HIDDENTYPE2_NAME: '',
|
HIDDENTYPE2_NAME: '',
|
||||||
LONGITUDE: '', // 隐患位置经度
|
LONGITUDE: '', // 隐患位置经度
|
||||||
LATITUDE: '', // 隐患位置纬度
|
LATITUDE: '', // 隐患位置纬度
|
||||||
CREATTIME: '', // 隐患发现时间
|
DISCOVERYTIME: '', // 隐患发现时间
|
||||||
HIDDENFINDDEPT: '', // 隐患发现部门(隐患责任人部门)
|
HIDDENFINDDEPT: '', // 隐患发现部门(隐患责任人部门)
|
||||||
HIDDENFINDDEPT_NAME: '',
|
HIDDENFINDDEPT_NAME: '',
|
||||||
CREATOR: '', // 发现人(隐患责任人)
|
CREATOR: '', // 发现人(隐患责任人)
|
||||||
|
|
@ -446,7 +446,7 @@
|
||||||
/*{name:'HIDDENTYPE2',message:'请选择隐患类型2'},*/
|
/*{name:'HIDDENTYPE2',message:'请选择隐患类型2'},*/
|
||||||
{name:'LONGITUDE',message:'请选择隐患位置'},
|
{name:'LONGITUDE',message:'请选择隐患位置'},
|
||||||
{name:'LATITUDE',message:'请选择隐患位置'},
|
{name:'LATITUDE',message:'请选择隐患位置'},
|
||||||
{name:'CREATTIME',message:'请选择隐患发现时间'},
|
{name:'DISCOVERYTIME',message:'请选择隐患发现时间'},
|
||||||
// {name:'HIDDENFINDDEPT',message:'请选择隐患责任人部门'},
|
// {name:'HIDDENFINDDEPT',message:'请选择隐患责任人部门'},
|
||||||
{name:'CREATOR',message:'请选择隐患责任人'}
|
{name:'CREATOR',message:'请选择隐患责任人'}
|
||||||
],
|
],
|
||||||
|
|
@ -886,6 +886,7 @@
|
||||||
var _this = this;
|
var _this = this;
|
||||||
let i=e.currentTarget.dataset.index
|
let i=e.currentTarget.dataset.index
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
|
title: '秦港-双基双控',
|
||||||
content: '确定要删除这张图片吗?',
|
content: '确定要删除这张图片吗?',
|
||||||
cancelColor:"#000000",
|
cancelColor:"#000000",
|
||||||
cancelText: '取消',
|
cancelText: '取消',
|
||||||
|
|
@ -969,6 +970,7 @@
|
||||||
},
|
},
|
||||||
DelVideo(e){
|
DelVideo(e){
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
|
title: '秦港-双基双控',
|
||||||
content: '确定要删除这个视频吗?',
|
content: '确定要删除这个视频吗?',
|
||||||
cancelColor: "#000000",
|
cancelColor: "#000000",
|
||||||
cancelText: '取消',
|
cancelText: '取消',
|
||||||
|
|
@ -1007,7 +1009,7 @@
|
||||||
this.modalShow = true
|
this.modalShow = true
|
||||||
},
|
},
|
||||||
changeDiscoverDate(e) {
|
changeDiscoverDate(e) {
|
||||||
this.hiddenForm.CREATTIME = e
|
this.hiddenForm.DISCOVERYTIME = e
|
||||||
this.$forceUpdate();//强制刷新
|
this.$forceUpdate();//强制刷新
|
||||||
},
|
},
|
||||||
creatorChange(e) {
|
creatorChange(e) {
|
||||||
|
|
@ -1203,7 +1205,7 @@
|
||||||
LATITUDE: '', // 隐患位置纬度
|
LATITUDE: '', // 隐患位置纬度
|
||||||
// LONGITUDE: '119.65772151947023', // 隐患位置经度
|
// LONGITUDE: '119.65772151947023', // 隐患位置经度
|
||||||
// LATITUDE: '39.93767832107088', // 隐患位置纬度
|
// LATITUDE: '39.93767832107088', // 隐患位置纬度
|
||||||
CREATTIME: '', // 隐患发现时间
|
DISCOVERYTIME: '', // 隐患发现时间
|
||||||
HIDDENFINDDEPT: '', // 隐患发现部门(隐患责任人部门)
|
HIDDENFINDDEPT: '', // 隐患发现部门(隐患责任人部门)
|
||||||
HIDDENFINDDEPT_NAME: '',
|
HIDDENFINDDEPT_NAME: '',
|
||||||
CREATOR: '', // 发现人(隐患责任人)
|
CREATOR: '', // 发现人(隐患责任人)
|
||||||
|
|
|
||||||
|
|
@ -6,14 +6,9 @@
|
||||||
</cu-custom>
|
</cu-custom>
|
||||||
<scroll-view scroll-y>
|
<scroll-view scroll-y>
|
||||||
<view class="de-card-list de-list">
|
<view class="de-card-list de-list">
|
||||||
<view class="cu-form-group">
|
<view class="de-item">
|
||||||
<view class="title">
|
<text class="text-semi">{{pd.HIDDENDESCR}}</text>
|
||||||
<text>隐患描述</text>
|
</view>
|
||||||
</view>
|
|
||||||
<view>
|
|
||||||
<text>{{pd.HIDDENDESCR}}</text>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<!-- <view class="de-title">
|
<!-- <view class="de-title">
|
||||||
<text class="text-semi">隐患信息</text>
|
<text class="text-semi">隐患信息</text>
|
||||||
</view> -->
|
</view> -->
|
||||||
|
|
@ -24,8 +19,8 @@
|
||||||
<view class="uni-flex-item text-right">
|
<view class="uni-flex-item text-right">
|
||||||
<text v-if="pd.SOURCE=='1'" class="text-semi">隐患快报</text>
|
<text v-if="pd.SOURCE=='1'" class="text-semi">隐患快报</text>
|
||||||
<text v-if="pd.SOURCE=='2' || pd.SOURCE=='3'" class="text-semi">清单排查</text>
|
<text v-if="pd.SOURCE=='2' || pd.SOURCE=='3'" class="text-semi">清单排查</text>
|
||||||
<text v-if="pd.SOURCE=='4'" class="text-semi">安全环保检查</text>
|
<text v-if="pd.SOURCE=='4'" class="text-semi">安全环保检查(监管端)</text>
|
||||||
<text v-if="pd.SOURCE=='5'" class="text-semi">安全环保检查</text>
|
<text v-if="pd.SOURCE=='5'" class="text-semi">安全环保检查(企业端)</text>
|
||||||
<text v-if="pd.SOURCE=='6'" class="text-semi">消防检查</text>
|
<text v-if="pd.SOURCE=='6'" class="text-semi">消防检查</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -53,16 +48,16 @@
|
||||||
<text class="text-semi">{{pd.RISK_DESCR}}</text>
|
<text class="text-semi">{{pd.RISK_DESCR}}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="de-item">-->
|
<view class="de-item">
|
||||||
<!-- <view style="width: 200px" class="de-sub-title">-->
|
<view style="width: 200px" class="de-sub-title">
|
||||||
<!-- <text class="text-grey" >隐患上报位置(经纬度)</text>-->
|
<text class="text-grey" >隐患上报位置(经纬度)</text>
|
||||||
<!-- </view>-->
|
</view>
|
||||||
<!-- <view class="uni-flex-item text-right" v-if="pd.LONGITUDE">-->
|
<view class="uni-flex-item text-right" v-if="pd.LONGITUDE">
|
||||||
<!-- <text class="text-semi">-->
|
<text class="text-semi">
|
||||||
<!-- {{ pd.LONGITUDE && pd.LONGITUDE.length>6?pd.LONGITUDE.substr(0,6):pd.LONGITUDE}},{{pd.LATITUDE && pd.LATITUDE.length>6?pd.LATITUDE.substr(0,6):pd.LATITUDE}}-->
|
{{ pd.LONGITUDE && pd.LONGITUDE.length>6?pd.LONGITUDE.substr(0,6):pd.LONGITUDE}},{{pd.LATITUDE && pd.LATITUDE.length>6?pd.LATITUDE.substr(0,6):pd.LATITUDE}}
|
||||||
<!-- </text>-->
|
</text>
|
||||||
<!-- </view>-->
|
</view>
|
||||||
<!-- </view>-->
|
</view>
|
||||||
<view class="de-item" v-if="pd.SOURCE==2">
|
<view class="de-item" v-if="pd.SOURCE==2">
|
||||||
<view class="de-sub-title">
|
<view class="de-sub-title">
|
||||||
<text class="text-grey">风险分级</text>
|
<text class="text-grey">风险分级</text>
|
||||||
|
|
@ -87,14 +82,14 @@
|
||||||
<text class="text-semi">{{pd.HIDDENDESCR}}</text>
|
<text class="text-semi">{{pd.HIDDENDESCR}}</text>
|
||||||
</view>
|
</view>
|
||||||
</view> -->
|
</view> -->
|
||||||
<!-- <view class="de-item">-->
|
<view class="de-item">
|
||||||
<!-- <view class="de-sub-title">-->
|
<view class="de-sub-title">
|
||||||
<!-- <text class="text-grey">隐患部位</text>-->
|
<text class="text-grey">隐患部位</text>
|
||||||
<!-- </view>-->
|
</view>
|
||||||
<!-- <view class="uni-flex-item text-right">-->
|
<view class="uni-flex-item text-right">
|
||||||
<!-- <text class="text-semi">{{pd.hregionName}}</text>-->
|
<text class="text-semi">{{pd.hregionName}}</text>
|
||||||
<!-- </view>-->
|
</view>
|
||||||
<!-- </view>-->
|
</view>
|
||||||
<view class="de-item" v-for="(item, index) in hiddenFindPeople" :key="index">
|
<view class="de-item" v-for="(item, index) in hiddenFindPeople" :key="index">
|
||||||
<view class="de-sub-title">
|
<view class="de-sub-title">
|
||||||
<text class="text-grey">隐患发现人</text>
|
<text class="text-grey">隐患发现人</text>
|
||||||
|
|
@ -116,7 +111,7 @@
|
||||||
<text class="text-grey">隐患类型</text>
|
<text class="text-grey">隐患类型</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="uni-flex-item text-right">
|
<view class="uni-flex-item text-right">
|
||||||
<text class="text-semi">{{pd.HIDDENTYPE_NAME}}</text>
|
<text class="text-semi">{{pd.HIDDENTYPENAME}}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!--<view class="de-item">
|
<!--<view class="de-item">
|
||||||
|
|
@ -185,14 +180,14 @@
|
||||||
<view class="de-title">
|
<view class="de-title">
|
||||||
<text class="text-semi">整改信息</text>
|
<text class="text-semi">整改信息</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="de-item">
|
<view class="de-item-sp">
|
||||||
<view class="de-sub-title">
|
<view class="de-sub-title">
|
||||||
<text class="text-grey">整改描述</text>
|
<text class="text-grey">整改描述</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="uni-flex-item text-right">
|
<view class="de-sub-content">
|
||||||
<text class="text-semi">{{pd.RECTIFYDESCR}}</text>
|
<text class="text-semi">{{pd.RECTIFYDESCR}}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="de-item">
|
<view class="de-item">
|
||||||
<view class="de-sub-title">
|
<view class="de-sub-title">
|
||||||
<text class="text-grey">整改部门</text>
|
<text class="text-grey">整改部门</text>
|
||||||
|
|
@ -343,30 +338,12 @@
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="de-item-sp">
|
|
||||||
<view class="de-sub-title">
|
|
||||||
<text class="text-grey">计划图片</text>
|
|
||||||
</view>
|
|
||||||
<view class="de-sub-content">
|
|
||||||
<scroll-view scroll-x class="bg-white nav" scroll-with-animation>
|
|
||||||
<view class="cu-item" v-for="(item,index) in files5" v-bind:key="index">
|
|
||||||
<view class="imgs">
|
|
||||||
<image :src="baseImgPath+item.FILEPATH" :data-index="index" @click="ViewShowImage5" mode=""></image>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
|
|
||||||
</scroll-view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view v-show="pd.STATE==4" class="de-card-list de-list" v-for="(item,index) of checkList" :key="index" :data-id="item.HIDDENCHECK_ID">
|
<view v-show="pd.STATE==4" class="de-card-list de-list" v-for="(item,index) of checkList" :key="index" :data-id="item.HIDDENCHECK_ID">
|
||||||
<view class="de-title">
|
<view class="de-title">
|
||||||
<text class="text-semi">验收信息</text>
|
<text class="text-semi">验收信息</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="de-item">
|
<view class="de-item-sp">
|
||||||
<view class="de-sub-title">
|
<view class="de-sub-title">
|
||||||
<text class="text-grey">验收描述</text>
|
<text class="text-grey">验收描述</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -435,7 +412,7 @@
|
||||||
<text>是</text>
|
<text>是</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="group">
|
<view class="group">
|
||||||
<radio class='radio' value="2" :checked="form.FINAL_CHECK==='2'" @click="radioCheck('2')"></radio>
|
<radio class='radio' value="0" :checked="form.FINAL_CHECK==='0'" @click="radioCheck('0')"></radio>
|
||||||
<text>否</text>
|
<text>否</text>
|
||||||
</view>
|
</view>
|
||||||
</radio-group>
|
</radio-group>
|
||||||
|
|
@ -519,7 +496,6 @@
|
||||||
files2: [],
|
files2: [],
|
||||||
files3: [],
|
files3: [],
|
||||||
files4: [],
|
files4: [],
|
||||||
files5: [],
|
|
||||||
checkList: [],
|
checkList: [],
|
||||||
CHECKDESCR: '',
|
CHECKDESCR: '',
|
||||||
basePath:basePath,
|
basePath:basePath,
|
||||||
|
|
@ -581,7 +557,6 @@
|
||||||
_this.files2 = res.data.rImgs;
|
_this.files2 = res.data.rImgs;
|
||||||
_this.files3 = res.data.cImgs;
|
_this.files3 = res.data.cImgs;
|
||||||
_this.files4 = res.data.sImgs;
|
_this.files4 = res.data.sImgs;
|
||||||
_this.files5 = res.data.pImgs;
|
|
||||||
_this.checkList = res.data.checkList;
|
_this.checkList = res.data.checkList;
|
||||||
_this.hiddenVideo = res.data.hiddenVideo;
|
_this.hiddenVideo = res.data.hiddenVideo;
|
||||||
_this.hiddenFindPeople = res.data.hiddenFindPeople
|
_this.hiddenFindPeople = res.data.hiddenFindPeople
|
||||||
|
|
@ -618,7 +593,7 @@
|
||||||
},
|
},
|
||||||
DelImg(e) {
|
DelImg(e) {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '温馨提示',
|
title: '双控平台',
|
||||||
content: '确定要删除这张图片吗?',
|
content: '确定要删除这张图片吗?',
|
||||||
cancelColor: "#000000",
|
cancelColor: "#000000",
|
||||||
cancelText: '取消',
|
cancelText: '取消',
|
||||||
|
|
@ -796,26 +771,6 @@
|
||||||
current: e.currentTarget.dataset.index
|
current: e.currentTarget.dataset.index
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
ViewShowImage5(e) {
|
|
||||||
let files = [];
|
|
||||||
for (var i = 0; i < this.files5.length; i++) {
|
|
||||||
files.push(baseImgPath + this.files5[i].FILEPATH)
|
|
||||||
}
|
|
||||||
uni.previewImage({
|
|
||||||
urls: files,
|
|
||||||
current: e.currentTarget.dataset.index
|
|
||||||
});
|
|
||||||
},
|
|
||||||
ViewShowImages(imgs, index) {
|
|
||||||
let files = [];
|
|
||||||
for (var i = 0; i < imgs.length; i++) {
|
|
||||||
files.push(baseImgPath +imgs[i].FILEPATH)
|
|
||||||
}
|
|
||||||
uni.previewImage({
|
|
||||||
urls: files,
|
|
||||||
current: index
|
|
||||||
});
|
|
||||||
},
|
|
||||||
playVideo(e) {
|
playVideo(e) {
|
||||||
this.videoSrc = e.currentTarget.dataset.src
|
this.videoSrc = e.currentTarget.dataset.src
|
||||||
this.modalShow = true
|
this.modalShow = true
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
<view>
|
<view>
|
||||||
<cu-custom bgColor="bg-gradual-blueness" :isBack="true">
|
<cu-custom bgColor="bg-gradual-blueness" :isBack="true">
|
||||||
<block slot="backText">返回</block>
|
<block slot="backText">返回</block>
|
||||||
<block slot="content">安全环保检查指派</block>
|
<block slot="content">安全环保检查指派确认人</block>
|
||||||
</cu-custom>
|
</cu-custom>
|
||||||
<view class="form">
|
<view class="form">
|
||||||
<view class="wui-form-list">
|
<view class="wui-form-list">
|
||||||
|
|
@ -14,8 +14,8 @@
|
||||||
<text class="title">隐患来源</text>
|
<text class="title">隐患来源</text>
|
||||||
<text v-if="form.SOURCE=='1'" class="text-semi">隐患快报</text>
|
<text v-if="form.SOURCE=='1'" class="text-semi">隐患快报</text>
|
||||||
<text v-if="form.SOURCE=='2' || form.SOURCE=='3'" class="text-semi">清单排查</text>
|
<text v-if="form.SOURCE=='2' || form.SOURCE=='3'" class="text-semi">清单排查</text>
|
||||||
<text v-if="form.SOURCE=='4'" class="text-semi">安全环保检查</text>
|
<text v-if="form.SOURCE=='4'" class="text-semi">安全环保检查(监管端)</text>
|
||||||
<text v-if="form.SOURCE=='5'" class="text-semi">安全环保检查</text>
|
<text v-if="form.SOURCE=='5'" class="text-semi">安全环保检查(企业端)</text>
|
||||||
<text v-if="form.SOURCE=='6'" class="text-semi">消防检查</text>
|
<text v-if="form.SOURCE=='6'" class="text-semi">消防检查</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="cu-form-group">
|
<view class="cu-form-group">
|
||||||
|
|
@ -25,35 +25,33 @@
|
||||||
<view class="cu-form-group">
|
<view class="cu-form-group">
|
||||||
<text class="title">隐患级别</text>
|
<text class="title">隐患级别</text>
|
||||||
<text class="text-semi">{{ form.HIDDENLEVELNAME }}</text>
|
<text class="text-semi">{{ form.HIDDENLEVELNAME }}</text>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<view class="cu-form-group">
|
<view class="cu-form-group">
|
||||||
<text class="title">隐患类型</text>
|
<text class="title">隐患类型</text>
|
||||||
<text class="text-semi">{{form.HIDDENTYPE_NAME}}</text>
|
<text class="text-semi">{{form.HIDDENTYPENAME}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="cu-form-group">
|
<view class="cu-form-group">
|
||||||
<text class="title">整改类型</text>
|
<text class="title">整改类型</text>
|
||||||
<text v-if="form.RECTIFICATIONTYPE=='1'" class="text-semi">立即整改</text>
|
<text v-if="form.RECTIFICATIONTYPE=='1'" class="text-semi">立即整改</text>
|
||||||
<text v-else-if="form.RECTIFICATIONTYPE=='2'" class="text-semi">限期整改</text>
|
<text v-else-if="form.RECTIFICATIONTYPE=='2'" class="text-semi">限期整改</text>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view v-if="form.RECTIFICATIONTYPE=='2'"class="cu-form-group">-->
|
<view v-if="form.RECTIFICATIONTYPE=='2'"class="cu-form-group">
|
||||||
<!-- <text class="title">整改期限</text>-->
|
<text class="title">整改期限</text>
|
||||||
<!-- <text class="text-semi">{{form.RECTIFICATIONDEADLINE}}</text>-->
|
<text class="text-semi">{{form.RECTIFICATIONDEADLINE}}</text>
|
||||||
<!-- </view>-->
|
</view>
|
||||||
<view class="cu-form-group">
|
<view class="cu-form-group">
|
||||||
<text class="title">隐患照片</text>
|
<text class="title">隐患照片</text>
|
||||||
<view class="de-sub-content">
|
<view class="de-sub-content">
|
||||||
<scroll-view scroll-x class="bg-white nav" scroll-with-animation>
|
<scroll-view scroll-x class="bg-white nav" scroll-with-animation>
|
||||||
<view class="cu-item" v-for="(item,index) in files" v-bind:key="index">
|
<view class="cu-item" v-for="(item,index) in files" v-bind:key="index">
|
||||||
<view class="imgs" style="width: 80upx;height: 80upx;">
|
<view class="imgs" style="width: 80upx;height: 80upx;">
|
||||||
<image :src="baseImgPath+item.FILEPATH" :data-index="index"
|
<image :src="baseImgPath+'/'+item.FILEPATH" :data-index="index"
|
||||||
@click="ViewShowImage" mode=""></image>
|
@click="ViewShowImage" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="cu-form-group" >-->
|
|
||||||
<view class="cu-form-group" v-if="hiddenVideo.length>0">
|
<view class="cu-form-group" v-if="hiddenVideo.length>0">
|
||||||
<text class="title">隐患视频</text>
|
<text class="title">隐患视频</text>
|
||||||
<view class="de-sub-content" style="background-color: #000;width: 120upx;">
|
<view class="de-sub-content" style="background-color: #000;width: 120upx;">
|
||||||
|
|
@ -70,26 +68,26 @@
|
||||||
<text class="title">发现时间</text>
|
<text class="title">发现时间</text>
|
||||||
<text class="text-semi">{{form.CREATTIME}}</text>
|
<text class="text-semi">{{form.CREATTIME}}</text>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="cu-form-group">-->
|
<view class="cu-form-group">
|
||||||
<!-- <text class="title">是否相关方</text>-->
|
<text class="title">是否相关方</text>
|
||||||
<!-- <text class="text-semi">{{form.ISRELEVANT =="1"?"是":"否"}}</text>-->
|
<text class="text-semi">{{form.ISRELEVANT =="1"?"是":"否"}}</text>
|
||||||
<!-- </view>-->
|
</view>
|
||||||
<!-- <view class="cu-form-group">-->
|
<view class="cu-form-group">
|
||||||
<!-- <text class="title">隐患上报位置</text>-->
|
<text class="title">隐患上报位置</text>
|
||||||
<!-- <text class="text-semi">-->
|
<text class="text-semi">
|
||||||
<!-- 经度:{{form.LATITUDE&&form.LATITUDE}}-->
|
经度:{{form.LATITUDE&&form.LATITUDE}}
|
||||||
<!-- 纬度:{{form.LATITUDE&&form.LONGITUDE}}-->
|
纬度:{{form.LATITUDE&&form.LONGITUDE}}
|
||||||
<!-- </text>-->
|
</text>
|
||||||
<!-- </view>-->
|
</view>
|
||||||
<!-- <view class="cu-form-group">-->
|
<view class="cu-form-group">
|
||||||
<!-- <text class="title">隐患位置描述</text>-->
|
<text class="title">隐患位置描述</text>
|
||||||
<!-- <text class="text-semi">{{ form.POSITIONDESC }}</text>-->
|
<text class="text-semi">{{ form.POSITIONDESC }}</text>
|
||||||
<!-- </view>-->
|
</view>
|
||||||
|
|
||||||
<!-- <view class="cu-form-group" @click="seeHiddenConfirm=='2'?seeHiddenConfirm='1':seeHiddenConfirm='2'">-->
|
<view class="cu-form-group" @click="seeHiddenConfirm=='2'?seeHiddenConfirm='1':seeHiddenConfirm='2'">
|
||||||
<!-- <text class="title">隐患确认信息 </text>-->
|
<text class="title">隐患确认信息 </text>
|
||||||
<!-- <text class="text-semi"> <a>查看</a></text>-->
|
<text class="text-semi"> <a>查看</a></text>
|
||||||
<!-- </view>-->
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
@ -102,17 +100,11 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="cu-form-group margin-top">
|
<view class="cu-form-group margin-top">
|
||||||
<view class="title">隐患级别</view>
|
<view class="title">隐患级别</view>
|
||||||
<view class="picker-tree-box" >
|
<view class="picker-tree-box">
|
||||||
<view class="uni-flex-item text-right">
|
<view class="uni-flex-item text-right">
|
||||||
<text class="text-semi">{{item.editLevelName}}</text>
|
<text class="text-semi">{{item.editLevelName}}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<tki-tree ref="hiddenLevenTree"
|
|
||||||
:selectParent=false
|
|
||||||
:range="levelList"
|
|
||||||
rangeKey="name"
|
|
||||||
@confirm="hiddenLevenConfirm"
|
|
||||||
@cancel="hiddentreeCancel"></tki-tree>
|
|
||||||
</view>
|
</view>
|
||||||
<view class="cu-form-group margin-top">
|
<view class="cu-form-group margin-top">
|
||||||
<view class="title">整改负责人</view>
|
<view class="title">整改负责人</view>
|
||||||
|
|
@ -290,59 +282,21 @@
|
||||||
</view>
|
</view>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<view class="form" >
|
<view class="form" v-if="HIDDEN_STATUS === '-2' ">
|
||||||
<!-- <view class="form" v-if="HIDDEN_STATUS === '-2' ">-->
|
|
||||||
<view class="wui-form-list" style="padding: 30upx 20upx;">
|
<view class="wui-form-list" style="padding: 30upx 20upx;">
|
||||||
<view class="title1">
|
<view class="title1">
|
||||||
安全环保检查隐患指派整改人
|
安全环保检查隐患指派确认人
|
||||||
</view>
|
</view>
|
||||||
|
<view class="cu-form-group margin-top">
|
||||||
|
<view class="title">隐患确认人</view>
|
||||||
<view class="cu-form-group margin-top">
|
<picker v-if="HIDDEN_STATUS === '-2'" @change="setConUser" :value="form.conUserIndex"
|
||||||
<view class="title">整改负责人部门</view>
|
:range="confirmUserAllList" range-key="NAME">
|
||||||
<!-- <view class="picker-tree-box">-->
|
<view class="picker">
|
||||||
<!-- <view class="uni-flex-item text-right">-->
|
{{form.conUserName?form.conUserName:'请选择'}}
|
||||||
<!-- <text class="text-semi">{{ form.RECTIFICATIONDEPTNAME }}</text>-->
|
</view>
|
||||||
<!-- </view>-->
|
|
||||||
<!-- </view>-->
|
|
||||||
<view class="picker-tree-box">
|
|
||||||
<view class="picker-tree" @tap="showZgTree('tkiTree1')">
|
|
||||||
{{ form.RECTIFICATIONDEPTNAME || '请选择' }}
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<tki-tree ref="tkiTree1" :selectParent=true :range="treeNode" rangeKey="name"
|
|
||||||
@confirm="zgtreeConfirm($event,'principalList')"
|
|
||||||
@cancel="zgtreeCancel"></tki-tree>
|
|
||||||
</view>
|
|
||||||
<view class="cu-form-group">
|
|
||||||
<view class="title">整改负责人:</view>
|
|
||||||
<!-- <view class="picker-tree-box">-->
|
|
||||||
<!-- <view class="uni-flex-item text-right">-->
|
|
||||||
<!-- <text class="text-semi">{{ form.RECTIFICATIONORNAME }}</text>-->
|
|
||||||
<!-- </view>-->
|
|
||||||
<!-- </view>-->
|
|
||||||
<picker @change="principalChange" :value="form.PRINCIPAL_INDEX"
|
|
||||||
:range="principalList" range-key="NAME">
|
|
||||||
<view class="picker">
|
|
||||||
{{ form.RECTIFICATIONORNAME || '请选择' }}
|
|
||||||
</view>
|
|
||||||
</picker>
|
</picker>
|
||||||
</view>
|
<text v-else class="text-semi">{{form.conUserName}}</text>
|
||||||
<view class="cu-form-group margin-top">
|
</view>
|
||||||
<view class="title">整改期限</view>
|
|
||||||
<picker mode="date" :value="form.RECTIFICATIONDEADLINE" :start="rectifyPlanCompletionStartTime"
|
|
||||||
@change="changeDate">
|
|
||||||
<view class="picker">
|
|
||||||
{{ form.RECTIFICATIONDEADLINE ? form.RECTIFICATIONDEADLINE : '请选择' }}
|
|
||||||
</view>
|
|
||||||
</picker>
|
|
||||||
<!-- <view class="picker-tree-box">-->
|
|
||||||
<!-- <view class="uni-flex-item text-right">-->
|
|
||||||
<!-- <text class="text-semi">{{ form.RECTIFICATIONDEADLINE }}</text>-->
|
|
||||||
<!-- </view>-->
|
|
||||||
<!-- </view>-->
|
|
||||||
</view>
|
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="cu-bar btn-group" style="margin-top: 30upx;">
|
<view class="cu-bar btn-group" style="margin-top: 30upx;">
|
||||||
|
|
@ -391,42 +345,39 @@
|
||||||
baseImgPath: baseImgPath,
|
baseImgPath: baseImgPath,
|
||||||
isUps: false,
|
isUps: false,
|
||||||
noClick: true,
|
noClick: true,
|
||||||
levelList: [],
|
|
||||||
treeNode: [],//部门下拉数据
|
treeNode: [],//部门下拉数据
|
||||||
INSPECTION_ID: '', // 检查ID
|
INSPECTION_ID: '', // 检查ID
|
||||||
HIDDEN_ID: '', // 检查ID
|
HIDDEN_ID: '', // 检查ID
|
||||||
HIDDEN_STATUS: '', // 检查ID
|
HIDDEN_STATUS: '', // 检查ID
|
||||||
principalList: [],
|
|
||||||
form: {
|
form: {
|
||||||
RECTIFICATIONORNAME:'',
|
|
||||||
HIDDENDESCR: '', // 隐患描述
|
HIDDENDESCR: '', // 隐患描述
|
||||||
CREATORNAME: '', // 隐患责任人
|
CREATORNAME: '', // 隐患责任人
|
||||||
HIDDENLEVELNAME: '', // 隐患级别
|
HIDDENLEVELNAME: '', // 隐患级别
|
||||||
DISCOVERYTIME: '', // 隐患发现时间
|
DISCOVERYTIME: '', // 隐患发现时间
|
||||||
hregionName: '', // 隐患部位
|
hregionName: '', // 隐患部位
|
||||||
HIDDENPART: '', // 隐患部位
|
HIDDENPART: '', // 隐患部位
|
||||||
HIDDENTYPE_NAME: '', // 隐患类型1
|
HIDDENTYPENAME: '', // 隐患类型1
|
||||||
HIDDENTYPENAME2: '', // 隐患类型2
|
HIDDENTYPENAME2: '', // 隐患类型2
|
||||||
LONGITUDE: '', // 隐患坐标经度
|
LONGITUDE: '', // 隐患坐标经度
|
||||||
LATITUDE: '', // 隐患坐标纬度
|
LATITUDE: '', // 隐患坐标纬度
|
||||||
hiddenImgs: [], // 隐患图片
|
hiddenImgs: [], // 隐患图片
|
||||||
hiddenVideos: [], // 隐患视频
|
hiddenVideos: [], // 隐患视频
|
||||||
PRINCIPAL_INDEX: '',
|
|
||||||
RECTIFICATIONTYPE: '2', // 隐患处置
|
RECTIFICATIONTYPE: '2', // 隐患处置
|
||||||
conUserIndex: '',
|
conUserIndex: '',
|
||||||
CONFIRM_USER: '', // 隐患确认人
|
CONFIRM_USER: '', // 隐患确认人
|
||||||
conUserName: '',
|
conUserName: '',
|
||||||
HIDDEN_ID: '',
|
HIDDEN_ID: '',
|
||||||
POSITIONDESC: '',//隐患位置描述
|
POSITIONDESC: '',
|
||||||
},// 数据
|
},// 数据
|
||||||
files: [],
|
files: [],
|
||||||
hiddenVideo: [],
|
hiddenVideo: [],
|
||||||
|
confirmUserAllList: [], // 隐患确认人下拉数据
|
||||||
videoSrc: '',
|
videoSrc: '',
|
||||||
todayDate: '',
|
todayDate: '',
|
||||||
modalShow: false,
|
modalShow: false,
|
||||||
seeHiddenConfirm: '2',
|
seeHiddenConfirm: '2',
|
||||||
hiddenExamineList:[],
|
hiddenExamineList:[]
|
||||||
rectifyPlanCompletionStartTime: '',
|
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -439,82 +390,14 @@
|
||||||
this.HIDDEN_ID = event.HIDDEN_ID;
|
this.HIDDEN_ID = event.HIDDEN_ID;
|
||||||
this.HIDDEN_STATUS = event.HIDDEN_STATUS;
|
this.HIDDEN_STATUS = event.HIDDEN_STATUS;
|
||||||
this.getData();
|
this.getData();
|
||||||
|
|
||||||
// 初始化现场作业负责人
|
// 初始化现场作业负责人
|
||||||
this.getDept()
|
this.getDept()
|
||||||
|
this.getDict()
|
||||||
loginSession();
|
loginSession();
|
||||||
this.rectifyPlanCompletionStartTime = formatDate(tomorrow, 'yyyy-MM-dd');
|
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
changeDate(e) {
|
|
||||||
this.form.RECTIFICATIONDEADLINE = e.detail.value
|
|
||||||
this.$forceUpdate();//强制刷新
|
|
||||||
},
|
|
||||||
showZgTree(ref) {
|
|
||||||
this.$refs[ref]._show();
|
|
||||||
},
|
|
||||||
principalChange(e) {
|
|
||||||
this.$set(this.form, 'RECTIFICATIONOR', this.principalList[e.detail.value].USER_ID)
|
|
||||||
this.$set(this.form, 'RECTIFICATIONORNAME', this.principalList[e.detail.value].NAME)
|
|
||||||
},
|
|
||||||
zgtreeConfirm(e, list) {
|
|
||||||
if (list === "principalList") {
|
|
||||||
this.$set(this.form, 'RECTIFICATIONDEPT', e[0].id)
|
|
||||||
this.$set(this.form, 'RECTIFICATIONDEPTNAME', e[0].name)
|
|
||||||
this.$set(this.form, 'RECTIFICATIONORNAME', '')
|
|
||||||
}
|
|
||||||
this.getUserList(list, e[0].id);
|
|
||||||
},
|
|
||||||
zgtreeCancel(e) {
|
|
||||||
this.isUps = false;
|
|
||||||
},
|
|
||||||
hiddenLevenConfirm(e) {
|
|
||||||
this.isUps = false;
|
|
||||||
this.pd.HIDDENLEVEL = e[0].id;
|
|
||||||
this.pd.HIDDENLEVELNAME = e[0].name;
|
|
||||||
|
|
||||||
if (e[0].id == 'hiddenLevel1001') {
|
|
||||||
this.showStatus = false
|
|
||||||
} else {
|
|
||||||
this.showStatus = true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
// 取消回调事件
|
|
||||||
hiddentreeCancel(e) {
|
|
||||||
this.isUps = false;
|
|
||||||
},
|
|
||||||
showHiddenLevenTreeTree() {
|
|
||||||
var _this = this;
|
|
||||||
uni.request({
|
|
||||||
method: 'POST',
|
|
||||||
dataType: 'json',
|
|
||||||
header: {
|
|
||||||
'Content-type': 'application/x-www-form-urlencoded'
|
|
||||||
},
|
|
||||||
url: basePath + '/dictionaries/listSelectTreeByTkiTree?tm=' + new Date().getTime(),
|
|
||||||
data: {DICTIONARIES_ID: '5e7cf8620ba54ad89719d0be62133c7a'},
|
|
||||||
success: function (res) {
|
|
||||||
// _this.levelList = JSON.parse(data.zTreeNodes) res.data.zTreeNodes;
|
|
||||||
var jons = res.data.zTreeNodes;
|
|
||||||
// var json2 = jons.replace('nodes', 'children');
|
|
||||||
// console.info(json2)
|
|
||||||
var data = JSON.parse(jons);
|
|
||||||
for (let i = 0; i < data.length; i++) {
|
|
||||||
for (let j = 0; j < data[i].children.length; j++) {
|
|
||||||
if (data[i].children[j].id == 'jdyh001') {
|
|
||||||
data[i].children.splice(j, 1)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (data[i].id == 'hiddenLevel0002') {
|
|
||||||
data.splice(i, 1)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
_this.levelList = data
|
|
||||||
}
|
|
||||||
});
|
|
||||||
this.isUps = true
|
|
||||||
_this.$refs.hiddenLevenTree._show();
|
|
||||||
},
|
|
||||||
getData() {
|
getData() {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
|
|
@ -533,9 +416,7 @@
|
||||||
if ("success" == res.data.result) {
|
if ("success" == res.data.result) {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
_this.form = Object.assign(this.form, res.data.pd) //参数map
|
_this.form = Object.assign(this.form, res.data.pd) //参数map
|
||||||
console.info( _this.form,'打印数据')
|
console.info( _this.form.conUserName)
|
||||||
console.log("隐患位置描述:", _this.form.POSITIONDESC);
|
|
||||||
console.log("图片:", res.data.hImgs);
|
|
||||||
_this.files = res.data.hImgs;
|
_this.files = res.data.hImgs;
|
||||||
_this.hiddenVideo = res.data.hiddenVideo
|
_this.hiddenVideo = res.data.hiddenVideo
|
||||||
_this.hiddenExamineList = res.data.hiddenExa
|
_this.hiddenExamineList = res.data.hiddenExa
|
||||||
|
|
@ -551,7 +432,7 @@
|
||||||
ViewShowImage(e) {
|
ViewShowImage(e) {
|
||||||
let files = [];
|
let files = [];
|
||||||
for (var i = 0; i < this.files.length; i++) {
|
for (var i = 0; i < this.files.length; i++) {
|
||||||
files.push(baseImgPath + this.files[i].FILEPATH)
|
files.push(baseImgPath + '/' + this.files[i].FILEPATH)
|
||||||
}
|
}
|
||||||
uni.previewImage({
|
uni.previewImage({
|
||||||
urls: files,
|
urls: files,
|
||||||
|
|
@ -562,109 +443,58 @@
|
||||||
this.videoSrc = e.currentTarget.dataset.src
|
this.videoSrc = e.currentTarget.dataset.src
|
||||||
this.modalShow = true
|
this.modalShow = true
|
||||||
},
|
},
|
||||||
submit() {
|
setConUser(e) {
|
||||||
var _this = this;
|
this.form.conUserIndex = e.detail.value;
|
||||||
// 在发送请求之前进行非空校验
|
this.form.CONFIRM_USER = this.confirmUserAllList[e.detail.value].USER_ID;
|
||||||
if (!_this.form.RECTIFICATIONDEPT) {
|
this.form.conUserName = this.confirmUserAllList[e.detail.value].NAME;
|
||||||
uni.showToast({
|
this.$forceUpdate();//强制刷新
|
||||||
icon: 'none',
|
},
|
||||||
title: '整改负责人部门不能为空',
|
submit() {
|
||||||
duration: 2000
|
var _this = this;
|
||||||
});
|
let required = true
|
||||||
return;
|
uni.showLoading({
|
||||||
}
|
title: '数据保存中'
|
||||||
if (!_this.form.RECTIFICATIONOR) {
|
})
|
||||||
uni.showToast({
|
if(_this.form.CONFIRM_USER == ""){
|
||||||
icon: 'none',
|
uni.showToast({
|
||||||
title: '整改负责人不能为空',
|
icon: 'none',
|
||||||
duration: 2000
|
title: '请选择确认人',
|
||||||
});
|
duration: 1500
|
||||||
return;
|
});
|
||||||
}
|
required = false
|
||||||
if (!_this.form.RECTIFICATIONDEADLINE) {
|
|
||||||
uni.showToast({
|
|
||||||
icon: 'none',
|
|
||||||
title: '整改期限不能为空',
|
|
||||||
duration: 2000
|
|
||||||
});
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
uni.showLoading({
|
|
||||||
title: '数据保存中'
|
|
||||||
});
|
|
||||||
uni.request({
|
|
||||||
url: basePath + "/app/hidden/confirm",
|
|
||||||
method: 'POST',
|
|
||||||
dataType: 'json',
|
|
||||||
header: {
|
|
||||||
'Content-type': 'application/x-www-form-urlencoded'
|
|
||||||
},
|
|
||||||
data: {
|
|
||||||
..._this.form,
|
|
||||||
CORPINFO_ID: corpinfoId,
|
|
||||||
USER_ID: loginUser.USER_ID,
|
|
||||||
USERNAME: loginUser.NAME,
|
|
||||||
HIDDEN_ID: _this.form.HIDDEN_ID,
|
|
||||||
HIDDENLEVEL: _this.form.HIDDENLEVEL,
|
|
||||||
RECTIFICATIONDEPT: _this.form.RECTIFICATIONDEPT,
|
|
||||||
RECTIFICATIONDEADLINE: _this.form.RECTIFICATIONDEADLINE,
|
|
||||||
RECTIFICATIONOR: _this.form.RECTIFICATIONOR,
|
|
||||||
OPERATOR: loginUser.USER_ID,
|
|
||||||
NAME: loginUser.NAME,
|
|
||||||
HIDDEN_STATUS: this.HIDDEN_STATUS,
|
|
||||||
INSPECTION_ID: this.INSPECTION_ID,
|
|
||||||
HIDDENDESCR: this.form.HIDDENDESCR
|
|
||||||
},
|
|
||||||
success: (res) => {
|
|
||||||
if ("success" == res.data.result) {
|
|
||||||
uni.hideLoading();
|
|
||||||
_this.goback()
|
|
||||||
} else {
|
|
||||||
uni.showToast({
|
|
||||||
title: res.data.msaesge,
|
|
||||||
duration: 2000
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
},
|
if (!required) {
|
||||||
fail: (err) => {
|
return
|
||||||
uni.hideLoading();
|
}
|
||||||
uni.showModal({
|
uni.request({
|
||||||
content: err.errMsg,
|
url: basePath + '/app/hidden/assign',
|
||||||
showCancel: false
|
method: 'POST',
|
||||||
|
dataType: 'json',
|
||||||
|
header: {
|
||||||
|
'Content-type': 'application/x-www-form-urlencoded'
|
||||||
|
},
|
||||||
|
data: {
|
||||||
|
..._this.form,
|
||||||
|
OPERATOR: loginUser.USER_ID,
|
||||||
|
NAME: loginUser.NAME,
|
||||||
|
CORPINFO_ID: corpinfoId,
|
||||||
|
HIDDEN_STATUS: this.HIDDEN_STATUS,
|
||||||
|
INSPECTION_ID: this.INSPECTION_ID,
|
||||||
|
HIDDENDESCR: this.form.HIDDENDESCR
|
||||||
|
},
|
||||||
|
success: (res) => {
|
||||||
|
if ("success" == res.data.result) {
|
||||||
|
uni.hideLoading();
|
||||||
|
_this.goback()
|
||||||
|
} else {
|
||||||
|
uni.showToast({
|
||||||
|
title: res.data.msaesge,
|
||||||
|
duration: 2000
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
},
|
||||||
});
|
|
||||||
|
|
||||||
// // 提交请求
|
|
||||||
// uni.request({
|
|
||||||
// url: basePath + '/app/hidden/assign',
|
|
||||||
// method: 'POST',
|
|
||||||
// dataType: 'json',
|
|
||||||
// header: {
|
|
||||||
// 'Content-type': 'application/x-www-form-urlencoded'
|
|
||||||
// },
|
|
||||||
// data: {
|
|
||||||
// ..._this.form,
|
|
||||||
// OPERATOR: loginUser.USER_ID,
|
|
||||||
// NAME: loginUser.NAME,
|
|
||||||
// CORPINFO_ID: corpinfoId,
|
|
||||||
// HIDDEN_STATUS: this.HIDDEN_STATUS,
|
|
||||||
// INSPECTION_ID: this.INSPECTION_ID,
|
|
||||||
// HIDDENDESCR: this.form.HIDDENDESCR
|
|
||||||
// },
|
|
||||||
// success: (res) => {
|
|
||||||
// if ("success" == res.data.result) {
|
|
||||||
// uni.hideLoading();
|
|
||||||
// _this.goback()
|
|
||||||
// } else {
|
|
||||||
// uni.showToast({
|
|
||||||
// title: res.data.msaesge,
|
|
||||||
// duration: 2000
|
|
||||||
// });
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
},
|
|
||||||
|
|
||||||
getDept() {
|
getDept() {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
|
|
@ -721,6 +551,35 @@
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
//获取数据字典数据
|
||||||
|
getDict() {
|
||||||
|
var _this = this;
|
||||||
|
|
||||||
|
uni.request({
|
||||||
|
method: 'POST',
|
||||||
|
dataType: 'json',
|
||||||
|
header: {
|
||||||
|
'Content-type': 'application/x-www-form-urlencoded'
|
||||||
|
},
|
||||||
|
url: basePath + '/app/user/getHiddenConfirm',
|
||||||
|
data: {
|
||||||
|
corpinfoId: corpinfoId,
|
||||||
|
IS_HAZARDCONFIRMER: '1',
|
||||||
|
tm: new Date().getTime()
|
||||||
|
},
|
||||||
|
success: function (res) {
|
||||||
|
if ("success" == res.data.result) {
|
||||||
|
_this.confirmUserAllList = res.data.userList;
|
||||||
|
_this.$forceUpdate();//强制刷新
|
||||||
|
} else {
|
||||||
|
uni.showToast({
|
||||||
|
title: res.data.message,
|
||||||
|
duration: 2000
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
goback() {
|
goback() {
|
||||||
var pages = getCurrentPages(); // 获取当前页面栈
|
var pages = getCurrentPages(); // 获取当前页面栈
|
||||||
|
|
@ -757,6 +616,7 @@
|
||||||
},
|
},
|
||||||
downloadAppendix(DISPOSAL_FILE) {
|
downloadAppendix(DISPOSAL_FILE) {
|
||||||
plus.runtime.openURL(this.baseImgPath + DISPOSAL_FILE, function (res) {
|
plus.runtime.openURL(this.baseImgPath + DISPOSAL_FILE, function (res) {
|
||||||
|
console.log(res);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
@ -766,12 +626,12 @@
|
||||||
<style>
|
<style>
|
||||||
.title1 {
|
.title1 {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
padding-left: 10upx;
|
padding-left: 10 upx;
|
||||||
border-left: 4px solid #0081FF;
|
border-left: 4px solid #0081FF;
|
||||||
}
|
}
|
||||||
|
|
||||||
.imgs {
|
.imgs {
|
||||||
width: 80upx !important;
|
width: 80 upx !important;
|
||||||
height: 80upx !important;
|
height: 80 upx !important;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -176,7 +176,7 @@
|
||||||
<view class="cu-form-group">
|
<view class="cu-form-group">
|
||||||
<view class="grid col-4 grid-square flex-sub">
|
<view class="grid col-4 grid-square flex-sub">
|
||||||
<view class="bg-img" v-for="(item,index) in hiddenForm.hiddenImgs" :key="item.IMGFILES_ID" @tap="ViewImage" data-type="0" :data-url="item.FILEPATH">
|
<view class="bg-img" v-for="(item,index) in hiddenForm.hiddenImgs" :key="item.IMGFILES_ID" @tap="ViewImage" data-type="0" :data-url="item.FILEPATH">
|
||||||
<image :src="baseImgPath + item.FILEPATH" mode="aspectFill"></image>
|
<image :src="baseImgPath+ '/' + item.FILEPATH" mode="aspectFill"></image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -204,10 +204,10 @@
|
||||||
<view class="title">隐患部位</view>
|
<view class="title">隐患部位</view>
|
||||||
<text>{{ hiddenForm.HIDDENPART_NAME?hiddenForm.HIDDENPART_NAME:hiddenForm.HIDDENPART }}</text>
|
<text>{{ hiddenForm.HIDDENPART_NAME?hiddenForm.HIDDENPART_NAME:hiddenForm.HIDDENPART }}</text>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="cu-form-textarea">-->
|
<view class="cu-form-textarea">
|
||||||
<!-- <view class="cu-form-title text-hui">隐患位置描述</view>-->
|
<view class="cu-form-title text-hui">隐患位置描述</view>
|
||||||
<!-- <textarea maxlength="-1" :disabled="true" v-model="hiddenForm.POSITIONDESC" placeholder="请对隐患进行详细描述(必填项)"></textarea>-->
|
<textarea maxlength="-1" :disabled="true" v-model="hiddenForm.POSITIONDESC" placeholder="请对隐患进行详细描述(必填项)"></textarea>
|
||||||
<!-- </view>-->
|
</view>
|
||||||
|
|
||||||
<view class="cu-form-group">
|
<view class="cu-form-group">
|
||||||
<view class="title">隐患级别</view>
|
<view class="title">隐患级别</view>
|
||||||
|
|
@ -223,29 +223,29 @@
|
||||||
<view class="title">隐患类型2</view>
|
<view class="title">隐患类型2</view>
|
||||||
<text>{{ hiddenForm.HIDDENTYPE2_NAME }}</text>
|
<text>{{ hiddenForm.HIDDENTYPE2_NAME }}</text>
|
||||||
</view>-->
|
</view>-->
|
||||||
<!-- <view class="cu-form-group">-->
|
<view class="cu-form-group">
|
||||||
<!-- <text class="title">是否相关方</text>-->
|
<text class="title">是否相关方</text>
|
||||||
|
|
||||||
<!-- <view class="uni-flex-item text-right">-->
|
<view class="uni-flex-item text-right">
|
||||||
<!-- <text v-if="hiddenForm.ISRELEVANT=='1'" class="text-semi">是</text>-->
|
<text v-if="hiddenForm.ISRELEVANT=='1'" class="text-semi">是</text>
|
||||||
<!-- <text v-else-if="hiddenForm.ISRELEVANT=='2'" class="text-semi">否</text>-->
|
<text v-else-if="hiddenForm.ISRELEVANT=='2'" class="text-semi">否</text>
|
||||||
<!-- </view>-->
|
</view>
|
||||||
<!-- </view>-->
|
</view>
|
||||||
<view class="cu-form-group">
|
<view class="cu-form-group">
|
||||||
<view class="title">隐患发现时间</view>
|
<view class="title">隐患发现时间</view>
|
||||||
<text>{{ hiddenForm.CREATTIME }}</text>
|
<text>{{ hiddenForm.DISCOVERYTIME }}</text>
|
||||||
|
</view>
|
||||||
|
<view class="cu-form-group">
|
||||||
|
<view class="title">隐患上报位置:</view>
|
||||||
|
</view>
|
||||||
|
<view class="cu-form-group" v-if="hiddenForm.LONGITUDE && hiddenForm.LONGITUDE != 'undefined'">
|
||||||
|
<view class="sign-title">经度:</view>
|
||||||
|
<view class="wui-sign-cotent">{{hiddenForm.LONGITUDE}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="cu-form-group" v-if="hiddenForm.LATITUDE && hiddenForm.LATITUDE != 'undefined'">
|
||||||
|
<view class="sign-title">纬度:</view>
|
||||||
|
<view class="wui-sign-cotent">{{hiddenForm.LATITUDE}}</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="cu-form-group">-->
|
|
||||||
<!-- <view class="title">隐患上报位置:</view>-->
|
|
||||||
<!-- </view>-->
|
|
||||||
<!-- <view class="cu-form-group" v-if="hiddenForm.LONGITUDE && hiddenForm.LONGITUDE != 'undefined'">-->
|
|
||||||
<!-- <view class="sign-title">经度:</view>-->
|
|
||||||
<!-- <view class="wui-sign-cotent">{{hiddenForm.LONGITUDE}}</view>-->
|
|
||||||
<!-- </view>-->
|
|
||||||
<!-- <view class="cu-form-group" v-if="hiddenForm.LATITUDE && hiddenForm.LATITUDE != 'undefined'">-->
|
|
||||||
<!-- <view class="sign-title">纬度:</view>-->
|
|
||||||
<!-- <view class="wui-sign-cotent">{{hiddenForm.LATITUDE}}</view>-->
|
|
||||||
<!-- </view>-->
|
|
||||||
<view class="cu-form-group">
|
<view class="cu-form-group">
|
||||||
<view class="title">隐患发现人</view>
|
<view class="title">隐患发现人</view>
|
||||||
<text>
|
<text>
|
||||||
|
|
@ -375,7 +375,7 @@ export default {
|
||||||
HIDDENTYPE2_NAME: '',
|
HIDDENTYPE2_NAME: '',
|
||||||
LONGITUDE: '', // 隐患位置经度
|
LONGITUDE: '', // 隐患位置经度
|
||||||
LATITUDE: '', // 隐患位置纬度
|
LATITUDE: '', // 隐患位置纬度
|
||||||
CREATTIME: '', // 隐患发现时间
|
DISCOVERYTIME: '', // 隐患发现时间
|
||||||
HIDDENFINDDEPT: '', // 隐患发现部门(隐患责任人部门)
|
HIDDENFINDDEPT: '', // 隐患发现部门(隐患责任人部门)
|
||||||
HIDDENFINDDEPT_NAME: '',
|
HIDDENFINDDEPT_NAME: '',
|
||||||
CREATOR: '', // 发现人(隐患责任人)
|
CREATOR: '', // 发现人(隐患责任人)
|
||||||
|
|
@ -395,7 +395,7 @@ export default {
|
||||||
/*{name:'HIDDENTYPE2',message:'请选择隐患类型2'},*/
|
/*{name:'HIDDENTYPE2',message:'请选择隐患类型2'},*/
|
||||||
{name:'LONGITUDE',message:'请选择隐患位置'},
|
{name:'LONGITUDE',message:'请选择隐患位置'},
|
||||||
{name:'LATITUDE',message:'请选择隐患位置'},
|
{name:'LATITUDE',message:'请选择隐患位置'},
|
||||||
{name:'CREATTIME',message:'请选择隐患发现时间'},
|
{name:'DISCOVERYTIME',message:'请选择隐患发现时间'},
|
||||||
// {name:'HIDDENFINDDEPT',message:'请选择隐患责任人部门'},
|
// {name:'HIDDENFINDDEPT',message:'请选择隐患责任人部门'},
|
||||||
{name:'CREATOR',message:'请选择隐患责任人'}
|
{name:'CREATOR',message:'请选择隐患责任人'}
|
||||||
],
|
],
|
||||||
|
|
@ -457,6 +457,17 @@ export default {
|
||||||
uni.navigateBack({delta: 1});
|
uni.navigateBack({delta: 1});
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
uploadImg(hiddenList){
|
uploadImg(hiddenList){
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
|
|
@ -882,7 +893,7 @@ export default {
|
||||||
HIDDENTYPE2_NAME: '',
|
HIDDENTYPE2_NAME: '',
|
||||||
LONGITUDE: '', // 隐患位置经度
|
LONGITUDE: '', // 隐患位置经度
|
||||||
LATITUDE: '', // 隐患位置纬度
|
LATITUDE: '', // 隐患位置纬度
|
||||||
CREATTIME: '', // 隐患发现时间
|
DISCOVERYTIME: '', // 隐患发现时间
|
||||||
HIDDENFINDDEPT: '', // 隐患发现部门(隐患责任人部门)
|
HIDDENFINDDEPT: '', // 隐患发现部门(隐患责任人部门)
|
||||||
HIDDENFINDDEPT_NAME: '',
|
HIDDENFINDDEPT_NAME: '',
|
||||||
CREATOR: '', // 发现人(隐患责任人)
|
CREATOR: '', // 发现人(隐患责任人)
|
||||||
|
|
|
||||||
|
|
@ -79,7 +79,7 @@
|
||||||
{ ID: '', NAME: '请选择' },
|
{ ID: '', NAME: '请选择' },
|
||||||
{ ID: '1', NAME: '待整改' },
|
{ ID: '1', NAME: '待整改' },
|
||||||
{ ID: '2', NAME: '待验收' },
|
{ ID: '2', NAME: '待验收' },
|
||||||
{ ID: '3', NAME: '已整改' },
|
{ ID: '3', NAME: '已复查' },
|
||||||
{ ID: '4', NAME: '已验收' },
|
{ ID: '4', NAME: '已验收' },
|
||||||
{ ID: '5', NAME: '忽略隐患' },
|
{ ID: '5', NAME: '忽略隐患' },
|
||||||
{ ID: '6', NAME: '重大隐患' },
|
{ ID: '6', NAME: '重大隐患' },
|
||||||
|
|
@ -94,7 +94,7 @@
|
||||||
{ ID: '16', NAME: '确认打回' },
|
{ ID: '16', NAME: '确认打回' },
|
||||||
{ ID: '100', NAME: '安全环保检查暂存的隐患' },
|
{ ID: '100', NAME: '安全环保检查暂存的隐患' },
|
||||||
{ ID: '100', NAME: '检查已归档,待指派' },
|
{ ID: '100', NAME: '检查已归档,待指派' },
|
||||||
{ ID: '101', NAME: '待指派整改人' },
|
{ ID: '101', NAME: '待指派确认人' },
|
||||||
{ ID: '-1', NAME: '已过期' },
|
{ ID: '-1', NAME: '已过期' },
|
||||||
{ ID: '-2', NAME: '待确认' }
|
{ ID: '-2', NAME: '待确认' }
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
<view class="cu-bar search bg-white">
|
<view class="cu-bar search bg-white">
|
||||||
<view class="search-form radius">
|
<view class="search-form radius">
|
||||||
<text class="cuIcon-search"></text>
|
<text class="cuIcon-search"></text>
|
||||||
<input @input="InputBlur" placeholder="请输入被检查单位部门关键字"
|
<input @input="InputBlur" placeholder="请输入关键字"
|
||||||
confirm-type="search" />
|
confirm-type="search" />
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
|
||||||
|
|
@ -125,6 +125,7 @@
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
<<<<<<<< HEAD:pages/application/safety-environmental-inspection/home.vue
|
||||||
getData(){
|
getData(){
|
||||||
var _this = this;
|
var _this = this;
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
|
|
@ -156,6 +157,35 @@
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
========
|
||||||
|
// getData(){
|
||||||
|
// var _this = this;
|
||||||
|
// uni.showLoading({
|
||||||
|
// title:"加载中..."
|
||||||
|
// });//加载中动画
|
||||||
|
// uni.request({
|
||||||
|
// url: basePath +'/app/breakground/countCheck',
|
||||||
|
// method: 'POST',
|
||||||
|
// dataType: 'json',
|
||||||
|
// header: {
|
||||||
|
// 'Content-type':'application/x-www-form-urlencoded'
|
||||||
|
// },
|
||||||
|
// data: {
|
||||||
|
// tm:new Date().getTime(),
|
||||||
|
// CORPINFO_ID:loginUser.CORPINFO_ID,
|
||||||
|
// USER_ID:loginUser.USER_ID,
|
||||||
|
// },
|
||||||
|
// success: (res) => {
|
||||||
|
// uni.hideLoading();//结束加载中动画
|
||||||
|
// if ("success" == res.data.result) {
|
||||||
|
// _this.count = res.data.count;
|
||||||
|
// _this.$forceUpdate()
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// }
|
||||||
|
// })
|
||||||
|
// },
|
||||||
|
>>>>>>>> origin/master:pages/application/break-ground/home.vue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -125,7 +125,7 @@
|
||||||
<view class="title">检查人签字:</view>
|
<view class="title">检查人签字:</view>
|
||||||
<view>
|
<view>
|
||||||
<view>
|
<view>
|
||||||
<image :src="baseImgPath + item.INSPECTION_USER_SIGN_IMG" style="width: 180upx;height: 100upx"></image>
|
<image :src="baseImgPath+ '/' + item.INSPECTION_USER_SIGN_IMG" style="width: 180upx;height: 100upx"></image>
|
||||||
</view>
|
</view>
|
||||||
<view style="text-align: center">{{item.INSPECTION_USER_SIGN_TIME}}</view>
|
<view style="text-align: center">{{item.INSPECTION_USER_SIGN_TIME}}</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -220,10 +220,10 @@
|
||||||
<text>{{ hiddenForm.HIDDENPART_NAME?hiddenForm.HIDDENPART_NAME:hiddenForm.HIDDENPART }}</text>
|
<text>{{ hiddenForm.HIDDENPART_NAME?hiddenForm.HIDDENPART_NAME:hiddenForm.HIDDENPART }}</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- <view class="cu-form-group">-->
|
<view class="cu-form-group">
|
||||||
<!-- <view class="title">隐患位置描述</view>-->
|
<view class="title">隐患位置描述</view>
|
||||||
<!-- <text>{{ hiddenForm.POSITIONDESC }}</text>-->
|
<text>{{ hiddenForm.POSITIONDESC }}</text>
|
||||||
<!-- </view>-->
|
</view>
|
||||||
|
|
||||||
<view class="cu-form-group">
|
<view class="cu-form-group">
|
||||||
<view class="title">隐患级别</view>
|
<view class="title">隐患级别</view>
|
||||||
|
|
@ -235,10 +235,10 @@
|
||||||
<text>{{ hiddenForm.HIDDENTYPE_NAME }}</text>
|
<text>{{ hiddenForm.HIDDENTYPE_NAME }}</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- <view class="cu-form-group">-->
|
<view class="cu-form-group">
|
||||||
<!-- <view class="title">是否相关方</view>-->
|
<view class="title">是否相关方</view>
|
||||||
<!-- <text>{{ hiddenForm.ISRELEVANT == '1'?'是':'否' }}</text>-->
|
<text>{{ hiddenForm.ISRELEVANT == '1'?'是':'否' }}</text>
|
||||||
<!-- </view>-->
|
</view>
|
||||||
|
|
||||||
|
|
||||||
<!--<view class="cu-form-group">
|
<!--<view class="cu-form-group">
|
||||||
|
|
@ -247,19 +247,19 @@
|
||||||
</view>-->
|
</view>-->
|
||||||
<view class="cu-form-group">
|
<view class="cu-form-group">
|
||||||
<view class="title">隐患发现时间</view>
|
<view class="title">隐患发现时间</view>
|
||||||
<text>{{ hiddenForm.CREATTIME }}</text>
|
<text>{{ hiddenForm.DISCOVERYTIME }}</text>
|
||||||
|
</view>
|
||||||
|
<view class="cu-form-group">
|
||||||
|
<view class="title">隐患上报位置:</view>
|
||||||
|
</view>
|
||||||
|
<view class="cu-form-group" v-if="hiddenForm.LONGITUDE && hiddenForm.LONGITUDE != 'undefined'">
|
||||||
|
<view class="sign-title">经度:</view>
|
||||||
|
<view class="wui-sign-cotent">{{hiddenForm.LONGITUDE}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="cu-form-group" v-if="hiddenForm.LATITUDE && hiddenForm.LATITUDE != 'undefined'">
|
||||||
|
<view class="sign-title">纬度:</view>
|
||||||
|
<view class="wui-sign-cotent">{{hiddenForm.LATITUDE}}</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="cu-form-group">-->
|
|
||||||
<!-- <view class="title">隐患上报位置:</view>-->
|
|
||||||
<!-- </view>-->
|
|
||||||
<!-- <view class="cu-form-group" v-if="hiddenForm.LONGITUDE && hiddenForm.LONGITUDE != 'undefined'">-->
|
|
||||||
<!-- <view class="sign-title">经度:</view>-->
|
|
||||||
<!-- <view class="wui-sign-cotent">{{hiddenForm.LONGITUDE}}</view>-->
|
|
||||||
<!-- </view>-->
|
|
||||||
<!-- <view class="cu-form-group" v-if="hiddenForm.LATITUDE && hiddenForm.LATITUDE != 'undefined'">-->
|
|
||||||
<!-- <view class="sign-title">纬度:</view>-->
|
|
||||||
<!-- <view class="wui-sign-cotent">{{hiddenForm.LATITUDE}}</view>-->
|
|
||||||
<!-- </view>-->
|
|
||||||
<view class="cu-form-group">
|
<view class="cu-form-group">
|
||||||
<view class="title">隐患发现人</view>
|
<view class="title">隐患发现人</view>
|
||||||
<text>
|
<text>
|
||||||
|
|
@ -347,8 +347,7 @@
|
||||||
INSPECTION_DEPARTMENT_NAME: '',
|
INSPECTION_DEPARTMENT_NAME: '',
|
||||||
INSPECTION_USER_ID: '', //检查人员ID
|
INSPECTION_USER_ID: '', //检查人员ID
|
||||||
INSPECTION_USER_INDEX: '',
|
INSPECTION_USER_INDEX: '',
|
||||||
INSPECTION_USER_NAME: '',
|
INSPECTION_USER_NAME: ''
|
||||||
INSPECTION_USER_SIGN_IMG: '',
|
|
||||||
}], // 检查人员
|
}], // 检查人员
|
||||||
inspectorVerifyList: [],
|
inspectorVerifyList: [],
|
||||||
situationList:
|
situationList:
|
||||||
|
|
@ -391,7 +390,7 @@
|
||||||
HIDDENTYPE2_NAME: '',
|
HIDDENTYPE2_NAME: '',
|
||||||
LONGITUDE: '', // 隐患位置经度
|
LONGITUDE: '', // 隐患位置经度
|
||||||
LATITUDE: '', // 隐患位置纬度
|
LATITUDE: '', // 隐患位置纬度
|
||||||
CREATTIME: '', // 隐患发现时间
|
DISCOVERYTIME: '', // 隐患发现时间
|
||||||
HIDDENFINDDEPT: '', // 隐患发现部门(隐患责任人部门)
|
HIDDENFINDDEPT: '', // 隐患发现部门(隐患责任人部门)
|
||||||
HIDDENFINDDEPT_NAME: '',
|
HIDDENFINDDEPT_NAME: '',
|
||||||
CREATOR: '', // 发现人(隐患责任人)
|
CREATOR: '', // 发现人(隐患责任人)
|
||||||
|
|
@ -414,7 +413,7 @@
|
||||||
/*{name:'HIDDENTYPE2',message:'请选择隐患类型2'},*/
|
/*{name:'HIDDENTYPE2',message:'请选择隐患类型2'},*/
|
||||||
{name:'LONGITUDE',message:'请选择隐患位置'},
|
{name:'LONGITUDE',message:'请选择隐患位置'},
|
||||||
{name:'LATITUDE',message:'请选择隐患位置'},
|
{name:'LATITUDE',message:'请选择隐患位置'},
|
||||||
{name:'CREATTIME',message:'请选择隐患发现时间'},
|
{name:'DISCOVERYTIME',message:'请选择隐患发现时间'},
|
||||||
// {name:'HIDDENFINDDEPT',message:'请选择隐患责任人部门'},
|
// {name:'HIDDENFINDDEPT',message:'请选择隐患责任人部门'},
|
||||||
{name:'CREATOR',message:'请选择隐患发现人'}
|
{name:'CREATOR',message:'请选择隐患发现人'}
|
||||||
],
|
],
|
||||||
|
|
@ -468,10 +467,6 @@
|
||||||
if ("success" == res.data.result) {
|
if ("success" == res.data.result) {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
_this.form = res.data.pd; //参数map
|
_this.form = res.data.pd; //参数map
|
||||||
console.log("打印后端响应数据:",res.data.pd)
|
|
||||||
_this.form.inspectorList.forEach((inspector, index) => {
|
|
||||||
console.log(`检查人员${index + 1}签字信息:`, inspector);
|
|
||||||
});
|
|
||||||
for (let i = 0; i < _this.form.inspectorList.length; i++) {
|
for (let i = 0; i < _this.form.inspectorList.length; i++) {
|
||||||
_this.inspectorList.push([])
|
_this.inspectorList.push([])
|
||||||
_this.getUserList('inspectorList', _this.form.inspectorList[i].INSPECTION_DEPARTMENT_ID, i)
|
_this.getUserList('inspectorList', _this.form.inspectorList[i].INSPECTION_DEPARTMENT_ID, i)
|
||||||
|
|
@ -502,6 +497,7 @@
|
||||||
var _this = this;
|
var _this = this;
|
||||||
let i = e.currentTarget.dataset.index
|
let i = e.currentTarget.dataset.index
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
|
title: '秦港-双基双控',
|
||||||
content: '确定要删除这张图片吗?',
|
content: '确定要删除这张图片吗?',
|
||||||
cancelColor: "#000000",
|
cancelColor: "#000000",
|
||||||
cancelText: '取消',
|
cancelText: '取消',
|
||||||
|
|
@ -842,7 +838,7 @@
|
||||||
this.modalShow1 = true
|
this.modalShow1 = true
|
||||||
},
|
},
|
||||||
changeDiscoverDate(e) {
|
changeDiscoverDate(e) {
|
||||||
this.hiddenForm.CREATTIME = e
|
this.hiddenForm.DISCOVERYTIME = e
|
||||||
this.$forceUpdate();//强制刷新
|
this.$forceUpdate();//强制刷新
|
||||||
},
|
},
|
||||||
creatorChange(e) {
|
creatorChange(e) {
|
||||||
|
|
@ -1018,7 +1014,7 @@
|
||||||
HIDDENTYPE2_NAME: '',
|
HIDDENTYPE2_NAME: '',
|
||||||
LONGITUDE: '', // 隐患位置经度
|
LONGITUDE: '', // 隐患位置经度
|
||||||
LATITUDE: '', // 隐患位置纬度
|
LATITUDE: '', // 隐患位置纬度
|
||||||
CREATTIME: '', // 隐患发现时间
|
DISCOVERYTIME: '', // 隐患发现时间
|
||||||
HIDDENFINDDEPT: '', // 隐患发现部门(隐患责任人部门)
|
HIDDENFINDDEPT: '', // 隐患发现部门(隐患责任人部门)
|
||||||
HIDDENFINDDEPT_NAME: '',
|
HIDDENFINDDEPT_NAME: '',
|
||||||
CREATOR: '', // 发现人(隐患责任人)
|
CREATOR: '', // 发现人(隐患责任人)
|
||||||
|
|
|
||||||
|
|
@ -137,6 +137,7 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="form">
|
<view class="form">
|
||||||
<view class="wui-form-list">
|
<view class="wui-form-list">
|
||||||
|
|
||||||
<view class="cu-form-group" v-if="!forbidEdit">
|
<view class="cu-form-group" v-if="!forbidEdit">
|
||||||
<view class="title">核实结果:</view>
|
<view class="title">核实结果:</view>
|
||||||
<radio-group @change="changeRadioGroup($event)">
|
<radio-group @change="changeRadioGroup($event)">
|
||||||
|
|
@ -220,10 +221,10 @@
|
||||||
<view class="title">隐患部位</view>
|
<view class="title">隐患部位</view>
|
||||||
<text>{{ hiddenForm.HIDDENPART_NAME?hiddenForm.HIDDENPART_NAME:hiddenForm.HIDDENPART }}</text>
|
<text>{{ hiddenForm.HIDDENPART_NAME?hiddenForm.HIDDENPART_NAME:hiddenForm.HIDDENPART }}</text>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="cu-form-group">-->
|
<view class="cu-form-group">
|
||||||
<!-- <view class="title">隐患部位描述</view>-->
|
<view class="title">隐患部位描述</view>
|
||||||
<!-- <text>{{ hiddenForm.POSITIONDESC }}</text>-->
|
<text>{{ hiddenForm.POSITIONDESC }}</text>
|
||||||
<!-- </view>-->
|
</view>
|
||||||
|
|
||||||
<view class="cu-form-group">
|
<view class="cu-form-group">
|
||||||
<view class="title">隐患级别</view>
|
<view class="title">隐患级别</view>
|
||||||
|
|
@ -232,27 +233,27 @@
|
||||||
|
|
||||||
<view class="cu-form-group">
|
<view class="cu-form-group">
|
||||||
<view class="title">隐患类型</view>
|
<view class="title">隐患类型</view>
|
||||||
<text>{{ hiddenForm.HIDDENTYPE_NAME || hiddenForm.HIDDENTYPE2_NAME }}</text>
|
<text>{{ hiddenForm.HIDDENTYPE_NAME }}</text>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="cu-form-group">-->
|
<view class="cu-form-group">
|
||||||
<!-- <view class="title">是否相关方</view>-->
|
<view class="title">是否相关方</view>
|
||||||
<!-- <text>{{ hiddenForm.ISRELEVANT == '1'?'是':'否' }}</text>-->
|
<text>{{ hiddenForm.ISRELEVANT == '1'?'是':'否' }}</text>
|
||||||
<!-- </view>-->
|
</view>
|
||||||
<view class="cu-form-group">
|
<view class="cu-form-group">
|
||||||
<view class="title">隐患发现时间</view>
|
<view class="title">隐患发现时间</view>
|
||||||
<text>{{ hiddenForm.CREATTIME }}</text>
|
<text>{{ hiddenForm.DISCOVERYTIME }}</text>
|
||||||
|
</view>
|
||||||
|
<view class="cu-form-group">
|
||||||
|
<view class="title">隐患上报位置:</view>
|
||||||
|
</view>
|
||||||
|
<view class="cu-form-group" v-if="hiddenForm.LONGITUDE && hiddenForm.LONGITUDE != 'undefined'">
|
||||||
|
<view class="sign-title">经度:</view>
|
||||||
|
<view class="wui-sign-cotent">{{hiddenForm.LONGITUDE}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="cu-form-group" v-if="hiddenForm.LATITUDE && hiddenForm.LATITUDE != 'undefined'">
|
||||||
|
<view class="sign-title">纬度:</view>
|
||||||
|
<view class="wui-sign-cotent">{{hiddenForm.LATITUDE}}</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="cu-form-group">-->
|
|
||||||
<!-- <view class="title">隐患上报位置:</view>-->
|
|
||||||
<!-- </view>-->
|
|
||||||
<!-- <view class="cu-form-group" v-if="hiddenForm.LONGITUDE && hiddenForm.LONGITUDE != 'undefined'">-->
|
|
||||||
<!-- <view class="sign-title">经度:</view>-->
|
|
||||||
<!-- <view class="wui-sign-cotent">{{hiddenForm.LONGITUDE}}</view>-->
|
|
||||||
<!-- </view>-->
|
|
||||||
<!-- <view class="cu-form-group" v-if="hiddenForm.LATITUDE && hiddenForm.LATITUDE != 'undefined'">-->
|
|
||||||
<!-- <view class="sign-title">纬度:</view>-->
|
|
||||||
<!-- <view class="wui-sign-cotent">{{hiddenForm.LATITUDE}}</view>-->
|
|
||||||
<!-- </view>-->
|
|
||||||
<view class="cu-form-group">
|
<view class="cu-form-group">
|
||||||
<view class="title">隐患发现人</view>
|
<view class="title">隐患发现人</view>
|
||||||
<text>
|
<text>
|
||||||
|
|
@ -382,7 +383,7 @@
|
||||||
HIDDENTYPE2_NAME: '',
|
HIDDENTYPE2_NAME: '',
|
||||||
LONGITUDE: '', // 隐患位置经度
|
LONGITUDE: '', // 隐患位置经度
|
||||||
LATITUDE: '', // 隐患位置纬度
|
LATITUDE: '', // 隐患位置纬度
|
||||||
CREATTIME: '', // 隐患发现时间
|
DISCOVERYTIME: '', // 隐患发现时间
|
||||||
HIDDENFINDDEPT: '', // 隐患发现部门(隐患责任人部门)
|
HIDDENFINDDEPT: '', // 隐患发现部门(隐患责任人部门)
|
||||||
HIDDENFINDDEPT_NAME: '',
|
HIDDENFINDDEPT_NAME: '',
|
||||||
CREATOR: '', // 发现人(隐患责任人)
|
CREATOR: '', // 发现人(隐患责任人)
|
||||||
|
|
@ -404,7 +405,7 @@
|
||||||
/*{name:'HIDDENTYPE2',message:'请选择隐患类型2'},*/
|
/*{name:'HIDDENTYPE2',message:'请选择隐患类型2'},*/
|
||||||
{name:'LONGITUDE',message:'请选择隐患位置'},
|
{name:'LONGITUDE',message:'请选择隐患位置'},
|
||||||
{name:'LATITUDE',message:'请选择隐患位置'},
|
{name:'LATITUDE',message:'请选择隐患位置'},
|
||||||
{name:'CREATTIME',message:'请选择隐患发现时间'},
|
{name:'DISCOVERYTIME',message:'请选择隐患发现时间'},
|
||||||
// {name:'HIDDENFINDDEPT',message:'请选择隐患责任人部门'},
|
// {name:'HIDDENFINDDEPT',message:'请选择隐患责任人部门'},
|
||||||
{name:'CREATOR',message:'请选择隐患责任人'}
|
{name:'CREATOR',message:'请选择隐患责任人'}
|
||||||
],
|
],
|
||||||
|
|
@ -464,7 +465,6 @@
|
||||||
if ("success" == res.data.result) {
|
if ("success" == res.data.result) {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
_this.form = res.data.pd; //参数map
|
_this.form = res.data.pd; //参数map
|
||||||
_this.form.hiddenForm = res.data.pd.hiddenList[0];
|
|
||||||
for (let i = 0; i < _this.form.inspectorList.length; i++) {
|
for (let i = 0; i < _this.form.inspectorList.length; i++) {
|
||||||
_this.inspectorList.push([])
|
_this.inspectorList.push([])
|
||||||
_this.getUserList('inspectorList', _this.form.inspectorList[i].INSPECTION_DEPARTMENT_ID, i)
|
_this.getUserList('inspectorList', _this.form.inspectorList[i].INSPECTION_DEPARTMENT_ID, i)
|
||||||
|
|
@ -489,7 +489,6 @@
|
||||||
subCanvas (e) {
|
subCanvas (e) {
|
||||||
this.signImgList.splice(0, this.signImgList.length);
|
this.signImgList.splice(0, this.signImgList.length);
|
||||||
this.signImgList.push(e);
|
this.signImgList.push(e);
|
||||||
this.inspectorForm.INSPECTION_USER_SIGN_IMG = e.filePath;
|
|
||||||
this.$set(this.inspectorForm, 'INSPECTION_USER_SIGN_TIME', formatDate(new Date(), 'yyyy-MM-dd hh:mm'))
|
this.$set(this.inspectorForm, 'INSPECTION_USER_SIGN_TIME', formatDate(new Date(), 'yyyy-MM-dd hh:mm'))
|
||||||
this.modalShow = false;
|
this.modalShow = false;
|
||||||
},
|
},
|
||||||
|
|
@ -497,6 +496,7 @@
|
||||||
var _this = this;
|
var _this = this;
|
||||||
let i = e.currentTarget.dataset.index
|
let i = e.currentTarget.dataset.index
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
|
title: '秦港-双基双控',
|
||||||
content: '确定要删除这张图片吗?',
|
content: '确定要删除这张图片吗?',
|
||||||
cancelColor: "#000000",
|
cancelColor: "#000000",
|
||||||
cancelText: '取消',
|
cancelText: '取消',
|
||||||
|
|
@ -571,6 +571,7 @@
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
changeStartDate(e) {
|
changeStartDate(e) {
|
||||||
this.form.INSPECTION_TIME_START = e
|
this.form.INSPECTION_TIME_START = e
|
||||||
this.$forceUpdate();//强制刷新
|
this.$forceUpdate();//强制刷新
|
||||||
|
|
@ -615,19 +616,19 @@
|
||||||
this.hiddenForm.HIDDENPART = e[0].id
|
this.hiddenForm.HIDDENPART = e[0].id
|
||||||
this.hiddenForm.HIDDENPART_NAME = e[0].name
|
this.hiddenForm.HIDDENPART_NAME = e[0].name
|
||||||
}
|
}
|
||||||
if (list === 'hiddenLevelTreeList') {
|
if (list === 'hiddenLevelTreeList') { // 隐患级别
|
||||||
this.hiddenForm.HIDDENLEVEL = e[0].id
|
this.hiddenForm.HIDDENLEVEL = e[0].id
|
||||||
this.hiddenForm.HIDDENLEVEL_NAME = e[0].name
|
this.hiddenForm.HIDDENLEVEL_NAME = e[0].name
|
||||||
}
|
}
|
||||||
if (list === 'hiddenTypeTreeList') {
|
if (list === 'hiddenTypeTreeList') { // 隐患级别
|
||||||
this.hiddenForm.HIDDENTYPE = e[0].id
|
this.hiddenForm.HIDDENTYPE = e[0].id
|
||||||
this.hiddenForm.HIDDENTYPE_NAME = e[0].name
|
this.hiddenForm.HIDDENTYPE_NAME = e[0].name
|
||||||
}
|
}
|
||||||
if (list === 'hiddenType2TreeList') {
|
if (list === 'hiddenType2TreeList') { // 隐患级别
|
||||||
this.hiddenForm.HIDDENTYPE2 = e[0].id
|
this.hiddenForm.HIDDENTYPE2 = e[0].id
|
||||||
this.hiddenForm.HIDDENTYPE2_NAME = e[0].name
|
this.hiddenForm.HIDDENTYPE2_NAME = e[0].name
|
||||||
}
|
}
|
||||||
if (list === 'creatorList') {
|
if (list === 'creatorList') { // 隐患级别
|
||||||
this.hiddenForm.HIDDENFINDDEPT = e[0].id
|
this.hiddenForm.HIDDENFINDDEPT = e[0].id
|
||||||
this.hiddenForm.HIDDENFINDDEPT_NAME = e[0].name
|
this.hiddenForm.HIDDENFINDDEPT_NAME = e[0].name
|
||||||
this.hiddenForm.CREATOR_INDEX = ''
|
this.hiddenForm.CREATOR_INDEX = ''
|
||||||
|
|
@ -725,6 +726,7 @@
|
||||||
},
|
},
|
||||||
ViewImage(e) {
|
ViewImage(e) {
|
||||||
if(e.currentTarget.dataset.type==0) {
|
if(e.currentTarget.dataset.type==0) {
|
||||||
|
console.info(33333)
|
||||||
let files =[];
|
let files =[];
|
||||||
for(var i=0;i<this.hiddenForm.hiddenImgs.length;i++){
|
for(var i=0;i<this.hiddenForm.hiddenImgs.length;i++){
|
||||||
files.push(this.baseImgPath + this.hiddenForm.hiddenImgs[i].FILEPATH)
|
files.push(this.baseImgPath + this.hiddenForm.hiddenImgs[i].FILEPATH)
|
||||||
|
|
@ -754,7 +756,7 @@
|
||||||
this.modalVideoShow = true
|
this.modalVideoShow = true
|
||||||
},
|
},
|
||||||
changeDiscoverDate(e) {
|
changeDiscoverDate(e) {
|
||||||
this.hiddenForm.CREATTIME = e
|
this.hiddenForm.DISCOVERYTIME = e
|
||||||
this.$forceUpdate();//强制刷新
|
this.$forceUpdate();//强制刷新
|
||||||
},
|
},
|
||||||
creatorChange(e) {
|
creatorChange(e) {
|
||||||
|
|
@ -864,6 +866,7 @@
|
||||||
if("success" == res.data.result){
|
if("success" == res.data.result){
|
||||||
var json = res.data.zTreeNodes
|
var json = res.data.zTreeNodes
|
||||||
_this.hiddenRegionTreeList = JSON.parse(json) ;
|
_this.hiddenRegionTreeList = JSON.parse(json) ;
|
||||||
|
console.log('打印!!!:', _this.hiddenRegionTreeList);
|
||||||
}else{
|
}else{
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.data.message,
|
title: res.data.message,
|
||||||
|
|
@ -938,7 +941,7 @@
|
||||||
HIDDENTYPE2_NAME: '',
|
HIDDENTYPE2_NAME: '',
|
||||||
LONGITUDE: '', // 隐患位置经度
|
LONGITUDE: '', // 隐患位置经度
|
||||||
LATITUDE: '', // 隐患位置纬度
|
LATITUDE: '', // 隐患位置纬度
|
||||||
CREATTIME: '', // 隐患发现时间
|
DISCOVERYTIME: '', // 隐患发现时间
|
||||||
HIDDENFINDDEPT: '', // 隐患发现部门(隐患责任人部门)
|
HIDDENFINDDEPT: '', // 隐患发现部门(隐患责任人部门)
|
||||||
HIDDENFINDDEPT_NAME: '',
|
HIDDENFINDDEPT_NAME: '',
|
||||||
CREATOR: '', // 发现人(隐患责任人)
|
CREATOR: '', // 发现人(隐患责任人)
|
||||||
|
|
|
||||||
|
|
@ -478,7 +478,7 @@
|
||||||
},
|
},
|
||||||
DelImg(e) {
|
DelImg(e) {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '温馨提示',
|
title: '双控平台',
|
||||||
content: '确定要删除这张图片吗?',
|
content: '确定要删除这张图片吗?',
|
||||||
cancelColor: "#000000",
|
cancelColor: "#000000",
|
||||||
cancelText: '取消',
|
cancelText: '取消',
|
||||||
|
|
@ -514,7 +514,7 @@
|
||||||
},
|
},
|
||||||
DelImg_fa(e) {
|
DelImg_fa(e) {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '温馨提示',
|
title: '双控平台',
|
||||||
content: '确定要删除这张图片吗?',
|
content: '确定要删除这张图片吗?',
|
||||||
cancelColor: "#000000",
|
cancelColor: "#000000",
|
||||||
cancelText: '取消',
|
cancelText: '取消',
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -5,9 +5,9 @@
|
||||||
<block slot="content">设置密码</block>
|
<block slot="content">设置密码</block>
|
||||||
</cu-custom>
|
</cu-custom>
|
||||||
<view class="register">
|
<view class="register">
|
||||||
<view class="reg-title mb40">
|
<view class="user_main">
|
||||||
<text>修改密码</text>
|
<view >账号:{{USERNAME}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="reg-form">
|
<view class="reg-form">
|
||||||
<view class="reg-input">
|
<view class="reg-input">
|
||||||
<input password @input="oldInpPwd" placeholder="旧密码" name="input"></input>
|
<input password @input="oldInpPwd" placeholder="旧密码" name="input"></input>
|
||||||
|
|
@ -24,7 +24,7 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="reg-title">
|
<view class="reg-title">
|
||||||
<text class="text-gray">需8-20位字符</text>
|
<text class="text-gray">需8-20位字母大小写、数字、字符混合</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="flex flex-direction mt50">
|
<view class="flex flex-direction mt50">
|
||||||
<button :loading="buttonloading" class="cu-btn bg-blue lg round" @click="updateUserPwd()">提交</button>
|
<button :loading="buttonloading" class="cu-btn bg-blue lg round" @click="updateUserPwd()">提交</button>
|
||||||
|
|
@ -44,6 +44,7 @@
|
||||||
nowPwd :'',
|
nowPwd :'',
|
||||||
buttonloading: false,
|
buttonloading: false,
|
||||||
confirmPwd :'',
|
confirmPwd :'',
|
||||||
|
USERNAME: loginUser.USERNAME
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
@ -112,6 +113,15 @@
|
||||||
});
|
});
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
var reg1 = /^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[~!@#$%^&*.])[\da-zA-Z~!@#$%^&*.]{8,}$/
|
||||||
|
if (!reg1.test(_this.nowPwd)) {
|
||||||
|
uni.showToast({
|
||||||
|
icon: 'none',
|
||||||
|
title: '密码必须包含大小写字母、数字、特殊符号',
|
||||||
|
duration: 2000
|
||||||
|
});
|
||||||
|
return
|
||||||
|
}
|
||||||
this.buttonloading = true
|
this.buttonloading = true
|
||||||
uni.request({
|
uni.request({
|
||||||
url: basePath +'/app/user/editUserPwd' ,
|
url: basePath +'/app/user/editUserPwd' ,
|
||||||
|
|
@ -132,16 +142,31 @@
|
||||||
this.buttonloading = false
|
this.buttonloading = false
|
||||||
if (res.data != null) {
|
if (res.data != null) {
|
||||||
var result = res.data.result;
|
var result = res.data.result;
|
||||||
if ("success" == result) {
|
var Code = res.data.code;
|
||||||
uni.showToast({
|
console.log(res.data.code)
|
||||||
title: "密码修改成功",
|
if ("success" === result) {
|
||||||
duration: 1000
|
if("9999" === Code){
|
||||||
});
|
uni.showToast({
|
||||||
uni.navigateTo({
|
icon: 'none',
|
||||||
url: '/pages/login/home',
|
title: "旧密码错误",
|
||||||
});
|
duration: 2000
|
||||||
|
});
|
||||||
|
}else{
|
||||||
|
uni.showToast({
|
||||||
|
title: "密码修改成功",
|
||||||
|
duration: 1500, // 适当延长显示时间
|
||||||
|
success: function() {
|
||||||
|
// 使用 setTimeout 确保提示框完全显示后再跳转
|
||||||
|
setTimeout(function() {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/login/home',
|
||||||
|
});
|
||||||
|
}, 1500); // 延迟时间与 duration 一致或略长
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
} else if ("usererror" == result) {
|
} else if ("usererror" === result) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
title: "密码有误",
|
title: "密码有误",
|
||||||
|
|
@ -179,4 +204,13 @@
|
||||||
page{
|
page{
|
||||||
background-color: #FFFFFF;
|
background-color: #FFFFFF;
|
||||||
}
|
}
|
||||||
|
.user_main{
|
||||||
|
width: 100%;
|
||||||
|
padding:30upx 20upx ;
|
||||||
|
background: #d8e9ff;
|
||||||
|
border-radius: 10upx;
|
||||||
|
box-sizing: border-box;
|
||||||
|
margin-bottom: 40upx;
|
||||||
|
font-size: 30upx;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<view
|
<view style="background: url(../../static/bg-login.png) no-repeat;background-size:100% auto;height:100vh;background-color: #058cf5; position: fixed; width: 100%;">
|
||||||
style="background: url(../../static/bg-login.png) no-repeat;background-size:100% auto;height:100vh;background-color: #058cf5; position: fixed; width: 100%;">
|
|
||||||
<!-- <view class="bottom-img">
|
<!-- <view class="bottom-img">
|
||||||
<image src="../../static/hg-bottom.png" mode=""></image>
|
<image src="../../static/hg-bottom.png" mode=""></image>
|
||||||
</view> -->
|
</view> -->
|
||||||
|
|
@ -11,17 +10,16 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="login-text">
|
<view class="login-text">
|
||||||
<text>欢迎使用,</text>
|
<text>欢迎使用,</text>
|
||||||
<text>交通运输安全生产综合管理平台!</text>
|
<text>秦安安全云平台!</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="login-content">
|
<view class="login-content">
|
||||||
<view class="input-row">
|
<view class="input-row">
|
||||||
<view class="title">
|
<view class="title">
|
||||||
<text class="">登录帐号</text>
|
<text class="">手机号码</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="m-input-view">
|
<view class="m-input-view">
|
||||||
<input v-model="userName" class="m-input" placeholder-style="color: #5caceb;font-size: 34upx;"
|
<input v-model="userName" class="m-input" placeholder-style="color: #5caceb;font-size: 34upx;" placeholder="请输入手机号..." />
|
||||||
placeholder="请输入身份证号..." />
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="input-row mt30">
|
<view class="input-row mt30">
|
||||||
|
|
@ -29,8 +27,8 @@
|
||||||
<text class="">密码</text>
|
<text class="">密码</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="m-input-view">
|
<view class="m-input-view">
|
||||||
<input v-model="userPwd" class="m-input" placeholder-style="color: #5caceb;font-size: 34upx;"
|
<input v-model="userPwd" class="m-input" placeholder-style="color: #5caceb;font-size: 34upx;" password type="text"
|
||||||
password type="text" placeholder="请输入密码..." />
|
placeholder="请输入密码..." />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -38,30 +36,29 @@
|
||||||
<button class="cu-btn bg-login margin-tb-sm lg" @click="$noMultipleClicks(login)">登 录</button>
|
<button class="cu-btn bg-login margin-tb-sm lg" @click="$noMultipleClicks(login)">登 录</button>
|
||||||
</view>
|
</view>
|
||||||
<view class="bar-forget">
|
<view class="bar-forget">
|
||||||
<!-- <navigator class="title" url="/pages/login/forget/forget">
|
<!-- <navigator class="title" url="/pages/login/forget/forget">
|
||||||
忘记密码
|
忘记密码
|
||||||
</navigator> -->
|
</navigator> -->
|
||||||
<navigator class="title" url="/pages/login/register/index">
|
<!-- <view class="title">
|
||||||
从业人员注册
|
注册
|
||||||
</navigator>
|
</view> -->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view
|
<view style="width: 100%;color: #fff;position: absolute;left: 50%;transform: translateX(-50%);bottom: 50upx;display: flex;justify-content: center;align-items: center">
|
||||||
style="width: 100%;color: #fff;position: absolute;left: 50%;transform: translateX(-50%);bottom: 50upx;display: flex;justify-content: center;align-items: center">
|
<radio-group>
|
||||||
<radio-group>
|
<radio :checked="radio === '1'" @click="radioChange"></radio>
|
||||||
<radio :checked="radio === '1'" @click="radioChange"></radio>
|
</radio-group>
|
||||||
</radio-group>
|
<view style="margin-left: 20upx;display: flex">
|
||||||
<view style="margin-left: 20upx;display: flex">
|
<text>我已阅读并同意</text>
|
||||||
<text>我已阅读并同意</text>
|
<navigator style="color: #041d8c" url="/pages/my/agreement/agreement">
|
||||||
<navigator style="color: #041d8c" url="/pages/my/agreement/agreement">
|
《服务协议》
|
||||||
《服务协议》
|
</navigator>
|
||||||
</navigator>
|
<text>和</text>
|
||||||
<text>和</text>
|
<navigator style="color: #041d8c" url="/pages/my/privacy/privacy">
|
||||||
<navigator style="color: #041d8c" url="/pages/my/privacy/privacy">
|
《隐私政策》
|
||||||
《隐私政策》
|
</navigator>
|
||||||
</navigator>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>-->
|
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
@ -79,37 +76,51 @@
|
||||||
setIsRest,
|
setIsRest,
|
||||||
isRest,
|
isRest,
|
||||||
loginUser,
|
loginUser,
|
||||||
setPremission,
|
setPremission,
|
||||||
publicKey
|
publicKey
|
||||||
} from '@/common/tool.js';
|
} from '@/common/tool.js';
|
||||||
import JSEncrypt from '../../static/js/jsencrypt.min'
|
import JSEncrypt from '../../static/js/jsencrypt.min'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
noClick: true,
|
noClick:true,
|
||||||
userName: '',
|
userName : '',
|
||||||
userPwd: '',
|
userPwd: '',
|
||||||
radio: ''
|
push_clientid:'',
|
||||||
|
radio:''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
this.getRemember()
|
this.getRemember()
|
||||||
this.getLoginUser()
|
uni.getPushClientId({
|
||||||
|
success: (res) => {
|
||||||
|
this.push_clientid = res.cid
|
||||||
|
this.getLoginUser()
|
||||||
|
console.log('客户端推送标识:',res.cid)
|
||||||
|
},
|
||||||
|
fail(err) {
|
||||||
|
uni.showToast({
|
||||||
|
icon: 'none',
|
||||||
|
title: "获取用户标识失败,请重新登录",
|
||||||
|
duration: 2000
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
// this.getLoginUser()
|
// this.getLoginUser()
|
||||||
//this.getUrlVersion();
|
//this.getUrlVersion();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getRemember() {
|
getRemember(){
|
||||||
uni.getStorage({
|
uni.getStorage({
|
||||||
key: 'remember',
|
key: 'remember',
|
||||||
success: async (res) => {
|
success: async (res) => {
|
||||||
if (res.data && res.data.username) {
|
if (res.data && res.data.username) {
|
||||||
this.userName = res.data.username
|
this.userName = res.data.username
|
||||||
this.userPwd = res.data.userPwd
|
this.userPwd = res.data.userPwd
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
getLoginUser() {
|
getLoginUser() {
|
||||||
uni.getStorage({
|
uni.getStorage({
|
||||||
key: 'USER',
|
key: 'USER',
|
||||||
|
|
@ -122,24 +133,18 @@
|
||||||
setDeptLevel(res.data.DEPARTMENT_LEVEL);
|
setDeptLevel(res.data.DEPARTMENT_LEVEL);
|
||||||
|
|
||||||
setloginUser(res.data);
|
setloginUser(res.data);
|
||||||
if (loginUser.CORPINFO_ID) {
|
// 查看是否离岗
|
||||||
// 查看是否离岗
|
this.handleLoginCheck(res.data.USER_ID).then(()=>{
|
||||||
this.handleLoginCheck(res.data.USER_ID).then(() => {
|
uni.navigateTo({
|
||||||
uni.navigateTo({
|
url: '/pages/index/index',
|
||||||
url: '/pages/index/index',
|
});
|
||||||
});
|
})
|
||||||
})
|
|
||||||
} else {
|
|
||||||
uni.navigateTo({
|
|
||||||
url: '/pages/index/index',
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleLoginCheck(USER_ID) {
|
handleLoginCheck(USER_ID){
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve,reject)=>{
|
||||||
uni.request({
|
uni.request({
|
||||||
url: basePath + '/app/offduty/isRest',
|
url: basePath + '/app/offduty/isRest',
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|
@ -152,6 +157,7 @@
|
||||||
USER_ID: loginUser.USER_ID,
|
USER_ID: loginUser.USER_ID,
|
||||||
},
|
},
|
||||||
success: (res1) => {
|
success: (res1) => {
|
||||||
|
this.updatePushCid(USER_ID, this.push_clientid)
|
||||||
if ("success" == res1.data.result) {
|
if ("success" == res1.data.result) {
|
||||||
if (res1.data.ISREST != null) {
|
if (res1.data.ISREST != null) {
|
||||||
setIsRest(res1.data.ISREST);
|
setIsRest(res1.data.ISREST);
|
||||||
|
|
@ -159,14 +165,14 @@
|
||||||
setIsRest(res.data.ISREST);
|
setIsRest(res.data.ISREST);
|
||||||
}
|
}
|
||||||
resolve()
|
resolve()
|
||||||
} else if ("usercorperror" == res1.data.result) {
|
}else if ("usercorperror" == res1.data.result) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
title: "您的企业已停用,请联系管理员",
|
title: "您的企业已停用,请联系管理员",
|
||||||
duration: 2000
|
duration: 2000
|
||||||
});
|
});
|
||||||
reject()
|
reject()
|
||||||
} else if ("userUSEerror" == res1.data.result) {
|
}else if ("userUSEerror" == res1.data.result) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
title: "您的企业已到使用期限,请联系管理员",
|
title: "您的企业已到使用期限,请联系管理员",
|
||||||
|
|
@ -199,13 +205,13 @@
|
||||||
this.userPwd = e.detail.value
|
this.userPwd = e.detail.value
|
||||||
},
|
},
|
||||||
login() {
|
login() {
|
||||||
/*if (this.radio !== '1') {
|
if (this.radio !== '1') {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '请先阅读并同意《服务协议》和《隐私政策》',
|
title: '请先阅读并同意《服务协议》和《隐私政策》',
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
})
|
})
|
||||||
return;
|
return;
|
||||||
}*/
|
}
|
||||||
var _this = this;
|
var _this = this;
|
||||||
var userName = _this.userName;
|
var userName = _this.userName;
|
||||||
var userPwd = _this.userPwd;
|
var userPwd = _this.userPwd;
|
||||||
|
|
@ -215,7 +221,7 @@
|
||||||
// var keydataVal = 'zcloudchina' + userName + ',zy,' + userPwd;
|
// var keydataVal = 'zcloudchina' + userName + ',zy,' + userPwd;
|
||||||
|
|
||||||
|
|
||||||
var myreg = /^\d{6}(18|19|20)?\d{2}(0[1-9]|1[0-2])(([0-2][1-9])|10|20|30|31)\d{3}(\d|X|x)$/;
|
var myreg = /^(((13[0-9]{1})|159)+\d{8})$/;
|
||||||
|
|
||||||
if (userName == '') {
|
if (userName == '') {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|
@ -227,7 +233,7 @@
|
||||||
} else if (userName.length != 11 && !myreg.test(userName)) {
|
} else if (userName.length != 11 && !myreg.test(userName)) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
title: '身份证号格式不正确',
|
title: '手机号格式不正确',
|
||||||
duration: 2000
|
duration: 2000
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
|
|
@ -247,7 +253,7 @@
|
||||||
title: '请稍候'
|
title: '请稍候'
|
||||||
})
|
})
|
||||||
uni.request({
|
uni.request({
|
||||||
url: basePath + '/admin/checkPractitioner',
|
url: basePath + '/admin/check',
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
header: {
|
header: {
|
||||||
|
|
@ -265,32 +271,35 @@
|
||||||
title: res.data.msg,
|
title: res.data.msg,
|
||||||
duration: 2000
|
duration: 2000
|
||||||
});
|
});
|
||||||
if ("success" == result) {
|
if ("success" === result) {
|
||||||
setloginUserId(res.data.USER_ID);
|
setloginUserId(res.data.USER_ID);
|
||||||
setCorpinfoId(res.data.CORPINFO_ID);
|
setCorpinfoId(res.data.CORPINFO_ID);
|
||||||
setDeptId(res.data.DEPARTMENT_ID);
|
setDeptId(res.data.DEPARTMENT_ID);
|
||||||
setDeptLevel(res.data.DEPARTMENT_LEVEL);
|
setDeptLevel(res.data.DEPARTMENT_LEVEL);
|
||||||
setIsRest(res.data.ISREST);
|
setIsRest(res.data.ISREST);
|
||||||
setloginUser(res.data);
|
setloginUser(res.data);
|
||||||
uni.setStorage({
|
if(res.data.passwordType === '0'){
|
||||||
key: 'USER',
|
uni.showToast({
|
||||||
data: res.data
|
icon: 'none',
|
||||||
});
|
title: "登录的密码强度为弱,请修改密码!",
|
||||||
const remember = {}
|
duration: 2000 // 显示2秒
|
||||||
remember.username = userName
|
});
|
||||||
remember.userPwd = userPwd
|
|
||||||
uni.setStorage({
|
// 延迟2000ms后再执行页面跳转
|
||||||
key: 'remember',
|
setTimeout(() => {
|
||||||
data: remember
|
uni.navigateTo({
|
||||||
});
|
url: '/pages/login/forget/forget-reset'
|
||||||
uni.hideLoading();
|
});
|
||||||
uni.showToast({
|
}, 2000); // 延迟时间必须大于等于toast的duration
|
||||||
title: "登录成功",
|
return
|
||||||
duration: 1000
|
}
|
||||||
});
|
uni.setStorage({key: 'USER', data: res.data});
|
||||||
uni.redirectTo({
|
const remember = {}
|
||||||
url: '/pages/index/index'
|
remember.username = userName
|
||||||
});
|
remember.userPwd = userPwd
|
||||||
|
uni.setStorage({key: 'remember', data: remember});
|
||||||
|
this.getMenu()
|
||||||
|
this.updatePushCid(res.data.USER_ID, this.push_clientid)
|
||||||
} else if ("usererror" == result) {
|
} else if ("usererror" == result) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
|
|
@ -321,13 +330,13 @@
|
||||||
title: res.data.msg,
|
title: res.data.msg,
|
||||||
duration: 2000
|
duration: 2000
|
||||||
});
|
});
|
||||||
} else if ("maintainDeactivateError" == result) {
|
}else if ("maintainDeactivateError" == result) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
title: "企业处于维护停用阶段,暂时无法登录",
|
title: "企业处于维护停用阶段,暂时无法登录",
|
||||||
duration: 2000
|
duration: 2000
|
||||||
});
|
});
|
||||||
} else if ("exception" == result) {
|
}else if ("exception" == result) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
title: res.data.exception,
|
title: res.data.exception,
|
||||||
|
|
@ -343,10 +352,115 @@
|
||||||
duration: 2000
|
duration: 2000
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
getMenu() {
|
||||||
|
var _this = this;
|
||||||
|
uni.showLoading({
|
||||||
|
title: '请稍候'
|
||||||
|
})
|
||||||
|
uni.request({
|
||||||
|
url: basePath + '/app/main/index',
|
||||||
|
method: 'POST',
|
||||||
|
dataType: 'json',
|
||||||
|
header: {
|
||||||
|
'Content-type': 'application/x-www-form-urlencoded'
|
||||||
|
},
|
||||||
|
data: {
|
||||||
|
USER_ID: loginUser.USER_ID,
|
||||||
|
},
|
||||||
|
success: (res) => {
|
||||||
|
|
||||||
|
if ("success" == res.data.result) {
|
||||||
|
|
||||||
|
var menuList = res.data.menuList
|
||||||
|
var premissionList = new Map()
|
||||||
|
|
||||||
|
menuList.map(item => {
|
||||||
|
if (item.menu_NAME == '安全承诺' && item.hasMenu) {
|
||||||
|
premissionList.set('commitment', true)
|
||||||
|
if (item.subMenu && item.subMenu.length > 0) {
|
||||||
|
item.subMenu.map(child => {
|
||||||
|
if (child.menu_NAME == '公司级承诺公告' && child.hasMenu) {
|
||||||
|
premissionList.set('commitment-company', true)
|
||||||
|
}
|
||||||
|
if (child.menu_NAME == '车间级承诺公告' && child.hasMenu) {
|
||||||
|
premissionList.set('commitment-workshop', true)
|
||||||
|
}
|
||||||
|
if (child.menu_NAME == '班组级承诺公告' && child.hasMenu) {
|
||||||
|
premissionList.set('commitment-team', true)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (item.menu_NAME == '受限空间作业管理' && item.hasMenu) {
|
||||||
|
premissionList.set('eightWork', true)
|
||||||
|
premissionList.set('confinedspace', true)
|
||||||
|
}
|
||||||
|
if (item.menu_NAME == '动火作业管理' && item.hasMenu) {
|
||||||
|
premissionList.set('eightWork', true)
|
||||||
|
premissionList.set('hotwork', true)
|
||||||
|
}
|
||||||
|
if (item.menu_NAME == '高处作业管理' && item.hasMenu) {
|
||||||
|
premissionList.set('eightWork', true)
|
||||||
|
premissionList.set('high-work', true)
|
||||||
|
}
|
||||||
|
if (item.menu_NAME == '吊装作业管理' && item.hasMenu) {
|
||||||
|
premissionList.set('eightWork', true)
|
||||||
|
premissionList.set('hoisting', true)
|
||||||
|
}
|
||||||
|
if (item.menu_NAME == '盲板抽堵作业管理' && item.hasMenu) {
|
||||||
|
premissionList.set('eightWork', true)
|
||||||
|
premissionList.set('blind-board', true)
|
||||||
|
}
|
||||||
|
if (item.menu_NAME == '动土作业管理' && item.hasMenu) {
|
||||||
|
premissionList.set('eightWork', true)
|
||||||
|
premissionList.set('break-ground', true)
|
||||||
|
}
|
||||||
|
if (item.menu_NAME == '临时用电作业管理' && item.hasMenu) {
|
||||||
|
premissionList.set('eightWork', true)
|
||||||
|
premissionList.set('electricity', true)
|
||||||
|
}
|
||||||
|
if (item.menu_NAME == '断路作业管理' && item.hasMenu) {
|
||||||
|
premissionList.set('eightWork', true)
|
||||||
|
premissionList.set('open-circuit', true)
|
||||||
|
}
|
||||||
|
if (item.menu_NAME == '在线学习与考试' && item.hasMenu) {
|
||||||
|
premissionList.set('education', true)
|
||||||
|
}
|
||||||
|
|
||||||
|
if (item.menu_NAME == '设备设施管理' && item.hasMenu) {
|
||||||
|
premissionList.set('speEquip', true)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
setPremission(Object.fromEntries(premissionList));
|
||||||
|
uni.hideLoading();
|
||||||
|
uni.showToast({
|
||||||
|
title: "登录成功",
|
||||||
|
duration: 1000
|
||||||
|
});
|
||||||
|
uni.redirectTo({
|
||||||
|
url: '/pages/index/index'
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
uni.showToast({
|
||||||
|
title: res.data.message,
|
||||||
|
duration: 2000
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
fail: (res) => {
|
||||||
|
uni.showToast({
|
||||||
|
icon: 'none',
|
||||||
|
title: "服务器正在升级,请稍后再试。",
|
||||||
|
duration: 2000
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
getUrlVersion() {
|
getUrlVersion() {
|
||||||
plus.runtime.getProperty(plus.runtime.appid, function(inf) {
|
plus.runtime.getProperty(plus.runtime.appid, function (inf) {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
// 路径
|
// 路径
|
||||||
uni.request({
|
uni.request({
|
||||||
|
|
@ -375,23 +489,35 @@
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
updatePushCid(userId, pushCid) {
|
||||||
|
uni.request({
|
||||||
|
url: basePath + '/app/user/updatePushCid',
|
||||||
|
method: 'POST',
|
||||||
|
dataType: 'json',
|
||||||
|
header: {
|
||||||
|
'Content-type': 'application/x-www-form-urlencoded'
|
||||||
|
},
|
||||||
|
data: {
|
||||||
|
USER_ID: userId,
|
||||||
|
PUSH_CID: pushCid
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.bottom-img {
|
.bottom-img{
|
||||||
height: 298upx;
|
height: 298upx;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
}
|
}
|
||||||
|
.bottom-img image{
|
||||||
.bottom-img image {
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bg-login {
|
.bg-login {
|
||||||
background-color: #72b0ed;
|
background-color: #72b0ed;
|
||||||
color: #1f63ae;
|
color: #1f63ae;
|
||||||
|
|
@ -423,18 +549,15 @@
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding-top: 46upx;
|
padding-top: 46upx;
|
||||||
}
|
}
|
||||||
|
.login-logo{
|
||||||
.login-logo {
|
|
||||||
margin-right: 26upx;
|
margin-right: 26upx;
|
||||||
margin-top: 10upx;
|
margin-top: 10upx;
|
||||||
}
|
}
|
||||||
|
.login-logo image{
|
||||||
.login-logo image {
|
|
||||||
width: 100upx;
|
width: 100upx;
|
||||||
height: 100upx;
|
height: 100upx;
|
||||||
}
|
}
|
||||||
|
.login-text{
|
||||||
.login-text {
|
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-size: 44upx;
|
font-size: 44upx;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
|
|
@ -450,8 +573,7 @@
|
||||||
|
|
||||||
.input-row .title {
|
.input-row .title {
|
||||||
color: #8ee6ff;
|
color: #8ee6ff;
|
||||||
margin-top: 10upx;
|
margin-bottom: 10upx;
|
||||||
right: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.bar-forget {
|
.bar-forget {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue