Compare commits
No commits in common. "d536a0a83467e64b2c2d8e4a68fdae61412157ba" and "e9c62286eb9f1610e5f2139f2594b5866232d7a1" have entirely different histories.
d536a0a834
...
e9c62286eb
|
|
@ -1,9 +1,9 @@
|
||||||
// export var basePath = "http://10.29.94.134:8095/";
|
// export var basePath = "http://10.29.94.134:8095/";
|
||||||
export var basePath = "http://192.168.4.227:8095/";
|
// export var basePath = "http://192.168.0.37:8095/";
|
||||||
// export var basePath = "http://113.25.250.146:18081/sx_yjb/";
|
export var basePath = "http://192.168.20.240:8542/integrated_yjb/";
|
||||||
export const baseImgPath = "http://172.16.70.226:7811/file/";
|
// export const baseImgPath = "http://183.251.104.38:10110/file/";
|
||||||
// export const baseImgPath = "http://113.25.250.146:7811/file/";
|
export const baseImgPath = "http://192.168.20.230:7811/csyfile/";
|
||||||
export const adminPath = "http://113.25.250.146:8080";
|
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/';
|
||||||
export const publicKey = 'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDUoHAavCikaZxjlDM6Km8cX+ye78F4oF39AcEfnE1p2Yn9pJ9WFxYZ4Vkh6F8SKMi7k4nYsKceqB1RwG996SvHQ5C3pM3nbXCP4K15ad6QhN4a7lzlbLhiJcyIKszvvK8ncUDw8mVQ0j/2mwxv05yH6LN9OKU6Hzm1ninpWeE+awIDAQAB'
|
export const publicKey = 'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDUoHAavCikaZxjlDM6Km8cX+ye78F4oF39AcEfnE1p2Yn9pJ9WFxYZ4Vkh6F8SKMi7k4nYsKceqB1RwG996SvHQ5C3pM3nbXCP4K15ad6QhN4a7lzlbLhiJcyIKszvvK8ncUDw8mVQ0j/2mwxv05yH6LN9OKU6Hzm1ninpWeE+awIDAQAB'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1185,7 +1185,7 @@ export default {
|
||||||
goSubmitQdList(){
|
goSubmitQdList(){
|
||||||
|
|
||||||
},
|
},
|
||||||
async goSubmit() {
|
goSubmit() {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
if (_this.imgList.length <= 0) {
|
if (_this.imgList.length <= 0) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|
@ -1318,50 +1318,53 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
uni.showLoading({
|
new Promise((resolve, reject) => {
|
||||||
title: '数据提交中'
|
_this.submit().then(() => {
|
||||||
})
|
resolve();
|
||||||
this.buttonloading = true
|
})
|
||||||
const FILE_IDS = []
|
}).then(() => {
|
||||||
await _this.uploadPromise(fileList, FILE_IDS)
|
var i = 0;
|
||||||
await _this.submit(FILE_IDS)
|
_this.uploadImg(fileList, i).then(() => {
|
||||||
uni.$emit('submitByHiddenSource', {
|
resolve();
|
||||||
info: "success",
|
})
|
||||||
initflag: true,
|
}).then(() => {
|
||||||
});
|
|
||||||
},
|
|
||||||
async uploadPromise(tempFilePaths,FILE_IDS){
|
|
||||||
if (tempFilePaths.length == 0) {
|
|
||||||
uni.hideLoading();
|
|
||||||
this.buttonloading = false
|
this.buttonloading = false
|
||||||
return
|
uni.$emit('submitByHiddenSource', {
|
||||||
}
|
info: "success",
|
||||||
for (let i = 0; i < tempFilePaths.length; i++) {
|
initflag: true,
|
||||||
await this.uploadImg(tempFilePaths[i],FILE_IDS)
|
});
|
||||||
}
|
})
|
||||||
},
|
},
|
||||||
uploadImg(file,FILE_IDS) {
|
uploadImg(tempFilePaths, i) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
|
if (tempFilePaths.length == 0) {
|
||||||
|
resolve();
|
||||||
|
}
|
||||||
|
uni.showLoading({
|
||||||
|
title: '上传中'
|
||||||
|
})
|
||||||
uni.uploadFile({
|
uni.uploadFile({
|
||||||
url: basePath+'/app/imgfiles/add',
|
url: basePath + '/app/imgfiles/add',
|
||||||
filePath: file.filePath,
|
filePath: tempFilePaths[i].filePath,
|
||||||
name: 'FFILE',
|
name: 'FFILE',
|
||||||
formData: {
|
formData: {
|
||||||
'TYPE': file.type,
|
'TYPE': tempFilePaths[i].type,
|
||||||
// 'FOREIGN_KEY': _this.pd.HIDDEN_ID,
|
'FOREIGN_KEY': _this.pd.HIDDEN_ID,
|
||||||
'FOREIGN_KEY': '',
|
|
||||||
CORPINFO_ID: loginUser.CORPINFO_ID,
|
CORPINFO_ID: loginUser.CORPINFO_ID,
|
||||||
USER_ID: loginUser.USER_ID,
|
USER_ID: loginUser.USER_ID,
|
||||||
},
|
},
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
res.data = JSON.parse(res.data)
|
i++;
|
||||||
FILE_IDS.push(res.data.pd.IMGFILES_ID)
|
if (tempFilePaths.length > i) {
|
||||||
resolve();
|
_this.uploadImg(tempFilePaths, i);
|
||||||
|
} else {
|
||||||
|
uni.hideLoading();
|
||||||
|
resolve();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
fail: (err) => {
|
fail: (err) => {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
this.buttonloading = false
|
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
content: err.errMsg,
|
content: err.errMsg,
|
||||||
showCancel: false
|
showCancel: false
|
||||||
|
|
@ -1370,8 +1373,9 @@ export default {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
submit(FILE_IDS) {
|
submit() {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
|
this.buttonloading = true
|
||||||
var _this = this;
|
var _this = this;
|
||||||
// var pages = getCurrentPages(); // 获取当前页面栈
|
// var pages = getCurrentPages(); // 获取当前页面栈
|
||||||
// var prePage = pages[pages.length - 2]; // 上一个页面
|
// var prePage = pages[pages.length - 2]; // 上一个页面
|
||||||
|
|
@ -1426,9 +1430,9 @@ export default {
|
||||||
HIDDENTYPE3: _this.pd.HIDDENTYPE[2] || '',
|
HIDDENTYPE3: _this.pd.HIDDENTYPE[2] || '',
|
||||||
CORPINFO_ID: loginUser.CORPINFO_ID,
|
CORPINFO_ID: loginUser.CORPINFO_ID,
|
||||||
USER_ID: loginUser.USER_ID,
|
USER_ID: loginUser.USER_ID,
|
||||||
FILE_IDS:FILE_IDS.join(',')
|
|
||||||
},
|
},
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
|
this.buttonloading = false
|
||||||
if ("success" == res.data.result) {
|
if ("success" == res.data.result) {
|
||||||
_this.pd.HIDDEN_ID = res.data.pd.HIDDEN_ID;
|
_this.pd.HIDDEN_ID = res.data.pd.HIDDEN_ID;
|
||||||
resolve();
|
resolve();
|
||||||
|
|
@ -1438,14 +1442,11 @@ export default {
|
||||||
duration: 2000
|
duration: 2000
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
uni.hideLoading();
|
|
||||||
this.buttonloading = false
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
fail: function (res) {
|
fail: function (res) {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
this.buttonloading = false
|
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: "获取位置失败",
|
title: "获取位置失败",
|
||||||
duration: 2000
|
duration: 2000
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,6 @@
|
||||||
"versionName" : "1.0.6",
|
"versionName" : "1.0.6",
|
||||||
"versionCode" : 6,
|
"versionCode" : 6,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
"sassImplementationName" : "node-sass",
|
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
"modules" : {
|
"modules" : {
|
||||||
|
|
|
||||||
|
|
@ -233,7 +233,7 @@
|
||||||
textareaAInputREPULSE_CAUSE(e) {
|
textareaAInputREPULSE_CAUSE(e) {
|
||||||
this.REPULSE_CAUSE = e.detail.value
|
this.REPULSE_CAUSE = e.detail.value
|
||||||
},
|
},
|
||||||
async goSubmit() {
|
goSubmit() {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
if (_this.ISQUALIFIED == '1') {
|
if (_this.ISQUALIFIED == '1') {
|
||||||
if (!_this.CHECKDESCR) {
|
if (!_this.CHECKDESCR) {
|
||||||
|
|
@ -272,26 +272,21 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
var fileList = [];
|
new Promise((resolve, reject) => {
|
||||||
for (var i = 0; i < _this.imgList.length; i++) {
|
_this.submit().then(() => {
|
||||||
var file = {};
|
resolve();
|
||||||
file.type = 5;
|
})
|
||||||
file.filePath = _this.imgList[i];
|
}).then(() => {
|
||||||
file.FOREIGN_KEY = _this.id;
|
var i = 0;
|
||||||
fileList.push(file);
|
_this.uploadImg(_this.imgList, i).then(() => {
|
||||||
}
|
resolve();
|
||||||
uni.showLoading({
|
})
|
||||||
title: '数据提交中'
|
}).then(() => {
|
||||||
})
|
uni.showToast({
|
||||||
this.buttonloading = true
|
icon: 'none',
|
||||||
const FILE_IDS = []
|
title: '提交成功',
|
||||||
await _this.uploadPromise(fileList,FILE_IDS)
|
duration: 1500
|
||||||
await _this.submit(FILE_IDS)
|
});
|
||||||
uni.showToast({
|
|
||||||
icon: 'none',
|
|
||||||
title: '提交成功',
|
|
||||||
duration: 1500
|
|
||||||
});
|
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
var pages = getCurrentPages(); // 获取当前页面栈
|
var pages = getCurrentPages(); // 获取当前页面栈
|
||||||
var prePage = pages[pages.length - 2]; // 上一个页面
|
var prePage = pages[pages.length - 2]; // 上一个页面
|
||||||
|
|
@ -299,49 +294,53 @@
|
||||||
uni.navigateBack({});
|
uni.navigateBack({});
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
}, 1500);
|
}, 1500);
|
||||||
|
})
|
||||||
|
|
||||||
},
|
},
|
||||||
async uploadPromise(tempFilePaths,FILE_IDS) {
|
uploadImg(tempFilePaths, i) {
|
||||||
if (tempFilePaths.length == 0) {
|
|
||||||
uni.hideLoading();
|
|
||||||
this.buttonloading = false
|
|
||||||
return
|
|
||||||
}
|
|
||||||
for (let i = 0; i < tempFilePaths.length; i++) {
|
|
||||||
await this.uploadImg(tempFilePaths[i],FILE_IDS)
|
|
||||||
}
|
|
||||||
},
|
|
||||||
uploadImg(file,FILE_IDS) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
var _this = this;
|
|
||||||
uni.uploadFile({
|
|
||||||
url: basePath + '/app/imgfiles/add',
|
|
||||||
filePath: file.filePath,
|
|
||||||
name: 'FFILE',
|
|
||||||
formData: {
|
|
||||||
'TYPE': file.type,
|
|
||||||
'FOREIGN_KEY':'',
|
|
||||||
CORPINFO_ID: loginUser.CORPINFO_ID,
|
|
||||||
USER_ID: loginUser.USER_ID,
|
|
||||||
},
|
|
||||||
success: (res) => {
|
|
||||||
res.data = JSON.parse(res.data)
|
|
||||||
FILE_IDS.push(res.data.pd.IMGFILES_ID)
|
|
||||||
resolve();
|
|
||||||
},
|
|
||||||
fail: (err) => {
|
|
||||||
uni.hideLoading();
|
|
||||||
this.buttonloading = false
|
|
||||||
uni.showModal({
|
|
||||||
content: err.errMsg,
|
|
||||||
showCancel: false
|
|
||||||
});
|
|
||||||
}
|
|
||||||
})
|
|
||||||
})
|
|
||||||
},
|
|
||||||
submit(FILE_IDS) {
|
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
|
if (tempFilePaths.length == 0) {
|
||||||
|
resolve();
|
||||||
|
}
|
||||||
|
uni.showLoading({
|
||||||
|
title: '上传中'
|
||||||
|
})
|
||||||
|
uni.uploadFile({
|
||||||
|
url: basePath + '/app/imgfiles/add',
|
||||||
|
filePath: tempFilePaths[i],
|
||||||
|
name: 'FFILE',
|
||||||
|
|
||||||
|
formData: {
|
||||||
|
'FOREIGN_KEY': _this.check.HIDDENCHECK_ID,
|
||||||
|
'TYPE': '5',
|
||||||
|
CORPINFO_ID: loginUser.CORPINFO_ID,
|
||||||
|
USER_ID: loginUser.USER_ID,
|
||||||
|
},
|
||||||
|
success: (res) => {
|
||||||
|
i++;
|
||||||
|
if (tempFilePaths.length > i) {
|
||||||
|
_this.uploadImg(tempFilePaths, i);
|
||||||
|
} else {
|
||||||
|
uni.hideLoading();
|
||||||
|
resolve();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
fail: (err) => {
|
||||||
|
uni.hideLoading();
|
||||||
|
console.log('uploadImage fail', err);
|
||||||
|
uni.showModal({
|
||||||
|
content: err.errMsg,
|
||||||
|
showCancel: false
|
||||||
|
});
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
|
submit() {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
var _this = this;
|
||||||
|
this.buttonloading = true
|
||||||
uni.request({
|
uni.request({
|
||||||
url: basePath + "/app/hidden/check", //提交接口
|
url: basePath + "/app/hidden/check", //提交接口
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|
@ -358,9 +357,10 @@
|
||||||
CHECKOR: loginUserId,
|
CHECKOR: loginUserId,
|
||||||
CORPINFO_ID:loginUser.CORPINFO_ID,
|
CORPINFO_ID:loginUser.CORPINFO_ID,
|
||||||
USER_ID:loginUser.USER_ID,
|
USER_ID:loginUser.USER_ID,
|
||||||
FILE_IDS:FILE_IDS.join(',')
|
|
||||||
},
|
},
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
|
uni.hideLoading();
|
||||||
|
this.buttonloading = false
|
||||||
if ("success" == res.data.result) {
|
if ("success" == res.data.result) {
|
||||||
_this.check = res.data.check;
|
_this.check = res.data.check;
|
||||||
resolve();
|
resolve();
|
||||||
|
|
@ -370,8 +370,6 @@
|
||||||
duration: 2000
|
duration: 2000
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
uni.hideLoading();
|
|
||||||
this.buttonloading = false
|
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -1170,7 +1170,7 @@ export default {
|
||||||
textareaCInput(e){
|
textareaCInput(e){
|
||||||
this.pd.RECTIFYDESCR= e.detail.value
|
this.pd.RECTIFYDESCR= e.detail.value
|
||||||
},
|
},
|
||||||
async goSubmit() {
|
goSubmit() {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
if (_this.imgList.length <= 0) {
|
if (_this.imgList.length <= 0) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|
@ -1319,53 +1319,51 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
uni.showLoading({
|
new Promise((resolve, reject) => {
|
||||||
title: '数据提交中'
|
_this.submit().then(() => {resolve();})
|
||||||
|
}).then(() => {
|
||||||
|
var i=0;
|
||||||
|
_this.uploadImg(fileList,i).then(() => {resolve();})
|
||||||
|
}).then(() => {
|
||||||
|
setTimeout(function () {
|
||||||
|
var pages = getCurrentPages(); // 获取当前页面栈
|
||||||
|
var prePage = pages[pages.length - 2]; // 上一个页面
|
||||||
|
prePage.$vm.initflag = true; // A 页面 init方法 为true
|
||||||
|
uni.navigateBack({});
|
||||||
|
uni.hideLoading();
|
||||||
|
}, 1500);
|
||||||
})
|
})
|
||||||
this.buttonloading = true
|
|
||||||
const FILE_IDS = []
|
|
||||||
await _this.uploadPromise(fileList, FILE_IDS)
|
|
||||||
await _this.submit(FILE_IDS)
|
|
||||||
setTimeout(function () {
|
|
||||||
var pages = getCurrentPages(); // 获取当前页面栈
|
|
||||||
var prePage = pages[pages.length - 2]; // 上一个页面
|
|
||||||
prePage.$vm.initflag = true; // A 页面 init方法 为true
|
|
||||||
uni.navigateBack({});
|
|
||||||
uni.hideLoading();
|
|
||||||
}, 1500);
|
|
||||||
},
|
},
|
||||||
async uploadPromise(tempFilePaths,FILE_IDS){
|
uploadImg(tempFilePaths,i){
|
||||||
if (tempFilePaths.length == 0) {
|
|
||||||
uni.hideLoading();
|
|
||||||
this.buttonloading = false
|
|
||||||
return
|
|
||||||
}
|
|
||||||
for (let i = 0; i < tempFilePaths.length; i++) {
|
|
||||||
await this.uploadImg(tempFilePaths[i],FILE_IDS)
|
|
||||||
}
|
|
||||||
},
|
|
||||||
uploadImg(file,FILE_IDS){
|
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
|
if(tempFilePaths.length==0){
|
||||||
|
resolve();
|
||||||
|
}
|
||||||
|
uni.showLoading({
|
||||||
|
title: '上传中'
|
||||||
|
})
|
||||||
uni.uploadFile({
|
uni.uploadFile({
|
||||||
url: basePath+'/app/imgfiles/add',
|
url: basePath+'/app/imgfiles/add',
|
||||||
filePath: file.filePath,
|
filePath: tempFilePaths[i].filePath,
|
||||||
name: 'FFILE',
|
name: 'FFILE',
|
||||||
formData: {
|
formData: {
|
||||||
'TYPE': file.type,
|
'TYPE': tempFilePaths[i].type,
|
||||||
// 'FOREIGN_KEY': _this.pd.HIDDEN_ID,
|
'FOREIGN_KEY': _this.pd.HIDDEN_ID,
|
||||||
'FOREIGN_KEY': '',
|
|
||||||
CORPINFO_ID: loginUser.CORPINFO_ID,
|
CORPINFO_ID: loginUser.CORPINFO_ID,
|
||||||
USER_ID: loginUser.USER_ID,
|
USER_ID: loginUser.USER_ID,
|
||||||
},
|
},
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
res.data = JSON.parse(res.data)
|
i++;
|
||||||
FILE_IDS.push(res.data.pd.IMGFILES_ID)
|
if (tempFilePaths.length > i) {
|
||||||
resolve();
|
_this.uploadImg(tempFilePaths, i);
|
||||||
|
} else {
|
||||||
|
uni.hideLoading();
|
||||||
|
resolve();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
fail: (err) => {
|
fail: (err) => {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
this.buttonloading = false
|
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
content: err.errMsg,
|
content: err.errMsg,
|
||||||
showCancel: false
|
showCancel: false
|
||||||
|
|
@ -1374,7 +1372,7 @@ export default {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
submit(FILE_IDS){
|
submit(){
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
// var pages = getCurrentPages(); // 获取当前页面栈
|
// var pages = getCurrentPages(); // 获取当前页面栈
|
||||||
|
|
@ -1395,7 +1393,7 @@ export default {
|
||||||
longitude = result[0];
|
longitude = result[0];
|
||||||
latitude = result[1];
|
latitude = result[1];
|
||||||
//发送 post 请求提交保存
|
//发送 post 请求提交保存
|
||||||
// this.buttonloading = true
|
this.buttonloading = true
|
||||||
uni.request({
|
uni.request({
|
||||||
url: basePath+'/app/hidden/editHidden',
|
url: basePath+'/app/hidden/editHidden',
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|
@ -1435,10 +1433,9 @@ export default {
|
||||||
USER_ID:loginUser.USER_ID,
|
USER_ID:loginUser.USER_ID,
|
||||||
// RECORDITEM_ID:_this.itemId,
|
// RECORDITEM_ID:_this.itemId,
|
||||||
// RISKITEM_ID:_this.riskId,
|
// RISKITEM_ID:_this.riskId,
|
||||||
FILE_IDS:FILE_IDS.join(','),
|
|
||||||
},
|
},
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
// this.buttonloading = false
|
this.buttonloading = false
|
||||||
if ("success" == res.data.result) {
|
if ("success" == res.data.result) {
|
||||||
_this.pd.HIDDEN_ID= res.data.pd.HIDDEN_ID;
|
_this.pd.HIDDEN_ID= res.data.pd.HIDDEN_ID;
|
||||||
resolve();
|
resolve();
|
||||||
|
|
@ -1453,14 +1450,11 @@ export default {
|
||||||
duration: 2000
|
duration: 2000
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
uni.hideLoading();
|
|
||||||
this.buttonloading = false
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
fail: function(res){
|
fail: function(res){
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
this.buttonloading = false
|
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: "获取位置失败",
|
title: "获取位置失败",
|
||||||
duration: 2000
|
duration: 2000
|
||||||
|
|
|
||||||
|
|
@ -217,7 +217,6 @@
|
||||||
},
|
},
|
||||||
//跳转事件
|
//跳转事件
|
||||||
gotRectify(e) {
|
gotRectify(e) {
|
||||||
console.log(e)
|
|
||||||
if (e.SOURCE === '4' || e.SOURCE === '5' || e.SOURCE === '1') {
|
if (e.SOURCE === '4' || e.SOURCE === '5' || e.SOURCE === '1') {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/application/hidden-danger-management/hidden-danger-record/hidden-danger-record-detail?id='+e.HIDDEN_ID,
|
url: '/pages/application/hidden-danger-management/hidden-danger-record/hidden-danger-record-detail?id='+e.HIDDEN_ID,
|
||||||
|
|
@ -226,7 +225,7 @@
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/application/hidden-danger-management/hidden-danger-record/hidden-danger-record-risk-detail?id='+e.HIDDEN_ID,
|
url: '/pages/application/hidden-danger-management/hidden-danger-record/hidden-danger-record-risk-detail?id='+e.HIDDEN_ID,
|
||||||
});
|
});
|
||||||
} else if (e.SOURCE === '2' || e.SOURCE === '3') {
|
} else if (e.SOURCE === '2') {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/application/hidden-danger-management/hidden-danger-record/hidden-danger-record-risk-detail?id='+e.HIDDEN_ID,
|
url: '/pages/application/hidden-danger-management/hidden-danger-record/hidden-danger-record-risk-detail?id='+e.HIDDEN_ID,
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -715,6 +715,11 @@ export default {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
new Promise((resolve, reject) => {
|
||||||
|
_this.submit().then(() => {
|
||||||
|
resolve();
|
||||||
|
})
|
||||||
|
}).then(() => {
|
||||||
var fileList = [];
|
var fileList = [];
|
||||||
for (var i = 0; i < _this.imgList.length; i++) {
|
for (var i = 0; i < _this.imgList.length; i++) {
|
||||||
var file = {};
|
var file = {};
|
||||||
|
|
@ -742,25 +747,25 @@ export default {
|
||||||
fileList.push(file);
|
fileList.push(file);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
uni.showLoading({
|
var m = 0;
|
||||||
title: '数据提交中'
|
_this.uploadImg(fileList, m).then(() => {
|
||||||
|
resolve();
|
||||||
|
})
|
||||||
|
}).then(() => {
|
||||||
|
uni.showToast({
|
||||||
|
icon: 'none',
|
||||||
|
title: '提交成功',
|
||||||
|
duration: 1500
|
||||||
|
});
|
||||||
|
setTimeout(function () {
|
||||||
|
var pages = getCurrentPages(); // 获取当前页面栈
|
||||||
|
var prePage = pages[pages.length - 2]; // 上一个页面
|
||||||
|
prePage.$vm.initflag = true; // A 页面 init方法 为true
|
||||||
|
uni.navigateBack({});
|
||||||
|
uni.hideLoading();
|
||||||
|
}, 1500);
|
||||||
})
|
})
|
||||||
this.buttonloading = true
|
|
||||||
const RFILE_IDS = [],PFILE_IDS = [],SFILE_IDS = [];
|
|
||||||
await _this.uploadPromise(fileList,RFILE_IDS,PFILE_IDS,SFILE_IDS)
|
|
||||||
await _this.submit(RFILE_IDS,PFILE_IDS,SFILE_IDS)
|
|
||||||
uni.showToast({
|
|
||||||
icon: 'none',
|
|
||||||
title: '提交成功',
|
|
||||||
duration: 1500
|
|
||||||
});
|
|
||||||
setTimeout(function () {
|
|
||||||
var pages = getCurrentPages(); // 获取当前页面栈
|
|
||||||
var prePage = pages[pages.length - 2]; // 上一个页面
|
|
||||||
prePage.$vm.initflag = true; // A 页面 init方法 为true
|
|
||||||
uni.navigateBack({});
|
|
||||||
uni.hideLoading();
|
|
||||||
}, 1500);
|
|
||||||
} else {
|
} else {
|
||||||
if (!_this.pd.REPULSE_CAUSE) {
|
if (!_this.pd.REPULSE_CAUSE) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|
@ -826,43 +831,39 @@ export default {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async uploadPromise(tempFilePaths,RFILE_IDS,PFILE_IDS,SFILE_IDS) {
|
uploadImg(tempFilePaths, i) {
|
||||||
if (tempFilePaths.length == 0) {
|
|
||||||
uni.hideLoading();
|
|
||||||
this.buttonloading = false
|
|
||||||
return
|
|
||||||
}
|
|
||||||
for (let i = 0; i < tempFilePaths.length; i++) {
|
|
||||||
if (tempFilePaths[i].type == 22){
|
|
||||||
await this.uploadImg(tempFilePaths[i],PFILE_IDS)
|
|
||||||
}else if (tempFilePaths[i].type == 4){
|
|
||||||
await this.uploadImg(tempFilePaths[i],RFILE_IDS)
|
|
||||||
}else if (tempFilePaths[i].type == 8){
|
|
||||||
await this.uploadImg(tempFilePaths[i],SFILE_IDS)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
uploadImg(file,FILE_IDS) {
|
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
|
if (tempFilePaths.length == 0) {
|
||||||
|
resolve();
|
||||||
|
}
|
||||||
|
uni.showLoading({
|
||||||
|
title: '上传中'
|
||||||
|
})
|
||||||
uni.uploadFile({
|
uni.uploadFile({
|
||||||
url: basePath + '/app/imgfiles/add',
|
url: basePath + '/app/imgfiles/add',
|
||||||
filePath: file.filePath,
|
filePath: tempFilePaths[i].filePath,
|
||||||
name: 'FFILE',
|
name: 'FFILE',
|
||||||
|
|
||||||
formData: {
|
formData: {
|
||||||
'TYPE': file.type,
|
'FOREIGN_KEY': tempFilePaths[i].FOREIGN_KEY,
|
||||||
'FOREIGN_KEY':'',
|
'TYPE': tempFilePaths[i].type,
|
||||||
CORPINFO_ID: loginUser.CORPINFO_ID,
|
CORPINFO_ID: loginUser.CORPINFO_ID,
|
||||||
USER_ID: loginUser.USER_ID,
|
USER_ID: loginUser.USER_ID,
|
||||||
},
|
},
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
res.data = JSON.parse(res.data)
|
i++;
|
||||||
FILE_IDS.push(res.data.pd.IMGFILES_ID)
|
if (tempFilePaths.length > i) {
|
||||||
resolve();
|
_this.uploadImg(tempFilePaths, i);
|
||||||
|
} else {
|
||||||
|
console.info("提交成功")
|
||||||
|
uni.hideLoading();
|
||||||
|
console.info("提交成功123")
|
||||||
|
resolve();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
fail: (err) => {
|
fail: (err) => {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
this.buttonloading = false
|
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
content: err.errMsg,
|
content: err.errMsg,
|
||||||
showCancel: false
|
showCancel: false
|
||||||
|
|
@ -923,9 +924,10 @@ export default {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
submit(RFILE_IDS,PFILE_IDS,SFILE_IDS) {
|
submit() {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
|
this.buttonloading = true
|
||||||
uni.request({
|
uni.request({
|
||||||
url: basePath + "/app/hidden/rectify", //提交接口
|
url: basePath + "/app/hidden/rectify", //提交接口
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|
@ -951,11 +953,10 @@ export default {
|
||||||
// OTHER: JSON.stringify(_this.other),
|
// OTHER: JSON.stringify(_this.other),
|
||||||
CORPINFO_ID: loginUser.CORPINFO_ID,
|
CORPINFO_ID: loginUser.CORPINFO_ID,
|
||||||
USER_ID: loginUser.USER_ID,
|
USER_ID: loginUser.USER_ID,
|
||||||
RFILE_IDS:RFILE_IDS.join(','),
|
|
||||||
PFILE_IDS:PFILE_IDS.join(','),
|
|
||||||
SFILE_IDS:SFILE_IDS.join(','),
|
|
||||||
},
|
},
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
|
uni.hideLoading();
|
||||||
|
this.buttonloading = false
|
||||||
if ("success" == res.data.result) {
|
if ("success" == res.data.result) {
|
||||||
_this.HIDDENSCHEME_ID = res.data.HIDDENSCHEME_ID
|
_this.HIDDENSCHEME_ID = res.data.HIDDENSCHEME_ID
|
||||||
resolve();
|
resolve();
|
||||||
|
|
@ -964,9 +965,9 @@ export default {
|
||||||
title: '错误',
|
title: '错误',
|
||||||
duration: 2000
|
duration: 2000
|
||||||
});
|
});
|
||||||
|
reject();
|
||||||
}
|
}
|
||||||
uni.hideLoading();
|
|
||||||
this.buttonloading = false
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -1397,9 +1397,9 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const FILE_IDS = []
|
await _this.submit()
|
||||||
await _this.uploadPromise(fileList,FILE_IDS)
|
var i = 0;
|
||||||
await _this.submit(FILE_IDS)
|
await _this.uploadPromise(fileList)
|
||||||
var pages = getCurrentPages(); // 获取当前页面栈
|
var pages = getCurrentPages(); // 获取当前页面栈
|
||||||
var prePage = pages[pages.length - 2]; // 上一个页面
|
var prePage = pages[pages.length - 2]; // 上一个页面
|
||||||
// var task = prePage.$vm.list[_this.index];
|
// var task = prePage.$vm.list[_this.index];
|
||||||
|
|
@ -1411,7 +1411,7 @@ export default {
|
||||||
uni.navigateBack({});
|
uni.navigateBack({});
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
},
|
},
|
||||||
async uploadPromise(tempFilePaths,FILE_IDS) {
|
async uploadPromise(tempFilePaths) {
|
||||||
if (tempFilePaths.length == 0) {
|
if (tempFilePaths.length == 0) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
@ -1419,10 +1419,10 @@ export default {
|
||||||
title: '上传中'
|
title: '上传中'
|
||||||
})
|
})
|
||||||
for (let i = 0; i < tempFilePaths.length; i++) {
|
for (let i = 0; i < tempFilePaths.length; i++) {
|
||||||
await this.uploadImg(tempFilePaths[i],FILE_IDS)
|
await this.uploadImg(tempFilePaths[i])
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
uploadImg(file,FILE_IDS) {
|
uploadImg(file) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
uni.uploadFile({
|
uni.uploadFile({
|
||||||
|
|
@ -1431,13 +1431,11 @@ export default {
|
||||||
name: 'FFILE',
|
name: 'FFILE',
|
||||||
formData: {
|
formData: {
|
||||||
'TYPE': file.type,
|
'TYPE': file.type,
|
||||||
'FOREIGN_KEY':'',
|
'FOREIGN_KEY': _this.pd.HIDDEN_ID,
|
||||||
CORPINFO_ID: loginUser.CORPINFO_ID,
|
CORPINFO_ID: loginUser.CORPINFO_ID,
|
||||||
USER_ID: loginUser.USER_ID,
|
USER_ID: loginUser.USER_ID,
|
||||||
},
|
},
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
res.data = JSON.parse(res.data)
|
|
||||||
FILE_IDS.push(res.data.pd.IMGFILES_ID)
|
|
||||||
resolve();
|
resolve();
|
||||||
},
|
},
|
||||||
fail: (err) => {
|
fail: (err) => {
|
||||||
|
|
@ -1450,7 +1448,7 @@ export default {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
submit(FILE_IDS) {
|
submit() {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
let longitude;
|
let longitude;
|
||||||
|
|
@ -1511,8 +1509,7 @@ export default {
|
||||||
HIDDENTYPE3: _this.pd.HIDDENTYPE[2] || '',
|
HIDDENTYPE3: _this.pd.HIDDENTYPE[2] || '',
|
||||||
CORPINFO_ID: loginUser.CORPINFO_ID,
|
CORPINFO_ID: loginUser.CORPINFO_ID,
|
||||||
USER_ID: loginUser.USER_ID,
|
USER_ID: loginUser.USER_ID,
|
||||||
HIDDEN_CATEGORY: _this.pd.HIDDEN_CATEGORY ? _this.pd.HIDDEN_CATEGORY : '',
|
HIDDEN_CATEGORY: _this.pd.HIDDEN_CATEGORY ? _this.pd.HIDDEN_CATEGORY : ''
|
||||||
FILE_IDS:FILE_IDS.join(',')
|
|
||||||
},
|
},
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
this.buttonloading = false
|
this.buttonloading = false
|
||||||
|
|
|
||||||
|
|
@ -965,9 +965,8 @@
|
||||||
//图片上传
|
//图片上传
|
||||||
ChooseImage(e) {
|
ChooseImage(e) {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
var ss=4-this.imgList.length;
|
|
||||||
uni.chooseImage({
|
uni.chooseImage({
|
||||||
count: ss, //默认9
|
count: e==0 ? 4-this.imgList.length : 4-this.imgList1.length, //默认9
|
||||||
sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
|
sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
|
||||||
sourceType: ['camera','album'], //从相册选择
|
sourceType: ['camera','album'], //从相册选择
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
|
|
@ -1183,7 +1182,7 @@
|
||||||
textareaCInput(e){
|
textareaCInput(e){
|
||||||
this.pd.RECTIFYDESCR= e.detail.value
|
this.pd.RECTIFYDESCR= e.detail.value
|
||||||
},
|
},
|
||||||
async goSubmit() {
|
goSubmit() {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
if (_this.imgList.length <= 0) {
|
if (_this.imgList.length <= 0) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|
@ -1332,9 +1331,12 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const FILE_IDS = []
|
new Promise((resolve, reject) => {
|
||||||
await _this.uploadPromise(fileList,FILE_IDS)
|
_this.submit().then(() => {resolve();})
|
||||||
await _this.submit(FILE_IDS)
|
}).then(() => {
|
||||||
|
var i=0;
|
||||||
|
_this.uploadImg(fileList,i).then(() => {resolve();})
|
||||||
|
}).then(() => {
|
||||||
var pages = getCurrentPages(); // 获取当前页面栈
|
var pages = getCurrentPages(); // 获取当前页面栈
|
||||||
var prePage = pages[pages.length - 2]; // 上一个页面
|
var prePage = pages[pages.length - 2]; // 上一个页面
|
||||||
// var task = prePage.$vm.list[_this.index];
|
// var task = prePage.$vm.list[_this.index];
|
||||||
|
|
@ -1345,47 +1347,47 @@
|
||||||
}
|
}
|
||||||
uni.navigateBack({});
|
uni.navigateBack({});
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
|
})
|
||||||
},
|
},
|
||||||
async uploadPromise(tempFilePaths,FILE_IDS) {
|
uploadImg(tempFilePaths,i){
|
||||||
if (tempFilePaths.length == 0) {
|
return new Promise((resolve, reject) => {
|
||||||
return
|
var _this = this;
|
||||||
}
|
if(tempFilePaths.length==0){
|
||||||
uni.showLoading({
|
resolve();
|
||||||
title: '上传中'
|
}
|
||||||
})
|
uni.showLoading({
|
||||||
for (let i = 0; i < tempFilePaths.length; i++) {
|
title: '上传中'
|
||||||
await this.uploadImg(tempFilePaths[i],FILE_IDS)
|
})
|
||||||
}
|
uni.uploadFile({
|
||||||
},
|
url: basePath+'/app/imgfiles/add',
|
||||||
uploadImg(file,FILE_IDS) {
|
filePath: tempFilePaths[i].filePath,
|
||||||
return new Promise((resolve, reject) => {
|
name: 'FFILE',
|
||||||
var _this = this;
|
formData: {
|
||||||
uni.uploadFile({
|
'TYPE': tempFilePaths[i].type,
|
||||||
url: basePath + '/app/imgfiles/add',
|
'FOREIGN_KEY': _this.pd.HIDDEN_ID,
|
||||||
filePath: file.filePath,
|
|
||||||
name: 'FFILE',
|
|
||||||
formData: {
|
|
||||||
'TYPE': file.type,
|
|
||||||
'FOREIGN_KEY':'',
|
|
||||||
CORPINFO_ID: loginUser.CORPINFO_ID,
|
CORPINFO_ID: loginUser.CORPINFO_ID,
|
||||||
USER_ID: loginUser.USER_ID,
|
USER_ID: loginUser.USER_ID,
|
||||||
},
|
},
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
res.data = JSON.parse(res.data)
|
i++;
|
||||||
FILE_IDS.push(res.data.pd.IMGFILES_ID)
|
if (tempFilePaths.length > i) {
|
||||||
resolve();
|
_this.uploadImg(tempFilePaths, i);
|
||||||
},
|
} else {
|
||||||
fail: (err) => {
|
uni.hideLoading();
|
||||||
uni.hideLoading();
|
resolve();
|
||||||
uni.showModal({
|
}
|
||||||
content: err.errMsg,
|
},
|
||||||
showCancel: false
|
fail: (err) => {
|
||||||
});
|
uni.hideLoading();
|
||||||
}
|
uni.showModal({
|
||||||
})
|
content: err.errMsg,
|
||||||
})
|
showCancel: false
|
||||||
},
|
});
|
||||||
submit(FILE_IDS) {
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
|
submit(){
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
// var pages = getCurrentPages(); // 获取当前页面栈
|
// var pages = getCurrentPages(); // 获取当前页面栈
|
||||||
|
|
@ -1449,7 +1451,6 @@
|
||||||
USER_ID:loginUser.USER_ID,
|
USER_ID:loginUser.USER_ID,
|
||||||
// RECORDITEM_ID:_this.itemId,
|
// RECORDITEM_ID:_this.itemId,
|
||||||
// RISKITEM_ID:_this.riskId,
|
// RISKITEM_ID:_this.riskId,
|
||||||
FILE_IDS:FILE_IDS.join(',')
|
|
||||||
},
|
},
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
this.buttonloading = false
|
this.buttonloading = false
|
||||||
|
|
|
||||||
|
|
@ -697,7 +697,7 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="wui-form-list" v-if="!forbidEdit && pd.WORK_LEVEL !== '1' && pd.WORK_LEVEL !== '2' && pd.WORK_LEVEL !== '3'">
|
<view class="wui-form-list" v-if="!forbidEdit && pd.WORK_LEVEL !== '1' && pd.WORK_LEVEL !== '2' && pd.WORK_LEVEL !== '3'">
|
||||||
<!-- <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 class="picker-tree" @tap="showSafetyTree">-->
|
<!-- <view class="picker-tree" @tap="showSafetyTree">-->
|
||||||
<!-- {{ pd.SAFETY_DEPARTMENT_NAME ? pd.SAFETY_DEPARTMENT_NAME : '请选择' }}-->
|
<!-- {{ pd.SAFETY_DEPARTMENT_NAME ? pd.SAFETY_DEPARTMENT_NAME : '请选择' }}-->
|
||||||
|
|
@ -712,14 +712,14 @@
|
||||||
<!-- @cancel="safetytreeCancel"></tki-tree>-->
|
<!-- @cancel="safetytreeCancel"></tki-tree>-->
|
||||||
<!-- </view>-->
|
<!-- </view>-->
|
||||||
<!-- <view class="cu-form-group" v-if="pd.DISABLED!=='1'">-->
|
<!-- <view class="cu-form-group" v-if="pd.DISABLED!=='1'">-->
|
||||||
<!-- <view class="title">生产部负责人</view>-->
|
<!-- <view class="title">安全部负责人</view>-->
|
||||||
<!-- <view style="position: relative">-->
|
<!-- <view style="position: relative">-->
|
||||||
<!-- <view class="search-input">-->
|
<!-- <view class="search-input">-->
|
||||||
<!-- <input-->
|
<!-- <input-->
|
||||||
<!-- type="text"-->
|
<!-- type="text"-->
|
||||||
<!-- style="text-align: right"-->
|
<!-- style="text-align: right"-->
|
||||||
<!-- v-model="searchSafety"-->
|
<!-- v-model="searchSafety"-->
|
||||||
<!-- placeholder="请输入生产部负责人"-->
|
<!-- placeholder="请输入安全部负责人"-->
|
||||||
<!-- @input="filterSafetyUsers"-->
|
<!-- @input="filterSafetyUsers"-->
|
||||||
<!-- @click="toggleSafetyDropdown"-->
|
<!-- @click="toggleSafetyDropdown"-->
|
||||||
<!-- >-->
|
<!-- >-->
|
||||||
|
|
@ -739,7 +739,7 @@
|
||||||
<!-- </view>-->
|
<!-- </view>-->
|
||||||
<!-- </view>-->
|
<!-- </view>-->
|
||||||
<!-- <view class="cu-form-group" v-if="pd.DISABLED==='1'">-->
|
<!-- <view class="cu-form-group" v-if="pd.DISABLED==='1'">-->
|
||||||
<!-- <view class="title">生产部负责人</view>-->
|
<!-- <view class="title">安全部负责人</view>-->
|
||||||
<!-- <picker @change="PickerSafety" :value="safetyindex" :range="safetyUserList" range-key="NAME"-->
|
<!-- <picker @change="PickerSafety" :value="safetyindex" :range="safetyUserList" range-key="NAME"-->
|
||||||
<!-- :disabled="safetyUserList.length == 0" @click="isBlankList('safety')">-->
|
<!-- :disabled="safetyUserList.length == 0" @click="isBlankList('safety')">-->
|
||||||
<!-- <view class="picker">-->
|
<!-- <view class="picker">-->
|
||||||
|
|
@ -749,22 +749,22 @@
|
||||||
<!-- </view>-->
|
<!-- </view>-->
|
||||||
|
|
||||||
<view class="cu-form-group">
|
<view class="cu-form-group">
|
||||||
<view class="title">生产部</view>
|
<view class="title">安全部</view>
|
||||||
<view class="earch-input">
|
<view class="earch-input">
|
||||||
<input type="text" style="text-align: right" v-model="pd.SAFETY_DEPARTMENT_NAME" disabled>
|
<input type="text" style="text-align: right" v-model="pd.SAFETY_DEPARTMENT_NAME" disabled>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="cu-form-group" v-if="!forbidEdit">
|
<view class="cu-form-group" v-if="!forbidEdit">
|
||||||
<view class="title">生产部负责人</view>
|
<view class="title">安全部负责人</view>
|
||||||
<view>
|
<view>
|
||||||
<input type="text" style="text-align: right" v-model="pd.SAFETY_USER_NAME" disabled>
|
<input type="text" style="text-align: right" v-model="pd.SAFETY_USER_NAME" disabled>
|
||||||
</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" @click="openPersonPopup('safety')" style="font-size: 28upx; flex: 1; display: flex; align-items: center; justify-content: flex-end; padding-right: 20upx;">-->
|
<!-- <view class="picker" @click="openPersonPopup('safety')" style="font-size: 28upx; flex: 1; display: flex; align-items: center; justify-content: flex-end; padding-right: 20upx;">-->
|
||||||
<!-- {{ searchSafetyPerson || '请选择生产部负责人' }}-->
|
<!-- {{ searchSafetyPerson || '请选择安全部负责人' }}-->
|
||||||
<!-- <text class="cuIcon-right" style="margin-left: 10upx;"></text>-->
|
<!-- <text class="cuIcon-right" style="margin-left: 10upx;"></text>-->
|
||||||
<!-- </view>-->
|
<!-- </view>-->
|
||||||
<!-- </view>-->
|
<!-- </view>-->
|
||||||
|
|
@ -1130,12 +1130,12 @@
|
||||||
|
|
||||||
<view v-if="signs.SAFETY">
|
<view v-if="signs.SAFETY">
|
||||||
<view class="cu-form-textarea" style="border: none;">
|
<view class="cu-form-textarea" style="border: none;">
|
||||||
<view class="cu-form-title">生产部负责人意见</view>
|
<view class="cu-form-title">安全部负责人意见</view>
|
||||||
<textarea maxlength="255" disabled="disabled" v-model="signs.SAFETY[0].DESCR"></textarea>
|
<textarea maxlength="255" disabled="disabled" v-model="signs.SAFETY[0].DESCR"></textarea>
|
||||||
</view>
|
</view>
|
||||||
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
|
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
|
||||||
<view class="cu-form-group">
|
<view class="cu-form-group">
|
||||||
<view class="title">生产部负责人</view>
|
<view class="title">安全部负责人</view>
|
||||||
{{ pd.SAFETY_USER_NAME }}
|
{{ pd.SAFETY_USER_NAME }}
|
||||||
</view>
|
</view>
|
||||||
<view class="cu-item" v-for="(item,index) in signs.SAFETY[0].SIGN_TIME" :key="index"
|
<view class="cu-item" v-for="(item,index) in signs.SAFETY[0].SIGN_TIME" :key="index"
|
||||||
|
|
@ -1393,7 +1393,7 @@ export default {
|
||||||
// {name: 'ACCEPT_CONFESS_USER_ID', message: '请选择接受交底人'},
|
// {name: 'ACCEPT_CONFESS_USER_ID', message: '请选择接受交底人'},
|
||||||
// {name:'SPECIAL_WORK',message:'请输入关联的其他特殊作业及安全作业票编号'},
|
// {name:'SPECIAL_WORK',message:'请输入关联的其他特殊作业及安全作业票编号'},
|
||||||
// {name:'APPROVE_USER_ID',message:'请选择安全处负责人'},
|
// {name:'APPROVE_USER_ID',message:'请选择安全处负责人'},
|
||||||
// {name:'SAFETY_USER_ID',message:'请选择生产部负责人'},
|
// {name:'SAFETY_USER_ID',message:'请选择安全部负责人'},
|
||||||
// {name:'PLS_ID',message:'请选择作业区域'},
|
// {name:'PLS_ID',message:'请选择作业区域'},
|
||||||
|
|
||||||
],
|
],
|
||||||
|
|
@ -1419,7 +1419,7 @@ export default {
|
||||||
leader: '分厂贯标中心负责',
|
leader: '分厂贯标中心负责',
|
||||||
audit: '分厂负责',
|
audit: '分厂负责',
|
||||||
approve: '安全处负责',
|
approve: '安全处负责',
|
||||||
safety: '生产部负责',
|
safety: '安全部负责',
|
||||||
workstart: '作业开始负责',
|
workstart: '作业开始负责',
|
||||||
workend: '作业结束负责',
|
workend: '作业结束负责',
|
||||||
accept: '验收部门负责'
|
accept: '验收部门负责'
|
||||||
|
|
@ -1949,7 +1949,7 @@ export default {
|
||||||
if (!this.safetyUserList.length) {
|
if (!this.safetyUserList.length) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
title: '请先选择生产部',
|
title: '请先选择安全部',
|
||||||
duration: 1500
|
duration: 1500
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
|
|
@ -2440,7 +2440,7 @@ export default {
|
||||||
// if (!this.pd.SAFETY_USER_ID) {
|
// if (!this.pd.SAFETY_USER_ID) {
|
||||||
// uni.showToast({
|
// uni.showToast({
|
||||||
// icon: 'none',
|
// icon: 'none',
|
||||||
// title: '请选择生产部负责人',
|
// title: '请选择安全部负责人',
|
||||||
// duration: 1500
|
// duration: 1500
|
||||||
// });
|
// });
|
||||||
// required = false
|
// required = false
|
||||||
|
|
@ -2783,7 +2783,7 @@ export default {
|
||||||
if (this.safetyUserList.length == 0) {
|
if (this.safetyUserList.length == 0) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
title: '请先选择生产部',
|
title: '请先选择安全部',
|
||||||
duration: 1500
|
duration: 1500
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -349,12 +349,12 @@
|
||||||
</view>
|
</view>
|
||||||
<view v-if="signs.SAFETY">
|
<view v-if="signs.SAFETY">
|
||||||
<view class="cu-form-textarea" style="border: none;">
|
<view class="cu-form-textarea" style="border: none;">
|
||||||
<view class="cu-form-title">生产部负责人意见</view>
|
<view class="cu-form-title">安全部负责人意见</view>
|
||||||
<textarea maxlength="255" disabled="disabled" v-model="signs.SAFETY[0].DESCR"></textarea>
|
<textarea maxlength="255" disabled="disabled" v-model="signs.SAFETY[0].DESCR"></textarea>
|
||||||
</view>
|
</view>
|
||||||
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
|
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
|
||||||
<view class="cu-form-group">
|
<view class="cu-form-group">
|
||||||
<view class="title">生产部负责人</view>
|
<view class="title">安全部负责人</view>
|
||||||
{{ pd.SAFETY_USER_NAME }}
|
{{ pd.SAFETY_USER_NAME }}
|
||||||
</view>
|
</view>
|
||||||
<view class="cu-item" v-for="(item,index) in signs.SAFETY[0].SIGN_TIME" :key="index"
|
<view class="cu-item" v-for="(item,index) in signs.SAFETY[0].SIGN_TIME" :key="index"
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,7 @@
|
||||||
<text v-if="item.APPROVE_USER_NAME">安全处负责人:{{ item.APPROVE_USER_NAME }}</text>
|
<text v-if="item.APPROVE_USER_NAME">安全处负责人:{{ item.APPROVE_USER_NAME }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="dy-subtitle-flex" @click="$noMultipleClicks(goToDetail,item)">
|
<view class="dy-subtitle-flex" @click="$noMultipleClicks(goToDetail,item)">
|
||||||
<text v-if="item.SAFETY_USER_NAME">生产部负责人:{{ item.SAFETY_USER_NAME }}</text>
|
<text v-if="item.SAFETY_USER_NAME">安全部负责人:{{ item.SAFETY_USER_NAME }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="dy-subtitle-flex" @click="$noMultipleClicks(goToDetail,item)">
|
<view class="dy-subtitle-flex" @click="$noMultipleClicks(goToDetail,item)">
|
||||||
<text>验收部门负责人:{{ item.ACCEPT_USER_NAME }}</text>
|
<text>验收部门负责人:{{ item.ACCEPT_USER_NAME }}</text>
|
||||||
|
|
@ -267,7 +267,7 @@ export default {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/application/highwork/highwork-approve/highwork-approve-detail?HIGHWORK_ID=' + e
|
url: '/pages/application/highwork/highwork-approve/highwork-approve-detail?HIGHWORK_ID=' + e
|
||||||
});
|
});
|
||||||
}else if (this.flow === '生产部签字') {
|
}else if (this.flow === '安全部签字') {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/application/highwork/highwork-safety/highwork-safety-detail?HIGHWORK_ID=' + e
|
url: '/pages/application/highwork/highwork-safety/highwork-safety-detail?HIGHWORK_ID=' + e
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -2,18 +2,18 @@
|
||||||
<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>
|
||||||
<scroll-view scroll-y="false">
|
<scroll-view scroll-y="false">
|
||||||
<view class="form">
|
<view class="form">
|
||||||
<detail v-if="pd.HIGHWORK_ID" :highworkId="pd.HIGHWORK_ID"></detail>
|
<detail v-if="pd.HIGHWORK_ID" :highworkId="pd.HIGHWORK_ID"></detail>
|
||||||
<view class="wui-form-list">
|
<view class="wui-form-list">
|
||||||
<view class="cu-form-textarea" style="border-bottom: 1px dashed #eee;">
|
<view class="cu-form-textarea" style="border-bottom: 1px dashed #eee;">
|
||||||
<view class="cu-form-title">生产部负责人意见</view>
|
<view class="cu-form-title">安全部负责人意见</view>
|
||||||
<textarea maxlength="255" v-model="pd.DESCR" placeholder="请输入意见"></textarea>
|
<textarea maxlength="255" v-model="pd.DESCR" placeholder="请输入意见"></textarea>
|
||||||
</view>
|
</view>
|
||||||
<view class="wui-sign" v-if="!files.length">
|
<view class="wui-sign" v-if="!files.length">
|
||||||
<view class="title">生产部负责人</view>
|
<view class="title">安全部负责人</view>
|
||||||
<view>
|
<view>
|
||||||
<view>
|
<view>
|
||||||
<button class="cu-btn bg-green shadow" @tap="showModal">新增手写签字</button>
|
<button class="cu-btn bg-green shadow" @tap="showModal">新增手写签字</button>
|
||||||
|
|
|
||||||
|
|
@ -136,13 +136,13 @@
|
||||||
</view>
|
</view>
|
||||||
</navigator>
|
</navigator>
|
||||||
<navigator class="apps-item" hover-class="none"
|
<navigator class="apps-item" hover-class="none"
|
||||||
url="/pages/application/highwork/highwork-list/index?flow=生产部签字">
|
url="/pages/application/highwork/highwork-list/index?flow=安全部签字">
|
||||||
<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.SAFETY" class="cu-tag badge">{{ count.SAFETY }}</view>
|
<view v-if="count.SAFETY" class="cu-tag badge">{{ count.SAFETY }}</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"
|
<navigator class="apps-item" hover-class="none"
|
||||||
|
|
|
||||||
|
|
@ -696,13 +696,13 @@
|
||||||
|
|
||||||
|
|
||||||
<view class="cu-form-group">
|
<view class="cu-form-group">
|
||||||
<view class="title">生产部</view>
|
<view class="title">安全部</view>
|
||||||
<view class="earch-input">
|
<view class="earch-input">
|
||||||
<input type="text" style="text-align: right" v-model="pd.SAFETY_DEPARTMENT_NAME" disabled>
|
<input type="text" style="text-align: right" v-model="pd.SAFETY_DEPARTMENT_NAME" disabled>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="cu-form-group" v-if="!forbidEdit">
|
<view class="cu-form-group" v-if="!forbidEdit">
|
||||||
<view class="title">生产部负责人</view>
|
<view class="title">安全部负责人</view>
|
||||||
<view>
|
<view>
|
||||||
<input type="text" style="text-align: right" v-model="pd.SAFETY_USER_NAME" disabled>
|
<input type="text" style="text-align: right" v-model="pd.SAFETY_USER_NAME" disabled>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -1041,12 +1041,12 @@
|
||||||
|
|
||||||
<view v-if="signs.SAFETY">
|
<view v-if="signs.SAFETY">
|
||||||
<view class="cu-form-textarea" style="border: none;">
|
<view class="cu-form-textarea" style="border: none;">
|
||||||
<view class="cu-form-title">生产部负责人意见</view>
|
<view class="cu-form-title">安全部负责人意见</view>
|
||||||
<textarea maxlength="255" disabled="disabled" v-model="signs.SAFETY[0].DESCR"></textarea>
|
<textarea maxlength="255" disabled="disabled" v-model="signs.SAFETY[0].DESCR"></textarea>
|
||||||
</view>
|
</view>
|
||||||
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
|
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
|
||||||
<view class="cu-form-group">
|
<view class="cu-form-group">
|
||||||
<view class="title">生产部负责人</view>
|
<view class="title">安全部负责人</view>
|
||||||
{{ pd.SAFETY_USER_NAME }}
|
{{ pd.SAFETY_USER_NAME }}
|
||||||
</view>
|
</view>
|
||||||
<view class="cu-item" v-for="(item,index) in signs.SAFETY[0].SIGN_TIME" :key="index"
|
<view class="cu-item" v-for="(item,index) in signs.SAFETY[0].SIGN_TIME" :key="index"
|
||||||
|
|
|
||||||
|
|
@ -299,12 +299,12 @@
|
||||||
|
|
||||||
<view v-if="signs.SAFETY">
|
<view v-if="signs.SAFETY">
|
||||||
<view class="cu-form-textarea" style="border: none;">
|
<view class="cu-form-textarea" style="border: none;">
|
||||||
<view class="cu-form-title">生产部负责人意见</view>
|
<view class="cu-form-title">安全部负责人意见</view>
|
||||||
<textarea maxlength="255" disabled="disabled" v-model="signs.SAFETY[0].DESCR"></textarea>
|
<textarea maxlength="255" disabled="disabled" v-model="signs.SAFETY[0].DESCR"></textarea>
|
||||||
</view>
|
</view>
|
||||||
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
|
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
|
||||||
<view class="cu-form-group">
|
<view class="cu-form-group">
|
||||||
<view class="title">生产部负责人</view>
|
<view class="title">安全部负责人</view>
|
||||||
{{ pd.SAFETY_USER_NAME }}
|
{{ pd.SAFETY_USER_NAME }}
|
||||||
</view>
|
</view>
|
||||||
<view class="cu-item" v-for="(item,index) in signs.SAFETY[0].SIGN_TIME" :key="index"
|
<view class="cu-item" v-for="(item,index) in signs.SAFETY[0].SIGN_TIME" :key="index"
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,7 @@
|
||||||
<text v-if="item.APPROVE_USER_NAME">安全处负责人:{{ item.APPROVE_USER_NAME }}</text>
|
<text v-if="item.APPROVE_USER_NAME">安全处负责人:{{ item.APPROVE_USER_NAME }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="dy-subtitle-flex" @click="$noMultipleClicks(goToDetail,item)">
|
<view class="dy-subtitle-flex" @click="$noMultipleClicks(goToDetail,item)">
|
||||||
<text v-if="item.SAFETY_USER_NAME">生产部负责人:{{ item.SAFETY_USER_NAME }}</text>
|
<text v-if="item.SAFETY_USER_NAME">安全部负责人:{{ item.SAFETY_USER_NAME }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="dy-subtitle-flex" @click="$noMultipleClicks(goToDetail,item)">
|
<view class="dy-subtitle-flex" @click="$noMultipleClicks(goToDetail,item)">
|
||||||
<text>验收部门负责人:{{ item.ACCEPT_USER_NAME }}</text>
|
<text>验收部门负责人:{{ item.ACCEPT_USER_NAME }}</text>
|
||||||
|
|
|
||||||
|
|
@ -130,7 +130,7 @@
|
||||||
<view v-if="count.SAFETY" class="cu-tag badge">{{ count.SAFETY }}</view>
|
<view v-if="count.SAFETY" class="cu-tag badge">{{ count.SAFETY }}</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>
|
||||||
|
|
||||||
|
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 22 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 177 KiB After Width: | Height: | Size: 176 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 13 KiB |
Loading…
Reference in New Issue