diff --git a/pages/apply/subPages/SK/safeCheckRecordSummaryEditNew.vue b/pages/apply/subPages/SK/safeCheckRecordSummaryEditNew.vue
index 5da819d..44e9172 100644
--- a/pages/apply/subPages/SK/safeCheckRecordSummaryEditNew.vue
+++ b/pages/apply/subPages/SK/safeCheckRecordSummaryEditNew.vue
@@ -61,7 +61,7 @@
检查内容
-
+
@@ -72,12 +72,12 @@
-
+
-
+
@@ -90,7 +90,7 @@
-
+
@@ -101,20 +101,20 @@
-
+
-
+
-
+
@@ -132,7 +132,7 @@
-
+
@@ -412,6 +412,11 @@
cancelDate() {
this.showPopupDate = false
},
+ handleDelQuestion(item) {
+ item.Nav_Question = {}
+ item.CHECK_QUESTION_ID = ''
+ this.$forceUpdate()
+ },
handleSelectorPeople(e) {
const {
index: key
@@ -487,16 +492,6 @@
},
-
- handleShowSheetForArea(item, todo) {
- const validDetails = this.model.Nav_CheckRecordDetails.filter(i => !i.IS_DELETED);
- const index = validDetails.indexOf(item);
- this.handleShowSheet({
- title: todo.title,
- name: todo.name,
- index: index
- });
- },
async handleShowSheet(p) {
const orgId = uni.getStorageSync('orgId')
const json = initFilter(orgId, "", "", 0, p.pageIndex ?? 1)
@@ -549,9 +544,9 @@
if (p.val) {
extendRule(json, 'DESCREPTION', 9, p.val);
}
- let data = this.model.Nav_CheckRecordDetails[p.index]
- if (data.CHECK_CONTENTS_ID && data.CHECK_CONTENTS_ID !== '') {
- extendRule(json, 'CHECK_CONTENTS_ID', 1, data.CHECK_CONTENTS_ID);
+
+ if (p.itemData.CHECK_CONTENTS_ID && p.itemData.CHECK_CONTENTS_ID !== '') {
+ extendRule(json, 'CHECK_CONTENTS_ID', 1, p.itemData.CHECK_CONTENTS_ID);
}
json.Sort = 'DESCREPTION'
dataSelect = await GetHiddenScripList(json).then(res => {
@@ -598,20 +593,17 @@
handleSelected(e) {
this.selectorInfo.showPopup = false
- const validDetails = this.model.Nav_CheckRecordDetails.filter(i => !i.IS_DELETED);
- const index = this.selectorInfo.index;
- const realIndex = this.model.Nav_CheckRecordDetails.findIndex(item => item === validDetails[index]);
if (this.selectorInfo.name == 'Nav_RiskArea') {
- this.model.Nav_CheckRecordDetails[realIndex].Nav_RiskArea = e;
- this.model.Nav_CheckRecordDetails[realIndex].RISK_AREA_ID = e.ID;
+ this.selectorInfo.itemData.Nav_RiskArea = e;
+ this.selectorInfo.itemData.RISK_AREA_ID = e.ID;
} else if (this.selectorInfo.name == 'Nav_Contents') {
- this.model.Nav_CheckRecordDetails[realIndex].Nav_Contents = e;
- this.model.Nav_CheckRecordDetails[realIndex].CHECK_CONTENTS_ID = e.ID;
+ this.selectorInfo.itemData.Nav_Contents = e;
+ this.selectorInfo.itemData.CHECK_CONTENTS_ID = e.ID;
} else if (this.selectorInfo.name == 'Nav_Question') {
- this.model.Nav_CheckRecordDetails[realIndex].Nav_Question = e;
- this.model.Nav_CheckRecordDetails[realIndex].CHECK_QUESTION_ID = e.ID;
- this.model.Nav_CheckRecordDetails[realIndex].HIDDEN_LEVEL = e.QUESTION_LEVEL
- this.model.Nav_CheckRecordDetails[realIndex].HIDDEN_LEVELName = this.enumsData['SKHiddenLevel'].find(item1 => item1.code === e.QUESTION_LEVEL).name;
+ this.selectorInfo.itemData.Nav_Question = e;
+ this.selectorInfo.itemData.CHECK_QUESTION_ID = e.ID;
+ this.selectorInfo.itemData.HIDDEN_LEVEL = e.QUESTION_LEVEL
+ this.selectorInfo.itemData.HIDDEN_LEVELName = this.enumsData['SKHiddenLevel'].find(item1 => item1.code === e.QUESTION_LEVEL).name;
}
@@ -642,9 +634,9 @@
})
},
- handleDelRowBefore(index) {
- this.nowIndex = index
- this.showDelModalIndex = index
+ handleDelRowBefore(item) {
+ item.IS_DELETED = true
+ this.$forceUpdate()
},
confirmDel() {
@@ -655,7 +647,7 @@
this.showDelModalIndex = undefined
},
submit() {
- for (let item of this.model.Nav_CheckRecordDetails) {
+ for (let item of this.model.Nav_CheckRecordDetails.filter(i => !i.IS_DELETED)) {
if (!item.Nav_CheckRecordDetailUsers || item.Nav_CheckRecordDetailUsers.length == 0) {
uni.showToast({
title: '请选择检查人员',