|
@@ -66,7 +66,7 @@
|
|
<view class="filterBtnWrap" :style="{paddingBottom:i==2?'20px':0}">
|
|
<view class="filterBtnWrap" :style="{paddingBottom:i==2?'20px':0}">
|
|
<com-button v-for="(item, index) in v.list" :btnText="item.label" :width="`${32}%`" :height="80" :marginBottom="20"
|
|
<com-button v-for="(item, index) in v.list" :btnText="item.label" :width="`${32}%`" :height="80" :marginBottom="20"
|
|
:marginRight="(index+1)%3==0?0:`2%`"
|
|
:marginRight="(index+1)%3==0?0:`2%`"
|
|
- :type="setFilterBtnType(item.value,v.key)" v-on:btnClick="btnClick(item.value,v.key)" />
|
|
|
|
|
|
+ :type="setFilterBtnType(item.value,v.key)" v-on:btnClick="btnClick(item.value,v.key,v.code)" />
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -210,7 +210,8 @@
|
|
active:{
|
|
active:{
|
|
result:['全部'],
|
|
result:['全部'],
|
|
checkStatus:'全部',
|
|
checkStatus:'全部',
|
|
- other:'全部'
|
|
|
|
|
|
+ other:'全部',
|
|
|
|
+ code:-1,
|
|
}, //筛选tab下标
|
|
}, //筛选tab下标
|
|
checkId: '',
|
|
checkId: '',
|
|
deptId: '',
|
|
deptId: '',
|
|
@@ -230,7 +231,8 @@
|
|
notApplicableList: [], //保存本次check的查核项id
|
|
notApplicableList: [], //保存本次check的查核项id
|
|
scoreType:null, //计分方式类型 add by yfb 20230417
|
|
scoreType:null, //计分方式类型 add by yfb 20230417
|
|
customScoreTotal:null, //自定义计分总分分值
|
|
customScoreTotal:null, //自定义计分总分分值
|
|
- deductPointTotal:null, //扣分汇总
|
|
|
|
|
|
+ deductPointTotal:null, //扣分汇总
|
|
|
|
+ iOrder:1,// 查核项明细中,下一步顺序是否按要点结束,1:按要点结束;2:按顺序结束
|
|
};
|
|
};
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -287,7 +289,8 @@
|
|
functionId, //计划id 用于自查督查
|
|
functionId, //计划id 用于自查督查
|
|
departmentId,//科室id 用于自查督查
|
|
departmentId,//科室id 用于自查督查
|
|
systemSituationType,
|
|
systemSituationType,
|
|
- pointsetType, //计分方式类型 add by yfb 20230417
|
|
|
|
|
|
+ pointsetType, //计分方式类型 add by yfb 20230417
|
|
|
|
+ checkOrder,//下一项 功能类型 add by yfb 20230609
|
|
}) {
|
|
}) {
|
|
|
|
|
|
this.deptId = deptId;
|
|
this.deptId = deptId;
|
|
@@ -313,10 +316,10 @@
|
|
if(this.currentSelectedInvestigationUser){
|
|
if(this.currentSelectedInvestigationUser){
|
|
this.getFilterList(checkId,deptId,this.currentSelectedInvestigationUser.investigationId);
|
|
this.getFilterList(checkId,deptId,this.currentSelectedInvestigationUser.investigationId);
|
|
}else{
|
|
}else{
|
|
- this.getFilterList(checkId,deptId?deptId:departmentId);
|
|
|
|
|
|
+ this.getFilterList(checkId?checkId:functionId,deptId?deptId:departmentId);
|
|
//this.getFilterList(checkId,departmentId);
|
|
//this.getFilterList(checkId,departmentId);
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ this.iOrder=checkOrder;
|
|
},
|
|
},
|
|
onShow: function() {
|
|
onShow: function() {
|
|
if (this.ifReloadPageData) {
|
|
if (this.ifReloadPageData) {
|
|
@@ -357,27 +360,27 @@
|
|
* @param {number} responsibleUserId 责任对象id 非必传
|
|
* @param {number} responsibleUserId 责任对象id 非必传
|
|
*/
|
|
*/
|
|
getFilterList(checkId,deptId,responsibleUserId){
|
|
getFilterList(checkId,deptId,responsibleUserId){
|
|
- console.log('2023052302 dept',deptId);
|
|
|
|
this.$store.dispatch({
|
|
this.$store.dispatch({
|
|
type: 'checkMainPoints/commActions',
|
|
type: 'checkMainPoints/commActions',
|
|
key: 'getPointConditions',
|
|
key: 'getPointConditions',
|
|
data: {
|
|
data: {
|
|
checkId:checkId,
|
|
checkId:checkId,
|
|
responsibleUserId,
|
|
responsibleUserId,
|
|
- deptId:deptId
|
|
|
|
|
|
+ deptId:deptId,
|
|
|
|
+ indicatorType:this.isZichaDucha?1:0 //0 普通的 1自查督查
|
|
}
|
|
}
|
|
}).then(data=>{
|
|
}).then(data=>{
|
|
- console.log('2023052205 data',data);
|
|
|
|
|
|
+
|
|
const {checkResults=[],checkStatuses=[],others=[]} = data;
|
|
const {checkResults=[],checkStatuses=[],others=[]} = data;
|
|
- const _checkResults = checkResults.map(t=>({label:`${t.value}(${t.num})`,id:Math.random(),value:t.value}));
|
|
|
|
- const _checkStatuses = checkStatuses.map(t=>({label:`${t.value}(${t.num})`,id:Math.random(),value:t.value}));
|
|
|
|
- const _others = others.map(t=>({label:`${t.value}(${t.num})`,id:Math.random(),value:t.value}));
|
|
|
|
|
|
+ const _checkResults = checkResults.map(t=>({label:`${t.value}(${t.num})`,id:Math.random(),value:t.value,code:t.code}));
|
|
|
|
+ const _checkStatuses = checkStatuses.map(t=>({label:`${t.value}(${t.num})`,id:Math.random(),value:t.value,code:t.code}));
|
|
|
|
+ const _others = others.map(t=>({label:`${t.value}(${t.num})`,id:Math.random(),value:t.value,code:t.code}));
|
|
this.btnArr = [
|
|
this.btnArr = [
|
|
{key:'查核状态',list:_checkStatuses},
|
|
{key:'查核状态',list:_checkStatuses},
|
|
{key:'查核结果',list:_checkResults},
|
|
{key:'查核结果',list:_checkResults},
|
|
{key:'其他',list:_others},
|
|
{key:'其他',list:_others},
|
|
];
|
|
];
|
|
- console.log('2023052205',this.btnArr);
|
|
|
|
|
|
+
|
|
})
|
|
})
|
|
},
|
|
},
|
|
//绑定当事人
|
|
//绑定当事人
|
|
@@ -441,6 +444,7 @@
|
|
loadItemData() {
|
|
loadItemData() {
|
|
|
|
|
|
if(this.isZichaDucha){
|
|
if(this.isZichaDucha){
|
|
|
|
+
|
|
//自查督查的情况下
|
|
//自查督查的情况下
|
|
this.$store.dispatch({
|
|
this.$store.dispatch({
|
|
type: 'checkMainPoints/commActions',
|
|
type: 'checkMainPoints/commActions',
|
|
@@ -448,9 +452,11 @@
|
|
data:{
|
|
data:{
|
|
functionId:this.functionId,
|
|
functionId:this.functionId,
|
|
// filter:
|
|
// filter:
|
|
|
|
+ checkStatus:this.active.checkStatus.code,
|
|
|
|
+ checkResult:this.active.result.code,
|
|
|
|
+ other:this.active.other.code
|
|
}
|
|
}
|
|
}).then(data => {
|
|
}).then(data => {
|
|
- console.log('2023052306 test',data);
|
|
|
|
if (data) {
|
|
if (data) {
|
|
let renderList = data.checkDetailMapResponses?data.checkDetailMapResponses:[];
|
|
let renderList = data.checkDetailMapResponses?data.checkDetailMapResponses:[];
|
|
|
|
|
|
@@ -471,11 +477,9 @@
|
|
if (data.scoreType==2){
|
|
if (data.scoreType==2){
|
|
this.totalScore=data.customScore;
|
|
this.totalScore=data.customScore;
|
|
this.currentScore=data.customScoreTotal;
|
|
this.currentScore=data.customScoreTotal;
|
|
- console.log('true');
|
|
|
|
}else{
|
|
}else{
|
|
this.currentScore = data.getScore;
|
|
this.currentScore = data.getScore;
|
|
this.totalScore = data.totalScore;
|
|
this.totalScore = data.totalScore;
|
|
- console.log('false');
|
|
|
|
}
|
|
}
|
|
this.totalSubtotalScore = data.totalSubtotalScore;
|
|
this.totalSubtotalScore = data.totalSubtotalScore;
|
|
this.checkDetailMapResponses = renderList;
|
|
this.checkDetailMapResponses = renderList;
|
|
@@ -490,13 +494,15 @@
|
|
});
|
|
});
|
|
//检查是否需要弹绑定当事人弹窗
|
|
//检查是否需要弹绑定当事人弹窗
|
|
//this.toBindPeople();
|
|
//this.toBindPeople();
|
|
|
|
+
|
|
|
|
+ //add by yfb 20230609
|
|
|
|
+ this.iOrder=data.checkOrder;
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
- console.log('20230523',this.situationType,this.currentSelectedInvestigationUser);
|
|
|
|
//非自查督查的情况下
|
|
//非自查督查的情况下
|
|
if(this.situationType == 2&&!this.currentSelectedInvestigationUser){
|
|
if(this.situationType == 2&&!this.currentSelectedInvestigationUser){
|
|
//分页模式下且未选择访谈对象时拒绝请求数据同时清空历史数据
|
|
//分页模式下且未选择访谈对象时拒绝请求数据同时清空历史数据
|
|
@@ -628,7 +634,6 @@
|
|
if(!this.isZichaDucha){
|
|
if(!this.isZichaDucha){
|
|
//非自查督查
|
|
//非自查督查
|
|
let ids = [];
|
|
let ids = [];
|
|
- console.log('2023052203',item);
|
|
|
|
this.detailList.forEach(item => {
|
|
this.detailList.forEach(item => {
|
|
//筛选掉已查核项
|
|
//筛选掉已查核项
|
|
const temp = item.responseList.filter(v => !v.checkResult);
|
|
const temp = item.responseList.filter(v => !v.checkResult);
|
|
@@ -695,10 +700,11 @@
|
|
}
|
|
}
|
|
|
|
|
|
},
|
|
},
|
|
- btnClick(val,key) {
|
|
|
|
|
|
+ btnClick(val,key,code) {
|
|
const _active = this.active;
|
|
const _active = this.active;
|
|
if(key == '查核结果'){
|
|
if(key == '查核结果'){
|
|
- const index = _active.result.findIndex(t=>t == val);
|
|
|
|
|
|
+
|
|
|
|
+ const index = _active.result.findIndex(t=>t == val);
|
|
if(index >= 0){
|
|
if(index >= 0){
|
|
//当前已存在该id
|
|
//当前已存在该id
|
|
_active.result.splice(index,1);
|
|
_active.result.splice(index,1);
|
|
@@ -713,7 +719,7 @@
|
|
if(key == '其他'){
|
|
if(key == '其他'){
|
|
_active.other = val
|
|
_active.other = val
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ _active.code=code;
|
|
this.active = _active;
|
|
this.active = _active;
|
|
//更新列表
|
|
//更新列表
|
|
this.loadItemData();
|
|
this.loadItemData();
|
|
@@ -807,7 +813,10 @@
|
|
});
|
|
});
|
|
});
|
|
});
|
|
//检查是否需要弹绑定当事人弹窗
|
|
//检查是否需要弹绑定当事人弹窗
|
|
- this.toBindPeople();
|
|
|
|
|
|
+ this.toBindPeople();
|
|
|
|
+
|
|
|
|
+ //add by yfb 20230609
|
|
|
|
+ this.iOrder=data.checkOrder;
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
@@ -836,14 +845,23 @@
|
|
}
|
|
}
|
|
|
|
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
- url: `/pages/${str}?id=${child.id}&checkPointId=${checkPointId}&checkItemId=${child.checkItemId}&situationType=${this.situationType}&isZichaDucha=${this.isZichaDucha}&departmentId=${this.departmentId}`,
|
|
|
|
- success: function(res) {
|
|
|
|
- const currentGroup = that.detailList.filter(item => item.checkPointId ==
|
|
|
|
- checkPointId);
|
|
|
|
- // 通过eventChannel向被打开页面传送数据
|
|
|
|
- res.eventChannel.emit('acceptDataFromOpenerPage', {
|
|
|
|
- data: currentGroup
|
|
|
|
- });
|
|
|
|
|
|
+ url: `/pages/${str}?id=${child.id}&checkPointId=${checkPointId}&checkItemId=${child.checkItemId}&situationType=${this.situationType}&isZichaDucha=${this.isZichaDucha}&departmentId=${this.departmentId}&checkOrder=${this.iOrder}&systemSituationType=${this.systemSituationType}`,
|
|
|
|
+ success: function(res) {
|
|
|
|
+
|
|
|
|
+ if (that.iOrder==1){
|
|
|
|
+ const currentGroup = that.detailList.filter(item => item.checkPointId ==
|
|
|
|
+ checkPointId);
|
|
|
|
+ // 通过eventChannel向被打开页面传送数据
|
|
|
|
+ res.eventChannel.emit('acceptDataFromOpenerPage', {
|
|
|
|
+ data: currentGroup
|
|
|
|
+ });
|
|
|
|
+ }else if (that.iOrder==2){
|
|
|
|
+
|
|
|
|
+ // 通过eventChannel向被打开页面传送数据
|
|
|
|
+ res.eventChannel.emit('acceptDataFromOpenerPage', {
|
|
|
|
+ data: that.detailList
|
|
|
|
+ });
|
|
|
|
+ }
|
|
}
|
|
}
|
|
});
|
|
});
|
|
}
|
|
}
|