--no commit message
Showing
1 changed file
with
20 additions
and
21 deletions
| ... | @@ -35,7 +35,7 @@ | ... | @@ -35,7 +35,7 @@ |
| 35 | <el-button | 35 | <el-button |
| 36 | class="opinion_btn" | 36 | class="opinion_btn" |
| 37 | @click="commonOpinion(index)" | 37 | @click="commonOpinion(index)" |
| 38 | v-if="ableOperation && !item.show" | 38 | v-if="ableOperation" |
| 39 | >常用意见</el-button | 39 | >常用意见</el-button |
| 40 | > | 40 | > |
| 41 | </el-form-item> | 41 | </el-form-item> |
| ... | @@ -48,7 +48,7 @@ | ... | @@ -48,7 +48,7 @@ |
| 48 | </el-form-item> | 48 | </el-form-item> |
| 49 | </el-col> | 49 | </el-col> |
| 50 | <el-col :span="8"> | 50 | <el-col :span="8"> |
| 51 | <el-form-item label="审核时间" :key="refresh"> | 51 | <el-form-item disabled label="审核时间" :key="refresh"> |
| 52 | {{ item.shjssj }} | 52 | {{ item.shjssj }} |
| 53 | </el-form-item> | 53 | </el-form-item> |
| 54 | </el-col> | 54 | </el-col> |
| ... | @@ -93,7 +93,6 @@ export default { | ... | @@ -93,7 +93,6 @@ export default { |
| 93 | watch: { | 93 | watch: { |
| 94 | yjsqOptions: { | 94 | yjsqOptions: { |
| 95 | handler(val) { | 95 | handler(val) { |
| 96 | console.log("val", val); | ||
| 97 | this.add(val); | 96 | this.add(val); |
| 98 | }, | 97 | }, |
| 99 | deep: true, | 98 | deep: true, |
| ... | @@ -103,7 +102,6 @@ export default { | ... | @@ -103,7 +102,6 @@ export default { |
| 103 | created() {}, | 102 | created() {}, |
| 104 | mounted() { | 103 | mounted() { |
| 105 | this.propsParam = this.$attrs; | 104 | this.propsParam = this.$attrs; |
| 106 | console.log("this.$parent.dqhj", this.$parent.dqhj); | ||
| 107 | this.ableOperation = this.$parent.currentSelectTab.ableOperation; | 105 | this.ableOperation = this.$parent.currentSelectTab.ableOperation; |
| 108 | // this.ableOperation = this.$parent.ableOperation; | 106 | // this.ableOperation = this.$parent.ableOperation; |
| 109 | this.getShList(); | 107 | this.getShList(); |
| ... | @@ -130,6 +128,7 @@ export default { | ... | @@ -130,6 +128,7 @@ export default { |
| 130 | * @author: renchao | 128 | * @author: renchao |
| 131 | */ | 129 | */ |
| 132 | getShList() { | 130 | getShList() { |
| 131 | let that = this; | ||
| 133 | this.$startLoading(); | 132 | this.$startLoading(); |
| 134 | var formdata = new FormData(); | 133 | var formdata = new FormData(); |
| 135 | formdata.append("bsmBusiness", this.propsParam.bsmBusiness); | 134 | formdata.append("bsmBusiness", this.propsParam.bsmBusiness); |
| ... | @@ -139,24 +138,25 @@ export default { | ... | @@ -139,24 +138,25 @@ export default { |
| 139 | this.$endLoading(); | 138 | this.$endLoading(); |
| 140 | if (res.code === 200 && res.result) { | 139 | if (res.code === 200 && res.result) { |
| 141 | this.tableData = res.result; | 140 | this.tableData = res.result; |
| 142 | if (this.tableData.length == 0 && this.jdmc == "初审") { | 141 | var index = this.tableData.findIndex( |
| 143 | this.tableData.push({ jdmc: "初审",jddm:"cs",sxh: 1 }); | 142 | (item) => item.jddm === this.$parent.dqhj |
| 144 | } else if ( | 143 | ); |
| 145 | this.tableData.length == 1 && | 144 | if (index == -1) { |
| 146 | this.jdmc == "复审" | 145 | switch (this.$parent.dqhj) { |
| 147 | ) { | 146 | case "cs": |
| 148 | this.tableData.push({ jdmc: "复审",jddm:"fs" ,sxh: 2 }); | 147 | this.tableData.push({ jdmc: "初审", jddm: "cs", sxh: 1 }); |
| 149 | } else if ( | 148 | break; |
| 150 | this.tableData.length == 2&& | 149 | case "fs": |
| 151 | this.jdmc == "核定" | 150 | this.tableData.push({ jdmc: "复审", jddm: "fs", sxh: 2 }); |
| 152 | ) { | 151 | break; |
| 153 | this.tableData.push({ jdmc: "核定",jddm:"hd",sxh: 3 }); | 152 | case "hd": |
| 153 | this.tableData.push({ jdmc: "核定", jddm: "hd", sxh: 3 }); | ||
| 154 | break; | ||
| 154 | } | 155 | } |
| 155 | 156 | } | |
| 156 | if(this.tableData){ | 157 | this.tableData.forEach((item) => { |
| 157 | this.tableData.forEach((item,index) => { | ||
| 158 | item.show = true; | 158 | item.show = true; |
| 159 | if(this.$parent.dqhj==item.jddm){ | 159 | if (this.$parent.dqhj == item.jddm) { |
| 160 | item.show = false; | 160 | item.show = false; |
| 161 | } | 161 | } |
| 162 | item.shjssj = getNewDatesh(); | 162 | item.shjssj = getNewDatesh(); |
| ... | @@ -165,7 +165,6 @@ export default { | ... | @@ -165,7 +165,6 @@ export default { |
| 165 | item["userid"] = this.userInfo.id; | 165 | item["userid"] = this.userInfo.id; |
| 166 | }); | 166 | }); |
| 167 | } | 167 | } |
| 168 | } | ||
| 169 | }); | 168 | }); |
| 170 | }, | 169 | }, |
| 171 | /** | 170 | /** | ... | ... |
-
Please register or sign in to post a comment