限制危大工程数据只能由项目账号和责任人进行操作,而责任单位的其他人只能查看
This commit is contained in:
parent
72236ca3d9
commit
7da032e55e
4
main.js
4
main.js
@ -38,8 +38,8 @@ if (process.env.NODE_ENV === 'development') {
|
||||
// Vue.prototype.url_config = 'http://47.93.215.234:9809/' // 鞍钢正式地址(弃用)
|
||||
// Vue.prototype.url_config = 'http://42.180.188.17:9809/' // 鞍钢正式地址
|
||||
// Vue.prototype.url_config = 'http://42.180.188.17:11211/' // 鞍钢测试地址
|
||||
// Vue.prototype.url_config = 'http://182.90.224.237:51234/' //雄哥内网穿透地址
|
||||
Vue.prototype.url_config = 'http://jxj.zhgdyun.com:61212/' //杰哥内网穿透地址
|
||||
Vue.prototype.url_config = 'http://182.90.224.237:51234/' //雄哥内网穿透地址
|
||||
// Vue.prototype.url_config = 'http://jxj.zhgdyun.com:61212/' //杰哥内网穿透地址
|
||||
// Vue.prototype.url_config = ' http://192.168.34.221:28888/' //郭圣雄本地
|
||||
// Vue.prototype.url_config = 'http://192.168.34.221:9111/' //郭圣雄本地
|
||||
// Vue.prototype.url_config = 'http://192.168.34.155:19111/' //彭洁本地
|
||||
|
||||
@ -28,20 +28,27 @@
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props:['detailId','detailData'],
|
||||
props:['detailId','info'],
|
||||
data(){
|
||||
return{
|
||||
listData:[],
|
||||
checkNum: 0,
|
||||
dangerEngineering: {},
|
||||
isDisabled: false
|
||||
isDisabled: false,
|
||||
userInfo:{}
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.userInfo = JSON.parse(uni.getStorageSync('userInfo'))
|
||||
},
|
||||
created(){
|
||||
this.initData()
|
||||
this.getDEById()
|
||||
this.getApply()
|
||||
},
|
||||
onShow() {
|
||||
this.getApply()
|
||||
},
|
||||
methods:{
|
||||
initData(){
|
||||
this.sendRequest({
|
||||
@ -76,13 +83,19 @@
|
||||
uni.hideLoading()
|
||||
console.log("xmgl/xzDangerousEngineeringAcceptance/list",res);
|
||||
let result = res.result
|
||||
if(res.result.length>0){
|
||||
if(res.result[0].acceptanceResult === null) this.isDisabled = true
|
||||
if(res.result[0].acceptanceResult === 1) this.isDisabled = true
|
||||
if(res.result[0].acceptanceResult === 2) this.isDisabled = false
|
||||
console.log(this.info,"8888888888888888888888888888888");
|
||||
if(this.userInfo.accountType != 6 || this.userInfo.userId == this.info.personLiableId){
|
||||
if(res.result.length>0){
|
||||
if(res.result[0].acceptanceResult === null) this.isDisabled = true
|
||||
if(res.result[0].acceptanceResult === 1) this.isDisabled = true
|
||||
if(res.result[0].acceptanceResult === 2) this.isDisabled = false
|
||||
}else{
|
||||
this.isDisabled = false
|
||||
}
|
||||
}else{
|
||||
this.isDisabled = false
|
||||
this.isDisabled = true
|
||||
}
|
||||
console.log(this.isDisabled,"999999999999999999999999999");
|
||||
}
|
||||
})
|
||||
},
|
||||
@ -123,17 +136,26 @@
|
||||
})
|
||||
},
|
||||
disabledTip(){
|
||||
if(this.dangerEngineering.finalAcceptanceStatus === 2){
|
||||
if(this.userInfo.accountType != 6 || this.userInfo.userId == this.info.personLiableId){
|
||||
if(this.dangerEngineering.finalAcceptanceStatus === 2){
|
||||
uni.showToast({
|
||||
title: '该项危大工程已闭合,请勿重复操作',
|
||||
icon: "none",
|
||||
duration: 2000
|
||||
});
|
||||
return;
|
||||
}
|
||||
if(this.isDisabled){
|
||||
uni.showToast({
|
||||
title: '等待验收中,请勿重复操作',
|
||||
icon: "none",
|
||||
duration: 2000
|
||||
});
|
||||
return;
|
||||
}
|
||||
}else{
|
||||
uni.showToast({
|
||||
title: '该项危大工程已闭合,请勿重复操作',
|
||||
icon: "none",
|
||||
duration: 2000
|
||||
});
|
||||
return;
|
||||
}
|
||||
if(this.isDisabled){
|
||||
uni.showToast({
|
||||
title: '等待验收中,请勿重复操作',
|
||||
title: '您没有权限操作!',
|
||||
icon: "none",
|
||||
duration: 2000
|
||||
});
|
||||
|
||||
@ -68,7 +68,8 @@
|
||||
</view>
|
||||
<!-- <view class="add-btn" v-if="activeIndex != 7 && activeIndex != 2 && !(activeIndex == 1 && detailData.engineeringState == 3) -->
|
||||
<view class="add-btn" v-if="activeIndex != 7 && activeIndex != 2
|
||||
&& COMPANY != 'longguang' && detailData.finalAcceptanceStatus !== 2 && isShowBtn && btnAuth"
|
||||
&& COMPANY != 'longguang' && detailData.finalAcceptanceStatus !== 2 && isShowBtn && btnAuth
|
||||
&& userInfo.accountType != 6 || userInfo.userId == detailData.personLiableId"
|
||||
@click="addForm">
|
||||
<uni-icons v-if="activeIndex == 5" type="camera" size="30" color="#fff"></uni-icons>
|
||||
<uni-icons v-else type="plusempty" size="30" color="#fff"></uni-icons>
|
||||
@ -135,7 +136,8 @@
|
||||
detailId: "",
|
||||
detailData:{},
|
||||
isShowBtn: null,
|
||||
btnAuth: true
|
||||
btnAuth: true,
|
||||
userInfo:{},
|
||||
}
|
||||
},
|
||||
onReachBottom() {
|
||||
@ -163,6 +165,7 @@
|
||||
// this.initData()
|
||||
},
|
||||
mounted() {
|
||||
this.userInfo = JSON.parse(uni.getStorageSync('userInfo'))
|
||||
},
|
||||
methods:{
|
||||
initData(){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user