|
@@ -6,14 +6,6 @@
|
|
|
<view class="modalBar">请选择查核结果</view>
|
|
|
<scroll-view class="scroll" scroll-y="true" >
|
|
|
<view v-for="item in checkItemResultList" class="list" :key="item.id" @click="selectResultHandle(item.resultName)" >{{item.resultName}}</view>
|
|
|
- <!-- <view class="list">无缺失</view>
|
|
|
- <view class="list">主要缺失</view>
|
|
|
- <view class="list" >不适用</view>
|
|
|
- <view class="list">无缺失</view>
|
|
|
- <view class="list">主要缺失</view>
|
|
|
- <view class="list" >不适用</view>
|
|
|
- <view class="list">无缺失</view>
|
|
|
- <view class="list">主要缺失</view> -->
|
|
|
</scroll-view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -62,8 +54,8 @@
|
|
|
<view
|
|
|
class="checked-checkItem"
|
|
|
v-for="item in checkConfiglist"
|
|
|
- :key="item.value"
|
|
|
- @click="checkedOne(item.attr)"
|
|
|
+ :key="item.attr"
|
|
|
+ @click="checkedOne(item)"
|
|
|
:style="
|
|
|
Index == item.attr
|
|
|
? { backgroundColor: '#3377FF', color: '#fff' }
|
|
@@ -79,96 +71,7 @@
|
|
|
<text class="lastName">上次</text></view
|
|
|
>
|
|
|
</view>
|
|
|
- <!-- <view
|
|
|
- class="checked-checkItem"
|
|
|
- @click="checkedOne(1)"
|
|
|
- :style="
|
|
|
- Index == 1
|
|
|
- ? { backgroundColor: '#3377FF', color: '#fff' }
|
|
|
- : { backgroundColor: '#EBEFF7' }
|
|
|
- "
|
|
|
- >不适用
|
|
|
- <view v-if="lastIndex == 1"
|
|
|
- ><image
|
|
|
- src="../../static/shangci.png"
|
|
|
- mode=""
|
|
|
- class="img"
|
|
|
- ></image>
|
|
|
- <text class="lastName">上次</text></view
|
|
|
- >
|
|
|
- </view> -->
|
|
|
- <!-- <view
|
|
|
- class="checked-checkItem"
|
|
|
- @click="checkedOne(2)"
|
|
|
- :style="
|
|
|
- Index == 2
|
|
|
- ? { backgroundColor: '#3377FF', color: '#fff' }
|
|
|
- : { backgroundColor: '#EBEFF7' }
|
|
|
- "
|
|
|
- >无缺失
|
|
|
- <view v-if="lastIndex == 2"
|
|
|
- ><image
|
|
|
- src="../../static/shangci.png"
|
|
|
- mode=""
|
|
|
- class="img"
|
|
|
- ></image>
|
|
|
- <text class="lastName">上次</text></view
|
|
|
- >
|
|
|
- </view>
|
|
|
- <view
|
|
|
- class="checked-checkItem"
|
|
|
- @click="checkedOne(3)"
|
|
|
- :style="
|
|
|
- Index == 3
|
|
|
- ? { backgroundColor: '#3377FF', color: '#fff' }
|
|
|
- : { backgroundColor: '#EBEFF7' }
|
|
|
- "
|
|
|
- >主要缺失
|
|
|
- <view v-if="lastIndex == 3"
|
|
|
- ><image
|
|
|
- src="../../static/shangci.png"
|
|
|
- mode=""
|
|
|
- class="img"
|
|
|
- ></image>
|
|
|
- <text class="lastName">上次</text></view
|
|
|
- >
|
|
|
- </view>
|
|
|
- <view
|
|
|
- class="checked-checkItem"
|
|
|
- @click="checkedOne(4)"
|
|
|
- :style="
|
|
|
- Index == 4
|
|
|
- ? { backgroundColor: '#3377FF', color: '#fff' }
|
|
|
- : { backgroundColor: '#EBEFF7' }
|
|
|
- "
|
|
|
- >次要缺失
|
|
|
- <view v-if="lastIndex == 4"
|
|
|
- ><image
|
|
|
- src="../../static/shangci.png"
|
|
|
- mode=""
|
|
|
- class="img"
|
|
|
- ></image>
|
|
|
- <text class="lastName">上次</text></view
|
|
|
- >
|
|
|
- </view>
|
|
|
- <view
|
|
|
- class="checked-checkItem"
|
|
|
- @click="checkedOne(5)"
|
|
|
- :style="
|
|
|
- Index == 5
|
|
|
- ? { backgroundColor: '#3377FF', color: '#fff' }
|
|
|
- : { backgroundColor: '#EBEFF7' }
|
|
|
- "
|
|
|
- >观察事项
|
|
|
- <view v-if="lastIndex == 5"
|
|
|
- ><image
|
|
|
- src="../../static/shangci.png"
|
|
|
- mode=""
|
|
|
- class="img"
|
|
|
- ></image>
|
|
|
- <text class="lastName">上次</text></view
|
|
|
- >
|
|
|
- </view> -->
|
|
|
+
|
|
|
</view>
|
|
|
<view class="more" @click="toHistory">
|
|
|
<text>查看改善历史</text>
|
|
@@ -226,9 +129,8 @@
|
|
|
<textarea
|
|
|
maxlength="300"
|
|
|
class="seeTextarea"
|
|
|
- value=""
|
|
|
placeholder="请输入"
|
|
|
- :value="recordList[0].talkResult"
|
|
|
+ :value="recordList[0].seeResult"
|
|
|
@blur="changeTextarea2"
|
|
|
></textarea>
|
|
|
</view>
|
|
@@ -283,6 +185,8 @@ export default {
|
|
|
currentEditTextAreaIndex:'',
|
|
|
checkItemResultList:[],//查核结果说明下拉列表
|
|
|
currentSelect:'',
|
|
|
+ checkItemScore:null,//查核选中的分数
|
|
|
+ checkItemValue:null,//查核选中的分数占比
|
|
|
checkConfiglist:[],//查核情况可配置列表
|
|
|
};
|
|
|
},
|
|
@@ -303,12 +207,12 @@ export default {
|
|
|
this.showSelectModal = true;
|
|
|
},
|
|
|
selectResultHandle(val){
|
|
|
- console.log({val});
|
|
|
- console.log('currentEditTextAreaIndex',this.currentEditTextAreaIndex);
|
|
|
+ // console.log({val});
|
|
|
+ // console.log('currentEditTextAreaIndex',this.currentEditTextAreaIndex);
|
|
|
if(this.data.checkModelName == '访谈'){
|
|
|
this.talkList[this.currentEditTextAreaIndex].talkResult = val;
|
|
|
}else {
|
|
|
- this.recordList[0].talkResult = val;
|
|
|
+ this.recordList[0].seeResult = val;
|
|
|
}
|
|
|
this.showSelectModal = false;
|
|
|
},
|
|
@@ -324,7 +228,7 @@ export default {
|
|
|
}).then((res) => {
|
|
|
this.id = id;
|
|
|
if (res) {
|
|
|
- this.data = res;
|
|
|
+ this.data = res;
|
|
|
if (res && res.lastResult == "不适用") {
|
|
|
// this.lastIndex = 1;
|
|
|
this.lastIndex = res.lastResult;
|
|
@@ -352,9 +256,17 @@ export default {
|
|
|
this.resultConfigList = res ? res : [];
|
|
|
});
|
|
|
},
|
|
|
+ //查核点击回调
|
|
|
checkedOne(data) {
|
|
|
- this.Index = data;
|
|
|
- this.data.checkResult = data;
|
|
|
+ const parsedData = JSON.parse(JSON.stringify(data));
|
|
|
+ console.log({parsedData})
|
|
|
+ this.Index = parsedData.attr;
|
|
|
+ this.data.checkResult = parsedData.attr;
|
|
|
+ this.checkItemScore = parsedData.score;
|
|
|
+ this.checkItemValue = parsedData.value;
|
|
|
+
|
|
|
+ // this.Index = data;
|
|
|
+ // this.data.checkResult = data;
|
|
|
// if (data == 1) {
|
|
|
// this.data.checkResult = "不适用";
|
|
|
// } else if (data == 2) {
|
|
@@ -413,6 +325,8 @@ export default {
|
|
|
id: this.data.id,
|
|
|
checkResult: this.data.checkResult,
|
|
|
checkResultRequestList: [],
|
|
|
+ checkItemScore:this.checkItemScore,
|
|
|
+ value:this.checkItemValue
|
|
|
};
|
|
|
if (this.data.checkModelName == "访谈") {
|
|
|
let list = [];
|
|
@@ -430,6 +344,9 @@ export default {
|
|
|
checkResultDescribe: this.talkList[i].talkResult,
|
|
|
checkResultUrl: path,
|
|
|
};
|
|
|
+
|
|
|
+ // console.log({'访谈':item});
|
|
|
+ // return;
|
|
|
list.push(item);
|
|
|
}
|
|
|
params.checkResultRequestList = list;
|
|
@@ -448,13 +365,15 @@ export default {
|
|
|
checkResultDescribe: this.recordList[0].seeResult,
|
|
|
checkResultUrl: path,
|
|
|
};
|
|
|
+ // console.log({item});
|
|
|
+ // return;
|
|
|
list.push(item);
|
|
|
params.checkResultRequestList = list;
|
|
|
}
|
|
|
- const checkConfiglist = JSON.parse(JSON.stringify(this.checkConfiglist))
|
|
|
- // console.log({'checkConfiglist':this.checkConfiglist});
|
|
|
- // console.log(checkConfiglist[0].attr);
|
|
|
+ const checkConfiglist = JSON.parse(JSON.stringify(this.checkConfiglist));
|
|
|
|
|
|
+ // console.log({params});
|
|
|
+ // return;
|
|
|
this.$store.dispatch({
|
|
|
type: "mainPointsDetail/commActions",
|
|
|
payload: {
|
|
@@ -473,6 +392,7 @@ export default {
|
|
|
checkConfiglist[i].resultType == 3)
|
|
|
) {
|
|
|
console.log('开始提交改善前准备');
|
|
|
+
|
|
|
let param = {
|
|
|
situationId: this.data.situationId,
|
|
|
situationName: this.data.situationName,
|
|
@@ -503,13 +423,14 @@ export default {
|
|
|
...param,
|
|
|
},
|
|
|
},
|
|
|
- }).then(() => {
|
|
|
- uni.navigateTo({
|
|
|
- url: `/pages/auditItemDetails/auditItemDetails?id=${this.data.id}&checkPointId=${this.checkPointId}`,
|
|
|
- });
|
|
|
- });
|
|
|
+ }).then(() => {
|
|
|
+
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
+ uni.navigateTo({
|
|
|
+ url: `/pages/auditItemDetails/auditItemDetails?id=${this.data.id}&checkPointId=${this.checkPointId}`,
|
|
|
+ });
|
|
|
}
|
|
|
});
|
|
|
} else {
|
|
@@ -554,6 +475,14 @@ export default {
|
|
|
*/
|
|
|
|
|
|
},
|
|
|
+ clearForm(){
|
|
|
+ this.Index = '';
|
|
|
+ if(this.data.checkModelName == '访谈'){
|
|
|
+ this.talkList[this.currentEditTextAreaIndex].talkResult = '';
|
|
|
+ }else {
|
|
|
+ this.recordList[0].talkResult ='';
|
|
|
+ }
|
|
|
+ },
|
|
|
goToPrevPage(){
|
|
|
// window.history.back();
|
|
|
// const pages = getCurrentPages();
|
|
@@ -589,6 +518,7 @@ export default {
|
|
|
let needItemIndex = num>0?current[0].index+1:current[0].index-1;
|
|
|
let needItemId = this.itemBelongGroup[needItemIndex].id;
|
|
|
// console.log({needItemIndex,needItemId});
|
|
|
+ this.clearForm();
|
|
|
this.checkTaskDetail(needItemId);
|
|
|
},
|
|
|
// 获取查核项可配置列表
|