--no commit message
Showing
31 changed files
with
1925 additions
and
1771 deletions
| ... | @@ -11,7 +11,7 @@ | ... | @@ -11,7 +11,7 @@ |
| 11 | <template> | 11 | <template> |
| 12 | <div :class="['lb-table', customClass]"> | 12 | <div :class="['lb-table', customClass]"> |
| 13 | <el-table v-if="!heightNumSetting" class="table-fixed" :row-style="{ height: '50px' }" ref="elTable" :border='border' | 13 | <el-table v-if="!heightNumSetting" class="table-fixed" :row-style="{ height: '50px' }" ref="elTable" :border='border' |
| 14 | :row-class-name="tableRowClassName" :show-header='showHeader' @row-click="singleElection" v-bind="$attrs" | 14 | :row-class-name="tableRowClassName" :show-header='showHeader' @row-dblclick="singleElection" v-bind="$attrs" |
| 15 | :height="tableHeight" v-on="$listeners" :data="data" style="width: 100%" | 15 | :height="tableHeight" v-on="$listeners" :data="data" style="width: 100%" |
| 16 | :span-method="this.merge ? this.mergeMethod : this.spanMethod"> | 16 | :span-method="this.merge ? this.mergeMethod : this.spanMethod"> |
| 17 | <el-table-column width="45" align="center" v-if="isRadio"> | 17 | <el-table-column width="45" align="center" v-if="isRadio"> | ... | ... |
| 1 | import Vue from 'vue' | ||
| 1 | import router from './router' | 2 | import router from './router' |
| 2 | import store from './store' | 3 | import store from './store' |
| 3 | import { getMenuInfo } from '@/api/user' | 4 | import { getMenuInfo } from '@/api/user' |
| ... | @@ -8,6 +9,7 @@ import Cookies from 'js-cookie' | ... | @@ -8,6 +9,7 @@ import Cookies from 'js-cookie' |
| 8 | NProgress.configure({ showSpinner: false }) // NProgress Configuration | 9 | NProgress.configure({ showSpinner: false }) // NProgress Configuration |
| 9 | 10 | ||
| 10 | router.beforeEach(async (to, from, next) => { | 11 | router.beforeEach(async (to, from, next) => { |
| 12 | Vue.prototype.$currentRoute = to | ||
| 11 | NProgress.start() | 13 | NProgress.start() |
| 12 | document.title = getPageTitle(to.meta.title) | 14 | document.title = getPageTitle(to.meta.title) |
| 13 | let hasAddDict = store.state.dict.addDict | 15 | let hasAddDict = store.state.dict.addDict | ... | ... |
| 1 | /* | ||
| 2 | * @Description: | ||
| 3 | * @Autor: renchao | ||
| 4 | * @LastEditTime: 2023-05-04 11:14:25 | ||
| 5 | */ | ||
| 1 | const getters = { | 6 | const getters = { |
| 2 | sidebar: state => state.app.sidebar, | 7 | sidebar: state => state.app.sidebar, |
| 3 | size: state => state.app.size, | 8 | size: state => state.app.size, |
| ... | @@ -13,6 +18,8 @@ const getters = { | ... | @@ -13,6 +18,8 @@ const getters = { |
| 13 | addDict: state => state.dict.addDict, | 18 | addDict: state => state.dict.addDict, |
| 14 | dictData: state => state.dict.dictData, | 19 | dictData: state => state.dict.dictData, |
| 15 | djbxx: state => state.djbxx.djbxx, | 20 | djbxx: state => state.djbxx.djbxx, |
| 21 | // workflow | ||
| 16 | isRefresh: state => state.user.isRefresh, | 22 | isRefresh: state => state.user.isRefresh, |
| 23 | yjsqOptions: state => state.workflow.yjsqOptions | ||
| 17 | } | 24 | } |
| 18 | export default getters | 25 | export default getters | ... | ... |
src/store/modules/workflow.js
0 → 100644
| 1 | /* | ||
| 2 | * @Description: | ||
| 3 | * @Autor: renchao | ||
| 4 | * @LastEditTime: 2023-05-04 11:13:36 | ||
| 5 | */ | ||
| 6 | const state = { | ||
| 7 | yjsqOptions: {}, | ||
| 8 | } | ||
| 9 | |||
| 10 | const mutations = { | ||
| 11 | SET_OPTIONS: (state, data) => { | ||
| 12 | state.yjsqOptions = data | ||
| 13 | } | ||
| 14 | } | ||
| 15 | |||
| 16 | const actions = { | ||
| 17 | setOptions ({ commit }, data) { | ||
| 18 | commit('SET_OPTIONS', data) | ||
| 19 | } | ||
| 20 | } | ||
| 21 | |||
| 22 | export default { | ||
| 23 | namespaced: true, | ||
| 24 | state, | ||
| 25 | mutations, | ||
| 26 | actions | ||
| 27 | } |
| ... | @@ -47,7 +47,7 @@ | ... | @@ -47,7 +47,7 @@ |
| 47 | 47 | ||
| 48 | .el-dialog__header { | 48 | .el-dialog__header { |
| 49 | margin-bottom: 10px; | 49 | margin-bottom: 10px; |
| 50 | color: #4A4A4A; | 50 | color: #FFFFFF; |
| 51 | background-color: #FCFDFD; | 51 | background-color: #FCFDFD; |
| 52 | border-bottom: 1px solid #E4EBF4; | 52 | border-bottom: 1px solid #E4EBF4; |
| 53 | } | 53 | } | ... | ... |
| ... | @@ -3,7 +3,7 @@ | ... | @@ -3,7 +3,7 @@ |
| 3 | </lb-table> | 3 | </lb-table> |
| 4 | </template> | 4 | </template> |
| 5 | <script> | 5 | <script> |
| 6 | import addQlr from './addQlr.vue' | 6 | import addQlr from './dialog/addQlr.vue' |
| 7 | import { mapGetters } from 'vuex' | 7 | import { mapGetters } from 'vuex' |
| 8 | export default { | 8 | export default { |
| 9 | components: { | 9 | components: { | ... | ... |
File moved
| 1 | <template> | 1 | <template> |
| 2 | <div> | 2 | <div> |
| 3 | <dialogBox title="常用意见" :fullscreen="false" width="60%" isMain v-model="value" @closeDialog="closeDialog" | 3 | <el-button type="primary" native-type="submit" @click="openDialog">新增常用</el-button> |
| 4 | :isButton="false"> | 4 | <el-form ref="form" :model="form" :rules="rules" label-width="80px" v-show="addDialog"> |
| 5 | <el-button type="primary" native-type="submit" @click="openDialog()">新增常用</el-button> | 5 | <el-form-item prop="commonOpinion"> |
| 6 | <lb-table heightNumSetting :pagination="false" :column="columns" :data="tableData.data"> | 6 | <div class="invalid-reson">常用意见:</div> |
| 7 | </lb-table> | 7 | <el-input v-model="form.commonOpinion" placeholder="请输入常用意见" type="textarea" :rows="4"></el-input> |
| 8 | <div style="height:15px"></div> | 8 | </el-form-item> |
| 9 | </dialogBox> | 9 | <el-form-item class="text-center"> |
| 10 | <el-dialog title="新增意见" custom-class="dialogBox" :visible.sync="addDialog" width="50%" :append-to-body="true" | 10 | <el-button @click="closeaddDiglog">取 消</el-button> |
| 11 | :modal="false"> | 11 | <el-button type="primary" @click="addOpinion">确 定</el-button> |
| 12 | <el-form ref="form" :model="form" :rules="rules" label-width="80px"> | 12 | </el-form-item> |
| 13 | <el-form-item prop="commonOpinion"> | 13 | </el-form> |
| 14 | <div class="invalid-reson">常用意见:</div> | 14 | <lb-table :heightNumSetting="true" |
| 15 | <el-input v-model="form.commonOpinion" placeholder="请输入常用意见" type="textarea" :rows="4"></el-input> | 15 | @row-dblclick="handleRowClick" |
| 16 | </el-form-item> | 16 | :pagination="false" :column="columns" :minHeight="300" :data="tableData.data"> |
| 17 | <el-form-item> | 17 | </lb-table> |
| 18 | <div class="dialog-footer"> | 18 | <div style="height:15px"></div> |
| 19 | <el-button @click="closeaddDiglog">取 消</el-button> | 19 | <div class="text-center"> |
| 20 | <el-button type="primary" @click="addOpinion">确 定</el-button> | 20 | <el-button @click="$popupCacel">取消</el-button> |
| 21 | </div> | 21 | </div> |
| 22 | </el-form-item> | ||
| 23 | </el-form> | ||
| 24 | </el-dialog> | ||
| 25 | </div> | 22 | </div> |
| 26 | </template> | 23 | </template> |
| 27 | <script> | 24 | <script> |
| 28 | import { getUserCommonOpinion, addUserCommonOpinion, delUserCommonOpinion } from "@/api/fqsq.js" | 25 | import store from '@/store/index.js' |
| 29 | export default { | 26 | import { getUserCommonOpinion, addUserCommonOpinion, delUserCommonOpinion } from "@/api/fqsq.js" |
| 30 | components: {}, | 27 | export default { |
| 31 | props: { | 28 | components: {}, |
| 32 | value: { type: Boolean, default: false }, | 29 | props: { |
| 33 | }, | 30 | formData: { |
| 34 | data () { | 31 | type: Object, |
| 35 | return { | 32 | default: {} |
| 36 | columns: [ | 33 | } |
| 37 | { | 34 | }, |
| 38 | label: '序号', | 35 | data () { |
| 39 | type: 'index', | 36 | return { |
| 40 | width: '50', | 37 | addDialog: false, |
| 38 | columns: [ | ||
| 39 | { | ||
| 40 | label: '序号', | ||
| 41 | type: 'index', | ||
| 42 | width: '50', | ||
| 43 | }, | ||
| 44 | { | ||
| 45 | prop: "opinion", | ||
| 46 | label: "意见描述", | ||
| 47 | }, | ||
| 48 | { | ||
| 49 | label: '操作', | ||
| 50 | width: '100', | ||
| 51 | render: (h, scope) => { | ||
| 52 | return ( | ||
| 53 | <div> | ||
| 54 | <el-button type="text" onClick={() => { this.useCommonOpinion(scope.row) }}>使用</el-button> | ||
| 55 | <el-button type="text" onClick={() => { this.deleteOpinion(scope.row) }}>删除</el-button> | ||
| 56 | </div> | ||
| 57 | ) | ||
| 58 | } | ||
| 59 | } | ||
| 60 | ], | ||
| 61 | tableData: { | ||
| 62 | total: 0, | ||
| 63 | data: [], | ||
| 41 | }, | 64 | }, |
| 42 | { | 65 | form: { |
| 43 | prop: "opinion", | 66 | commonOpinion: '', |
| 44 | label: "意见描述", | ||
| 45 | }, | 67 | }, |
| 46 | { | 68 | rules: { |
| 47 | label: '操作', | 69 | commonOpinion: [ |
| 48 | width: '100', | 70 | { required: true, message: '请输入常用意见', trigger: 'blur' } |
| 49 | render: (h, scope) => { | 71 | ] |
| 50 | return ( | ||
| 51 | <div> | ||
| 52 | <el-button type="text" onClick={() => { this.useCommonOpinion(scope.row) }}>使用</el-button> | ||
| 53 | <el-button type="text" onClick={() => { this.deleteOpinion(scope.row) }}>删除</el-button> | ||
| 54 | </div> | ||
| 55 | ) | ||
| 56 | } | ||
| 57 | } | 72 | } |
| 58 | ], | 73 | } |
| 59 | tableData: { | 74 | }, |
| 60 | total: 0, | 75 | mounted () { |
| 61 | data: [], | 76 | this.getList() |
| 77 | }, | ||
| 78 | methods: { | ||
| 79 | getList () { | ||
| 80 | getUserCommonOpinion().then(res => { | ||
| 81 | this.tableData.data = res.result | ||
| 82 | }) | ||
| 62 | }, | 83 | }, |
| 63 | form: { | 84 | //新增常用意见 |
| 64 | commonOpinion: '', | 85 | addOpinion () { |
| 86 | this.$refs.form.validate(valid => { | ||
| 87 | if (valid) { | ||
| 88 | addUserCommonOpinion({ commonOpinion: this.form.commonOpinion }).then(res => { | ||
| 89 | if (res.code == 200) { | ||
| 90 | this.$message.success("新增成功") | ||
| 91 | this.closeaddDiglog(); | ||
| 92 | this.getList() | ||
| 93 | } else { | ||
| 94 | this.$message.error(res.message) | ||
| 95 | } | ||
| 96 | }) | ||
| 97 | } else { | ||
| 98 | return false; | ||
| 99 | } | ||
| 100 | }); | ||
| 65 | }, | 101 | }, |
| 66 | rules: { | 102 | //打开新增弹窗 |
| 67 | commonOpinion: [ | 103 | openDialog () { |
| 68 | { required: true, message: '请输入常用意见', trigger: 'blur' }, | 104 | this.addDialog = true |
| 69 | ], | ||
| 70 | }, | 105 | }, |
| 71 | addDialog: false, | 106 | //关闭新增弹窗 |
| 72 | } | 107 | closeaddDiglog () { |
| 73 | }, | 108 | this.addDialog = false |
| 74 | mounted () { | 109 | this.$refs['form'].resetFields(); |
| 75 | this.getList() | 110 | }, |
| 76 | }, | 111 | handleRowClick (item) { |
| 77 | methods: { | 112 | this.useCommonOpinion(item) |
| 78 | getList () { | 113 | }, |
| 79 | getUserCommonOpinion().then(res => { | 114 | //使用常用意见 |
| 80 | this.tableData.data = res.result | 115 | useCommonOpinion (item) { |
| 81 | }) | 116 | store.dispatch('workflow/setOptions', item.opinion); |
| 82 | }, | 117 | this.$popupCacel() |
| 83 | //新增常用意见 | 118 | }, |
| 84 | addOpinion () { | 119 | //删除常用意见 |
| 85 | this.$refs.form.validate(valid => { | 120 | deleteOpinion (item) { |
| 86 | if (valid) { | 121 | this.$confirm("确定要删除吗, 是否继续?", "提示", { |
| 87 | addUserCommonOpinion({ commonOpinion: this.form.commonOpinion }).then(res => { | 122 | confirmButtonText: "确定", |
| 123 | cancelButtonText: "取消", | ||
| 124 | type: "warning", | ||
| 125 | }).then(() => { | ||
| 126 | delUserCommonOpinion({ bsmOpinion: item.bsmOpinion }).then(res => { | ||
| 88 | if (res.code == 200) { | 127 | if (res.code == 200) { |
| 89 | this.closeaddDiglog(); | 128 | this.$message.success("删除成功") |
| 90 | this.queryList() | 129 | this.getList() |
| 91 | } else { | 130 | } else { |
| 92 | this.$message.error(res.message) | 131 | this.$message.error(res.message) |
| 93 | } | 132 | } |
| 94 | }) | 133 | }) |
| 95 | } else { | ||
| 96 | return false; | ||
| 97 | } | ||
| 98 | }); | ||
| 99 | }, | ||
| 100 | //打开新增弹窗 | ||
| 101 | openDialog () { | ||
| 102 | this.addDialog = true | ||
| 103 | }, | ||
| 104 | //关闭新增弹窗 | ||
| 105 | closeaddDiglog () { | ||
| 106 | this.addDialog = false; | ||
| 107 | this.$refs['form'].resetFields(); | ||
| 108 | }, | ||
| 109 | //使用常用意见 | ||
| 110 | useCommonOpinion (item) { | ||
| 111 | this.$parent.useOpinion(item.opinion); | ||
| 112 | this.$emit("input", false); | ||
| 113 | }, | ||
| 114 | //删除常用意见 | ||
| 115 | deleteOpinion (item) { | ||
| 116 | this.$confirm("确定要删除吗, 是否继续?", "提示", { | ||
| 117 | confirmButtonText: "确定", | ||
| 118 | cancelButtonText: "取消", | ||
| 119 | type: "warning", | ||
| 120 | }).then(() => { | ||
| 121 | delUserCommonOpinion({ bsmOpinion: item.bsmOpinion }).then(res => { | ||
| 122 | if (res.code == 200) { | ||
| 123 | this.$message.success("删除成功") | ||
| 124 | this.getList() | ||
| 125 | } else { | ||
| 126 | this.$message.error(res.message) | ||
| 127 | } | ||
| 128 | }) | 134 | }) |
| 129 | }) | 135 | .catch(() => { |
| 130 | .catch(() => { | 136 | this.$message({ |
| 131 | this.$message({ | 137 | type: "info", |
| 132 | type: "info", | 138 | message: "已取消删除", |
| 133 | message: "已取消删除", | 139 | }); |
| 134 | }); | 140 | }); |
| 135 | }); | 141 | }, |
| 136 | }, | 142 | //关闭列表弹窗 |
| 137 | //关闭列表弹窗 | 143 | closeDialog () { |
| 138 | closeDialog () { | 144 | this.form.commonOpinion = ""; |
| 139 | this.$emit("input", false); | 145 | } |
| 140 | this.form.commonOpinion = ""; | ||
| 141 | } | 146 | } |
| 142 | } | 147 | } |
| 143 | } | ||
| 144 | </script> | 148 | </script> |
| 145 | <style scoped lang='scss'> | 149 | <style scoped lang='scss'> |
| 146 | @import "~@/styles/mixin.scss"; | 150 | @import "~@/styles/mixin.scss"; |
| 147 | @import "~@/styles/dialogBox.scss"; | 151 | @import "~@/styles/dialogBox.scss"; |
| 148 | 152 | ||
| 149 | .invalid-reson { | 153 | .invalid-reson { |
| 150 | margin-bottom: 10px; | 154 | margin-bottom: 10px; |
| 151 | } | 155 | } |
| 152 | 156 | ||
| 153 | .dialog-footer { | 157 | .dialog-footer { |
| 154 | margin-top: 10px; | 158 | margin-top: 10px; |
| 155 | display: flex; | 159 | display: flex; |
| 156 | justify-content: flex-end; | 160 | justify-content: flex-end; |
| 157 | } | 161 | } |
| 158 | </style> | 162 | </style> |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| 1 | <!-- | ||
| 2 | * @Description: | ||
| 3 | * @Autor: renchao | ||
| 4 | * @LastEditTime: 2023-05-04 14:13:28 | ||
| 5 | --> | ||
| 1 | <template> | 6 | <template> |
| 2 | <div> | 7 | <lb-table :column="tableData.columns" heightNumSetting :pagination="false" :key="key" :data="tableData.data"> |
| 3 | <lb-table :column="tableData.columns" border :maxHeight="300" heightNumSetting :pagination="false" :key="key" :data="tableData.data"> | 8 | </lb-table> |
| 4 | </lb-table> | ||
| 5 | </div> | ||
| 6 | </template> | 9 | </template> |
| 7 | <script> | 10 | <script> |
| 8 | import { mapGetters } from 'vuex' | 11 | import { mapGetters } from 'vuex' |
| 9 | import { getSzRecordList } from "@/api/bdcqz.js"; | 12 | import { getSzRecordList } from "@/api/bdcqz.js"; |
| 10 | import table from "@/utils/mixin/table"; | 13 | import table from "@/utils/mixin/table"; |
| 11 | import { datas } from "../javascript/szxxdata"; | 14 | import { datas } from "../../javascript/szxxdata"; |
| 12 | export default { | 15 | export default { |
| 13 | components: { | 16 | components: { |
| 14 | 17 | ||
| 15 | }, | ||
| 16 | mixins: [table], | ||
| 17 | computed: { | ||
| 18 | ...mapGetters(["dictData"]), | ||
| 19 | }, | ||
| 20 | props: { | ||
| 21 | formData: { | ||
| 22 | type: Object, | ||
| 23 | default: {} | ||
| 24 | }, | 18 | }, |
| 25 | }, | 19 | mixins: [table], |
| 26 | data () { | 20 | computed: { |
| 27 | return { | 21 | ...mapGetters(["dictData"]), |
| 28 | key: 0, | 22 | }, |
| 29 | dataIndex: 0, | 23 | props: { |
| 30 | dialog: false, | 24 | formData: { |
| 31 | details: {}, | 25 | type: Object, |
| 32 | tableData: { | 26 | default: {} |
| 33 | total: 0, | 27 | } |
| 34 | columns: datas.columns(), | 28 | }, |
| 35 | data: [], | 29 | data () { |
| 36 | }, | 30 | return { |
| 37 | } | 31 | key: 0, |
| 38 | }, | 32 | dataIndex: 0, |
| 39 | mounted() { | 33 | dialog: false, |
| 34 | details: {}, | ||
| 35 | tableData: { | ||
| 36 | total: 0, | ||
| 37 | columns: datas.columns(), | ||
| 38 | data: [], | ||
| 39 | }, | ||
| 40 | } | ||
| 41 | }, | ||
| 42 | mounted () { | ||
| 40 | this.query() | 43 | this.query() |
| 41 | }, | 44 | }, |
| 42 | methods: { | 45 | methods: { |
| 43 | query(){ | 46 | query () { |
| 44 | getSzRecordList({bsmBdcqz: this.formData.bsmBdcqz}).then(res => { | 47 | getSzRecordList({ bsmBdcqz: this.formData.bsmBdcqz }).then(res => { |
| 45 | if(res.code == 200){ | 48 | if (res.code == 200) { |
| 46 | this.tableData.data = res.result; | 49 | this.tableData.data = res.result; |
| 47 | } | 50 | this.key++ |
| 51 | } | ||
| 48 | }) | 52 | }) |
| 53 | } | ||
| 49 | } | 54 | } |
| 50 | } | 55 | } |
| 51 | } | ||
| 52 | </script> | 56 | </script> |
| 53 | <style scoped lang='scss'> | 57 | <style scoped lang='scss'> |
| 54 | |||
| 55 | </style> | 58 | </style> |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| 1 | <template> | 1 | <template> |
| 2 | <dialogBox | 2 | <div> |
| 3 | title="不动产权证书" | 3 | <div class="zsdy-content loadingtext"> |
| 4 | width="60%" | 4 | <el-form |
| 5 | v-model="myValue" | 5 | :model="ruleForm" |
| 6 | @closeDialog="closeDialog" | 6 | :rules="rules" |
| 7 | @submitForm="handleSubmit" | 7 | ref="ruleForm" |
| 8 | > | 8 | label-width="120px"> |
| 9 | <div> | 9 | <el-form-item label="印刷序列号:" prop="ysxlh"> |
| 10 | <div> | 10 | <el-select v-model="ruleForm.ysxlh" placeholder="请选择"> |
| 11 | <el-form | 11 | <el-option |
| 12 | :model="ruleForm" | 12 | v-for="item in ysxlh" |
| 13 | :rules="rules" | 13 | :key="item.ysxlh" |
| 14 | ref="ruleForm" | 14 | :label="item.ysxlh" |
| 15 | label-width="120px" | 15 | :value="item.ysxlh"> |
| 16 | > | 16 | </el-option> |
| 17 | <el-form-item label="印刷序列号:" prop="ysxlh"> | 17 | </el-select> |
| 18 | <el-select v-model="ruleForm.ysxlh" placeholder="请选择"> | 18 | </el-form-item> |
| 19 | <el-option | 19 | </el-form> |
| 20 | v-for="item in ysxlh" | 20 | <img :src="previewImage" style="width: 100%"> |
| 21 | :key="item.ysxlh" | ||
| 22 | :label="item.ysxlh" | ||
| 23 | :value="item.ysxlh" | ||
| 24 | > | ||
| 25 | </el-option> | ||
| 26 | </el-select> | ||
| 27 | </el-form-item> | ||
| 28 | </el-form> | ||
| 29 | </div> | ||
| 30 | <img :src="previewImage"> | ||
| 31 | |||
| 32 | </div> | 21 | </div> |
| 33 | </dialogBox> | 22 | <div class="text-center paddingtop10"> |
| 23 | <el-button @click="$popupCacel">取消</el-button> | ||
| 24 | <el-button type="primary" @click="handleSubmit">确定</el-button> | ||
| 25 | </div> | ||
| 26 | </div> | ||
| 34 | </template> | 27 | </template> |
| 35 | 28 | ||
| 36 | <script> | 29 | <script> |
| 37 | import { datas } from "../javascript/zsyl.js"; | 30 | import store from '@/store/index.js' |
| 38 | import { readYsxlh, certificate, bdcqzPreview } from "@/api/bdcqz.js"; | 31 | import { datas } from "../../javascript/zsyl.js"; |
| 39 | export default { | 32 | import { readYsxlh, certificate, bdcqzPreview } from "@/api/bdcqz.js"; |
| 40 | components: {}, | 33 | export default { |
| 41 | props: { | 34 | props: { |
| 42 | value: { type: Boolean, default: false }, | 35 | formData: { |
| 43 | bdcqz: { type: Object, default: () => {} }, | 36 | type: Object, |
| 44 | }, | 37 | default: () => { |
| 45 | data() { | 38 | return {} |
| 46 | return { | 39 | } |
| 47 | myValue: this.value, | ||
| 48 | //印刷序列号集合 | ||
| 49 | ysxlh: [], | ||
| 50 | //证书预览图片 | ||
| 51 | previewImage: '', | ||
| 52 | //列名称对象 | ||
| 53 | columns: [], | ||
| 54 | ruleForm: { | ||
| 55 | bsmBdcqz: "", | ||
| 56 | szmc: "不动产权证书", | ||
| 57 | bdcqzlx: "", | ||
| 58 | szzh: "", | ||
| 59 | ysxlh: "", | ||
| 60 | }, | ||
| 61 | rules: { | ||
| 62 | ysxlh: [ | ||
| 63 | { required: true, message: "请选择印刷序列号", trigger: "change" }, | ||
| 64 | ], | ||
| 65 | }, | ||
| 66 | }; | ||
| 67 | }, | ||
| 68 | watch: { | ||
| 69 | value(val) { | ||
| 70 | this.myValue = val; | ||
| 71 | if (val) { | ||
| 72 | this.columns = datas.columns(); | ||
| 73 | this.ysxlhList(); | ||
| 74 | } | 40 | } |
| 75 | }, | 41 | }, |
| 76 | }, | 42 | data () { |
| 77 | methods: { | 43 | return { |
| 78 | //获取印刷序列号列表 | 44 | //印刷序列号集合 |
| 79 | ysxlhList() { | 45 | ysxlh: [], |
| 80 | readYsxlh({ zslx: this.bdcqz.bdcqzlx }).then((res) => { | 46 | //证书预览图片 |
| 81 | if (res.code === 200) { | 47 | previewImage: '', |
| 82 | this.ysxlh = res.result; | 48 | //列名称对象 |
| 49 | columns: [], | ||
| 50 | ruleForm: { | ||
| 51 | bsmBdcqz: "", | ||
| 52 | szmc: "不动产权证书", | ||
| 53 | bdcqzlx: "", | ||
| 54 | szzh: "", | ||
| 55 | ysxlh: "" | ||
| 56 | }, | ||
| 57 | rules: { | ||
| 58 | ysxlh: [ | ||
| 59 | { required: true, message: "请选择印刷序列号", trigger: "change" } | ||
| 60 | ] | ||
| 83 | } | 61 | } |
| 84 | }); | 62 | } |
| 85 | }, | ||
| 86 | closeDialog() { | ||
| 87 | this.$emit("input", false); | ||
| 88 | }, | ||
| 89 | handleSubmit() { | ||
| 90 | this.savePrintRecord(); | ||
| 91 | }, | ||
| 92 | //获取证书内容 | ||
| 93 | getRowValue(code) { | ||
| 94 | var value = this.bdcqz[code]; | ||
| 95 | return value; | ||
| 96 | }, | 63 | }, |
| 97 | getBdcqzPreview() { | 64 | created () { |
| 98 | this.$startLoading() | 65 | this.columns = datas.columns() |
| 99 | bdcqzPreview(this.bdcqz).then(res => { | 66 | this.ysxlhList() |
| 100 | this.$endLoading() | 67 | this.getBdcqzPreview() |
| 101 | let blob = new Blob([res]); | ||
| 102 | let url = window.URL.createObjectURL(blob); | ||
| 103 | this.previewImage = url; | ||
| 104 | }) | ||
| 105 | }, | 68 | }, |
| 106 | //保存打印记录 | 69 | methods: { |
| 107 | savePrintRecord() { | 70 | //获取印刷序列号列表 |
| 108 | this.ruleForm.bsmBdcqz = this.bdcqz.bsmBdcqz; | 71 | ysxlhList () { |
| 109 | this.ruleForm.bdcqzlx = this.bdcqz.bdcqzlx; | 72 | readYsxlh({ zslx: this.formData.bdcqz.bdcqzlx }).then((res) => { |
| 110 | this.ruleForm.szzh = this.bdcqz.bdcqzh; | 73 | if (res.code === 200) { |
| 111 | certificate(this.ruleForm).then((res) => { | 74 | this.ysxlh = res.result; |
| 112 | if (res.code === 200) { | 75 | } |
| 113 | this.$emit("input", false); | 76 | }) |
| 114 | this.$message.success("提交成功"); | 77 | }, |
| 115 | //刷新列表 | 78 | handleSubmit () { |
| 116 | this.$parent.list(); | 79 | this.savePrintRecord() |
| 117 | } else { | 80 | }, |
| 118 | this.$message.error(res.message); | 81 | //获取证书内容 |
| 119 | } | 82 | getRowValue (code) { |
| 120 | }); | 83 | var value = this.bdcqz[code]; |
| 84 | return value; | ||
| 85 | }, | ||
| 86 | getBdcqzPreview () { | ||
| 87 | this.$startLoading() | ||
| 88 | bdcqzPreview(this.formData.bdcqz).then(res => { | ||
| 89 | this.$endLoading() | ||
| 90 | let blob = new Blob([res]); | ||
| 91 | let url = window.URL.createObjectURL(blob); | ||
| 92 | this.previewImage = url; | ||
| 93 | }) | ||
| 94 | }, | ||
| 95 | //保存打印记录 | ||
| 96 | savePrintRecord () { | ||
| 97 | this.ruleForm.bsmBdcqz = this.formData.bdcqz.bsmBdcqz; | ||
| 98 | this.ruleForm.bdcqzlx = this.formData.bdcqz.bdcqzlx; | ||
| 99 | this.ruleForm.szzh = this.formData.bdcqz.bdcqzh; | ||
| 100 | certificate(this.ruleForm).then((res) => { | ||
| 101 | if (res.code === 200) { | ||
| 102 | this.$popupCacel() | ||
| 103 | this.$message.success("提交成功") | ||
| 104 | //刷新列表 | ||
| 105 | store.dispatch('user/refreshPage', true); | ||
| 106 | } else { | ||
| 107 | this.$message.error(res.message) | ||
| 108 | } | ||
| 109 | }); | ||
| 110 | }, | ||
| 121 | }, | 111 | }, |
| 122 | }, | 112 | }; |
| 123 | }; | ||
| 124 | </script> | 113 | </script> |
| 125 | <style scoped lang="scss"> | 114 | <style scoped lang="scss"> |
| 126 | @import "~@/styles/mixin.scss"; | 115 | @import "~@/styles/mixin.scss"; |
| 127 | 116 | .zsdy-content { | |
| 128 | .aaaa { | 117 | height: 80vh; |
| 129 | width: 1024px; | 118 | overflow-y: scroll; |
| 130 | height: 739px; | 119 | } |
| 131 | font-family: KaiTi; | 120 | .paddingtop10 { |
| 132 | font-weight: 700; | 121 | padding-top: 10px; |
| 133 | } | 122 | } |
| 134 | .bdcdjzm { | 123 | .aaaa { |
| 135 | width: 1123px; | 124 | width: 1024px; |
| 136 | height: 794px; | 125 | height: 739px; |
| 137 | font-family: KaiTi; | 126 | font-family: KaiTi; |
| 138 | font-weight: 700; | 127 | font-weight: 700; |
| 139 | } | 128 | } |
| 140 | .zmyl-box { | 129 | .bdcdjzm { |
| 141 | //position: relative; | 130 | width: 1123px; |
| 142 | position: absolute; | 131 | height: 794px; |
| 143 | height: 600px; | 132 | font-family: KaiTi; |
| 144 | width: 280px; | 133 | font-weight: 700; |
| 145 | margin-left: 775px; | 134 | } |
| 146 | font-size: 16px; | 135 | .zmyl-box { |
| 147 | justify-content: space-between; | 136 | //position: relative; |
| 148 | } | 137 | position: absolute; |
| 149 | .bdcqzh { | 138 | height: 600px; |
| 150 | height: 70px; | 139 | width: 280px; |
| 151 | left: 0; | 140 | margin-left: 775px; |
| 152 | bottom: 0; | 141 | font-size: 16px; |
| 153 | font-size: 18px; | 142 | justify-content: space-between; |
| 154 | } | 143 | } |
| 155 | .zsyl-box { | 144 | .bdcqzh { |
| 156 | display: flex; | 145 | height: 70px; |
| 157 | justify-content: space-between; | 146 | left: 0; |
| 158 | // padding: 20px; | 147 | bottom: 0; |
| 159 | font-size: 16px; | 148 | font-size: 18px; |
| 160 | height: 100%; | 149 | } |
| 161 | $left: 131px; | 150 | .zsyl-box { |
| 151 | display: flex; | ||
| 152 | justify-content: space-between; | ||
| 153 | // padding: 20px; | ||
| 154 | font-size: 16px; | ||
| 155 | height: 100%; | ||
| 156 | $left: 131px; | ||
| 162 | 157 | ||
| 163 | .zsyl-left { | 158 | .zsyl-left { |
| 164 | width: 460px; | 159 | width: 460px; |
| 165 | position: relative; | 160 | position: relative; |
| 166 | .qlr { | 161 | .qlr { |
| 167 | position: absolute; | 162 | position: absolute; |
| 168 | top: 40px; | 163 | top: 40px; |
| 169 | left: $left; | 164 | left: $left; |
| 170 | } | 165 | } |
| 171 | .gyqk { | 166 | .gyqk { |
| 172 | position: absolute; | 167 | position: absolute; |
| 173 | top: 80px; | 168 | top: 80px; |
| 174 | left: $left; | 169 | left: $left; |
| 175 | } | 170 | } |
| 176 | .zl { | 171 | .zl { |
| 177 | position: absolute; | 172 | position: absolute; |
| 178 | top: 120px; | 173 | top: 120px; |
| 179 | left: $left; | 174 | left: $left; |
| 180 | } | 175 | } |
| 181 | .bdcdyh { | 176 | .bdcdyh { |
| 182 | position: absolute; | 177 | position: absolute; |
| 183 | top: 160px; | 178 | top: 160px; |
| 184 | left: $left; | 179 | left: $left; |
| 185 | } | 180 | } |
| 186 | .qllx { | 181 | .qllx { |
| 187 | position: absolute; | 182 | position: absolute; |
| 188 | top: 205px; | 183 | top: 205px; |
| 189 | left: $left; | 184 | left: $left; |
| 190 | } | 185 | } |
| 191 | .qlxz { | 186 | .qlxz { |
| 192 | position: absolute; | 187 | position: absolute; |
| 193 | top: 250px; | 188 | top: 250px; |
| 194 | left: $left; | 189 | left: $left; |
| 195 | } | 190 | } |
| 196 | .yt { | 191 | .yt { |
| 197 | position: absolute; | 192 | position: absolute; |
| 198 | top: 290px; | 193 | top: 290px; |
| 199 | left: $left; | 194 | left: $left; |
| 200 | } | 195 | } |
| 201 | .mj { | 196 | .mj { |
| 202 | position: absolute; | 197 | position: absolute; |
| 203 | top: 330px; | 198 | top: 330px; |
| 204 | left: $left; | 199 | left: $left; |
| 200 | } | ||
| 201 | .syqx { | ||
| 202 | position: absolute; | ||
| 203 | top: 370px; | ||
| 204 | left: $left; | ||
| 205 | } | ||
| 206 | .qt { | ||
| 207 | position: absolute; | ||
| 208 | top: 420px; | ||
| 209 | left: $left; | ||
| 210 | } | ||
| 205 | } | 211 | } |
| 206 | .syqx { | 212 | .zsyl-right { |
| 207 | position: absolute; | 213 | flex: 1; |
| 208 | top: 370px; | 214 | text-align: left; |
| 209 | left: $left; | 215 | position: relative; |
| 216 | .fj { | ||
| 217 | position: absolute; | ||
| 218 | left: 115px; | ||
| 219 | top: 5px; | ||
| 220 | } | ||
| 210 | } | 221 | } |
| 211 | .qt { | 222 | .zsyl-title { |
| 212 | position: absolute; | 223 | margin-bottom: 12px; |
| 213 | top: 420px; | ||
| 214 | left: $left; | ||
| 215 | } | 224 | } |
| 216 | } | 225 | /deep/.el-table__row { |
| 217 | .zsyl-right { | 226 | background: #fafbe5 !important; |
| 218 | flex: 1; | ||
| 219 | text-align: left; | ||
| 220 | position: relative; | ||
| 221 | .fj { | ||
| 222 | position: absolute; | ||
| 223 | left: 115px; | ||
| 224 | top: 5px; | ||
| 225 | } | 227 | } |
| 226 | } | 228 | } |
| 227 | .zsyl-title { | 229 | .middle_padding { |
| 228 | margin-bottom: 12px; | 230 | padding-bottom: 10px; |
| 229 | } | ||
| 230 | /deep/.el-table__row { | ||
| 231 | background: #fafbe5 !important; | ||
| 232 | } | ||
| 233 | } | ||
| 234 | .middle_padding { | ||
| 235 | padding-bottom: 10px; | ||
| 236 | } | ||
| 237 | .zsyl-button { | ||
| 238 | text-align: center; | ||
| 239 | margin-top: 20px; | ||
| 240 | .operation_button { | ||
| 241 | width: 100px; | ||
| 242 | border: 1px solid rgb(0, 121, 254); | ||
| 243 | } | 231 | } |
| 244 | .dy-button { | 232 | .zsyl-button { |
| 245 | color: white; | 233 | text-align: center; |
| 246 | background-color: rgb(0, 121, 254); | 234 | margin-top: 20px; |
| 235 | .operation_button { | ||
| 236 | width: 100px; | ||
| 237 | border: 1px solid rgb(0, 121, 254); | ||
| 238 | } | ||
| 239 | .dy-button { | ||
| 240 | color: white; | ||
| 241 | background-color: rgb(0, 121, 254); | ||
| 242 | } | ||
| 247 | } | 243 | } |
| 248 | } | ||
| 249 | </style> | 244 | </style> | ... | ... |
| 1 | <template> | ||
| 2 | <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px"> | ||
| 3 | <el-row> | ||
| 4 | <el-col :span="8"> | ||
| 5 | <el-form-item label="发证人姓名"> | ||
| 6 | <el-input v-model="ruleForm.fzrmc" disabled></el-input> | ||
| 7 | </el-form-item> | ||
| 8 | </el-col> | ||
| 9 | <el-col :span="8"> | ||
| 10 | <el-form-item label="发证时间"> | ||
| 11 | <el-input v-model="ruleForm.fzsj" disabled></el-input> | ||
| 12 | </el-form-item> | ||
| 13 | </el-col> | ||
| 14 | <el-col :span="8"> | ||
| 15 | <el-form-item label="发证数量"> | ||
| 16 | <el-input v-model="ruleForm.fzsl" disabled></el-input> | ||
| 17 | </el-form-item> | ||
| 18 | </el-col> | ||
| 19 | </el-row> | ||
| 20 | |||
| 21 | <lb-table :column="tableData.columns" :data="tableData.data" :pagination="false" :calcHeight="300"> | ||
| 22 | </lb-table> | ||
| 23 | <el-row> | ||
| 24 | <el-col :span="6"> | ||
| 25 | <el-form-item label="领证人" prop="lzrxm"> | ||
| 26 | <el-input v-model="ruleForm.lzrxm"></el-input> | ||
| 27 | </el-form-item> | ||
| 28 | </el-col> | ||
| 29 | <el-col :span="6"> | ||
| 30 | <el-form-item label="证件类型" prop="lzrzjlb"> | ||
| 31 | <el-select v-model="ruleForm.lzrzjlb" filterable clearable placeholder="请选择"> | ||
| 32 | <el-option v-for="item in zjzlData" :key="item.dcode" :label="item.dname" :value="item.dcode"> | ||
| 33 | </el-option> | ||
| 34 | </el-select> | ||
| 35 | </el-form-item> | ||
| 36 | </el-col> | ||
| 37 | <el-col :span="6"> | ||
| 38 | <el-form-item label="证件号" prop="lzrzjh"> | ||
| 39 | <el-input v-model="ruleForm.lzrzjh"></el-input> | ||
| 40 | </el-form-item> | ||
| 41 | </el-col> | ||
| 42 | <el-col :span="6"> | ||
| 43 | <el-form-item label="领证人电话" prop="lzrdh"> | ||
| 44 | <el-input v-model="ruleForm.lzrdh"></el-input> | ||
| 45 | </el-form-item> | ||
| 46 | </el-col> | ||
| 47 | </el-row> | ||
| 48 | <el-form-item class="text-center"> | ||
| 49 | <el-button @click="$popupCacel">取消</el-button> | ||
| 50 | <el-button type="primary" @click="handleSubmit">确定</el-button> | ||
| 51 | </el-form-item> | ||
| 52 | </el-form> | ||
| 53 | </template> | ||
| 54 | |||
| 55 | <script> | ||
| 56 | import Vue from 'vue' | ||
| 57 | import store from '@/store/index.js' | ||
| 58 | import table from "@/utils/mixin/table"; | ||
| 59 | import { getUnclaimedBdcqz, issueCertificate } from "@/api/bdcqz.js"; | ||
| 60 | import { datas } from "../../javascript/fzxxdata"; | ||
| 61 | import { log } from 'bpmn-js-token-simulation'; | ||
| 62 | export default { | ||
| 63 | props: { | ||
| 64 | formData: { | ||
| 65 | type: Object, | ||
| 66 | default: () => { | ||
| 67 | return {} | ||
| 68 | } | ||
| 69 | } | ||
| 70 | }, | ||
| 71 | mixins: [table], | ||
| 72 | data () { | ||
| 73 | return { | ||
| 74 | zjzlData: store.getters.dictData['A30'], | ||
| 75 | ruleForm: { | ||
| 76 | fzrmc: '', | ||
| 77 | fzsj: '', | ||
| 78 | fzsl: '', | ||
| 79 | bdcqzList: [], | ||
| 80 | lzrxm: '', | ||
| 81 | lzrzjlb: '', | ||
| 82 | lzrzjh: '', | ||
| 83 | lzrdh: '' | ||
| 84 | }, | ||
| 85 | rules: { | ||
| 86 | lzrxm: [ | ||
| 87 | { required: true, message: '请输入领证人', trigger: 'blur' } | ||
| 88 | ], | ||
| 89 | lzrzjlb: [ | ||
| 90 | { required: true, message: '请选择证件类型', trigger: 'change' } | ||
| 91 | ], | ||
| 92 | lzrzjh: [ | ||
| 93 | { required: true, message: '请输入证件号', trigger: 'blur' } | ||
| 94 | ], | ||
| 95 | lzrdh: [ | ||
| 96 | { required: true, message: '请输入电话号码', trigger: 'blur' } | ||
| 97 | ], | ||
| 98 | }, | ||
| 99 | tableData: { | ||
| 100 | total: 0, | ||
| 101 | columns: datas.columns().lzgrid, | ||
| 102 | data: [], | ||
| 103 | }, | ||
| 104 | } | ||
| 105 | }, | ||
| 106 | mounted () { | ||
| 107 | this.$nextTick(() => { | ||
| 108 | this.loadGrid() | ||
| 109 | }) | ||
| 110 | }, | ||
| 111 | methods: { | ||
| 112 | //列表初始化 | ||
| 113 | loadGrid () { | ||
| 114 | getUnclaimedBdcqz({ bsmSlsq: Vue.prototype.$currentRoute.query.bsmSlsq }).then(res => { | ||
| 115 | if (res.code === 200) { | ||
| 116 | this.tableData.data = res.result.list; | ||
| 117 | this.ruleForm.fzrmc = res.result.fzrmc | ||
| 118 | this.ruleForm.fzsj = res.result.fzsj | ||
| 119 | this.ruleForm.fzsl = res.result.fzsl | ||
| 120 | |||
| 121 | } | ||
| 122 | }) | ||
| 123 | }, | ||
| 124 | handleSubmit () { | ||
| 125 | this.$refs.ruleForm.validate(valid => { | ||
| 126 | if (valid) { | ||
| 127 | issueCertificate(this.ruleForm).then(res => { | ||
| 128 | if (res.code == 200) { | ||
| 129 | this.$message.success('保存成功'); | ||
| 130 | this.$parent.queryClick(); | ||
| 131 | this.$emit("input", false); | ||
| 132 | } else { | ||
| 133 | this.$message.error(res.message) | ||
| 134 | } | ||
| 135 | }) | ||
| 136 | } else { | ||
| 137 | this.$message.error("请填写领取人信息!") | ||
| 138 | return false; | ||
| 139 | } | ||
| 140 | }) | ||
| 141 | } | ||
| 142 | } | ||
| 143 | } | ||
| 144 | </script> | ||
| 145 | <style scoped lang="scss"> | ||
| 146 | @import "~@/styles/mixin.scss"; | ||
| 147 | </style> |
| ... | @@ -11,7 +11,7 @@ | ... | @@ -11,7 +11,7 @@ |
| 11 | </template> | 11 | </template> |
| 12 | 12 | ||
| 13 | <script> | 13 | <script> |
| 14 | import { datas } from "../javascript/zsyl.js"; | 14 | import { datas } from "../../javascript/zsyl.js"; |
| 15 | import { getSlsqBdcqzList, bdcqzPreview } from "@/api/bdcqz.js" | 15 | import { getSlsqBdcqzList, bdcqzPreview } from "@/api/bdcqz.js" |
| 16 | export default { | 16 | export default { |
| 17 | name: "zsyl", | 17 | name: "zsyl", | ... | ... |
| 1 | <!-- | ||
| 2 | * @Description: | ||
| 3 | * @Autor: renchao | ||
| 4 | * @LastEditTime: 2023-05-04 10:29:45 | ||
| 5 | --> | ||
| 1 | <template> | 6 | <template> |
| 2 | <div class="from-clues"> | 7 | <div class="from-clues"> |
| 3 | <!-- 发证信息 --> | 8 | <!-- 发证信息 --> |
| ... | @@ -22,9 +27,9 @@ | ... | @@ -22,9 +27,9 @@ |
| 22 | <el-col :span="6" class="btnColRight"> | 27 | <el-col :span="6" class="btnColRight"> |
| 23 | <el-form-item> | 28 | <el-form-item> |
| 24 | <el-button type="primary" icon="el-icon-search" @click="handleSearch">查询</el-button> | 29 | <el-button type="primary" icon="el-icon-search" @click="handleSearch">查询</el-button> |
| 25 | <el-button type="primary" icon="el-icon-search" @click="zslqClick()">证书领取</el-button> | 30 | <el-button type="primary" icon="el-icon-search" @click="zslqClick">证书领取</el-button> |
| 26 | </el-form-item> | 31 | </el-form-item> |
| 27 | </el-col> | 32 | </el-col> |
| 28 | </el-row> | 33 | </el-row> |
| 29 | </el-form> | 34 | </el-form> |
| 30 | </div> | 35 | </div> |
| ... | @@ -32,56 +37,45 @@ | ... | @@ -32,56 +37,45 @@ |
| 32 | <lb-table border :column="tableData.columns" :heightNum="210" :data="tableData.data" :pagination="false"> | 37 | <lb-table border :column="tableData.columns" :heightNum="210" :data="tableData.data" :pagination="false"> |
| 33 | </lb-table> | 38 | </lb-table> |
| 34 | </div> | 39 | </div> |
| 35 | <zslqDialog v-model="dialogVisible" @update:dialogVisible="dialogVisibles"></zslqDialog> | ||
| 36 | </div> | 40 | </div> |
| 37 | </template> | 41 | </template> |
| 38 | <script> | 42 | <script> |
| 39 | import table from "@/utils/mixin/table"; | 43 | import table from "@/utils/mixin/table"; |
| 40 | import zslqDialog from "./zslq.vue"; | 44 | import { getCertificateList } from "@/api/bdcqz.js"; |
| 41 | import { getCertificateList } from "@/api/bdcqz.js"; | 45 | import { datas } from "../javascript/fzxxdata"; |
| 42 | import { datas } from "../javascript/fzxxdata"; | 46 | export default { |
| 43 | export default { | 47 | mixins: [table], |
| 44 | mixins: [table], | 48 | data () { |
| 45 | components: { | 49 | return { |
| 46 | zslqDialog | 50 | ruleForm: { |
| 47 | }, | 51 | ysxlh: '', |
| 48 | props: { | 52 | zsh: '', |
| 49 | }, | 53 | qlr: '', |
| 50 | data () { | 54 | bsmSldy: '', |
| 51 | return { | 55 | }, |
| 52 | ruleForm: { | 56 | tableData: { |
| 53 | ysxlh: '', | 57 | total: 0, |
| 54 | zsh: '', | 58 | columns: datas.columns().fzgrid, |
| 55 | qlr: '', | 59 | data: [], |
| 56 | bsmSldy: '', | 60 | }, |
| 57 | }, | 61 | dialogVisible: false |
| 58 | tableData: { | 62 | } |
| 59 | total: 0, | ||
| 60 | columns: datas.columns().fzgrid, | ||
| 61 | data: [], | ||
| 62 | }, | ||
| 63 | dialogVisible:false | ||
| 64 | } | ||
| 65 | }, | ||
| 66 | methods: { | ||
| 67 | queryClick () { | ||
| 68 | this.ruleForm.bsmSlsq = this.$route.query.bsmSlsq; | ||
| 69 | getCertificateList(this.ruleForm).then(res => { | ||
| 70 | if (res.code === 200) { | ||
| 71 | this.tableData.data = res.result; | ||
| 72 | } | ||
| 73 | }) | ||
| 74 | }, | ||
| 75 | zslqClick(){ | ||
| 76 | this.dialogVisible = true; | ||
| 77 | }, | 63 | }, |
| 78 | //子组件传 过来的 数据 | 64 | methods: { |
| 79 | dialogVisibles(v){ | 65 | queryClick () { |
| 80 | this.dialogVisible = v; | 66 | this.ruleForm.bsmSlsq = this.$route.query.bsmSlsq; |
| 67 | getCertificateList(this.ruleForm).then(res => { | ||
| 68 | if (res.code === 200) { | ||
| 69 | this.tableData.data = res.result; | ||
| 70 | } | ||
| 71 | }) | ||
| 72 | }, | ||
| 73 | zslqClick () { | ||
| 74 | this.$popupDialog("不动产权证领取", "workflow/components/dialog/zslq", {}, '80%', true); | ||
| 75 | } | ||
| 81 | } | 76 | } |
| 82 | } | 77 | } |
| 83 | } | ||
| 84 | </script> | 78 | </script> |
| 85 | <style scoped lang='scss'> | 79 | <style scoped lang='scss'> |
| 86 | @import "~@/styles/public.scss"; | 80 | @import "~@/styles/public.scss"; |
| 87 | </style> | 81 | </style> |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| 1 | <template> | 1 | <template> |
| 2 | <div> | 2 | <div> |
| 3 | <lb-table :column="column" :maxHeight="300" heightNumSetting :pagination="false" :key="key" :data="tableDataList"> | 3 | <lb-table :column="column" :pagination="false" :key="key" :data="tableDataList"> |
| 4 | </lb-table> | 4 | </lb-table> |
| 5 | <addQlr v-model="dialog" :details="details" :showButton="showButton" @updateDetail="handleupdateDetail" /> | 5 | <addQlr v-model="dialog" :details="details" :showButton="showButton" @updateDetail="handleupdateDetail" /> |
| 6 | </div> | 6 | </div> |
| 7 | </template> | 7 | </template> |
| 8 | <script> | 8 | <script> |
| 9 | import addQlr from './addQlr.vue' | 9 | import addQlr from './dialog/addQlr.vue' |
| 10 | import { mapGetters } from 'vuex' | 10 | import { mapGetters } from 'vuex' |
| 11 | export default { | 11 | export default { |
| 12 | components: { | 12 | components: { |
| 13 | addQlr | 13 | addQlr |
| 14 | }, | 14 | }, |
| 15 | computed: { | 15 | computed: { |
| 16 | ...mapGetters(["dictData"]), | 16 | ...mapGetters(["dictData"]), |
| 17 | }, | 17 | }, |
| 18 | props: { | 18 | props: { |
| 19 | tableData: { | 19 | tableData: { |
| 20 | type: Array, | 20 | type: Array, |
| 21 | default: function () { | 21 | default: function () { |
| 22 | return [] | 22 | return [] |
| 23 | } | ||
| 24 | }, | ||
| 25 | gyfs: { | ||
| 26 | type: String, | ||
| 27 | default: '1' | ||
| 23 | } | 28 | } |
| 24 | }, | 29 | }, |
| 25 | gyfs: { | 30 | data () { |
| 26 | type: String, | 31 | return { |
| 27 | default: '1' | 32 | key: 0, |
| 28 | } | 33 | dataIndex: 0, |
| 29 | }, | 34 | dialog: false, |
| 30 | data () { | 35 | isaddupdate: false, |
| 31 | return { | 36 | showButton: this.$route.query.viewtype ? false : true, |
| 32 | key: 0, | 37 | details: {}, |
| 33 | dataIndex: 0, | 38 | tableDataList: [], |
| 34 | dialog: false, | 39 | InformationTable: [ |
| 35 | isaddupdate: false, | 40 | { |
| 36 | showButton: this.$route.query.viewtype ? false : true, | 41 | width: '50', |
| 37 | details: {}, | 42 | renderHeader: (h, scope) => { |
| 38 | tableDataList: [], | 43 | return <div> { |
| 39 | InformationTable: [ | 44 | this.$route.query.viewtype == 1 ? '序号' : <i class="el-icon-plus pointer" onClick={() => { this.addClick() }}></i> |
| 40 | { | 45 | } |
| 41 | width: '50', | 46 | </div> |
| 42 | renderHeader: (h, scope) => { | 47 | }, |
| 43 | return <div> { | 48 | render: (h, scope) => { |
| 44 | this.$route.query.viewtype == 1 ? '序号' : <i class="el-icon-plus pointer" onClick={() => { this.addClick() }}></i> | 49 | return ( |
| 50 | <div> | ||
| 51 | { | ||
| 52 | this.$route.query.viewtype == 1 ? <span>{scope.$index + 1}</span> : | ||
| 53 | <i class="el-icon-minus pointer" onClick={() => { this.deleClick(scope.$index, scope.row) }}></i> | ||
| 54 | } | ||
| 55 | </div> | ||
| 56 | ) | ||
| 45 | } | 57 | } |
| 46 | </div> | ||
| 47 | }, | 58 | }, |
| 48 | render: (h, scope) => { | 59 | { |
| 49 | return ( | 60 | label: '身份证读卡器', |
| 50 | <div> | 61 | align: 'center', |
| 51 | { | 62 | render: (h, scope) => { |
| 52 | this.$route.query.viewtype == 1 ? <span>{scope.$index + 1}</span> : | 63 | return <el-button type="text" icon="el-icon-tickets" onClick={() => { this.readClick(scope) }}>读取</el-button> |
| 53 | <i class="el-icon-minus pointer" onClick={() => { this.deleClick(scope.$index, scope.row) }}></i> | 64 | } |
| 65 | }, | ||
| 66 | { | ||
| 67 | prop: "sqrmc", | ||
| 68 | label: "姓名/名称" | ||
| 69 | }, | ||
| 70 | { | ||
| 71 | prop: "zjzl", | ||
| 72 | label: "证件种类", | ||
| 73 | render: (h, scope) => { | ||
| 74 | return this.dictData['A30'] && this.dictData['A30'].map(option => { | ||
| 75 | if (option.dcode == scope.row.zjzl) { | ||
| 76 | return <span>{option.dname}</span> | ||
| 54 | } | 77 | } |
| 55 | </div> | 78 | }) |
| 56 | ) | 79 | } |
| 57 | } | 80 | }, |
| 58 | }, | 81 | { |
| 59 | { | 82 | prop: "zjh", |
| 60 | label: '身份证读卡器', | 83 | label: "证件号" |
| 61 | align: 'center', | 84 | }, |
| 62 | render: (h, scope) => { | 85 | { |
| 63 | return <el-button type="text" icon="el-icon-tickets" onClick={() => { this.readClick(scope) }}>读取</el-button> | 86 | prop: "dh", |
| 87 | label: "联系电话" | ||
| 88 | }, | ||
| 89 | { | ||
| 90 | label: '操作', | ||
| 91 | render: (h, scope) => { | ||
| 92 | return ( | ||
| 93 | <div> | ||
| 94 | { | ||
| 95 | this.$route.query.viewtype ? <el-button | ||
| 96 | icon="el-icon-view" | ||
| 97 | type="text" | ||
| 98 | onClick={() => { this.queryViewClick(scope.$index, scope.row) }}>查看</el-button> : <el-button | ||
| 99 | icon="el-icon-edit-outline" | ||
| 100 | type="text" | ||
| 101 | onClick={() => { this.editClick(scope.$index, scope.row) }}>编辑</el-button> | ||
| 102 | } | ||
| 103 | </div> | ||
| 104 | ) | ||
| 105 | } | ||
| 64 | } | 106 | } |
| 107 | ], | ||
| 108 | column: [] | ||
| 109 | } | ||
| 110 | }, | ||
| 111 | watch: { | ||
| 112 | tableData: { | ||
| 113 | handler: function (val, oldVal) { | ||
| 114 | let that = this | ||
| 115 | this.$nextTick(() => { | ||
| 116 | if (val.length == 0 || !val) { | ||
| 117 | that.tableDataList = _.cloneDeep([{ | ||
| 118 | sqrmc: '', | ||
| 119 | dlrzjlx: '', | ||
| 120 | dlrzjh: '', | ||
| 121 | fr: '' | ||
| 122 | }]) | ||
| 123 | } else { | ||
| 124 | that.tableDataList = _.cloneDeep(val) | ||
| 125 | } | ||
| 126 | }) | ||
| 65 | }, | 127 | }, |
| 66 | { | 128 | immediate: true, |
| 67 | prop: "sqrmc", | 129 | deep: true |
| 68 | label: "姓名/名称" | 130 | }, |
| 69 | }, | 131 | gyfs: { |
| 70 | { | 132 | handler (newVal, oldValue) { |
| 71 | prop: "zjzl", | 133 | let dataList = _.cloneDeep(this.InformationTable) |
| 72 | label: "证件种类", | 134 | if (newVal == 0) { |
| 73 | render: (h, scope) => { | 135 | // this.column = _.cloneDeep(dataList).slice(1, dataList.length) |
| 74 | return this.dictData['A30'] && this.dictData['A30'].map(option => { | 136 | this.column = _.cloneDeep(dataList) |
| 75 | if (option.dcode == scope.row.zjzl) { | 137 | |
| 76 | return <span>{option.dname}</span> | 138 | } else if ((newVal == '1' || newVal == '3')) { |
| 77 | } | 139 | this.column = dataList |
| 140 | } else { | ||
| 141 | this.column = _.cloneDeep(dataList) | ||
| 142 | this.column.splice( | ||
| 143 | 2, 0, { | ||
| 144 | prop: "fs", | ||
| 145 | label: "份数" | ||
| 78 | }) | 146 | }) |
| 79 | } | 147 | } |
| 80 | }, | 148 | }, |
| 81 | { | 149 | immediate: true |
| 82 | prop: "zjh", | 150 | } |
| 83 | label: "证件号" | 151 | }, |
| 84 | }, | 152 | methods: { |
| 85 | { | 153 | handleupdateDetail (value) { |
| 86 | prop: "dh", | 154 | if (this.isaddupdate) { |
| 87 | label: "联系电话" | 155 | if (!_.isEqual(value, this.tableData)) { |
| 88 | }, | 156 | this.tableDataList[this.tableDataList.length] = _.cloneDeep(value); |
| 89 | { | 157 | this.$emit('upDateQlrxxList', this.tableDataList) |
| 90 | label: '操作', | ||
| 91 | render: (h, scope) => { | ||
| 92 | return ( | ||
| 93 | <div> | ||
| 94 | { | ||
| 95 | this.$route.query.viewtype ? <el-button | ||
| 96 | icon="el-icon-view" | ||
| 97 | type="text" | ||
| 98 | onClick={() => { this.queryViewClick(scope.$index, scope.row) }}>查看</el-button> : <el-button | ||
| 99 | icon="el-icon-edit-outline" | ||
| 100 | type="text" | ||
| 101 | onClick={() => { this.editClick(scope.$index, scope.row) }}>编辑</el-button> | ||
| 102 | } | ||
| 103 | </div> | ||
| 104 | ) | ||
| 105 | } | 158 | } |
| 106 | } | 159 | } else { |
| 107 | ], | 160 | if (!_.isEqual(value, this.tableData)) { |
| 108 | column: [] | 161 | this.tableDataList[this.dataIndex] = _.cloneDeep(value); |
| 109 | } | 162 | this.$emit('upDateQlrxxList', this.tableDataList) |
| 110 | }, | ||
| 111 | watch: { | ||
| 112 | tableData: { | ||
| 113 | handler: function (val, oldVal) { | ||
| 114 | let that = this | ||
| 115 | this.$nextTick(() => { | ||
| 116 | if (val.length == 0 || !val) { | ||
| 117 | that.tableDataList = _.cloneDeep([{ | ||
| 118 | sqrmc: '', | ||
| 119 | dlrzjlx: '', | ||
| 120 | dlrzjh: '', | ||
| 121 | fr: '' | ||
| 122 | }]) | ||
| 123 | } else { | ||
| 124 | that.tableDataList = _.cloneDeep(val) | ||
| 125 | } | 163 | } |
| 126 | }) | 164 | } |
| 165 | this.key++ | ||
| 127 | }, | 166 | }, |
| 128 | immediate: true, | 167 | // 新增 |
| 129 | deep: true | 168 | addClick () { |
| 130 | }, | 169 | if (this.gyfs == '0' && this.tableDataList.length > 0) { |
| 131 | gyfs: { | 170 | this.$message.warning("当前共有方式为单独所有,无法添加多个权利人") |
| 132 | handler (newVal, oldValue) { | ||
| 133 | let dataList = _.cloneDeep(this.InformationTable) | ||
| 134 | if (newVal == 0) { | ||
| 135 | // this.column = _.cloneDeep(dataList).slice(1, dataList.length) | ||
| 136 | this.column = _.cloneDeep(dataList) | ||
| 137 | |||
| 138 | } else if ((newVal == '1' || newVal == '3')) { | ||
| 139 | this.column = dataList | ||
| 140 | } else { | 171 | } else { |
| 141 | this.column = _.cloneDeep(dataList) | 172 | this.dialog = true |
| 142 | this.column.splice( | 173 | this.isaddupdate = true |
| 143 | 2, 0, { | ||
| 144 | prop: "fs", | ||
| 145 | label: "份数" | ||
| 146 | }) | ||
| 147 | } | 174 | } |
| 148 | }, | 175 | }, |
| 149 | immediate: true | ||
| 150 | } | ||
| 151 | }, | ||
| 152 | methods: { | ||
| 153 | handleupdateDetail (value) { | ||
| 154 | if (this.isaddupdate) { | ||
| 155 | if (!_.isEqual(value, this.tableData)) { | ||
| 156 | this.tableDataList[this.tableDataList.length] = _.cloneDeep(value); | ||
| 157 | this.$emit('upDateQlrxxList', this.tableDataList) | ||
| 158 | } | ||
| 159 | } else { | ||
| 160 | if (!_.isEqual(value, this.tableData)) { | ||
| 161 | this.tableDataList[this.dataIndex] = _.cloneDeep(value); | ||
| 162 | this.$emit('upDateQlrxxList', this.tableDataList) | ||
| 163 | } | ||
| 164 | } | ||
| 165 | }, | ||
| 166 | |||
| 167 | // 新增 | ||
| 168 | addClick () { | ||
| 169 | if(this.gyfs == '0' && this.tableDataList.length > 0){ | ||
| 170 | this.$message.warning("当前共有方式为单独所有,无法添加多个权利人") | ||
| 171 | }else{ | ||
| 172 | this.dialog = true | ||
| 173 | this.isaddupdate = true | ||
| 174 | } | ||
| 175 | }, | ||
| 176 | 176 | ||
| 177 | // 删除 | 177 | // 删除 |
| 178 | deleClick (index, row) { | 178 | deleClick (index, row) { |
| 179 | this.$confirm('确定要删除吗, 是否继续?', '提示', { | 179 | this.$confirm('确定要删除吗, 是否继续?', '提示', { |
| 180 | confirmButtonText: '确定', | 180 | confirmButtonText: '确定', |
| 181 | cancelButtonText: '取消', | 181 | cancelButtonText: '取消', |
| 182 | type: 'warning' | 182 | type: 'warning' |
| 183 | }).then(() => { | 183 | }).then(() => { |
| 184 | this.tableData.splice(index, 1) | 184 | this.tableData.splice(index, 1) |
| 185 | }).catch(() => { | 185 | }).catch(() => { |
| 186 | }); | 186 | }); |
| 187 | }, | 187 | }, |
| 188 | 188 | ||
| 189 | // 身份证读取 | 189 | // 身份证读取 |
| 190 | readClick () { }, | 190 | readClick () { }, |
| 191 | 191 | ||
| 192 | // 修改 | 192 | // 修改 |
| 193 | editClick (index, row) { | 193 | editClick (index, row) { |
| 194 | // popupDialog("申请人信息", "workflow/components/addQlr", { | 194 | // popupDialog("申请人信息", "workflow/components/addQlr", { |
| 195 | // showButton: this.$route.query.viewtype ? false : true, | 195 | // showButton: this.$route.query.viewtype ? false : true, |
| 196 | // dataIndex :index, | 196 | // dataIndex :index, |
| 197 | // details :row, | 197 | // details :row, |
| 198 | // isaddupdate :false | 198 | // isaddupdate :false |
| 199 | // }); | 199 | // }); |
| 200 | this.dataIndex = index | 200 | this.dataIndex = index |
| 201 | this.dialog = true | 201 | this.dialog = true |
| 202 | this.details = row | 202 | this.details = row |
| 203 | this.isaddupdate = false | 203 | this.isaddupdate = false |
| 204 | }, | 204 | }, |
| 205 | queryViewClick (index, row) { | 205 | queryViewClick (index, row) { |
| 206 | // popupDialog("申请人信息", "workflow/components/addQlr", { | 206 | // popupDialog("申请人信息", "workflow/components/addQlr", { |
| 207 | // showButton: this.$route.query.viewtype ? false : true, | 207 | // showButton: this.$route.query.viewtype ? false : true, |
| 208 | // details: row, | 208 | // details: row, |
| 209 | // }); | 209 | // }); |
| 210 | this.dialog = true | 210 | this.dialog = true |
| 211 | this.details = row | 211 | this.details = row |
| 212 | } | ||
| 212 | } | 213 | } |
| 213 | } | 214 | } |
| 214 | } | ||
| 215 | </script> | 215 | </script> |
| 216 | <style scoped lang='scss'> | ||
| 217 | |||
| 218 | </style> | ... | ... |
| ... | @@ -44,20 +44,14 @@ | ... | @@ -44,20 +44,14 @@ |
| 44 | </el-form> | 44 | </el-form> |
| 45 | </div> | 45 | </div> |
| 46 | <el-empty v-if="isNoData" description="暂无数据"></el-empty> | 46 | <el-empty v-if="isNoData" description="暂无数据"></el-empty> |
| 47 | <commonDialog v-model="commonDialog" /> | ||
| 48 | </div> | 47 | </div> |
| 49 | </template> | 48 | </template> |
| 50 | <script> | 49 | <script> |
| 51 | import { getSpyjList, saveSpyj, saveSpyjBySlsq } from "@/api/fqsq.js"; | 50 | import { getSpyjList, saveSpyj, saveSpyjBySlsq } from "@/api/fqsq.js"; |
| 52 | import { popupDialog } from "@/utils/popup.js"; | ||
| 53 | import commonDialog from "./commonOpinion.vue"; | ||
| 54 | import { mapGetters } from 'vuex' | 51 | import { mapGetters } from 'vuex' |
| 55 | export default { | 52 | export default { |
| 56 | components: { commonDialog }, | ||
| 57 | props: { | ||
| 58 | }, | ||
| 59 | computed: { | 53 | computed: { |
| 60 | ...mapGetters(['userData']) | 54 | ...mapGetters(['userData', 'yjsqOptions']) |
| 61 | }, | 55 | }, |
| 62 | data () { | 56 | data () { |
| 63 | return { | 57 | return { |
| ... | @@ -75,10 +69,18 @@ | ... | @@ -75,10 +69,18 @@ |
| 75 | ], | 69 | ], |
| 76 | }, | 70 | }, |
| 77 | tableData: [], | 71 | tableData: [], |
| 78 | propsParam: {}, | 72 | propsParam: {} |
| 79 | commonDialog: false | ||
| 80 | } | 73 | } |
| 81 | }, | 74 | }, |
| 75 | watch: { | ||
| 76 | yjsqOptions: { | ||
| 77 | handler (val) { | ||
| 78 | this.ruleForm.shyj = val | ||
| 79 | }, | ||
| 80 | deep: true, | ||
| 81 | immediate: true | ||
| 82 | }, | ||
| 83 | }, | ||
| 82 | mounted () { | 84 | mounted () { |
| 83 | this.propsParam = this.$attrs; | 85 | this.propsParam = this.$attrs; |
| 84 | if (this.$route.query.viewtype) { | 86 | if (this.$route.query.viewtype) { |
| ... | @@ -87,9 +89,6 @@ | ... | @@ -87,9 +89,6 @@ |
| 87 | this.list(); | 89 | this.list(); |
| 88 | }, | 90 | }, |
| 89 | methods: { | 91 | methods: { |
| 90 | handleClick () { | ||
| 91 | console.log(1) | ||
| 92 | }, | ||
| 93 | //审批意见数据初始化 | 92 | //审批意见数据初始化 |
| 94 | list () { | 93 | list () { |
| 95 | let that = this | 94 | let that = this |
| ... | @@ -123,7 +122,7 @@ | ... | @@ -123,7 +122,7 @@ |
| 123 | }, | 122 | }, |
| 124 | //打开常用意见列表弹窗 | 123 | //打开常用意见列表弹窗 |
| 125 | commonOpinion () { | 124 | commonOpinion () { |
| 126 | this.commonDialog = true | 125 | this.$popupDialog("常用意见", "workflow/components/dialog/commonOpinion", {}, "70%", true) |
| 127 | }, | 126 | }, |
| 128 | //使用常用意见 | 127 | //使用常用意见 |
| 129 | useOpinion (opinion) { | 128 | useOpinion (opinion) { |
| ... | @@ -195,7 +194,6 @@ | ... | @@ -195,7 +194,6 @@ |
| 195 | /deep/.el-form-item__content { | 194 | /deep/.el-form-item__content { |
| 196 | display: block; | 195 | display: block; |
| 197 | text-align: left; | 196 | text-align: left; |
| 198 | padding-left: 15px; | ||
| 199 | text-indent: 10px; | 197 | text-indent: 10px; |
| 200 | } | 198 | } |
| 201 | .opinion_item { | 199 | .opinion_item { | ... | ... |
| ... | @@ -3,7 +3,7 @@ | ... | @@ -3,7 +3,7 @@ |
| 3 | </lb-table> | 3 | </lb-table> |
| 4 | </template> | 4 | </template> |
| 5 | <script> | 5 | <script> |
| 6 | import addQlr from './addQlr.vue' | 6 | import addQlr from './dialog/addQlr.vue' |
| 7 | import { mapGetters } from 'vuex' | 7 | import { mapGetters } from 'vuex' |
| 8 | export default { | 8 | export default { |
| 9 | components: { | 9 | components: { | ... | ... |
| ... | @@ -32,7 +32,6 @@ | ... | @@ -32,7 +32,6 @@ |
| 32 | <div class="text color_red"> | 32 | <div class="text color_red"> |
| 33 | <span>{{ item.syqx }}</span> | 33 | <span>{{ item.syqx }}</span> |
| 34 | </div> | 34 | </div> |
| 35 | <!-- <div class="top_line middle_margin"></div> --> | ||
| 36 | <div class="text color_iray"> | 35 | <div class="text color_iray"> |
| 37 | <span>印刷序列号:{{ item.ysxlh }}</span> | 36 | <span>印刷序列号:{{ item.ysxlh }}</span> |
| 38 | </div> | 37 | </div> |
| ... | @@ -65,16 +64,13 @@ | ... | @@ -65,16 +64,13 @@ |
| 65 | </div> | 64 | </div> |
| 66 | </div> | 65 | </div> |
| 67 | </el-dialog> | 66 | </el-dialog> |
| 68 | <bdcqzPrint ref="bdcqzPrint" v-model="dialog" :bdcqz="bdcqz" /> | ||
| 69 | <el-empty description="暂无数据" v-if="tableData.length == 0"></el-empty> | 67 | <el-empty description="暂无数据" v-if="tableData.length == 0"></el-empty> |
| 70 | </div> | 68 | </div> |
| 71 | </template> | 69 | </template> |
| 72 | <script> | 70 | <script> |
| 71 | import { mapGetters } from 'vuex' | ||
| 73 | import { getSlsqBdcqzList, invalidCertificate, getSzRecordList } from "@/api/bdcqz.js"; | 72 | import { getSlsqBdcqzList, invalidCertificate, getSzRecordList } from "@/api/bdcqz.js"; |
| 74 | import bdcqzPrint from "./zsdy.vue"; | ||
| 75 | import { popupDialog } from "@/utils/popup.js"; | ||
| 76 | export default { | 73 | export default { |
| 77 | components: { bdcqzPrint }, | ||
| 78 | props: {}, | 74 | props: {}, |
| 79 | data () { | 75 | data () { |
| 80 | return { | 76 | return { |
| ... | @@ -88,6 +84,16 @@ | ... | @@ -88,6 +84,16 @@ |
| 88 | bsmBdcqz: "" | 84 | bsmBdcqz: "" |
| 89 | }; | 85 | }; |
| 90 | }, | 86 | }, |
| 87 | computed: { | ||
| 88 | ...mapGetters(['isRefresh']) | ||
| 89 | }, | ||
| 90 | watch: { | ||
| 91 | isRefresh: { | ||
| 92 | handler (newVal, oldVal) { | ||
| 93 | if (newVal) this.list() | ||
| 94 | } | ||
| 95 | } | ||
| 96 | }, | ||
| 91 | created () { | 97 | created () { |
| 92 | this.list(); | 98 | this.list(); |
| 93 | }, | 99 | }, |
| ... | @@ -106,39 +112,11 @@ | ... | @@ -106,39 +112,11 @@ |
| 106 | }, | 112 | }, |
| 107 | //打开证书预览弹窗 | 113 | //打开证书预览弹窗 |
| 108 | openZsylDialog (item, type) { | 114 | openZsylDialog (item, type) { |
| 109 | let that = this; | ||
| 110 | if (type == 1) { | 115 | if (type == 1) { |
| 111 | //证书预览 | 116 | //证书预览 |
| 112 | this.$popup("证书预览", "workflow/components/zsyl", { | 117 | this.$popupDialog("证书预览", "workflow/components/dialog/zsyl", { bdcqz: item }, "70%", true); |
| 113 | height: "630px", | ||
| 114 | width: "800px", | ||
| 115 | formData: { | ||
| 116 | bdcqz: item, | ||
| 117 | } | ||
| 118 | }); | ||
| 119 | } else { | 118 | } else { |
| 120 | this.$nextTick(() => { | 119 | this.$popupDialog("不动产权证书", "workflow/components/dialog/zsdy", { bdcqz: item }, "70%", true); |
| 121 | this.dialog = true; | ||
| 122 | this.bdcqz = item; | ||
| 123 | this.$refs.bdcqzPrint.getBdcqzPreview(); | ||
| 124 | }) | ||
| 125 | //证书打印 | ||
| 126 | // this.$popup("证书打印", "workflow/components/zsdy", { | ||
| 127 | // height: "700px", | ||
| 128 | // width: "800px", | ||
| 129 | // formData: { | ||
| 130 | // bsmSlsq: this.bsmSlsq, | ||
| 131 | // bdcqz: item, | ||
| 132 | // }, | ||
| 133 | // btnShow: true, | ||
| 134 | // confirmText: "打印证书", | ||
| 135 | // cancel: () => { | ||
| 136 | // console.log("取消回调"); | ||
| 137 | // }, | ||
| 138 | // confirm: () => { | ||
| 139 | // that.list(); | ||
| 140 | // }, | ||
| 141 | // }); | ||
| 142 | } | 120 | } |
| 143 | }, | 121 | }, |
| 144 | //再次打印 | 122 | //再次打印 |
| ... | @@ -166,7 +144,7 @@ | ... | @@ -166,7 +144,7 @@ |
| 166 | }); | 144 | }); |
| 167 | }, | 145 | }, |
| 168 | openRecordPop (item) { | 146 | openRecordPop (item) { |
| 169 | popupDialog("缮证记录", "workflow/components/szRecord", { bsmBdcqz: item.bsmBdcqz }, '50%') | 147 | this.$popupDialog("缮证记录", "workflow/components/dialog/szRecord", { bsmBdcqz: item.bsmBdcqz }, '60%', true) |
| 170 | } | 148 | } |
| 171 | }, | 149 | }, |
| 172 | }; | 150 | }; | ... | ... |
| ... | @@ -40,7 +40,8 @@ class data extends filter { | ... | @@ -40,7 +40,8 @@ class data extends filter { |
| 40 | }, | 40 | }, |
| 41 | { | 41 | { |
| 42 | prop: "bdcqzh", | 42 | prop: "bdcqzh", |
| 43 | label: "不动产权证号" | 43 | label: "不动产权证号", |
| 44 | width: '200', | ||
| 44 | }, | 45 | }, |
| 45 | { | 46 | { |
| 46 | prop: "qlr", | 47 | prop: "qlr", |
| ... | @@ -60,7 +61,8 @@ class data extends filter { | ... | @@ -60,7 +61,8 @@ class data extends filter { |
| 60 | }, | 61 | }, |
| 61 | { | 62 | { |
| 62 | prop: "fzsj", | 63 | prop: "fzsj", |
| 63 | label: "发证时间" | 64 | label: "发证时间", |
| 65 | width: '140', | ||
| 64 | }, | 66 | }, |
| 65 | { | 67 | { |
| 66 | prop: "lzrxm", | 68 | prop: "lzrxm", | ... | ... |
| ... | @@ -33,7 +33,7 @@ | ... | @@ -33,7 +33,7 @@ |
| 33 | </div> | 33 | </div> |
| 34 | <!-- 表格 --> | 34 | <!-- 表格 --> |
| 35 | <div class="from-clues-content loadingtext"> | 35 | <div class="from-clues-content loadingtext"> |
| 36 | <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" | 36 | <lb-table ref="table" @row-dblclick="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" |
| 37 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" | 37 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" |
| 38 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" | 38 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" |
| 39 | :data="tableData.data"> | 39 | :data="tableData.data"> |
| ... | @@ -46,103 +46,103 @@ | ... | @@ -46,103 +46,103 @@ |
| 46 | </div> | 46 | </div> |
| 47 | </template> | 47 | </template> |
| 48 | <script> | 48 | <script> |
| 49 | //查封登记 | 49 | //查封登记 |
| 50 | import store from '@/store/index.js' | 50 | import store from '@/store/index.js' |
| 51 | import { datas, sendThis } from "../javascript/cfdj.js"; | 51 | import { datas, sendThis } from "../javascript/cfdj.js"; |
| 52 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; | 52 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; |
| 53 | import table from "@/utils/mixin/table"; | 53 | import table from "@/utils/mixin/table"; |
| 54 | import jump from "../components/mixin/jump"; | 54 | import jump from "../components/mixin/jump"; |
| 55 | import { selectCfdj, startBusinessFlow, choiceBdcdy } from "@/api/ywbl.js"; | 55 | import { selectCfdj, startBusinessFlow, choiceBdcdy } from "@/api/ywbl.js"; |
| 56 | export default { | 56 | export default { |
| 57 | props: { | 57 | props: { |
| 58 | isJump: { type: Boolean, default: false }, | 58 | isJump: { type: Boolean, default: false }, |
| 59 | sqywInfo: { type: Object, default: () => { } }, | 59 | sqywInfo: { type: Object, default: () => { } }, |
| 60 | }, | ||
| 61 | mixins: [table, jump], | ||
| 62 | data () { | ||
| 63 | return { | ||
| 64 | queryForm: defaultParameters.defaultParameters(), | ||
| 65 | tableData: { | ||
| 66 | total: 0, | ||
| 67 | columns: datas.columns(), | ||
| 68 | data: [], | ||
| 69 | }, | ||
| 70 | bdcdysz: [], | ||
| 71 | bsmSqyw: | ||
| 72 | this.sqywInfo.nodetype === "djlx" | ||
| 73 | ? this.sqywInfo.bsmSqyw | ||
| 74 | : this.sqywInfo.parentid, | ||
| 75 | }; | ||
| 76 | }, | ||
| 77 | mounted () { | ||
| 78 | sendThis(this); | ||
| 79 | }, | ||
| 80 | methods: { | ||
| 81 | queryClick () { | ||
| 82 | this.$startLoading(); | ||
| 83 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | ||
| 84 | selectCfdj({ ...this.queryForm, ...this.pageData }) | ||
| 85 | .then((res) => { | ||
| 86 | this.$endLoading(); | ||
| 87 | if (res.code === 200) { | ||
| 88 | let { total, records } = res.result; | ||
| 89 | this.tableData.total = total; | ||
| 90 | this.tableData.data = records; | ||
| 91 | } | ||
| 92 | }) | ||
| 93 | }, | 60 | }, |
| 94 | submitForm () { | 61 | mixins: [table, jump], |
| 95 | if (this.bdcdysz.length == 0) { | 62 | data () { |
| 96 | this.$message.error("请至少选择一条数据"); | 63 | return { |
| 97 | return; | 64 | queryForm: defaultParameters.defaultParameters(), |
| 98 | } | 65 | tableData: { |
| 99 | if (!this.isJump) { | 66 | total: 0, |
| 100 | startBusinessFlow({ | 67 | columns: datas.columns(), |
| 101 | bsmSqyw: this.bsmSqyw, | 68 | data: [], |
| 102 | bdcdysz: this.bdcdysz, | 69 | }, |
| 103 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", | 70 | bdcdysz: [], |
| 104 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", | 71 | bsmSqyw: |
| 105 | }).then((res) => { | 72 | this.sqywInfo.nodetype === "djlx" |
| 106 | if (res.code == 200) { | 73 | ? this.sqywInfo.bsmSqyw |
| 107 | this.$message({ | 74 | : this.sqywInfo.parentid, |
| 108 | showClose: true, | 75 | }; |
| 109 | message: '发起申请成功', | 76 | }, |
| 110 | type: 'success' | 77 | mounted () { |
| 111 | }) | 78 | sendThis(this); |
| 112 | this.jump(res.result, this.sqywInfo.djywbm) | 79 | }, |
| 113 | } else { | 80 | methods: { |
| 114 | this.$message.error(res.message) | 81 | queryClick () { |
| 115 | } | 82 | this.$startLoading(); |
| 116 | }) | 83 | this.queryForm.sqywbm = this.sqywInfo.djywbm; |
| 117 | } else { | 84 | selectCfdj({ ...this.queryForm, ...this.pageData }) |
| 118 | choiceBdcdy({ | 85 | .then((res) => { |
| 119 | bsmSlsq: this.$route.query.bsmSlsq, | 86 | this.$endLoading(); |
| 120 | bdcdysz: this.bdcdysz | 87 | if (res.code === 200) { |
| 121 | }).then(res => { | 88 | let { total, records } = res.result; |
| 122 | if (res.code == 200) { | 89 | this.tableData.total = total; |
| 123 | this.$message({ | 90 | this.tableData.data = records; |
| 124 | showClose: true, | 91 | } |
| 125 | message: '发起申请成功', | 92 | }) |
| 126 | type: 'success' | 93 | }, |
| 127 | }) | 94 | submitForm () { |
| 128 | store.dispatch('user/refreshPage', true); | 95 | if (this.bdcdysz.length == 0) { |
| 129 | } else { | 96 | this.$message.error("请至少选择一条数据"); |
| 130 | this.$message.error(res.message); | 97 | return; |
| 131 | } | 98 | } |
| 99 | if (!this.isJump) { | ||
| 100 | startBusinessFlow({ | ||
| 101 | bsmSqyw: this.bsmSqyw, | ||
| 102 | bdcdysz: this.bdcdysz, | ||
| 103 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", | ||
| 104 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", | ||
| 105 | }).then((res) => { | ||
| 106 | if (res.code == 200) { | ||
| 107 | this.$message({ | ||
| 108 | showClose: true, | ||
| 109 | message: '发起申请成功', | ||
| 110 | type: 'success' | ||
| 111 | }) | ||
| 112 | this.jump(res.result, this.sqywInfo.djywbm) | ||
| 113 | } else { | ||
| 114 | this.$message.error(res.message) | ||
| 115 | } | ||
| 116 | }) | ||
| 117 | } else { | ||
| 118 | choiceBdcdy({ | ||
| 119 | bsmSlsq: this.$route.query.bsmSlsq, | ||
| 120 | bdcdysz: this.bdcdysz | ||
| 121 | }).then(res => { | ||
| 122 | if (res.code == 200) { | ||
| 123 | this.$message({ | ||
| 124 | showClose: true, | ||
| 125 | message: '发起申请成功', | ||
| 126 | type: 'success' | ||
| 127 | }) | ||
| 128 | store.dispatch('user/refreshPage', true); | ||
| 129 | } else { | ||
| 130 | this.$message.error(res.message); | ||
| 131 | } | ||
| 132 | }) | ||
| 133 | } | ||
| 134 | }, | ||
| 135 | handleSelectionChange (val) { | ||
| 136 | val.forEach((item, index) => { | ||
| 137 | item.bsmSsql = item.bsmQlxx | ||
| 138 | item.ybdcqzsh = item.bdcqzh | ||
| 132 | }) | 139 | }) |
| 140 | this.bdcdysz = val | ||
| 133 | } | 141 | } |
| 134 | }, | 142 | }, |
| 135 | handleSelectionChange (val) { | 143 | }; |
| 136 | val.forEach((item, index) => { | ||
| 137 | item.bsmSsql = item.bsmQlxx | ||
| 138 | item.ybdcqzsh = item.bdcqzh | ||
| 139 | }) | ||
| 140 | this.bdcdysz = val | ||
| 141 | } | ||
| 142 | }, | ||
| 143 | }; | ||
| 144 | </script> | 144 | </script> |
| 145 | <style scoped lang="scss"> | 145 | <style scoped lang="scss"> |
| 146 | @import "~@/styles/mixin.scss"; | 146 | @import "~@/styles/mixin.scss"; |
| 147 | @import "~@/styles/public.scss"; | 147 | @import "~@/styles/public.scss"; |
| 148 | </style> | 148 | </style> | ... | ... |
| ... | @@ -42,7 +42,7 @@ | ... | @@ -42,7 +42,7 @@ |
| 42 | </div> | 42 | </div> |
| 43 | <!-- 表格 --> | 43 | <!-- 表格 --> |
| 44 | <div class="from-clues-content loadingtext"> | 44 | <div class="from-clues-content loadingtext"> |
| 45 | <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" | 45 | <lb-table ref="table" @row-dblclick="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" |
| 46 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" | 46 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" |
| 47 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" | 47 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" |
| 48 | :data="tableData.data"> | 48 | :data="tableData.data"> |
| ... | @@ -55,84 +55,84 @@ | ... | @@ -55,84 +55,84 @@ |
| 55 | </div> | 55 | </div> |
| 56 | </template> | 56 | </template> |
| 57 | <script> | 57 | <script> |
| 58 | import store from '@/store/index.js' | 58 | import store from '@/store/index.js' |
| 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"; |
| 62 | import jump from "../components/mixin/jump"; | 62 | 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: { | 66 | props: { |
| 67 | isJump: { type: Boolean, default: false }, | 67 | isJump: { type: Boolean, default: false }, |
| 68 | sqywInfo: { type: Object, default: () => { } }, | 68 | sqywInfo: { type: Object, default: () => { } }, |
| 69 | }, | 69 | }, |
| 70 | data () { | 70 | data () { |
| 71 | return { | 71 | return { |
| 72 | queryForm: defaultParameters.defaultParameters(), | 72 | queryForm: defaultParameters.defaultParameters(), |
| 73 | qllxs: [], | 73 | qllxs: [], |
| 74 | tableData: { | 74 | tableData: { |
| 75 | total: 0, | 75 | total: 0, |
| 76 | columns: datas.columns(), | 76 | columns: datas.columns(), |
| 77 | data: [], | 77 | data: [], |
| 78 | }, | ||
| 79 | bdcdysz: [], | ||
| 80 | }; | ||
| 81 | }, | ||
| 82 | mounted () { | ||
| 83 | sendThis(this); | ||
| 84 | }, | ||
| 85 | methods: { | ||
| 86 | queryClick () { | ||
| 87 | this.$startLoading(); | ||
| 88 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | ||
| 89 | selectDiyaq({ ...this.queryForm, ...this.pageData }).then((res) => { | ||
| 90 | this.$endLoading(); | ||
| 91 | if (res.code === 200) { | ||
| 92 | let { total, records } = res.result; | ||
| 93 | this.tableData.total = total; | ||
| 94 | this.tableData.data = records; | ||
| 95 | } | ||
| 96 | }); | ||
| 78 | }, | 97 | }, |
| 79 | bdcdysz: [], | 98 | submitFormClick () { |
| 80 | }; | 99 | if (this.bdcdysz.length == 0) { |
| 81 | }, | 100 | this.$message.error("请至少选择一条数据"); |
| 82 | mounted () { | 101 | return; |
| 83 | sendThis(this); | ||
| 84 | }, | ||
| 85 | methods: { | ||
| 86 | queryClick () { | ||
| 87 | this.$startLoading(); | ||
| 88 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | ||
| 89 | selectDiyaq({ ...this.queryForm, ...this.pageData }).then((res) => { | ||
| 90 | this.$endLoading(); | ||
| 91 | if (res.code === 200) { | ||
| 92 | let { total, records } = res.result; | ||
| 93 | this.tableData.total = total; | ||
| 94 | this.tableData.data = records; | ||
| 95 | } | 102 | } |
| 96 | }); | 103 | startBusinessFlow({ |
| 97 | }, | 104 | bsmSqyw: this.sqywInfo.parentid, |
| 98 | submitFormClick () { | 105 | bdcdysz: this.bdcdysz, |
| 99 | if (this.bdcdysz.length == 0) { | 106 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", |
| 100 | this.$message.error("请至少选择一条数据"); | 107 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", |
| 101 | return; | 108 | }).then((res) => { |
| 102 | } | 109 | if (res.code == 200) { |
| 103 | startBusinessFlow({ | 110 | this.$message({ |
| 104 | bsmSqyw: this.sqywInfo.parentid, | 111 | showClose: true, |
| 105 | bdcdysz: this.bdcdysz, | 112 | message: "发起申请成功", |
| 106 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", | 113 | type: "success", |
| 107 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", | 114 | }); |
| 108 | }).then((res) => { | 115 | if (!this.isJump) { |
| 109 | if (res.code == 200) { | 116 | this.jump(res.result, this.sqywInfo.djywbm); |
| 110 | this.$message({ | 117 | } else { |
| 111 | showClose: true, | 118 | store.dispatch('user/refreshPage', true); |
| 112 | message: "发起申请成功", | 119 | } |
| 113 | type: "success", | ||
| 114 | }); | ||
| 115 | if (!this.isJump) { | ||
| 116 | this.jump(res.result, this.sqywInfo.djywbm); | ||
| 117 | } else { | 120 | } else { |
| 118 | store.dispatch('user/refreshPage', true); | 121 | this.$message.error(res.message); |
| 119 | } | 122 | } |
| 120 | } else { | 123 | }); |
| 121 | this.$message.error(res.message); | 124 | }, |
| 122 | } | 125 | handleSelectionChange (val) { |
| 123 | }); | 126 | val.forEach((item, index) => { |
| 124 | }, | 127 | item.bsmSsql = item.bsmQlxx; |
| 125 | handleSelectionChange (val) { | 128 | item.ybdcqzsh = item.bdcqzh; |
| 126 | val.forEach((item, index) => { | 129 | }); |
| 127 | item.bsmSsql = item.bsmQlxx; | 130 | this.bdcdysz = val; |
| 128 | item.ybdcqzsh = item.bdcqzh; | 131 | }, |
| 129 | }); | ||
| 130 | this.bdcdysz = val; | ||
| 131 | }, | 132 | }, |
| 132 | }, | 133 | }; |
| 133 | }; | ||
| 134 | </script> | 134 | </script> |
| 135 | <style scoped lang="scss"> | 135 | <style scoped lang="scss"> |
| 136 | @import "~@/styles/mixin.scss"; | 136 | @import "~@/styles/mixin.scss"; |
| 137 | @import "~@/styles/public.scss"; | 137 | @import "~@/styles/public.scss"; |
| 138 | </style> | 138 | </style> | ... | ... |
| ... | @@ -56,7 +56,7 @@ | ... | @@ -56,7 +56,7 @@ |
| 56 | </el-form> | 56 | </el-form> |
| 57 | </div> | 57 | </div> |
| 58 | <div class="from-clues-content"> | 58 | <div class="from-clues-content"> |
| 59 | <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :heightNum="400" | 59 | <lb-table ref="table" @row-dblclick="handleRowClick" :page-size="pageData.pageSize" :heightNum="400" |
| 60 | :current-page.sync="pageData.currentPage" :total="zrztableData.total" @size-change="handleSizeChange" | 60 | :current-page.sync="pageData.currentPage" :total="zrztableData.total" @size-change="handleSizeChange" |
| 61 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="zrztableData.columns" | 61 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="zrztableData.columns" |
| 62 | :data="zrztableData.data"> | 62 | :data="zrztableData.data"> |
| ... | @@ -107,7 +107,7 @@ | ... | @@ -107,7 +107,7 @@ |
| 107 | </el-form> | 107 | </el-form> |
| 108 | </div> | 108 | </div> |
| 109 | <div class="from-clues-content loadingtext"> | 109 | <div class="from-clues-content loadingtext"> |
| 110 | <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" | 110 | <lb-table ref="table" @row-dblclick="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" |
| 111 | :current-page.sync="pageData.currentPage" :total="dztableData.total" @size-change="handleSizeChange" | 111 | :current-page.sync="pageData.currentPage" :total="dztableData.total" @size-change="handleSizeChange" |
| 112 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="dztableData.columns" | 112 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="dztableData.columns" |
| 113 | :data="dztableData.data"> | 113 | :data="dztableData.data"> |
| ... | @@ -121,163 +121,163 @@ | ... | @@ -121,163 +121,163 @@ |
| 121 | </div> | 121 | </div> |
| 122 | </template> | 122 | </template> |
| 123 | <script> | 123 | <script> |
| 124 | import store from '@/store/index.js' | 124 | import store from '@/store/index.js' |
| 125 | //国有建设用地使用权/房屋使用权 | 125 | //国有建设用地使用权/房屋使用权 |
| 126 | import { datas, sendThis } from "../javascript/fwsyq.js"; | 126 | import { datas, sendThis } from "../javascript/fwsyq.js"; |
| 127 | // import { datasduo, sendThisduo } from "../javascript/fwsyqduo.js"; | 127 | // import { datasduo, sendThisduo } from "../javascript/fwsyqduo.js"; |
| 128 | import table from "@/utils/mixin/table"; | 128 | import table from "@/utils/mixin/table"; |
| 129 | import jump from "@/views/ywbl/ywsq/components/mixin/jump"; | 129 | import jump from "@/views/ywbl/ywsq/components/mixin/jump"; |
| 130 | import { selectScBdcdy, startBusinessFlow, choiceBdcdy, selectOtherH, selectZrz, selectDz } from "@/api/ywbl.js"; | 130 | import { selectScBdcdy, startBusinessFlow, choiceBdcdy, selectOtherH, selectZrz, selectDz } from "@/api/ywbl.js"; |
| 131 | export default { | 131 | export default { |
| 132 | mixins: [table, jump], | 132 | mixins: [table, jump], |
| 133 | props: { | 133 | props: { |
| 134 | isJump: { type: Boolean, default: false }, | 134 | isJump: { type: Boolean, default: false }, |
| 135 | sqywInfo: { type: Object, default: () => { } }, | 135 | sqywInfo: { type: Object, default: () => { } }, |
| 136 | }, | 136 | }, |
| 137 | data () { | 137 | data () { |
| 138 | return { | 138 | return { |
| 139 | activeName: 'zrz', | 139 | activeName: 'zrz', |
| 140 | queryzrzForm: { | 140 | queryzrzForm: { |
| 141 | qllx: '', | 141 | qllx: '', |
| 142 | bdcdyh: '', | 142 | bdcdyh: '', |
| 143 | ywh: '', | 143 | ywh: '', |
| 144 | bdcqzh: '' | 144 | bdcqzh: '' |
| 145 | }, | 145 | }, |
| 146 | querydzForm: { | 146 | querydzForm: { |
| 147 | qllx: '', | 147 | qllx: '', |
| 148 | bdcdyh: '', | 148 | bdcdyh: '', |
| 149 | ywh: '', | 149 | ywh: '', |
| 150 | bdcqzh: '' | 150 | bdcqzh: '' |
| 151 | }, | 151 | }, |
| 152 | zrztableData: { | 152 | zrztableData: { |
| 153 | total: 0, | 153 | total: 0, |
| 154 | columns: datas.zrzcolumns(), | 154 | columns: datas.zrzcolumns(), |
| 155 | data: [], | 155 | data: [], |
| 156 | }, | 156 | }, |
| 157 | dztableData: { | 157 | dztableData: { |
| 158 | total: 0, | 158 | total: 0, |
| 159 | columns: datas.dzcolumns(), | 159 | columns: datas.dzcolumns(), |
| 160 | data: [], | 160 | data: [], |
| 161 | }, | 161 | }, |
| 162 | bdcdysz: [], | 162 | bdcdysz: [], |
| 163 | bsmSqyw: | 163 | bsmSqyw: |
| 164 | this.sqywInfo.nodetype === "djlx" | 164 | this.sqywInfo.nodetype === "djlx" |
| 165 | ? this.sqywInfo.bsmSqyw | 165 | ? this.sqywInfo.bsmSqyw |
| 166 | : this.sqywInfo.parentid, | 166 | : this.sqywInfo.parentid, |
| 167 | }; | 167 | }; |
| 168 | }, | 168 | }, |
| 169 | mounted () { | 169 | mounted () { |
| 170 | sendThis(this) | 170 | sendThis(this) |
| 171 | }, | 171 | }, |
| 172 | methods: { | 172 | methods: { |
| 173 | queryClick () { | 173 | queryClick () { |
| 174 | this.$startLoading(); | 174 | this.$startLoading(); |
| 175 | if (!this.isJump) { | 175 | if (!this.isJump) { |
| 176 | //从业务办理进入 | 176 | //从业务办理进入 |
| 177 | if (this.activeName == "zrz") { | 177 | if (this.activeName == "zrz") { |
| 178 | this.queryzrzForm.sqywbm = this.sqywInfo.djywbm; | 178 | this.queryzrzForm.sqywbm = this.sqywInfo.djywbm; |
| 179 | this.queryzrzForm.fwfl = this.activeName; | 179 | this.queryzrzForm.fwfl = this.activeName; |
| 180 | selectZrz({ ...this.queryzrzForm, ...this.pageData }).then((res) => { | 180 | selectZrz({ ...this.queryzrzForm, ...this.pageData }).then((res) => { |
| 181 | this.$endLoading(); | ||
| 182 | if (res.code === 200) { | ||
| 183 | this.zrztableData.total = res.result.total; | ||
| 184 | this.zrztableData.data = res.result.records; | ||
| 185 | } | ||
| 186 | }); | ||
| 187 | } else { | ||
| 188 | this.querydzForm.sqywbm = this.sqywInfo.djywbm; | ||
| 189 | this.querydzForm.fwfl = this.activeName; | ||
| 190 | selectDz({ ...this.querydzForm, ...this.pageData }).then((res) => { | ||
| 191 | this.$endLoading(); | ||
| 192 | if (res.code === 200) { | ||
| 193 | this.dztableData.total = res.result.total; | ||
| 194 | this.dztableData.data = res.result.records; | ||
| 195 | } | ||
| 196 | }) | ||
| 197 | } | ||
| 198 | |||
| 199 | } else { | ||
| 200 | //从办理框架选择不动产单元进入 | ||
| 201 | //房屋首次办理选择不动产需找出对应自然幢下未选择的户 | ||
| 202 | this.queryzrzForm.bsmSlsq = this.$route.query.bsmSlsq; | ||
| 203 | selectOtherH({ ...this.queryzrzForm, ...this.pageData }).then((res) => { | ||
| 181 | this.$endLoading(); | 204 | this.$endLoading(); |
| 182 | if (res.code === 200) { | 205 | if (res.code === 200) { |
| 183 | this.zrztableData.total = res.result.total; | 206 | let { total, records } = res.result; |
| 184 | this.zrztableData.data = res.result.records; | 207 | this.zrztableData.total = total; |
| 208 | this.zrztableData.data = records; | ||
| 185 | } | 209 | } |
| 186 | }); | 210 | }) |
| 211 | } | ||
| 212 | }, | ||
| 213 | handleTabClick () { | ||
| 214 | this.bdcdysz = [], | ||
| 215 | this.pageData.currentPage = 1; | ||
| 216 | this.queryClick(); | ||
| 217 | }, | ||
| 218 | submitForm () { | ||
| 219 | if (this.bdcdysz.length == 0) { | ||
| 220 | this.$message.error("请至少选择一条数据"); | ||
| 221 | return; | ||
| 222 | } | ||
| 223 | if (!this.isJump) { | ||
| 224 | startBusinessFlow({ | ||
| 225 | bsmSqyw: this.bsmSqyw, | ||
| 226 | fwlx: this.activeName, | ||
| 227 | bdcdysz: this.bdcdysz, | ||
| 228 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", | ||
| 229 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", | ||
| 230 | }).then((res) => { | ||
| 231 | if (res.code == 200) { | ||
| 232 | this.$message({ | ||
| 233 | showClose: true, | ||
| 234 | message: '发起申请成功', | ||
| 235 | type: 'success' | ||
| 236 | }) | ||
| 237 | this.jump(res.result, this.djywbm) | ||
| 238 | } else { | ||
| 239 | this.$message.error(res.message); | ||
| 240 | } | ||
| 241 | }) | ||
| 187 | } else { | 242 | } else { |
| 188 | this.querydzForm.sqywbm = this.sqywInfo.djywbm; | 243 | choiceBdcdy({ |
| 189 | this.querydzForm.fwfl = this.activeName; | 244 | bsmSlsq: this.$route.query.bsmSlsq, |
| 190 | selectDz({ ...this.querydzForm, ...this.pageData }).then((res) => { | 245 | bdcdysz: this.bdcdysz |
| 191 | this.$endLoading(); | 246 | }).then(res => { |
| 192 | if (res.code === 200) { | 247 | if (res.code == 200) { |
| 193 | this.dztableData.total = res.result.total; | 248 | this.$message({ |
| 194 | this.dztableData.data = res.result.records; | 249 | showClose: true, |
| 250 | message: '发起申请成功', | ||
| 251 | type: 'success' | ||
| 252 | }) | ||
| 253 | store.dispatch('user/refreshPage', true); | ||
| 254 | } else { | ||
| 255 | this.$message.error(res.message); | ||
| 195 | } | 256 | } |
| 196 | }) | 257 | }) |
| 197 | } | 258 | } |
| 198 | 259 | }, | |
| 199 | } else { | 260 | handleSelectionChange (val) { |
| 200 | //从办理框架选择不动产单元进入 | 261 | val.forEach((item, index) => { |
| 201 | //房屋首次办理选择不动产需找出对应自然幢下未选择的户 | 262 | item.bsmSsql = item.zdbsm |
| 202 | this.queryzrzForm.bsmSlsq = this.$route.query.bsmSlsq; | ||
| 203 | selectOtherH({ ...this.queryzrzForm, ...this.pageData }).then((res) => { | ||
| 204 | this.$endLoading(); | ||
| 205 | if (res.code === 200) { | ||
| 206 | let { total, records } = res.result; | ||
| 207 | this.zrztableData.total = total; | ||
| 208 | this.zrztableData.data = records; | ||
| 209 | } | ||
| 210 | }) | ||
| 211 | } | ||
| 212 | }, | ||
| 213 | handleTabClick () { | ||
| 214 | this.bdcdysz = [], | ||
| 215 | this.pageData.currentPage = 1; | ||
| 216 | this.queryClick(); | ||
| 217 | }, | ||
| 218 | submitForm () { | ||
| 219 | if (this.bdcdysz.length == 0) { | ||
| 220 | this.$message.error("请至少选择一条数据"); | ||
| 221 | return; | ||
| 222 | } | ||
| 223 | if (!this.isJump) { | ||
| 224 | startBusinessFlow({ | ||
| 225 | bsmSqyw: this.bsmSqyw, | ||
| 226 | fwlx: this.activeName, | ||
| 227 | bdcdysz: this.bdcdysz, | ||
| 228 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", | ||
| 229 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", | ||
| 230 | }).then((res) => { | ||
| 231 | if (res.code == 200) { | ||
| 232 | this.$message({ | ||
| 233 | showClose: true, | ||
| 234 | message: '发起申请成功', | ||
| 235 | type: 'success' | ||
| 236 | }) | ||
| 237 | this.jump(res.result, this.djywbm) | ||
| 238 | } else { | ||
| 239 | this.$message.error(res.message); | ||
| 240 | } | ||
| 241 | }) | 263 | }) |
| 242 | } else { | 264 | this.bdcdysz = val |
| 243 | choiceBdcdy({ | 265 | }, |
| 244 | bsmSlsq: this.$route.query.bsmSlsq, | 266 | handleLpbClick (item) { |
| 245 | bdcdysz: this.bdcdysz | 267 | this.$popup('楼盘表', 'lpb/index', { |
| 246 | }).then(res => { | 268 | width: '85%', |
| 247 | if (res.code == 200) { | 269 | formData: { |
| 248 | this.$message({ | 270 | bsm: item.bsm, |
| 249 | showClose: true, | 271 | bsmSqyw: this.bsmSqyw, |
| 250 | message: '发起申请成功', | 272 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", |
| 251 | type: 'success' | 273 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", |
| 252 | }) | ||
| 253 | store.dispatch('user/refreshPage', true); | ||
| 254 | } else { | ||
| 255 | this.$message.error(res.message); | ||
| 256 | } | 274 | } |
| 257 | }) | 275 | }) |
| 258 | } | 276 | } |
| 259 | }, | ||
| 260 | handleSelectionChange (val) { | ||
| 261 | val.forEach((item, index) => { | ||
| 262 | item.bsmSsql = item.zdbsm | ||
| 263 | }) | ||
| 264 | this.bdcdysz = val | ||
| 265 | }, | ||
| 266 | handleLpbClick (item) { | ||
| 267 | this.$popup('楼盘表', 'lpb/index', { | ||
| 268 | width: '85%', | ||
| 269 | formData: { | ||
| 270 | bsm: item.bsm, | ||
| 271 | bsmSqyw: this.bsmSqyw, | ||
| 272 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", | ||
| 273 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", | ||
| 274 | } | ||
| 275 | }) | ||
| 276 | } | 277 | } |
| 277 | } | 278 | } |
| 278 | } | ||
| 279 | </script> | 279 | </script> |
| 280 | <style scoped lang="scss"> | 280 | <style scoped lang="scss"> |
| 281 | @import "~@/styles/mixin.scss"; | 281 | @import "~@/styles/mixin.scss"; |
| 282 | @import "~@/styles/public.scss"; | 282 | @import "~@/styles/public.scss"; |
| 283 | </style> | 283 | </style> | ... | ... |
| ... | @@ -27,7 +27,7 @@ | ... | @@ -27,7 +27,7 @@ |
| 27 | </div> | 27 | </div> |
| 28 | <!-- 表格 --> | 28 | <!-- 表格 --> |
| 29 | <div class="from-clues-content loadingtext"> | 29 | <div class="from-clues-content loadingtext"> |
| 30 | <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" | 30 | <lb-table ref="table" @row-dblclick="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" |
| 31 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" | 31 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" |
| 32 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" | 32 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" |
| 33 | :data="tableData.data"> | 33 | :data="tableData.data"> |
| ... | @@ -40,85 +40,85 @@ | ... | @@ -40,85 +40,85 @@ |
| 40 | </div> | 40 | </div> |
| 41 | </template> | 41 | </template> |
| 42 | <script> | 42 | <script> |
| 43 | //首次登记 | 43 | //首次登记 |
| 44 | import store from '@/store/index.js' | 44 | import store from '@/store/index.js' |
| 45 | import { datas, sendThis } from "../javascript/nydsyq100.js"; | 45 | import { datas, sendThis } from "../javascript/nydsyq100.js"; |
| 46 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; | 46 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; |
| 47 | import table from "@/utils/mixin/table"; | 47 | import table from "@/utils/mixin/table"; |
| 48 | import jump from "../components/mixin/jump"; | 48 | import jump from "../components/mixin/jump"; |
| 49 | import { startBusinessFlow, selectZdjbxx } from "@/api/ywbl.js"; | 49 | import { startBusinessFlow, selectZdjbxx } from "@/api/ywbl.js"; |
| 50 | export default { | 50 | export default { |
| 51 | mixins: [table, jump], | 51 | mixins: [table, jump], |
| 52 | props: { | 52 | props: { |
| 53 | isJump: { type: Boolean, default: false }, | 53 | isJump: { type: Boolean, default: false }, |
| 54 | sqywInfo: { type: Object, default: () => { } }, | 54 | sqywInfo: { type: Object, default: () => { } }, |
| 55 | }, | 55 | }, |
| 56 | data () { | 56 | data () { |
| 57 | return { | 57 | return { |
| 58 | queryForm: defaultParameters.defaultParameters(), | 58 | queryForm: defaultParameters.defaultParameters(), |
| 59 | tableData: { | 59 | tableData: { |
| 60 | total: 0, | 60 | total: 0, |
| 61 | columns: datas.columns(), | 61 | columns: datas.columns(), |
| 62 | data: [], | 62 | data: [], |
| 63 | }, | ||
| 64 | bdcdysz: [], | ||
| 65 | bsmSqyw: | ||
| 66 | this.sqywInfo.nodetype === "djlx" | ||
| 67 | ? this.sqywInfo.bsmSqyw | ||
| 68 | : this.sqywInfo.parentid, | ||
| 69 | }; | ||
| 70 | }, | ||
| 71 | mounted () { | ||
| 72 | sendThis(this); | ||
| 73 | }, | ||
| 74 | methods: { | ||
| 75 | queryClick () { | ||
| 76 | this.$startLoading(); | ||
| 77 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | ||
| 78 | selectZdjbxx({ ...this.queryForm, ...this.pageData }).then((res) => { | ||
| 79 | this.$endLoading(); | ||
| 80 | if (res.code === 200) { | ||
| 81 | let { total, records } = res.result; | ||
| 82 | this.tableData.total = total; | ||
| 83 | this.tableData.data = records; | ||
| 84 | } | ||
| 85 | }); | ||
| 63 | }, | 86 | }, |
| 64 | bdcdysz: [], | 87 | submitForm () { |
| 65 | bsmSqyw: | 88 | if (this.bdcdysz.length == 0) { |
| 66 | this.sqywInfo.nodetype === "djlx" | 89 | this.$message.error("请至少选择一条数据"); |
| 67 | ? this.sqywInfo.bsmSqyw | 90 | return; |
| 68 | : this.sqywInfo.parentid, | ||
| 69 | }; | ||
| 70 | }, | ||
| 71 | mounted () { | ||
| 72 | sendThis(this); | ||
| 73 | }, | ||
| 74 | methods: { | ||
| 75 | queryClick () { | ||
| 76 | this.$startLoading(); | ||
| 77 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | ||
| 78 | selectZdjbxx({ ...this.queryForm, ...this.pageData }).then((res) => { | ||
| 79 | this.$endLoading(); | ||
| 80 | if (res.code === 200) { | ||
| 81 | let { total, records } = res.result; | ||
| 82 | this.tableData.total = total; | ||
| 83 | this.tableData.data = records; | ||
| 84 | } | 91 | } |
| 85 | }); | 92 | startBusinessFlow({ |
| 86 | }, | 93 | bsmSqyw: this.bsmSqyw, |
| 87 | submitForm () { | 94 | bdcdysz: this.bdcdysz, |
| 88 | if (this.bdcdysz.length == 0) { | 95 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", |
| 89 | this.$message.error("请至少选择一条数据"); | 96 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", |
| 90 | return; | 97 | }).then((res) => { |
| 91 | } | 98 | if (res.code == 200) { |
| 92 | startBusinessFlow({ | 99 | this.$message({ |
| 93 | bsmSqyw: this.bsmSqyw, | 100 | showClose: true, |
| 94 | bdcdysz: this.bdcdysz, | 101 | message: '发起申请成功', |
| 95 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", | 102 | type: 'success' |
| 96 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", | 103 | }) |
| 97 | }).then((res) => { | 104 | if (!this.isJump) { |
| 98 | if (res.code == 200) { | 105 | this.jump(res.result, this.djywbm) |
| 99 | this.$message({ | 106 | } else { |
| 100 | showClose: true, | 107 | store.dispatch('user/refreshPage', true); |
| 101 | message: '发起申请成功', | 108 | } |
| 102 | type: 'success' | ||
| 103 | }) | ||
| 104 | if (!this.isJump) { | ||
| 105 | this.jump(res.result, this.djywbm) | ||
| 106 | } else { | 109 | } else { |
| 107 | store.dispatch('user/refreshPage', true); | 110 | this.$message.error(res.message); |
| 108 | } | 111 | } |
| 109 | } else { | 112 | }) |
| 110 | this.$message.error(res.message); | 113 | }, |
| 111 | } | 114 | handleSelectionChange (val) { |
| 112 | }) | 115 | this.bdcdysz = val; |
| 113 | }, | 116 | } |
| 114 | handleSelectionChange (val) { | ||
| 115 | this.bdcdysz = val; | ||
| 116 | } | 117 | } |
| 117 | } | 118 | } |
| 118 | } | ||
| 119 | </script> | 119 | </script> |
| 120 | <style scoped lang="scss"> | 120 | <style scoped lang="scss"> |
| 121 | @import "~@/styles/mixin.scss"; | 121 | @import "~@/styles/mixin.scss"; |
| 122 | @import "~@/styles/public.scss"; | 122 | @import "~@/styles/public.scss"; |
| 123 | </style> | 123 | </style> |
| 124 | 124 | ... | ... |
| ... | @@ -27,7 +27,7 @@ | ... | @@ -27,7 +27,7 @@ |
| 27 | </div> | 27 | </div> |
| 28 | <!-- 表格 --> | 28 | <!-- 表格 --> |
| 29 | <div class="from-clues-content loadingtext"> | 29 | <div class="from-clues-content loadingtext"> |
| 30 | <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" | 30 | <lb-table ref="table" @row-dblclick="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" |
| 31 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" | 31 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" |
| 32 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" | 32 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" |
| 33 | :data="tableData.data"> | 33 | :data="tableData.data"> |
| ... | @@ -40,91 +40,91 @@ | ... | @@ -40,91 +40,91 @@ |
| 40 | </div> | 40 | </div> |
| 41 | </template> | 41 | </template> |
| 42 | <script> | 42 | <script> |
| 43 | //首次登记 | 43 | //首次登记 |
| 44 | import store from '@/store/index.js' | 44 | import store from '@/store/index.js' |
| 45 | import { datas, sendThis } from "../javascript/selectJsydsyq.js"; | 45 | import { datas, sendThis } from "../javascript/selectJsydsyq.js"; |
| 46 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; | 46 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; |
| 47 | import table from "@/utils/mixin/table"; | 47 | import table from "@/utils/mixin/table"; |
| 48 | import jump from "../components/mixin/jump"; | 48 | import jump from "../components/mixin/jump"; |
| 49 | import { startBusinessFlow, selectNydsyqQlxx } from "@/api/ywbl.js"; | 49 | import { startBusinessFlow, selectNydsyqQlxx } from "@/api/ywbl.js"; |
| 50 | export default { | 50 | export default { |
| 51 | mixins: [table, jump], | 51 | mixins: [table, jump], |
| 52 | props: { | 52 | props: { |
| 53 | isJump: { type: Boolean, default: false }, | 53 | isJump: { type: Boolean, default: false }, |
| 54 | sqywInfo: { type: Object, default: () => { } }, | 54 | sqywInfo: { type: Object, default: () => { } }, |
| 55 | }, | 55 | }, |
| 56 | data () { | 56 | data () { |
| 57 | return { | 57 | return { |
| 58 | queryForm: defaultParameters.defaultParameters(), | 58 | queryForm: defaultParameters.defaultParameters(), |
| 59 | qllxs: [], | 59 | qllxs: [], |
| 60 | tableData: { | 60 | tableData: { |
| 61 | total: 0, | 61 | total: 0, |
| 62 | columns: datas.columns(), | 62 | columns: datas.columns(), |
| 63 | data: [], | 63 | data: [], |
| 64 | }, | ||
| 65 | bdcdysz: [] | ||
| 66 | }; | ||
| 67 | }, | ||
| 68 | mounted () { | ||
| 69 | sendThis(this); | ||
| 70 | }, | ||
| 71 | methods: { | ||
| 72 | queryClick () { | ||
| 73 | this.$startLoading(); | ||
| 74 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | ||
| 75 | selectNydsyqQlxx({ ...this.queryForm, ...this.pageData }).then((res) => { | ||
| 76 | this.$endLoading(); | ||
| 77 | if (res.code === 200) { | ||
| 78 | let { total, records } = res.result; | ||
| 79 | this.tableData.total = total; | ||
| 80 | this.tableData.data = records; | ||
| 81 | } | ||
| 82 | }) | ||
| 64 | }, | 83 | }, |
| 65 | bdcdysz: [] | 84 | submitForm () { |
| 66 | }; | 85 | if (this.bdcdysz.length == 0) { |
| 67 | }, | 86 | this.$message.error("请至少选择一条数据"); |
| 68 | mounted () { | 87 | return; |
| 69 | sendThis(this); | ||
| 70 | }, | ||
| 71 | methods: { | ||
| 72 | queryClick () { | ||
| 73 | this.$startLoading(); | ||
| 74 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | ||
| 75 | selectNydsyqQlxx({ ...this.queryForm, ...this.pageData }).then((res) => { | ||
| 76 | this.$endLoading(); | ||
| 77 | if (res.code === 200) { | ||
| 78 | let { total, records } = res.result; | ||
| 79 | this.tableData.total = total; | ||
| 80 | this.tableData.data = records; | ||
| 81 | } | 88 | } |
| 82 | }) | 89 | startBusinessFlow({ |
| 83 | }, | 90 | bsmSqyw: this.sqywInfo.parentid, |
| 84 | submitForm () { | 91 | bdcdysz: this.bdcdysz, |
| 85 | if (this.bdcdysz.length == 0) { | 92 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", |
| 86 | this.$message.error("请至少选择一条数据"); | 93 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", |
| 87 | return; | 94 | }).then((res) => { |
| 88 | } | 95 | if (res.code == 200) { |
| 89 | startBusinessFlow({ | 96 | this.$message({ |
| 90 | bsmSqyw: this.sqywInfo.parentid, | 97 | showClose: true, |
| 91 | bdcdysz: this.bdcdysz, | 98 | message: '发起申请成功', |
| 92 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", | 99 | type: 'success' |
| 93 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", | 100 | }) |
| 94 | }).then((res) => { | 101 | if (!this.isJump) { |
| 95 | if (res.code == 200) { | 102 | this.jump(res.result, this.djywbm) |
| 96 | this.$message({ | 103 | } else { |
| 97 | showClose: true, | 104 | store.dispatch('user/refreshPage', true); |
| 98 | message: '发起申请成功', | 105 | } |
| 99 | type: 'success' | ||
| 100 | }) | ||
| 101 | if (!this.isJump) { | ||
| 102 | this.jump(res.result, this.djywbm) | ||
| 103 | } else { | 106 | } else { |
| 104 | store.dispatch('user/refreshPage', true); | 107 | this.$message.error(res.message); |
| 105 | } | 108 | } |
| 106 | } else { | 109 | }) |
| 107 | this.$message.error(res.message); | 110 | }, |
| 108 | } | 111 | handleSelectionChange (val) { |
| 109 | }) | 112 | val.forEach((item, index) => { |
| 110 | }, | 113 | item.bsmSsql = item.bsmQlxx |
| 111 | handleSelectionChange (val) { | 114 | item.ybdcqzsh = item.bdcqzh |
| 112 | val.forEach((item, index) => { | 115 | }) |
| 113 | item.bsmSsql = item.bsmQlxx | 116 | this.bdcdysz = val; |
| 114 | item.ybdcqzsh = item.bdcqzh | 117 | }, |
| 115 | }) | 118 | openBook (row) { |
| 116 | this.bdcdysz = val; | 119 | var param = { bdcdyid: row.bdcdyid, qllx: row.qllx, bdcdyh: row.bdcdyh, bsmQlxx: row.bsmQlxx }; |
| 117 | }, | 120 | this.$popup('登记簿详情', 'registerBook/djbFrame', { |
| 118 | openBook (row) { | 121 | formData: param |
| 119 | var param = { bdcdyid: row.bdcdyid, qllx: row.qllx, bdcdyh: row.bdcdyh, bsmQlxx: row.bsmQlxx }; | 122 | }) |
| 120 | this.$popup('登记簿详情', 'registerBook/djbFrame', { | 123 | } |
| 121 | formData: param | ||
| 122 | }) | ||
| 123 | } | 124 | } |
| 124 | } | 125 | } |
| 125 | } | ||
| 126 | </script> | 126 | </script> |
| 127 | <style scoped lang="scss"> | 127 | <style scoped lang="scss"> |
| 128 | @import "~@/styles/mixin.scss"; | 128 | @import "~@/styles/mixin.scss"; |
| 129 | @import "~@/styles/public.scss"; | 129 | @import "~@/styles/public.scss"; |
| 130 | </style> | 130 | </style> | ... | ... |
| ... | @@ -42,7 +42,7 @@ | ... | @@ -42,7 +42,7 @@ |
| 42 | </div> | 42 | </div> |
| 43 | <!-- 表格 --> | 43 | <!-- 表格 --> |
| 44 | <div class="from-clues-content loadingtext"> | 44 | <div class="from-clues-content loadingtext"> |
| 45 | <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" | 45 | <lb-table ref="table" @row-dblclick="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" |
| 46 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" | 46 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" |
| 47 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" | 47 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" |
| 48 | :data="tableData.data"> | 48 | :data="tableData.data"> |
| ... | @@ -55,98 +55,98 @@ | ... | @@ -55,98 +55,98 @@ |
| 55 | </div> | 55 | </div> |
| 56 | </template> | 56 | </template> |
| 57 | <script> | 57 | <script> |
| 58 | import store from '@/store/index.js' | 58 | import store from '@/store/index.js' |
| 59 | import { datas, sendThis } from "../javascript/selecBdcql.js"; | 59 | import { datas, sendThis } from "../javascript/selecBdcql.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"; |
| 62 | import jump from "./mixin/jump"; | 62 | import jump from "./mixin/jump"; |
| 63 | import { selectQlxx, startBusinessFlow } from "@/api/ywbl.js"; | 63 | import { selectQlxx, startBusinessFlow } from "@/api/ywbl.js"; |
| 64 | import { getQllxByBsmSqyw } from "@/api/system.js"; | 64 | import { getQllxByBsmSqyw } from "@/api/system.js"; |
| 65 | export default { | 65 | export default { |
| 66 | mixins: [table, jump], | 66 | mixins: [table, jump], |
| 67 | props: { | 67 | props: { |
| 68 | isJump: { type: Boolean, default: false }, | 68 | isJump: { type: Boolean, default: false }, |
| 69 | sqywInfo: { type: Object, default: () => { } }, | 69 | sqywInfo: { type: Object, default: () => { } }, |
| 70 | }, | 70 | }, |
| 71 | data () { | 71 | data () { |
| 72 | return { | 72 | return { |
| 73 | queryForm: defaultParameters.defaultParameters(), | 73 | queryForm: defaultParameters.defaultParameters(), |
| 74 | qllxData: [], | 74 | qllxData: [], |
| 75 | tableData: { | 75 | tableData: { |
| 76 | total: 0, | 76 | total: 0, |
| 77 | columns: datas.columns(), | 77 | columns: datas.columns(), |
| 78 | data: [], | 78 | data: [], |
| 79 | }, | 79 | }, |
| 80 | bdcdysz: [], | 80 | bdcdysz: [], |
| 81 | bsmSqyw: | 81 | bsmSqyw: |
| 82 | this.sqywInfo.nodetype === "djlx" | 82 | this.sqywInfo.nodetype === "djlx" |
| 83 | ? this.sqywInfo.bsmSqyw | 83 | ? this.sqywInfo.bsmSqyw |
| 84 | : this.sqywInfo.parentid, | 84 | : this.sqywInfo.parentid, |
| 85 | }; | 85 | }; |
| 86 | }, | 86 | }, |
| 87 | mounted () { | 87 | mounted () { |
| 88 | sendThis(this); | 88 | sendThis(this); |
| 89 | }, | 89 | }, |
| 90 | created () { | 90 | created () { |
| 91 | //初始化权利类型下拉框内容 | 91 | //初始化权利类型下拉框内容 |
| 92 | getQllxByBsmSqyw(this.bsmSqyw).then((res) => { | 92 | getQllxByBsmSqyw(this.bsmSqyw).then((res) => { |
| 93 | if (res.code === 200) { | ||
| 94 | this.qllxData = res.result ? res.result : []; | ||
| 95 | } | ||
| 96 | }); | ||
| 97 | }, | ||
| 98 | methods: { | ||
| 99 | //默认加载表格信息 | ||
| 100 | queryClick () { | ||
| 101 | this.$startLoading(); | ||
| 102 | this.queryForm.bsmSqyw = this.bsmSqyw; | ||
| 103 | selectQlxx({ ...this.queryForm, ...this.pageData }).then((res) => { | ||
| 104 | this.$endLoading(); | ||
| 105 | if (res.code === 200) { | 93 | if (res.code === 200) { |
| 106 | let { total, records } = res.result; | 94 | this.qllxData = res.result ? res.result : []; |
| 107 | this.tableData.total = total; | ||
| 108 | this.tableData.data = records; | ||
| 109 | } | 95 | } |
| 110 | }); | 96 | }); |
| 111 | }, | 97 | }, |
| 112 | submitForm () { | 98 | methods: { |
| 113 | if (this.bdcdysz.length == 0) { | 99 | //默认加载表格信息 |
| 114 | this.$alert("请至少选择一条数据"); | 100 | queryClick () { |
| 115 | return; | 101 | this.$startLoading(); |
| 116 | } | 102 | this.queryForm.bsmSqyw = this.bsmSqyw; |
| 117 | startBusinessFlow({ | 103 | selectQlxx({ ...this.queryForm, ...this.pageData }).then((res) => { |
| 118 | bsmSqyw: this.bsmSqyw, | 104 | this.$endLoading(); |
| 119 | bdcdysz: this.bdcdysz, | 105 | if (res.code === 200) { |
| 120 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", | 106 | let { total, records } = res.result; |
| 121 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", | 107 | this.tableData.total = total; |
| 122 | }).then((res) => { | 108 | this.tableData.data = records; |
| 123 | if (res.code == 200) { | ||
| 124 | this.$message({ | ||
| 125 | showClose: true, | ||
| 126 | message: "发起申请成功", | ||
| 127 | type: "success", | ||
| 128 | }); | ||
| 129 | if (!this.isJump) { | ||
| 130 | this.jump(res.result, this.sqywInfo.djywbm); | ||
| 131 | } else { | ||
| 132 | store.dispatch('user/refreshPage', true); | ||
| 133 | } | 109 | } |
| 134 | } else { | 110 | }); |
| 135 | this.$alert(res.message); | 111 | }, |
| 112 | submitForm () { | ||
| 113 | if (this.bdcdysz.length == 0) { | ||
| 114 | this.$alert("请至少选择一条数据"); | ||
| 115 | return; | ||
| 136 | } | 116 | } |
| 137 | }); | 117 | startBusinessFlow({ |
| 138 | }, | 118 | bsmSqyw: this.bsmSqyw, |
| 139 | handleSelectionChange (val) { | 119 | bdcdysz: this.bdcdysz, |
| 140 | val.forEach((item, index) => { | 120 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", |
| 141 | item.bsmSsql = item.bsmQlxx; | 121 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", |
| 142 | item.ybdcqzsh = item.bdcqzh; | 122 | }).then((res) => { |
| 143 | }); | 123 | if (res.code == 200) { |
| 144 | this.bdcdysz = val; | 124 | this.$message({ |
| 125 | showClose: true, | ||
| 126 | message: "发起申请成功", | ||
| 127 | type: "success", | ||
| 128 | }); | ||
| 129 | if (!this.isJump) { | ||
| 130 | this.jump(res.result, this.sqywInfo.djywbm); | ||
| 131 | } else { | ||
| 132 | store.dispatch('user/refreshPage', true); | ||
| 133 | } | ||
| 134 | } else { | ||
| 135 | this.$alert(res.message); | ||
| 136 | } | ||
| 137 | }); | ||
| 138 | }, | ||
| 139 | handleSelectionChange (val) { | ||
| 140 | val.forEach((item, index) => { | ||
| 141 | item.bsmSsql = item.bsmQlxx; | ||
| 142 | item.ybdcqzsh = item.bdcqzh; | ||
| 143 | }); | ||
| 144 | this.bdcdysz = val; | ||
| 145 | }, | ||
| 145 | }, | 146 | }, |
| 146 | }, | 147 | }; |
| 147 | }; | ||
| 148 | </script> | 148 | </script> |
| 149 | <style scoped lang="scss"> | 149 | <style scoped lang="scss"> |
| 150 | @import "~@/styles/mixin.scss"; | 150 | @import "~@/styles/mixin.scss"; |
| 151 | @import "~@/styles/public.scss"; | 151 | @import "~@/styles/public.scss"; |
| 152 | </style> | 152 | </style> | ... | ... |
| ... | @@ -34,7 +34,7 @@ | ... | @@ -34,7 +34,7 @@ |
| 34 | </div> | 34 | </div> |
| 35 | <!-- 表格 --> | 35 | <!-- 表格 --> |
| 36 | <div class="from-clues-content loadingtext"> | 36 | <div class="from-clues-content loadingtext"> |
| 37 | <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" | 37 | <lb-table ref="table" @row-dblclick="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" |
| 38 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" | 38 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" |
| 39 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" | 39 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" |
| 40 | :data="tableData.data"> | 40 | :data="tableData.data"> |
| ... | @@ -47,83 +47,83 @@ | ... | @@ -47,83 +47,83 @@ |
| 47 | </div> | 47 | </div> |
| 48 | </template> | 48 | </template> |
| 49 | <script> | 49 | <script> |
| 50 | import store from '@/store/index.js' | 50 | import store from '@/store/index.js' |
| 51 | import { datas, sendThis } from "../javascript/selectAllHInfo.js"; | 51 | import { datas, sendThis } from "../javascript/selectAllHInfo.js"; |
| 52 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; | 52 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; |
| 53 | import table from "@/utils/mixin/table"; | 53 | import table from "@/utils/mixin/table"; |
| 54 | import jump from "./mixin/jump"; | 54 | import jump from "./mixin/jump"; |
| 55 | import { selectAllHInfo, startBusinessFlow } from "@/api/ywbl.js"; | 55 | import { selectAllHInfo, startBusinessFlow } from "@/api/ywbl.js"; |
| 56 | export default { | 56 | export default { |
| 57 | mixins: [table, jump], | 57 | mixins: [table, jump], |
| 58 | props: { | 58 | props: { |
| 59 | isJump: { type: Boolean, default: false }, | 59 | isJump: { type: Boolean, default: false }, |
| 60 | sqywInfo: { type: Object, default: () => { } }, | 60 | sqywInfo: { type: Object, default: () => { } }, |
| 61 | 61 | ||
| 62 | }, | 62 | }, |
| 63 | data () { | 63 | data () { |
| 64 | return { | 64 | return { |
| 65 | queryForm: defaultParameters.defaultParameters(), | 65 | queryForm: defaultParameters.defaultParameters(), |
| 66 | tableData: { | 66 | tableData: { |
| 67 | total: 0, | 67 | total: 0, |
| 68 | columns: datas.columns(), | 68 | columns: datas.columns(), |
| 69 | data: [], | 69 | data: [], |
| 70 | }, | ||
| 71 | bdcdysz: [], | ||
| 72 | }; | ||
| 73 | }, | ||
| 74 | mounted () { | ||
| 75 | sendThis(this); | ||
| 76 | }, | ||
| 77 | methods: { | ||
| 78 | queryClick () { | ||
| 79 | this.$startLoading(); | ||
| 80 | selectAllHInfo({ ...this.queryForm, ...this.pageData }).then((res) => { | ||
| 81 | this.$endLoading(); | ||
| 82 | if (res.code === 200) { | ||
| 83 | let { total, records } = res.result; | ||
| 84 | this.tableData.total = total; | ||
| 85 | this.tableData.data = records; | ||
| 86 | } | ||
| 87 | }); | ||
| 70 | }, | 88 | }, |
| 71 | bdcdysz: [], | 89 | submitForm () { |
| 72 | }; | 90 | if (this.bdcdysz.length == 0) { |
| 73 | }, | 91 | this.$message.error("请至少选择一条数据"); |
| 74 | mounted () { | 92 | return; |
| 75 | sendThis(this); | ||
| 76 | }, | ||
| 77 | methods: { | ||
| 78 | queryClick () { | ||
| 79 | this.$startLoading(); | ||
| 80 | selectAllHInfo({ ...this.queryForm, ...this.pageData }).then((res) => { | ||
| 81 | this.$endLoading(); | ||
| 82 | if (res.code === 200) { | ||
| 83 | let { total, records } = res.result; | ||
| 84 | this.tableData.total = total; | ||
| 85 | this.tableData.data = records; | ||
| 86 | } | 93 | } |
| 87 | }); | 94 | startBusinessFlow({ |
| 88 | }, | 95 | bsmSqyw: this.sqywInfo.bsmSqyw, |
| 89 | submitForm () { | 96 | bdcdysz: this.bdcdysz, |
| 90 | if (this.bdcdysz.length == 0) { | 97 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", |
| 91 | this.$message.error("请至少选择一条数据"); | 98 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", |
| 92 | return; | 99 | }).then((res) => { |
| 93 | } | 100 | if (res.code == 200) { |
| 94 | startBusinessFlow({ | 101 | this.$message({ |
| 95 | bsmSqyw: this.sqywInfo.bsmSqyw, | 102 | showClose: true, |
| 96 | bdcdysz: this.bdcdysz, | 103 | message: '发起申请成功', |
| 97 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", | 104 | type: 'success' |
| 98 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", | 105 | }) |
| 99 | }).then((res) => { | 106 | if (!this.isJump) { |
| 100 | if (res.code == 200) { | 107 | this.jump(res.result, this.sqywInfo.djywbm) |
| 101 | this.$message({ | 108 | } else { |
| 102 | showClose: true, | 109 | store.dispatch('user/refreshPage', true); |
| 103 | message: '发起申请成功', | 110 | } |
| 104 | type: 'success' | ||
| 105 | }) | ||
| 106 | if (!this.isJump) { | ||
| 107 | this.jump(res.result, this.sqywInfo.djywbm) | ||
| 108 | } else { | 111 | } else { |
| 109 | store.dispatch('user/refreshPage', true); | 112 | this.$message.error(res.message); |
| 110 | } | 113 | } |
| 111 | } else { | 114 | }); |
| 112 | this.$message.error(res.message); | 115 | }, |
| 113 | } | 116 | handleSelectionChange (val) { |
| 114 | }); | 117 | val.forEach((item, index) => { |
| 115 | }, | 118 | item.bsmSsql = item.bsmQlxx; |
| 116 | handleSelectionChange (val) { | 119 | item.ybdcqzsh = item.bdcqzh; |
| 117 | val.forEach((item, index) => { | 120 | }); |
| 118 | item.bsmSsql = item.bsmQlxx; | 121 | this.bdcdysz = val; |
| 119 | item.ybdcqzsh = item.bdcqzh; | 122 | }, |
| 120 | }); | ||
| 121 | this.bdcdysz = val; | ||
| 122 | }, | 123 | }, |
| 123 | }, | 124 | }; |
| 124 | }; | ||
| 125 | </script> | 125 | </script> |
| 126 | <style scoped lang="scss"> | 126 | <style scoped lang="scss"> |
| 127 | @import "~@/styles/mixin.scss"; | 127 | @import "~@/styles/mixin.scss"; |
| 128 | @import "~@/styles/public.scss"; | 128 | @import "~@/styles/public.scss"; |
| 129 | </style> | 129 | </style> | ... | ... |
| ... | @@ -34,7 +34,7 @@ | ... | @@ -34,7 +34,7 @@ |
| 34 | </div> | 34 | </div> |
| 35 | <!-- 表格 --> | 35 | <!-- 表格 --> |
| 36 | <div class="from-clues-content loadingtext"> | 36 | <div class="from-clues-content loadingtext"> |
| 37 | <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" | 37 | <lb-table ref="table" @row-dblclick="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" |
| 38 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" | 38 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" |
| 39 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" | 39 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" |
| 40 | :data="tableData.data"> | 40 | :data="tableData.data"> |
| ... | @@ -47,83 +47,83 @@ | ... | @@ -47,83 +47,83 @@ |
| 47 | </div> | 47 | </div> |
| 48 | </template> | 48 | </template> |
| 49 | <script> | 49 | <script> |
| 50 | import store from '@/store/index.js' | 50 | import store from '@/store/index.js' |
| 51 | import { datas, sendThis } from "../javascript/selectFwsyq.js"; | 51 | import { datas, sendThis } from "../javascript/selectFwsyq.js"; |
| 52 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; | 52 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; |
| 53 | import table from "@/utils/mixin/table"; | 53 | import table from "@/utils/mixin/table"; |
| 54 | import jump from "./mixin/jump"; | 54 | import jump from "./mixin/jump"; |
| 55 | import { selectFwsyq, startBusinessFlow } from "@/api/ywbl.js"; | 55 | import { selectFwsyq, startBusinessFlow } from "@/api/ywbl.js"; |
| 56 | export default { | 56 | export default { |
| 57 | mixins: [table, jump], | 57 | mixins: [table, jump], |
| 58 | props: { | 58 | props: { |
| 59 | isJump: { type: Boolean, default: false }, | 59 | isJump: { type: Boolean, default: false }, |
| 60 | sqywInfo: { type: Object, default: () => { } }, | 60 | sqywInfo: { type: Object, default: () => { } }, |
| 61 | }, | 61 | }, |
| 62 | data () { | 62 | data () { |
| 63 | return { | 63 | return { |
| 64 | queryForm: defaultParameters.defaultParameters(), | 64 | queryForm: defaultParameters.defaultParameters(), |
| 65 | tableData: { | 65 | tableData: { |
| 66 | total: 0, | 66 | total: 0, |
| 67 | columns: datas.columns(), | 67 | columns: datas.columns(), |
| 68 | data: [], | 68 | data: [], |
| 69 | }, | ||
| 70 | bdcdysz: [], | ||
| 71 | }; | ||
| 72 | }, | ||
| 73 | mounted () { | ||
| 74 | sendThis(this); | ||
| 75 | }, | ||
| 76 | methods: { | ||
| 77 | queryClick () { | ||
| 78 | this.$startLoading(); | ||
| 79 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | ||
| 80 | selectFwsyq({ ...this.queryForm, ...this.pageData }).then((res) => { | ||
| 81 | this.$endLoading(); | ||
| 82 | if (res.code === 200) { | ||
| 83 | let { total, records } = res.result; | ||
| 84 | this.tableData.total = total; | ||
| 85 | this.tableData.data = records; | ||
| 86 | } | ||
| 87 | }); | ||
| 69 | }, | 88 | }, |
| 70 | bdcdysz: [], | 89 | submitForm () { |
| 71 | }; | 90 | if (this.bdcdysz.length == 0) { |
| 72 | }, | 91 | this.$message.error("请至少选择一条数据"); |
| 73 | mounted () { | 92 | return; |
| 74 | sendThis(this); | ||
| 75 | }, | ||
| 76 | methods: { | ||
| 77 | queryClick () { | ||
| 78 | this.$startLoading(); | ||
| 79 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | ||
| 80 | selectFwsyq({ ...this.queryForm, ...this.pageData }).then((res) => { | ||
| 81 | this.$endLoading(); | ||
| 82 | if (res.code === 200) { | ||
| 83 | let { total, records } = res.result; | ||
| 84 | this.tableData.total = total; | ||
| 85 | this.tableData.data = records; | ||
| 86 | } | 93 | } |
| 87 | }); | 94 | startBusinessFlow({ |
| 88 | }, | 95 | bsmSqyw: this.sqywInfo.bsmSqyw, |
| 89 | submitForm () { | 96 | bdcdysz: this.bdcdysz, |
| 90 | if (this.bdcdysz.length == 0) { | 97 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", |
| 91 | this.$message.error("请至少选择一条数据"); | 98 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", |
| 92 | return; | 99 | }).then((res) => { |
| 93 | } | 100 | if (res.code == 200) { |
| 94 | startBusinessFlow({ | 101 | this.$message({ |
| 95 | bsmSqyw: this.sqywInfo.bsmSqyw, | 102 | showClose: true, |
| 96 | bdcdysz: this.bdcdysz, | 103 | message: "发起申请成功", |
| 97 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", | 104 | type: "success", |
| 98 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", | 105 | }); |
| 99 | }).then((res) => { | 106 | if (!this.isJump) { |
| 100 | if (res.code == 200) { | 107 | this.jump(res.result, this.sqywInfo.djywbm); |
| 101 | this.$message({ | 108 | } else { |
| 102 | showClose: true, | 109 | store.dispatch('user/refreshPage', true); |
| 103 | message: "发起申请成功", | 110 | } |
| 104 | type: "success", | ||
| 105 | }); | ||
| 106 | if (!this.isJump) { | ||
| 107 | this.jump(res.result, this.sqywInfo.djywbm); | ||
| 108 | } else { | 111 | } else { |
| 109 | store.dispatch('user/refreshPage', true); | 112 | this.$message.error(res.message); |
| 110 | } | 113 | } |
| 111 | } else { | 114 | }); |
| 112 | this.$message.error(res.message); | 115 | }, |
| 113 | } | 116 | handleSelectionChange (val) { |
| 114 | }); | 117 | val.forEach((item, index) => { |
| 115 | }, | 118 | item.bsmSsql = item.bsmQlxx; |
| 116 | handleSelectionChange (val) { | 119 | item.ybdcqzsh = item.bdcqzh; |
| 117 | val.forEach((item, index) => { | 120 | }); |
| 118 | item.bsmSsql = item.bsmQlxx; | 121 | this.bdcdysz = val; |
| 119 | item.ybdcqzsh = item.bdcqzh; | 122 | }, |
| 120 | }); | ||
| 121 | this.bdcdysz = val; | ||
| 122 | }, | 123 | }, |
| 123 | }, | 124 | }; |
| 124 | }; | ||
| 125 | </script> | 125 | </script> |
| 126 | <style scoped lang="scss"> | 126 | <style scoped lang="scss"> |
| 127 | @import "~@/styles/mixin.scss"; | 127 | @import "~@/styles/mixin.scss"; |
| 128 | @import "~@/styles/public.scss"; | 128 | @import "~@/styles/public.scss"; |
| 129 | </style> | 129 | </style> | ... | ... |
| ... | @@ -41,7 +41,7 @@ | ... | @@ -41,7 +41,7 @@ |
| 41 | </div> | 41 | </div> |
| 42 | <!-- 表格 --> | 42 | <!-- 表格 --> |
| 43 | <div class="from-clues-content loadingtext"> | 43 | <div class="from-clues-content loadingtext"> |
| 44 | <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" | 44 | <lb-table ref="table" @row-dblclick="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" |
| 45 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" | 45 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" |
| 46 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" | 46 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" |
| 47 | :data="tableData.data"> | 47 | :data="tableData.data"> |
| ... | @@ -54,95 +54,95 @@ | ... | @@ -54,95 +54,95 @@ |
| 54 | </div> | 54 | </div> |
| 55 | </template> | 55 | </template> |
| 56 | <script> | 56 | <script> |
| 57 | //首次登记 | 57 | //首次登记 |
| 58 | import store from '@/store/index.js' | 58 | import store from '@/store/index.js' |
| 59 | import { datas, sendThis } from "../javascript/selectJsydsyq.js"; | 59 | import { datas, sendThis } from "../javascript/selectJsydsyq.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"; |
| 62 | import jump from "./mixin/jump"; | 62 | import jump from "./mixin/jump"; |
| 63 | import { startBusinessFlow, selectJsydQlxx } from "@/api/ywbl.js"; | 63 | import { startBusinessFlow, selectJsydQlxx } from "@/api/ywbl.js"; |
| 64 | export default { | 64 | export default { |
| 65 | mixins: [table, jump], | 65 | mixins: [table, jump], |
| 66 | props: { | 66 | props: { |
| 67 | isJump: { type: Boolean, default: false }, | 67 | isJump: { type: Boolean, default: false }, |
| 68 | sqywInfo: { type: Object, default: () => { } }, | 68 | sqywInfo: { type: Object, default: () => { } }, |
| 69 | }, | ||
| 70 | data () { | ||
| 71 | return { | ||
| 72 | queryForm: defaultParameters.defaultParameters(), | ||
| 73 | tableData: { | ||
| 74 | total: 0, | ||
| 75 | columns: datas.columns(), | ||
| 76 | data: [] | ||
| 77 | }, | ||
| 78 | bdcdysz: [] | ||
| 79 | } | ||
| 80 | }, | ||
| 81 | mounted () { | ||
| 82 | sendThis(this); | ||
| 83 | }, | ||
| 84 | methods: { | ||
| 85 | queryClick () { | ||
| 86 | this.$startLoading(); | ||
| 87 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | ||
| 88 | selectJsydQlxx({ ...this.queryForm, ...this.pageData }).then((res) => { | ||
| 89 | this.$endLoading(); | ||
| 90 | if (res.code === 200) { | ||
| 91 | let { total, records } = res.result; | ||
| 92 | this.tableData.total = total; | ||
| 93 | this.tableData.data = records; | ||
| 94 | } | ||
| 95 | }); | ||
| 96 | }, | 69 | }, |
| 97 | submitForm () { | 70 | data () { |
| 98 | if (this.bdcdysz.length == 0) { | 71 | return { |
| 99 | this.$message.error("请至少选择一条数据"); | 72 | queryForm: defaultParameters.defaultParameters(), |
| 100 | return; | 73 | tableData: { |
| 74 | total: 0, | ||
| 75 | columns: datas.columns(), | ||
| 76 | data: [] | ||
| 77 | }, | ||
| 78 | bdcdysz: [] | ||
| 101 | } | 79 | } |
| 102 | startBusinessFlow({ | ||
| 103 | bsmSqyw: this.sqywInfo.parentid, | ||
| 104 | bdcdysz: this.bdcdysz, | ||
| 105 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", | ||
| 106 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", | ||
| 107 | }).then((res) => { | ||
| 108 | if (res.code == 200) { | ||
| 109 | this.$message({ | ||
| 110 | showClose: true, | ||
| 111 | message: "发起申请成功", | ||
| 112 | type: "success", | ||
| 113 | }); | ||
| 114 | if (!this.isJump) { | ||
| 115 | this.jump(res.result, this.sqywInfo.djywbm); | ||
| 116 | } else { | ||
| 117 | store.dispatch('user/refreshPage', true); | ||
| 118 | } | ||
| 119 | } else { | ||
| 120 | this.$message.error(res.message); | ||
| 121 | } | ||
| 122 | }); | ||
| 123 | }, | 80 | }, |
| 124 | handleSelectionChange (val) { | 81 | mounted () { |
| 125 | val.forEach((item, index) => { | 82 | sendThis(this); |
| 126 | item.bsmSsql = item.bsmQlxx; | ||
| 127 | item.ybdcqzsh = item.bdcqzh; | ||
| 128 | }); | ||
| 129 | this.bdcdysz = val; | ||
| 130 | }, | 83 | }, |
| 131 | openBook (row) { | 84 | methods: { |
| 132 | var param = { | 85 | queryClick () { |
| 133 | bdcdyid: row.bdcdyid, | 86 | this.$startLoading(); |
| 134 | qllx: row.qllx, | 87 | this.queryForm.sqywbm = this.sqywInfo.djywbm; |
| 135 | bdcdyh: row.bdcdyh, | 88 | selectJsydQlxx({ ...this.queryForm, ...this.pageData }).then((res) => { |
| 136 | bsmQlxx: row.bsmQlxx, | 89 | this.$endLoading(); |
| 137 | }; | 90 | if (res.code === 200) { |
| 138 | this.$popup("登记簿详情", "registerBook/djbFrame", { | 91 | let { total, records } = res.result; |
| 139 | formData: param | 92 | this.tableData.total = total; |
| 140 | }) | 93 | this.tableData.data = records; |
| 94 | } | ||
| 95 | }); | ||
| 96 | }, | ||
| 97 | submitForm () { | ||
| 98 | if (this.bdcdysz.length == 0) { | ||
| 99 | this.$message.error("请至少选择一条数据"); | ||
| 100 | return; | ||
| 101 | } | ||
| 102 | startBusinessFlow({ | ||
| 103 | bsmSqyw: this.sqywInfo.parentid, | ||
| 104 | bdcdysz: this.bdcdysz, | ||
| 105 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", | ||
| 106 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", | ||
| 107 | }).then((res) => { | ||
| 108 | if (res.code == 200) { | ||
| 109 | this.$message({ | ||
| 110 | showClose: true, | ||
| 111 | message: "发起申请成功", | ||
| 112 | type: "success", | ||
| 113 | }); | ||
| 114 | if (!this.isJump) { | ||
| 115 | this.jump(res.result, this.sqywInfo.djywbm); | ||
| 116 | } else { | ||
| 117 | store.dispatch('user/refreshPage', true); | ||
| 118 | } | ||
| 119 | } else { | ||
| 120 | this.$message.error(res.message); | ||
| 121 | } | ||
| 122 | }); | ||
| 123 | }, | ||
| 124 | handleSelectionChange (val) { | ||
| 125 | val.forEach((item, index) => { | ||
| 126 | item.bsmSsql = item.bsmQlxx; | ||
| 127 | item.ybdcqzsh = item.bdcqzh; | ||
| 128 | }); | ||
| 129 | this.bdcdysz = val; | ||
| 130 | }, | ||
| 131 | openBook (row) { | ||
| 132 | var param = { | ||
| 133 | bdcdyid: row.bdcdyid, | ||
| 134 | qllx: row.qllx, | ||
| 135 | bdcdyh: row.bdcdyh, | ||
| 136 | bsmQlxx: row.bsmQlxx, | ||
| 137 | }; | ||
| 138 | this.$popup("登记簿详情", "registerBook/djbFrame", { | ||
| 139 | formData: param | ||
| 140 | }) | ||
| 141 | } | ||
| 141 | } | 142 | } |
| 142 | } | 143 | } |
| 143 | } | ||
| 144 | </script> | 144 | </script> |
| 145 | <style scoped lang="scss"> | 145 | <style scoped lang="scss"> |
| 146 | @import "~@/styles/mixin.scss"; | 146 | @import "~@/styles/mixin.scss"; |
| 147 | @import "~@/styles/public.scss"; | 147 | @import "~@/styles/public.scss"; |
| 148 | </style> | 148 | </style> | ... | ... |
| ... | @@ -27,7 +27,7 @@ | ... | @@ -27,7 +27,7 @@ |
| 27 | </div> | 27 | </div> |
| 28 | <!-- 表格 --> | 28 | <!-- 表格 --> |
| 29 | <div class="from-clues-content loadingtext"> | 29 | <div class="from-clues-content loadingtext"> |
| 30 | <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" | 30 | <lb-table ref="table" @row-dblclick="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" |
| 31 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" | 31 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" |
| 32 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" | 32 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" |
| 33 | :data="tableData.data"> | 33 | :data="tableData.data"> |
| ... | @@ -40,85 +40,85 @@ | ... | @@ -40,85 +40,85 @@ |
| 40 | </div> | 40 | </div> |
| 41 | </template> | 41 | </template> |
| 42 | <script> | 42 | <script> |
| 43 | //首次登记 | 43 | //首次登记 |
| 44 | import store from '@/store/index.js' | 44 | import store from '@/store/index.js' |
| 45 | import { datas, sendThis } from "../javascript/selectQjzdjbxx.js"; | 45 | import { datas, sendThis } from "../javascript/selectQjzdjbxx.js"; |
| 46 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; | 46 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; |
| 47 | import table from "@/utils/mixin/table"; | 47 | import table from "@/utils/mixin/table"; |
| 48 | import jump from "./mixin/jump"; | 48 | import jump from "./mixin/jump"; |
| 49 | import { startBusinessFlow, selectZdjbxx } from "@/api/ywbl.js"; | 49 | import { startBusinessFlow, selectZdjbxx } from "@/api/ywbl.js"; |
| 50 | export default { | 50 | export default { |
| 51 | mixins: [table, jump], | 51 | mixins: [table, jump], |
| 52 | props: { | 52 | props: { |
| 53 | isJump: { type: Boolean, default: false }, | 53 | isJump: { type: Boolean, default: false }, |
| 54 | sqywInfo: { type: Object, default: () => { } }, | 54 | sqywInfo: { type: Object, default: () => { } }, |
| 55 | }, | 55 | }, |
| 56 | data () { | 56 | data () { |
| 57 | return { | 57 | return { |
| 58 | queryForm: defaultParameters.defaultParameters(), | 58 | queryForm: defaultParameters.defaultParameters(), |
| 59 | tableData: { | 59 | tableData: { |
| 60 | total: 0, | 60 | total: 0, |
| 61 | columns: datas.columns(), | 61 | columns: datas.columns(), |
| 62 | data: [], | 62 | data: [], |
| 63 | }, | ||
| 64 | bdcdysz: [], | ||
| 65 | bsmSqyw: | ||
| 66 | this.sqywInfo.nodetype === "djlx" | ||
| 67 | ? this.sqywInfo.bsmSqyw | ||
| 68 | : this.sqywInfo.parentid, | ||
| 69 | }; | ||
| 70 | }, | ||
| 71 | mounted () { | ||
| 72 | sendThis(this); | ||
| 73 | }, | ||
| 74 | methods: { | ||
| 75 | queryClick () { | ||
| 76 | this.$startLoading(); | ||
| 77 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | ||
| 78 | selectZdjbxx({ ...this.queryForm, ...this.pageData }).then((res) => { | ||
| 79 | this.$endLoading(); | ||
| 80 | if (res.code === 200) { | ||
| 81 | let { total, records } = res.result; | ||
| 82 | this.tableData.total = total; | ||
| 83 | this.tableData.data = records; | ||
| 84 | } | ||
| 85 | }); | ||
| 63 | }, | 86 | }, |
| 64 | bdcdysz: [], | 87 | submitForm () { |
| 65 | bsmSqyw: | 88 | if (this.bdcdysz.length == 0) { |
| 66 | this.sqywInfo.nodetype === "djlx" | 89 | this.$alert("请至少选择一条数据"); |
| 67 | ? this.sqywInfo.bsmSqyw | 90 | return; |
| 68 | : this.sqywInfo.parentid, | ||
| 69 | }; | ||
| 70 | }, | ||
| 71 | mounted () { | ||
| 72 | sendThis(this); | ||
| 73 | }, | ||
| 74 | methods: { | ||
| 75 | queryClick () { | ||
| 76 | this.$startLoading(); | ||
| 77 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | ||
| 78 | selectZdjbxx({ ...this.queryForm, ...this.pageData }).then((res) => { | ||
| 79 | this.$endLoading(); | ||
| 80 | if (res.code === 200) { | ||
| 81 | let { total, records } = res.result; | ||
| 82 | this.tableData.total = total; | ||
| 83 | this.tableData.data = records; | ||
| 84 | } | 91 | } |
| 85 | }); | 92 | startBusinessFlow({ |
| 86 | }, | 93 | bsmSqyw: this.bsmSqyw, |
| 87 | submitForm () { | 94 | bdcdysz: this.bdcdysz, |
| 88 | if (this.bdcdysz.length == 0) { | 95 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", |
| 89 | this.$alert("请至少选择一条数据"); | 96 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", |
| 90 | return; | 97 | }).then((res) => { |
| 91 | } | 98 | if (res.code == 200) { |
| 92 | startBusinessFlow({ | 99 | this.$message({ |
| 93 | bsmSqyw: this.bsmSqyw, | 100 | showClose: true, |
| 94 | bdcdysz: this.bdcdysz, | 101 | message: "发起申请成功", |
| 95 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", | 102 | type: "success", |
| 96 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", | 103 | }); |
| 97 | }).then((res) => { | 104 | if (!this.isJump) { |
| 98 | if (res.code == 200) { | 105 | this.jump(res.result, this.djywbm); |
| 99 | this.$message({ | 106 | } else { |
| 100 | showClose: true, | 107 | store.dispatch('user/refreshPage', true); |
| 101 | message: "发起申请成功", | 108 | } |
| 102 | type: "success", | ||
| 103 | }); | ||
| 104 | if (!this.isJump) { | ||
| 105 | this.jump(res.result, this.djywbm); | ||
| 106 | } else { | 109 | } else { |
| 107 | store.dispatch('user/refreshPage', true); | 110 | this.$alert(res.message); |
| 108 | } | 111 | } |
| 109 | } else { | 112 | }); |
| 110 | this.$alert(res.message); | 113 | }, |
| 111 | } | 114 | handleSelectionChange (val) { |
| 112 | }); | 115 | this.bdcdysz = val; |
| 113 | }, | 116 | }, |
| 114 | handleSelectionChange (val) { | ||
| 115 | this.bdcdysz = val; | ||
| 116 | }, | 117 | }, |
| 117 | }, | 118 | }; |
| 118 | }; | ||
| 119 | </script> | 119 | </script> |
| 120 | <style scoped lang="scss"> | 120 | <style scoped lang="scss"> |
| 121 | @import "~@/styles/mixin.scss"; | 121 | @import "~@/styles/mixin.scss"; |
| 122 | @import "~@/styles/public.scss"; | 122 | @import "~@/styles/public.scss"; |
| 123 | </style> | 123 | </style> |
| 124 | 124 | ... | ... |
| ... | @@ -34,7 +34,7 @@ | ... | @@ -34,7 +34,7 @@ |
| 34 | </div> | 34 | </div> |
| 35 | <!-- 表格 --> | 35 | <!-- 表格 --> |
| 36 | <div class="from-clues-content loadingtext"> | 36 | <div class="from-clues-content loadingtext"> |
| 37 | <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" | 37 | <lb-table ref="table" @row-dblclick="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" |
| 38 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" | 38 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" |
| 39 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" | 39 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" |
| 40 | :data="tableData.data"> | 40 | :data="tableData.data"> |
| ... | @@ -47,83 +47,83 @@ | ... | @@ -47,83 +47,83 @@ |
| 47 | </div> | 47 | </div> |
| 48 | </template> | 48 | </template> |
| 49 | <script> | 49 | <script> |
| 50 | import store from '@/store/index.js' | 50 | import store from '@/store/index.js' |
| 51 | import { datas, sendThis } from "../javascript/selectYgdj100.js"; | 51 | import { datas, sendThis } from "../javascript/selectYgdj100.js"; |
| 52 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; | 52 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; |
| 53 | import table from "@/utils/mixin/table"; | 53 | import table from "@/utils/mixin/table"; |
| 54 | import jump from "./mixin/jump"; | 54 | import jump from "./mixin/jump"; |
| 55 | import { selectYgdj100, startBusinessFlow } from "@/api/ywbl.js"; | 55 | import { selectYgdj100, startBusinessFlow } from "@/api/ywbl.js"; |
| 56 | export default { | 56 | export default { |
| 57 | mixins: [table, jump], | 57 | mixins: [table, jump], |
| 58 | props: { | 58 | props: { |
| 59 | isJump: { type: Boolean, default: false }, | 59 | isJump: { type: Boolean, default: false }, |
| 60 | sqywInfo: { type: Object, default: () => { } }, | 60 | sqywInfo: { type: Object, default: () => { } }, |
| 61 | }, | 61 | }, |
| 62 | data () { | 62 | data () { |
| 63 | return { | 63 | return { |
| 64 | queryForm: defaultParameters.defaultParameters(), | 64 | queryForm: defaultParameters.defaultParameters(), |
| 65 | tableData: { | 65 | tableData: { |
| 66 | total: 0, | 66 | total: 0, |
| 67 | columns: datas.columns(), | 67 | columns: datas.columns(), |
| 68 | data: [], | 68 | data: [], |
| 69 | }, | ||
| 70 | bdcdysz: [], | ||
| 71 | }; | ||
| 72 | }, | ||
| 73 | mounted () { | ||
| 74 | sendThis(this); | ||
| 75 | }, | ||
| 76 | methods: { | ||
| 77 | queryClick () { | ||
| 78 | this.$startLoading(); | ||
| 79 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | ||
| 80 | selectYgdj100({ ...this.queryForm, ...this.pageData }).then((res) => { | ||
| 81 | this.$endLoading(); | ||
| 82 | if (res.code === 200) { | ||
| 83 | let { total, records } = res.result; | ||
| 84 | this.tableData.total = total; | ||
| 85 | this.tableData.data = records; | ||
| 86 | } | ||
| 87 | }); | ||
| 69 | }, | 88 | }, |
| 70 | bdcdysz: [], | 89 | submitForm () { |
| 71 | }; | 90 | if (this.bdcdysz.length == 0) { |
| 72 | }, | 91 | this.$message.error("请至少选择一条数据"); |
| 73 | mounted () { | 92 | return; |
| 74 | sendThis(this); | ||
| 75 | }, | ||
| 76 | methods: { | ||
| 77 | queryClick () { | ||
| 78 | this.$startLoading(); | ||
| 79 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | ||
| 80 | selectYgdj100({ ...this.queryForm, ...this.pageData }).then((res) => { | ||
| 81 | this.$endLoading(); | ||
| 82 | if (res.code === 200) { | ||
| 83 | let { total, records } = res.result; | ||
| 84 | this.tableData.total = total; | ||
| 85 | this.tableData.data = records; | ||
| 86 | } | 93 | } |
| 87 | }); | 94 | startBusinessFlow({ |
| 88 | }, | 95 | bsmSqyw: this.sqywInfo.bsmSqyw, |
| 89 | submitForm () { | 96 | bdcdysz: this.bdcdysz, |
| 90 | if (this.bdcdysz.length == 0) { | 97 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", |
| 91 | this.$message.error("请至少选择一条数据"); | 98 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", |
| 92 | return; | 99 | }).then((res) => { |
| 93 | } | 100 | if (res.code == 200) { |
| 94 | startBusinessFlow({ | 101 | this.$message({ |
| 95 | bsmSqyw: this.sqywInfo.bsmSqyw, | 102 | showClose: true, |
| 96 | bdcdysz: this.bdcdysz, | 103 | message: '发起申请成功', |
| 97 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", | 104 | type: 'success' |
| 98 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", | 105 | }) |
| 99 | }).then((res) => { | 106 | if (!this.isJump) { |
| 100 | if (res.code == 200) { | 107 | this.jump(res.result, this.sqywInfo.djywbm) |
| 101 | this.$message({ | 108 | } else { |
| 102 | showClose: true, | 109 | store.dispatch('user/refreshPage', true); |
| 103 | message: '发起申请成功', | 110 | } |
| 104 | type: 'success' | ||
| 105 | }) | ||
| 106 | if (!this.isJump) { | ||
| 107 | this.jump(res.result, this.sqywInfo.djywbm) | ||
| 108 | } else { | 111 | } else { |
| 109 | store.dispatch('user/refreshPage', true); | 112 | this.$message.error(res.message); |
| 110 | } | 113 | } |
| 111 | } else { | 114 | }); |
| 112 | this.$message.error(res.message); | 115 | }, |
| 113 | } | 116 | handleSelectionChange (val) { |
| 114 | }); | 117 | val.forEach((item, index) => { |
| 115 | }, | 118 | item.bsmSsql = item.bsmQlxx; |
| 116 | handleSelectionChange (val) { | 119 | item.ybdcqzsh = item.bdcqzh; |
| 117 | val.forEach((item, index) => { | 120 | }); |
| 118 | item.bsmSsql = item.bsmQlxx; | 121 | this.bdcdysz = val; |
| 119 | item.ybdcqzsh = item.bdcqzh; | 122 | }, |
| 120 | }); | ||
| 121 | this.bdcdysz = val; | ||
| 122 | }, | 123 | }, |
| 123 | }, | 124 | }; |
| 124 | }; | ||
| 125 | </script> | 125 | </script> |
| 126 | <style scoped lang="scss"> | 126 | <style scoped lang="scss"> |
| 127 | @import "~@/styles/mixin.scss"; | 127 | @import "~@/styles/mixin.scss"; |
| 128 | @import "~@/styles/public.scss"; | 128 | @import "~@/styles/public.scss"; |
| 129 | </style> | 129 | </style> | ... | ... |
| ... | @@ -34,7 +34,7 @@ | ... | @@ -34,7 +34,7 @@ |
| 34 | </div> | 34 | </div> |
| 35 | <!-- 表格 --> | 35 | <!-- 表格 --> |
| 36 | <div class="from-clues-content loadingtext"> | 36 | <div class="from-clues-content loadingtext"> |
| 37 | <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" | 37 | <lb-table ref="table" @row-dblclick="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" |
| 38 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" | 38 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" |
| 39 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" | 39 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" |
| 40 | :data="tableData.data"> | 40 | :data="tableData.data"> |
| ... | @@ -47,83 +47,83 @@ | ... | @@ -47,83 +47,83 @@ |
| 47 | </div> | 47 | </div> |
| 48 | </template> | 48 | </template> |
| 49 | <script> | 49 | <script> |
| 50 | import store from '@/store/index.js' | 50 | import store from '@/store/index.js' |
| 51 | import { datas, sendThis } from "../javascript/selectYgdj200.js"; | 51 | import { datas, sendThis } from "../javascript/selectYgdj200.js"; |
| 52 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; | 52 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; |
| 53 | import table from "@/utils/mixin/table"; | 53 | import table from "@/utils/mixin/table"; |
| 54 | import jump from "./mixin/jump"; | 54 | import jump from "./mixin/jump"; |
| 55 | import { selectYgdj200, startBusinessFlow } from "@/api/ywbl.js"; | 55 | import { selectYgdj200, startBusinessFlow } from "@/api/ywbl.js"; |
| 56 | export default { | 56 | export default { |
| 57 | mixins: [table, jump], | 57 | mixins: [table, jump], |
| 58 | props: { | 58 | props: { |
| 59 | isJump: { type: Boolean, default: false }, | 59 | isJump: { type: Boolean, default: false }, |
| 60 | sqywInfo: { type: Object, default: () => { } }, | 60 | sqywInfo: { type: Object, default: () => { } }, |
| 61 | }, | 61 | }, |
| 62 | data () { | 62 | data () { |
| 63 | return { | 63 | return { |
| 64 | queryForm: defaultParameters.defaultParameters(), | 64 | queryForm: defaultParameters.defaultParameters(), |
| 65 | tableData: { | 65 | tableData: { |
| 66 | total: 0, | 66 | total: 0, |
| 67 | columns: datas.columns(), | 67 | columns: datas.columns(), |
| 68 | data: [], | 68 | data: [], |
| 69 | }, | ||
| 70 | bdcdysz: [], | ||
| 71 | }; | ||
| 72 | }, | ||
| 73 | mounted () { | ||
| 74 | sendThis(this); | ||
| 75 | }, | ||
| 76 | methods: { | ||
| 77 | queryClick () { | ||
| 78 | this.$startLoading(); | ||
| 79 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | ||
| 80 | selectYgdj200({ ...this.queryForm, ...this.pageData }).then((res) => { | ||
| 81 | this.$endLoading(); | ||
| 82 | if (res.code === 200) { | ||
| 83 | let { total, records } = res.result; | ||
| 84 | this.tableData.total = total; | ||
| 85 | this.tableData.data = records; | ||
| 86 | } | ||
| 87 | }); | ||
| 69 | }, | 88 | }, |
| 70 | bdcdysz: [], | 89 | submitForm () { |
| 71 | }; | 90 | if (this.bdcdysz.length == 0) { |
| 72 | }, | 91 | this.$message.error("请至少选择一条数据"); |
| 73 | mounted () { | 92 | return; |
| 74 | sendThis(this); | ||
| 75 | }, | ||
| 76 | methods: { | ||
| 77 | queryClick () { | ||
| 78 | this.$startLoading(); | ||
| 79 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | ||
| 80 | selectYgdj200({ ...this.queryForm, ...this.pageData }).then((res) => { | ||
| 81 | this.$endLoading(); | ||
| 82 | if (res.code === 200) { | ||
| 83 | let { total, records } = res.result; | ||
| 84 | this.tableData.total = total; | ||
| 85 | this.tableData.data = records; | ||
| 86 | } | 93 | } |
| 87 | }); | 94 | startBusinessFlow({ |
| 88 | }, | 95 | bsmSqyw: this.sqywInfo.bsmSqyw, |
| 89 | submitForm () { | 96 | bdcdysz: this.bdcdysz, |
| 90 | if (this.bdcdysz.length == 0) { | 97 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", |
| 91 | this.$message.error("请至少选择一条数据"); | 98 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", |
| 92 | return; | 99 | }).then((res) => { |
| 93 | } | 100 | if (res.code == 200) { |
| 94 | startBusinessFlow({ | 101 | this.$message({ |
| 95 | bsmSqyw: this.sqywInfo.bsmSqyw, | 102 | showClose: true, |
| 96 | bdcdysz: this.bdcdysz, | 103 | message: '发起申请成功', |
| 97 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", | 104 | type: 'success' |
| 98 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", | 105 | }) |
| 99 | }).then((res) => { | 106 | if (!this.isJump) { |
| 100 | if (res.code == 200) { | 107 | this.jump(res.result, this.sqywInfo.djywbm) |
| 101 | this.$message({ | 108 | } else { |
| 102 | showClose: true, | 109 | store.dispatch('user/refreshPage', true); |
| 103 | message: '发起申请成功', | 110 | } |
| 104 | type: 'success' | ||
| 105 | }) | ||
| 106 | if (!this.isJump) { | ||
| 107 | this.jump(res.result, this.sqywInfo.djywbm) | ||
| 108 | } else { | 111 | } else { |
| 109 | store.dispatch('user/refreshPage', true); | 112 | this.$message.error(res.message); |
| 110 | } | 113 | } |
| 111 | } else { | 114 | }); |
| 112 | this.$message.error(res.message); | 115 | }, |
| 113 | } | 116 | handleSelectionChange (val) { |
| 114 | }); | 117 | val.forEach((item, index) => { |
| 115 | }, | 118 | item.bsmSsql = item.bsmQlxx; |
| 116 | handleSelectionChange (val) { | 119 | item.ybdcqzsh = item.bdcqzh; |
| 117 | val.forEach((item, index) => { | 120 | }); |
| 118 | item.bsmSsql = item.bsmQlxx; | 121 | this.bdcdysz = val; |
| 119 | item.ybdcqzsh = item.bdcqzh; | 122 | }, |
| 120 | }); | ||
| 121 | this.bdcdysz = val; | ||
| 122 | }, | 123 | }, |
| 123 | }, | 124 | }; |
| 124 | }; | ||
| 125 | </script> | 125 | </script> |
| 126 | <style scoped lang="scss"> | 126 | <style scoped lang="scss"> |
| 127 | @import "~@/styles/mixin.scss"; | 127 | @import "~@/styles/mixin.scss"; |
| 128 | @import "~@/styles/public.scss"; | 128 | @import "~@/styles/public.scss"; |
| 129 | </style> | 129 | </style> | ... | ... |
| ... | @@ -34,7 +34,7 @@ | ... | @@ -34,7 +34,7 @@ |
| 34 | </div> | 34 | </div> |
| 35 | <!-- 表格 --> | 35 | <!-- 表格 --> |
| 36 | <div class="from-clues-content loadingtext"> | 36 | <div class="from-clues-content loadingtext"> |
| 37 | <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" | 37 | <lb-table ref="table" @row-dblclick="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" |
| 38 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" | 38 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" |
| 39 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" | 39 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" |
| 40 | :data="tableData.data"> | 40 | :data="tableData.data"> |
| ... | @@ -47,83 +47,83 @@ | ... | @@ -47,83 +47,83 @@ |
| 47 | </div> | 47 | </div> |
| 48 | </template> | 48 | </template> |
| 49 | <script> | 49 | <script> |
| 50 | import store from '@/store/index.js' | 50 | import store from '@/store/index.js' |
| 51 | import { datas, sendThis } from "../javascript/selectYgdy.js"; | 51 | import { datas, sendThis } from "../javascript/selectYgdy.js"; |
| 52 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; | 52 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; |
| 53 | import table from "@/utils/mixin/table"; | 53 | import table from "@/utils/mixin/table"; |
| 54 | import jump from "./mixin/jump"; | 54 | import jump from "./mixin/jump"; |
| 55 | import { selectYgdy, startBusinessFlow } from "@/api/ywbl.js"; | 55 | import { selectYgdy, startBusinessFlow } from "@/api/ywbl.js"; |
| 56 | export default { | 56 | export default { |
| 57 | mixins: [table, jump], | 57 | mixins: [table, jump], |
| 58 | props: { | 58 | props: { |
| 59 | isJump: { type: Boolean, default: false }, | 59 | isJump: { type: Boolean, default: false }, |
| 60 | sqywInfo: { type: Object, default: () => { } }, | 60 | sqywInfo: { type: Object, default: () => { } }, |
| 61 | }, | 61 | }, |
| 62 | data () { | 62 | data () { |
| 63 | return { | 63 | return { |
| 64 | queryForm: defaultParameters.defaultParameters(), | 64 | queryForm: defaultParameters.defaultParameters(), |
| 65 | tableData: { | 65 | tableData: { |
| 66 | total: 0, | 66 | total: 0, |
| 67 | columns: datas.columns(), | 67 | columns: datas.columns(), |
| 68 | data: [], | 68 | data: [], |
| 69 | }, | ||
| 70 | bdcdysz: [], | ||
| 71 | }; | ||
| 72 | }, | ||
| 73 | mounted () { | ||
| 74 | sendThis(this); | ||
| 75 | }, | ||
| 76 | methods: { | ||
| 77 | queryClick () { | ||
| 78 | this.$startLoading(); | ||
| 79 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | ||
| 80 | selectYgdy({ ...this.queryForm, ...this.pageData }).then((res) => { | ||
| 81 | this.$endLoading(); | ||
| 82 | if (res.code === 200) { | ||
| 83 | let { total, records } = res.result; | ||
| 84 | this.tableData.total = total; | ||
| 85 | this.tableData.data = records; | ||
| 86 | } | ||
| 87 | }); | ||
| 69 | }, | 88 | }, |
| 70 | bdcdysz: [], | 89 | submitForm () { |
| 71 | }; | 90 | if (this.bdcdysz.length == 0) { |
| 72 | }, | 91 | this.$message.error("请至少选择一条数据"); |
| 73 | mounted () { | 92 | return; |
| 74 | sendThis(this); | ||
| 75 | }, | ||
| 76 | methods: { | ||
| 77 | queryClick () { | ||
| 78 | this.$startLoading(); | ||
| 79 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | ||
| 80 | selectYgdy({ ...this.queryForm, ...this.pageData }).then((res) => { | ||
| 81 | this.$endLoading(); | ||
| 82 | if (res.code === 200) { | ||
| 83 | let { total, records } = res.result; | ||
| 84 | this.tableData.total = total; | ||
| 85 | this.tableData.data = records; | ||
| 86 | } | 93 | } |
| 87 | }); | 94 | startBusinessFlow({ |
| 88 | }, | 95 | bsmSqyw: this.sqywInfo.bsmSqyw, |
| 89 | submitForm () { | 96 | bdcdysz: this.bdcdysz, |
| 90 | if (this.bdcdysz.length == 0) { | 97 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", |
| 91 | this.$message.error("请至少选择一条数据"); | 98 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", |
| 92 | return; | 99 | }).then((res) => { |
| 93 | } | 100 | if (res.code == 200) { |
| 94 | startBusinessFlow({ | 101 | this.$message({ |
| 95 | bsmSqyw: this.sqywInfo.bsmSqyw, | 102 | showClose: true, |
| 96 | bdcdysz: this.bdcdysz, | 103 | message: '发起申请成功', |
| 97 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", | 104 | type: 'success' |
| 98 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", | 105 | }) |
| 99 | }).then((res) => { | 106 | if (!this.isJump) { |
| 100 | if (res.code == 200) { | 107 | this.jump(res.result, this.sqywInfo.djywbm) |
| 101 | this.$message({ | 108 | } else { |
| 102 | showClose: true, | 109 | store.dispatch('user/refreshPage', true); |
| 103 | message: '发起申请成功', | 110 | } |
| 104 | type: 'success' | ||
| 105 | }) | ||
| 106 | if (!this.isJump) { | ||
| 107 | this.jump(res.result, this.sqywInfo.djywbm) | ||
| 108 | } else { | 111 | } else { |
| 109 | store.dispatch('user/refreshPage', true); | 112 | this.$message.error(res.message); |
| 110 | } | 113 | } |
| 111 | } else { | 114 | }); |
| 112 | this.$message.error(res.message); | 115 | }, |
| 113 | } | 116 | handleSelectionChange (val) { |
| 114 | }); | 117 | val.forEach((item, index) => { |
| 115 | }, | 118 | item.bsmSsql = item.bsmQlxx; |
| 116 | handleSelectionChange (val) { | 119 | item.ybdcqzsh = item.bdcqzh; |
| 117 | val.forEach((item, index) => { | 120 | }); |
| 118 | item.bsmSsql = item.bsmQlxx; | 121 | this.bdcdysz = val; |
| 119 | item.ybdcqzsh = item.bdcqzh; | 122 | }, |
| 120 | }); | ||
| 121 | this.bdcdysz = val; | ||
| 122 | }, | 123 | }, |
| 123 | }, | 124 | }; |
| 124 | }; | ||
| 125 | </script> | 125 | </script> |
| 126 | <style scoped lang="scss"> | 126 | <style scoped lang="scss"> |
| 127 | @import "~@/styles/mixin.scss"; | 127 | @import "~@/styles/mixin.scss"; |
| 128 | @import "~@/styles/public.scss"; | 128 | @import "~@/styles/public.scss"; |
| 129 | </style> | 129 | </style> | ... | ... |
-
Please register or sign in to post a comment