af3024ba by 任超
2 parents 8e84067d d214b9eb
...@@ -107,116 +107,128 @@ ...@@ -107,116 +107,128 @@
107 </template> 107 </template>
108 108
109 <script> 109 <script>
110 import { mapGetters } from 'vuex' 110 import { mapGetters } from "vuex";
111 import dataReporting from '@/api/dataReporting' 111 import dataReporting from "@/api/dataReporting";
112 import { getDetail } from '@/api/sbbwcx.js' 112 import { getDetail } from "@/api/sbbwcx.js";
113 import { MessageBox } from 'element-ui' 113 import { MessageBox } from "element-ui";
114 export default { 114 export default {
115 computed: { 115 computed: {
116 ...mapGetters(['dicData']) 116 ...mapGetters(["dicData"]),
117 }, 117 },
118 props: { 118 props: {},
119 }, 119 data() {
120 data () {
121 return { 120 return {
122 dataReport: {}, 121 dataReport: {},
123 index: 0, 122 index: 0,
124 bsmYwsjb: '', 123 bsmYwsjb: "",
125 ruleFormList: { 124 ruleFormList: {
126 bizMsgID: '', 125 bizMsgID: "",
127 asid: '', 126 asid: "",
128 areaCode: '', 127 areaCode: "",
129 preestateNum: '', 128 preestateNum: "",
130 recType: '', 129 recType: "",
131 rightType: '', 130 rightType: "",
132 regType: '', 131 regType: "",
133 certCount: '', 132 certCount: "",
134 createDate: '', 133 createDate: "",
135 recFlowID: '', 134 recFlowID: "",
136 regOrgID: '', 135 regOrgID: "",
137 prllfCount: '', 136 prllfCount: "",
138 parcelID: '', 137 parcelID: "",
139 estateNum: '', 138 estateNum: "",
140 preCertID: '', 139 preCertID: "",
141 digitalSign: '' 140 digitalSign: "",
142 }, 141 },
143 images: require('./images/success.gif'), 142 images: require("./images/success.gif"),
144 saveloding: false, 143 saveloding: false,
145 dialogVisible: false, 144 dialogVisible: false,
146 activeName: undefined, 145 activeName: undefined,
147 editItem: '', 146 editItem: "",
148 title: '', 147 title: "",
149 headerList: [], 148 headerList: [],
150 dataTable: '' 149 dataTable: "",
151 } 150 };
152 }, 151 },
153 methods: { 152 methods: {
154 isShow (item) { 153 isShow(item) {
155 this.dataReport = item; 154 this.dataReport = item;
156 this.dialogVisible = true 155 this.dialogVisible = true;
157 //获取表头列表 156 //获取表头列表
158 getDetail({ bizmsgid: this.dataReport.bizmsgid }).then(res => { 157 getDetail({ bsmReport: this.dataReport.bsmReport }).then((res) => {
159 if (res.code == 200) { 158 if (res.code == 200) {
160 this.headerList = res.result 159 this.headerList = res.result;
161 } 160 }
162 }) 161 });
163 }, 162 },
164 changeList (val) { 163 changeList(val) {
165 let _index = val.index 164 let _index = val.index;
166 if (_index > this.index) { 165 if (_index > this.index) {
167
168 } 166 }
169 this.index = _index 167 this.index = _index;
170 this.bsmYwsjb = this.headerList[val.index].bsmYwsjb 168 this.bsmYwsjb = this.headerList[val.index].bsmYwsjb;
171 this.editItem = this.loadView(this.activeName) 169 this.editItem = this.loadView(this.activeName);
172 this.diaData.list.forEach((item) => { 170 this.diaData.list.forEach((item) => {
173 if (item.soleurl == this.activeName) { 171 if (item.soleurl == this.activeName) {
174 this.dataTable = item.dataTable 172 this.dataTable = item.dataTable;
175 } 173 }
176 }); 174 });
177 }, 175 },
178 loadView (view) { 176 loadView(view) {
179 return r => require.ensure([], () => r(require(`@/components/business/${view}`))) 177 return (r) =>
178 require.ensure([], () => r(require(`@/components/business/${view}`)));
180 }, 179 },
181 closeDialog () { 180 closeDialog() {
182 this.dialogVisible = false 181 this.dialogVisible = false;
183 }, 182 },
184 submitForm () { 183 submitForm() {
185 let _this = this 184 let _this = this;
186 this.$store.dispatch('business/setRules', this.$store.state.business.subRules) 185 this.$store.dispatch(
186 "business/setRules",
187 this.$store.state.business.subRules
188 );
187 this.$nextTick(() => { 189 this.$nextTick(() => {
188 this.$refs['editItem'] && this.$refs['editItem'].verificationForm().then(res => { 190 this.$refs["editItem"] &&
191 this.$refs["editItem"].verificationForm().then((res) => {
189 if (!res) { 192 if (!res) {
190 _this.$message({ 193 _this.$message({
191 message: '请检查表单必填项是否完整', 194 message: "请检查表单必填项是否完整",
192 type: 'warning' 195 type: "warning",
193 }) 196 });
194 return false 197 return false;
195 } else { 198 } else {
196 _this.saveloding = true 199 _this.saveloding = true;
197 _this.$refs['editItem'].handleUpdateForm().then(res => { 200 _this.$refs["editItem"]
201 .handleUpdateForm()
202 .then((res) => {
198 if (res == 200) { 203 if (res == 200) {
199 _this.$alert('<p><img class="success-images" src="' + this.images + '"/>编辑成功!</p>', '提示', { 204 _this.$alert(
205 '<p><img class="success-images" src="' +
206 this.images +
207 '"/>编辑成功!</p>',
208 "提示",
209 {
200 showConfirmButton: false, 210 showConfirmButton: false,
201 dangerouslyUseHTMLString: true 211 dangerouslyUseHTMLString: true,
202 }) 212 }
213 );
203 setTimeout(() => { 214 setTimeout(() => {
204 MessageBox.close(false) 215 MessageBox.close(false);
205 }, 1500) 216 }, 1500);
206 } 217 }
207 }).catch(function (error) {
208 _this.$alert(error, '提示', {
209 confirmButtonText: '确定',
210 type: 'error'
211 }) 218 })
219 .catch(function (error) {
220 _this.$alert(error, "提示", {
221 confirmButtonText: "确定",
222 type: "error",
212 }); 223 });
213 _this.saveloding = false 224 });
214 } 225 _this.saveloding = false;
215 })
216 })
217 }
218 } 226 }
219 } 227 });
228 });
229 },
230 },
231 };
220 </script> 232 </script>
221 <style scoped lang="scss"> 233 <style scoped lang="scss">
222 @import "~@/styles/mixin.scss"; 234 @import "~@/styles/mixin.scss";
......