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