apply-clients 3.4.13 → 3.4.15

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 (24) hide show
  1. package/build/dev-server.js +2 -2
  2. package/package.json +1 -1
  3. package/src/AndroidApp.vue +18 -18
  4. package/src/android.js +21 -21
  5. package/src/applyAndroid.js +53 -46
  6. package/src/components/android/AppSign.vue +1 -1
  7. package/src/components/product/Process/Service/ServiceControl.vue +1 -0
  8. package/src/filiale/guangxi/android/Process/AppExplorationUser.vue +503 -0
  9. package/src/filiale/guangxi/android/Process/AppServiceControl.vue +1708 -0
  10. package/src/filiale/guangxi/android/Process/Processes/AppAddMaterialScience.vue +457 -0
  11. package/src/filiale/guangxi/android/Process/Processes/AppBuildSign.vue +46 -0
  12. package/src/filiale/guangxi/android/Process/Processes/AppChargeManagement.vue +637 -0
  13. package/src/filiale/guangxi/android/Process/Processes/AppDevicesManagement.vue +519 -0
  14. package/src/filiale/guangxi/android/Process/Processes/AppInstallationDetails.vue +482 -0
  15. package/src/filiale/guangxi/android/Process/Processes/AppServiceView.vue +766 -0
  16. package/src/filiale/guangxi/android/Process/Processes/AppSupplementalAgreement.vue +298 -0
  17. package/src/filiale/guangxi/android/Process/Processes/selectApply.vue +250 -0
  18. package/src/filiale/guangxi/android/Process/Processes/selectUserinfo.vue +182 -0
  19. package/src/filiale/guangxi/android.js +6 -14
  20. package/src/filiale/guangxi/pc/Process/Service/ServiceControl.vue +23 -1
  21. package/src/filiale/guangxi/pc/Process/Service/SupervisoryServiceControl.vue +7 -0
  22. package/src/filiale/guangxi/pc/Process/Service/addMaterialScience.vue +434 -0
  23. package/src/filiale/guangxi/pc.js +3 -1
  24. package/src/main.js +4 -4
@@ -0,0 +1,434 @@
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">材料编号</th>
12
+ <th class="textNoLineBreak">材料标识</th>
13
+ <th class="textNoLineBreak">
14
+ <button class="button_new button_spacing" type="button" @click="$parent.$parent.openMaterialModal()">添加</button>
15
+ <button type="button" class="btn btn-info head-but" v-if="$parent.$parent.mark === 0"
16
+ @click="$parent.$parent.showFile = !$parent.$parent.showFile">导入</button>
17
+ <a type="button" class="btn btn-info head-but" v-if="$parent.$parent.mark === 0"
18
+ href="/apply/download/excel/材料明细.xlsx" download>模板下载</a>
19
+ </th>
20
+ </tr>
21
+ </template>
22
+ <template partial='body'>
23
+ <tr>
24
+ <td style="text-align: center;">
25
+ <nobr>{{$index+1}}</nobr>
26
+ </td>
27
+ <td style="text-align: center;">
28
+ <nobr>{{row.f_material_name}}</nobr>
29
+ </td>
30
+ <td style="text-align: center;">
31
+ <nobr>{{row.f_material_style}}</nobr>
32
+ </td>
33
+ <td style="text-align: center;">
34
+ <nobr>{{row.f_material_unit}}</nobr>
35
+ </td>
36
+ <td style="text-align: center;">
37
+ <nobr>{{row.f_material_number}}</nobr>
38
+ </td>
39
+ <td style="text-align: center;">
40
+ <nobr>{{row.f_bjq_sid}}</nobr>
41
+ </td>
42
+ <td style="text-align: center;">
43
+ <nobr>{{row.f_material_code}}</nobr>
44
+ </td>
45
+ <td style="text-align: center;">
46
+ <button type="button" class="button_search button_spacing" @click="$parent.$parent.updateMaterial($index,row)">修改</button>
47
+ <button type="button" class="button_delete button_spacing" @click="$parent.$parent.deleteMaterial(row)">删除</button>
48
+ </td>
49
+ </tr>
50
+ </template>
51
+ </data-grid>
52
+ <modal v-if="showFile" :show.sync="showFile" v-ref:modal :backdrop="false" title="选择文件">
53
+ <header slot="modal-header" class="modal-header">
54
+ <button type="button" class="close" @click="closeFile"><span>&times;</span></button>
55
+ <h4 class="modal-title">选择文件</h4>
56
+ </header>
57
+ <article slot="modal-body" class="modal-body">
58
+ <div class="form-group">
59
+ <file-upload class="my-file-uploader" name="useraddressUploadFile" action="rs/file/uploadFile" tagname="确定" v-ref:file></file-upload>
60
+ </div>
61
+ </article>
62
+ <footer slot="modal-footer" class="modal-footer"></footer>
63
+ </modal>
64
+ <modal v-if="showMaterialModal" :show.sync="showMaterialModal" v-ref:modal :large="true"
65
+ :backdrop="false" :title="title">
66
+ <header slot="modal-header" class="modal-header">
67
+ <button type="button" class="close" @click="closeMaterials"><span>&times;</span></button>
68
+ <h4 class="modal-title">{{title}}</h4>
69
+ </header>
70
+ <article slot="modal-body" class="modal-body clearfix">
71
+ <div v-for="(i,item) in materials" class="form-group col-sm-12 panel panel-info">
72
+ <div class="panel-heading head col-sm-12" style="background-color: #e8f4ff;margin-bottom: 10px">
73
+ <div class="col-sm-6 text-left">材料{{$index+1}}信息</div>
74
+ <div class="col-sm-6 text-right"><button
75
+ class="button_delete button_spacing"
76
+ @click.prevent="deleteDevicesinfo(i)"
77
+ v-if="title === '新增'"
78
+ >删除</button></div>
79
+ </div>
80
+ <div class="form-group col-sm-6">
81
+ <label class="col-sm-4 control-label">选择材料:</label>
82
+ <div class="col-sm-8">
83
+ <input-select
84
+ class="select select_list"
85
+ :value.sync="item.material"
86
+ v-model="item.material"
87
+ :options="meterialOptions"
88
+ :disable="mark === 1"
89
+ @change="modifyOtherValue(i)"
90
+ :valueSingle="true"></input-select>
91
+ </div>
92
+ </div>
93
+ <div class="form-group col-sm-6" :class="[item.f_material_name ? '' : 'has-error']">
94
+ <label class="col-sm-4 control-label">材料名称:</label>
95
+ <div class="col-sm-8">
96
+ <input class="form-control input_view" style="" type="text"
97
+ placeholder="材料名称"
98
+ v-model="item.f_material_name"
99
+ :value="item.f_material_name"
100
+ />
101
+ </div>
102
+ </div>
103
+ <div class="form-group col-sm-6" :class="[item.f_material_style ? '' : 'has-error']">
104
+ <label class="col-sm-4 control-label">材料型号:</label>
105
+ <div class="col-sm-8">
106
+ <input class="form-control input_view" style="" type="text"
107
+ placeholder="材料型号"
108
+ v-model="item.f_material_style"
109
+ :value="item.f_material_style"
110
+ />
111
+ </div>
112
+ </div>
113
+ <div class="form-group col-sm-6" :class="[item.f_material_unit ? '' : 'has-error']">
114
+ <label class="col-sm-4 control-label">材料单位:</label>
115
+ <div class="col-sm-8">
116
+ <input class="form-control input_view" style="" type="text"
117
+ placeholder="材料单位"
118
+ v-model="item.f_material_unit"
119
+ :value="item.f_material_unit"
120
+ />
121
+ </div>
122
+ </div>
123
+ <div class="form-group col-sm-6" :class="[item.f_material_number ? '' : 'has-error']">
124
+ <label class="col-sm-4 control-label">材料数量:</label>
125
+ <div class="col-sm-8">
126
+ <input class="form-control input_view" style="" type="number"
127
+ placeholder="设备数量"
128
+ v-model="item.f_material_number"
129
+ :value="item.f_material_number"
130
+ />
131
+ </div>
132
+ </div>
133
+ <div class="form-group col-sm-6">
134
+ <label class="col-sm-4 control-label">材料编号:</label>
135
+ <div class="col-sm-8">
136
+ <input class="form-control input_view" style="" type="text"
137
+ placeholder="材料编号"
138
+ v-model="item.f_bjq_sid"
139
+ :value="item.f_bjq_sid"
140
+ />
141
+ </div>
142
+ </div>
143
+ <div class="form-group col-sm-6">
144
+ <label class="col-sm-4 control-label">材料标识:</label>
145
+ <div class="col-sm-8">
146
+ <input class="form-control input_view" style=""
147
+ placeholder="材料标识"
148
+ v-model="item.f_material_code"
149
+ :value.sync="item.f_material_code"
150
+ />
151
+ </div>
152
+ </div>
153
+ </div>
154
+
155
+ </article>
156
+ <footer slot="modal-footer" class="modal-footer">
157
+ <template v-if="mark !== 1">
158
+ <button type="button" class="btn btn-primary" v-if="title==='新增'" @click="pushMaterial()">添加材料</button>
159
+ <button type="button" class="btn btn-primary" v-if="title==='新增'" @click="addMaterial()" :disabled="!$v.valid">确认添加</button>
160
+ <button type="button" class="btn btn-primary" v-if="title==='修改'" @click="updateConfirm()" :disabled="!$v.valid">确认修改</button>
161
+ </template>
162
+ </footer>
163
+ </modal>
164
+ </div>
165
+ </template>
166
+
167
+ <script>
168
+ import {HttpResetClass} from 'vue-client'
169
+ import Vue from "vue";
170
+ export default {
171
+ name: 'addMaterialScience',
172
+ props: {
173
+ selectdata: {
174
+ type: Object
175
+ },
176
+ mark: {
177
+ type: Number,
178
+ default: 0
179
+ }
180
+ },
181
+ data () {
182
+ return {
183
+ showFile: false,
184
+ onetomany: {
185
+ rows: []
186
+ },
187
+ title:'新增',
188
+ showMaterialModal:false,
189
+ materials:[
190
+ {
191
+ material:'',
192
+ f_material_name:'',
193
+ f_material_style:'',
194
+ f_material_unit:'',
195
+ f_material_number:'',
196
+ f_bjq_sid:'',
197
+ f_material_code:'',
198
+ f_userinfo_code:''
199
+ }
200
+ ],
201
+ meterialOptions:[],
202
+ row:{},
203
+ bjqChecklag:[]
204
+ }
205
+ },
206
+ ready(){
207
+ this.getOnetoManyData()
208
+ },
209
+ methods: {
210
+ async getOnetoManyData () {
211
+ let data = {
212
+ tablename: `t_material_apply`,
213
+ condition: `f_process_id='${this.selectdata.f_process_id}'`
214
+ }
215
+ let res = await this.$resetpost(
216
+ 'rs/sql/singleTable',
217
+ {data: data},
218
+ {resolveMsg: null, rejectMsg: 'onetomany查询失败'}
219
+ )
220
+ this.onetomany.rows = res.data
221
+ },
222
+ async openMaterialModal () {
223
+ this.getMateralNames()
224
+ this.title = '新增'
225
+ this.materials = [
226
+ {
227
+ material:'',
228
+ f_material_name:'',
229
+ f_material_style:'',
230
+ f_material_unit:'',
231
+ f_material_number:'',
232
+ f_bjq_sid:'',
233
+ f_material_code:'',
234
+ f_userinfo_code:''
235
+ }
236
+ ],
237
+ this.showMaterialModal = true
238
+ },
239
+ closeFile() {
240
+ this.showWork = false
241
+ this.showFile = false
242
+ // 将选的文件清空
243
+ this.$refs.file.$el.querySelector('input').value = ''
244
+ this.search()
245
+ },
246
+ deleteDevicesinfo (index) {
247
+ this.materials.splice(index, 1)
248
+ },
249
+ pushMaterial () {
250
+ this.materials.push({
251
+ material:'',
252
+ f_material_name:'',
253
+ f_material_style:'',
254
+ f_material_unit:'',
255
+ f_material_number:'',
256
+ f_bjq_sid:'',
257
+ f_material_code:'',
258
+ })
259
+ },
260
+ // 获取模态框材料
261
+ async getMateralNames () {
262
+ let data = {
263
+ condition: `1=1`
264
+ }
265
+ let http = new HttpResetClass()
266
+ let res = await http.load(
267
+ 'POST',
268
+ `rs/sql/getStockMaterial`,
269
+ {data: data},
270
+ {resolveMsg: null, rejectMsg: '材料查询失败!!!'}
271
+ )
272
+
273
+ this.meterialOptions = res.data.map(item => {
274
+ return {
275
+ 'label': `${item.f_material_name}--${item.f_material_style}--${item.f_material_unit}--${item.f_material_code}`,
276
+ 'value': item
277
+ }
278
+ })
279
+ },
280
+ modifyOtherValue (index){
281
+ console.log("进来了",index)
282
+ console.log("dddd",this.materials[index].material)
283
+ let material = this.materials[index].material
284
+ this.materials[index].f_material_name = material.f_material_name
285
+ this.materials[index].f_material_style = material.f_material_style
286
+ this.materials[index].f_material_unit = material.f_material_unit
287
+ this.materials[index].f_material_number = material.f_material_number
288
+ this.materials[index].f_material_code = material.f_material_code
289
+ },
290
+ // 新增材料
291
+ async addMaterial () {
292
+ console.log("登录信息:",this.$login.f)
293
+ this.title = '新增'
294
+ let data = {
295
+ f_process_id : this.selectdata.f_process_id,
296
+ f_operator_id: this.$login.f.id,
297
+ f_operator: this.$login.f.name,
298
+ f_operation_date: new Date().Format('yyyy-MM-dd HH:mm:ss'),
299
+ f_orgid: this.$login.f.orgid,
300
+ f_orgname: this.$login.f.orgs,
301
+ materials:this.materials
302
+ }
303
+ //报警器流程 设备编号检验
304
+ await this.bjqCheck()
305
+ console.log("这是bjqChecklag数据:",this.bjqChecklag)
306
+ if (this.bjqChecklag.length > 0){
307
+ return
308
+ }
309
+ let res = await this.$resetpost(
310
+ `rs/logic/saveMaterials`,
311
+ data
312
+ )
313
+ this.closeMaterials()
314
+ },
315
+ async deleteMaterial (row) {
316
+ var show1 = window.confirm('您确定要删除这条记录吗?')
317
+ if(show1 != true){
318
+ this.closeMaterials()
319
+ }else{
320
+ debugger
321
+ let http = new HttpResetClass()
322
+ let res = await http.load(
323
+ 'POST',
324
+ `rs/logic/deleteMaterial`,
325
+ {data: row},
326
+ {resolveMsg: null, rejectMsg: '材料删除失败!!!'}
327
+ )
328
+ this.closeMaterials()
329
+ }
330
+
331
+ },
332
+ async updateMaterial (index,row) {
333
+ this.title = '修改'
334
+ this.row = row
335
+ this.getMateralNames()
336
+ this.materials = [
337
+ {
338
+ material:'',
339
+ f_material_name:row.f_material_name,
340
+ f_material_style:row.f_material_style,
341
+ f_material_unit:row.f_material_unit,
342
+ f_material_number:row.f_material_number,
343
+ f_material_code:row.f_material_code,
344
+ f_bjq_sid: row.f_bjq_sid
345
+ }
346
+ ]
347
+ this.showMaterialModal = true
348
+ },
349
+ async updateConfirm () {
350
+ let data = this.row
351
+ data.f_material_name = this.materials[0].f_material_name
352
+ data.f_material_style = this.materials[0].f_material_style
353
+ data.f_material_unit = this.materials[0].f_material_unit
354
+ data.f_material_number = this.materials[0].f_material_number
355
+ data.f_material_code = this.materials[0].f_material_code
356
+ data.f_bjq_sid = this.materials[0].f_bjq_sid
357
+ //报警器流程 设备编号检验
358
+ await this.bjqCheck()
359
+ if (this.bjqChecklag.length > 0){
360
+ return
361
+ }
362
+ let res = await this.$resetpost(
363
+ `rs/entity/t_material_apply`,
364
+ data
365
+ )
366
+ this.closeMaterials()
367
+ },
368
+ sycronizedCode(index,val){
369
+ console.log("看看:",index,val)
370
+ this.materials[index].f_material_code = val
371
+ },
372
+ closeMaterials () {
373
+ this.getOnetoManyData()
374
+ this.showMaterialModal = false
375
+ },
376
+ async bjqCheck(){
377
+ //报警器设备型号校验
378
+ this.bjqChecklag = [] //初始化
379
+ if (this.selectdata.f_apply_type === '报警器报建' || this.selectdata.f_apply_type === '工商业报警器报建'){
380
+ let bjqinfo = {
381
+ f_material_name : "",
382
+ f_bjq_sid: ""
383
+ }
384
+ for (const bjqinfoElement of this.materials) {
385
+ bjqinfo.f_bjq_sid = bjqinfoElement.f_bjq_sid
386
+ bjqinfo.f_material_name = bjqinfoElement.f_material_name
387
+ if (bjqinfo.f_material_name.substr(0,3) === '报警器'){
388
+ let http = new HttpResetClass()
389
+ let res = await http.load(
390
+ 'POST',
391
+ // `/rs/logic/bjqcheck`,
392
+ `ncc/rs/logic/bjqcheck`,
393
+ bjqinfo
394
+ )
395
+ if (res.data.code != 200){
396
+ this.bjqChecklag.push(res.data.code)
397
+ // this.$showMessage(res.data.msg)
398
+ Vue.showAlert(res.data.msg, 'danger', 6000)
399
+ return
400
+ }
401
+ }
402
+ }
403
+ }
404
+ }
405
+ },
406
+ events: {
407
+ 'beforeFileUpload' (file) {
408
+ this.showWork = true
409
+ },
410
+ async 'onFileUpload'(file, result) {
411
+ let data = {
412
+ selectdata: this.selectdata,
413
+ filepath: result.f_downloadpath,
414
+ user: this.$login.f
415
+ }
416
+ try {
417
+ let res = await this.$resetpost(`rs/logic/importMaterial`, {data: data}, {
418
+ resolveMsg: null,
419
+ rejectMsg: '导入失败!!!',
420
+ silent: true
421
+ }, 0)
422
+ } catch (e) {
423
+ this.closeFile()
424
+ }
425
+ this.$dispatch('breakControl', this.selectdata)
426
+ }
427
+ },
428
+ }
429
+
430
+ </script>
431
+
432
+ <style scoped>
433
+
434
+ </style>
@@ -6,6 +6,8 @@ let specialComp = {
6
6
  'supervisory-service-control': (resolve) => { require(['./pc/Process/Service/SupervisoryServiceControl'], resolve) },
7
7
  'service-control': (resolve) => { require(['./pc/Process/Service/ServiceControl'], resolve) },
8
8
  'apply-charge-list': (resolve) => { require(['./pc/ApplyCharge/ApplyChargeList'], resolve) },
9
- 'apply-charge-search': (resolve) => { require(['./pc/ApplyCharge/ApplyChargeSearch'], resolve) }
9
+ 'apply-charge-search': (resolve) => { require(['./pc/ApplyCharge/ApplyChargeSearch'], resolve) },
10
+ 'add-material-science': (resolve) => { require(['./pc/Process/Service/addMaterialScience'], resolve) }
11
+
10
12
  }
11
13
  exports.specialComp = specialComp
package/src/main.js CHANGED
@@ -6,13 +6,13 @@ import {system} from 'system-clients'
6
6
  import {sale} from 'sale-client'
7
7
  import {material} from 'material-client'
8
8
 
9
- // import apply from './apply'
9
+ import apply from './apply'
10
10
 
11
- import applyAndroid from './applyAndroid'
11
+ // import applyAndroid from './applyAndroid'
12
12
 
13
13
  all()
14
- // apply('')
15
- applyAndroid()
14
+ apply('guangxi')
15
+ // applyAndroid('guangxi')
16
16
  ldap()
17
17
  sale()
18
18
  material()