f571eea9 by 赵千

信息备案

1 parent 34a82280
...@@ -14,7 +14,7 @@ let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('Ap ...@@ -14,7 +14,7 @@ let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('Ap
14 */ 14 */
15 export function addYh (data) { 15 export function addYh (data) {
16 return request({ 16 return request({
17 url: SERVER.SERVERAPI + 'y/rest/sys/company/addYh', 17 url: SERVER.SERVERAPI + '/rest/sys/company/addYh',
18 method: 'post', 18 method: 'post',
19 data 19 data
20 }) 20 })
...@@ -26,7 +26,7 @@ export function addYh (data) { ...@@ -26,7 +26,7 @@ export function addYh (data) {
26 */ 26 */
27 export function addQy (data) { 27 export function addQy (data) {
28 return request({ 28 return request({
29 url: SERVER.SERVERAPI + 'y/rest/sys/company/addQy', 29 url: SERVER.SERVERAPI + '/rest/sys/company/addQy',
30 method: 'post', 30 method: 'post',
31 data 31 data
32 }) 32 })
...@@ -35,26 +35,26 @@ export function addQy (data) { ...@@ -35,26 +35,26 @@ export function addQy (data) {
35 /** 35 /**
36 * @description: 查询企业列表 36 * @description: 查询企业列表
37 * @author: 37 * @author:
38 * @param pageSize 38 * @param data
39 * @param pageNumber
40 */ 39 */
41 export function queryQyByPage (pageSize, pageNumber) { 40 export function queryQyByPage (data) {
42 return request({ 41 return request({
43 url: SERVER.SERVERAPI + '/rest/sys/company/queryQyByPage?pageSize=' + pageSize + '&pageNumber=' + pageNumber, 42 url: SERVER.SERVERAPI + '/rest/sys/company/queryQyByPage',
44 method: 'get' 43 method: 'post',
44 data
45 }) 45 })
46 } 46 }
47 47
48 /** 48 /**
49 * @description: 查询银行列表 49 * @description: 查询银行列表
50 * @author: 50 * @author:
51 * @param pageSize 51 * @param data
52 * @param pageNumber
53 */ 52 */
54 export function queryYhByPage (pageSize, pageNumber) { 53 export function queryYhByPage (data) {
55 return request({ 54 return request({
56 url: SERVER.SERVERAPI + '/rest/sys/company/queryYhByPage?pageSize=' + pageSize + '&pageNumber=' + pageNumber, 55 url: SERVER.SERVERAPI + '/rest/sys/company/queryYhByPage',
57 method: 'get' 56 method: 'post',
57 data
58 }) 58 })
59 } 59 }
60 60
......
...@@ -2,63 +2,54 @@ ...@@ -2,63 +2,54 @@
2 <el-form ref="ruleForm" :model="ruleForm" label-width="100px" :rules="rules"> 2 <el-form ref="ruleForm" :model="ruleForm" label-width="100px" :rules="rules">
3 <el-row> 3 <el-row>
4 <el-col :span="12"> 4 <el-col :span="12">
5 <el-form-item label="入库编号:" prop="batchno"> 5 <el-form-item label="企业名称:" prop="qymc">
6 <el-input v-model="ruleForm.batchno" :disabled="true"></el-input> 6 <el-input v-model="ruleForm.qymc" ></el-input>
7 </el-form-item> 7 </el-form-item>
8 </el-col> 8 </el-col>
9 <el-col :span="12"> 9 <el-col :span="12">
10 <el-form-item label="登记机构:" prop="djjg"> 10 <el-form-item label="电话:" prop="dh">
11 <el-select v-model="ruleForm.djjg" class="width100" placeholder="请选择" :disabled="!readOnly"> 11 <el-input v-model="ruleForm.dh" ></el-input>
12 <el-option v-for="item in DJJGLIST" :key="item.dname" :label="item.dname" :value="item.dname">
13 </el-option>
14 </el-select>
15 </el-form-item> 12 </el-form-item>
16 </el-col> 13 </el-col>
17 </el-row> 14 </el-row>
18 <el-row> 15 <el-row>
19 <el-col :span="12"> 16 <el-col :span="12">
20 <el-form-item label="入库人员:"> 17 <el-form-item label="证件种类:">
21 <el-input v-model="ruleForm.operator" :disabled="true"></el-input> 18 <el-input v-model="ruleForm.zjzl" ></el-input>
22 </el-form-item> 19 </el-form-item>
23 </el-col> 20 </el-col>
24 <el-col :span="12"> 21 <el-col :span="12">
25 <el-form-item label="入库时间:" prop="operationtime"> 22 <el-form-item label="证件号:" prop="zjh">
26 <el-date-picker v-model="ruleForm.operationtime" class="width100" type="datetime" :disabled="!readOnly" 23 <el-input v-model="ruleForm.zjh" ></el-input>
27 value-format="yyyy-MM-dd HH:mm:ss">
28 </el-date-picker>
29 </el-form-item> 24 </el-form-item>
30 </el-col> 25 </el-col>
31 </el-row> 26 </el-row>
32 <div> 27
33 <el-table :data="tableForm" border style="width: 100%" 28 <el-row>
34 :header-cell-style="{ 'text-align': 'center', background: 'rgb(236, 245, 255)' }" 29 <el-col :span="12">
35 :cell-style="{ 'text-align': 'center' }"> 30 <el-form-item label="法人名称:" prop="frmc">
36 <el-table-column prop="name" label="纸质证书类型" width="200"></el-table-column> 31 <el-input v-model="ruleForm.frmc" ></el-input>
37 <el-table-column prop="ksysxlh" label="开始印刷序列号" width="200"> 32 </el-form-item>
38 <template slot-scope="scope"> 33 </el-col>
39 <el-input v-model="scope.row.ksysxlh" @blur="ysxlhDeal(scope.row)" maxlength="11" 34 <el-col :span="12">
40 oninput="value=value.replace(/[^\d.]/g,'')" :disabled="!readOnly"></el-input> 35 <el-form-item label="法人电话:" prop="frdh">
41 </template> 36 <el-input v-model="ruleForm.frdh" ></el-input>
42 </el-table-column> 37 </el-form-item>
43 <el-table-column prop="jsysxlh" label="结束印刷序列号" width="200"> 38 </el-col>
44 <template slot-scope="scope"> 39 </el-row>
45 <el-input v-model="scope.row.jsysxlh" @blur="ysxlhDeal(scope.row)" maxlength="11" 40 <el-row>
46 oninput="value=value.replace(/[^\d.]/g,'')" :disabled="!readOnly"></el-input> 41 <el-col :span="12">
47 </template> 42 <el-form-item label="单位地址:">
48 </el-table-column> 43 <el-input v-model="ruleForm.dwdz" ></el-input>
49 <el-table-column prop="bs" label="本数"> 44 </el-form-item>
50 <template slot-scope="scope"> 45 </el-col>
51 <span v-if="scope.row.bs == 0" class="font-red">系统计算</span> 46 <el-col :span="12">
52 <span v-else-if="scope.row.bs < 0" class="font-red">印刷序列号有误</span> 47 <el-form-item label="邮编:" prop="yb">
53 <span v-else>{{ scope.row.bs }}</span> 48 <el-input v-model="ruleForm.yb" ></el-input>
54 </template> 49 </el-form-item>
55 </el-table-column> 50 </el-col>
56 </el-table> 51 </el-row>
57 </div> 52 <el-form-item >
58 <el-form-item label="备注" class="middle-margin-bottom">
59 <el-input type="textarea" v-model="ruleForm.bz" :rows="4" :disabled="!readOnly"></el-input>
60 </el-form-item>
61 <el-form-item v-if="readOnly">
62 <el-button type="primary" @click="submitForm">保存</el-button> 53 <el-button type="primary" @click="submitForm">保存</el-button>
63 <el-button @click="closeDialog">取消</el-button> 54 <el-button @click="closeDialog">取消</el-button>
64 </el-form-item> 55 </el-form-item>
...@@ -67,8 +58,7 @@ ...@@ -67,8 +58,7 @@
67 58
68 <script> 59 <script>
69 import store from '@/store/index.js' 60 import store from '@/store/index.js'
70 import { zsrk, getZsglInfo } from "@/api/zsgl.js" 61 import { addQy } from "@/api/xxba.js"
71 import { getSysSerialSingle } from "@/api/sysSerial.js"
72 export default { 62 export default {
73 props: { 63 props: {
74 formData: { 64 formData: {
...@@ -136,9 +126,7 @@ export default { ...@@ -136,9 +126,7 @@ export default {
136 this.tableForm[0].bs = null; 126 this.tableForm[0].bs = null;
137 this.tableForm[1].bs = null; 127 this.tableForm[1].bs = null;
138 this.getDetailInfo(this.formData.bsmBatch); 128 this.getDetailInfo(this.formData.bsmBatch);
139 } else { 129 } else {}
140 this.ywhSerial();
141 }
142 }, 130 },
143 methods: { 131 methods: {
144 //表单提交 132 //表单提交
...@@ -152,31 +140,19 @@ export default { ...@@ -152,31 +140,19 @@ export default {
152 return; 140 return;
153 } 141 }
154 }) 142 })
155 zsrk(this.ruleForm).then(res => { 143 addQy(this.ruleForm).then(res => {
156 if (res.code == 200) { 144 if (res.code == 200) {
157 this.$message.success('保存成功') 145 this.$message.success('保存成功')
158 this.$emit("input", false); 146 this.$emit("input", false);
159 this.$refs['ruleForm'].resetFields(); 147 this.$refs['ruleForm'].resetFields();
160 this.resetTableFields(); 148 this.resetTableFields();
149 this.closeDialog();
161 this.$parent.queryClick(); 150 this.$parent.queryClick();
162 } else { 151 } else {
163 this.$message.error(res.message); 152 this.$message.error(res.message);
164 } 153 }
165 }) 154 })
166 }, 155 },
167 //序列号获取
168 /**
169 * @description: 序列号获取
170 * @author: renchao
171 */
172 ywhSerial () {
173 getSysSerialSingle(this.ywhQueryForm).then(res => {
174 if (res.code == 200) {
175 this.ruleForm.batchno = res.message;
176 this.readOnly = true;
177 }
178 })
179 },
180 //获取详情信息 156 //获取详情信息
181 /** 157 /**
182 * @description: 获取详情信息 158 * @description: 获取详情信息
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
11 <el-row> 11 <el-row>
12 <el-col :span="5"> 12 <el-col :span="5">
13 <el-form-item label="姓名/名称"> 13 <el-form-item label="姓名/名称">
14 <el-input placeholder="姓名/名称" v-model="queryForm.sqrmc" clearable class="width100"> 14 <el-input placeholder="姓名/名称" v-model="queryForm.qymc" clearable class="width100">
15 </el-input> 15 </el-input>
16 </el-form-item> 16 </el-form-item>
17 </el-col> 17 </el-col>
...@@ -48,6 +48,8 @@ ...@@ -48,6 +48,8 @@
48 mixins: [table], 48 mixins: [table],
49 mounted () { 49 mounted () {
50 sendThis(this); 50 sendThis(this);
51 },
52 activated () {
51 this.queryClick() 53 this.queryClick()
52 }, 54 },
53 computed: { 55 computed: {
...@@ -55,7 +57,7 @@ ...@@ -55,7 +57,7 @@
55 data () { 57 data () {
56 return { 58 return {
57 queryForm: { 59 queryForm: {
58 sqrmc: "", 60 qymc: "",
59 zjh: "", 61 zjh: "",
60 }, 62 },
61 pageData: { 63 pageData: {
...@@ -75,7 +77,12 @@ ...@@ -75,7 +77,12 @@
75 */ 77 */
76 queryClick () { 78 queryClick () {
77 this.$startLoading(); 79 this.$startLoading();
78 queryQyByPage(10,1).then((res) => { 80 let pageForm = {
81 pageSize: this.pageData.size,
82 pageNumber: this.pageData.current
83 }
84 let data = {...this.queryForm, ...pageForm}
85 queryQyByPage(data).then((res) => {
79 this.$endLoading(); 86 this.$endLoading();
80 if (res.code === 200) { 87 if (res.code === 200) {
81 let { total, records } = res.result; 88 let { total, records } = res.result;
...@@ -84,8 +91,12 @@ ...@@ -84,8 +91,12 @@
84 } 91 }
85 }); 92 });
86 }, 93 },
87 handleSearch () { }, 94 handleSearch () {
88 handleAdd () { }, 95 this.queryClick();
96 },
97 handleAdd () {
98 this.$popupDialog("添加企业", "xxba/qyxxba/components/addDialog", {}, "50%")
99 },
89 handleDelete () { } 100 handleDelete () { }
90 } 101 }
91 } 102 }
......
1 <template>
2 <el-form ref="ruleForm" :model="ruleForm" label-width="100px" :rules="rules">
3 <el-row>
4 <el-col :span="12">
5 <el-form-item label="企业名称:" prop="qymc">
6 <el-input v-model="ruleForm.qymc" ></el-input>
7 </el-form-item>
8 </el-col>
9 <el-col :span="12">
10 <el-form-item label="电话:" prop="dh">
11 <el-input v-model="ruleForm.dh" ></el-input>
12 </el-form-item>
13 </el-col>
14 </el-row>
15 <el-row>
16 <el-col :span="12">
17 <el-form-item label="证件种类:">
18 <el-input v-model="ruleForm.zjzl" ></el-input>
19 </el-form-item>
20 </el-col>
21 <el-col :span="12">
22 <el-form-item label="证件号:" prop="zjh">
23 <el-input v-model="ruleForm.zjh" ></el-input>
24 </el-form-item>
25 </el-col>
26 </el-row>
27
28 <el-row>
29 <el-col :span="12">
30 <el-form-item label="法人名称:" prop="frmc">
31 <el-input v-model="ruleForm.frmc" ></el-input>
32 </el-form-item>
33 </el-col>
34 <el-col :span="12">
35 <el-form-item label="法人电话:" prop="frdh">
36 <el-input v-model="ruleForm.frdh" ></el-input>
37 </el-form-item>
38 </el-col>
39 </el-row>
40 <el-row>
41 <el-col :span="12">
42 <el-form-item label="单位地址:">
43 <el-input v-model="ruleForm.dwdz" ></el-input>
44 </el-form-item>
45 </el-col>
46 <el-col :span="12">
47 <el-form-item label="邮编:" prop="yb">
48 <el-input v-model="ruleForm.yb" ></el-input>
49 </el-form-item>
50 </el-col>
51 </el-row>
52 <el-form-item >
53 <el-button type="primary" @click="submitForm">保存</el-button>
54 <el-button @click="closeDialog">取消</el-button>
55 </el-form-item>
56 </el-form>
57 </template>
58
59 <script>
60 import store from '@/store/index.js'
61 import { addYh } from "@/api/xxba.js"
62 export default {
63 props: {
64 formData: {
65 type: Object,
66 default: () => { },
67 },
68 },
69 data () {
70 return {
71 DJJGLIST: store.getters.dictData['ywly'],
72 readOnly: false,
73 //表单提交数据
74 ruleForm: {
75 batchno: '',
76 djjg: '',
77 operator: '超级管理员',
78 operationtime: '',
79 bz: '',
80 zsstarno: '',
81 zsendno: '',
82 zsnum: '',
83 zmstarno: '',
84 zmendno: '',
85 zmnum: ''
86 },
87 //表格数据
88 tableForm: [
89 {
90 name: '不动产权证书',
91 ksysxlh: '',
92 jsysxlh: '',
93 bs: 0,
94 zslx: 1
95 },
96 {
97 name: '不动产登记证明',
98 ksysxlh: '',
99 jsysxlh: '',
100 bs: 0,
101 zslx: 2
102 }
103 ],
104 //证书入库业务号参数
105 ywhQueryForm: {
106 serialtype: 'zsrkbh',
107 serialname: '证书入库编号',
108 serialcode: 'zsrk',
109 digit: '5'
110 },
111 rules: {
112 batchNo: [
113 { required: true, message: '入库编号不能为空', trigger: 'blur' }
114 ],
115 djjg: [
116 { required: true, message: '请选择登记机构', trigger: 'change' }
117 ],
118 rksj: [
119 { required: true, message: '请选择入库时间', trigger: 'change' }
120 ],
121 },
122 }
123 },
124 mounted () {
125 if (this.formData.bsmBatch) {
126 this.tableForm[0].bs = null;
127 this.tableForm[1].bs = null;
128 this.getDetailInfo(this.formData.bsmBatch);
129 } else {}
130 },
131 methods: {
132 //表单提交
133 /**
134 * @description: 表单提交
135 * @author: renchao
136 */
137 submitForm () {
138 this.tableForm.forEach((item, index) => {
139 if (item.bs < 0) {
140 return;
141 }
142 })
143 addYh(this.ruleForm).then(res => {
144 if (res.code == 200) {
145 this.$message.success('保存成功')
146 this.$emit("input", false);
147 this.$refs['ruleForm'].resetFields();
148 this.resetTableFields();
149 this.closeDialog();
150 this.$parent.queryClick();
151 } else {
152 this.$message.error(res.message);
153 }
154 })
155 },
156 //获取详情信息
157 /**
158 * @description: 获取详情信息
159 * @param {*} bsmBatch
160 * @author: renchao
161 */
162 getDetailInfo (bsmBatch) {
163 getZsglInfo({ "bsmBatch": bsmBatch }).then(res => {
164 if (res.code == 200) {
165 this.ruleForm = res.result;
166 this.readOnly = false;
167 this.tableForm[0].ksysxlh = res.result.zsstarno;
168 this.tableForm[0].jsysxlh = res.result.zsendno;
169 this.tableForm[0].bs = res.result.zsnum;
170 this.tableForm[1].ksysxlh = res.result.zmstarno;
171 this.tableForm[1].jsysxlh = res.result.zmendno;
172 this.tableForm[1].bs = res.result.zmnum;
173 }
174 })
175 },
176 //印刷序列号处理
177 /**
178 * @description: 印刷序列号处理
179 * @param {*} item
180 * @author: renchao
181 */
182 ysxlhDeal (item) {
183 if (item.ksysxlh && item.jsysxlh) {
184 if (item.ksysxlh.length == item.jsysxlh.length) {
185 if (item.ksysxlh.length != 11) {
186 item.bs = -1;
187 return;
188 }
189 if (item.ksysxlh > item.jsysxlh) {
190 item.bs = -1;
191 return;
192 }
193 item.bs = item.jsysxlh - item.ksysxlh + 1;
194 if (item.zslx == 1) {
195 this.ruleForm.zsstarno = item.ksysxlh;
196 this.ruleForm.zsendno = item.jsysxlh;
197 this.ruleForm.zsnum = item.bs
198 } else if (item.zslx == 2) {
199 this.ruleForm.zmstarno = item.ksysxlh;
200 this.ruleForm.zmendno = item.jsysxlh;
201 this.ruleForm.zmnum = item.bs
202 }
203 } else {
204 item.bs = -1;
205 }
206 } else {
207 item.bs = 0;
208 if (item.zslx == 1) {
209 this.ruleForm.zsstarno = '';
210 this.ruleForm.zsendno = '';
211 this.ruleForm.zsnum = item.bs
212 } else if (item.zslx == 2) {
213 this.ruleForm.zmstarno = '';
214 this.ruleForm.zmendno = '';
215 this.ruleForm.zmnum = item.bs
216 }
217 }
218 },
219 /**
220 * @description: resetTableFields
221 * @author: renchao
222 */
223 resetTableFields () {
224 this.tableForm = [
225 {
226 name: '不动产权证书',
227 ksysxlh: '',
228 jsysxlh: '',
229 bs: 0,
230 zslx: 1
231 },
232 {
233 name: '不动产权登记证明',
234 ksysxlh: '',
235 jsysxlh: '',
236 bs: 0,
237 zslx: 2
238 }
239 ]
240 },
241 /**
242 * @description: closeDialog
243 * @author: renchao
244 */
245 closeDialog () {
246 this.$popupCacel()
247 this.$refs['ruleForm'].resetFields();
248 this.resetTableFields();
249 }
250 }
251 }
252 </script>
253 <style scoped lang="scss">
254 @import "~@/styles/mixin.scss";
255 @import "~@/styles/dialogBoxheader.scss";
256
257 .font-red {
258 color: red
259 }
260
261 .middle-margin-bottom {
262 margin-top: 20px
263 }
264 </style>
1 /* 1 /*
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-09-01 10:17:27 4 * @LastEditTime: 2023-09-01 10:17:27
5 */ 5 */
...@@ -28,8 +28,8 @@ class data extends filter { ...@@ -28,8 +28,8 @@ class data extends filter {
28 } 28 }
29 }, 29 },
30 { 30 {
31 prop: "sqrmc", 31 prop: "qymc",
32 label: "姓名/名称", 32 label: "名称",
33 }, 33 },
34 { 34 {
35 prop: "zjzl", 35 prop: "zjzl",
...@@ -65,7 +65,7 @@ class data extends filter { ...@@ -65,7 +65,7 @@ class data extends filter {
65 label: "法人名称", 65 label: "法人名称",
66 }, 66 },
67 { 67 {
68 prop: "txdz", 68 prop: "dwdz",
69 label: "地址", 69 label: "地址",
70 }, 70 },
71 { 71 {
......
1 <!-- 1 <!--
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-09-04 16:59:15 4 * @LastEditTime: 2023-09-01 10:17:48
5 --> 5 -->
6 <template> 6 <template>
7 <div class="from-clues"> 7 <div class="from-clues">
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
11 <el-row> 11 <el-row>
12 <el-col :span="5"> 12 <el-col :span="5">
13 <el-form-item label="姓名/名称"> 13 <el-form-item label="姓名/名称">
14 <el-input placeholder="姓名/名称" v-model="queryForm.sqrmc" clearable class="width100"> 14 <el-input placeholder="姓名/名称" v-model="queryForm.qymc" clearable class="width100">
15 </el-input> 15 </el-input>
16 </el-form-item> 16 </el-form-item>
17 </el-col> 17 </el-col>
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
24 <el-col :span="14" class="btnColRight"> 24 <el-col :span="14" class="btnColRight">
25 <el-form-item> 25 <el-form-item>
26 <el-button type="primary" native-type="submit" @click="handleSearch">查询</el-button> 26 <el-button type="primary" native-type="submit" @click="handleSearch">查询</el-button>
27 <el-button type="primary" native-type="submit" @click="handleAdd">添加</el-button>
27 </el-form-item> 28 </el-form-item>
28 </el-col> 29 </el-col>
29 </el-row> 30 </el-row>
...@@ -31,54 +32,76 @@ ...@@ -31,54 +32,76 @@
31 </div> 32 </div>
32 <div class="from-clues-content"> 33 <div class="from-clues-content">
33 <lb-table :page-size="pageData.size" border :current-page.sync="pageData.currentPage" :heightNum="280" 34 <lb-table :page-size="pageData.size" border :current-page.sync="pageData.currentPage" :heightNum="280"
34 :total="tableData.total" @size-change="handleSizeChange" @p-current-change="handleCurrentChange" 35 :total="tableData.total" @size-change="handleSizeChange" @p-current-change="handleCurrentChange"
35 :column="tableData.columns" :data="tableData.data"> 36 :column="tableData.columns" :data="tableData.data">
36 </lb-table> 37 </lb-table>
37 </div> 38 </div>
38 </div> 39 </div>
39 </template> 40 </template>
40 <script> 41 <script>
41 import table from "@/utils/mixin/table" 42 import table from "@/utils/mixin/table"
42 import { datas, sendThis } from "./data" 43 import { datas, sendThis } from "./data"
43 export default { 44 import { queryYhByPage, addYh } from "@/api/xxba.js";
44 name: "cwrz", 45 export default {
45 components: {}, 46 name: "cwrz",
46 mixins: [table], 47 components: {},
47 mounted () { 48 mixins: [table],
48 sendThis(this); 49 mounted () {
50 sendThis(this);
51 },
52 activated () {
53 this.queryClick()
54 },
55 computed: {
56 },
57 data () {
58 return {
59 queryForm: {
60 qymc: "",
61 zjh: "",
62 },
63 pageData: {
64 current: 1,
65 size: 10,
66 },
67 tableData: {
68 total: 0,
69 columns: datas.columns(),
70 data: [],
71 },
72 };
73 },
74 methods: {
75 /**
76 * @description: queryClick
77 */
78 queryClick () {
79 this.$startLoading();
80 let pageForm = {
81 pageSize: this.pageData.size,
82 pageNumber: this.pageData.current
83 }
84 let data = {...this.queryForm, ...pageForm}
85 queryYhByPage(data).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 });
49 }, 93 },
50 computed: { 94 handleSearch () {
95 this.queryClick();
51 }, 96 },
52 data () { 97 handleAdd () {
53 return { 98 this.$popupDialog("添加企业", "xxba/yhjgba/components/addDialog", {}, "50%")
54 queryForm: {
55 sqrmc: "",
56 zjh: "",
57 },
58 pageData: {
59 current: 1,
60 size: 10,
61 },
62 tableData: {
63 total: 0,
64 columns: datas.columns(),
65 data: [],
66 },
67 };
68 }, 99 },
69 methods: { 100 handleDelete () { }
70 /**
71 * @description: queryClick
72 * @author: renchao
73 */
74 queryClick () {
75 },
76 handleSearch () { },
77 handleDelete () { }
78 }
79 } 101 }
102 }
80 </script> 103 </script>
81 <style scoped lang="scss"> 104 <style scoped lang="scss">
82 @import "~@/styles/public.scss"; 105 @import "~@/styles/public.scss";
83 </style> 106 </style>
84 107
......