--no commit message
Showing
31 changed files
with
1371 additions
and
1209 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 | ... | ... |
This diff is collapsed.
Click to expand it.
| 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 | ... | ... |
This diff is collapsed.
Click to expand it.
| ... | @@ -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> | ... | ... |
This diff is collapsed.
Click to expand it.
| ... | @@ -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