From d86432fb23216e6bd0d427258b9614ce13a0d8ad Mon Sep 17 00:00:00 2001 From: "luoJunYong.123" Date: Fri, 8 Apr 2022 16:44:31 +0800 Subject: [PATCH] update --- src/components/checkPhoto/index.vue | 63 +++++++++++++++-------------- src/pages/counter/list/index.vue | 11 +++-- 2 files changed, 40 insertions(+), 34 deletions(-) diff --git a/src/components/checkPhoto/index.vue b/src/components/checkPhoto/index.vue index d1b020a..d142185 100644 --- a/src/components/checkPhoto/index.vue +++ b/src/components/checkPhoto/index.vue @@ -58,38 +58,39 @@ export default { }, watch: { - imgSrc: { - handler(newVal) { - if(newVal) { - getOperation({ - parentId: '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,8' - }).then((data)=>{ - const stampJudge = { - 18: {add:[24, 21], delete: [14]}, - 452:{ add: [432, 433] }, - 458:{ add: [419, 418], delete: [426]}, - 459:{ add: [478, 477], delete: [407]}, - 460:{ add: [466,468,467], delete: [406]}, - 463:{ add: [480, 488], delete: [413]}, - 464:{ add: [482, 481], delete: [479]}, - 444:{ add: [420, 421], delete: [425]}, - 445:{ add: [422, 424], delete: [427]}, - 446:{ add: [419, 418], delete: [426]}, - 447:{ add: [269, 22], delete: [17]}, - 455:{ add: [487, 441], delete: [409]}, - 456:{ add: [473, 472], delete: [411]}, - 457:{ add: [476, 474], delete: [412]} - } + // 盖章逻辑 挂着 + // imgSrc: { + // handler(newVal) { + // if(newVal) { + // getOperation({ + // parentId: '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,8' + // }).then((data)=>{ + // const stampJudge = { + // 18: {add:[24, 21], delete: [14]}, + // 452:{ add: [432, 433] }, + // 458:{ add: [419, 418], delete: [426]}, + // 459:{ add: [478, 477], delete: [407]}, + // 460:{ add: [466,468,467], delete: [406]}, + // 463:{ add: [480, 488], delete: [413]}, + // 464:{ add: [482, 481], delete: [479]}, + // 444:{ add: [420, 421], delete: [425]}, + // 445:{ add: [422, 424], delete: [427]}, + // 446:{ add: [419, 418], delete: [426]}, + // 447:{ add: [269, 22], delete: [17]}, + // 455:{ add: [487, 441], delete: [409]}, + // 456:{ add: [473, 472], delete: [411]}, + // 457:{ add: [476, 474], delete: [412]} + // } - if(data.status == 200 && data.data.judgmentRuleReqs) { - // const list = data.data.judgmentRuleReqs.map(item => item.answerId) - console.log(data.data.judgmentRuleReqs) - } - }) - } - }, - immediate: true - } + // if(data.status == 200 && data.data.judgmentRuleReqs) { + // // const list = data.data.judgmentRuleReqs.map(item => item.answerId) + // console.log(data.data.judgmentRuleReqs) + // } + // }) + // } + // }, + // immediate: true + // } }, computed: { ...mapGetters({ diff --git a/src/pages/counter/list/index.vue b/src/pages/counter/list/index.vue index 0521ce2..c91fa2e 100644 --- a/src/pages/counter/list/index.vue +++ b/src/pages/counter/list/index.vue @@ -1103,12 +1103,17 @@ export default { if(data.status == 200 && data.data.judgmentRuleReqs) { console.log('印章盒的信息') - console.log(data.data) + const list = data.data.judgmentRuleReqs.map(item => item.answerId) + const allKeys = Object.keys(stampJudge) if(list.length) { for(let i=0; i