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,214 @@
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">
10
+ <button type="button" class="btn btn-primary" @click="$parent.$parent.openMaterialModal()">添加
11
+ </button>
12
+ </th>
13
+ </tr>
14
+ </template>
15
+ <template partial='body'>
16
+ <tr>
17
+ <td style="text-align: center;">
18
+ <nobr>{{row.f_operator}}</nobr>
19
+ </td>
20
+ <td style="text-align: center;">
21
+ <nobr>{{row.f_operation_date}}</nobr>
22
+ </td>
23
+ <td style="text-align: center;">
24
+ <nobr>{{ row.f_log_content.length > 20 ? row.f_log_content.substring(0, 50) + '...' : row.f_log_content }}</nobr>
25
+ </td>
26
+ <td style="text-align: center;">
27
+ <button type="button" class="button_delete button_spacing" @click="$parent.$parent.deletelogs(row)">删除
28
+ </button>
29
+ <button type="button" class="button_delete button_spacing" @click="$parent.$parent.look(row)">查看
30
+ </button>
31
+ </td>
32
+ </tr>
33
+ </template>
34
+ </data-grid>
35
+ <modal v-if="showMaterialModal" :show.sync="showMaterialModal" v-ref:modal :large="true"
36
+ :backdrop="false" :title="title">
37
+ <header slot="modal-header" class="modal-header">
38
+ <button type="button" class="close" @click="closeMaterials"><span>&times;</span></button>
39
+ <h4 class="modal-title">{{title}}</h4>
40
+ </header>
41
+ <article slot="modal-body" class="modal-body clearfix">
42
+ <div v-for="(i,item) in materials" class="form-group col-sm-12 panel panel-info">
43
+ <div class="row">
44
+ <div class="form-group col-sm-6">
45
+ <label class="col-sm-4 control-label">内容:</label>
46
+ <textarea
47
+ class="form-control"
48
+ v-model="item.f_log_content"
49
+ rows="3"
50
+ :readonly="mark === 1"
51
+ ></textarea>
52
+ </div>
53
+ </div>
54
+
55
+ </div>
56
+ </article>
57
+ <footer slot="modal-footer" class="modal-footer">
58
+ <template v-if="mark!== 1">
59
+ <button type="button" class="btn btn-primary" v-if="title==='新增'" @click="addlogs()"
60
+ :disabled="!$v.valid">确认
61
+ </button>
62
+ <button type="button" class="btn btn-primary" v-if="title==='查看'" @click="changelogs()"
63
+ :disabled="!$v.valid">修改
64
+ </button>
65
+ </template>
66
+ </footer>
67
+ </modal>
68
+ </div>
69
+ </template>
70
+
71
+ <script>
72
+ import {HttpResetClass} from 'vue-client'
73
+ import Vue from "vue";
74
+
75
+ export default {
76
+ name: '交底记录',
77
+ props: {
78
+ selectdata: {
79
+ type: Object
80
+ }
81
+ },
82
+ data() {
83
+ return {
84
+ onetomany: {
85
+ rows: []
86
+ },
87
+ title: '新增',
88
+ showMaterialModal: false,
89
+ materials: [
90
+ {
91
+
92
+ }
93
+ ],
94
+ meterialOptions: [],
95
+ row: {},
96
+ bjqChecklag:[],
97
+ fmaterialname:{}
98
+ }
99
+ },
100
+ ready() {
101
+ this.getOnetoManyData()
102
+ },
103
+ methods: {
104
+ look(row){
105
+ this.title = '查看'
106
+ this.materials = [
107
+ {
108
+ id: row.id,
109
+ f_log_content:row.f_log_content
110
+ }
111
+ ],
112
+ this.showMaterialModal = true
113
+ },
114
+
115
+ changelogs(){
116
+ let http = new HttpResetClass()
117
+ let s={
118
+ id:this.materials[0].id,
119
+ f_process_id:this.selectdata.f_process_id,
120
+ f_operation_date:new Date().Format('yyyy-MM-dd HH:mm:ss'),
121
+ f_log_content:this.materials[0].f_log_content,
122
+ f_operator:Vue.user.name,
123
+ f_operator_id:Vue.user.id
124
+ }
125
+ let data = {
126
+ tableName:'t_tisclosure_record',
127
+ model:s
128
+ }
129
+ http.load(
130
+ 'POST',
131
+ `${this.$androidUtil.getProxyUrl()}/rs/logic/entitySingleTable`,
132
+ data,
133
+ {resolveMsg: '修改成功', rejectMsg: '添加失败'}
134
+ ).then(res => {
135
+ this.closeMaterials()
136
+ })
137
+ },
138
+ addlogs(){
139
+ let http = new HttpResetClass()
140
+ let s={
141
+ f_process_id:this.selectdata.f_process_id,
142
+ f_operation_date:new Date().Format('yyyy-MM-dd HH:mm:ss'),
143
+ f_log_content:this.materials[0].f_log_content,
144
+ f_operator:Vue.user.name,
145
+ f_operator_id:Vue.user.id
146
+ }
147
+ let data = {
148
+ tableName:'t_tisclosure_record',
149
+ model:s
150
+ }
151
+ http.load(
152
+ 'POST',
153
+ `${this.$androidUtil.getProxyUrl()}/rs/logic/entitySingleTable`,
154
+ data,
155
+ {resolveMsg: '添加成功', rejectMsg: '添加失败'}
156
+ ).then(res => {
157
+ this.closeMaterials()
158
+ })
159
+ },
160
+ deletelogs(row){
161
+ let http = new HttpResetClass()
162
+ this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
163
+ if (res === 'confirm') {
164
+ let data = {
165
+ tableName:'t_tisclosure_record',
166
+ id:row.id
167
+ }
168
+ http.load(
169
+ 'POST',
170
+ `${this.$androidUtil.getProxyUrl()}/rs/logic/delentitySingleTable`,
171
+ data,
172
+ {resolveMsg: '删除成功', rejectMsg: '删除失败'}
173
+ ).then(res => {
174
+ this.getOnetoManyData()
175
+ })
176
+ }
177
+ })
178
+ },
179
+ async getOnetoManyData () {
180
+ let http = new HttpResetClass()
181
+ let data = {
182
+ tablename: `t_tisclosure_record`,
183
+ condition: `f_process_id='${this.selectdata.f_process_id}'`
184
+ }
185
+ let res = await http.load(
186
+ 'POST',
187
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable?aaa=123`,
188
+ {data: data},
189
+ {resolveMsg: null, rejectMsg: 'onetomany查询失败'}
190
+ )
191
+ this.onetomany.rows = res.data
192
+ },
193
+ async openMaterialModal() {
194
+ this.title = '新增'
195
+ this.materials = [
196
+ {
197
+ f_logs_content:''
198
+ }
199
+ ],
200
+ this.showMaterialModal = true
201
+ },
202
+
203
+ closeMaterials() {
204
+ this.getOnetoManyData()
205
+ this.showMaterialModal = false
206
+ }
207
+ }
208
+ }
209
+
210
+ </script>
211
+
212
+ <style scoped>
213
+
214
+ </style>
@@ -119,7 +119,6 @@
119
119
  <label class="col-xs-4 control-label">表&ensp;读&ensp;数:</label>
120
120
  <div class="col-xs-8">
121
121
  <input class="form-control input_view" style=""
122
- onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}" onafterpaste="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}"
123
122
  type="number"
124
123
  placeholder="表读数"
125
124
  v-model="item.f_meter_base"
@@ -131,8 +130,7 @@
131
130
  <label class="col-xs-4 control-label">初始底数:</label>
132
131
  <div class="col-xs-8">
133
132
  <input class="form-control input_view" style=""
134
- onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}" onafterpaste="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}"
135
- type="number"
133
+ type="number"
136
134
  v-model="item.f_initial_base"
137
135
  :value="item.f_initial_base"
138
136
  placeholder="初始底数"
@@ -256,14 +254,22 @@ export default {
256
254
  this.getMeterbrands()
257
255
  },
258
256
  methods: {
257
+ // async scanCode () {
258
+ // console.log('===============扫码===================')
259
+ // HostApp.__this__ = this,
260
+ // HostApp.scanCode({callback: "javascript:HostApp.__this__.getCode();"})
261
+ // await this.getCode()
262
+ // },
263
+ // async getCode () {
264
+ // let code = HostApp.getCode().data;
265
+ // this.userinfo.userfiles[0].f_meternumber = code
266
+ // },
259
267
  async scanCode () {
260
- console.log('===============扫码===================')
261
- HostApp.__this__ = this,
262
- HostApp.scanCode({callback: "javascript:HostApp.__this__.getCode();"})
263
- await this.getCode()
268
+ HostApp.__this__=this,
269
+ HostApp.old_scanCode({callback:"javascript:HostApp.__this__.getCode();"})
264
270
  },
265
271
  async getCode () {
266
- let code = HostApp.getCode().data;
272
+ let code =HostApp.old_getCode().data;
267
273
  this.userinfo.userfiles[0].f_meternumber = code
268
274
  },
269
275
  // 删除未保存的表具
@@ -407,8 +413,7 @@ export default {
407
413
  async search () {
408
414
  let http = new HttpResetClass()
409
415
  let data = {
410
- condition: `ua.f_process_id = '${this.selectdata.f_process_id}'`,
411
- condValue : tablestate
416
+ condition: `ua.f_process_id = '${this.selectdata.f_process_id}'`
412
417
  }
413
418
 
414
419
  if (this.selectdata.f_apply_type === '团购转散户' || this.selectdata.f_apply_type === '改管报建' || this.selectdata.f_apply_type === '增容报建' || this.selectdata.f_apply_type === '报警器报建' || this.selectdata.f_apply_type === '工商业报警器报建') {
@@ -0,0 +1,309 @@
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">
13
+ <button type="button" class="btn btn-primary" @click="$parent.$parent.openMaterialModal()">添加
14
+ </button>
15
+ </th>
16
+ </tr>
17
+ </template>
18
+ <template partial='body'>
19
+ <tr>
20
+ <td style="text-align: center;">
21
+ <nobr>{{row.f_operator}}</nobr>
22
+ </td>
23
+ <td style="text-align: center;">
24
+ <nobr>{{row.f_operation_date}}</nobr>
25
+ </td>
26
+ <td style="text-align: center;">
27
+ <nobr>{{ row.f_log_content.length > 20 ? row.f_log_content.substring(0, 50) + '...' : row.f_log_content }}</nobr>
28
+ </td>
29
+ <td style="text-align: center;">
30
+ <nobr>{{row.f_dispose_person}}</nobr>
31
+ </td>
32
+ <td style="text-align: center;">
33
+ <nobr>{{row.f_dispose_time}}</nobr>
34
+ </td>
35
+ <td style="text-align: center;">
36
+ <nobr>{{row.f_dispose_manner}}</nobr>
37
+ </td>
38
+ <td style="text-align: center;">
39
+ <button type="button" class="button_delete button_spacing" @click="$parent.$parent.Dispose(row)">处理
40
+ </button>
41
+ <button type="button" class="button_delete button_spacing" @click="$parent.$parent.deletelogs(row)">删除
42
+ </button>
43
+ <button type="button" class="button_delete button_spacing" @click="$parent.$parent.look(row)">查看
44
+ </button>
45
+ </td>
46
+ </tr>
47
+ </template>
48
+ </data-grid>
49
+ <modal v-if="showMaterialModal" :show.sync="showMaterialModal" v-ref:modal :large="true"
50
+ :backdrop="false" :title="title">
51
+ <header slot="modal-header" class="modal-header">
52
+ <button type="button" class="close" @click="closeMaterials"><span>&times;</span></button>
53
+ <h4 class="modal-title">{{title}}</h4>
54
+ </header>
55
+ <article slot="modal-body" class="modal-body clearfix">
56
+ <div v-for="(i,item) in materials" class="form-group col-sm-12 panel panel-info">
57
+ <div class="row">
58
+ <div class="form-group col-sm-6">
59
+ <label class="col-sm-4 control-label">遗留问题:</label>
60
+ <textarea
61
+ class="form-control"
62
+ v-model="item.f_log_content"
63
+ rows="3"
64
+ ></textarea>
65
+ </div>
66
+ </div>
67
+
68
+ </div>
69
+ </article>
70
+ <footer slot="modal-footer" class="modal-footer">
71
+ <template v-if="mark!== 1">
72
+ <button type="button" class="btn btn-primary" v-if="title==='新增'" @click="addlogs()"
73
+ :disabled="!$v.valid">确认
74
+ </button>
75
+ <button type="button" class="btn btn-primary" v-if="title==='查看'" @click="changelogs()"
76
+ :disabled="!$v.valid">修改
77
+ </button>
78
+ </template>
79
+ </footer>
80
+ </modal>
81
+ <modal v-if="showdispose" :show.sync="showdispose" v-ref:modal :large="true"
82
+ :backdrop="false" :title="title">
83
+ <header slot="modal-header" class="modal-header">
84
+ <button type="button" class="close" @click="closeMaterials"><span>&times;</span></button>
85
+ <h4 class="modal-title">{{title}}</h4>
86
+ </header>
87
+ <article slot="modal-body" class="modal-body clearfix">
88
+ <div v-for="(i,item) in content" class="form-group col-sm-12 panel panel-info">
89
+ <div class="row">
90
+ <div class="form-group col-sm-6" >
91
+ <label class="col-sm-4 control-label">是否处理:</label>
92
+ <div class="col-sm-8">
93
+ <input-select
94
+ class="select select_list"
95
+ :value.sync="item.f_is_dispose"
96
+ v-model="item.f_is_dispose"
97
+ :options="Options"
98
+ :valueSingle="true"></input-select>
99
+ </div>
100
+ </div>
101
+ <div class="form-group col-sm-6" >
102
+ <label class="col-sm-4 control-label">处理方式:</label>
103
+ <div class="col-sm-8">
104
+ <input-select
105
+ class="select select_list"
106
+ :value.sync="item.f_dispose_manner"
107
+ v-model="item.f_dispose_manner"
108
+ :options="disOptions"
109
+ :valueSingle="true"></input-select>
110
+ </div>
111
+ </div>
112
+ </div>
113
+ </div>
114
+ </article>
115
+ <footer slot="modal-footer" class="modal-footer">
116
+ <button type="button" class="btn btn-primary" @click="Confirmdispose()"
117
+ >确认
118
+ </button>
119
+ </footer>
120
+ </modal>
121
+ </div>
122
+ </template>
123
+
124
+ <script>
125
+ import {HttpResetClass} from 'vue-client'
126
+
127
+ export default {
128
+ name: '遗留问题',
129
+ props: {
130
+ selectdata: {
131
+ type: Object
132
+ }
133
+ },
134
+ data() {
135
+ return {
136
+ onetomany: {
137
+ rows: []
138
+ },
139
+ disOptions: this.$appdata.getParam('遗留问题处理'),
140
+ Options: [ {label: '是', value: '是'},{label: '否', value: '否'} ],
141
+ title: '新增',
142
+ showdispose: false,
143
+ showMaterialModal: false,
144
+ materials: [
145
+ {
146
+
147
+ }
148
+ ],
149
+ content: [
150
+ {
151
+
152
+ }
153
+ ],
154
+ meterialOptions: [],
155
+ row: {},
156
+ bjqChecklag:[],
157
+ fmaterialname:{}
158
+ }
159
+ },
160
+ ready() {
161
+ this.getOnetoManyData()
162
+ },
163
+ methods: {
164
+ look(row){
165
+ this.title = '查看'
166
+ this.materials = [
167
+ {
168
+ id: row.id,
169
+ f_log_content:row.f_log_content
170
+ }
171
+ ],
172
+ this.showMaterialModal= true
173
+ },
174
+ Confirmdispose(){
175
+ let http = new HttpResetClass()
176
+ let s={
177
+ id:this.content[0].id,
178
+ f_process_id:this.selectdata.f_process_id,
179
+ f_dispose_time:new Date().Format('yyyy-MM-dd HH:mm:ss'),
180
+ f_dispose_person:Vue.user.name,
181
+ f_dispose_manner:this.content[0].f_dispose_manner,
182
+ f_is_dispose:this.content[0].f_is_dispose
183
+ }
184
+ let data = {
185
+ tableName:'t_legacy_issues',
186
+ model:s
187
+ }
188
+ http.load(
189
+ 'POST',
190
+ `/rs/logic/entitySingleTable`,
191
+ data,
192
+ {resolveMsg: '修改成功', rejectMsg: '添加失败'}
193
+ ).then(res => {
194
+ this.closeMaterials()
195
+ })
196
+ },
197
+ Dispose(row){
198
+ this.title = '处理'
199
+ this.content = [
200
+ {
201
+ id: row.id,
202
+ f_log_content:row.f_log_content,
203
+ f_is_dispose:'',
204
+ f_dispose_manner:''
205
+ }
206
+ ],
207
+ this.showdispose = true
208
+ },
209
+ changelogs(){
210
+ let http = new HttpResetClass()
211
+ let s={
212
+ id:this.materials[0].id,
213
+ f_process_id:this.selectdata.f_process_id,
214
+ f_operation_date:new Date().Format('yyyy-MM-dd HH:mm:ss'),
215
+ f_log_content:this.materials[0].f_log_content,
216
+ f_operator:Vue.user.name,
217
+ f_operator_id:Vue.user.id
218
+ }
219
+ let data = {
220
+ tableName:'t_legacy_issues',
221
+ model:s
222
+ }
223
+ http.load(
224
+ 'POST',
225
+ `/rs/logic/entitySingleTable`,
226
+ data,
227
+ {resolveMsg: '修改成功', rejectMsg: '添加失败'}
228
+ ).then(res => {
229
+ this.closeMaterials()
230
+ })
231
+ },
232
+ addlogs(){
233
+ let http = new HttpResetClass()
234
+ let s={
235
+ f_process_id:this.selectdata.f_process_id,
236
+ f_operation_date:new Date().Format('yyyy-MM-dd HH:mm:ss'),
237
+ f_log_content:this.materials[0].f_log_content,
238
+ f_operator:Vue.user.name,
239
+ f_operator_id:Vue.user.id
240
+ }
241
+ let data = {
242
+ tableName:'t_legacy_issues',
243
+ model:s
244
+ }
245
+ http.load(
246
+ 'POST',
247
+ `/rs/logic/entitySingleTable`,
248
+ data,
249
+ {resolveMsg: '添加成功', rejectMsg: '添加失败'}
250
+ ).then(res => {
251
+ this.closeMaterials()
252
+ })
253
+ },
254
+ deletelogs(row){
255
+ let http = new HttpResetClass()
256
+ this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
257
+ if (res === 'confirm') {
258
+ let data = {
259
+ tableName:'t_legacy_issues',
260
+ id:row.id
261
+ }
262
+ http.load(
263
+ 'POST',
264
+ `/rs/logic/delentitySingleTable`,
265
+ data,
266
+ {resolveMsg: '删除成功', rejectMsg: '删除失败'}
267
+ ).then(res => {
268
+ this.getOnetoManyData()
269
+ })
270
+ }
271
+ })
272
+ },
273
+ async getOnetoManyData () {
274
+ let http = new HttpResetClass()
275
+ let data = {
276
+ tablename: `t_legacy_issues`,
277
+ condition: `f_process_id='${this.selectdata.f_process_id}'`
278
+ }
279
+ let res = await http.load(
280
+ 'POST',
281
+ `/rs/sql/apply_singleTable?aaa=123`,
282
+ {data: data},
283
+ {resolveMsg: null, rejectMsg: 'onetomany查询失败'}
284
+ )
285
+ this.onetomany.rows = res.data
286
+ },
287
+ async openMaterialModal() {
288
+ this.title = '新增'
289
+ this.materials = [
290
+ {
291
+ f_log_type:'',
292
+ f_logs_content:''
293
+ }
294
+ ],
295
+ this.showMaterialModal = true
296
+ },
297
+ closeMaterials() {
298
+ this.getOnetoManyData()
299
+ this.showMaterialModal = false
300
+ this.showdispose= false
301
+ }
302
+ }
303
+ }
304
+
305
+ </script>
306
+
307
+ <style scoped>
308
+
309
+ </style>
@@ -31,6 +31,19 @@ export default {
31
31
  console.log('在ready里打印一下this.filePath',this.filePath)
32
32
  this.f_sign_path = this.filePath
33
33
  console.log('在ready里打印一下this.f_sign_path',this.f_sign_path)
34
+ //判断this.filePath
35
+ if (this.filePath !== null || this.filePath !== '') {
36
+ // 定义照片格式的扩展名数组
37
+ const imageExtensions = ['.jpg', '.jpeg', '.png', '.gif', '.bmp', '.tiff'];
38
+ // 获取文件扩展名
39
+ const fileExtension = this.filePath.toLowerCase().substring(this.filePath.lastIndexOf('.'));
40
+ // 判断文件扩展名是否在照片格式数组中
41
+ if (imageExtensions.includes(fileExtension)) {
42
+ console.log('这是一个照片文件');
43
+ } else {
44
+ this.f_sign_path=null
45
+ }
46
+ }
34
47
  this.getFiles()
35
48
  },
36
49
  methods: {
@@ -80,8 +93,8 @@ export default {
80
93
  console.log('-----------bzLogic-----------------')
81
94
  console.log(JSON.stringify(data))
82
95
  let res = HostApp.bzLogic({
83
- 'logic': 'appFileUpload',
84
- 'data': data
96
+ 'logic': 'appFileUpload',
97
+ 'data': data
85
98
  })
86
99
  console.log('===============上传回调=================')
87
100
  console.log(JSON.stringify(res))
@@ -108,7 +121,7 @@ export default {
108
121
  debugger
109
122
  fileUrl= `${this.$androidUtil.getProxyUrl()}/${newPath}`
110
123
  }else {
111
- fileUrl = `${this.$androidUtil.getProxyUrl()}/${res.data[0].f_downloadpath.substring(res.data[0].f_downloadpath.lastIndexOf(":\\") + 2)}`
124
+ fileUrl = `${this.$androidUtil.getProxyUrl()}/${res.data[0].f_downloadpath.substring(res.data[0].f_downloadpath.lastIndexOf(":\\") + 2)}`
112
125
  }
113
126
  console.log(fileUrl)
114
127
  this.f_sign_path = fileUrl