apply-clients 7.1.36-yuchuan-83 → 7.1.36-yuchuan-84

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.
Files changed (36) hide show
  1. package/build/dev-server.js +3 -6
  2. package/package.json +1 -1
  3. package/src/components/android/AppServiceView.vue +603 -603
  4. package/src/components/android/Process/AppServiceControl.vue +1434 -1434
  5. package/src/components/android/Process/Processes/AppInstallationDetails.vue +1032 -1032
  6. package/src/components/android/Process/Processes/newAppInstallationDetails.vue +671 -671
  7. package/src/components/android/SealBind.vue +426 -426
  8. package/src/components/product/ApplyCharge/ApplyChargeList.vue +1115 -1115
  9. package/src/components/product/ApplyGaiXianCharge/ApplyGaiXianChargeList.vue +211 -211
  10. package/src/components/product/ApplyGuanXian/GuanXianExplorationSelect.vue +325 -325
  11. package/src/components/product/Function/Service/FunctionServiceControl.vue +581 -581
  12. package/src/components/product/GongJianPush/ApplyPushDispose.vue +299 -299
  13. package/src/components/product/GongJianPush/ApplyPushManage.vue +92 -92
  14. package/src/components/product/Ignition/IgnitionListManage.vue +604 -604
  15. package/src/components/product/List/OldShowDevices.vue +272 -272
  16. package/src/components/product/List/ShowAllActivity.vue +540 -540
  17. package/src/components/product/Print/BuildOrder/buildOrderList.vue +446 -446
  18. package/src/components/product/Print/BuildOrder/printGaiXianOrder.vue +271 -271
  19. package/src/components/product/Print/OrderPrint/GaiXianOrder.vue +314 -314
  20. package/src/components/product/Print/OrderPrint/printChaiChuOrder.vue +266 -266
  21. package/src/components/product/Process/ExplorationSelect.vue +593 -593
  22. package/src/components/product/Process/NewExplorationSelect.vue +587 -587
  23. package/src/components/product/Process/Processes/InstallationDetails.vue +1166 -1166
  24. package/src/components/product/Process/Processes/Print/printCharge.vue +250 -250
  25. package/src/components/product/Process/Processes/Print/printGaiXianCharge.vue +244 -244
  26. package/src/components/product/Process/Processes/chargeManagement.vue +766 -766
  27. package/src/components/product/Process/Processes/newInstallationDetails.vue +683 -683
  28. package/src/components/product/Process/Processes/supplementalAgreement.vue +298 -298
  29. package/src/components/product/Process/Service/ServiceControl.vue +2232 -2232
  30. package/src/components/product/ServiceView.vue +650 -650
  31. package/src/components/product/Supervisory/ExportExcel.vue +359 -359
  32. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +592 -592
  33. package/src/components/product/Supervisory/SupervisoryList.vue +585 -585
  34. package/src/components/product/Supervisory/YiBanSupervisoryList.vue +543 -543
  35. package/src/components/product/VueUtils/ApplyUpload.vue +302 -302
  36. package/src/components/product/VueUtils/HighMeter.vue +208 -208
@@ -1,314 +1,314 @@
1
- <template>
2
- <style id="printGaiXianOrderStyle">
3
- td{
4
- height: 30px;
5
- text-align: center;
6
- }
7
- table{
8
- width: 100%;
9
- margin: 0;
10
- padding: 0;
11
- border: 1px solid black;
12
- border-collapse:collapse;
13
- }
14
- h1,h2,h3,h4,h5,h6 {
15
- text-align: center;
16
- }
17
- .merge-content {
18
- text-align: left;
19
- vertical-align: top;
20
- padding: 10px;
21
- }
22
- .sign {
23
- height: 80px;
24
- }
25
- .sign_img {
26
- width: 60px;
27
- transform: rotate(0deg);
28
- }
29
- .replace_img{
30
- width: 60px;
31
- transform: rotate(0deg);
32
- }
33
- </style>
34
- <div style="margin-bottom: 20px" class="form-group select-overspread">
35
- <label class="control-label-justify control-label col-sm-10">打印派工单</label>
36
- <div class="col-sm-2">
37
- <button class="button_search button_spacing" type="button" style="width: max-content;position: absolute"
38
- @click="openModal()">打印预览
39
- </button>
40
- </div>
41
- </div>
42
- <modal v-if="showModal" :show.sync="showModal" title="打印预览" v-ref:modal large backdrop="false">
43
- <header slot="modal-header" class="modal-header">
44
- <button type="button" class="close" @click="colseModal()"><span>&times;</span></button>
45
- <h4 class="modal-title">打印预览</h4>
46
- </header>
47
- <article slot="modal-body" class="modal-body">
48
- <div id="printGaiXianOrder">
49
- <h2><span style="letter-spacing: 0px">天然气用户改线申请表</span></h2>
50
- <table>编号:{{ selectdata.f_apply_num }}</table>
51
- <table border="1" cellspacing="0" cellpadding="0">
52
- <tr>
53
- <td colspan="2">填写人</td>
54
- <td colspan="2">{{ selectdata.pgname }}</td>
55
- <td colspan="2">所属部门</td>
56
- <td colspan="2">{{ selectdata.user_dep }}</td>
57
- <td colspan="2">填写时间</td>
58
- <td colspan="2">{{ selectdata.finishtime }}</td>
59
- </tr>
60
- <tr>
61
- <td colspan="2">用户联系人</td>
62
- <td colspan="2">{{ selectdata.f_contact }}</td>
63
- <td colspan="2">单位</td>
64
- <td colspan="2">{{ selectdata.f_user_name }}</td>
65
- <td colspan="2">联系电话</td>
66
- <td colspan="2">{{ selectdata.f_phone }}</td>
67
- </tr>
68
- <tr>
69
- <td colspan="2">申请时间</td>
70
- <td colspan="2">{{ selectdata.f_apply_date }}</td>
71
- <td colspan="2">用户编号</td>
72
- <td colspan="2">{{ selectdata.f_userinfo_id }}</td>
73
- <td colspan="2">用气性质</td>
74
- <td colspan="2">{{ selectdata.f_apply_nature }}</td>
75
- </tr>
76
- <tr>
77
- <td colspan="2">详细地址</td>
78
- <td colspan="6">{{ selectdata.f_address }}</td>
79
- <td colspan="2">气表型号</td>
80
- <td colspan="2">{{ selectdata.f_meter_style }}</td>
81
- </tr>
82
- <tr>
83
- <td colspan="12"><h4>工程技术部现场勘察意见及材料预算</h4></td>
84
- </tr>
85
- <tr>
86
- <td colspan="3">申请类别</td>
87
- <td colspan="3">{{ selectdata.f_user_classification }}</td>
88
- <td colspan="3">改造原因</td>
89
- <td colspan="3">{{ selectdata.f_prospecting_result }}</td>
90
- </tr>
91
- <tr>
92
- <td colspan="2">工程整改方案</td>
93
- <td colspan="10">
94
- <p style="margin: 0px 0px 30px 0px">{{ selectdata.f_modify_plan }}</p>
95
- </td>
96
- </tr>
97
- <tr>
98
- <td colspan="2">整改收费</td>
99
- <td colspan="10">
100
- <p>金额小写:{{ selectdata.f_due_money}},金额大写:{{ selectdata.f_amount_words}}</p>
101
- </td>
102
- </tr>
103
- <tr>
104
- <td colspan="3">监理单位</td>
105
- <td colspan="3">{{ supervisorOperatorName }}</td>
106
- <td colspan="3">土建建单位</td>
107
- <td colspan="3">{{ engineeringOperatorName }}</td>
108
- </tr>
109
- <tr>
110
- <td colspan="2">检测单位</td>
111
- <td colspan="2">{{ checkOperatorName }}</td>
112
- <td colspan="2">项目负责人</td>
113
- <td colspan="2">{{ constructOperatorName }}</td>
114
- <td colspan="2">安装单位</td>
115
- <td colspan="2">{{ constructionUnitName }}</td>
116
- </tr>
117
- <tr>
118
- <td colspan="12"><h4>审批流程</h4></td>
119
- </tr>
120
- <tr>
121
- <td colspan="3">工程技术部负责人意见</td>
122
- <td colspan="3">
123
- <p>&emsp;</p>
124
- <p>&emsp;</p>
125
- <p>&emsp;</p>
126
- </td>
127
- <td colspan="3">分管领导意见</td>
128
- <td colspan="3">
129
- <p>&emsp;</p>
130
- <p>&emsp;</p>
131
- <p>&emsp;</p>
132
- </td>
133
- </tr>
134
- <tr>
135
- <td colspan="3">用户管理部收费情况</td>
136
- <td colspan="3">
137
- <p>已收费</p>
138
- <p>{{ selectdata.f_charge_user }}</p>
139
- <p>{{ selectdata.f_charge_date }}</p>
140
- </td>
141
- <td colspan="3">开材料意见</td>
142
- <td colspan="3">
143
- <p>{{ selectdata.f_material_number }}</p>
144
- <p>{{ selectdata.pgname }}</p>
145
- <p>{{ selectdata.finishtime }}</p>
146
- </td>
147
- </tr>
148
- <tr>
149
- <td colspan="3">工程技术部改线组意见</td>
150
- <td colspan="3">
151
- <p>&emsp;</p>
152
- <p>&emsp;</p>
153
- <p>&emsp;</p>
154
- </td>
155
- <td colspan="3">省安一/二/三意见</td>
156
- <td colspan="3">
157
- <p>&emsp;</p>
158
- <p>&emsp;</p>
159
- <p>&emsp;</p>
160
- </td>
161
- </tr>
162
- <tr>
163
- <td colspan="3">用户确认签字</td>
164
- <td colspan="9">
165
- <p>&emsp;</p>
166
- <p>&emsp;</p>
167
- <p>&emsp;</p>
168
- </td>
169
- </tr>
170
- </table>
171
- </div>
172
- </article>
173
- <footer slot="modal-footer" class="modal-footer">
174
- <button type="button" class="btn btn-primary" @click="print()">打印</button>
175
- </footer>
176
- </modal>
177
-
178
- <print-element v-show="false" v-ref:print id='printGaiXianOrder' styleid='printGaiXianOrderStyle'
179
- top='20' left='30' width='100%' height='100%'>
180
- </print-element>
181
- </template>
182
-
183
- <script>
184
- import {isEmpty} from '../../../Util'
185
- import {HttpResetClass} from "vue-client";
186
-
187
- Date.prototype.Format = function (fmt) {
188
- var o = {
189
- 'M+': this.getMonth() + 1, // 月份
190
- 'd+': this.getDate(), // 日
191
- 'H+': this.getHours(), // 小时
192
- 'm+': this.getMinutes(), // 分
193
- 's+': this.getSeconds(), // 秒
194
- 'q+': Math.floor((this.getMonth() + 3) / 3), // 季度
195
- 'S': this.getMilliseconds() // 毫秒
196
- }
197
- if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
198
- for (var k in o)
199
- if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
200
- return fmt
201
- }
202
- export default {
203
- title: '打印派工单',
204
- props: ['selectdata'],
205
- data () {
206
- return {
207
- supervisorOperatorName: '无',
208
- engineeringOperatorName: '无',
209
- checkOperatorName: '无',
210
- constructOperatorName: '无',
211
- constructionUnitName: '无',
212
- showModal: false,
213
- device: null
214
- }
215
- },
216
- ready () {
217
- this.getGaiXianData(this.selectdata.f_process_id)
218
- },
219
- methods: {
220
- async getUserName( param) {
221
- let http = new HttpResetClass()
222
- if(!isEmpty(param)){
223
- let data = {
224
- tablename: 't_user',
225
- condition: `id='${param}'`
226
- }
227
- let res = await http.load('POST', 'rs/sql/applySingleTable', {data: data},
228
- {resolveMsg: null, rejectMsg: '流程标识获取失败!!!'}
229
- )
230
- return res.data[0].name
231
- }else {
232
- return '无'
233
- }
234
- },
235
- openModal () {
236
- if (this.selectdata.f_due_money >= 0 ) {
237
- this.smalltoBIG(this.selectdata.f_due_money)
238
- }
239
- this.showModal = true
240
- },
241
- colseModal () {
242
- this.showModal = false
243
- },
244
- print () {
245
- this.showInput = false
246
- setTimeout(() => {
247
- this.$refs.print.PrintTable()
248
- }, 10)
249
- },
250
- // 金额转大写
251
- smalltoBIG (n) {
252
- let fraction = ['角', '分']
253
- let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖']
254
- let unit = [['元', '万', '亿'], ['', '拾', '佰', '仟']]
255
- let head = n < 0 ? '欠' : ''
256
- n = Math.abs(n)
257
-
258
- let s = ''
259
-
260
- for (var i = 0; i < fraction.length; i++) {
261
- s += (digit[Math.floor(n * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '')
262
- }
263
- s = s || '整'
264
- n = Math.floor(n)
265
-
266
- for (var i = 0; i < unit[0].length && n > 0; i++) {
267
- let p = ''
268
- for (var j = 0; j < unit[1].length && n > 0; j++) {
269
- p = digit[n % 10] + unit[1][j] + p
270
- n = Math.floor(n / 10)
271
- }
272
- s = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + s
273
- }
274
- let result = head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整')
275
- console.log('当前大写', result)
276
- this.selectdata.f_amount_words = result
277
- },
278
- async getGaiXianData(index) {
279
- let data = {
280
- condition: `1=1`,
281
- f_process_id: index
282
- }
283
- let http = new HttpResetClass()
284
- let res = await http.load(
285
- 'POST',
286
- `rs/sql/applyGetGaixian`,
287
- {data: data},
288
- {resolveMsg: null, rejectMsg: '改线数据查询失败!!!'}
289
- )
290
- this.selectdata.f_charge_user = res.data[0].jfname
291
- this.selectdata.f_charge_date = res.data[0].finishtime
292
- this.selectdata.pgname = res.data[0].pgname
293
- this.selectdata.user_dep = res.data[0].departmentname
294
- this.supervisorOperatorName = await this.getUserName(this.selectdata.f_supervisor_operator);
295
- this.engineeringOperatorName = await this.getUserName(this.selectdata.f_engineering_operator_id);
296
- this.checkOperatorName = await this.getUserName(this.selectdata.f_check_operator_id);
297
- this.constructOperatorName = await this.getUserName(this.selectdata.f_construct_operator_id);
298
- this.constructionUnitName = await this.getUserName(this.selectdata.f_construction_unit);
299
- }
300
- },
301
- computed: {
302
- orgs () {
303
- return this.$login.f.f_fengongsi
304
- },
305
- src () {
306
- // return require(`./img/${this.$login.f.number}.png`)
307
- }
308
- }
309
- }
310
- </script>
311
-
312
- <style scoped>
313
-
314
- </style>
1
+ <template>
2
+ <style id="printGaiXianOrderStyle">
3
+ td{
4
+ height: 30px;
5
+ text-align: center;
6
+ }
7
+ table{
8
+ width: 100%;
9
+ margin: 0;
10
+ padding: 0;
11
+ border: 1px solid black;
12
+ border-collapse:collapse;
13
+ }
14
+ h1,h2,h3,h4,h5,h6 {
15
+ text-align: center;
16
+ }
17
+ .merge-content {
18
+ text-align: left;
19
+ vertical-align: top;
20
+ padding: 10px;
21
+ }
22
+ .sign {
23
+ height: 80px;
24
+ }
25
+ .sign_img {
26
+ width: 60px;
27
+ transform: rotate(0deg);
28
+ }
29
+ .replace_img{
30
+ width: 60px;
31
+ transform: rotate(0deg);
32
+ }
33
+ </style>
34
+ <div style="margin-bottom: 20px" class="form-group select-overspread">
35
+ <label class="control-label-justify control-label col-sm-10">打印派工单</label>
36
+ <div class="col-sm-2">
37
+ <button class="button_search button_spacing" type="button" style="width: max-content;position: absolute"
38
+ @click="openModal()">打印预览
39
+ </button>
40
+ </div>
41
+ </div>
42
+ <modal v-if="showModal" :show.sync="showModal" title="打印预览" v-ref:modal large backdrop="false">
43
+ <header slot="modal-header" class="modal-header">
44
+ <button type="button" class="close" @click="colseModal()"><span>&times;</span></button>
45
+ <h4 class="modal-title">打印预览</h4>
46
+ </header>
47
+ <article slot="modal-body" class="modal-body">
48
+ <div id="printGaiXianOrder">
49
+ <h2><span style="letter-spacing: 0px">天然气用户改线申请表</span></h2>
50
+ <table>编号:{{ selectdata.f_apply_num }}</table>
51
+ <table border="1" cellspacing="0" cellpadding="0">
52
+ <tr>
53
+ <td colspan="2">填写人</td>
54
+ <td colspan="2">{{ selectdata.pgname }}</td>
55
+ <td colspan="2">所属部门</td>
56
+ <td colspan="2">{{ selectdata.user_dep }}</td>
57
+ <td colspan="2">填写时间</td>
58
+ <td colspan="2">{{ selectdata.finishtime }}</td>
59
+ </tr>
60
+ <tr>
61
+ <td colspan="2">用户联系人</td>
62
+ <td colspan="2">{{ selectdata.f_contact }}</td>
63
+ <td colspan="2">单位</td>
64
+ <td colspan="2">{{ selectdata.f_user_name }}</td>
65
+ <td colspan="2">联系电话</td>
66
+ <td colspan="2">{{ selectdata.f_phone }}</td>
67
+ </tr>
68
+ <tr>
69
+ <td colspan="2">申请时间</td>
70
+ <td colspan="2">{{ selectdata.f_apply_date }}</td>
71
+ <td colspan="2">用户编号</td>
72
+ <td colspan="2">{{ selectdata.f_userinfo_id }}</td>
73
+ <td colspan="2">用气性质</td>
74
+ <td colspan="2">{{ selectdata.f_apply_nature }}</td>
75
+ </tr>
76
+ <tr>
77
+ <td colspan="2">详细地址</td>
78
+ <td colspan="6">{{ selectdata.f_address }}</td>
79
+ <td colspan="2">气表型号</td>
80
+ <td colspan="2">{{ selectdata.f_meter_style }}</td>
81
+ </tr>
82
+ <tr>
83
+ <td colspan="12"><h4>工程技术部现场勘察意见及材料预算</h4></td>
84
+ </tr>
85
+ <tr>
86
+ <td colspan="3">申请类别</td>
87
+ <td colspan="3">{{ selectdata.f_user_classification }}</td>
88
+ <td colspan="3">改造原因</td>
89
+ <td colspan="3">{{ selectdata.f_prospecting_result }}</td>
90
+ </tr>
91
+ <tr>
92
+ <td colspan="2">工程整改方案</td>
93
+ <td colspan="10">
94
+ <p style="margin: 0px 0px 30px 0px">{{ selectdata.f_modify_plan }}</p>
95
+ </td>
96
+ </tr>
97
+ <tr>
98
+ <td colspan="2">整改收费</td>
99
+ <td colspan="10">
100
+ <p>金额小写:{{ selectdata.f_due_money}},金额大写:{{ selectdata.f_amount_words}}</p>
101
+ </td>
102
+ </tr>
103
+ <tr>
104
+ <td colspan="3">监理单位</td>
105
+ <td colspan="3">{{ supervisorOperatorName }}</td>
106
+ <td colspan="3">土建建单位</td>
107
+ <td colspan="3">{{ engineeringOperatorName }}</td>
108
+ </tr>
109
+ <tr>
110
+ <td colspan="2">检测单位</td>
111
+ <td colspan="2">{{ checkOperatorName }}</td>
112
+ <td colspan="2">项目负责人</td>
113
+ <td colspan="2">{{ constructOperatorName }}</td>
114
+ <td colspan="2">安装单位</td>
115
+ <td colspan="2">{{ constructionUnitName }}</td>
116
+ </tr>
117
+ <tr>
118
+ <td colspan="12"><h4>审批流程</h4></td>
119
+ </tr>
120
+ <tr>
121
+ <td colspan="3">工程技术部负责人意见</td>
122
+ <td colspan="3">
123
+ <p>&emsp;</p>
124
+ <p>&emsp;</p>
125
+ <p>&emsp;</p>
126
+ </td>
127
+ <td colspan="3">分管领导意见</td>
128
+ <td colspan="3">
129
+ <p>&emsp;</p>
130
+ <p>&emsp;</p>
131
+ <p>&emsp;</p>
132
+ </td>
133
+ </tr>
134
+ <tr>
135
+ <td colspan="3">用户管理部收费情况</td>
136
+ <td colspan="3">
137
+ <p>已收费</p>
138
+ <p>{{ selectdata.f_charge_user }}</p>
139
+ <p>{{ selectdata.f_charge_date }}</p>
140
+ </td>
141
+ <td colspan="3">开材料意见</td>
142
+ <td colspan="3">
143
+ <p>{{ selectdata.f_material_number }}</p>
144
+ <p>{{ selectdata.pgname }}</p>
145
+ <p>{{ selectdata.finishtime }}</p>
146
+ </td>
147
+ </tr>
148
+ <tr>
149
+ <td colspan="3">工程技术部改线组意见</td>
150
+ <td colspan="3">
151
+ <p>&emsp;</p>
152
+ <p>&emsp;</p>
153
+ <p>&emsp;</p>
154
+ </td>
155
+ <td colspan="3">省安一/二/三意见</td>
156
+ <td colspan="3">
157
+ <p>&emsp;</p>
158
+ <p>&emsp;</p>
159
+ <p>&emsp;</p>
160
+ </td>
161
+ </tr>
162
+ <tr>
163
+ <td colspan="3">用户确认签字</td>
164
+ <td colspan="9">
165
+ <p>&emsp;</p>
166
+ <p>&emsp;</p>
167
+ <p>&emsp;</p>
168
+ </td>
169
+ </tr>
170
+ </table>
171
+ </div>
172
+ </article>
173
+ <footer slot="modal-footer" class="modal-footer">
174
+ <button type="button" class="btn btn-primary" @click="print()">打印</button>
175
+ </footer>
176
+ </modal>
177
+
178
+ <print-element v-show="false" v-ref:print id='printGaiXianOrder' styleid='printGaiXianOrderStyle'
179
+ top='20' left='30' width='100%' height='100%'>
180
+ </print-element>
181
+ </template>
182
+
183
+ <script>
184
+ import {isEmpty} from '../../../Util'
185
+ import {HttpResetClass} from "vue-client";
186
+
187
+ Date.prototype.Format = function (fmt) {
188
+ var o = {
189
+ 'M+': this.getMonth() + 1, // 月份
190
+ 'd+': this.getDate(), // 日
191
+ 'H+': this.getHours(), // 小时
192
+ 'm+': this.getMinutes(), // 分
193
+ 's+': this.getSeconds(), // 秒
194
+ 'q+': Math.floor((this.getMonth() + 3) / 3), // 季度
195
+ 'S': this.getMilliseconds() // 毫秒
196
+ }
197
+ if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
198
+ for (var k in o)
199
+ if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
200
+ return fmt
201
+ }
202
+ export default {
203
+ title: '打印派工单',
204
+ props: ['selectdata'],
205
+ data () {
206
+ return {
207
+ supervisorOperatorName: '无',
208
+ engineeringOperatorName: '无',
209
+ checkOperatorName: '无',
210
+ constructOperatorName: '无',
211
+ constructionUnitName: '无',
212
+ showModal: false,
213
+ device: null
214
+ }
215
+ },
216
+ ready () {
217
+ this.getGaiXianData(this.selectdata.f_process_id)
218
+ },
219
+ methods: {
220
+ async getUserName( param) {
221
+ let http = new HttpResetClass()
222
+ if(!isEmpty(param)){
223
+ let data = {
224
+ tablename: 't_user',
225
+ condition: `id='${param}'`
226
+ }
227
+ let res = await http.load('POST', 'rs/sql/applySingleTable', {data: data},
228
+ {resolveMsg: null, rejectMsg: '流程标识获取失败!!!'}
229
+ )
230
+ return res.data[0].name
231
+ }else {
232
+ return '无'
233
+ }
234
+ },
235
+ openModal () {
236
+ if (this.selectdata.f_due_money >= 0 ) {
237
+ this.smalltoBIG(this.selectdata.f_due_money)
238
+ }
239
+ this.showModal = true
240
+ },
241
+ colseModal () {
242
+ this.showModal = false
243
+ },
244
+ print () {
245
+ this.showInput = false
246
+ setTimeout(() => {
247
+ this.$refs.print.PrintTable()
248
+ }, 10)
249
+ },
250
+ // 金额转大写
251
+ smalltoBIG (n) {
252
+ let fraction = ['角', '分']
253
+ let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖']
254
+ let unit = [['元', '万', '亿'], ['', '拾', '佰', '仟']]
255
+ let head = n < 0 ? '欠' : ''
256
+ n = Math.abs(n)
257
+
258
+ let s = ''
259
+
260
+ for (var i = 0; i < fraction.length; i++) {
261
+ s += (digit[Math.floor(n * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '')
262
+ }
263
+ s = s || '整'
264
+ n = Math.floor(n)
265
+
266
+ for (var i = 0; i < unit[0].length && n > 0; i++) {
267
+ let p = ''
268
+ for (var j = 0; j < unit[1].length && n > 0; j++) {
269
+ p = digit[n % 10] + unit[1][j] + p
270
+ n = Math.floor(n / 10)
271
+ }
272
+ s = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + s
273
+ }
274
+ let result = head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整')
275
+ console.log('当前大写', result)
276
+ this.selectdata.f_amount_words = result
277
+ },
278
+ async getGaiXianData(index) {
279
+ let data = {
280
+ condition: `1=1`,
281
+ f_process_id: index
282
+ }
283
+ let http = new HttpResetClass()
284
+ let res = await http.load(
285
+ 'POST',
286
+ `rs/sql/applyGetGaixian`,
287
+ {data: data},
288
+ {resolveMsg: null, rejectMsg: '改线数据查询失败!!!'}
289
+ )
290
+ this.selectdata.f_charge_user = res.data[0].jfname
291
+ this.selectdata.f_charge_date = res.data[0].finishtime
292
+ this.selectdata.pgname = res.data[0].pgname
293
+ this.selectdata.user_dep = res.data[0].departmentname
294
+ this.supervisorOperatorName = await this.getUserName(this.selectdata.f_supervisor_operator);
295
+ this.engineeringOperatorName = await this.getUserName(this.selectdata.f_engineering_operator_id);
296
+ this.checkOperatorName = await this.getUserName(this.selectdata.f_check_operator_id);
297
+ this.constructOperatorName = await this.getUserName(this.selectdata.f_construct_operator_id);
298
+ this.constructionUnitName = await this.getUserName(this.selectdata.f_construction_unit);
299
+ }
300
+ },
301
+ computed: {
302
+ orgs () {
303
+ return this.$login.f.f_fengongsi
304
+ },
305
+ src () {
306
+ // return require(`./img/${this.$login.f.number}.png`)
307
+ }
308
+ }
309
+ }
310
+ </script>
311
+
312
+ <style scoped>
313
+
314
+ </style>