apply-clients 3.5.4-7 → 3.5.4-72

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 (105) hide show
  1. package/build/dev-server.js +7 -11
  2. package/package.json +2 -2
  3. package/src/App.vue +25 -25
  4. package/src/apply.js +2 -3
  5. package/src/applyAndroid.js +2 -0
  6. package/src/assets//344/270/213/350/275/275.png +0 -0
  7. package/src/components/android/AppCheckTakePic.vue +168 -0
  8. package/src/components/android/Process/AppServiceControl.vue +4 -0
  9. package/src/components/android/Process/Processes/AppAddMaterialScience.vue +493 -493
  10. package/src/components/android/Process/Processes/AppChargeManagementNew.vue +637 -0
  11. package/src/components/android/Process/Processes/AppInstallationDetails.vue +480 -480
  12. package/src/components/image/dxf.png +0 -0
  13. package/src/components/product/Function/Service/FunctionServiceControl.vue +1 -1
  14. package/src/components/product/Material/MaterialDetailed.vue +1 -1
  15. package/src/components/product/MaterialsManage/MaterialsBase.vue +5 -1
  16. package/src/components/product/MaterialsManage/MaterialsManage.vue +2 -2
  17. package/src/components/product/PcZhihuanManagement.vue +160 -0
  18. package/src/components/product/Process/ExplorationSelect.vue +4 -1
  19. package/src/components/product/Process/ExplorationUser.vue +1 -0
  20. package/src/components/product/Process/Processes/addMaterialScience.vue +471 -471
  21. package/src/components/product/Process/Processes/chargeManagement.vue +1 -1
  22. package/src/components/product/ServiceView.vue +22 -1
  23. package/src/components/product/Supervisory/SupervisoryControl.vue +141 -140
  24. package/src/components/product/Supervisory/SupervisoryList.vue +452 -452
  25. package/src/filiale/baiyin/android/AppServiceControl.vue +1762 -0
  26. package/src/filiale/baiyin/android/ByAddMaterialScience.vue +823 -0
  27. package/src/filiale/baiyin/android/ByDeviceManagement.vue +916 -0
  28. package/src/filiale/baiyin/android.js +8 -0
  29. package/src/filiale/fugou/android/AppAddMaterialScience.vue +442 -0
  30. package/src/filiale/fugou/android/AppChargeManagement.vue +126 -12
  31. package/src/filiale/fugou/android/AppDevicesManagement.vue +519 -0
  32. package/src/filiale/fugou/android/AppInstallationDetails.vue +541 -0
  33. package/src/filiale/fugou/android/AppServiceControl.vue +21 -4
  34. package/src/filiale/fugou/android/AppZhihuanManagement.vue +191 -0
  35. package/src/filiale/fugou/android.js +6 -1
  36. package/src/filiale/fugou/pc/ExplorationSelect.vue +515 -0
  37. package/src/filiale/fugou/pc/InstallationDetails.vue +44 -32
  38. package/src/filiale/fugou/pc/ServiceControl.vue +124 -379
  39. package/src/filiale/fugou/pc/addMaterialScience.vue +482 -0
  40. package/src/filiale/fugou/pc/devicesManagement.vue +483 -0
  41. package/src/filiale/fugou/pc.js +4 -1
  42. package/src/filiale/gongyi/android/AppAddMaterialScience.vue +20 -8
  43. package/src/filiale/gongyi/android/AppDisclosurerecord.vue +214 -0
  44. package/src/filiale/gongyi/android/AppInstallationDetails.vue +15 -10
  45. package/src/filiale/gongyi/android/AppLegacyIssues.vue +309 -0
  46. package/src/filiale/gongyi/android/AppSign.vue +16 -3
  47. package/src/filiale/gongyi/android/AppSupplementalAgreement.vue +298 -0
  48. package/src/filiale/gongyi/android.js +3 -0
  49. package/src/filiale/gongyi/pc/ApplyUpload.vue +31 -39
  50. package/src/filiale/gongyi/pc/PcAddLogs.vue +12 -4
  51. package/src/filiale/gongyi/pc/PcDisclosurerecord.vue +218 -0
  52. package/src/filiale/gongyi/pc/PcLegacyIssues.vue +309 -0
  53. package/src/filiale/gongyi/pc/SupervisoryServiceControl.vue +1 -1
  54. package/src/filiale/gongyi/pc/SupervisoryServiceView.vue +1005 -0
  55. package/src/filiale/gongyi/pc/addMaterialScience.vue +43 -7
  56. package/src/filiale/gongyi/pc/chargeManagement.vue +765 -0
  57. package/src/filiale/gongyi/pc/supplementalAgreement.vue +277 -0
  58. package/src/filiale/gongyi/pc.js +6 -1
  59. package/src/filiale/hongda/pc/SupervisoryList.vue +13 -0
  60. package/src/filiale/jinhuang/pc/ServiceControl.vue +1925 -0
  61. package/src/filiale/jinhuang/pc/chargeManagementNew.vue +589 -0
  62. package/src/filiale/jinhuang/pc.js +7 -0
  63. package/src/filiale/qianneng/android/AppChargeManagement.vue +686 -0
  64. package/src/filiale/qianneng/android/AppExplorationUser.vue +38 -0
  65. package/src/filiale/qianneng/android/AppInstallationDetails.vue +20 -11
  66. package/src/filiale/qianneng/android.js +2 -1
  67. package/src/filiale/qianneng/pc/ApplyUpload.vue +5 -4
  68. package/src/filiale/qianneng/pc/Applybatchdispatch.vue +11 -6
  69. package/src/filiale/qianneng/pc/Applydetail.vue +0 -5
  70. package/src/filiale/qianneng/pc/InstallFunction.vue +2 -2
  71. package/src/filiale/qianneng/pc/InstallationDetails.vue +32 -4
  72. package/src/filiale/qianneng/pc/ServiceControl.vue +1 -0
  73. package/src/filiale/qianneng/pc/printactivatecard.vue +6 -6
  74. package/src/filiale/ruihua/pc/InstallationDetails.vue +610 -610
  75. package/src/filiale/ruihua/pc/ServiceControl.vue +20 -0
  76. package/src/filiale/ruihua/pc/printVentilation.vue +21 -6
  77. package/src/filiale/ruihua/pc.js +12 -12
  78. package/src/filiale/shexian/android/AppServiceControl.vue +12 -2
  79. package/src/filiale/shexian/android/AppTakePic.vue +15 -55
  80. package/src/filiale/siyangRH/android/AppAddMaterialScience.vue +0 -2
  81. package/src/filiale/siyangRH/pc/chargeManagement.vue +810 -0
  82. package/src/filiale/siyangRH/pc.js +1 -0
  83. package/src/filiale/yangchunboneng/android/AppChargeManagement.vue +16 -1
  84. package/src/filiale/yangchunboneng/android/AppDevicesManagement.vue +32 -2
  85. package/src/filiale/yangchunboneng/android/AppExplorationUser.vue +518 -506
  86. package/src/filiale/yangchunboneng/android/AppInstallationMaterial.vue +1083 -1092
  87. package/src/filiale/yangchunboneng/android/AppServiceControl.vue +34 -1
  88. package/src/filiale/yangchunboneng/android/AppSuperServiceControl.vue +1524 -1524
  89. package/src/filiale/yangchunboneng/android/AppUpload.vue +205 -136
  90. package/src/filiale/yangchunboneng/android/MaterIialOne.vue +156 -144
  91. package/src/filiale/yangchunboneng/android.js +20 -20
  92. package/src/filiale/yangchunboneng/pc/ApplyUpload.vue +392 -375
  93. package/src/filiale/yangchunboneng/pc/ExplorationSelect.vue +59 -19
  94. package/src/filiale/yangchunboneng/pc/ExplorationUser.vue +191 -0
  95. package/src/filiale/yangchunboneng/pc/InstallInfoSelect.vue +365 -365
  96. package/src/filiale/yangchunboneng/pc/ServiceControl.vue +206 -2
  97. package/src/filiale/yangchunboneng/pc/SupervisoryControlNew.vue +142 -0
  98. package/src/filiale/yangchunboneng/pc/SupervisoryList.vue +590 -535
  99. package/src/filiale/yangchunboneng/pc/SupervisoryListNew.vue +628 -0
  100. package/src/filiale/yangchunboneng/pc/SupervisoryServiceControl.vue +902 -0
  101. package/src/filiale/yangchunboneng/pc/SupervisoryServiceControlNew.vue +901 -0
  102. package/src/filiale/yangchunboneng/pc/SupervisoryServiceView.vue +1117 -0
  103. package/src/filiale/yangchunboneng/pc/chargeManagement.vue +111 -13
  104. package/src/filiale/yangchunboneng/pc.js +24 -18
  105. package/src/main.js +1 -1
@@ -0,0 +1,8 @@
1
+ import Vue from 'vue'
2
+
3
+ let specialComp = {
4
+ 'app-service-control': (resolve) => { require(['./android/AppServiceControl'], resolve) },
5
+ 'by-add-material-science': (resolve) => { require(['./android/ByAddMaterialScience'], resolve) },
6
+ 'by-device-management': (resolve) => { require(['./android/ByDeviceManagement'], resolve) }
7
+ }
8
+ exports.specialComp = specialComp
@@ -0,0 +1,442 @@
1
+ <template>
2
+ <div>
3
+ <data-grid :model="onetomany" class="list_area table_sy">
4
+ <template partial='head'>
5
+ <tr>
6
+ <th class="textNoLineBreak">序号</th>
7
+ <th class="textNoLineBreak">材料名称</th>
8
+ <th class="textNoLineBreak">材料型号</th>
9
+ <th class="textNoLineBreak">材料单位</th>
10
+ <th class="textNoLineBreak">材料数量</th>
11
+ <th class="textNoLineBreak">
12
+ <button class="button_new button_spacing" type="button" @click="$parent.$parent.openMaterialModal('室内施工')">室内施工
13
+ </button>
14
+ <button class="button_new button_spacing" type="button" @click="$parent.$parent.openMaterialModal('地埋施工')">地埋施工
15
+ </button>
16
+ </th>
17
+ </tr>
18
+ </template>
19
+ <template partial='body'>
20
+ <tr>
21
+ <td style="text-align: center;">
22
+ <nobr>{{$index+1}}</nobr>
23
+ </td>
24
+ <td style="text-align: center;">
25
+ <nobr>{{row.f_material_name}}</nobr>
26
+ </td>
27
+ <td style="text-align: center;">
28
+ <nobr>{{row.f_material_style}}</nobr>
29
+ </td>
30
+ <td style="text-align: center;">
31
+ <nobr>{{row.f_material_unit}}</nobr>
32
+ </td>
33
+ <td style="text-align: center;">
34
+ <nobr>{{row.f_material_number}}</nobr>
35
+ </td>
36
+ <td style="text-align: center;">
37
+ <button type="button" class="button_search button_spacing"
38
+ @click="$parent.$parent.updateMaterial($index,row)">修改
39
+ </button>
40
+ <button type="button" class="button_delete button_spacing" @click="$parent.$parent.deleteMaterial(row)">删除
41
+ </button>
42
+ </td>
43
+ </tr>
44
+ </template>
45
+ </data-grid>
46
+ <modal v-if="showMaterialModal" :show.sync="showMaterialModal" v-ref:modal style="overflow: auto" :large="true"
47
+ :backdrop="false" :title="title">
48
+ <header slot="modal-header" class="modal-header">
49
+ <button type="button" class="close" @click="closeMaterials"><span>&times;</span></button>
50
+ <h4 class="modal-title">{{title}}</h4>
51
+ </header>
52
+ <article slot="modal-body" class="modal-body clearfix">
53
+ <data-grid v-if=" title==='新增'&& showtype == '室内施工'&& indoormaterials.rows.length > 0 " :model="indoormaterials" class="list_area table_sy">
54
+ <template partial='head'>
55
+ <tr>
56
+ <th class="textNoLineBreak" colspan="5">室内材料</th>
57
+ </tr>
58
+ <tr>
59
+ <th class="textNoLineBreak">材料名称</th>
60
+ <th class="textNoLineBreak">材料型号</th>
61
+ <th class="textNoLineBreak">材料单位</th>
62
+ <th class="textNoLineBreak">是否选择</th>
63
+ <th class="textNoLineBreak">材料数量</th>
64
+ </tr>
65
+ </template>
66
+ <template partial='body' >
67
+ <tr>
68
+ <td style="text-align: center;">
69
+ <nobr>{{row.f_material_name}}</nobr>
70
+ </td>
71
+ <td style="text-align: center;">
72
+ <nobr>{{row.f_material_style}}</nobr>
73
+ </td>
74
+ <td style="text-align: center;">
75
+ <nobr>{{row.f_material_unit}}</nobr>
76
+ </td>
77
+ <td style="text-align: center;">
78
+ <input type="checkbox" v-model="row.f_is_check" :value.sync="row.f_is_check"/>
79
+ </td>
80
+ <td style="text-align: center;">
81
+ <input class="form-control input_view" type="number"
82
+ placeholder="设备数量"
83
+ v-model="row.f_material_number"
84
+ :value.sync="row.f_material_number"
85
+ />
86
+ </td>
87
+ </tr>
88
+ </template>
89
+ </data-grid>
90
+ <data-grid v-if=" title==='新增'&& showtype == '地埋施工'&& undergroundmaterials.rows.length > 0 " :model="undergroundmaterials" class="list_area table_sy">
91
+ <template partial='head'>
92
+ <tr>
93
+ <th class="textNoLineBreak" colspan="5">地埋材料</th>
94
+ </tr>
95
+ <tr>
96
+ <th class="textNoLineBreak">材料名称</th>
97
+ <th class="textNoLineBreak">材料型号</th>
98
+ <th class="textNoLineBreak">材料单位</th>
99
+ <th class="textNoLineBreak">是否选择</th>
100
+ <th class="textNoLineBreak">材料数量</th>
101
+ </tr>
102
+ </template>
103
+ <template partial='body' >
104
+ <tr>
105
+ <td style="text-align: center;">
106
+ <nobr>{{row.f_material_name}}</nobr>
107
+ </td>
108
+ <td style="text-align: center;">
109
+ <nobr>{{row.f_material_style}}</nobr>
110
+ </td>
111
+ <td style="text-align: center;">
112
+ <nobr>{{row.f_material_unit}}</nobr>
113
+ </td>
114
+ <td style="text-align: center;">
115
+ <input type="checkbox" v-model="row.f_is_check" :value.sync="row.f_is_check"/>
116
+ </td>
117
+ <td style="text-align: center;">
118
+ <input class="form-control input_view" type="number"
119
+ placeholder="设备数量"
120
+ v-model="row.f_material_number"
121
+ :value.sync="row.f_material_number"
122
+ />
123
+ </td>
124
+ </tr>
125
+ </template>
126
+ </data-grid>
127
+ <div v-for="(i,item) in materials" class="form-group col-sm-12 panel panel-info">
128
+ <div class="panel-heading head col-sm-12" style="background-color: #e8f4ff;margin-bottom: 10px">
129
+ <div class="col-sm-6 text-left">材料{{$index+1}}信息</div>
130
+ <div class="col-sm-6 text-right">
131
+ <button
132
+ class="button_delete button_spacing"
133
+ @click.prevent="deleteDevicesinfo(i)"
134
+ v-if="title === '新增'"
135
+ >删除
136
+ </button>
137
+ </div>
138
+ </div>
139
+ <div class="form-group col-sm-6" v-if="title==='新增'">
140
+ <label class="col-sm-4 control-label">选择材料:</label>
141
+ <div class="col-sm-8">
142
+ <input-select
143
+ class="select select_list"
144
+ :value.sync="item.material"
145
+ v-model="item.material"
146
+ :options="meterialOptions"
147
+ :disable="mark === 1"
148
+ @change="modifyOtherValue(i)"
149
+ :valueSingle="true"></input-select>
150
+ </div>
151
+ </div>
152
+ <div class="form-group col-sm-6" :class="[item.f_material_name ? '' : 'has-error']">
153
+ <label class="col-sm-4 control-label">材料名称:</label>
154
+ <div class="col-sm-8">
155
+ <input class="form-control input_view" style="" type="text"
156
+ placeholder="材料名称"
157
+ v-model="item.f_material_name"
158
+ :value="item.f_material_name"
159
+ />
160
+ </div>
161
+ </div>
162
+ <div class="form-group col-sm-6" :class="[item.f_material_style ? '' : 'has-error']">
163
+ <label class="col-sm-4 control-label">材料型号:</label>
164
+ <div class="col-sm-8">
165
+ <input class="form-control input_view" style="" type="text"
166
+ placeholder="材料型号"
167
+ v-model="item.f_material_style"
168
+ :value="item.f_material_style"
169
+ />
170
+ </div>
171
+ </div>
172
+ <div class="form-group col-sm-6" :class="[item.f_material_unit ? '' : 'has-error']">
173
+ <label class="col-sm-4 control-label">材料单位:</label>
174
+ <div class="col-sm-8">
175
+ <input class="form-control input_view" style="" type="text"
176
+ placeholder="材料单位"
177
+ v-model="item.f_material_unit"
178
+ :value="item.f_material_unit"
179
+ />
180
+ </div>
181
+ </div>
182
+ <div class="form-group col-sm-6" :class="[item.f_material_number ? '' : 'has-error']">
183
+ <label class="col-sm-4 control-label">材料数量:</label>
184
+ <div class="col-sm-8">
185
+ <input class="form-control input_view" style="" type="number"
186
+ placeholder="设备数量"
187
+ v-model="item.f_material_number"
188
+ :value="item.f_material_number"
189
+ />
190
+ </div>
191
+ </div>
192
+ </div>
193
+
194
+ </article>
195
+ <footer slot="modal-footer" class="modal-footer">
196
+ <template v-if="mark !== 1">
197
+ <button type="button" class="btn btn-primary" v-if="title==='新增'" @click="pushMaterial()">添加材料</button>
198
+ <button type="button" class="btn btn-primary" v-if="title==='新增'" @click="addMaterial()"
199
+ :disabled="!$v.valid">确认添加
200
+ </button>
201
+ <button type="button" class="btn btn-primary" v-if="title==='修改'" @click="updateConfirm()"
202
+ :disabled="!$v.valid">确认修改
203
+ </button>
204
+ </template>
205
+ </footer>
206
+ </modal>
207
+ </div>
208
+ </template>
209
+
210
+ <script>
211
+ import Vue from 'vue'
212
+ import {HttpResetClass} from 'vue-client'
213
+ import {isEmpty} from "../../../components/Util";
214
+
215
+ export default {
216
+ name: 'addMaterialScience',
217
+ props: {
218
+ selectdata: {
219
+ type: Object
220
+ }
221
+ },
222
+ data() {
223
+ return {
224
+ onetomany: {
225
+ rows: []
226
+ },
227
+ title: '新增',
228
+ showMaterialModal: false,
229
+ materials: [
230
+ ],
231
+ meterialOptions: [],
232
+ row: {},
233
+ fmaterialname:{},
234
+ isShow:[false],
235
+ indoormaterials: {
236
+ rows: []
237
+ },
238
+ undergroundmaterials: {
239
+ rows: []
240
+ },
241
+ showtype:''
242
+ }
243
+ },
244
+ ready() {
245
+ this.getOnetoManyData()
246
+ },
247
+ methods: {
248
+ async getOnetoManyData () {
249
+ let http = new HttpResetClass()
250
+ let data = {
251
+ tablename: `t_material_apply`,
252
+ condition: `f_process_id='${this.selectdata.f_process_id}'`
253
+ }
254
+ let res = await http.load(
255
+ 'POST',
256
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable?aaa=123`,
257
+ {data: data},
258
+ {resolveMsg: null, rejectMsg: 'onetomany查询失败'}
259
+ )
260
+ this.onetomany.rows = res.data
261
+ },
262
+ async getMateralOptions () {
263
+ this.indoormaterials.rows = []
264
+ this.undergroundmaterials.rows = []
265
+ let datarow = {
266
+ workname: 'materials'
267
+ }
268
+ let http = new HttpResetClass()
269
+ let row = await http.load(
270
+ 'POST',
271
+ `${this.$androidUtil.getProxyUrl()}/rs/logic/ApplyGetConfigs`,
272
+ {data: datarow},
273
+ {resolveMsg: null, rejectMsg: '配置数据获取失败!!!'}
274
+ )
275
+ if (this.selectdata.f_apply_type == '散户报建'){
276
+ this.indoormaterials.rows = row.data['散户报建']['室内材料']
277
+ this.undergroundmaterials.rows = row.data['散户报建']['地埋材料']
278
+ }else if (this.selectdata.f_apply_type == '工商户报建' && this.selectdata.f_apply_nature == '商业报建' ){
279
+ this.indoormaterials.rows = row.data['商业报建']['室内材料']
280
+ this.undergroundmaterials.rows = row.data['商业报建']['地埋材料']
281
+ }
282
+ },
283
+ async openMaterialModal(row) {
284
+ this.getMateralOptions()
285
+ this.materials = []
286
+ this.getMateralNames()
287
+ this.title = '新增'
288
+ this.showtype = row
289
+ this.showMaterialModal = true
290
+ this.isShow = [false]
291
+ },
292
+ deleteDevicesinfo(index) {
293
+ this.materials.splice(index, 1)
294
+ this.isShow.splice(index, 1)
295
+ },
296
+ pushMaterial() {
297
+ this.materials.push({
298
+ f_material_price: '',
299
+ material: '',
300
+ f_material_name: '',
301
+ f_material_style: '',
302
+ f_material_unit: '',
303
+ f_material_number: '',
304
+ f_bjq_sid: '',
305
+ f_material_code: '',
306
+ f_userinfo_code: ''
307
+ })
308
+ this.isShow.push(false)
309
+ },
310
+ // 获取模态框材料
311
+ async getMateralNames() {
312
+ let data = {
313
+ condition: `1=1`
314
+ }
315
+ let http = new HttpResetClass()
316
+ let res = await http.load(
317
+ 'POST',
318
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/getStockMaterial`,
319
+ {data: data},
320
+ {resolveMsg: null, rejectMsg: '材料查询失败!!!'}
321
+ )
322
+
323
+ this.meterialOptions = res.data.map(item => {
324
+ return {
325
+ 'label': `${item.f_material_name}--${item.f_material_style}`,
326
+ 'value': item
327
+ }
328
+ })
329
+ },
330
+ modifyOtherValue(index) {
331
+ console.log("进来了", index)
332
+ console.log("dddd", this.materials[index].material)
333
+ if(this.materials[index].material){
334
+ let material = this.materials[index].material
335
+ this.materials[index].f_material_price = material.f_material_price
336
+ this.materials[index].f_material_name = material.f_material_name
337
+ this.materials[index].f_material_style = material.f_material_style
338
+ this.materials[index].f_material_unit = material.f_material_unit
339
+ this.materials[index].f_material_number = material.f_material_number
340
+ this.materials[index].f_material_code = material.f_material_code
341
+ this.materials[index].f_userinfo_code = material.f_userinfo_code
342
+ }else{
343
+ this.materials[index].f_material_price =''
344
+ this.materials[index].f_material_name = ''
345
+ this.materials[index].f_material_style = ''
346
+ this.materials[index].f_material_unit =''
347
+ this.materials[index].f_material_number = ''
348
+ this.materials[index].f_material_code =''
349
+ this.materials[index].f_userinfo_code =''
350
+ }
351
+ },
352
+ // 新增材料
353
+ async addMaterial() {
354
+ this.title = '新增'
355
+ for (let i = 0; i < this.indoormaterials.rows.length; i++){
356
+ let row = this.indoormaterials.rows[i]
357
+ if (row.f_is_check && !isEmpty(row.f_material_number)){
358
+ this.materials.push(row)
359
+ }
360
+ }
361
+ for (let i = 0; i < this.undergroundmaterials.rows.length; i++){
362
+ let row = this.undergroundmaterials.rows[i]
363
+ if (row.f_is_check && !isEmpty(row.f_material_number)){
364
+ this.materials.push(row)
365
+ }
366
+ }
367
+ let data = {
368
+ f_process_id: this.selectdata.f_process_id,
369
+ f_operator_id: Vue.user.id,
370
+ f_operator: Vue.user.name,
371
+ f_operation_date: new Date().Format('yyyy-MM-dd HH:mm:ss'),
372
+ f_orgid: Vue.user.orgid,
373
+ f_orgname: Vue.user.orgs,
374
+ materials: this.materials
375
+ }
376
+
377
+ let http = new HttpResetClass()
378
+ let res = await http.load(
379
+ 'POST',
380
+ `${this.$androidUtil.getProxyUrl()}/rs/logic/saveMaterials`,
381
+ data
382
+ )
383
+ this.closeMaterials()
384
+ },
385
+ async deleteMaterial(row) {
386
+ debugger
387
+ var show1 = window.confirm('您确定要删除这条记录吗?')
388
+ if(show1 != true){
389
+ this.closeMaterials()
390
+ }else{
391
+ let http = new HttpResetClass()
392
+ let res = await http.load(
393
+ 'POST',
394
+ `${this.$androidUtil.getProxyUrl()}/rs/logic/deleteMaterial`,
395
+ {data: row},
396
+ {resolveMsg: null, rejectMsg: '材料删除失败!!!'}
397
+ )
398
+ this.closeMaterials()
399
+ }
400
+ }
401
+ ,
402
+ async updateMaterial(index, row) {
403
+ this.title = '修改'
404
+ this.row = row
405
+ this.materials[0] = row
406
+ this.showMaterialModal = true
407
+ },
408
+ async updateConfirm() {
409
+ let data = this.row
410
+ data.f_material_price = this.materials[0].f_material_price
411
+ data.f_material_name = this.materials[0].f_material_name
412
+ data.f_material_style = this.materials[0].f_material_style
413
+ data.f_material_unit = this.materials[0].f_material_unit
414
+ data.f_material_number = this.materials[0].f_material_number
415
+ data.f_material_code = this.materials[0].f_material_code
416
+ data.f_bjq_sid = this.materials[0].f_bjq_sid
417
+ data.f_userinfo_code=this.materials[0].f_userinfo_code
418
+
419
+ let http = new HttpResetClass()
420
+ let res = await http.load(
421
+ 'POST',
422
+ `${this.$androidUtil.getProxyUrl()}/rs/entity/t_material_apply`,
423
+ data
424
+ )
425
+ this.closeMaterials()
426
+ },
427
+ sycronizedCode(index,val){
428
+ console.log("看看:",index,val)
429
+ this.materials[index].f_material_code = val
430
+ },
431
+ closeMaterials() {
432
+ this.getOnetoManyData()
433
+ this.showMaterialModal = false
434
+ }
435
+ }
436
+ }
437
+
438
+ </script>
439
+
440
+ <style scoped>
441
+
442
+ </style>
@@ -345,16 +345,31 @@
345
345
  </footer>
346
346
  </modal>
347
347
 
348
- <modal v-if="showPrint" :show.sync="showPrint" v-ref:modal :large="true" :backdrop="false" title="打印预览">
348
+
349
+ <modal v-if="showQrCode" :show.sync="showQrCode" v-ref:modal :large="true" :backdrop="false" title="二维码">
349
350
  <header slot="modal-header" class="modal-header">
350
- <button type="button" class="close" @click="closeModal"><span>&times;</span></button>
351
- <h4 class="modal-title">打印预览</h4>
351
+ <button type="button" class="close" @click="closeQrCode"><span>&times;</span></button>
352
352
  </header>
353
353
  <article slot="modal-body" class="modal-body clearfix">
354
- <apply-print-chargepc :selectdata="selectdata" :charge="charge" v-ref:print></apply-print-chargepc>
354
+ <div partial>
355
+ <div class="" align="center">
356
+ <div style="margin-bottom:10px "><img src="../../../assets/scanCode.png">请扫描下方二维码进行付款</div>
357
+ <div class="row app-row">
358
+ <div class="col-xs-12">
359
+ <label class="font text-left">订单编号:{{ order.body.tradeNo }}</label>
360
+ </div>
361
+ </div>
362
+ </div>
363
+ <div class="" align="center">
364
+ <div class="QR-code" >
365
+ <img src="../../../assets/qrcode_no.png" style="width: 266px;height: 266px"/>
366
+ <div id="qrcode" style="margin-top: 25px;width: 266px;height: 266px"></div>
367
+ </div>
368
+ </div>
369
+ </div>
355
370
  </article>
356
371
  <footer slot="modal-footer" class="modal-footer">
357
- <button type="button" class="btn btn-primary" @click="print()">打印</button>
372
+ <button type="button" class="btn btn-primary" @click="closeQrCode()">关闭</button>
358
373
  </footer>
359
374
  </modal>
360
375
  </div>
@@ -364,6 +379,7 @@ import {getNowDate,isEmpty} from '../../../components/Util'
364
379
  import {PagedList} from 'vue-client'
365
380
  import {HttpResetClass} from 'vue-client'
366
381
  import Vue from 'vue'
382
+ import QRCode from "qrcodejs2";
367
383
 
368
384
  export default {
369
385
  title: '收费管理',
@@ -380,20 +396,120 @@ export default {
380
396
  return {
381
397
  showCharge: false, // 收费明细
382
398
  showInvalid: false, // 作废
383
- showPrint: false, // 打印
384
399
  model: {
385
400
  data: null
386
401
  }, // 记录
387
402
  useraddresList: [], // 地址列表
388
403
  charge: {
389
404
 
390
- }
405
+ },
406
+ order:'',
407
+ isTimeout:false,
408
+ showQrCode:false
391
409
  }
392
410
  },
393
411
  ready () {
394
412
  this.search()
395
413
  },
396
414
  methods: {
415
+ closeQrCode(){
416
+ document.getElementById('qrcode').innerHTML = ''
417
+ },
418
+ async openQrCode() {
419
+ const merchantMsg =this.$appdata.getSingleValue('商户号')
420
+ if (!merchantMsg){
421
+ this.$showMessage('未配备商户号,请联系管理员!')
422
+ return
423
+ }
424
+ const outTradeNo = this.generateRandomString(30)
425
+ // 下订单
426
+ let http = new HttpResetClass()
427
+ const val = {
428
+ "body": this.charge.f_payment_term,
429
+ "detail": this.charge.f_payment_term,
430
+ "totalAmount": (this.charge.f_charge_money).toString(),
431
+ "merchantMsg": merchantMsg,//商户id
432
+ "outTradeNo": outTradeNo,//随机数30位
433
+ "service": "nativePay",//死值
434
+ "tradeType": "wechat_jsapi"//死值
435
+ }
436
+ try {
437
+ let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/bank/rs/logic/BC_10001`, {data: val}, {
438
+ resolveMsg: null,
439
+ rejectMsg: null
440
+ })
441
+ if (res.data.status === 200) {
442
+ console.log("调用结果", res.data, res.data.body.url)
443
+ try {
444
+ this.order = res.data
445
+ this.isTimeout = false
446
+ this.showQrCode = true
447
+ console.log(this.order)
448
+ this.$nextTick(() => {
449
+ this.qrcode(res.data.body.url)
450
+ })
451
+ if (this.order.body.tradeNo) {
452
+ this.timer1 = window.setInterval(this.getOrderInformation, 3000)
453
+ }
454
+ } catch (e) {
455
+ this.$showMessage('创建订单失败!')
456
+ }
457
+ } else {
458
+ this.$showMessage('获取二维码失败!')
459
+ }
460
+ } catch (e) {
461
+ this.$showMessage('获取二维码失败,请检查网络!')
462
+ }
463
+ },
464
+ // 获取订单信息
465
+ async getOrderInformation() {
466
+ const merchantMsg =this.$appdata.getSingleValue('商户号')
467
+ // 查询订单信息
468
+ console.log('查询订单信息!!!', this.order)
469
+ try {
470
+ let http = new HttpResetClass()
471
+ let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/bank/rs/logic/BC_10003`, {
472
+ data: {
473
+ "service": "queryOrder",
474
+ "outTradeNo": this.order.body.outTradeNo,
475
+ "merchantMsg": merchantMsg,
476
+ "tradeNo": ""
477
+ }
478
+ }, {
479
+ resolveMsg: null,
480
+ rejectMsg: null
481
+ })
482
+ // 支付成功
483
+ this.orderstatus = res.data
484
+ console.log('查询结果=======', res.data)
485
+ if (res.data.status == '200') {
486
+ window.clearInterval(this.timer1)
487
+ console.log('支付成功', this.orderstatus)
488
+ this.order = {}
489
+ }
490
+ } catch (e) {
491
+ window.clearInterval(this.timer1)
492
+ this.$showMessage('创建订单失败!')
493
+ this.order = {}
494
+ }
495
+ },
496
+ qrcode(url) {
497
+ new QRCode('qrcode', {
498
+ text: url, // 设置二维码内容或跳转地址
499
+ width: 266, // 设置宽度,单位像素
500
+ height: 266, // 设置高度,单位像素
501
+ correctLevel: QRCode.CorrectLevel.L //容错率,L/M/Hs
502
+ })
503
+ },
504
+ generateRandomString(length) {
505
+ let result = new Date().getTime().toString()
506
+ const characters = 'abcdefghijklmnopqrstuvwxyz0123456789';
507
+ const charactersLength = characters.length;
508
+ for (let i = 0; i < length; i++) {
509
+ result += characters.charAt(Math.floor(Math.random() * charactersLength));
510
+ }
511
+ return result.substring(0, 30);
512
+ },
397
513
  async payerNumberChange () {
398
514
  if (isEmpty(this.charge.f_payer_number)) {
399
515
  return
@@ -415,10 +531,6 @@ export default {
415
531
  print () {
416
532
  this.$refs.print.$refs.print.PrintTable()
417
533
  },
418
- showPrintModal(row) {
419
- this.charge = row
420
- this.showPrint = true
421
- },
422
534
  selectAddres () {
423
535
  if (this.charge.useraddres) {
424
536
  this.charge.f_cumulative_payment_money = this.charge.useraddres.f_cumulative_payment_money
@@ -452,6 +564,9 @@ export default {
452
564
  },
453
565
  // 新增收费
454
566
  async saveCharge() {
567
+ if(this.charge.f_payment_method=='二维码收费'){
568
+ this.openQrCode()
569
+ }
455
570
  let http = new HttpResetClass()
456
571
  let data = {
457
572
  apply: this.selectdata,
@@ -591,7 +706,6 @@ export default {
591
706
  closeModal() {
592
707
  this.showCharge = false
593
708
  this.showInvalid = false
594
- this.showPrint = false
595
709
  this.charge = {}
596
710
  this.search()
597
711
  }