style:业务申请
Showing
6 changed files
with
40 additions
and
31 deletions
| ... | @@ -32,7 +32,7 @@ | ... | @@ -32,7 +32,7 @@ |
| 32 | </el-col> | 32 | </el-col> |
| 33 | <el-col :span="2" class="btnCol"> | 33 | <el-col :span="2" class="btnCol"> |
| 34 | <el-form-item> | 34 | <el-form-item> |
| 35 | <el-button type="primary" @click="queryClick()">查询</el-button> | 35 | <el-button type="primary" @click="fetchData">查询</el-button> |
| 36 | </el-form-item> | 36 | </el-form-item> |
| 37 | </el-col> | 37 | </el-col> |
| 38 | </el-row> | 38 | </el-row> |
| ... | @@ -89,6 +89,7 @@ export default { | ... | @@ -89,6 +89,7 @@ export default { |
| 89 | this.queryForm.sqywbm = this.djywbm; | 89 | this.queryForm.sqywbm = this.djywbm; |
| 90 | selectQlxx({ ...this.queryForm, ...this.pageData }) | 90 | selectQlxx({ ...this.queryForm, ...this.pageData }) |
| 91 | .then((res) => { | 91 | .then((res) => { |
| 92 | console.log(res); | ||
| 92 | if (res.code === 200) { | 93 | if (res.code === 200) { |
| 93 | let { total, records } = res.result; | 94 | let { total, records } = res.result; |
| 94 | this.tableData.total = total; | 95 | this.tableData.total = total; | ... | ... |
| ... | @@ -33,7 +33,7 @@ | ... | @@ -33,7 +33,7 @@ |
| 33 | </el-col> | 33 | </el-col> |
| 34 | <el-col :span="2" class="btnCol"> | 34 | <el-col :span="2" class="btnCol"> |
| 35 | <el-form-item> | 35 | <el-form-item> |
| 36 | <el-button type="primary" @click="queryClick()">查询</el-button> | 36 | <el-button type="primary" @click="fetchData()">查询</el-button> |
| 37 | </el-form-item> | 37 | </el-form-item> |
| 38 | </el-col> | 38 | </el-col> |
| 39 | </el-row> | 39 | </el-row> | ... | ... |
| ... | @@ -32,7 +32,7 @@ | ... | @@ -32,7 +32,7 @@ |
| 32 | </el-col> | 32 | </el-col> |
| 33 | <el-col :span="2" class="btnCol"> | 33 | <el-col :span="2" class="btnCol"> |
| 34 | <el-form-item> | 34 | <el-form-item> |
| 35 | <el-button type="primary" @click="queryClick()">查询</el-button> | 35 | <el-button type="primary" @click="fetchData()">查询</el-button> |
| 36 | </el-form-item> | 36 | </el-form-item> |
| 37 | </el-col> | 37 | </el-col> |
| 38 | </el-row> | 38 | </el-row> |
| ... | @@ -53,7 +53,7 @@ | ... | @@ -53,7 +53,7 @@ |
| 53 | </template> | 53 | </template> |
| 54 | <script> | 54 | <script> |
| 55 | //查封登记 | 55 | //查封登记 |
| 56 | import { mapGetters } from 'vuex' | 56 | import Cookies from 'js-cookie' |
| 57 | import { datas, sendThis } from "../javascript/cfdj.js"; | 57 | import { datas, sendThis } from "../javascript/cfdj.js"; |
| 58 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; | 58 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; |
| 59 | import table from "@/utils/mixin/table"; | 59 | import table from "@/utils/mixin/table"; |
| ... | @@ -61,7 +61,8 @@ import jump from "../components/mixin/jump"; | ... | @@ -61,7 +61,8 @@ import jump from "../components/mixin/jump"; |
| 61 | import { selectCfdj, startBusinessFlow } from "@/api/ywbl.js"; | 61 | import { selectCfdj, startBusinessFlow } from "@/api/ywbl.js"; |
| 62 | export default { | 62 | export default { |
| 63 | props: { | 63 | props: { |
| 64 | djywbm: { type: String, default: "" } | 64 | isJump: { type: Boolean, default: false }, |
| 65 | djywbm: { type: String, default: '' } | ||
| 65 | }, | 66 | }, |
| 66 | mixins: [table, jump], | 67 | mixins: [table, jump], |
| 67 | data () { | 68 | data () { |
| ... | @@ -80,9 +81,6 @@ export default { | ... | @@ -80,9 +81,6 @@ export default { |
| 80 | mounted () { | 81 | mounted () { |
| 81 | sendThis(this); | 82 | sendThis(this); |
| 82 | }, | 83 | }, |
| 83 | computed: { | ||
| 84 | ...mapGetters(['bsmSqyw', 'djywbm']), | ||
| 85 | }, | ||
| 86 | methods: { | 84 | methods: { |
| 87 | closeDialog () { | 85 | closeDialog () { |
| 88 | this.$emit("closeDialog") | 86 | this.$emit("closeDialog") |
| ... | @@ -105,12 +103,23 @@ export default { | ... | @@ -105,12 +103,23 @@ export default { |
| 105 | } | 103 | } |
| 106 | this.saveloding = true; | 104 | this.saveloding = true; |
| 107 | startBusinessFlow({ | 105 | startBusinessFlow({ |
| 108 | bsmSqyw: this.bsmSqyw, | 106 | bsmSqyw: Cookies.get("bsmSqyw"), |
| 109 | bdcdysz: this.bdcdysz, | 107 | bdcdysz: this.bdcdysz, |
| 108 | djqxbm: Cookies.get("djqxObj") ? JSON.parse(Cookies.get("djqxObj"))?.djqxbm : '', | ||
| 109 | djqxmc: Cookies.get("djqxObj") ? JSON.parse(Cookies.get("djqxObj"))?.djqxmc : '', | ||
| 110 | }).then((res) => { | 110 | }).then((res) => { |
| 111 | this.saveloding = false; | 111 | this.saveloding = false; |
| 112 | if (res.code == 200) { | 112 | if (res.code == 200) { |
| 113 | this.jump(res.result) | 113 | this.$message({ |
| 114 | showClose: true, | ||
| 115 | message: '发起申请成功', | ||
| 116 | type: 'success' | ||
| 117 | }) | ||
| 118 | if (!this.isJump) { | ||
| 119 | this.jump(res.result, this.djywbm) | ||
| 120 | } else { | ||
| 121 | this.$emit('updateDialog', true) | ||
| 122 | } | ||
| 114 | } else { | 123 | } else { |
| 115 | this.$message.error(res.message); | 124 | this.$message.error(res.message); |
| 116 | } | 125 | } | ... | ... |
| ... | @@ -55,7 +55,7 @@ | ... | @@ -55,7 +55,7 @@ |
| 55 | </template> | 55 | </template> |
| 56 | <script> | 56 | <script> |
| 57 | //抵押权首次登记 | 57 | //抵押权首次登记 |
| 58 | import { mapGetters } from 'vuex' | 58 | import Cookies from 'js-cookie' |
| 59 | import { datas, sendThis } from "../javascript/diyaq.js"; | 59 | import { datas, sendThis } from "../javascript/diyaq.js"; |
| 60 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; | 60 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; |
| 61 | import table from "@/utils/mixin/table"; | 61 | import table from "@/utils/mixin/table"; |
| ... | @@ -63,6 +63,10 @@ import jump from "../components/mixin/jump"; | ... | @@ -63,6 +63,10 @@ import jump from "../components/mixin/jump"; |
| 63 | import { selectDiyaq, startBusinessFlow } from "@/api/ywbl.js"; | 63 | import { selectDiyaq, startBusinessFlow } from "@/api/ywbl.js"; |
| 64 | export default { | 64 | export default { |
| 65 | mixins: [table, jump], | 65 | mixins: [table, jump], |
| 66 | props: { | ||
| 67 | isJump: { type: Boolean, default: false }, | ||
| 68 | djywbm: { type: String, default: '' } | ||
| 69 | }, | ||
| 66 | data () { | 70 | data () { |
| 67 | return { | 71 | return { |
| 68 | queryForm: defaultParameters.defaultParameters(), | 72 | queryForm: defaultParameters.defaultParameters(), |
| ... | @@ -79,15 +83,11 @@ export default { | ... | @@ -79,15 +83,11 @@ export default { |
| 79 | mounted () { | 83 | mounted () { |
| 80 | sendThis(this); | 84 | sendThis(this); |
| 81 | }, | 85 | }, |
| 82 | computed: { | ||
| 83 | ...mapGetters(['bsmSqyw', 'djqxObj', 'djywbm']), | ||
| 84 | }, | ||
| 85 | methods: { | 86 | methods: { |
| 86 | closeDialog () { | 87 | closeDialog () { |
| 87 | this.$emit("closeDialog"); | 88 | this.$emit("closeDialog"); |
| 88 | }, | 89 | }, |
| 89 | fetchData () { | 90 | fetchData () { |
| 90 | if (this.bsmSqyw) { | ||
| 91 | this.queryForm.sqywbm = this.djywbm; | 91 | this.queryForm.sqywbm = this.djywbm; |
| 92 | selectDiyaq({ ...this.queryForm, ...this.pageData }).then((res) => { | 92 | selectDiyaq({ ...this.queryForm, ...this.pageData }).then((res) => { |
| 93 | if (res.code === 200) { | 93 | if (res.code === 200) { |
| ... | @@ -96,7 +96,6 @@ export default { | ... | @@ -96,7 +96,6 @@ export default { |
| 96 | this.tableData.data = records; | 96 | this.tableData.data = records; |
| 97 | } | 97 | } |
| 98 | }); | 98 | }); |
| 99 | } | ||
| 100 | }, | 99 | }, |
| 101 | submitForm () { | 100 | submitForm () { |
| 102 | if (this.bdcdysz.length == 0) { | 101 | if (this.bdcdysz.length == 0) { |
| ... | @@ -105,14 +104,23 @@ export default { | ... | @@ -105,14 +104,23 @@ export default { |
| 105 | } | 104 | } |
| 106 | this.saveloding = true; | 105 | this.saveloding = true; |
| 107 | startBusinessFlow({ | 106 | startBusinessFlow({ |
| 108 | bsmSqyw: this.bsmSqyw, | 107 | bsmSqyw: Cookies.get("bsmSqyw"), |
| 109 | bdcdysz: this.bdcdysz, | 108 | bdcdysz: this.bdcdysz, |
| 110 | djqxbm: this.djqxObj.djqxbm, | 109 | djqxbm: Cookies.get("djqxObj") ? JSON.parse(Cookies.get("djqxObj"))?.djqxbm : '', |
| 111 | djqxmc: this.djqxObj.djqxmc, | 110 | djqxmc: Cookies.get("djqxObj") ? JSON.parse(Cookies.get("djqxObj"))?.djqxmc : '', |
| 112 | }).then((res) => { | 111 | }).then((res) => { |
| 113 | this.saveloding = false; | 112 | this.saveloding = false; |
| 114 | if (res.code == 200) { | 113 | if (res.code == 200) { |
| 115 | this.jump(res.result) | 114 | this.$message({ |
| 115 | showClose: true, | ||
| 116 | message: '发起申请成功', | ||
| 117 | type: 'success' | ||
| 118 | }) | ||
| 119 | if (!this.isJump) { | ||
| 120 | this.jump(res.result, this.djywbm) | ||
| 121 | } else { | ||
| 122 | this.$emit('updateDialog', true) | ||
| 123 | } | ||
| 116 | } else { | 124 | } else { |
| 117 | this.$message.error(res.message); | 125 | this.$message.error(res.message); |
| 118 | } | 126 | } | ... | ... |
| ... | @@ -18,7 +18,7 @@ | ... | @@ -18,7 +18,7 @@ |
| 18 | </el-col> | 18 | </el-col> |
| 19 | <el-col :span="4" class="btnCol"> | 19 | <el-col :span="4" class="btnCol"> |
| 20 | <el-form-item> | 20 | <el-form-item> |
| 21 | <el-button type="primary" @click="queryClick()">查询</el-button> | 21 | <el-button type="primary" @click="fetchData">查询</el-button> |
| 22 | </el-form-item> | 22 | </el-form-item> |
| 23 | </el-col> | 23 | </el-col> |
| 24 | </el-row> | 24 | </el-row> |
| ... | @@ -65,11 +65,6 @@ export default { | ... | @@ -65,11 +65,6 @@ export default { |
| 65 | saveloding: false, | 65 | saveloding: false, |
| 66 | }; | 66 | }; |
| 67 | }, | 67 | }, |
| 68 | watch: { | ||
| 69 | bsmSqyw (val) { | ||
| 70 | this.fetchData(); | ||
| 71 | }, | ||
| 72 | }, | ||
| 73 | mounted () { | 68 | mounted () { |
| 74 | sendThis(this); | 69 | sendThis(this); |
| 75 | }, | 70 | }, |
| ... | @@ -78,7 +73,6 @@ export default { | ... | @@ -78,7 +73,6 @@ export default { |
| 78 | this.$emit("closeDialog"); | 73 | this.$emit("closeDialog"); |
| 79 | }, | 74 | }, |
| 80 | fetchData () { | 75 | fetchData () { |
| 81 | if (this.bsmSqyw) { | ||
| 82 | this.queryForm.sqywbm = this.djywbm; | 76 | this.queryForm.sqywbm = this.djywbm; |
| 83 | 77 | ||
| 84 | selectScBdcdy({ ...this.queryForm, ...this.pageData }).then((res) => { | 78 | selectScBdcdy({ ...this.queryForm, ...this.pageData }).then((res) => { |
| ... | @@ -88,7 +82,6 @@ export default { | ... | @@ -88,7 +82,6 @@ export default { |
| 88 | this.tableData.data = records; | 82 | this.tableData.data = records; |
| 89 | } | 83 | } |
| 90 | }); | 84 | }); |
| 91 | } | ||
| 92 | }, | 85 | }, |
| 93 | submitForm () { | 86 | submitForm () { |
| 94 | if (this.bdcdysz.length == 0) { | 87 | if (this.bdcdysz.length == 0) { | ... | ... |
| ... | @@ -34,7 +34,7 @@ | ... | @@ -34,7 +34,7 @@ |
| 34 | </el-col> | 34 | </el-col> |
| 35 | <el-col :span="2" class="btnCol"> | 35 | <el-col :span="2" class="btnCol"> |
| 36 | <el-form-item> | 36 | <el-form-item> |
| 37 | <el-button type="primary" @click="queryClick()">查询</el-button> | 37 | <el-button type="primary" @click="fetchData">查询</el-button> |
| 38 | </el-form-item> | 38 | </el-form-item> |
| 39 | </el-col> | 39 | </el-col> |
| 40 | </el-row> | 40 | </el-row> |
| ... | @@ -88,7 +88,6 @@ export default { | ... | @@ -88,7 +88,6 @@ export default { |
| 88 | this.$emit("closeDialog"); | 88 | this.$emit("closeDialog"); |
| 89 | }, | 89 | }, |
| 90 | fetchData () { | 90 | fetchData () { |
| 91 | if (this.bsmSqyw) { | ||
| 92 | this.queryForm.sqywbm = this.djywbm; | 91 | this.queryForm.sqywbm = this.djywbm; |
| 93 | 92 | ||
| 94 | selectQlxx({ ...this.queryForm, ...this.pageData }).then((res) => { | 93 | selectQlxx({ ...this.queryForm, ...this.pageData }).then((res) => { |
| ... | @@ -98,7 +97,6 @@ export default { | ... | @@ -98,7 +97,6 @@ export default { |
| 98 | this.tableData.data = records; | 97 | this.tableData.data = records; |
| 99 | } | 98 | } |
| 100 | }); | 99 | }); |
| 101 | } | ||
| 102 | }, | 100 | }, |
| 103 | submitForm () { | 101 | submitForm () { |
| 104 | if (this.bdcdysz.length == 0) { | 102 | if (this.bdcdysz.length == 0) { | ... | ... |
-
Please register or sign in to post a comment