Merge branch 'dev' into 'master'
Dev See merge request !3
Showing
4 changed files
with
44 additions
and
19 deletions
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-11-22 17:09:14 | 4 | * @LastEditTime: 2023-11-22 17:09:14 |
5 | --> | 5 | --> |
... | @@ -65,10 +65,18 @@ | ... | @@ -65,10 +65,18 @@ |
65 | } | 65 | } |
66 | }) | 66 | }) |
67 | } else { | 67 | } else { |
68 | getPrintTemplateByCode({ tmpno: Vue.prototype.BASE_API.adapter + '-2' }).then(res => { | 68 | // getPrintTemplateByCode({ tmpno: Vue.prototype.BASE_API.adapter + '-2' }).then(res => { |
69 | getPrintTemplateByCode({ tmpno: 'dysqs-bz-2' }).then(res => { | ||
69 | if (res.code === 200) { | 70 | if (res.code === 200) { |
70 | getPrintApplicationForm(this.formData.bsmSldy).then(infoRes => { | 71 | getPrintApplicationForm(this.formData.bsmSldy).then(infoRes => { |
71 | if (infoRes.code === 200) { | 72 | if (infoRes.code === 200) { |
73 | if (infoRes.result.fileList && infoRes.result.fileList.length > 0) { | ||
74 | infoRes.result.fileList.forEach((it, index) => { | ||
75 | let key = index + 1 | ||
76 | this.$set(infoRes.result, "file" + key, it.sjmc) | ||
77 | }) | ||
78 | } | ||
79 | console.log(infoRes.result) | ||
72 | let LODOP = getLodop(document.getElementById('LODOP_OB'), document.getElementById('LODOP_EM')); | 80 | let LODOP = getLodop(document.getElementById('LODOP_OB'), document.getElementById('LODOP_EM')); |
73 | 81 | ||
74 | // 装载第一个模板并设置数据 | 82 | // 装载第一个模板并设置数据 |
... | @@ -92,4 +100,4 @@ | ... | @@ -92,4 +100,4 @@ |
92 | } | 100 | } |
93 | } | 101 | } |
94 | } | 102 | } |
95 | </script> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
103 | </script> | ... | ... |
... | @@ -99,7 +99,7 @@ | ... | @@ -99,7 +99,7 @@ |
99 | } | 99 | } |
100 | }; | 100 | }; |
101 | import store from '@/store/index.js' | 101 | import store from '@/store/index.js' |
102 | import { addQy, update } from "@/api/xxba.js" | 102 | import { addQy, update, addYh } from "@/api/xxba.js" |
103 | import clxx from './clxx/index.vue' | 103 | import clxx from './clxx/index.vue' |
104 | export default { | 104 | export default { |
105 | props: { | 105 | props: { |
... | @@ -215,19 +215,36 @@ | ... | @@ -215,19 +215,36 @@ |
215 | that.$refs['ruleForm'].validate((valid) => { | 215 | that.$refs['ruleForm'].validate((valid) => { |
216 | if (valid) { | 216 | if (valid) { |
217 | store.dispatch("user/refreshPage", false); | 217 | store.dispatch("user/refreshPage", false); |
218 | addQy(this.ruleForm).then(res => { | 218 | if (this.formData.QyYh == 1) { |
219 | if (res.code == 200) { | 219 | addQy(this.ruleForm).then(res => { |
220 | that.$message.success('保存成功') | 220 | if (res.code == 200) { |
221 | that.$emit("input", false); | 221 | that.$message.success('保存成功') |
222 | that.$refs['ruleForm'].resetFields(); | 222 | that.$emit("input", false); |
223 | that.resetTableFields(); | 223 | that.$refs['ruleForm'].resetFields(); |
224 | that.closeDialog(); | 224 | that.resetTableFields(); |
225 | //刷新列表 | 225 | that.closeDialog(); |
226 | store.dispatch("user/refreshPage", true); | 226 | //刷新列表 |
227 | } else { | 227 | store.dispatch("user/refreshPage", true); |
228 | that.$message.error(res.message); | 228 | } else { |
229 | } | 229 | that.$message.error(res.message); |
230 | }) | 230 | } |
231 | }) | ||
232 | } else { | ||
233 | addYh(this.ruleForm).then(res => { | ||
234 | if (res.code == 200) { | ||
235 | that.$message.success('保存成功') | ||
236 | that.$emit("input", false); | ||
237 | that.$refs['ruleForm'].resetFields(); | ||
238 | that.resetTableFields(); | ||
239 | that.closeDialog(); | ||
240 | //刷新列表 | ||
241 | store.dispatch("user/refreshPage", true); | ||
242 | } else { | ||
243 | that.$message.error(res.message); | ||
244 | } | ||
245 | }) | ||
246 | } | ||
247 | |||
231 | } else { | 248 | } else { |
232 | this.$message.error('请完善表单'); | 249 | this.$message.error('请完善表单'); |
233 | return false; | 250 | return false; | ... | ... |
... | @@ -106,7 +106,7 @@ | ... | @@ -106,7 +106,7 @@ |
106 | * @author: renchao | 106 | * @author: renchao |
107 | */ | 107 | */ |
108 | handleAdd () { | 108 | handleAdd () { |
109 | this.$popupDialog("添加企业", "xxba/components/addDialog", { isAdd: 1 }, "75%") | 109 | this.$popupDialog("添加企业", "xxba/components/addDialog", { isAdd: 1, QyYh: 1 }, "75%") |
110 | }, | 110 | }, |
111 | /** | 111 | /** |
112 | * @description: handleDelete | 112 | * @description: handleDelete | ... | ... |
... | @@ -105,7 +105,7 @@ | ... | @@ -105,7 +105,7 @@ |
105 | * @author: renchao | 105 | * @author: renchao |
106 | */ | 106 | */ |
107 | handleAdd () { | 107 | handleAdd () { |
108 | this.$popupDialog("添加银行", "xxba/components/addDialog", { isAdd: 1 }, "75%") | 108 | this.$popupDialog("添加银行", "xxba/components/addDialog", { isAdd: 1, QyYh: 2 }, "75%") |
109 | }, | 109 | }, |
110 | /** | 110 | /** |
111 | * @description: handleDelete | 111 | * @description: handleDelete | ... | ... |
-
Please register or sign in to post a comment