style:审批意见模块功能的完成
Showing
20 changed files
with
1263 additions
and
1227 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 | /* | ||
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 | } |
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 | ... | ... |
... | @@ -18,7 +18,7 @@ | ... | @@ -18,7 +18,7 @@ |
18 | </el-col> | 18 | </el-col> |
19 | </el-row> | 19 | </el-row> |
20 | 20 | ||
21 | <lb-table border :column="tableData.columns" :data="tableData.data" :pagination="false" :calcHeight="300"> | 21 | <lb-table :column="tableData.columns" :data="tableData.data" :pagination="false" :calcHeight="300"> |
22 | </lb-table> | 22 | </lb-table> |
23 | <el-row> | 23 | <el-row> |
24 | <el-col :span="6"> | 24 | <el-col :span="6"> |
... | @@ -57,7 +57,7 @@ | ... | @@ -57,7 +57,7 @@ |
57 | import store from '@/store/index.js' | 57 | import store from '@/store/index.js' |
58 | import table from "@/utils/mixin/table"; | 58 | import table from "@/utils/mixin/table"; |
59 | import { getUnclaimedBdcqz, issueCertificate } from "@/api/bdcqz.js"; | 59 | import { getUnclaimedBdcqz, issueCertificate } from "@/api/bdcqz.js"; |
60 | import { datas } from "../javascript/fzxxdata"; | 60 | import { datas } from "../../javascript/fzxxdata"; |
61 | import { log } from 'bpmn-js-token-simulation'; | 61 | import { log } from 'bpmn-js-token-simulation'; |
62 | export default { | 62 | export default { |
63 | props: { | 63 | props: { | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-05-04 10:12:07 | 4 | * @LastEditTime: 2023-05-04 10:29:45 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div class="from-clues"> | 7 | <div class="from-clues"> |
... | @@ -71,7 +71,7 @@ | ... | @@ -71,7 +71,7 @@ |
71 | }) | 71 | }) |
72 | }, | 72 | }, |
73 | zslqClick () { | 73 | zslqClick () { |
74 | this.$popupDialog("不动产权证领取", "workflow/components/zslq", {}, '80%', true); | 74 | this.$popupDialog("不动产权证领取", "workflow/components/dialog/zslq", {}, '80%', true); |
75 | } | 75 | } |
76 | } | 76 | } |
77 | } | 77 | } | ... | ... |
... | @@ -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 { | ... | ... |
... | @@ -33,7 +33,7 @@ | ... | @@ -33,7 +33,7 @@ |
33 | </div> | 33 | </div> |
34 | <!-- 表格 --> | 34 | <!-- 表格 --> |
35 | <div class="from-clues-content loadingtext"> | 35 | <div class="from-clues-content loadingtext"> |
36 | <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" | 36 | <lb-table ref="table" @row-dblclick="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" |
37 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" | 37 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" |
38 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" | 38 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" |
39 | :data="tableData.data"> | 39 | :data="tableData.data"> |
... | @@ -46,103 +46,103 @@ | ... | @@ -46,103 +46,103 @@ |
46 | </div> | 46 | </div> |
47 | </template> | 47 | </template> |
48 | <script> | 48 | <script> |
49 | //查封登记 | 49 | //查封登记 |
50 | import store from '@/store/index.js' | 50 | import store from '@/store/index.js' |
51 | import { datas, sendThis } from "../javascript/cfdj.js"; | 51 | import { datas, sendThis } from "../javascript/cfdj.js"; |
52 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; | 52 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; |
53 | import table from "@/utils/mixin/table"; | 53 | import table from "@/utils/mixin/table"; |
54 | import jump from "../components/mixin/jump"; | 54 | import jump from "../components/mixin/jump"; |
55 | import { selectCfdj, startBusinessFlow, choiceBdcdy } from "@/api/ywbl.js"; | 55 | import { selectCfdj, startBusinessFlow, choiceBdcdy } from "@/api/ywbl.js"; |
56 | export default { | 56 | export default { |
57 | props: { | 57 | props: { |
58 | isJump: { type: Boolean, default: false }, | 58 | isJump: { type: Boolean, default: false }, |
59 | sqywInfo: { type: Object, default: () => { } }, | 59 | sqywInfo: { type: Object, default: () => { } }, |
60 | }, | ||
61 | mixins: [table, jump], | ||
62 | data () { | ||
63 | return { | ||
64 | queryForm: defaultParameters.defaultParameters(), | ||
65 | tableData: { | ||
66 | total: 0, | ||
67 | columns: datas.columns(), | ||
68 | data: [], | ||
69 | }, | ||
70 | bdcdysz: [], | ||
71 | bsmSqyw: | ||
72 | this.sqywInfo.nodetype === "djlx" | ||
73 | ? this.sqywInfo.bsmSqyw | ||
74 | : this.sqywInfo.parentid, | ||
75 | }; | ||
76 | }, | ||
77 | mounted () { | ||
78 | sendThis(this); | ||
79 | }, | ||
80 | methods: { | ||
81 | queryClick () { | ||
82 | this.$startLoading(); | ||
83 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | ||
84 | selectCfdj({ ...this.queryForm, ...this.pageData }) | ||
85 | .then((res) => { | ||
86 | this.$endLoading(); | ||
87 | if (res.code === 200) { | ||
88 | let { total, records } = res.result; | ||
89 | this.tableData.total = total; | ||
90 | this.tableData.data = records; | ||
91 | } | ||
92 | }) | ||
93 | }, | 60 | }, |
94 | submitForm () { | 61 | mixins: [table, jump], |
95 | if (this.bdcdysz.length == 0) { | 62 | data () { |
96 | this.$message.error("请至少选择一条数据"); | 63 | return { |
97 | return; | 64 | queryForm: defaultParameters.defaultParameters(), |
98 | } | 65 | tableData: { |
99 | if (!this.isJump) { | 66 | total: 0, |
100 | startBusinessFlow({ | 67 | columns: datas.columns(), |
101 | bsmSqyw: this.bsmSqyw, | 68 | data: [], |
102 | bdcdysz: this.bdcdysz, | 69 | }, |
103 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", | 70 | bdcdysz: [], |
104 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", | 71 | bsmSqyw: |
105 | }).then((res) => { | 72 | this.sqywInfo.nodetype === "djlx" |
106 | if (res.code == 200) { | 73 | ? this.sqywInfo.bsmSqyw |
107 | this.$message({ | 74 | : this.sqywInfo.parentid, |
108 | showClose: true, | 75 | }; |
109 | message: '发起申请成功', | 76 | }, |
110 | type: 'success' | 77 | mounted () { |
111 | }) | 78 | sendThis(this); |
112 | this.jump(res.result, this.sqywInfo.djywbm) | 79 | }, |
113 | } else { | 80 | methods: { |
114 | this.$message.error(res.message) | 81 | queryClick () { |
115 | } | 82 | this.$startLoading(); |
116 | }) | 83 | this.queryForm.sqywbm = this.sqywInfo.djywbm; |
117 | } else { | 84 | selectCfdj({ ...this.queryForm, ...this.pageData }) |
118 | choiceBdcdy({ | 85 | .then((res) => { |
119 | bsmSlsq: this.$route.query.bsmSlsq, | 86 | this.$endLoading(); |
120 | bdcdysz: this.bdcdysz | 87 | if (res.code === 200) { |
121 | }).then(res => { | 88 | let { total, records } = res.result; |
122 | if (res.code == 200) { | 89 | this.tableData.total = total; |
123 | this.$message({ | 90 | this.tableData.data = records; |
124 | showClose: true, | 91 | } |
125 | message: '发起申请成功', | 92 | }) |
126 | type: 'success' | 93 | }, |
127 | }) | 94 | submitForm () { |
128 | store.dispatch('user/refreshPage', true); | 95 | if (this.bdcdysz.length == 0) { |
129 | } else { | 96 | this.$message.error("请至少选择一条数据"); |
130 | this.$message.error(res.message); | 97 | return; |
131 | } | 98 | } |
99 | if (!this.isJump) { | ||
100 | startBusinessFlow({ | ||
101 | bsmSqyw: this.bsmSqyw, | ||
102 | bdcdysz: this.bdcdysz, | ||
103 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", | ||
104 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", | ||
105 | }).then((res) => { | ||
106 | if (res.code == 200) { | ||
107 | this.$message({ | ||
108 | showClose: true, | ||
109 | message: '发起申请成功', | ||
110 | type: 'success' | ||
111 | }) | ||
112 | this.jump(res.result, this.sqywInfo.djywbm) | ||
113 | } else { | ||
114 | this.$message.error(res.message) | ||
115 | } | ||
116 | }) | ||
117 | } else { | ||
118 | choiceBdcdy({ | ||
119 | bsmSlsq: this.$route.query.bsmSlsq, | ||
120 | bdcdysz: this.bdcdysz | ||
121 | }).then(res => { | ||
122 | if (res.code == 200) { | ||
123 | this.$message({ | ||
124 | showClose: true, | ||
125 | message: '发起申请成功', | ||
126 | type: 'success' | ||
127 | }) | ||
128 | store.dispatch('user/refreshPage', true); | ||
129 | } else { | ||
130 | this.$message.error(res.message); | ||
131 | } | ||
132 | }) | ||
133 | } | ||
134 | }, | ||
135 | handleSelectionChange (val) { | ||
136 | val.forEach((item, index) => { | ||
137 | item.bsmSsql = item.bsmQlxx | ||
138 | item.ybdcqzsh = item.bdcqzh | ||
132 | }) | 139 | }) |
140 | this.bdcdysz = val | ||
133 | } | 141 | } |
134 | }, | 142 | }, |
135 | handleSelectionChange (val) { | 143 | }; |
136 | val.forEach((item, index) => { | ||
137 | item.bsmSsql = item.bsmQlxx | ||
138 | item.ybdcqzsh = item.bdcqzh | ||
139 | }) | ||
140 | this.bdcdysz = val | ||
141 | } | ||
142 | }, | ||
143 | }; | ||
144 | </script> | 144 | </script> |
145 | <style scoped lang="scss"> | 145 | <style scoped lang="scss"> |
146 | @import "~@/styles/mixin.scss"; | 146 | @import "~@/styles/mixin.scss"; |
147 | @import "~@/styles/public.scss"; | 147 | @import "~@/styles/public.scss"; |
148 | </style> | 148 | </style> | ... | ... |
... | @@ -42,7 +42,7 @@ | ... | @@ -42,7 +42,7 @@ |
42 | </div> | 42 | </div> |
43 | <!-- 表格 --> | 43 | <!-- 表格 --> |
44 | <div class="from-clues-content loadingtext"> | 44 | <div class="from-clues-content loadingtext"> |
45 | <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" | 45 | <lb-table ref="table" @row-dblclick="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" |
46 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" | 46 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" |
47 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" | 47 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" |
48 | :data="tableData.data"> | 48 | :data="tableData.data"> |
... | @@ -55,84 +55,84 @@ | ... | @@ -55,84 +55,84 @@ |
55 | </div> | 55 | </div> |
56 | </template> | 56 | </template> |
57 | <script> | 57 | <script> |
58 | import store from '@/store/index.js' | 58 | import store from '@/store/index.js' |
59 | import { datas, sendThis } from "../javascript/diyaq.js"; | 59 | import { datas, sendThis } from "../javascript/diyaq.js"; |
60 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; | 60 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; |
61 | import table from "@/utils/mixin/table"; | 61 | import table from "@/utils/mixin/table"; |
62 | import jump from "../components/mixin/jump"; | 62 | import jump from "../components/mixin/jump"; |
63 | import { selectDiyaq, startBusinessFlow } from "@/api/ywbl.js"; | 63 | import { selectDiyaq, startBusinessFlow } from "@/api/ywbl.js"; |
64 | export default { | 64 | export default { |
65 | mixins: [table, jump], | 65 | mixins: [table, jump], |
66 | props: { | 66 | props: { |
67 | isJump: { type: Boolean, default: false }, | 67 | isJump: { type: Boolean, default: false }, |
68 | sqywInfo: { type: Object, default: () => { } }, | 68 | sqywInfo: { type: Object, default: () => { } }, |
69 | }, | 69 | }, |
70 | data () { | 70 | data () { |
71 | return { | 71 | return { |
72 | queryForm: defaultParameters.defaultParameters(), | 72 | queryForm: defaultParameters.defaultParameters(), |
73 | qllxs: [], | 73 | qllxs: [], |
74 | tableData: { | 74 | tableData: { |
75 | total: 0, | 75 | total: 0, |
76 | columns: datas.columns(), | 76 | columns: datas.columns(), |
77 | data: [], | 77 | data: [], |
78 | }, | ||
79 | bdcdysz: [], | ||
80 | }; | ||
81 | }, | ||
82 | mounted () { | ||
83 | sendThis(this); | ||
84 | }, | ||
85 | methods: { | ||
86 | queryClick () { | ||
87 | this.$startLoading(); | ||
88 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | ||
89 | selectDiyaq({ ...this.queryForm, ...this.pageData }).then((res) => { | ||
90 | this.$endLoading(); | ||
91 | if (res.code === 200) { | ||
92 | let { total, records } = res.result; | ||
93 | this.tableData.total = total; | ||
94 | this.tableData.data = records; | ||
95 | } | ||
96 | }); | ||
78 | }, | 97 | }, |
79 | bdcdysz: [], | 98 | submitFormClick () { |
80 | }; | 99 | if (this.bdcdysz.length == 0) { |
81 | }, | 100 | this.$message.error("请至少选择一条数据"); |
82 | mounted () { | 101 | return; |
83 | sendThis(this); | ||
84 | }, | ||
85 | methods: { | ||
86 | queryClick () { | ||
87 | this.$startLoading(); | ||
88 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | ||
89 | selectDiyaq({ ...this.queryForm, ...this.pageData }).then((res) => { | ||
90 | this.$endLoading(); | ||
91 | if (res.code === 200) { | ||
92 | let { total, records } = res.result; | ||
93 | this.tableData.total = total; | ||
94 | this.tableData.data = records; | ||
95 | } | 102 | } |
96 | }); | 103 | startBusinessFlow({ |
97 | }, | 104 | bsmSqyw: this.sqywInfo.parentid, |
98 | submitFormClick () { | 105 | bdcdysz: this.bdcdysz, |
99 | if (this.bdcdysz.length == 0) { | 106 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", |
100 | this.$message.error("请至少选择一条数据"); | 107 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", |
101 | return; | 108 | }).then((res) => { |
102 | } | 109 | if (res.code == 200) { |
103 | startBusinessFlow({ | 110 | this.$message({ |
104 | bsmSqyw: this.sqywInfo.parentid, | 111 | showClose: true, |
105 | bdcdysz: this.bdcdysz, | 112 | message: "发起申请成功", |
106 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", | 113 | type: "success", |
107 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", | 114 | }); |
108 | }).then((res) => { | 115 | if (!this.isJump) { |
109 | if (res.code == 200) { | 116 | this.jump(res.result, this.sqywInfo.djywbm); |
110 | this.$message({ | 117 | } else { |
111 | showClose: true, | 118 | store.dispatch('user/refreshPage', true); |
112 | message: "发起申请成功", | 119 | } |
113 | type: "success", | ||
114 | }); | ||
115 | if (!this.isJump) { | ||
116 | this.jump(res.result, this.sqywInfo.djywbm); | ||
117 | } else { | 120 | } else { |
118 | store.dispatch('user/refreshPage', true); | 121 | this.$message.error(res.message); |
119 | } | 122 | } |
120 | } else { | 123 | }); |
121 | this.$message.error(res.message); | 124 | }, |
122 | } | 125 | handleSelectionChange (val) { |
123 | }); | 126 | val.forEach((item, index) => { |
124 | }, | 127 | item.bsmSsql = item.bsmQlxx; |
125 | handleSelectionChange (val) { | 128 | item.ybdcqzsh = item.bdcqzh; |
126 | val.forEach((item, index) => { | 129 | }); |
127 | item.bsmSsql = item.bsmQlxx; | 130 | this.bdcdysz = val; |
128 | item.ybdcqzsh = item.bdcqzh; | 131 | }, |
129 | }); | ||
130 | this.bdcdysz = val; | ||
131 | }, | 132 | }, |
132 | }, | 133 | }; |
133 | }; | ||
134 | </script> | 134 | </script> |
135 | <style scoped lang="scss"> | 135 | <style scoped lang="scss"> |
136 | @import "~@/styles/mixin.scss"; | 136 | @import "~@/styles/mixin.scss"; |
137 | @import "~@/styles/public.scss"; | 137 | @import "~@/styles/public.scss"; |
138 | </style> | 138 | </style> | ... | ... |
... | @@ -56,7 +56,7 @@ | ... | @@ -56,7 +56,7 @@ |
56 | </el-form> | 56 | </el-form> |
57 | </div> | 57 | </div> |
58 | <div class="from-clues-content"> | 58 | <div class="from-clues-content"> |
59 | <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :heightNum="400" | 59 | <lb-table ref="table" @row-dblclick="handleRowClick" :page-size="pageData.pageSize" :heightNum="400" |
60 | :current-page.sync="pageData.currentPage" :total="zrztableData.total" @size-change="handleSizeChange" | 60 | :current-page.sync="pageData.currentPage" :total="zrztableData.total" @size-change="handleSizeChange" |
61 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="zrztableData.columns" | 61 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="zrztableData.columns" |
62 | :data="zrztableData.data"> | 62 | :data="zrztableData.data"> |
... | @@ -107,7 +107,7 @@ | ... | @@ -107,7 +107,7 @@ |
107 | </el-form> | 107 | </el-form> |
108 | </div> | 108 | </div> |
109 | <div class="from-clues-content loadingtext"> | 109 | <div class="from-clues-content loadingtext"> |
110 | <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" | 110 | <lb-table ref="table" @row-dblclick="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" |
111 | :current-page.sync="pageData.currentPage" :total="dztableData.total" @size-change="handleSizeChange" | 111 | :current-page.sync="pageData.currentPage" :total="dztableData.total" @size-change="handleSizeChange" |
112 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="dztableData.columns" | 112 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="dztableData.columns" |
113 | :data="dztableData.data"> | 113 | :data="dztableData.data"> |
... | @@ -121,163 +121,163 @@ | ... | @@ -121,163 +121,163 @@ |
121 | </div> | 121 | </div> |
122 | </template> | 122 | </template> |
123 | <script> | 123 | <script> |
124 | import store from '@/store/index.js' | 124 | import store from '@/store/index.js' |
125 | //国有建设用地使用权/房屋使用权 | 125 | //国有建设用地使用权/房屋使用权 |
126 | import { datas, sendThis } from "../javascript/fwsyq.js"; | 126 | import { datas, sendThis } from "../javascript/fwsyq.js"; |
127 | // import { datasduo, sendThisduo } from "../javascript/fwsyqduo.js"; | 127 | // import { datasduo, sendThisduo } from "../javascript/fwsyqduo.js"; |
128 | import table from "@/utils/mixin/table"; | 128 | import table from "@/utils/mixin/table"; |
129 | import jump from "@/views/ywbl/ywsq/components/mixin/jump"; | 129 | import jump from "@/views/ywbl/ywsq/components/mixin/jump"; |
130 | import { selectScBdcdy, startBusinessFlow, choiceBdcdy, selectOtherH, selectZrz, selectDz } from "@/api/ywbl.js"; | 130 | import { selectScBdcdy, startBusinessFlow, choiceBdcdy, selectOtherH, selectZrz, selectDz } from "@/api/ywbl.js"; |
131 | export default { | 131 | export default { |
132 | mixins: [table, jump], | 132 | mixins: [table, jump], |
133 | props: { | 133 | props: { |
134 | isJump: { type: Boolean, default: false }, | 134 | isJump: { type: Boolean, default: false }, |
135 | sqywInfo: { type: Object, default: () => { } }, | 135 | sqywInfo: { type: Object, default: () => { } }, |
136 | }, | 136 | }, |
137 | data () { | 137 | data () { |
138 | return { | 138 | return { |
139 | activeName: 'zrz', | 139 | activeName: 'zrz', |
140 | queryzrzForm: { | 140 | queryzrzForm: { |
141 | qllx: '', | 141 | qllx: '', |
142 | bdcdyh: '', | 142 | bdcdyh: '', |
143 | ywh: '', | 143 | ywh: '', |
144 | bdcqzh: '' | 144 | bdcqzh: '' |
145 | }, | 145 | }, |
146 | querydzForm: { | 146 | querydzForm: { |
147 | qllx: '', | 147 | qllx: '', |
148 | bdcdyh: '', | 148 | bdcdyh: '', |
149 | ywh: '', | 149 | ywh: '', |
150 | bdcqzh: '' | 150 | bdcqzh: '' |
151 | }, | 151 | }, |
152 | zrztableData: { | 152 | zrztableData: { |
153 | total: 0, | 153 | total: 0, |
154 | columns: datas.zrzcolumns(), | 154 | columns: datas.zrzcolumns(), |
155 | data: [], | 155 | data: [], |
156 | }, | 156 | }, |
157 | dztableData: { | 157 | dztableData: { |
158 | total: 0, | 158 | total: 0, |
159 | columns: datas.dzcolumns(), | 159 | columns: datas.dzcolumns(), |
160 | data: [], | 160 | data: [], |
161 | }, | 161 | }, |
162 | bdcdysz: [], | 162 | bdcdysz: [], |
163 | bsmSqyw: | 163 | bsmSqyw: |
164 | this.sqywInfo.nodetype === "djlx" | 164 | this.sqywInfo.nodetype === "djlx" |
165 | ? this.sqywInfo.bsmSqyw | 165 | ? this.sqywInfo.bsmSqyw |
166 | : this.sqywInfo.parentid, | 166 | : this.sqywInfo.parentid, |
167 | }; | 167 | }; |
168 | }, | 168 | }, |
169 | mounted () { | 169 | mounted () { |
170 | sendThis(this) | 170 | sendThis(this) |
171 | }, | 171 | }, |
172 | methods: { | 172 | methods: { |
173 | queryClick () { | 173 | queryClick () { |
174 | this.$startLoading(); | 174 | this.$startLoading(); |
175 | if (!this.isJump) { | 175 | if (!this.isJump) { |
176 | //从业务办理进入 | 176 | //从业务办理进入 |
177 | if (this.activeName == "zrz") { | 177 | if (this.activeName == "zrz") { |
178 | this.queryzrzForm.sqywbm = this.sqywInfo.djywbm; | 178 | this.queryzrzForm.sqywbm = this.sqywInfo.djywbm; |
179 | this.queryzrzForm.fwfl = this.activeName; | 179 | this.queryzrzForm.fwfl = this.activeName; |
180 | selectZrz({ ...this.queryzrzForm, ...this.pageData }).then((res) => { | 180 | selectZrz({ ...this.queryzrzForm, ...this.pageData }).then((res) => { |
181 | this.$endLoading(); | ||
182 | if (res.code === 200) { | ||
183 | this.zrztableData.total = res.result.total; | ||
184 | this.zrztableData.data = res.result.records; | ||
185 | } | ||
186 | }); | ||
187 | } else { | ||
188 | this.querydzForm.sqywbm = this.sqywInfo.djywbm; | ||
189 | this.querydzForm.fwfl = this.activeName; | ||
190 | selectDz({ ...this.querydzForm, ...this.pageData }).then((res) => { | ||
191 | this.$endLoading(); | ||
192 | if (res.code === 200) { | ||
193 | this.dztableData.total = res.result.total; | ||
194 | this.dztableData.data = res.result.records; | ||
195 | } | ||
196 | }) | ||
197 | } | ||
198 | |||
199 | } else { | ||
200 | //从办理框架选择不动产单元进入 | ||
201 | //房屋首次办理选择不动产需找出对应自然幢下未选择的户 | ||
202 | this.queryzrzForm.bsmSlsq = this.$route.query.bsmSlsq; | ||
203 | selectOtherH({ ...this.queryzrzForm, ...this.pageData }).then((res) => { | ||
181 | this.$endLoading(); | 204 | this.$endLoading(); |
182 | if (res.code === 200) { | 205 | if (res.code === 200) { |
183 | this.zrztableData.total = res.result.total; | 206 | let { total, records } = res.result; |
184 | this.zrztableData.data = res.result.records; | 207 | this.zrztableData.total = total; |
208 | this.zrztableData.data = records; | ||
185 | } | 209 | } |
186 | }); | 210 | }) |
211 | } | ||
212 | }, | ||
213 | handleTabClick () { | ||
214 | this.bdcdysz = [], | ||
215 | this.pageData.currentPage = 1; | ||
216 | this.queryClick(); | ||
217 | }, | ||
218 | submitForm () { | ||
219 | if (this.bdcdysz.length == 0) { | ||
220 | this.$message.error("请至少选择一条数据"); | ||
221 | return; | ||
222 | } | ||
223 | if (!this.isJump) { | ||
224 | startBusinessFlow({ | ||
225 | bsmSqyw: this.bsmSqyw, | ||
226 | fwlx: this.activeName, | ||
227 | bdcdysz: this.bdcdysz, | ||
228 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", | ||
229 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", | ||
230 | }).then((res) => { | ||
231 | if (res.code == 200) { | ||
232 | this.$message({ | ||
233 | showClose: true, | ||
234 | message: '发起申请成功', | ||
235 | type: 'success' | ||
236 | }) | ||
237 | this.jump(res.result, this.djywbm) | ||
238 | } else { | ||
239 | this.$message.error(res.message); | ||
240 | } | ||
241 | }) | ||
187 | } else { | 242 | } else { |
188 | this.querydzForm.sqywbm = this.sqywInfo.djywbm; | 243 | choiceBdcdy({ |
189 | this.querydzForm.fwfl = this.activeName; | 244 | bsmSlsq: this.$route.query.bsmSlsq, |
190 | selectDz({ ...this.querydzForm, ...this.pageData }).then((res) => { | 245 | bdcdysz: this.bdcdysz |
191 | this.$endLoading(); | 246 | }).then(res => { |
192 | if (res.code === 200) { | 247 | if (res.code == 200) { |
193 | this.dztableData.total = res.result.total; | 248 | this.$message({ |
194 | this.dztableData.data = res.result.records; | 249 | showClose: true, |
250 | message: '发起申请成功', | ||
251 | type: 'success' | ||
252 | }) | ||
253 | store.dispatch('user/refreshPage', true); | ||
254 | } else { | ||
255 | this.$message.error(res.message); | ||
195 | } | 256 | } |
196 | }) | 257 | }) |
197 | } | 258 | } |
198 | 259 | }, | |
199 | } else { | 260 | handleSelectionChange (val) { |
200 | //从办理框架选择不动产单元进入 | 261 | val.forEach((item, index) => { |
201 | //房屋首次办理选择不动产需找出对应自然幢下未选择的户 | 262 | item.bsmSsql = item.zdbsm |
202 | this.queryzrzForm.bsmSlsq = this.$route.query.bsmSlsq; | ||
203 | selectOtherH({ ...this.queryzrzForm, ...this.pageData }).then((res) => { | ||
204 | this.$endLoading(); | ||
205 | if (res.code === 200) { | ||
206 | let { total, records } = res.result; | ||
207 | this.zrztableData.total = total; | ||
208 | this.zrztableData.data = records; | ||
209 | } | ||
210 | }) | ||
211 | } | ||
212 | }, | ||
213 | handleTabClick () { | ||
214 | this.bdcdysz = [], | ||
215 | this.pageData.currentPage = 1; | ||
216 | this.queryClick(); | ||
217 | }, | ||
218 | submitForm () { | ||
219 | if (this.bdcdysz.length == 0) { | ||
220 | this.$message.error("请至少选择一条数据"); | ||
221 | return; | ||
222 | } | ||
223 | if (!this.isJump) { | ||
224 | startBusinessFlow({ | ||
225 | bsmSqyw: this.bsmSqyw, | ||
226 | fwlx: this.activeName, | ||
227 | bdcdysz: this.bdcdysz, | ||
228 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", | ||
229 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", | ||
230 | }).then((res) => { | ||
231 | if (res.code == 200) { | ||
232 | this.$message({ | ||
233 | showClose: true, | ||
234 | message: '发起申请成功', | ||
235 | type: 'success' | ||
236 | }) | ||
237 | this.jump(res.result, this.djywbm) | ||
238 | } else { | ||
239 | this.$message.error(res.message); | ||
240 | } | ||
241 | }) | 263 | }) |
242 | } else { | 264 | this.bdcdysz = val |
243 | choiceBdcdy({ | 265 | }, |
244 | bsmSlsq: this.$route.query.bsmSlsq, | 266 | handleLpbClick (item) { |
245 | bdcdysz: this.bdcdysz | 267 | this.$popup('楼盘表', 'lpb/index', { |
246 | }).then(res => { | 268 | width: '85%', |
247 | if (res.code == 200) { | 269 | formData: { |
248 | this.$message({ | 270 | bsm: item.bsm, |
249 | showClose: true, | 271 | bsmSqyw: this.bsmSqyw, |
250 | message: '发起申请成功', | 272 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", |
251 | type: 'success' | 273 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", |
252 | }) | ||
253 | store.dispatch('user/refreshPage', true); | ||
254 | } else { | ||
255 | this.$message.error(res.message); | ||
256 | } | 274 | } |
257 | }) | 275 | }) |
258 | } | 276 | } |
259 | }, | ||
260 | handleSelectionChange (val) { | ||
261 | val.forEach((item, index) => { | ||
262 | item.bsmSsql = item.zdbsm | ||
263 | }) | ||
264 | this.bdcdysz = val | ||
265 | }, | ||
266 | handleLpbClick (item) { | ||
267 | this.$popup('楼盘表', 'lpb/index', { | ||
268 | width: '85%', | ||
269 | formData: { | ||
270 | bsm: item.bsm, | ||
271 | bsmSqyw: this.bsmSqyw, | ||
272 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", | ||
273 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", | ||
274 | } | ||
275 | }) | ||
276 | } | 277 | } |
277 | } | 278 | } |
278 | } | ||
279 | </script> | 279 | </script> |
280 | <style scoped lang="scss"> | 280 | <style scoped lang="scss"> |
281 | @import "~@/styles/mixin.scss"; | 281 | @import "~@/styles/mixin.scss"; |
282 | @import "~@/styles/public.scss"; | 282 | @import "~@/styles/public.scss"; |
283 | </style> | 283 | </style> | ... | ... |
... | @@ -27,7 +27,7 @@ | ... | @@ -27,7 +27,7 @@ |
27 | </div> | 27 | </div> |
28 | <!-- 表格 --> | 28 | <!-- 表格 --> |
29 | <div class="from-clues-content loadingtext"> | 29 | <div class="from-clues-content loadingtext"> |
30 | <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" | 30 | <lb-table ref="table" @row-dblclick="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" |
31 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" | 31 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" |
32 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" | 32 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" |
33 | :data="tableData.data"> | 33 | :data="tableData.data"> |
... | @@ -40,85 +40,85 @@ | ... | @@ -40,85 +40,85 @@ |
40 | </div> | 40 | </div> |
41 | </template> | 41 | </template> |
42 | <script> | 42 | <script> |
43 | //首次登记 | 43 | //首次登记 |
44 | import store from '@/store/index.js' | 44 | import store from '@/store/index.js' |
45 | import { datas, sendThis } from "../javascript/nydsyq100.js"; | 45 | import { datas, sendThis } from "../javascript/nydsyq100.js"; |
46 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; | 46 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; |
47 | import table from "@/utils/mixin/table"; | 47 | import table from "@/utils/mixin/table"; |
48 | import jump from "../components/mixin/jump"; | 48 | import jump from "../components/mixin/jump"; |
49 | import { startBusinessFlow, selectZdjbxx } from "@/api/ywbl.js"; | 49 | import { startBusinessFlow, selectZdjbxx } from "@/api/ywbl.js"; |
50 | export default { | 50 | export default { |
51 | mixins: [table, jump], | 51 | mixins: [table, jump], |
52 | props: { | 52 | props: { |
53 | isJump: { type: Boolean, default: false }, | 53 | isJump: { type: Boolean, default: false }, |
54 | sqywInfo: { type: Object, default: () => { } }, | 54 | sqywInfo: { type: Object, default: () => { } }, |
55 | }, | 55 | }, |
56 | data () { | 56 | data () { |
57 | return { | 57 | return { |
58 | queryForm: defaultParameters.defaultParameters(), | 58 | queryForm: defaultParameters.defaultParameters(), |
59 | tableData: { | 59 | tableData: { |
60 | total: 0, | 60 | total: 0, |
61 | columns: datas.columns(), | 61 | columns: datas.columns(), |
62 | data: [], | 62 | data: [], |
63 | }, | ||
64 | bdcdysz: [], | ||
65 | bsmSqyw: | ||
66 | this.sqywInfo.nodetype === "djlx" | ||
67 | ? this.sqywInfo.bsmSqyw | ||
68 | : this.sqywInfo.parentid, | ||
69 | }; | ||
70 | }, | ||
71 | mounted () { | ||
72 | sendThis(this); | ||
73 | }, | ||
74 | methods: { | ||
75 | queryClick () { | ||
76 | this.$startLoading(); | ||
77 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | ||
78 | selectZdjbxx({ ...this.queryForm, ...this.pageData }).then((res) => { | ||
79 | this.$endLoading(); | ||
80 | if (res.code === 200) { | ||
81 | let { total, records } = res.result; | ||
82 | this.tableData.total = total; | ||
83 | this.tableData.data = records; | ||
84 | } | ||
85 | }); | ||
63 | }, | 86 | }, |
64 | bdcdysz: [], | 87 | submitForm () { |
65 | bsmSqyw: | 88 | if (this.bdcdysz.length == 0) { |
66 | this.sqywInfo.nodetype === "djlx" | 89 | this.$message.error("请至少选择一条数据"); |
67 | ? this.sqywInfo.bsmSqyw | 90 | return; |
68 | : this.sqywInfo.parentid, | ||
69 | }; | ||
70 | }, | ||
71 | mounted () { | ||
72 | sendThis(this); | ||
73 | }, | ||
74 | methods: { | ||
75 | queryClick () { | ||
76 | this.$startLoading(); | ||
77 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | ||
78 | selectZdjbxx({ ...this.queryForm, ...this.pageData }).then((res) => { | ||
79 | this.$endLoading(); | ||
80 | if (res.code === 200) { | ||
81 | let { total, records } = res.result; | ||
82 | this.tableData.total = total; | ||
83 | this.tableData.data = records; | ||
84 | } | 91 | } |
85 | }); | 92 | startBusinessFlow({ |
86 | }, | 93 | bsmSqyw: this.bsmSqyw, |
87 | submitForm () { | 94 | bdcdysz: this.bdcdysz, |
88 | if (this.bdcdysz.length == 0) { | 95 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", |
89 | this.$message.error("请至少选择一条数据"); | 96 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", |
90 | return; | 97 | }).then((res) => { |
91 | } | 98 | if (res.code == 200) { |
92 | startBusinessFlow({ | 99 | this.$message({ |
93 | bsmSqyw: this.bsmSqyw, | 100 | showClose: true, |
94 | bdcdysz: this.bdcdysz, | 101 | message: '发起申请成功', |
95 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", | 102 | type: 'success' |
96 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", | 103 | }) |
97 | }).then((res) => { | 104 | if (!this.isJump) { |
98 | if (res.code == 200) { | 105 | this.jump(res.result, this.djywbm) |
99 | this.$message({ | 106 | } else { |
100 | showClose: true, | 107 | store.dispatch('user/refreshPage', true); |
101 | message: '发起申请成功', | 108 | } |
102 | type: 'success' | ||
103 | }) | ||
104 | if (!this.isJump) { | ||
105 | this.jump(res.result, this.djywbm) | ||
106 | } else { | 109 | } else { |
107 | store.dispatch('user/refreshPage', true); | 110 | this.$message.error(res.message); |
108 | } | 111 | } |
109 | } else { | 112 | }) |
110 | this.$message.error(res.message); | 113 | }, |
111 | } | 114 | handleSelectionChange (val) { |
112 | }) | 115 | this.bdcdysz = val; |
113 | }, | 116 | } |
114 | handleSelectionChange (val) { | ||
115 | this.bdcdysz = val; | ||
116 | } | 117 | } |
117 | } | 118 | } |
118 | } | ||
119 | </script> | 119 | </script> |
120 | <style scoped lang="scss"> | 120 | <style scoped lang="scss"> |
121 | @import "~@/styles/mixin.scss"; | 121 | @import "~@/styles/mixin.scss"; |
122 | @import "~@/styles/public.scss"; | 122 | @import "~@/styles/public.scss"; |
123 | </style> | 123 | </style> |
124 | 124 | ... | ... |
... | @@ -27,7 +27,7 @@ | ... | @@ -27,7 +27,7 @@ |
27 | </div> | 27 | </div> |
28 | <!-- 表格 --> | 28 | <!-- 表格 --> |
29 | <div class="from-clues-content loadingtext"> | 29 | <div class="from-clues-content loadingtext"> |
30 | <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" | 30 | <lb-table ref="table" @row-dblclick="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" |
31 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" | 31 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" |
32 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" | 32 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" |
33 | :data="tableData.data"> | 33 | :data="tableData.data"> |
... | @@ -40,91 +40,91 @@ | ... | @@ -40,91 +40,91 @@ |
40 | </div> | 40 | </div> |
41 | </template> | 41 | </template> |
42 | <script> | 42 | <script> |
43 | //首次登记 | 43 | //首次登记 |
44 | import store from '@/store/index.js' | 44 | import store from '@/store/index.js' |
45 | import { datas, sendThis } from "../javascript/selectJsydsyq.js"; | 45 | import { datas, sendThis } from "../javascript/selectJsydsyq.js"; |
46 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; | 46 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; |
47 | import table from "@/utils/mixin/table"; | 47 | import table from "@/utils/mixin/table"; |
48 | import jump from "../components/mixin/jump"; | 48 | import jump from "../components/mixin/jump"; |
49 | import { startBusinessFlow, selectNydsyqQlxx } from "@/api/ywbl.js"; | 49 | import { startBusinessFlow, selectNydsyqQlxx } from "@/api/ywbl.js"; |
50 | export default { | 50 | export default { |
51 | mixins: [table, jump], | 51 | mixins: [table, jump], |
52 | props: { | 52 | props: { |
53 | isJump: { type: Boolean, default: false }, | 53 | isJump: { type: Boolean, default: false }, |
54 | sqywInfo: { type: Object, default: () => { } }, | 54 | sqywInfo: { type: Object, default: () => { } }, |
55 | }, | 55 | }, |
56 | data () { | 56 | data () { |
57 | return { | 57 | return { |
58 | queryForm: defaultParameters.defaultParameters(), | 58 | queryForm: defaultParameters.defaultParameters(), |
59 | qllxs: [], | 59 | qllxs: [], |
60 | tableData: { | 60 | tableData: { |
61 | total: 0, | 61 | total: 0, |
62 | columns: datas.columns(), | 62 | columns: datas.columns(), |
63 | data: [], | 63 | data: [], |
64 | }, | ||
65 | bdcdysz: [] | ||
66 | }; | ||
67 | }, | ||
68 | mounted () { | ||
69 | sendThis(this); | ||
70 | }, | ||
71 | methods: { | ||
72 | queryClick () { | ||
73 | this.$startLoading(); | ||
74 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | ||
75 | selectNydsyqQlxx({ ...this.queryForm, ...this.pageData }).then((res) => { | ||
76 | this.$endLoading(); | ||
77 | if (res.code === 200) { | ||
78 | let { total, records } = res.result; | ||
79 | this.tableData.total = total; | ||
80 | this.tableData.data = records; | ||
81 | } | ||
82 | }) | ||
64 | }, | 83 | }, |
65 | bdcdysz: [] | 84 | submitForm () { |
66 | }; | 85 | if (this.bdcdysz.length == 0) { |
67 | }, | 86 | this.$message.error("请至少选择一条数据"); |
68 | mounted () { | 87 | return; |
69 | sendThis(this); | ||
70 | }, | ||
71 | methods: { | ||
72 | queryClick () { | ||
73 | this.$startLoading(); | ||
74 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | ||
75 | selectNydsyqQlxx({ ...this.queryForm, ...this.pageData }).then((res) => { | ||
76 | this.$endLoading(); | ||
77 | if (res.code === 200) { | ||
78 | let { total, records } = res.result; | ||
79 | this.tableData.total = total; | ||
80 | this.tableData.data = records; | ||
81 | } | 88 | } |
82 | }) | 89 | startBusinessFlow({ |
83 | }, | 90 | bsmSqyw: this.sqywInfo.parentid, |
84 | submitForm () { | 91 | bdcdysz: this.bdcdysz, |
85 | if (this.bdcdysz.length == 0) { | 92 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", |
86 | this.$message.error("请至少选择一条数据"); | 93 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", |
87 | return; | 94 | }).then((res) => { |
88 | } | 95 | if (res.code == 200) { |
89 | startBusinessFlow({ | 96 | this.$message({ |
90 | bsmSqyw: this.sqywInfo.parentid, | 97 | showClose: true, |
91 | bdcdysz: this.bdcdysz, | 98 | message: '发起申请成功', |
92 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", | 99 | type: 'success' |
93 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", | 100 | }) |
94 | }).then((res) => { | 101 | if (!this.isJump) { |
95 | if (res.code == 200) { | 102 | this.jump(res.result, this.djywbm) |
96 | this.$message({ | 103 | } else { |
97 | showClose: true, | 104 | store.dispatch('user/refreshPage', true); |
98 | message: '发起申请成功', | 105 | } |
99 | type: 'success' | ||
100 | }) | ||
101 | if (!this.isJump) { | ||
102 | this.jump(res.result, this.djywbm) | ||
103 | } else { | 106 | } else { |
104 | store.dispatch('user/refreshPage', true); | 107 | this.$message.error(res.message); |
105 | } | 108 | } |
106 | } else { | 109 | }) |
107 | this.$message.error(res.message); | 110 | }, |
108 | } | 111 | handleSelectionChange (val) { |
109 | }) | 112 | val.forEach((item, index) => { |
110 | }, | 113 | item.bsmSsql = item.bsmQlxx |
111 | handleSelectionChange (val) { | 114 | item.ybdcqzsh = item.bdcqzh |
112 | val.forEach((item, index) => { | 115 | }) |
113 | item.bsmSsql = item.bsmQlxx | 116 | this.bdcdysz = val; |
114 | item.ybdcqzsh = item.bdcqzh | 117 | }, |
115 | }) | 118 | openBook (row) { |
116 | this.bdcdysz = val; | 119 | var param = { bdcdyid: row.bdcdyid, qllx: row.qllx, bdcdyh: row.bdcdyh, bsmQlxx: row.bsmQlxx }; |
117 | }, | 120 | this.$popup('登记簿详情', 'registerBook/djbFrame', { |
118 | openBook (row) { | 121 | formData: param |
119 | var param = { bdcdyid: row.bdcdyid, qllx: row.qllx, bdcdyh: row.bdcdyh, bsmQlxx: row.bsmQlxx }; | 122 | }) |
120 | this.$popup('登记簿详情', 'registerBook/djbFrame', { | 123 | } |
121 | formData: param | ||
122 | }) | ||
123 | } | 124 | } |
124 | } | 125 | } |
125 | } | ||
126 | </script> | 126 | </script> |
127 | <style scoped lang="scss"> | 127 | <style scoped lang="scss"> |
128 | @import "~@/styles/mixin.scss"; | 128 | @import "~@/styles/mixin.scss"; |
129 | @import "~@/styles/public.scss"; | 129 | @import "~@/styles/public.scss"; |
130 | </style> | 130 | </style> | ... | ... |
... | @@ -42,7 +42,7 @@ | ... | @@ -42,7 +42,7 @@ |
42 | </div> | 42 | </div> |
43 | <!-- 表格 --> | 43 | <!-- 表格 --> |
44 | <div class="from-clues-content loadingtext"> | 44 | <div class="from-clues-content loadingtext"> |
45 | <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" | 45 | <lb-table ref="table" @row-dblclick="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" |
46 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" | 46 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" |
47 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" | 47 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" |
48 | :data="tableData.data"> | 48 | :data="tableData.data"> |
... | @@ -55,98 +55,98 @@ | ... | @@ -55,98 +55,98 @@ |
55 | </div> | 55 | </div> |
56 | </template> | 56 | </template> |
57 | <script> | 57 | <script> |
58 | import store from '@/store/index.js' | 58 | import store from '@/store/index.js' |
59 | import { datas, sendThis } from "../javascript/selecBdcql.js"; | 59 | import { datas, sendThis } from "../javascript/selecBdcql.js"; |
60 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; | 60 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; |
61 | import table from "@/utils/mixin/table"; | 61 | import table from "@/utils/mixin/table"; |
62 | import jump from "./mixin/jump"; | 62 | import jump from "./mixin/jump"; |
63 | import { selectQlxx, startBusinessFlow } from "@/api/ywbl.js"; | 63 | import { selectQlxx, startBusinessFlow } from "@/api/ywbl.js"; |
64 | import { getQllxByBsmSqyw } from "@/api/system.js"; | 64 | import { getQllxByBsmSqyw } from "@/api/system.js"; |
65 | export default { | 65 | export default { |
66 | mixins: [table, jump], | 66 | mixins: [table, jump], |
67 | props: { | 67 | props: { |
68 | isJump: { type: Boolean, default: false }, | 68 | isJump: { type: Boolean, default: false }, |
69 | sqywInfo: { type: Object, default: () => { } }, | 69 | sqywInfo: { type: Object, default: () => { } }, |
70 | }, | 70 | }, |
71 | data () { | 71 | data () { |
72 | return { | 72 | return { |
73 | queryForm: defaultParameters.defaultParameters(), | 73 | queryForm: defaultParameters.defaultParameters(), |
74 | qllxData: [], | 74 | qllxData: [], |
75 | tableData: { | 75 | tableData: { |
76 | total: 0, | 76 | total: 0, |
77 | columns: datas.columns(), | 77 | columns: datas.columns(), |
78 | data: [], | 78 | data: [], |
79 | }, | 79 | }, |
80 | bdcdysz: [], | 80 | bdcdysz: [], |
81 | bsmSqyw: | 81 | bsmSqyw: |
82 | this.sqywInfo.nodetype === "djlx" | 82 | this.sqywInfo.nodetype === "djlx" |
83 | ? this.sqywInfo.bsmSqyw | 83 | ? this.sqywInfo.bsmSqyw |
84 | : this.sqywInfo.parentid, | 84 | : this.sqywInfo.parentid, |
85 | }; | 85 | }; |
86 | }, | 86 | }, |
87 | mounted () { | 87 | mounted () { |
88 | sendThis(this); | 88 | sendThis(this); |
89 | }, | 89 | }, |
90 | created () { | 90 | created () { |
91 | //初始化权利类型下拉框内容 | 91 | //初始化权利类型下拉框内容 |
92 | getQllxByBsmSqyw(this.bsmSqyw).then((res) => { | 92 | getQllxByBsmSqyw(this.bsmSqyw).then((res) => { |
93 | if (res.code === 200) { | ||
94 | this.qllxData = res.result ? res.result : []; | ||
95 | } | ||
96 | }); | ||
97 | }, | ||
98 | methods: { | ||
99 | //默认加载表格信息 | ||
100 | queryClick () { | ||
101 | this.$startLoading(); | ||
102 | this.queryForm.bsmSqyw = this.bsmSqyw; | ||
103 | selectQlxx({ ...this.queryForm, ...this.pageData }).then((res) => { | ||
104 | this.$endLoading(); | ||
105 | if (res.code === 200) { | 93 | if (res.code === 200) { |
106 | let { total, records } = res.result; | 94 | this.qllxData = res.result ? res.result : []; |
107 | this.tableData.total = total; | ||
108 | this.tableData.data = records; | ||
109 | } | 95 | } |
110 | }); | 96 | }); |
111 | }, | 97 | }, |
112 | submitForm () { | 98 | methods: { |
113 | if (this.bdcdysz.length == 0) { | 99 | //默认加载表格信息 |
114 | this.$alert("请至少选择一条数据"); | 100 | queryClick () { |
115 | return; | 101 | this.$startLoading(); |
116 | } | 102 | this.queryForm.bsmSqyw = this.bsmSqyw; |
117 | startBusinessFlow({ | 103 | selectQlxx({ ...this.queryForm, ...this.pageData }).then((res) => { |
118 | bsmSqyw: this.bsmSqyw, | 104 | this.$endLoading(); |
119 | bdcdysz: this.bdcdysz, | 105 | if (res.code === 200) { |
120 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", | 106 | let { total, records } = res.result; |
121 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", | 107 | this.tableData.total = total; |
122 | }).then((res) => { | 108 | this.tableData.data = records; |
123 | if (res.code == 200) { | ||
124 | this.$message({ | ||
125 | showClose: true, | ||
126 | message: "发起申请成功", | ||
127 | type: "success", | ||
128 | }); | ||
129 | if (!this.isJump) { | ||
130 | this.jump(res.result, this.sqywInfo.djywbm); | ||
131 | } else { | ||
132 | store.dispatch('user/refreshPage', true); | ||
133 | } | 109 | } |
134 | } else { | 110 | }); |
135 | this.$alert(res.message); | 111 | }, |
112 | submitForm () { | ||
113 | if (this.bdcdysz.length == 0) { | ||
114 | this.$alert("请至少选择一条数据"); | ||
115 | return; | ||
136 | } | 116 | } |
137 | }); | 117 | startBusinessFlow({ |
138 | }, | 118 | bsmSqyw: this.bsmSqyw, |
139 | handleSelectionChange (val) { | 119 | bdcdysz: this.bdcdysz, |
140 | val.forEach((item, index) => { | 120 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", |
141 | item.bsmSsql = item.bsmQlxx; | 121 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", |
142 | item.ybdcqzsh = item.bdcqzh; | 122 | }).then((res) => { |
143 | }); | 123 | if (res.code == 200) { |
144 | this.bdcdysz = val; | 124 | this.$message({ |
125 | showClose: true, | ||
126 | message: "发起申请成功", | ||
127 | type: "success", | ||
128 | }); | ||
129 | if (!this.isJump) { | ||
130 | this.jump(res.result, this.sqywInfo.djywbm); | ||
131 | } else { | ||
132 | store.dispatch('user/refreshPage', true); | ||
133 | } | ||
134 | } else { | ||
135 | this.$alert(res.message); | ||
136 | } | ||
137 | }); | ||
138 | }, | ||
139 | handleSelectionChange (val) { | ||
140 | val.forEach((item, index) => { | ||
141 | item.bsmSsql = item.bsmQlxx; | ||
142 | item.ybdcqzsh = item.bdcqzh; | ||
143 | }); | ||
144 | this.bdcdysz = val; | ||
145 | }, | ||
145 | }, | 146 | }, |
146 | }, | 147 | }; |
147 | }; | ||
148 | </script> | 148 | </script> |
149 | <style scoped lang="scss"> | 149 | <style scoped lang="scss"> |
150 | @import "~@/styles/mixin.scss"; | 150 | @import "~@/styles/mixin.scss"; |
151 | @import "~@/styles/public.scss"; | 151 | @import "~@/styles/public.scss"; |
152 | </style> | 152 | </style> | ... | ... |
... | @@ -34,7 +34,7 @@ | ... | @@ -34,7 +34,7 @@ |
34 | </div> | 34 | </div> |
35 | <!-- 表格 --> | 35 | <!-- 表格 --> |
36 | <div class="from-clues-content loadingtext"> | 36 | <div class="from-clues-content loadingtext"> |
37 | <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" | 37 | <lb-table ref="table" @row-dblclick="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" |
38 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" | 38 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" |
39 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" | 39 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" |
40 | :data="tableData.data"> | 40 | :data="tableData.data"> |
... | @@ -47,83 +47,83 @@ | ... | @@ -47,83 +47,83 @@ |
47 | </div> | 47 | </div> |
48 | </template> | 48 | </template> |
49 | <script> | 49 | <script> |
50 | import store from '@/store/index.js' | 50 | import store from '@/store/index.js' |
51 | import { datas, sendThis } from "../javascript/selectAllHInfo.js"; | 51 | import { datas, sendThis } from "../javascript/selectAllHInfo.js"; |
52 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; | 52 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; |
53 | import table from "@/utils/mixin/table"; | 53 | import table from "@/utils/mixin/table"; |
54 | import jump from "./mixin/jump"; | 54 | import jump from "./mixin/jump"; |
55 | import { selectAllHInfo, startBusinessFlow } from "@/api/ywbl.js"; | 55 | import { selectAllHInfo, startBusinessFlow } from "@/api/ywbl.js"; |
56 | export default { | 56 | export default { |
57 | mixins: [table, jump], | 57 | mixins: [table, jump], |
58 | props: { | 58 | props: { |
59 | isJump: { type: Boolean, default: false }, | 59 | isJump: { type: Boolean, default: false }, |
60 | sqywInfo: { type: Object, default: () => { } }, | 60 | sqywInfo: { type: Object, default: () => { } }, |
61 | 61 | ||
62 | }, | 62 | }, |
63 | data () { | 63 | data () { |
64 | return { | 64 | return { |
65 | queryForm: defaultParameters.defaultParameters(), | 65 | queryForm: defaultParameters.defaultParameters(), |
66 | tableData: { | 66 | tableData: { |
67 | total: 0, | 67 | total: 0, |
68 | columns: datas.columns(), | 68 | columns: datas.columns(), |
69 | data: [], | 69 | data: [], |
70 | }, | ||
71 | bdcdysz: [], | ||
72 | }; | ||
73 | }, | ||
74 | mounted () { | ||
75 | sendThis(this); | ||
76 | }, | ||
77 | methods: { | ||
78 | queryClick () { | ||
79 | this.$startLoading(); | ||
80 | selectAllHInfo({ ...this.queryForm, ...this.pageData }).then((res) => { | ||
81 | this.$endLoading(); | ||
82 | if (res.code === 200) { | ||
83 | let { total, records } = res.result; | ||
84 | this.tableData.total = total; | ||
85 | this.tableData.data = records; | ||
86 | } | ||
87 | }); | ||
70 | }, | 88 | }, |
71 | bdcdysz: [], | 89 | submitForm () { |
72 | }; | 90 | if (this.bdcdysz.length == 0) { |
73 | }, | 91 | this.$message.error("请至少选择一条数据"); |
74 | mounted () { | 92 | return; |
75 | sendThis(this); | ||
76 | }, | ||
77 | methods: { | ||
78 | queryClick () { | ||
79 | this.$startLoading(); | ||
80 | selectAllHInfo({ ...this.queryForm, ...this.pageData }).then((res) => { | ||
81 | this.$endLoading(); | ||
82 | if (res.code === 200) { | ||
83 | let { total, records } = res.result; | ||
84 | this.tableData.total = total; | ||
85 | this.tableData.data = records; | ||
86 | } | 93 | } |
87 | }); | 94 | startBusinessFlow({ |
88 | }, | 95 | bsmSqyw: this.sqywInfo.bsmSqyw, |
89 | submitForm () { | 96 | bdcdysz: this.bdcdysz, |
90 | if (this.bdcdysz.length == 0) { | 97 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", |
91 | this.$message.error("请至少选择一条数据"); | 98 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", |
92 | return; | 99 | }).then((res) => { |
93 | } | 100 | if (res.code == 200) { |
94 | startBusinessFlow({ | 101 | this.$message({ |
95 | bsmSqyw: this.sqywInfo.bsmSqyw, | 102 | showClose: true, |
96 | bdcdysz: this.bdcdysz, | 103 | message: '发起申请成功', |
97 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", | 104 | type: 'success' |
98 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", | 105 | }) |
99 | }).then((res) => { | 106 | if (!this.isJump) { |
100 | if (res.code == 200) { | 107 | this.jump(res.result, this.sqywInfo.djywbm) |
101 | this.$message({ | 108 | } else { |
102 | showClose: true, | 109 | store.dispatch('user/refreshPage', true); |
103 | message: '发起申请成功', | 110 | } |
104 | type: 'success' | ||
105 | }) | ||
106 | if (!this.isJump) { | ||
107 | this.jump(res.result, this.sqywInfo.djywbm) | ||
108 | } else { | 111 | } else { |
109 | store.dispatch('user/refreshPage', true); | 112 | this.$message.error(res.message); |
110 | } | 113 | } |
111 | } else { | 114 | }); |
112 | this.$message.error(res.message); | 115 | }, |
113 | } | 116 | handleSelectionChange (val) { |
114 | }); | 117 | val.forEach((item, index) => { |
115 | }, | 118 | item.bsmSsql = item.bsmQlxx; |
116 | handleSelectionChange (val) { | 119 | item.ybdcqzsh = item.bdcqzh; |
117 | val.forEach((item, index) => { | 120 | }); |
118 | item.bsmSsql = item.bsmQlxx; | 121 | this.bdcdysz = val; |
119 | item.ybdcqzsh = item.bdcqzh; | 122 | }, |
120 | }); | ||
121 | this.bdcdysz = val; | ||
122 | }, | 123 | }, |
123 | }, | 124 | }; |
124 | }; | ||
125 | </script> | 125 | </script> |
126 | <style scoped lang="scss"> | 126 | <style scoped lang="scss"> |
127 | @import "~@/styles/mixin.scss"; | 127 | @import "~@/styles/mixin.scss"; |
128 | @import "~@/styles/public.scss"; | 128 | @import "~@/styles/public.scss"; |
129 | </style> | 129 | </style> | ... | ... |
... | @@ -34,7 +34,7 @@ | ... | @@ -34,7 +34,7 @@ |
34 | </div> | 34 | </div> |
35 | <!-- 表格 --> | 35 | <!-- 表格 --> |
36 | <div class="from-clues-content loadingtext"> | 36 | <div class="from-clues-content loadingtext"> |
37 | <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" | 37 | <lb-table ref="table" @row-dblclick="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" |
38 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" | 38 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" |
39 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" | 39 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" |
40 | :data="tableData.data"> | 40 | :data="tableData.data"> |
... | @@ -47,83 +47,83 @@ | ... | @@ -47,83 +47,83 @@ |
47 | </div> | 47 | </div> |
48 | </template> | 48 | </template> |
49 | <script> | 49 | <script> |
50 | import store from '@/store/index.js' | 50 | import store from '@/store/index.js' |
51 | import { datas, sendThis } from "../javascript/selectFwsyq.js"; | 51 | import { datas, sendThis } from "../javascript/selectFwsyq.js"; |
52 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; | 52 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; |
53 | import table from "@/utils/mixin/table"; | 53 | import table from "@/utils/mixin/table"; |
54 | import jump from "./mixin/jump"; | 54 | import jump from "./mixin/jump"; |
55 | import { selectFwsyq, startBusinessFlow } from "@/api/ywbl.js"; | 55 | import { selectFwsyq, startBusinessFlow } from "@/api/ywbl.js"; |
56 | export default { | 56 | export default { |
57 | mixins: [table, jump], | 57 | mixins: [table, jump], |
58 | props: { | 58 | props: { |
59 | isJump: { type: Boolean, default: false }, | 59 | isJump: { type: Boolean, default: false }, |
60 | sqywInfo: { type: Object, default: () => { } }, | 60 | sqywInfo: { type: Object, default: () => { } }, |
61 | }, | 61 | }, |
62 | data () { | 62 | data () { |
63 | return { | 63 | return { |
64 | queryForm: defaultParameters.defaultParameters(), | 64 | queryForm: defaultParameters.defaultParameters(), |
65 | tableData: { | 65 | tableData: { |
66 | total: 0, | 66 | total: 0, |
67 | columns: datas.columns(), | 67 | columns: datas.columns(), |
68 | data: [], | 68 | data: [], |
69 | }, | ||
70 | bdcdysz: [], | ||
71 | }; | ||
72 | }, | ||
73 | mounted () { | ||
74 | sendThis(this); | ||
75 | }, | ||
76 | methods: { | ||
77 | queryClick () { | ||
78 | this.$startLoading(); | ||
79 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | ||
80 | selectFwsyq({ ...this.queryForm, ...this.pageData }).then((res) => { | ||
81 | this.$endLoading(); | ||
82 | if (res.code === 200) { | ||
83 | let { total, records } = res.result; | ||
84 | this.tableData.total = total; | ||
85 | this.tableData.data = records; | ||
86 | } | ||
87 | }); | ||
69 | }, | 88 | }, |
70 | bdcdysz: [], | 89 | submitForm () { |
71 | }; | 90 | if (this.bdcdysz.length == 0) { |
72 | }, | 91 | this.$message.error("请至少选择一条数据"); |
73 | mounted () { | 92 | return; |
74 | sendThis(this); | ||
75 | }, | ||
76 | methods: { | ||
77 | queryClick () { | ||
78 | this.$startLoading(); | ||
79 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | ||
80 | selectFwsyq({ ...this.queryForm, ...this.pageData }).then((res) => { | ||
81 | this.$endLoading(); | ||
82 | if (res.code === 200) { | ||
83 | let { total, records } = res.result; | ||
84 | this.tableData.total = total; | ||
85 | this.tableData.data = records; | ||
86 | } | 93 | } |
87 | }); | 94 | startBusinessFlow({ |
88 | }, | 95 | bsmSqyw: this.sqywInfo.bsmSqyw, |
89 | submitForm () { | 96 | bdcdysz: this.bdcdysz, |
90 | if (this.bdcdysz.length == 0) { | 97 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", |
91 | this.$message.error("请至少选择一条数据"); | 98 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", |
92 | return; | 99 | }).then((res) => { |
93 | } | 100 | if (res.code == 200) { |
94 | startBusinessFlow({ | 101 | this.$message({ |
95 | bsmSqyw: this.sqywInfo.bsmSqyw, | 102 | showClose: true, |
96 | bdcdysz: this.bdcdysz, | 103 | message: "发起申请成功", |
97 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", | 104 | type: "success", |
98 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", | 105 | }); |
99 | }).then((res) => { | 106 | if (!this.isJump) { |
100 | if (res.code == 200) { | 107 | this.jump(res.result, this.sqywInfo.djywbm); |
101 | this.$message({ | 108 | } else { |
102 | showClose: true, | 109 | store.dispatch('user/refreshPage', true); |
103 | message: "发起申请成功", | 110 | } |
104 | type: "success", | ||
105 | }); | ||
106 | if (!this.isJump) { | ||
107 | this.jump(res.result, this.sqywInfo.djywbm); | ||
108 | } else { | 111 | } else { |
109 | store.dispatch('user/refreshPage', true); | 112 | this.$message.error(res.message); |
110 | } | 113 | } |
111 | } else { | 114 | }); |
112 | this.$message.error(res.message); | 115 | }, |
113 | } | 116 | handleSelectionChange (val) { |
114 | }); | 117 | val.forEach((item, index) => { |
115 | }, | 118 | item.bsmSsql = item.bsmQlxx; |
116 | handleSelectionChange (val) { | 119 | item.ybdcqzsh = item.bdcqzh; |
117 | val.forEach((item, index) => { | 120 | }); |
118 | item.bsmSsql = item.bsmQlxx; | 121 | this.bdcdysz = val; |
119 | item.ybdcqzsh = item.bdcqzh; | 122 | }, |
120 | }); | ||
121 | this.bdcdysz = val; | ||
122 | }, | 123 | }, |
123 | }, | 124 | }; |
124 | }; | ||
125 | </script> | 125 | </script> |
126 | <style scoped lang="scss"> | 126 | <style scoped lang="scss"> |
127 | @import "~@/styles/mixin.scss"; | 127 | @import "~@/styles/mixin.scss"; |
128 | @import "~@/styles/public.scss"; | 128 | @import "~@/styles/public.scss"; |
129 | </style> | 129 | </style> | ... | ... |
... | @@ -41,7 +41,7 @@ | ... | @@ -41,7 +41,7 @@ |
41 | </div> | 41 | </div> |
42 | <!-- 表格 --> | 42 | <!-- 表格 --> |
43 | <div class="from-clues-content loadingtext"> | 43 | <div class="from-clues-content loadingtext"> |
44 | <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" | 44 | <lb-table ref="table" @row-dblclick="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" |
45 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" | 45 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" |
46 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" | 46 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" |
47 | :data="tableData.data"> | 47 | :data="tableData.data"> |
... | @@ -54,95 +54,95 @@ | ... | @@ -54,95 +54,95 @@ |
54 | </div> | 54 | </div> |
55 | </template> | 55 | </template> |
56 | <script> | 56 | <script> |
57 | //首次登记 | 57 | //首次登记 |
58 | import store from '@/store/index.js' | 58 | import store from '@/store/index.js' |
59 | import { datas, sendThis } from "../javascript/selectJsydsyq.js"; | 59 | import { datas, sendThis } from "../javascript/selectJsydsyq.js"; |
60 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; | 60 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; |
61 | import table from "@/utils/mixin/table"; | 61 | import table from "@/utils/mixin/table"; |
62 | import jump from "./mixin/jump"; | 62 | import jump from "./mixin/jump"; |
63 | import { startBusinessFlow, selectJsydQlxx } from "@/api/ywbl.js"; | 63 | import { startBusinessFlow, selectJsydQlxx } from "@/api/ywbl.js"; |
64 | export default { | 64 | export default { |
65 | mixins: [table, jump], | 65 | mixins: [table, jump], |
66 | props: { | 66 | props: { |
67 | isJump: { type: Boolean, default: false }, | 67 | isJump: { type: Boolean, default: false }, |
68 | sqywInfo: { type: Object, default: () => { } }, | 68 | sqywInfo: { type: Object, default: () => { } }, |
69 | }, | ||
70 | data () { | ||
71 | return { | ||
72 | queryForm: defaultParameters.defaultParameters(), | ||
73 | tableData: { | ||
74 | total: 0, | ||
75 | columns: datas.columns(), | ||
76 | data: [] | ||
77 | }, | ||
78 | bdcdysz: [] | ||
79 | } | ||
80 | }, | ||
81 | mounted () { | ||
82 | sendThis(this); | ||
83 | }, | ||
84 | methods: { | ||
85 | queryClick () { | ||
86 | this.$startLoading(); | ||
87 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | ||
88 | selectJsydQlxx({ ...this.queryForm, ...this.pageData }).then((res) => { | ||
89 | this.$endLoading(); | ||
90 | if (res.code === 200) { | ||
91 | let { total, records } = res.result; | ||
92 | this.tableData.total = total; | ||
93 | this.tableData.data = records; | ||
94 | } | ||
95 | }); | ||
96 | }, | 69 | }, |
97 | submitForm () { | 70 | data () { |
98 | if (this.bdcdysz.length == 0) { | 71 | return { |
99 | this.$message.error("请至少选择一条数据"); | 72 | queryForm: defaultParameters.defaultParameters(), |
100 | return; | 73 | tableData: { |
74 | total: 0, | ||
75 | columns: datas.columns(), | ||
76 | data: [] | ||
77 | }, | ||
78 | bdcdysz: [] | ||
101 | } | 79 | } |
102 | startBusinessFlow({ | ||
103 | bsmSqyw: this.sqywInfo.parentid, | ||
104 | bdcdysz: this.bdcdysz, | ||
105 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", | ||
106 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", | ||
107 | }).then((res) => { | ||
108 | if (res.code == 200) { | ||
109 | this.$message({ | ||
110 | showClose: true, | ||
111 | message: "发起申请成功", | ||
112 | type: "success", | ||
113 | }); | ||
114 | if (!this.isJump) { | ||
115 | this.jump(res.result, this.sqywInfo.djywbm); | ||
116 | } else { | ||
117 | store.dispatch('user/refreshPage', true); | ||
118 | } | ||
119 | } else { | ||
120 | this.$message.error(res.message); | ||
121 | } | ||
122 | }); | ||
123 | }, | 80 | }, |
124 | handleSelectionChange (val) { | 81 | mounted () { |
125 | val.forEach((item, index) => { | 82 | sendThis(this); |
126 | item.bsmSsql = item.bsmQlxx; | ||
127 | item.ybdcqzsh = item.bdcqzh; | ||
128 | }); | ||
129 | this.bdcdysz = val; | ||
130 | }, | 83 | }, |
131 | openBook (row) { | 84 | methods: { |
132 | var param = { | 85 | queryClick () { |
133 | bdcdyid: row.bdcdyid, | 86 | this.$startLoading(); |
134 | qllx: row.qllx, | 87 | this.queryForm.sqywbm = this.sqywInfo.djywbm; |
135 | bdcdyh: row.bdcdyh, | 88 | selectJsydQlxx({ ...this.queryForm, ...this.pageData }).then((res) => { |
136 | bsmQlxx: row.bsmQlxx, | 89 | this.$endLoading(); |
137 | }; | 90 | if (res.code === 200) { |
138 | this.$popup("登记簿详情", "registerBook/djbFrame", { | 91 | let { total, records } = res.result; |
139 | formData: param | 92 | this.tableData.total = total; |
140 | }) | 93 | this.tableData.data = records; |
94 | } | ||
95 | }); | ||
96 | }, | ||
97 | submitForm () { | ||
98 | if (this.bdcdysz.length == 0) { | ||
99 | this.$message.error("请至少选择一条数据"); | ||
100 | return; | ||
101 | } | ||
102 | startBusinessFlow({ | ||
103 | bsmSqyw: this.sqywInfo.parentid, | ||
104 | bdcdysz: this.bdcdysz, | ||
105 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", | ||
106 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", | ||
107 | }).then((res) => { | ||
108 | if (res.code == 200) { | ||
109 | this.$message({ | ||
110 | showClose: true, | ||
111 | message: "发起申请成功", | ||
112 | type: "success", | ||
113 | }); | ||
114 | if (!this.isJump) { | ||
115 | this.jump(res.result, this.sqywInfo.djywbm); | ||
116 | } else { | ||
117 | store.dispatch('user/refreshPage', true); | ||
118 | } | ||
119 | } else { | ||
120 | this.$message.error(res.message); | ||
121 | } | ||
122 | }); | ||
123 | }, | ||
124 | handleSelectionChange (val) { | ||
125 | val.forEach((item, index) => { | ||
126 | item.bsmSsql = item.bsmQlxx; | ||
127 | item.ybdcqzsh = item.bdcqzh; | ||
128 | }); | ||
129 | this.bdcdysz = val; | ||
130 | }, | ||
131 | openBook (row) { | ||
132 | var param = { | ||
133 | bdcdyid: row.bdcdyid, | ||
134 | qllx: row.qllx, | ||
135 | bdcdyh: row.bdcdyh, | ||
136 | bsmQlxx: row.bsmQlxx, | ||
137 | }; | ||
138 | this.$popup("登记簿详情", "registerBook/djbFrame", { | ||
139 | formData: param | ||
140 | }) | ||
141 | } | ||
141 | } | 142 | } |
142 | } | 143 | } |
143 | } | ||
144 | </script> | 144 | </script> |
145 | <style scoped lang="scss"> | 145 | <style scoped lang="scss"> |
146 | @import "~@/styles/mixin.scss"; | 146 | @import "~@/styles/mixin.scss"; |
147 | @import "~@/styles/public.scss"; | 147 | @import "~@/styles/public.scss"; |
148 | </style> | 148 | </style> | ... | ... |
... | @@ -27,7 +27,7 @@ | ... | @@ -27,7 +27,7 @@ |
27 | </div> | 27 | </div> |
28 | <!-- 表格 --> | 28 | <!-- 表格 --> |
29 | <div class="from-clues-content loadingtext"> | 29 | <div class="from-clues-content loadingtext"> |
30 | <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" | 30 | <lb-table ref="table" @row-dblclick="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" |
31 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" | 31 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" |
32 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" | 32 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" |
33 | :data="tableData.data"> | 33 | :data="tableData.data"> |
... | @@ -40,85 +40,85 @@ | ... | @@ -40,85 +40,85 @@ |
40 | </div> | 40 | </div> |
41 | </template> | 41 | </template> |
42 | <script> | 42 | <script> |
43 | //首次登记 | 43 | //首次登记 |
44 | import store from '@/store/index.js' | 44 | import store from '@/store/index.js' |
45 | import { datas, sendThis } from "../javascript/selectQjzdjbxx.js"; | 45 | import { datas, sendThis } from "../javascript/selectQjzdjbxx.js"; |
46 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; | 46 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; |
47 | import table from "@/utils/mixin/table"; | 47 | import table from "@/utils/mixin/table"; |
48 | import jump from "./mixin/jump"; | 48 | import jump from "./mixin/jump"; |
49 | import { startBusinessFlow, selectZdjbxx } from "@/api/ywbl.js"; | 49 | import { startBusinessFlow, selectZdjbxx } from "@/api/ywbl.js"; |
50 | export default { | 50 | export default { |
51 | mixins: [table, jump], | 51 | mixins: [table, jump], |
52 | props: { | 52 | props: { |
53 | isJump: { type: Boolean, default: false }, | 53 | isJump: { type: Boolean, default: false }, |
54 | sqywInfo: { type: Object, default: () => { } }, | 54 | sqywInfo: { type: Object, default: () => { } }, |
55 | }, | 55 | }, |
56 | data () { | 56 | data () { |
57 | return { | 57 | return { |
58 | queryForm: defaultParameters.defaultParameters(), | 58 | queryForm: defaultParameters.defaultParameters(), |
59 | tableData: { | 59 | tableData: { |
60 | total: 0, | 60 | total: 0, |
61 | columns: datas.columns(), | 61 | columns: datas.columns(), |
62 | data: [], | 62 | data: [], |
63 | }, | ||
64 | bdcdysz: [], | ||
65 | bsmSqyw: | ||
66 | this.sqywInfo.nodetype === "djlx" | ||
67 | ? this.sqywInfo.bsmSqyw | ||
68 | : this.sqywInfo.parentid, | ||
69 | }; | ||
70 | }, | ||
71 | mounted () { | ||
72 | sendThis(this); | ||
73 | }, | ||
74 | methods: { | ||
75 | queryClick () { | ||
76 | this.$startLoading(); | ||
77 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | ||
78 | selectZdjbxx({ ...this.queryForm, ...this.pageData }).then((res) => { | ||
79 | this.$endLoading(); | ||
80 | if (res.code === 200) { | ||
81 | let { total, records } = res.result; | ||
82 | this.tableData.total = total; | ||
83 | this.tableData.data = records; | ||
84 | } | ||
85 | }); | ||
63 | }, | 86 | }, |
64 | bdcdysz: [], | 87 | submitForm () { |
65 | bsmSqyw: | 88 | if (this.bdcdysz.length == 0) { |
66 | this.sqywInfo.nodetype === "djlx" | 89 | this.$alert("请至少选择一条数据"); |
67 | ? this.sqywInfo.bsmSqyw | 90 | return; |
68 | : this.sqywInfo.parentid, | ||
69 | }; | ||
70 | }, | ||
71 | mounted () { | ||
72 | sendThis(this); | ||
73 | }, | ||
74 | methods: { | ||
75 | queryClick () { | ||
76 | this.$startLoading(); | ||
77 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | ||
78 | selectZdjbxx({ ...this.queryForm, ...this.pageData }).then((res) => { | ||
79 | this.$endLoading(); | ||
80 | if (res.code === 200) { | ||
81 | let { total, records } = res.result; | ||
82 | this.tableData.total = total; | ||
83 | this.tableData.data = records; | ||
84 | } | 91 | } |
85 | }); | 92 | startBusinessFlow({ |
86 | }, | 93 | bsmSqyw: this.bsmSqyw, |
87 | submitForm () { | 94 | bdcdysz: this.bdcdysz, |
88 | if (this.bdcdysz.length == 0) { | 95 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", |
89 | this.$alert("请至少选择一条数据"); | 96 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", |
90 | return; | 97 | }).then((res) => { |
91 | } | 98 | if (res.code == 200) { |
92 | startBusinessFlow({ | 99 | this.$message({ |
93 | bsmSqyw: this.bsmSqyw, | 100 | showClose: true, |
94 | bdcdysz: this.bdcdysz, | 101 | message: "发起申请成功", |
95 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", | 102 | type: "success", |
96 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", | 103 | }); |
97 | }).then((res) => { | 104 | if (!this.isJump) { |
98 | if (res.code == 200) { | 105 | this.jump(res.result, this.djywbm); |
99 | this.$message({ | 106 | } else { |
100 | showClose: true, | 107 | store.dispatch('user/refreshPage', true); |
101 | message: "发起申请成功", | 108 | } |
102 | type: "success", | ||
103 | }); | ||
104 | if (!this.isJump) { | ||
105 | this.jump(res.result, this.djywbm); | ||
106 | } else { | 109 | } else { |
107 | store.dispatch('user/refreshPage', true); | 110 | this.$alert(res.message); |
108 | } | 111 | } |
109 | } else { | 112 | }); |
110 | this.$alert(res.message); | 113 | }, |
111 | } | 114 | handleSelectionChange (val) { |
112 | }); | 115 | this.bdcdysz = val; |
113 | }, | 116 | }, |
114 | handleSelectionChange (val) { | ||
115 | this.bdcdysz = val; | ||
116 | }, | 117 | }, |
117 | }, | 118 | }; |
118 | }; | ||
119 | </script> | 119 | </script> |
120 | <style scoped lang="scss"> | 120 | <style scoped lang="scss"> |
121 | @import "~@/styles/mixin.scss"; | 121 | @import "~@/styles/mixin.scss"; |
122 | @import "~@/styles/public.scss"; | 122 | @import "~@/styles/public.scss"; |
123 | </style> | 123 | </style> |
124 | 124 | ... | ... |
... | @@ -34,7 +34,7 @@ | ... | @@ -34,7 +34,7 @@ |
34 | </div> | 34 | </div> |
35 | <!-- 表格 --> | 35 | <!-- 表格 --> |
36 | <div class="from-clues-content loadingtext"> | 36 | <div class="from-clues-content loadingtext"> |
37 | <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" | 37 | <lb-table ref="table" @row-dblclick="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" |
38 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" | 38 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" |
39 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" | 39 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" |
40 | :data="tableData.data"> | 40 | :data="tableData.data"> |
... | @@ -47,83 +47,83 @@ | ... | @@ -47,83 +47,83 @@ |
47 | </div> | 47 | </div> |
48 | </template> | 48 | </template> |
49 | <script> | 49 | <script> |
50 | import store from '@/store/index.js' | 50 | import store from '@/store/index.js' |
51 | import { datas, sendThis } from "../javascript/selectYgdj100.js"; | 51 | import { datas, sendThis } from "../javascript/selectYgdj100.js"; |
52 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; | 52 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; |
53 | import table from "@/utils/mixin/table"; | 53 | import table from "@/utils/mixin/table"; |
54 | import jump from "./mixin/jump"; | 54 | import jump from "./mixin/jump"; |
55 | import { selectYgdj100, startBusinessFlow } from "@/api/ywbl.js"; | 55 | import { selectYgdj100, startBusinessFlow } from "@/api/ywbl.js"; |
56 | export default { | 56 | export default { |
57 | mixins: [table, jump], | 57 | mixins: [table, jump], |
58 | props: { | 58 | props: { |
59 | isJump: { type: Boolean, default: false }, | 59 | isJump: { type: Boolean, default: false }, |
60 | sqywInfo: { type: Object, default: () => { } }, | 60 | sqywInfo: { type: Object, default: () => { } }, |
61 | }, | 61 | }, |
62 | data () { | 62 | data () { |
63 | return { | 63 | return { |
64 | queryForm: defaultParameters.defaultParameters(), | 64 | queryForm: defaultParameters.defaultParameters(), |
65 | tableData: { | 65 | tableData: { |
66 | total: 0, | 66 | total: 0, |
67 | columns: datas.columns(), | 67 | columns: datas.columns(), |
68 | data: [], | 68 | data: [], |
69 | }, | ||
70 | bdcdysz: [], | ||
71 | }; | ||
72 | }, | ||
73 | mounted () { | ||
74 | sendThis(this); | ||
75 | }, | ||
76 | methods: { | ||
77 | queryClick () { | ||
78 | this.$startLoading(); | ||
79 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | ||
80 | selectYgdj100({ ...this.queryForm, ...this.pageData }).then((res) => { | ||
81 | this.$endLoading(); | ||
82 | if (res.code === 200) { | ||
83 | let { total, records } = res.result; | ||
84 | this.tableData.total = total; | ||
85 | this.tableData.data = records; | ||
86 | } | ||
87 | }); | ||
69 | }, | 88 | }, |
70 | bdcdysz: [], | 89 | submitForm () { |
71 | }; | 90 | if (this.bdcdysz.length == 0) { |
72 | }, | 91 | this.$message.error("请至少选择一条数据"); |
73 | mounted () { | 92 | return; |
74 | sendThis(this); | ||
75 | }, | ||
76 | methods: { | ||
77 | queryClick () { | ||
78 | this.$startLoading(); | ||
79 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | ||
80 | selectYgdj100({ ...this.queryForm, ...this.pageData }).then((res) => { | ||
81 | this.$endLoading(); | ||
82 | if (res.code === 200) { | ||
83 | let { total, records } = res.result; | ||
84 | this.tableData.total = total; | ||
85 | this.tableData.data = records; | ||
86 | } | 93 | } |
87 | }); | 94 | startBusinessFlow({ |
88 | }, | 95 | bsmSqyw: this.sqywInfo.bsmSqyw, |
89 | submitForm () { | 96 | bdcdysz: this.bdcdysz, |
90 | if (this.bdcdysz.length == 0) { | 97 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", |
91 | this.$message.error("请至少选择一条数据"); | 98 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", |
92 | return; | 99 | }).then((res) => { |
93 | } | 100 | if (res.code == 200) { |
94 | startBusinessFlow({ | 101 | this.$message({ |
95 | bsmSqyw: this.sqywInfo.bsmSqyw, | 102 | showClose: true, |
96 | bdcdysz: this.bdcdysz, | 103 | message: '发起申请成功', |
97 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", | 104 | type: 'success' |
98 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", | 105 | }) |
99 | }).then((res) => { | 106 | if (!this.isJump) { |
100 | if (res.code == 200) { | 107 | this.jump(res.result, this.sqywInfo.djywbm) |
101 | this.$message({ | 108 | } else { |
102 | showClose: true, | 109 | store.dispatch('user/refreshPage', true); |
103 | message: '发起申请成功', | 110 | } |
104 | type: 'success' | ||
105 | }) | ||
106 | if (!this.isJump) { | ||
107 | this.jump(res.result, this.sqywInfo.djywbm) | ||
108 | } else { | 111 | } else { |
109 | store.dispatch('user/refreshPage', true); | 112 | this.$message.error(res.message); |
110 | } | 113 | } |
111 | } else { | 114 | }); |
112 | this.$message.error(res.message); | 115 | }, |
113 | } | 116 | handleSelectionChange (val) { |
114 | }); | 117 | val.forEach((item, index) => { |
115 | }, | 118 | item.bsmSsql = item.bsmQlxx; |
116 | handleSelectionChange (val) { | 119 | item.ybdcqzsh = item.bdcqzh; |
117 | val.forEach((item, index) => { | 120 | }); |
118 | item.bsmSsql = item.bsmQlxx; | 121 | this.bdcdysz = val; |
119 | item.ybdcqzsh = item.bdcqzh; | 122 | }, |
120 | }); | ||
121 | this.bdcdysz = val; | ||
122 | }, | 123 | }, |
123 | }, | 124 | }; |
124 | }; | ||
125 | </script> | 125 | </script> |
126 | <style scoped lang="scss"> | 126 | <style scoped lang="scss"> |
127 | @import "~@/styles/mixin.scss"; | 127 | @import "~@/styles/mixin.scss"; |
128 | @import "~@/styles/public.scss"; | 128 | @import "~@/styles/public.scss"; |
129 | </style> | 129 | </style> | ... | ... |
... | @@ -34,7 +34,7 @@ | ... | @@ -34,7 +34,7 @@ |
34 | </div> | 34 | </div> |
35 | <!-- 表格 --> | 35 | <!-- 表格 --> |
36 | <div class="from-clues-content loadingtext"> | 36 | <div class="from-clues-content loadingtext"> |
37 | <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" | 37 | <lb-table ref="table" @row-dblclick="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" |
38 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" | 38 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" |
39 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" | 39 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" |
40 | :data="tableData.data"> | 40 | :data="tableData.data"> |
... | @@ -47,83 +47,83 @@ | ... | @@ -47,83 +47,83 @@ |
47 | </div> | 47 | </div> |
48 | </template> | 48 | </template> |
49 | <script> | 49 | <script> |
50 | import store from '@/store/index.js' | 50 | import store from '@/store/index.js' |
51 | import { datas, sendThis } from "../javascript/selectYgdj200.js"; | 51 | import { datas, sendThis } from "../javascript/selectYgdj200.js"; |
52 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; | 52 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; |
53 | import table from "@/utils/mixin/table"; | 53 | import table from "@/utils/mixin/table"; |
54 | import jump from "./mixin/jump"; | 54 | import jump from "./mixin/jump"; |
55 | import { selectYgdj200, startBusinessFlow } from "@/api/ywbl.js"; | 55 | import { selectYgdj200, startBusinessFlow } from "@/api/ywbl.js"; |
56 | export default { | 56 | export default { |
57 | mixins: [table, jump], | 57 | mixins: [table, jump], |
58 | props: { | 58 | props: { |
59 | isJump: { type: Boolean, default: false }, | 59 | isJump: { type: Boolean, default: false }, |
60 | sqywInfo: { type: Object, default: () => { } }, | 60 | sqywInfo: { type: Object, default: () => { } }, |
61 | }, | 61 | }, |
62 | data () { | 62 | data () { |
63 | return { | 63 | return { |
64 | queryForm: defaultParameters.defaultParameters(), | 64 | queryForm: defaultParameters.defaultParameters(), |
65 | tableData: { | 65 | tableData: { |
66 | total: 0, | 66 | total: 0, |
67 | columns: datas.columns(), | 67 | columns: datas.columns(), |
68 | data: [], | 68 | data: [], |
69 | }, | ||
70 | bdcdysz: [], | ||
71 | }; | ||
72 | }, | ||
73 | mounted () { | ||
74 | sendThis(this); | ||
75 | }, | ||
76 | methods: { | ||
77 | queryClick () { | ||
78 | this.$startLoading(); | ||
79 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | ||
80 | selectYgdj200({ ...this.queryForm, ...this.pageData }).then((res) => { | ||
81 | this.$endLoading(); | ||
82 | if (res.code === 200) { | ||
83 | let { total, records } = res.result; | ||
84 | this.tableData.total = total; | ||
85 | this.tableData.data = records; | ||
86 | } | ||
87 | }); | ||
69 | }, | 88 | }, |
70 | bdcdysz: [], | 89 | submitForm () { |
71 | }; | 90 | if (this.bdcdysz.length == 0) { |
72 | }, | 91 | this.$message.error("请至少选择一条数据"); |
73 | mounted () { | 92 | return; |
74 | sendThis(this); | ||
75 | }, | ||
76 | methods: { | ||
77 | queryClick () { | ||
78 | this.$startLoading(); | ||
79 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | ||
80 | selectYgdj200({ ...this.queryForm, ...this.pageData }).then((res) => { | ||
81 | this.$endLoading(); | ||
82 | if (res.code === 200) { | ||
83 | let { total, records } = res.result; | ||
84 | this.tableData.total = total; | ||
85 | this.tableData.data = records; | ||
86 | } | 93 | } |
87 | }); | 94 | startBusinessFlow({ |
88 | }, | 95 | bsmSqyw: this.sqywInfo.bsmSqyw, |
89 | submitForm () { | 96 | bdcdysz: this.bdcdysz, |
90 | if (this.bdcdysz.length == 0) { | 97 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", |
91 | this.$message.error("请至少选择一条数据"); | 98 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", |
92 | return; | 99 | }).then((res) => { |
93 | } | 100 | if (res.code == 200) { |
94 | startBusinessFlow({ | 101 | this.$message({ |
95 | bsmSqyw: this.sqywInfo.bsmSqyw, | 102 | showClose: true, |
96 | bdcdysz: this.bdcdysz, | 103 | message: '发起申请成功', |
97 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", | 104 | type: 'success' |
98 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", | 105 | }) |
99 | }).then((res) => { | 106 | if (!this.isJump) { |
100 | if (res.code == 200) { | 107 | this.jump(res.result, this.sqywInfo.djywbm) |
101 | this.$message({ | 108 | } else { |
102 | showClose: true, | 109 | store.dispatch('user/refreshPage', true); |
103 | message: '发起申请成功', | 110 | } |
104 | type: 'success' | ||
105 | }) | ||
106 | if (!this.isJump) { | ||
107 | this.jump(res.result, this.sqywInfo.djywbm) | ||
108 | } else { | 111 | } else { |
109 | store.dispatch('user/refreshPage', true); | 112 | this.$message.error(res.message); |
110 | } | 113 | } |
111 | } else { | 114 | }); |
112 | this.$message.error(res.message); | 115 | }, |
113 | } | 116 | handleSelectionChange (val) { |
114 | }); | 117 | val.forEach((item, index) => { |
115 | }, | 118 | item.bsmSsql = item.bsmQlxx; |
116 | handleSelectionChange (val) { | 119 | item.ybdcqzsh = item.bdcqzh; |
117 | val.forEach((item, index) => { | 120 | }); |
118 | item.bsmSsql = item.bsmQlxx; | 121 | this.bdcdysz = val; |
119 | item.ybdcqzsh = item.bdcqzh; | 122 | }, |
120 | }); | ||
121 | this.bdcdysz = val; | ||
122 | }, | 123 | }, |
123 | }, | 124 | }; |
124 | }; | ||
125 | </script> | 125 | </script> |
126 | <style scoped lang="scss"> | 126 | <style scoped lang="scss"> |
127 | @import "~@/styles/mixin.scss"; | 127 | @import "~@/styles/mixin.scss"; |
128 | @import "~@/styles/public.scss"; | 128 | @import "~@/styles/public.scss"; |
129 | </style> | 129 | </style> | ... | ... |
... | @@ -34,7 +34,7 @@ | ... | @@ -34,7 +34,7 @@ |
34 | </div> | 34 | </div> |
35 | <!-- 表格 --> | 35 | <!-- 表格 --> |
36 | <div class="from-clues-content loadingtext"> | 36 | <div class="from-clues-content loadingtext"> |
37 | <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" | 37 | <lb-table ref="table" @row-dblclick="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" |
38 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" | 38 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" |
39 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" | 39 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" |
40 | :data="tableData.data"> | 40 | :data="tableData.data"> |
... | @@ -47,83 +47,83 @@ | ... | @@ -47,83 +47,83 @@ |
47 | </div> | 47 | </div> |
48 | </template> | 48 | </template> |
49 | <script> | 49 | <script> |
50 | import store from '@/store/index.js' | 50 | import store from '@/store/index.js' |
51 | import { datas, sendThis } from "../javascript/selectYgdy.js"; | 51 | import { datas, sendThis } from "../javascript/selectYgdy.js"; |
52 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; | 52 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; |
53 | import table from "@/utils/mixin/table"; | 53 | import table from "@/utils/mixin/table"; |
54 | import jump from "./mixin/jump"; | 54 | import jump from "./mixin/jump"; |
55 | import { selectYgdy, startBusinessFlow } from "@/api/ywbl.js"; | 55 | import { selectYgdy, startBusinessFlow } from "@/api/ywbl.js"; |
56 | export default { | 56 | export default { |
57 | mixins: [table, jump], | 57 | mixins: [table, jump], |
58 | props: { | 58 | props: { |
59 | isJump: { type: Boolean, default: false }, | 59 | isJump: { type: Boolean, default: false }, |
60 | sqywInfo: { type: Object, default: () => { } }, | 60 | sqywInfo: { type: Object, default: () => { } }, |
61 | }, | 61 | }, |
62 | data () { | 62 | data () { |
63 | return { | 63 | return { |
64 | queryForm: defaultParameters.defaultParameters(), | 64 | queryForm: defaultParameters.defaultParameters(), |
65 | tableData: { | 65 | tableData: { |
66 | total: 0, | 66 | total: 0, |
67 | columns: datas.columns(), | 67 | columns: datas.columns(), |
68 | data: [], | 68 | data: [], |
69 | }, | ||
70 | bdcdysz: [], | ||
71 | }; | ||
72 | }, | ||
73 | mounted () { | ||
74 | sendThis(this); | ||
75 | }, | ||
76 | methods: { | ||
77 | queryClick () { | ||
78 | this.$startLoading(); | ||
79 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | ||
80 | selectYgdy({ ...this.queryForm, ...this.pageData }).then((res) => { | ||
81 | this.$endLoading(); | ||
82 | if (res.code === 200) { | ||
83 | let { total, records } = res.result; | ||
84 | this.tableData.total = total; | ||
85 | this.tableData.data = records; | ||
86 | } | ||
87 | }); | ||
69 | }, | 88 | }, |
70 | bdcdysz: [], | 89 | submitForm () { |
71 | }; | 90 | if (this.bdcdysz.length == 0) { |
72 | }, | 91 | this.$message.error("请至少选择一条数据"); |
73 | mounted () { | 92 | return; |
74 | sendThis(this); | ||
75 | }, | ||
76 | methods: { | ||
77 | queryClick () { | ||
78 | this.$startLoading(); | ||
79 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | ||
80 | selectYgdy({ ...this.queryForm, ...this.pageData }).then((res) => { | ||
81 | this.$endLoading(); | ||
82 | if (res.code === 200) { | ||
83 | let { total, records } = res.result; | ||
84 | this.tableData.total = total; | ||
85 | this.tableData.data = records; | ||
86 | } | 93 | } |
87 | }); | 94 | startBusinessFlow({ |
88 | }, | 95 | bsmSqyw: this.sqywInfo.bsmSqyw, |
89 | submitForm () { | 96 | bdcdysz: this.bdcdysz, |
90 | if (this.bdcdysz.length == 0) { | 97 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", |
91 | this.$message.error("请至少选择一条数据"); | 98 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", |
92 | return; | 99 | }).then((res) => { |
93 | } | 100 | if (res.code == 200) { |
94 | startBusinessFlow({ | 101 | this.$message({ |
95 | bsmSqyw: this.sqywInfo.bsmSqyw, | 102 | showClose: true, |
96 | bdcdysz: this.bdcdysz, | 103 | message: '发起申请成功', |
97 | djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", | 104 | type: 'success' |
98 | djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", | 105 | }) |
99 | }).then((res) => { | 106 | if (!this.isJump) { |
100 | if (res.code == 200) { | 107 | this.jump(res.result, this.sqywInfo.djywbm) |
101 | this.$message({ | 108 | } else { |
102 | showClose: true, | 109 | store.dispatch('user/refreshPage', true); |
103 | message: '发起申请成功', | 110 | } |
104 | type: 'success' | ||
105 | }) | ||
106 | if (!this.isJump) { | ||
107 | this.jump(res.result, this.sqywInfo.djywbm) | ||
108 | } else { | 111 | } else { |
109 | store.dispatch('user/refreshPage', true); | 112 | this.$message.error(res.message); |
110 | } | 113 | } |
111 | } else { | 114 | }); |
112 | this.$message.error(res.message); | 115 | }, |
113 | } | 116 | handleSelectionChange (val) { |
114 | }); | 117 | val.forEach((item, index) => { |
115 | }, | 118 | item.bsmSsql = item.bsmQlxx; |
116 | handleSelectionChange (val) { | 119 | item.ybdcqzsh = item.bdcqzh; |
117 | val.forEach((item, index) => { | 120 | }); |
118 | item.bsmSsql = item.bsmQlxx; | 121 | this.bdcdysz = val; |
119 | item.ybdcqzsh = item.bdcqzh; | 122 | }, |
120 | }); | ||
121 | this.bdcdysz = val; | ||
122 | }, | 123 | }, |
123 | }, | 124 | }; |
124 | }; | ||
125 | </script> | 125 | </script> |
126 | <style scoped lang="scss"> | 126 | <style scoped lang="scss"> |
127 | @import "~@/styles/mixin.scss"; | 127 | @import "~@/styles/mixin.scss"; |
128 | @import "~@/styles/public.scss"; | 128 | @import "~@/styles/public.scss"; |
129 | </style> | 129 | </style> | ... | ... |
-
Please register or sign in to post a comment