所有节点修改只能看到当前节点及前节点打回的数据

修改检查项确认人列表没有做权限控制
所有节点打回时添加Loading加载效果,修改所有的打回弹窗提示框样式
bug优化0603
WenShiJun 2024-06-25 17:46:55 +08:00
parent 8e7367cdd3
commit cd5ce6eddc
13 changed files with 242 additions and 169 deletions

View File

@ -422,11 +422,11 @@
<button :loading="buttonloading" class="cu-btn bg-green margin-tb-sm lg" @click="$noMultipleClicks(goSubmit,'8')"> </button>
</view>
<view class="cu-modal" :class="{'show': showRejectionConfirm}">
<view class="cu-dialog">
<view class="cu-dialog-content">是否确定打回</view>
<view class="cu-dialog-btns">
<button class="cu-btn bg-gray sm" @click="showRejectionConfirm = false">取消</button>
<button class="cu-btn bg-red sm" @click="$noMultipleClicks(goSubmit,'-8')"></button>
<view class="cu-dialog" style="width: 80%; padding: 30upx;">
<view class="cu-dialog-content" style="font-size: 36upx; padding: 20upx;">是否确定打回</view>
<view class="cu-dialog-btns" style="display: flex; justify-content: space-around; margin-top: 20upx;">
<button class="cu-btn bg-gray sm" @click="showRejectionConfirm = false" style="width: 40%; font-size: 30upx;">取消</button>
<button class="cu-btn bg-red sm" @click="handleRejectionConfirm" style="width: 40%; font-size: 30upx;"></button>
</view>
</view>
</view>

View File

@ -560,11 +560,12 @@
uni.hideLoading();//
if (res.data != null) {
_this.totalPage = res.data.page.totalPage;
let filteredList = res.data.varList.filter(item => item.APPLY_STATUS != '-1.5' && item.APPLY_STATUS != '-2' && item.APPLY_STATUS != '-4' && item.APPLY_STATUS != '-5' && item.APPLY_STATUS != '-6' && item.APPLY_STATUS != '-7');
if(_this.list.length == 0){
_this.list = res.data.varList;
_this.list = filteredList;
}else{
if(res.data.varList != null){
_this.list2 = res.data.varList;
_this.list2 = filteredList;
_this.list = _this.list.concat(_this.list2);
}
}

View File

@ -370,11 +370,11 @@
<button :loading="buttonloading" class="cu-btn bg-green margin-tb-sm lg" @click="$noMultipleClicks(goSubmit,'6')"> </button>
</view>
<view class="cu-modal" :class="{'show': showRejectionConfirm}">
<view class="cu-dialog">
<view class="cu-dialog-content">是否确定打回</view>
<view class="cu-dialog-btns">
<button class="cu-btn bg-gray sm" @click="showRejectionConfirm = false">取消</button>
<button class="cu-btn bg-red sm" @click="$noMultipleClicks(goSubmit,'-6')"></button>
<view class="cu-dialog" style="width: 80%; padding: 30upx;">
<view class="cu-dialog-content" style="font-size: 36upx; padding: 20upx;">是否确定打回</view>
<view class="cu-dialog-btns" style="display: flex; justify-content: space-around; margin-top: 20upx;">
<button class="cu-btn bg-gray sm" @click="showRejectionConfirm = false" style="width: 40%; font-size: 30upx;">取消</button>
<button class="cu-btn bg-red sm" @click="handleRejectionConfirm" style="width: 40%; font-size: 30upx;"></button>
</view>
</view>
</view>
@ -585,6 +585,15 @@
return;
}
this.showRejectionConfirm = true;
},
handleRejectionConfirm() {
this.showRejectionConfirm = false;
uni.showLoading({
title: '加载中'
});
this.goSubmit('-6').finally(() => {
uni.hideLoading();
});
},
goSubmit(STATUS){
var _this = this;

View File

@ -561,11 +561,12 @@
uni.hideLoading();//
if (res.data != null) {
_this.totalPage = res.data.page.totalPage;
let filteredList = res.data.varList.filter(item => item.APPLY_STATUS != '-1.5' && item.APPLY_STATUS != '-2' && item.APPLY_STATUS != '-4' && item.APPLY_STATUS != '-5');
if(_this.list.length == 0){
_this.list = res.data.varList;
_this.list = filteredList;
}else{
if(res.data.varList != null){
_this.list2 = res.data.varList;
_this.list2 = filteredList;
_this.list = _this.list.concat(_this.list2);
}
}

View File

@ -409,11 +409,11 @@
<button :loading="buttonloading" class="cu-btn bg-green margin-tb-sm lg" @click="$noMultipleClicks(goSubmit,'5')"> </button>
</view>
<view class="cu-modal" :class="{'show': showRejectionConfirm}">
<view class="cu-dialog">
<view class="cu-dialog-content">是否确定打回</view>
<view class="cu-dialog-btns">
<button class="cu-btn bg-gray sm" @click="showRejectionConfirm = false">取消</button>
<button class="cu-btn bg-red sm" @click="$noMultipleClicks(goSubmit,'-5')"></button>
<view class="cu-dialog" style="width: 80%; padding: 30upx;">
<view class="cu-dialog-content" style="font-size: 36upx; padding: 20upx;">是否确定打回</view>
<view class="cu-dialog-btns" style="display: flex; justify-content: space-around; margin-top: 20upx;">
<button class="cu-btn bg-gray sm" @click="showRejectionConfirm = false" style="width: 40%; font-size: 30upx;">取消</button>
<button class="cu-btn bg-red sm" @click="handleRejectionConfirm" style="width: 40%; font-size: 30upx;"></button>
</view>
</view>
</view>
@ -621,6 +621,15 @@
return;
}
this.showRejectionConfirm = true;
},
handleRejectionConfirm() {
this.showRejectionConfirm = false;
uni.showLoading({
title: '加载中'
});
this.goSubmit('-5').finally(() => {
uni.hideLoading();
});
},
goSubmit(STATUS){
var _this = this;

View File

@ -561,11 +561,12 @@
uni.hideLoading();//
if (res.data != null) {
_this.totalPage = res.data.page.totalPage;
let filteredList = res.data.varList.filter(item => item.APPLY_STATUS != '-1.5' && item.APPLY_STATUS != '-2' && item.APPLY_STATUS != '-4');
if(_this.list.length == 0){
_this.list = res.data.varList;
_this.list = filteredList;
}else{
if(res.data.varList != null){
_this.list2 = res.data.varList;
_this.list2 = filteredList;
_this.list = _this.list.concat(_this.list2);
}
}

View File

@ -305,11 +305,11 @@
<button :loading="buttonloading" class="cu-btn bg-green margin-tb-sm lg" @click="$noMultipleClicks(goSubmit,'1.5')"> </button>
</view>
<view class="cu-modal" :class="{'show': showRejectionConfirm}">
<view class="cu-dialog">
<view class="cu-dialog-content">是否确定打回</view>
<view class="cu-dialog-btns">
<button class="cu-btn bg-gray sm" @click="showRejectionConfirm = false">取消</button>
<button class="cu-btn bg-red sm" @click="$noMultipleClicks(goSubmit,'-1.5')"></button>
<view class="cu-dialog" style="width: 80%; padding: 30upx;">
<view class="cu-dialog-content" style="font-size: 36upx; padding: 20upx;">是否确定打回</view>
<view class="cu-dialog-btns" style="display: flex; justify-content: space-around; margin-top: 20upx;">
<button class="cu-btn bg-gray sm" @click="showRejectionConfirm = false" style="width: 40%; font-size: 30upx;">取消</button>
<button class="cu-btn bg-red sm" @click="handleRejectionConfirm" style="width: 40%; font-size: 30upx;"></button>
</view>
</view>
</view>
@ -337,6 +337,7 @@
data() {
return {
showRejectionConfirm: false,
loadingRejection: false,
baseImgPath:baseImgPath,
buttonloading: false,
isUps:false,
@ -495,7 +496,19 @@
}
this.showRejectionConfirm = true;
},
handleRejectionConfirm() {
this.showRejectionConfirm = false;
uni.showLoading({
title: '加载中'
});
this.goSubmit('-1.5').finally(() => {
uni.hideLoading();
});
},
goSubmit(STATUS) {
return new Promise((resolve, reject) => {
var _this = this;
uni.showLoading({
title: '请稍候'
@ -508,6 +521,8 @@
title: '请签字',
duration: 1500
});
uni.hideLoading();
reject();
return;
}
}
@ -544,6 +559,7 @@
confirmText: '确定',
success: res => {
this.buttonloading = false;
resolve();
}
});
} else {
@ -565,6 +581,7 @@
});
_this.goback();
this.buttonloading = false;
resolve();
},
fail: (err) => {
uni.hideLoading();
@ -572,6 +589,7 @@
content: err.errMsg,
showCancel: false
});
reject();
}
});
}
@ -580,6 +598,7 @@
title: '错误',
duration: 2000
});
reject();
}
}
});
@ -602,6 +621,7 @@
});
_this.goback();
this.buttonloading = false;
resolve();
},
fail: (err) => {
uni.hideLoading();
@ -609,9 +629,11 @@
content: err.errMsg,
showCancel: false
});
reject();
}
});
}
});
},
//
getLimitSpace(){

View File

@ -348,11 +348,11 @@
<button :loading="buttonloading" class="cu-btn bg-green margin-tb-sm lg" @click="$noMultipleClicks(goSubmit,'4')"> </button>
</view>
<view class="cu-modal" :class="{'show': showRejectionConfirm}">
<view class="cu-dialog">
<view class="cu-dialog-content">是否确定打回</view>
<view class="cu-dialog-btns">
<button class="cu-btn bg-gray sm" @click="showRejectionConfirm = false">取消</button>
<button class="cu-btn bg-red sm" @click="$noMultipleClicks(goSubmit,'-4')"></button>
<view class="cu-dialog" style="width: 80%; padding: 30upx;">
<view class="cu-dialog-content" style="font-size: 36upx; padding: 20upx;">是否确定打回</view>
<view class="cu-dialog-btns" style="display: flex; justify-content: space-around; margin-top: 20upx;">
<button class="cu-btn bg-gray sm" @click="showRejectionConfirm = false" style="width: 40%; font-size: 30upx;">取消</button>
<button class="cu-btn bg-red sm" @click="handleRejectionConfirm" style="width: 40%; font-size: 30upx;"></button>
</view>
</view>
</view>
@ -558,6 +558,15 @@
}
this.showRejectionConfirm = true;
},
handleRejectionConfirm() {
this.showRejectionConfirm = false;
uni.showLoading({
title: '加载中'
});
this.goSubmit('-4').finally(() => {
uni.hideLoading();
});
},
goSubmit(STATUS) {
var _this = this;
uni.showLoading({

View File

@ -561,11 +561,12 @@
uni.hideLoading();//
if (res.data != null) {
_this.totalPage = res.data.page.totalPage;
let filteredList = res.data.varList.filter(item => item.APPLY_STATUS != '-1.5' && item.APPLY_STATUS != '-2');
if(_this.list.length == 0){
_this.list = res.data.varList;
_this.list = filteredList;
}else{
if(res.data.varList != null){
_this.list2 = res.data.varList;
_this.list2 = filteredList;
_this.list = _this.list.concat(_this.list2);
}
}

View File

@ -388,11 +388,11 @@
<button :loading="buttonloading" class="cu-btn bg-green margin-tb-sm lg" @click="$noMultipleClicks(goSubmit,'7')"> </button>
</view>
<view class="cu-modal" :class="{'show': showRejectionConfirm}">
<view class="cu-dialog">
<view class="cu-dialog-content">是否确定打回</view>
<view class="cu-dialog-btns">
<button class="cu-btn bg-gray sm" @click="showRejectionConfirm = false">取消</button>
<button class="cu-btn bg-red sm" @click="$noMultipleClicks(goSubmit,'-7')"></button>
<view class="cu-dialog" style="width: 80%; padding: 30upx;">
<view class="cu-dialog-content" style="font-size: 36upx; padding: 20upx;">是否确定打回</view>
<view class="cu-dialog-btns" style="display: flex; justify-content: space-around; margin-top: 20upx;">
<button class="cu-btn bg-gray sm" @click="showRejectionConfirm = false" style="width: 40%; font-size: 30upx;">取消</button>
<button class="cu-btn bg-red sm" @click="handleRejectionConfirm" style="width: 40%; font-size: 30upx;"></button>
</view>
</view>
</view>
@ -602,6 +602,15 @@
return;
}
this.showRejectionConfirm = true;
},
handleRejectionConfirm() {
this.showRejectionConfirm = false;
uni.showLoading({
title: '加载中'
});
this.goSubmit('-7').finally(() => {
uni.hideLoading();
});
},
goSubmit(STATUS) {
var _this = this;

View File

@ -578,11 +578,12 @@
uni.hideLoading();//
if (res.data != null) {
_this.totalPage = res.data.page.totalPage;
let filteredList = res.data.varList.filter(item => item.APPLY_STATUS != '-1.5' && item.APPLY_STATUS != '-2' && item.APPLY_STATUS != '-4' && item.APPLY_STATUS != '-5' && item.APPLY_STATUS != '-6');
if(_this.list.length == 0){
_this.list = res.data.varList;
_this.list = filteredList;
}else{
if(res.data.varList != null){
_this.list2 = res.data.varList;
_this.list2 = filteredList;
_this.list = _this.list.concat(_this.list2);
}
}

View File

@ -337,21 +337,21 @@
<button :loading="buttonloading" class="cu-btn bg-green margin-tb-sm lg" @click="$noMultipleClicks(goSubmit,'2')">
</button>
</view>
<!-- <view class="cu-modal" :class="{'show': showRejectionConfirm}">-->
<!-- <view class="cu-dialog">-->
<!-- <view class="cu-dialog-content">是否确定打回</view>-->
<!-- <view class="cu-dialog-btns">-->
<!-- <button class="cu-btn bg-gray sm" @click="showRejectionConfirm = false">取消</button>-->
<!-- <button class="cu-btn bg-red sm" @click="$noMultipleClicks(goSubmit,'-2')"></button>-->
<!-- </view>-->
<!-- </view>-->
<!-- </view>-->
<view class="cu-modal" :class="{'show': showRejectionConfirm}">
<view class="cu-dialog">
<view class="cu-dialog-content">是否确定打回</view>
<view class="cu-dialog-btns">
<button class="cu-btn bg-gray sm" @click="showRejectionConfirm = false">取消</button>
<button class="cu-btn bg-red sm" @click="$noMultipleClicks(goSubmit,'-2')"></button>
</view>
</view>
</view>
<view class="cu-modal" :class="{'show': showRejectionConfirm}">
<view class="cu-dialog">
<view class="cu-dialog-content">是否确定打回</view>
<view class="cu-dialog-btns">
<button class="cu-btn bg-gray sm" @click="showRejectionConfirm = false">取消</button>
<button class="cu-btn bg-red sm" @click="$noMultipleClicks(goSubmit,'-2')"></button>
<view class="cu-dialog" style="width: 80%; padding: 30upx;">
<view class="cu-dialog-content" style="font-size: 36upx; padding: 20upx;">是否确定打回</view>
<view class="cu-dialog-btns" style="display: flex; justify-content: space-around; margin-top: 20upx;">
<button class="cu-btn bg-gray sm" @click="showRejectionConfirm = false" style="width: 40%; font-size: 30upx;">取消</button>
<button class="cu-btn bg-red sm" @click="handleRejectionConfirm" style="width: 40%; font-size: 30upx;">确定</button>
</view>
</view>
</view>
@ -555,6 +555,15 @@ export default {
}
this.showRejectionConfirm = true;
},
handleRejectionConfirm() {
this.showRejectionConfirm = false;
uni.showLoading({
title: '加载中'
});
this.goSubmit('-2').finally(() => {
uni.hideLoading();
});
},
goSubmit(STATUS) {
var _this = this;
uni.showLoading({

View File

@ -559,11 +559,12 @@
uni.hideLoading();//
if (res.data != null) {
_this.totalPage = res.data.page.totalPage;
let filteredList = res.data.varList.filter(item => item.APPLY_STATUS != '-1.5');
if(_this.list.length == 0){
_this.list = res.data.varList;
_this.list = filteredList;
}else{
if(res.data.varList != null){
_this.list2 = res.data.varList;
if(filteredList != null){
_this.list2 = filteredList;
_this.list = _this.list.concat(_this.list2);
}
}