apply-clients 3.1.36 → 3.1.39

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 (26) hide show
  1. package/package.json +112 -112
  2. package/src/App.vue +20 -20
  3. package/src/apply.js +3 -0
  4. package/src/components/product/ApplyCharge/ApplyChargeList.vue +266 -247
  5. package/src/components/product/ApplyCharge/ApplyChargeSearch.vue +30 -232
  6. package/src/components/product/Function/InstallFunction.vue +2 -2
  7. package/src/components/product/Function/InstallInfoSelect.vue +44 -5
  8. package/src/components/product/Function/Service/FunctionServiceControl.vue +61 -2
  9. package/src/components/product/Function/functions/ChargeManagement.vue +397 -30
  10. package/src/components/product/Function/functions/ContractNo.vue +354 -354
  11. package/src/components/product/Function/functions/DispatchList.vue +490 -490
  12. package/src/components/product/Function/functions/InstallFeeInfo.vue +43 -43
  13. package/src/components/product/Order/OrderApply.vue +467 -467
  14. package/src/components/product/Order/OrderApplyList.vue +301 -301
  15. package/src/components/product/Process/ExplorationSelect.vue +326 -287
  16. package/src/components/product/Process/ExplorationUser.vue +168 -140
  17. package/src/components/product/Process/Service/ServiceControl.vue +15 -14
  18. package/src/components/product/ReportForm/ApplyUpload.vue +261 -261
  19. package/src/components/product/ReportForm/CustomerRecordMessage.vue +1587 -1409
  20. package/src/components/product/ServiceView.vue +5 -1
  21. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +169 -153
  22. package/src/components/product/Supervisory/SupervisoryControl.vue +132 -132
  23. package/src/components/product/Supervisory/SupervisoryControl2.vue +132 -0
  24. package/src/components/product/Supervisory/SupervisoryList.vue +76 -10
  25. package/src/components/product/Supervisory/SupervisoryList2.vue +285 -0
  26. package/src/components/product/Supervisory/SupervisoryhCart.vue +105 -104
@@ -1,490 +1,490 @@
1
- <template>
2
- <div>
3
- <criteria-paged :model="model" v-ref:cp>
4
- <criteria partial='criteria' @condition-changed='search' v-ref:cri>
5
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
- <div class="row">
7
- <div class="form-group col-sm-2 operate">
8
- <button type="button" class="btn btn-info head-but" @click="search()" v-el:cx>刷新</button>
9
- <button type="button" class="btn btn-info head-but" @click="$parent.$parent.closePrint()" v-el:cx>返回</button>
10
- <report-print id='printData' top='3cm' left='0' width='100%' height='100%' :preview="true" @click="$parent.$parent.clickPrint()"></report-print>
11
- </div>
12
- </div>
13
- </div>
14
- </criteria>
15
- <div partial='list' class="col-sm-12" id="printData" style="overflow: auto">
16
- <table class='tableprint' style="float: left">
17
- <thead>
18
- <tr>
19
- <th colspan='7' style="font-weight: 100; text-align: center;">
20
- <h3>挂表、燃气器具、管道设施安装改装</h3>
21
- <h3>派工单</h3>
22
- </th>
23
- </tr>
24
- <tr>
25
- <th colspan='7' style="font-weight: 100">
26
- <span style="float: left">登记日期:{{$parent.getDate().year}}年{{$parent.getDate().month}}月{{$parent.getDate().date}}日</span>
27
- <span style="float: right; color: red">{{$parent.num}}</span>
28
- </th>
29
- </tr>
30
- </thead>
31
- <tbody>
32
- <tr>
33
- <td rowspan="5">
34
- 客<br>
35
- 户<br>
36
- 信<br>
37
- 息
38
- </td>
39
- <td>客户名称</td>
40
- <td>{{model.rows[0].f_user_name}}</td>
41
- <td>联系电话</td>
42
- <td>{{model.rows[0].f_phone}}</td>
43
- <td>安装地址</td>
44
- <td>{{model.rows[0].f_address}}</td>
45
- </tr>
46
- <tr>
47
- <td>工料费票号</td>
48
- <td>{{model.rows[0].f_voucher_install}}</td>
49
- <td>报警器票号</td>
50
- <td>{{model.rows[0].f_voucher_alarm}}</td>
51
- <td>灶具票号</td>
52
- <td>{{model.rows[0].f_voucher_cooker}}</td>
53
- </tr>
54
- <tr>
55
- <td>烟机票号</td>
56
- <td>{{model.rows[0].f_voucher_hood}}</td>
57
- <td>热水器票号</td>
58
- <td>{{model.rows[0].f_voucher_heater}}</td>
59
- <td>壁挂炉票号</td>
60
- <td>{{model.rows[0].f_voucher_wall}}</td>
61
- </tr>
62
- <tr>
63
- <td colspan="2">安装内容及要求:</td>
64
- <td colspan="4">{{model.rows[0].f_install_content}}</td>
65
- </tr>
66
- <tr>
67
- <td>派工时间</td>
68
- <td colspan="2">{{model.rows[0].f_dispatch_date}}</td>
69
- <td>备注:</td>
70
- <td colspan="2">{{model.rows[0].f_apply_remarks}}</td>
71
- </tr>
72
- <tr>
73
- <td rowspan="6">
74
- 安<br>
75
- 装<br>
76
- 人<br>
77
- 员<br>
78
- 填<br>
79
- 写
80
- </td>
81
- <td>完成时间</td>
82
- <td colspan="2">{{model.rows[0].f_finish_date}}</td>
83
- <td>安装人员签字</td>
84
- <td colspan="2">&nbsp;&nbsp;</td>
85
- </tr>
86
- <tr>
87
- <td>表号</td>
88
- <td colspan="2">{{model.rows[0].f_meternumber}}</td>
89
- <td>左右表</td>
90
- <td colspan="2">{{model.rows[0].f_aroundmeter}}</td>
91
- </tr>
92
- <tr>
93
- <td rowspan="4" colspan="2">气密性试验</td>
94
- <td>上限</td>
95
- <td>{{model.rows[0].f_air_upper_one}}Pa</td>
96
- <td>下限</td>
97
- <td>{{model.rows[0].f_air_lower_one}}Pa</td>
98
- </tr>
99
- <tr>
100
- <td>上限</td>
101
- <td>{{model.rows[0].f_air_upper_two}}Pa</td>
102
- <td>下限</td>
103
- <td>{{model.rows[0].f_air_lower_two}}Pa</td>
104
- </tr>
105
- <tr>
106
- <td>实验时间</td>
107
- <td>{{model.rows[0].f_test_date}}min</td>
108
- <td>压降</td>
109
- <td>{{model.rows[0].f_pressure_drop}}Pa</td>
110
- </tr>
111
- <tr>
112
- <td colspan="2">实验结果</td>
113
- <td colspan="2">{{model.rows[0].f_test_result}}</td>
114
- </tr>
115
- <tr>
116
- <td>
117
- 客<br>
118
- 户<br>
119
- 须<br>
120
- 知
121
- </td>
122
- <td colspan="4">
123
- <p>1.燃气表据燃气规范《GB-50028》规定与灶具垂直距离30CM;</p>
124
- <p>2.禁止将燃气表、管道安装于:卧室、洗手间、储物间、橱柜、客厅等封闭空间内;</p>
125
- <p>3.安装位置指:厨房;</p>
126
- <p>4.约定的入户安装时间内务必请用户本人在家等候;</p>
127
- <p>5.通气之前禁止打开管道阀门、通气时有专业人员操作与讲解;</p>
128
- <p>6.燃气管道支架不允许拆除、若私自拆除不予通气、后果自负;</p>
129
- <p>7.如果灶具附近无法挂表位置、需业主自行拆除橱柜,或业务自行拆除适宜位置的障碍物,以便为您安装燃气表;</p>
130
- </td>
131
- <td colspan="2">客户签字及意见:</td>
132
- </tr>
133
- <tr>
134
- <td rowspan="5">
135
- 收<br>
136
- 费<br>
137
- 确<br>
138
- 认<br>
139
- 单
140
- </td>
141
- <td>计费项目</td>
142
- <td>单位</td>
143
- <td>单价</td>
144
- <td>工程量</td>
145
- <td>核价</td>
146
- <td>备注</td>
147
- </tr>
148
- <tr>
149
- <td>{{model.rows[0].f_material_name}}</td>
150
- <td>{{model.rows[0].f_one_unit}}</td>
151
- <td>{{model.rows[0].f_one_price}}</td>
152
- <td>{{model.rows[0].f_quantities}}</td>
153
- <td>{{model.rows[0].f_pricing}}</td>
154
- <td>{{model.rows[0].f_material_remarks}}</td>
155
- </tr>
156
- <tr>
157
- <td>{{model.rows[0].f_material_name}}</td>
158
- <td>{{model.rows[0].f_one_unit}}</td>
159
- <td>{{model.rows[0].f_one_price}}</td>
160
- <td>{{model.rows[0].f_quantities}}</td>
161
- <td>{{model.rows[0].f_pricing}}</td>
162
- <td>{{model.rows[0].f_material_remarks}}</td>
163
- </tr>
164
- <tr>
165
- <td>{{model.rows[0].f_material_name}}</td>
166
- <td>{{model.rows[0].f_one_unit}}</td>
167
- <td>{{model.rows[0].f_one_price}}</td>
168
- <td>{{model.rows[0].f_quantities}}</td>
169
- <td>{{model.rows[0].f_pricing}}</td>
170
- <td>{{model.rows[0].f_material_remarks}}</td>
171
- </tr>
172
- <tr>
173
- <td colspan="2">合计工程造价</td>
174
- <td colspan="2">¥:</td>
175
- <td colspan="2">大写:</td>
176
- </tr>
177
- <tr>
178
- <td colspan="7">
179
- <span style="float: left">施工单位确认签字:</span>
180
- <span style="float: right; margin-right: 250px">日期:</span>
181
- </td>
182
- <!-- <td colspan="2">&nbsp;&nbsp;</td>-->
183
- <!-- <td>日期:</td>-->
184
- <!-- <td colspan="2">&nbsp;&nbsp;</td>-->
185
- </tr>
186
- <tr>
187
- <td colspan="7">
188
- <span style="float: left">公司接单回访确认签字:</span>
189
- <span style="float: right; margin-right: 250px">日期:</span>
190
- </td>
191
- <!-- <td colspan="2">&nbsp;&nbsp;</td>-->
192
- <!-- <td>日期:</td>-->
193
- <!-- <td colspan="2">&nbsp;&nbsp;</td>-->
194
- </tr>
195
- </tbody>
196
- <tfoot>
197
- <tr>
198
- <th colspan='7' style="text-align: left">客服电话0915-3323558、8196777</th>
199
- </tr>
200
- <tr>
201
- <th colspan='7' style="text-align: center">本票据一式三联:一联:存根(白)、二联:客户(红)、三联:安装(黄)</th>
202
- </tr>
203
- </tfoot>
204
- </table>
205
-
206
- </div>
207
- </criteria-paged>
208
-
209
- </div>
210
- </template>
211
- <script>
212
- import PagedListLogic from '../../../../stores/PagedListLogic'
213
- import getNowDate from '../../../getNowDate.js'
214
- import {HttpResetClass} from 'vue-client'
215
- import {getLodop} from '../../../../LodopFuncs.js'
216
-
217
- export default {
218
- title: '派工单',
219
- props: ['selectdata'],
220
- data() {
221
- return {
222
- model: new PagedListLogic('rs/sql/getDispatchList', 20, {
223
- data: {
224
- f_process_id: this.selectdata.f_process_id
225
- }
226
- }),
227
- residential_name: [],
228
- control: false,
229
- addData: {},
230
- title: '', //标题
231
- control_add: false,
232
- control_update: false,
233
- num: 1,
234
- numId: 1
235
- }
236
- },
237
- ready() {
238
- // this.getResidentialName()
239
- this.getNumber()
240
- this.$refs.cp.$refs.cri.search()
241
- },
242
- methods: {
243
- // async getResidentialName() {
244
- // // 获取小区名称
245
- // let http = new HttpResetClass()
246
- // let data = {
247
- // tablename: 't_area',
248
- // condition: " f_orgid = '" + this.$login.f.orgid + "'"
249
- // }
250
- // let res = await http.load('POST','rs/sql/applysingleTable',{data:data}, {
251
- // resolveMsg: null,
252
- // rejectMsg: '获取小区名称失败'
253
- // })
254
- // console.log("小区名称查询数据:" + JSON.stringify(res.data))
255
- // for (let i = 0; i < res.data.length; i++) {
256
- // // 项目名称
257
- // let data = []
258
- // let array = []
259
- // data = res.data.map(item => {
260
- // return item.f_residential_area;
261
- // })
262
- // for (let q = 0; q < data.length; q++) {
263
- // let arraydata = {
264
- // 'label': data[q],
265
- // 'value': data[q]
266
- // }
267
- // if (array.length != 0) {
268
- // for (let w = 0; w < array.length; w++) {
269
- // if (array[w].label == data[q]) {
270
- // break
271
- // }
272
- // while (w == array.length - 1) {
273
- // array.push(arraydata)
274
- // break
275
- // }
276
- // }
277
- // } else {
278
- // array.push(arraydata)
279
- // }
280
- // }
281
- // this.residential_name = array
282
- // console.log("小区名称选择框:" + this.residential_name)
283
- // }
284
- // },
285
- // clear() {
286
- // Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
287
- // this.$refs.cp.$refs.cri.model[key] = []
288
- // })
289
- // },
290
- closePrint() {
291
- // this.$dispatch('close')
292
- this.$parent.print_dispatch = true
293
- this.$parent.showview = true
294
- this.$parent.dispatchlist = false
295
- },
296
- // 新增合同编号
297
- // add() {
298
- // this.title = '新增'
299
- // this.control = true
300
- // this.control_add = true
301
- // },
302
- // cancel() {
303
- // this.addData = {}
304
- // this.control = false
305
- // this.control_add = false
306
- // this.control_update = false
307
- // },
308
- // async config() {
309
- // let http = new HttpResetClass()
310
- // // 组织数据
311
- // if (this.addData.f_residential_name && this.addData.f_contract_number) {
312
- // this.addData.f_operator = this.$login.f.name
313
- // this.addData.f_operation_date = this.getNowFormatDate()
314
- // this.addData.f_company = this.$login.f.orgs
315
- // let data = {
316
- // tablename: 't_contract_no',
317
- // parameters: this.addData
318
- // }
319
- // let res = await http.load('POST','rs/logic/apply_save',{data: data}, {
320
- // resolveMsg: null,
321
- // rejectMsg: '保存合同编号失败'
322
- // })
323
- // console.log("保存合同编号返回数据:" + JSON.stringify(res))
324
- // if (res.data.id) {
325
- // this.control = false
326
- // this.control_add = false
327
- // this.$refs.cp.$refs.cri.search()
328
- // this.addData = {}
329
- // this.$showMessage("添加成功")
330
- // }
331
- // } else if (!this.addData.f_residential_name && this.addData.f_contract_number) {
332
- // this.$showMessage("请选择小区名称!")
333
- // } else if (this.addData.f_residential_name && !this.addData.f_contract_number) {
334
- // this.$showMessage("请输入合同编号!")
335
- // }
336
- // },
337
- // async config_update() {
338
- // let http = new HttpResetClass()
339
- // // 组织数据
340
- // if (this.addData.f_contract_number) {
341
- // let data = {
342
- // tablename: 't_contract_no',
343
- // parameters: this.addData
344
- // }
345
- // let res = await http.load('POST','rs/logic/apply_save',{data: data}, {
346
- // resolveMsg: null,
347
- // rejectMsg: '更改合同编号失败'
348
- // })
349
- // console.log("更改合同编号返回数据:" + JSON.stringify(res))
350
- // if (res.data.id) {
351
- // this.control = false
352
- // this.control_update = false
353
- // this.$refs.cp.$refs.cri.search()
354
- // this.addData = {}
355
- // this.$showMessage("修改成功")
356
- // }
357
- // } else if (!this.addData.f_contract_number) {
358
- // this.$showMessage("请输入合同编号!")
359
- // }
360
- //
361
- // },
362
- // update(row) {
363
- // //更改合同编号
364
- // this.title = '修改'
365
- // this.control = true
366
- // this.control_update = true
367
- // this.addData.id = row.id
368
- // this.addData.f_residential_name = row.f_residential_name
369
- // this.addData.f_contract_number = row.f_contract_number
370
- // },
371
- getfield() {
372
- let report = {
373
- 'f_entry_name': '项目名称',
374
- 'f_entry_num': '项目编号',
375
- 'defname': '流程状态',
376
- 'f_gasproperties': '用气性质',
377
- 'f_user_name': '用户名称',
378
- 'f_user_phone': '用户电话',
379
- 'f_address': '用户地址',
380
- 'f_apply_type': '报建类型',
381
- 'f_contract_money': '应交金额',
382
- 'f_charge_money': '实收金额',
383
- 'f_payment_method': '付款方式',
384
- 'f_charge_collectors': '收费员',
385
- 'f_charge_date': '收费日期'
386
- }
387
- return report
388
- },
389
- /**
390
- * 获取当前时间
391
- * 格式YYYY-MM-DD
392
- */
393
- getNowFormatDate () {
394
- let date = new Date();
395
- let seperator1 = "-";
396
- let year = date.getFullYear();
397
- let month = date.getMonth() + 1;
398
- let strDate = date.getDate();
399
- if (month >= 1 && month <= 9) {
400
- month = "0" + month;
401
- }
402
- if (strDate >= 0 && strDate <= 9) {
403
- strDate = "0" + strDate;
404
- }
405
- let currentdate = year + seperator1 + month + seperator1 + strDate;
406
- return currentdate;
407
- },
408
- // 获取年月日
409
- getDate () {
410
- let result = {
411
- year: new Date().Format("yyyy"),
412
- month: new Date().Format("MM"),
413
- date: new Date().Format("dd")
414
- }
415
- return result
416
- },
417
- // 获取编号
418
- async getNumber () {
419
- let http = new HttpResetClass()
420
- let data = {
421
- tablename: 't_singlevalue',
422
- condition: "name = '派工单编号'"
423
- }
424
-
425
- let res = await http.load('POST', 'rs/sql/applysingleTable', {data: data}, {
426
- resolveMsg: null,
427
- rejectMsg: '编号查询失败'
428
- })
429
- this.num = res.data[0].value
430
- this.numId = res.data[0].id
431
- },
432
- async clickPrint() {
433
- let code = 7
434
- // let numLength = this.num.length
435
- // while (this.num.contain(0)) {
436
- // this.num = this.num.split(0)[1]
437
- // }
438
- // let numValue = parseInt(this.num) + 1
439
- let numValue = parseInt(this.num) + 1
440
- console.log("numValue:" + numValue)
441
- let string = numValue + ''
442
- let numLength = code - string.length
443
- console.log("numLength:" + numLength)
444
- let numCode = ''
445
- let temp = '0'
446
- for (let i = 0; i < numLength; i++) {
447
- numCode = numCode + temp
448
- console.log("numCode:" + numCode + "--i:" + i)
449
- }
450
- let http = new HttpResetClass()
451
- let data = {
452
- tablename: 't_singlevalue',
453
- parameters: {
454
- id: this.numId,
455
- value: numCode + numValue
456
- }
457
- }
458
- let res = await http.load('POST', 'rs/logic/apply_save', {data: data}, {
459
- resolveMsg: null,
460
- rejectMsg: '编号更新失败'
461
- })
462
- },
463
- },
464
- computed: {
465
- date() {
466
- return getNowDate()
467
- }
468
- },
469
- watch: {
470
-
471
- }
472
- }
473
- </script>
474
- <style scoped>
475
- .operate{
476
- text-align: right;
477
- display: flex;
478
- align-items: center; /*子元素中线居中*/
479
- justify-content: flex-end; /*子元素靠右*/
480
- margin-top: 7px;
481
- }
482
- .head-but{
483
- margin-left: 5px;
484
- height: 34px;
485
- background-color: #6aa6e2;
486
- border-radius: 4px;
487
- font-family: PingFang;
488
- color: #ffffff;
489
- }
490
- </style>
1
+ <template>
2
+ <div>
3
+ <criteria-paged :model="model" v-ref:cp>
4
+ <criteria partial='criteria' @condition-changed='search' v-ref:cri>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
+ <div class="row">
7
+ <div class="form-group col-sm-2 operate">
8
+ <button type="button" class="btn btn-info head-but" @click="search()" v-el:cx>刷新</button>
9
+ <button type="button" class="btn btn-info head-but" @click="$parent.$parent.closePrint()" v-el:cx>返回</button>
10
+ <report-print id='printData' top='3cm' left='0' width='100%' height='100%' :preview="true" @click="$parent.$parent.clickPrint()"></report-print>
11
+ </div>
12
+ </div>
13
+ </div>
14
+ </criteria>
15
+ <div partial='list' class="col-sm-12" id="printData" style="overflow: auto">
16
+ <table class='tableprint' style="float: left">
17
+ <thead>
18
+ <tr>
19
+ <th colspan='7' style="font-weight: 100; text-align: center;">
20
+ <h3>挂表、燃气器具、管道设施安装改装</h3>
21
+ <h3>派工单</h3>
22
+ </th>
23
+ </tr>
24
+ <tr>
25
+ <th colspan='7' style="font-weight: 100">
26
+ <span style="float: left">登记日期:{{$parent.getDate().year}}年{{$parent.getDate().month}}月{{$parent.getDate().date}}日</span>
27
+ <span style="float: right; color: red">{{$parent.num}}</span>
28
+ </th>
29
+ </tr>
30
+ </thead>
31
+ <tbody>
32
+ <tr>
33
+ <td rowspan="5">
34
+ 客<br>
35
+ 户<br>
36
+ 信<br>
37
+ 息
38
+ </td>
39
+ <td>客户名称</td>
40
+ <td>{{model.rows[0].f_user_name}}</td>
41
+ <td>联系电话</td>
42
+ <td>{{model.rows[0].f_phone}}</td>
43
+ <td>安装地址</td>
44
+ <td>{{model.rows[0].f_address}}</td>
45
+ </tr>
46
+ <tr>
47
+ <td>工料费票号</td>
48
+ <td>{{model.rows[0].f_voucher_install}}</td>
49
+ <td>报警器票号</td>
50
+ <td>{{model.rows[0].f_voucher_alarm}}</td>
51
+ <td>灶具票号</td>
52
+ <td>{{model.rows[0].f_voucher_cooker}}</td>
53
+ </tr>
54
+ <tr>
55
+ <td>烟机票号</td>
56
+ <td>{{model.rows[0].f_voucher_hood}}</td>
57
+ <td>热水器票号</td>
58
+ <td>{{model.rows[0].f_voucher_heater}}</td>
59
+ <td>壁挂炉票号</td>
60
+ <td>{{model.rows[0].f_voucher_wall}}</td>
61
+ </tr>
62
+ <tr>
63
+ <td colspan="2">安装内容及要求:</td>
64
+ <td colspan="4">{{model.rows[0].f_install_content}}</td>
65
+ </tr>
66
+ <tr>
67
+ <td>派工时间</td>
68
+ <td colspan="2">{{model.rows[0].f_dispatch_date}}</td>
69
+ <td>备注:</td>
70
+ <td colspan="2">{{model.rows[0].f_apply_remarks}}</td>
71
+ </tr>
72
+ <tr>
73
+ <td rowspan="6">
74
+ 安<br>
75
+ 装<br>
76
+ 人<br>
77
+ 员<br>
78
+ 填<br>
79
+ 写
80
+ </td>
81
+ <td>完成时间</td>
82
+ <td colspan="2">{{model.rows[0].f_finish_date}}</td>
83
+ <td>安装人员签字</td>
84
+ <td colspan="2">&nbsp;&nbsp;</td>
85
+ </tr>
86
+ <tr>
87
+ <td>表号</td>
88
+ <td colspan="2">{{model.rows[0].f_meternumber}}</td>
89
+ <td>左右表</td>
90
+ <td colspan="2">{{model.rows[0].f_aroundmeter}}</td>
91
+ </tr>
92
+ <tr>
93
+ <td rowspan="4" colspan="2">气密性试验</td>
94
+ <td>上限</td>
95
+ <td>{{model.rows[0].f_air_upper_one}}Pa</td>
96
+ <td>下限</td>
97
+ <td>{{model.rows[0].f_air_lower_one}}Pa</td>
98
+ </tr>
99
+ <tr>
100
+ <td>上限</td>
101
+ <td>{{model.rows[0].f_air_upper_two}}Pa</td>
102
+ <td>下限</td>
103
+ <td>{{model.rows[0].f_air_lower_two}}Pa</td>
104
+ </tr>
105
+ <tr>
106
+ <td>实验时间</td>
107
+ <td>{{model.rows[0].f_test_date}}min</td>
108
+ <td>压降</td>
109
+ <td>{{model.rows[0].f_pressure_drop}}Pa</td>
110
+ </tr>
111
+ <tr>
112
+ <td colspan="2">实验结果</td>
113
+ <td colspan="2">{{model.rows[0].f_test_result}}</td>
114
+ </tr>
115
+ <tr>
116
+ <td>
117
+ 客<br>
118
+ 户<br>
119
+ 须<br>
120
+ 知
121
+ </td>
122
+ <td colspan="4">
123
+ <p>1.燃气表据燃气规范《GB-50028》规定与灶具垂直距离30CM;</p>
124
+ <p>2.禁止将燃气表、管道安装于:卧室、洗手间、储物间、橱柜、客厅等封闭空间内;</p>
125
+ <p>3.安装位置指:厨房;</p>
126
+ <p>4.约定的入户安装时间内务必请用户本人在家等候;</p>
127
+ <p>5.通气之前禁止打开管道阀门、通气时有专业人员操作与讲解;</p>
128
+ <p>6.燃气管道支架不允许拆除、若私自拆除不予通气、后果自负;</p>
129
+ <p>7.如果灶具附近无法挂表位置、需业主自行拆除橱柜,或业务自行拆除适宜位置的障碍物,以便为您安装燃气表;</p>
130
+ </td>
131
+ <td colspan="2">客户签字及意见:</td>
132
+ </tr>
133
+ <tr>
134
+ <td rowspan="5">
135
+ 收<br>
136
+ 费<br>
137
+ 确<br>
138
+ 认<br>
139
+ 单
140
+ </td>
141
+ <td>计费项目</td>
142
+ <td>单位</td>
143
+ <td>单价</td>
144
+ <td>工程量</td>
145
+ <td>核价</td>
146
+ <td>备注</td>
147
+ </tr>
148
+ <tr>
149
+ <td>{{model.rows[0].f_material_name}}</td>
150
+ <td>{{model.rows[0].f_one_unit}}</td>
151
+ <td>{{model.rows[0].f_one_price}}</td>
152
+ <td>{{model.rows[0].f_quantities}}</td>
153
+ <td>{{model.rows[0].f_pricing}}</td>
154
+ <td>{{model.rows[0].f_material_remarks}}</td>
155
+ </tr>
156
+ <tr>
157
+ <td>{{model.rows[0].f_material_name}}</td>
158
+ <td>{{model.rows[0].f_one_unit}}</td>
159
+ <td>{{model.rows[0].f_one_price}}</td>
160
+ <td>{{model.rows[0].f_quantities}}</td>
161
+ <td>{{model.rows[0].f_pricing}}</td>
162
+ <td>{{model.rows[0].f_material_remarks}}</td>
163
+ </tr>
164
+ <tr>
165
+ <td>{{model.rows[0].f_material_name}}</td>
166
+ <td>{{model.rows[0].f_one_unit}}</td>
167
+ <td>{{model.rows[0].f_one_price}}</td>
168
+ <td>{{model.rows[0].f_quantities}}</td>
169
+ <td>{{model.rows[0].f_pricing}}</td>
170
+ <td>{{model.rows[0].f_material_remarks}}</td>
171
+ </tr>
172
+ <tr>
173
+ <td colspan="2">合计工程造价</td>
174
+ <td colspan="2">¥:</td>
175
+ <td colspan="2">大写:</td>
176
+ </tr>
177
+ <tr>
178
+ <td colspan="7">
179
+ <span style="float: left">施工单位确认签字:</span>
180
+ <span style="float: right; margin-right: 250px">日期:</span>
181
+ </td>
182
+ <!-- <td colspan="2">&nbsp;&nbsp;</td>-->
183
+ <!-- <td>日期:</td>-->
184
+ <!-- <td colspan="2">&nbsp;&nbsp;</td>-->
185
+ </tr>
186
+ <tr>
187
+ <td colspan="7">
188
+ <span style="float: left">公司接单回访确认签字:</span>
189
+ <span style="float: right; margin-right: 250px">日期:</span>
190
+ </td>
191
+ <!-- <td colspan="2">&nbsp;&nbsp;</td>-->
192
+ <!-- <td>日期:</td>-->
193
+ <!-- <td colspan="2">&nbsp;&nbsp;</td>-->
194
+ </tr>
195
+ </tbody>
196
+ <tfoot>
197
+ <tr>
198
+ <th colspan='7' style="text-align: left">客服电话0915-3323558、8196777</th>
199
+ </tr>
200
+ <tr>
201
+ <th colspan='7' style="text-align: center">本票据一式三联:一联:存根(白)、二联:客户(红)、三联:安装(黄)</th>
202
+ </tr>
203
+ </tfoot>
204
+ </table>
205
+
206
+ </div>
207
+ </criteria-paged>
208
+
209
+ </div>
210
+ </template>
211
+ <script>
212
+ import PagedListLogic from '../../../../stores/PagedListLogic'
213
+ import getNowDate from '../../../getNowDate.js'
214
+ import {HttpResetClass} from 'vue-client'
215
+ import {getLodop} from '../../../../LodopFuncs.js'
216
+
217
+ export default {
218
+ title: '派工单',
219
+ props: ['selectdata'],
220
+ data() {
221
+ return {
222
+ model: new PagedListLogic('rs/sql/getDispatchList', 20, {
223
+ data: {
224
+ f_process_id: this.selectdata.f_process_id
225
+ }
226
+ }),
227
+ residential_name: [],
228
+ control: false,
229
+ addData: {},
230
+ title: '', //标题
231
+ control_add: false,
232
+ control_update: false,
233
+ num: 1,
234
+ numId: 1
235
+ }
236
+ },
237
+ ready() {
238
+ // this.getResidentialName()
239
+ this.getNumber()
240
+ this.$refs.cp.$refs.cri.search()
241
+ },
242
+ methods: {
243
+ // async getResidentialName() {
244
+ // // 获取小区名称
245
+ // let http = new HttpResetClass()
246
+ // let data = {
247
+ // tablename: 't_area',
248
+ // condition: " f_orgid = '" + this.$login.f.orgid + "'"
249
+ // }
250
+ // let res = await http.load('POST','rs/sql/applysingleTable',{data:data}, {
251
+ // resolveMsg: null,
252
+ // rejectMsg: '获取小区名称失败'
253
+ // })
254
+ // console.log("小区名称查询数据:" + JSON.stringify(res.data))
255
+ // for (let i = 0; i < res.data.length; i++) {
256
+ // // 项目名称
257
+ // let data = []
258
+ // let array = []
259
+ // data = res.data.map(item => {
260
+ // return item.f_residential_area;
261
+ // })
262
+ // for (let q = 0; q < data.length; q++) {
263
+ // let arraydata = {
264
+ // 'label': data[q],
265
+ // 'value': data[q]
266
+ // }
267
+ // if (array.length != 0) {
268
+ // for (let w = 0; w < array.length; w++) {
269
+ // if (array[w].label == data[q]) {
270
+ // break
271
+ // }
272
+ // while (w == array.length - 1) {
273
+ // array.push(arraydata)
274
+ // break
275
+ // }
276
+ // }
277
+ // } else {
278
+ // array.push(arraydata)
279
+ // }
280
+ // }
281
+ // this.residential_name = array
282
+ // console.log("小区名称选择框:" + this.residential_name)
283
+ // }
284
+ // },
285
+ // clear() {
286
+ // Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
287
+ // this.$refs.cp.$refs.cri.model[key] = []
288
+ // })
289
+ // },
290
+ closePrint() {
291
+ // this.$dispatch('close')
292
+ this.$parent.print_dispatch = true
293
+ this.$parent.showview = true
294
+ this.$parent.dispatchlist = false
295
+ },
296
+ // 新增合同编号
297
+ // add() {
298
+ // this.title = '新增'
299
+ // this.control = true
300
+ // this.control_add = true
301
+ // },
302
+ // cancel() {
303
+ // this.addData = {}
304
+ // this.control = false
305
+ // this.control_add = false
306
+ // this.control_update = false
307
+ // },
308
+ // async config() {
309
+ // let http = new HttpResetClass()
310
+ // // 组织数据
311
+ // if (this.addData.f_residential_name && this.addData.f_contract_number) {
312
+ // this.addData.f_operator = this.$login.f.name
313
+ // this.addData.f_operation_date = this.getNowFormatDate()
314
+ // this.addData.f_company = this.$login.f.orgs
315
+ // let data = {
316
+ // tablename: 't_contract_no',
317
+ // parameters: this.addData
318
+ // }
319
+ // let res = await http.load('POST','rs/logic/apply_save',{data: data}, {
320
+ // resolveMsg: null,
321
+ // rejectMsg: '保存合同编号失败'
322
+ // })
323
+ // console.log("保存合同编号返回数据:" + JSON.stringify(res))
324
+ // if (res.data.id) {
325
+ // this.control = false
326
+ // this.control_add = false
327
+ // this.$refs.cp.$refs.cri.search()
328
+ // this.addData = {}
329
+ // this.$showMessage("添加成功")
330
+ // }
331
+ // } else if (!this.addData.f_residential_name && this.addData.f_contract_number) {
332
+ // this.$showMessage("请选择小区名称!")
333
+ // } else if (this.addData.f_residential_name && !this.addData.f_contract_number) {
334
+ // this.$showMessage("请输入合同编号!")
335
+ // }
336
+ // },
337
+ // async config_update() {
338
+ // let http = new HttpResetClass()
339
+ // // 组织数据
340
+ // if (this.addData.f_contract_number) {
341
+ // let data = {
342
+ // tablename: 't_contract_no',
343
+ // parameters: this.addData
344
+ // }
345
+ // let res = await http.load('POST','rs/logic/apply_save',{data: data}, {
346
+ // resolveMsg: null,
347
+ // rejectMsg: '更改合同编号失败'
348
+ // })
349
+ // console.log("更改合同编号返回数据:" + JSON.stringify(res))
350
+ // if (res.data.id) {
351
+ // this.control = false
352
+ // this.control_update = false
353
+ // this.$refs.cp.$refs.cri.search()
354
+ // this.addData = {}
355
+ // this.$showMessage("修改成功")
356
+ // }
357
+ // } else if (!this.addData.f_contract_number) {
358
+ // this.$showMessage("请输入合同编号!")
359
+ // }
360
+ //
361
+ // },
362
+ // update(row) {
363
+ // //更改合同编号
364
+ // this.title = '修改'
365
+ // this.control = true
366
+ // this.control_update = true
367
+ // this.addData.id = row.id
368
+ // this.addData.f_residential_name = row.f_residential_name
369
+ // this.addData.f_contract_number = row.f_contract_number
370
+ // },
371
+ getfield() {
372
+ let report = {
373
+ 'f_entry_name': '项目名称',
374
+ 'f_entry_num': '项目编号',
375
+ 'defname': '流程状态',
376
+ 'f_gasproperties': '用气性质',
377
+ 'f_user_name': '用户名称',
378
+ 'f_user_phone': '用户电话',
379
+ 'f_address': '用户地址',
380
+ 'f_apply_type': '报建类型',
381
+ 'f_contract_money': '应交金额',
382
+ 'f_charge_money': '实收金额',
383
+ 'f_payment_method': '付款方式',
384
+ 'f_charge_collectors': '收费员',
385
+ 'f_charge_date': '收费日期'
386
+ }
387
+ return report
388
+ },
389
+ /**
390
+ * 获取当前时间
391
+ * 格式YYYY-MM-DD
392
+ */
393
+ getNowFormatDate () {
394
+ let date = new Date();
395
+ let seperator1 = "-";
396
+ let year = date.getFullYear();
397
+ let month = date.getMonth() + 1;
398
+ let strDate = date.getDate();
399
+ if (month >= 1 && month <= 9) {
400
+ month = "0" + month;
401
+ }
402
+ if (strDate >= 0 && strDate <= 9) {
403
+ strDate = "0" + strDate;
404
+ }
405
+ let currentdate = year + seperator1 + month + seperator1 + strDate;
406
+ return currentdate;
407
+ },
408
+ // 获取年月日
409
+ getDate () {
410
+ let result = {
411
+ year: new Date().Format("yyyy"),
412
+ month: new Date().Format("MM"),
413
+ date: new Date().Format("dd")
414
+ }
415
+ return result
416
+ },
417
+ // 获取编号
418
+ async getNumber () {
419
+ let http = new HttpResetClass()
420
+ let data = {
421
+ tablename: 't_singlevalue',
422
+ condition: "name = '派工单编号'"
423
+ }
424
+
425
+ let res = await http.load('POST', 'rs/sql/applysingleTable', {data: data}, {
426
+ resolveMsg: null,
427
+ rejectMsg: '编号查询失败'
428
+ })
429
+ this.num = res.data[0].value
430
+ this.numId = res.data[0].id
431
+ },
432
+ async clickPrint() {
433
+ let code = 7
434
+ // let numLength = this.num.length
435
+ // while (this.num.contain(0)) {
436
+ // this.num = this.num.split(0)[1]
437
+ // }
438
+ // let numValue = parseInt(this.num) + 1
439
+ let numValue = parseInt(this.num) + 1
440
+ console.log("numValue:" + numValue)
441
+ let string = numValue + ''
442
+ let numLength = code - string.length
443
+ console.log("numLength:" + numLength)
444
+ let numCode = ''
445
+ let temp = '0'
446
+ for (let i = 0; i < numLength; i++) {
447
+ numCode = numCode + temp
448
+ console.log("numCode:" + numCode + "--i:" + i)
449
+ }
450
+ let http = new HttpResetClass()
451
+ let data = {
452
+ tablename: 't_singlevalue',
453
+ parameters: {
454
+ id: this.numId,
455
+ value: numCode + numValue
456
+ }
457
+ }
458
+ let res = await http.load('POST', 'rs/logic/apply_save', {data: data}, {
459
+ resolveMsg: null,
460
+ rejectMsg: '编号更新失败'
461
+ })
462
+ },
463
+ },
464
+ computed: {
465
+ date() {
466
+ return getNowDate()
467
+ }
468
+ },
469
+ watch: {
470
+
471
+ }
472
+ }
473
+ </script>
474
+ <style scoped>
475
+ .operate{
476
+ text-align: right;
477
+ display: flex;
478
+ align-items: center; /*子元素中线居中*/
479
+ justify-content: flex-end; /*子元素靠右*/
480
+ margin-top: 7px;
481
+ }
482
+ .head-but{
483
+ margin-left: 5px;
484
+ height: 34px;
485
+ background-color: #6aa6e2;
486
+ border-radius: 4px;
487
+ font-family: PingFang;
488
+ color: #ffffff;
489
+ }
490
+ </style>