apply-clients 3.4.4 → 3.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apply-clients",
3
- "version": "3.4.4",
3
+ "version": "3.4.5",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -1,211 +1,211 @@
1
- <template>
2
- <work-busy :is-busy="showWork" v-show="showWork"></work-busy>
3
-
4
- <div class="col-sm-12" style="margin: 20px 0px;">
5
- <criteria-paged :model="model" v-ref:cp>
6
- <criteria partial='criteria' @condition-changed='search' v-ref:cri>
7
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
- </div>
9
- </criteria>
10
- <data-grid :model="model" v-ref:grid partial='list' class="list_area table_sy" style="padding: 0px">
11
- <template partial='head'>
12
- <tr>
13
- <th class="textNoLineBreak">序号</th>
14
- <th class="textNoLineBreak">区/县</th>
15
- <th class="textNoLineBreak">片区</th>
16
- <th class="textNoLineBreak">街道</th>
17
- <th class="textNoLineBreak">小区</th>
18
- <th class="textNoLineBreak">详细地址</th>
19
- <th class="textNoLineBreak">地址状态</th>
20
- <th class="textNoLineBreak">客户编号</th>
21
- <th class="textNoLineBreak">用户姓名</th>
22
- <th class="textNoLineBreak">电话</th>
23
- <th class="textNoLineBreak">证件类型</th>
24
- <th class="textNoLineBreak">证件号码</th>
25
- <th class="textNoLineBreak">时间</th>
26
- <th class="textNoLineBreak">备注</th>
27
- <th class="textNoLineBreak">
28
- <button type="button" class="btn btn-info head-but"
29
- :disabled="$parent.$parent.$parent.mark === 1"
30
- @click="$parent.$parent.$parent.showFileModal()">导入</button>
31
- <a type="button" class="btn btn-info head-but"
32
- href="/apply/download/excel/批量导入.xlsx" download>模板下载</a>
33
- </th>
34
- </tr>
35
- </template>
36
- <template partial='body'>
37
- <tr>
38
- <td style="text-align: center;">
39
- <nobr>{{$index+1}}</nobr>
40
- </td>
41
- <td style="text-align: center;">
42
- <nobr>{{row.f_pcd}}</nobr>
43
- </td>
44
- <td style="text-align: center;">
45
- <nobr>{{row.f_slice_area}}</nobr>
46
- </td>
47
- <td style="text-align: center;">
48
- <nobr>{{row.f_street}}</nobr>
49
- </td>
50
- <td style="text-align: center;">
51
- <nobr>{{row.f_residential_area}}</nobr>
52
- </td>
53
- <td style="text-align: center;">
54
- <nobr>{{row.f_address}}</nobr>
55
- </td>
56
- <td style="text-align: center;">
57
- <nobr>{{row.f_address_state}}</nobr>
58
- </td>
59
- <td style="text-align: center;">
60
- <nobr>{{row.f_userinfo_code}}</nobr>
61
- </td>
62
- <td style="text-align: center;">
63
- <nobr>{{row.f_user_name}}</nobr>
64
- </td>
65
- <td style="text-align: center;">
66
- <nobr>{{row.f_user_phone}}</nobr>
67
- </td>
68
- <td style="text-align: center;">
69
- <nobr>{{row.f_credentials}}</nobr>
70
- </td>
71
- <td style="text-align: center;">
72
- <nobr>{{row.f_idnumber}}</nobr>
73
- </td>
74
- <td style="text-align: center;">
75
- <nobr>{{row.f_create_date}}</nobr>
76
- </td>
77
- <td style="text-align: center;">
78
- <nobr>{{row.f_userinfo_comments}}</nobr>
79
- </td>
80
- <td style="text-align: center;">
81
- <nobr>
82
-
83
- </nobr>
84
- </td>
85
- </tr>
86
- </template>
87
- </data-grid>
88
- </criteria-paged>
89
- </div>
90
- <modal :show.sync="showFile" v-ref:modal backdrop="true" title="选择文件">
91
- <header slot="modal-header" class="modal-header">
92
- <button type="button" class="close" @click="closeFile"><span>&times;</span></button>
93
- <h4 class="modal-title">选择文件</h4>
94
- </header>
95
- <article slot="modal-body" class="modal-body">
96
- <div class="form-group">
97
- <file-upload class="my-file-uploader" name="useraddressUploadFile" action="rs/file/uploadFile" tagname="确定" multiple v-ref:file></file-upload>
98
- </div>
99
- </article>
100
- <footer slot="modal-footer" class="modal-footer"></footer>
101
- </modal>
102
- </template>
103
- <script>
104
- import {PagedList} from 'vue-client'
105
- import {HttpResetClass} from 'vue-client'
106
-
107
- export default {
108
- title: '地址管理',
109
- props: {
110
- selectdata: {
111
- type: Object
112
- },
113
- mark: {
114
- type: Number,
115
- default: 0 // 0:正常 1:禁用
116
- }
117
- },
118
- data () {
119
- return {
120
- showFile: false,
121
- model: new PagedList('rs/sql/getAddressAanUserinfo', 20, {
122
- data: {
123
- f_filialeid: this.$login.f.orgid,
124
- f_process_id: this.selectdata.f_process_id
125
- }
126
- }),
127
- showWork: false
128
- }
129
- },
130
- ready () {
131
- this.search()
132
- },
133
- methods: {
134
- showFileModal() {
135
- this.showFile = !this.showFile
136
- },
137
- async search () {
138
- this.$refs.cp.$refs.cri.search()
139
- },
140
- // 关闭文件上传对话框
141
- closeFile() {
142
- this.showWork = false
143
- this.showFile = false
144
- // 将选的文件清空
145
- this.$refs.file.$el.querySelector('input').value = ''
146
- this.search()
147
- }
148
- },
149
- events: {
150
- 'beforeFileUpload' (file) {
151
- this.showWork = true
152
- },
153
- async 'onFileUpload'(file, result) {
154
- let data = {
155
- selectdata: this.selectdata,
156
- filepath: result.f_downloadpath,
157
- user: this.$login.f,
158
- mark: this.mark
159
- }
160
-
161
- try {
162
- let res = await this.$resetpost(`rs/logic/importAddressAndUserinfo`, {data: data}, {
163
- resolveMsg: null,
164
- rejectMsg: '导入失败!!!',
165
- silent: true
166
- }, 0)
167
- } catch (e) {
168
- // this.closeFile()
169
- } finally {
170
- this.closeFile()
171
- }
172
-
173
- }
174
- },
175
- computed: {
176
- },
177
- watch: {
178
- 'model.count': {
179
- handler: function () {
180
- if (this.model.count != this.selectdata.f_apply_count) {
181
- console.log(this.model.count)
182
- console.log(this.selectdata.f_apply_count)
183
- console.log(this.model.count !== this.selectdata.f_apply_count)
184
- this.selectdata.f_apply_count = this.model.count
185
-
186
- this.$resetpost(
187
- 'rs/entity/t_apply',
188
- this.selectdata,
189
- {resolveMsg: null, rejectMsg: '数据更新失败!!!'}
190
- ).then(res => {
191
- this.$dispatch('breakControl', this.selectdata)
192
- })
193
- }
194
- }
195
- }
196
- }
197
- }
198
- </script>
199
- <style scoped>
200
- .textNoLineBreak {
201
- white-space: nowrap;
202
- }
203
- .head-but{
204
- margin-left: 5px;
205
- height: 34px;
206
- /*background-color: #6aa6e2;*/
207
- border-radius: 4px;
208
- font-family: PingFang;
209
- color: #ffffff;
210
- }
211
- </style>
1
+ <template>
2
+ <work-busy :is-busy="showWork" v-show="showWork"></work-busy>
3
+
4
+ <div class="col-sm-12" style="margin: 20px 0px;">
5
+ <criteria-paged :model="model" v-ref:cp>
6
+ <criteria partial='criteria' @condition-changed='search' v-ref:cri>
7
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
+ </div>
9
+ </criteria>
10
+ <data-grid :model="model" v-ref:grid partial='list' class="list_area table_sy" style="padding: 0px">
11
+ <template partial='head'>
12
+ <tr>
13
+ <th class="textNoLineBreak">序号</th>
14
+ <th class="textNoLineBreak">区/县</th>
15
+ <th class="textNoLineBreak">片区</th>
16
+ <th class="textNoLineBreak">街道</th>
17
+ <th class="textNoLineBreak">小区</th>
18
+ <th class="textNoLineBreak">详细地址</th>
19
+ <th class="textNoLineBreak">地址状态</th>
20
+ <th class="textNoLineBreak">客户编号</th>
21
+ <th class="textNoLineBreak">用户姓名</th>
22
+ <th class="textNoLineBreak">电话</th>
23
+ <th class="textNoLineBreak">证件类型</th>
24
+ <th class="textNoLineBreak">证件号码</th>
25
+ <th class="textNoLineBreak">时间</th>
26
+ <th class="textNoLineBreak">备注</th>
27
+ <th class="textNoLineBreak">
28
+ <button type="button" class="btn btn-info head-but"
29
+ :disabled="$parent.$parent.$parent.mark === 1"
30
+ @click="$parent.$parent.$parent.showFileModal()">导入</button>
31
+ <a type="button" class="btn btn-info head-but"
32
+ href="/apply/download/excel/批量导入.xlsx" download>模板下载</a>
33
+ </th>
34
+ </tr>
35
+ </template>
36
+ <template partial='body'>
37
+ <tr>
38
+ <td style="text-align: center;">
39
+ <nobr>{{$index+1}}</nobr>
40
+ </td>
41
+ <td style="text-align: center;">
42
+ <nobr>{{row.f_pcd}}</nobr>
43
+ </td>
44
+ <td style="text-align: center;">
45
+ <nobr>{{row.f_slice_area}}</nobr>
46
+ </td>
47
+ <td style="text-align: center;">
48
+ <nobr>{{row.f_street}}</nobr>
49
+ </td>
50
+ <td style="text-align: center;">
51
+ <nobr>{{row.f_residential_area}}</nobr>
52
+ </td>
53
+ <td style="text-align: center;">
54
+ <nobr>{{row.f_address}}</nobr>
55
+ </td>
56
+ <td style="text-align: center;">
57
+ <nobr>{{row.f_address_state}}</nobr>
58
+ </td>
59
+ <td style="text-align: center;">
60
+ <nobr>{{row.f_userinfo_code}}</nobr>
61
+ </td>
62
+ <td style="text-align: center;">
63
+ <nobr>{{row.f_user_name}}</nobr>
64
+ </td>
65
+ <td style="text-align: center;">
66
+ <nobr>{{row.f_user_phone}}</nobr>
67
+ </td>
68
+ <td style="text-align: center;">
69
+ <nobr>{{row.f_credentials}}</nobr>
70
+ </td>
71
+ <td style="text-align: center;">
72
+ <nobr>{{row.f_idnumber}}</nobr>
73
+ </td>
74
+ <td style="text-align: center;">
75
+ <nobr>{{row.f_create_date}}</nobr>
76
+ </td>
77
+ <td style="text-align: center;">
78
+ <nobr>{{row.f_userinfo_comments}}</nobr>
79
+ </td>
80
+ <td style="text-align: center;">
81
+ <nobr>
82
+
83
+ </nobr>
84
+ </td>
85
+ </tr>
86
+ </template>
87
+ </data-grid>
88
+ </criteria-paged>
89
+ </div>
90
+ <modal :show.sync="showFile" v-ref:modal backdrop="true" title="选择文件">
91
+ <header slot="modal-header" class="modal-header">
92
+ <button type="button" class="close" @click="closeFile"><span>&times;</span></button>
93
+ <h4 class="modal-title">选择文件</h4>
94
+ </header>
95
+ <article slot="modal-body" class="modal-body">
96
+ <div class="form-group">
97
+ <file-upload class="my-file-uploader" name="useraddressUploadFile" action="rs/file/uploadFile" tagname="确定" multiple v-ref:file></file-upload>
98
+ </div>
99
+ </article>
100
+ <footer slot="modal-footer" class="modal-footer"></footer>
101
+ </modal>
102
+ </template>
103
+ <script>
104
+ import {PagedList} from 'vue-client'
105
+ import {HttpResetClass} from 'vue-client'
106
+
107
+ export default {
108
+ title: '地址管理',
109
+ props: {
110
+ selectdata: {
111
+ type: Object
112
+ },
113
+ mark: {
114
+ type: Number,
115
+ default: 0 // 0:正常 1:禁用
116
+ }
117
+ },
118
+ data () {
119
+ return {
120
+ showFile: false,
121
+ model: new PagedList('rs/sql/getAddressAanUserinfo', 20, {
122
+ data: {
123
+ f_filialeid: this.$login.f.orgid,
124
+ f_process_id: this.selectdata.f_process_id
125
+ }
126
+ }),
127
+ showWork: false
128
+ }
129
+ },
130
+ ready () {
131
+ this.search()
132
+ },
133
+ methods: {
134
+ showFileModal() {
135
+ this.showFile = !this.showFile
136
+ },
137
+ async search () {
138
+ this.$refs.cp.$refs.cri.search()
139
+ },
140
+ // 关闭文件上传对话框
141
+ closeFile() {
142
+ this.showWork = false
143
+ this.showFile = false
144
+ // 将选的文件清空
145
+ this.$refs.file.$el.querySelector('input').value = ''
146
+ this.search()
147
+ }
148
+ },
149
+ events: {
150
+ 'beforeFileUpload' (file) {
151
+ this.showWork = true
152
+ },
153
+ async 'onFileUpload'(file, result) {
154
+ let data = {
155
+ selectdata: this.selectdata,
156
+ filepath: result.f_downloadpath,
157
+ user: this.$login.f,
158
+ mark: this.mark
159
+ }
160
+
161
+ try {
162
+ let res = await this.$resetpost(`rs/logic/importAddressAndUserinfo`, {data: data}, {
163
+ resolveMsg: null,
164
+ rejectMsg: '导入失败!!!',
165
+ silent: true
166
+ }, 0)
167
+ } catch (e) {
168
+ // this.closeFile()
169
+ } finally {
170
+ this.closeFile()
171
+ }
172
+
173
+ }
174
+ },
175
+ computed: {
176
+ },
177
+ watch: {
178
+ 'model.count': {
179
+ handler: function () {
180
+ if (this.model.count != this.selectdata.f_apply_count) {
181
+ console.log(this.model.count)
182
+ console.log(this.selectdata.f_apply_count)
183
+ console.log(this.model.count !== this.selectdata.f_apply_count)
184
+ this.selectdata.f_apply_count = this.model.count
185
+
186
+ this.$resetpost(
187
+ 'rs/entity/t_apply',
188
+ this.selectdata,
189
+ {resolveMsg: null, rejectMsg: '数据更新失败!!!'}
190
+ ).then(res => {
191
+ this.$dispatch('breakControl', this.selectdata)
192
+ })
193
+ }
194
+ }
195
+ }
196
+ }
197
+ }
198
+ </script>
199
+ <style scoped>
200
+ .textNoLineBreak {
201
+ white-space: nowrap;
202
+ }
203
+ .head-but{
204
+ margin-left: 5px;
205
+ height: 34px;
206
+ /*background-color: #6aa6e2;*/
207
+ border-radius: 4px;
208
+ font-family: PingFang;
209
+ color: #ffffff;
210
+ }
211
+ </style>