apply-clients 3.3.222 → 3.4.2-FuGu-4

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 (114) hide show
  1. package/build/css-loaders.js +34 -0
  2. package/build/dev-android.js +101 -0
  3. package/build/dev-client.js +8 -0
  4. package/build/dev-server-app.js +76 -0
  5. package/build/dev-server.js +119 -0
  6. package/build/example-server.js +80 -0
  7. package/build/release.sh +28 -0
  8. package/build/utils.js +80 -0
  9. package/build/webpack.base.conf.js +85 -0
  10. package/build/webpack.baseandroid.conf.js +84 -0
  11. package/build/webpack.dev.conf.js +51 -0
  12. package/build/webpack.devandroid.conf.js +34 -0
  13. package/build/webpack.example.conf.js +49 -0
  14. package/build/webpack.prod.conf.js +60 -0
  15. package/build/webpack.prodandroid.conf.js +60 -0
  16. package/build/webpack.test.conf.js +31 -0
  17. package/dingding.html +23 -0
  18. package/index.html +1 -1
  19. package/package.json +4 -3
  20. package/src/AndroidApp.vue +18 -13
  21. package/src/App.vue +20 -20
  22. package/src/DingDingApp.vue +51 -0
  23. package/src/android.js +1 -1
  24. package/src/apply.js +75 -91
  25. package/src/applyAndroid.js +25 -54
  26. package/src/applyDingDing.js +12 -0
  27. package/src/components/android/AppOnetomany.vue +37 -21
  28. package/src/components/android/AppServiceView.vue +3 -7
  29. package/src/components/android/AppSign.vue +3 -3
  30. package/src/components/android/AppTakePic.vue +12 -13
  31. package/src/components/android/Process/AppExplorationUser.vue +88 -38
  32. package/src/components/android/Process/AppServiceControl.vue +87 -16
  33. package/src/components/android/Process/Processes/AppInstallationDetails.vue +90 -100
  34. package/src/components/android/ProgressReport/ProgressReportDetail.vue +64 -0
  35. package/src/components/android/ProgressReport/ProgressReportList.vue +209 -0
  36. package/src/components/android/Supervisory/AppProcessSupervisory.vue +73 -152
  37. package/src/components/android/Supervisory/AppSupervisoryCart.vue +29 -23
  38. package/src/components/android/TaskGraph.vue +125 -0
  39. package/src/components/build/Install/ExplorationUser.vue +304 -0
  40. package/src/components/build/Install/Process/zhongran/ZR_Design.vue +537 -0
  41. package/src/components/product/ApplyCharge/ApplyChargeList.vue +36 -50
  42. package/src/components/product/ApplyCharge/ApplyChargeSearch.vue +3 -3
  43. package/src/components/product/ApplyCharge/printCharge.vue +142 -0
  44. package/src/components/product/Function/InstallFunction.vue +11 -2
  45. package/src/components/product/Function/InstallInfoSelect.vue +29 -47
  46. package/src/components/product/Function/Service/FunctionServiceControl.vue +172 -6
  47. package/src/components/product/Onetomany.vue +105 -24
  48. package/src/components/product/Order/OrderApply.vue +30 -30
  49. package/src/components/product/Order/OrderApplyList.vue +78 -67
  50. package/src/components/product/Order/OrderMessage.vue +11 -88
  51. package/src/components/product/Process/ExplorationSelect.vue +176 -149
  52. package/src/components/product/Process/ExplorationUser.vue +95 -85
  53. package/src/components/product/Process/Processes/InstallationDetails.vue +440 -352
  54. package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +35 -9
  55. package/src/components/product/Process/Processes/chargeManagement.vue +634 -638
  56. package/src/components/product/Process/Processes/devicesManagement.vue +22 -2
  57. package/src/components/product/Process/Processes/selectApply.vue +1 -1
  58. package/src/components/product/Process/Service/ServiceControl.vue +1241 -883
  59. package/src/components/product/Process/Service/ShowBackReason.vue +33 -0
  60. package/src/components/product/ServiceView.vue +313 -423
  61. package/src/components/product/Stop/StopApply.vue +27 -25
  62. package/src/components/product/Stop/StopApplyList.vue +26 -11
  63. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +18 -349
  64. package/src/components/product/Supervisory/SupervisoryControl.vue +0 -8
  65. package/src/components/product/Supervisory/SupervisoryList.vue +27 -47
  66. package/src/components/product/Supervisory/SupervisoryhCart.vue +32 -54
  67. package/src/components/product/VueUtils/ApplyUpload.vue +273 -264
  68. package/src/components/product/VueUtils/HighMeter.vue +208 -0
  69. package/src/dingding.js +20 -0
  70. package/src/expandcssAndroid.less +879 -362
  71. package/src/main.js +1 -1
  72. package/src/components/android/Function/AppFunctionServiceControl.vue +0 -329
  73. package/src/components/android/Function/AppInstallFunction.vue +0 -330
  74. package/src/components/android/Order/ApplyOrder.vue +0 -141
  75. package/src/components/android/Process/Processes/AppBuildSign.vue +0 -47
  76. package/src/components/android/Process/Processes/AppChargeManagement.vue +0 -468
  77. package/src/components/android/Process/Processes/AppDevicesManagement.vue +0 -490
  78. package/src/components/android/Process/Processes/AppSupplementalAgreement.vue +0 -297
  79. package/src/components/android/Process/Processes/AppjiaSign.vue +0 -47
  80. package/src/components/android/Process/Processes/AppjiafangSign.vue +0 -47
  81. package/src/components/android/Process/Processes/ApptechnologySign.vue +0 -47
  82. package/src/components/image/danwei.png +0 -0
  83. package/src/components/image/dizhi.png +0 -0
  84. package/src/components/image/dwg.jpg +0 -0
  85. package/src/components/image/name.png +0 -0
  86. package/src/components/image/phone.png +0 -0
  87. package/src/components/image/type.png +0 -0
  88. package/src/components/image/yasuobao.jpg +0 -0
  89. package/src/components/image/zaixiantousu1.png +0 -0
  90. package/src/components/image/zizhukaitong.png +0 -0
  91. package/src/components/image//346/210/221/347/232/204.png +0 -0
  92. package/src/components/product/Function/Inform.vue +0 -73
  93. package/src/components/product/Function/MarketSurvey.vue +0 -81
  94. package/src/components/product/Process/Processes/printCharge.vue +0 -121
  95. package/src/components/product/Process/ShowBackReason.vue +0 -33
  96. package/src/components/product/Supervisory/Service/printChargeNode.vue +0 -873
  97. package/src/components/product/VueUtils/GaoPaiYi/HighMeter.vue +0 -1090
  98. package/src/components/product/VueUtils/ToolsPage.vue +0 -51
  99. package/src/components/product/VueUtils/Tree.vue +0 -330
  100. package/src/filiale/wuan/android.js +0 -0
  101. package/src/filiale/wuan/pc.js +0 -4
  102. package/src/filiale/yuchuan/android/AppServiceView.vue +0 -599
  103. package/src/filiale/yuchuan/android/Process/AppServiceControl.vue +0 -414
  104. package/src/filiale/yuchuan/android/Process/Processes/AppInstallationDetails.vue +0 -456
  105. package/src/filiale/yuchuan/android/Reserve/ApplyReserve.vue +0 -200
  106. package/src/filiale/yuchuan/android/SiteSurvey/TaskGraph.vue +0 -137
  107. package/src/filiale/yuchuan/android.js +0 -8
  108. package/src/filiale/yuchuan/pc/Order/OrderApply.vue +0 -517
  109. package/src/filiale/yuchuan/pc/Order/OrderApplyList.vue +0 -343
  110. package/src/filiale/yuchuan/pc/Process/ExplorationSelect.vue +0 -356
  111. package/src/filiale/yuchuan/pc/Process/ExplorationUser.vue +0 -131
  112. package/src/filiale/yuchuan/pc/Process/Processes/MapCom.vue +0 -51
  113. package/src/filiale/yuchuan/pc/Process/Service/ServiceControl.vue +0 -517
  114. package/src/filiale/yuchuan/pc.js +0 -13
@@ -6,29 +6,31 @@
6
6
  </div>
7
7
  </div>
8
8
 
9
- <modal v-if="showModal" :show.sync="showModal" backdrop="false" large>
10
- <header slot="modal-header" class="modal-header">
11
- <button type="button" class="close" @click="closeModal()"><span>&times;</span></button>
12
- <span class="modal-title"><font size="3">撤销</font></span>
13
- </header>
14
- <article slot="modal-body" class="modal-body clearfix">
15
- <div :class="data.f_cancel_reason ? '' : 'has-error'" class="form-group">
16
- <label class="control-label-justify control-label col-sm-1">撤销原因</label>
17
- <div class="col-sm-9">
18
- <textarea
19
- class="form-control input_view" style="width: 100%" rows="5"
20
- v-model="data.f_cancel_reason" :value="data.f_cancel_reason"
21
- ></textarea>
9
+ <validator name="v">
10
+ <modal v-if="showModal" :show.sync="showModal" backdrop="false" large>
11
+ <header slot="modal-header" class="modal-header">
12
+ <button type="button" class="close" @click="closeModal()"><span>&times;</span></button>
13
+ <span class="modal-title"><font size="3">撤销</font></span>
14
+ </header>
15
+ <article slot="modal-body" class="modal-body clearfix">
16
+ <div class="form-group" :class="[$v.f_cancel_reason.required ? 'has-error' : '']">
17
+ <label class="control-label-justify control-label col-sm-1">撤销原因</label>
18
+ <div class="col-sm-9">
19
+ <textarea
20
+ class="form-control input_view" style="width: 100%" rows="5"
21
+ v-model="selectdata.f_cancel_reason" :value="selectdata.f_cancel_reason"
22
+ v-validate:f_cancel_reason = "['required']"
23
+ ></textarea>
24
+ </div>
22
25
  </div>
23
- </div>
24
- </article>
25
- <footer slot="modal-footer" class="modal-footer">
26
- <button :class="!data.f_cancel_reason ? 'btn btn-default':'btn btn-primary'"
27
- :disabled="!data.f_cancel_reason" type="button" @click="confirmModal()">
28
- 确认
29
- </button>
30
- </footer>
26
+ </article>
27
+ <footer slot="modal-footer" class="modal-footer">
28
+ <button class="btn btn-primary" :disabled="!$v.valid" type="button" @click="confirmModal()">
29
+ 确认
30
+ </button>
31
+ </footer>
31
32
  </modal>
33
+ </validator>
32
34
  </div>
33
35
  </template>
34
36
 
@@ -38,7 +40,7 @@ export default {
38
40
  data () {
39
41
  return {
40
42
  showModal: false,
41
- data: null
43
+ selectdata: null
42
44
  }
43
45
  },
44
46
  ready () {
@@ -46,13 +48,13 @@ export default {
46
48
  methods: {
47
49
  closeModal () {
48
50
  this.showModal = false
49
- this.data = null
51
+ this.selectdata = null
50
52
 
51
53
  this.$refs.query.$refs.cp.$refs.cri.search()
52
54
  },
53
55
  async confirmModal () {
54
56
  let data = {
55
- data: this.data,
57
+ selectdata: this.selectdata,
56
58
  user: this.$login.f
57
59
  }
58
60
 
@@ -70,7 +72,7 @@ export default {
70
72
  this.$refs.query.$refs.cp.$refs.cri.search()
71
73
  },
72
74
  'cancelStopApply' (row) {
73
- this.data = row
75
+ this.selectdata = row
74
76
 
75
77
  this.showModal = true
76
78
  }
@@ -14,16 +14,17 @@
14
14
  ></res-select>
15
15
  </div>
16
16
  <div class="form-group col-sm-3">
17
- <label class="font_normal_body">工程编号:</label>
18
- <input type="text" style="width:60%" class="input_search" placeholder='工程编号' v-model="model.f_apply_num"
17
+ <label class="font_normal_body">报建编号:</label>
18
+ <input type="text" style="width:60%" class="input_search" placeholder='报建编号' v-model="model.f_apply_num"
19
19
  v-on:keyup.enter="search"
20
20
  condition="f_apply_num = '{}'">
21
21
  </div>
22
22
  <div class="form-group col-sm-3">
23
- <label class="font_normal_body">客户名称:</label>
24
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
25
- v-on:keyup.enter="$parent.$parent.search()" condition="f_user_name like '%{}%'" placeholder='客户名称'>
23
+ <label class="font_normal_body">项目名称:</label>
24
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_entry_name"
25
+ v-on:keyup.enter="$parent.$parent.search()" condition="f_entry_name like '%{}%'" placeholder='项目名称'>
26
26
  </div>
27
+
27
28
  <div class="form-group col-sm-2 button-range">
28
29
  <button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
29
30
  <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
@@ -37,10 +38,14 @@
37
38
  </div>
38
39
  <div class="row" v-show="$parent.$parent.criteriaShow">
39
40
  <div class="form-group col-sm-3">
40
- <label class="font_normal_body">联系电话:</label>
41
- <input type="text" style="width:60%" class="input_search" placeholder='联系电话' v-model="model.f_phone"
42
- v-on:keyup.enter="search"
43
- condition="f_phone like '%{}%'">
41
+ <label class="font_normal_body">客户名称:</label>
42
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
43
+ v-on:keyup.enter="$parent.$parent.search()" condition="f_user_name like '%{}%'" placeholder='客户名称'>
44
+ </div>
45
+ <div class="form-group col-sm-3">
46
+ <label class="font_normal_body">联&ensp;系&ensp;人:</label>
47
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_contact"
48
+ v-on:keyup.enter="$parent.$parent.search()" condition="f_contact like '%{}%'" placeholder='联系人'>
44
49
  </div>
45
50
  <div class="form-group col-sm-3">
46
51
  <label class="font_normal_body">合同编号:</label>
@@ -73,6 +78,12 @@
73
78
  :value-single="true"
74
79
  close-on-select ></v-select>
75
80
  </div>
81
+ <div class="form-group col-sm-3">
82
+ <label class="font_normal_body">联系电话:</label>
83
+ <input type="text" style="width:60%" class="input_search" placeholder='联系电话' v-model="model.f_phone"
84
+ v-on:keyup.enter="search"
85
+ condition="f_phone like '%{}%'">
86
+ </div>
76
87
  <div class="form-group col-sm-3">
77
88
  <label class="font_normal_body">用户地址:</label>
78
89
  <input type="text" style="width:60%" class="input_search" placeholder='用户地址' v-model="model.f_address"
@@ -87,7 +98,7 @@
87
98
  :value.sync="model.startDate"
88
99
  :format="'yyyy-MM-dd HH:mm:ss'"
89
100
  :show-reset-button="true"
90
- condition="f_apply_date >= to_date('{}', 'yyyy-mm-dd hh24:mi:ss')">
101
+ condition="f_apply_date >= '{}'">
91
102
  </datepicker>
92
103
  </div>
93
104
  <div class="form-group col-sm-3">
@@ -98,7 +109,7 @@
98
109
  :value.sync="model.endDate"
99
110
  :format="'yyyy-MM-dd HH:mm:ss'"
100
111
  :show-reset-button="true"
101
- condition="f_apply_date <= to_date('{}', 'yyyy-mm-dd hh24:mi:ss')">
112
+ condition="f_apply_date <= '{}'">
102
113
  </datepicker>
103
114
  </div>
104
115
  </div>
@@ -109,6 +120,7 @@
109
120
  <tr>
110
121
  <th style="white-space: nowrap;">序号</th>
111
122
  <th style="white-space: nowrap;">报建编号</th>
123
+ <th style="white-space: nowrap;">项目名称</th>
112
124
  <th style="white-space: nowrap;">客户名称</th>
113
125
  <th style="white-space: nowrap;">联系人</th>
114
126
  <th style="white-space: nowrap;">电话</th>
@@ -133,6 +145,9 @@
133
145
  <td style="text-align: center;">
134
146
  <nobr>{{row.f_apply_num}}</nobr>
135
147
  </td>
148
+ <td style="text-align: center;">
149
+ <nobr>{{row.f_entry_name}}</nobr>
150
+ </td>
136
151
  <td style="text-align: center;">
137
152
  <nobr>{{row.f_user_name}}</nobr>
138
153
  </td>
@@ -7,7 +7,6 @@
7
7
  <script>
8
8
  import Vue from 'vue'
9
9
  import {HttpResetClass} from 'vue-client'
10
- import {isEmpty} from "../../../Util";
11
10
  // Date格式化
12
11
  Date.prototype.Format = function (fmt) {
13
12
  var o = {
@@ -41,8 +40,7 @@
41
40
  data: null, // 展示的数据
42
41
  json_datas: null, // json配置数据结构
43
42
  showview: false, // 控制显示层显示
44
- show_data: null,
45
- config: {}
43
+ show_data: null
46
44
  }
47
45
  },
48
46
  created () {
@@ -79,46 +77,16 @@
79
77
  this.data = Object.assign({}, this.data, this.selectdata)
80
78
 
81
79
  // fields 字段填充值
82
- for (const item of this.data.fields) {
80
+ this.data.fields.forEach(item => {
83
81
  if (this.selectdata[item.field]) {
84
82
  item.value = this.selectdata[item.field]
85
83
  }
86
84
  if (this.selectdata[item.field] === 0) {
87
85
  item.value = 0
88
86
  }
89
-
90
- if (item.type === 'select' || item.type === 'checkbox') {
91
- if (item.param) {
92
- let temp = this.$appdata.getParam(item.label)
93
-
94
- if (temp && temp.length > 0) {
95
- item.options = temp
96
- }
97
-
98
- if (item.paramLabel) {
99
- temp = this.$appdata.getParam(item.paramLabel)
100
- if (temp && temp.length > 0) {
101
- item.options = temp
102
- }
103
- }
104
- }
105
-
106
- if (item.ready) {
107
- item.options = await this[item.ready]()
108
- }
109
- }
110
-
111
- if (item.type === 'checkbox') {
112
- if (this.selectdata[item.field]) {
113
- item.value = JSON.parse(this.selectdata[item.field])
114
- } else {
115
- item.value = []
116
- }
117
- }
118
-
119
87
  item.readonly = true
120
88
  item.disabled = true
121
- }
89
+ })
122
90
 
123
91
  // 控制组件
124
92
  if (this.data.components) {
@@ -177,329 +145,30 @@
177
145
  this.showview = true
178
146
  })
179
147
  },
180
- // 金额转大写
181
- smalltoBIG(n) {
182
- let fraction = ['角', '分'];
183
- let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
184
- let unit = [['元', '万', '亿'], ['', '拾', '佰', '仟']];
185
- let head = n < 0 ? '欠' : '';
186
- n = Math.abs(n);
187
-
188
- let s = '';
189
-
190
- for (var i = 0; i < fraction.length; i++) {
191
- s += (digit[Math.floor(n * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '');
192
- }
193
- s = s || '整';
194
- n = Math.floor(n);
195
-
196
- for (var i = 0; i < unit[0].length && n > 0; i++) {
197
- let p = '';
198
- for (var j = 0; j < unit[1].length && n > 0; j++) {
199
- p = digit[n % 10] + unit[1][j] + p;
200
- n = Math.floor(n / 10);
201
- }
202
- s = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + s;
203
- }
204
- return head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整')
205
- },
206
- getLableValue(label) {
207
- for (const item of this.show_data.fields) {
208
- if (item.label === label && item.type !== 'number') {
209
- return item.value || ''
210
- }
211
- if (item.label === label && item.type === 'number') {
212
- return item.value || 0
213
- }
214
- }
215
- },
216
- getLableOptions(label) {
217
- for (const item of this.show_data.fields) {
218
- if (item.label === label) {
219
- return item.options
220
- }
221
- }
222
- },
223
- setLabelValue(label, value) {
224
- for (const item of this.show_data.fields) {
225
- if (item.label === label) {
226
- item.value = value
227
- this.show_data[item.field] = value
228
- }
229
- }
230
- },
231
- setLabelOptions(label, options) {
232
- for (const item of this.show_data.fields) {
233
- if (item.label === label) {
234
- item.options = options
235
- }
236
- }
237
- },
238
- async checkDuplicate(index) {
239
- let http = new HttpResetClass()
240
- let data = {
241
- tablename: 't_apply',
242
- condition: `${this.show_data.fields[index].field} = '${this.show_data.fields[index].value}'`
243
- }
244
- let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {
245
- resolveMsg: null,
246
- rejectMsg: `${this.show_data.fields[index].label}查询失败`
247
- })
248
- if (res.data.length > 0) {
249
- this.show_data.fields[index].value = null
250
- this.$showAlert(`${this.show_data.fields[index].label}已存在!!!`, 'warning', 3000)
251
- }
252
- },
253
- // 获取片区
254
- async getSliceArea () {
255
- let data = {
256
- source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
257
- userid: this.$login.f.id
258
- }
259
-
260
- let res = await this.$resetpost(
261
- `rs/search`,
262
- {data: data},
263
- {resolveMsg: null, rejectMsg: '片区查询失败!!!'}
264
- )
265
-
266
- return res.data.map(item => {
267
- return {
268
- label: item.name,
269
- value: item.name
270
- }
271
- })
272
- },
273
- // 获取区县
274
- async getPcd () {
275
- let data = {
276
- tablename: 't_pcd',
277
- condition: `f_filialeid = '${this.$login.f.orgid}'`
278
- }
279
- let res = await this.$resetpost(
280
- `rs/sql/singleTable`,
281
- {data: data},
282
- {resolveMsg: null, rejectMsg: '区县查询失败!!!'}
283
- )
284
-
285
- return res.data.map(item => {
286
- return {
287
- label: item.f_pcd,
288
- value: item.f_pcd
148
+ // json配置数据处理
149
+ async initializtion() {
150
+ // 查询是否有当前节点快照信息,如果有使用快照数据,没有则展示最新数据
151
+ if (this.nodeSnapshot && this.data.nodeSnapshot) {
152
+ let http = new HttpResetClass()
153
+ let data = {
154
+ tablename: 't_node_snapshot',
155
+ condition: `actid = '${this.selectdata.actid}' and f_process_id='${this.selectdata.f_process_id}'`
289
156
  }
290
- })
291
- },
292
- // 缴费前置
293
- chargeBefore () {
294
- if (Number(this.show_data.f_due_money) > Number(this.show_data.f_cumulative_payment_money) || Number(this.show_data.f_surplus_money) > 0) {
295
- this.$showAlert('费用未结清!!!', 'warning', 3000)
296
- throw null
297
- }
298
- },
299
- // 施工前置
300
- async constructionBefore () {
301
- let http = new HttpResetClass()
302
- let data = {
303
- condition: `ui.f_process_id = '${this.show_data.f_process_id}' and uf.f_table_state = '待开通'`
304
- }
305
- let res = await http.load(
306
- 'POST',
307
- 'rs/sql/countApplyUserinfo',
308
- {data: data},
309
- {
157
+ let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {
310
158
  resolveMsg: null,
311
- rejectMsg: '安装明细查询失败!!!'
159
+ rejectMsg: null
312
160
  })
313
- if (res.data[0].num > 0) {
314
- this.$showAlert(`还有${res.data[0].num}户未安装,无法提交`, 'warning', 3000)
315
- throw `还有${res.data[0].num}户未安装,无法提交`
316
- }
317
- },
318
- changePipeBuild () {
319
- if (this.selectdata.f_process_dep === '工程部') {
320
- return 'this.getParentByType($organization$).getChildByName($工程部报装$).getChildren()'
321
- }
322
- if (this.selectdata.f_process_dep === '运营部') {
323
- return 'this.getParentByType($organization$).getChildByName($运营部报装$).getChildren()'
324
- }
325
- },
326
- async getDevInfo () {
327
- let data = {
328
- tablename: 't_dev_info',
329
- condition: `f_orgid = '${this.$login.f.orgid}'`
330
- }
331
- let res = await this.$resetpost(
332
- `rs/sql/singleTable`,
333
- {data: data},
334
- {resolveMsg: null, rejectMsg: '公司查询失败!!!'}
335
- )
161
+ if (res.data.length > 0) {
162
+ data = JSON.parse(res.data[0].f_node_data)
336
163
 
337
- return res.data.map(item => {
338
- return {
339
- label: item.f_dev_name,
340
- value: item.f_dev_name
164
+ this.data.fields = data.fields
165
+ this.data.onetomany = data.onetomany
166
+ this.data.title = data.title
341
167
  }
342
- })
343
- },
344
- async getPrice (f_price_id) {
345
- console.log('=======================')
346
- console.log(f_price_id)
347
-
348
- let data = {
349
- condition: `sp.f_orgid = '${this.$login.f.orgid}'`
350
168
  }
351
-
352
- if (!isEmpty(f_price_id)) {
353
- data.condition = `sp.f_orgid = '${this.$login.f.orgid}' and sp.f_price_id = ${f_price_id}`
354
- }
355
- let http = new HttpResetClass()
356
- let res = await http.load(
357
- 'POST',
358
- `rs/sql/applyGetPrice`,
359
- {data: data},
360
- {resolveMsg: null, rejectMsg: '气价查询失败!!!'}
361
- )
362
-
363
- return res.data.map(item => {
364
- return {
365
- label: item.f_price_name,
366
- value: item
367
- }
368
- })
369
169
  }
370
170
  },
371
171
  events:{
372
- // 终止报建初始化·
373
- async 'stopApplyReadyEvent' () {
374
-
375
- let f_is_stop = this.getLableValue('是否终止')
376
-
377
- for (const item of this.show_data.fields) {
378
- if (f_is_stop === '是') {
379
- if (item.label === '终止原因') {
380
- item.hidden = false
381
- item.required = true
382
- }
383
- } else {
384
- if (item.label === '终止原因') {
385
- item.hidden = true
386
- item.required = false
387
- }
388
- }
389
- }
390
-
391
- if (isEmpty(this.show_data.f_parent_process_id)) {
392
- return
393
- }
394
- let data = {
395
- condition: `f_process_id = '${this.show_data.f_parent_process_id}'`,
396
- data: {
397
- id: this.$login.f.id,
398
- orgid: this.$login.f.orgid
399
- }
400
- }
401
- let res = await this.$resetpost(
402
- `rs/sql/supervisory`,
403
- {data: data},
404
- {resolveMsg: null, rejectMsg: '项目查询失败!!!'}
405
- )
406
- this.show_data.parentApply = res.data[0]
407
- },
408
- // 通气点火初始化
409
- async 'gasReadyEvent' () {
410
- if (!isEmpty(this.show_data.f_price_id)) {
411
- let priceList = await this.getPrice(this.show_data.f_price_id)
412
- this.setLabelValue('气价名称', priceList[0].value)
413
- }
414
-
415
-
416
- // 保险初始化显示内容
417
- let f_is_insure = this.getLableValue('是否购买保险')
418
- for (const item of this.show_data.fields) {
419
- if (f_is_insure === '是') {
420
- if (item.label === '保费开始日期' || item.label === '保费结束日期' || item.label === '险种' || item.label === '保费金额') {
421
- item.hidden = false
422
- item.required = true
423
- }
424
- if (item.label === '保险备注') {
425
- item.hidden = false
426
- }
427
- } else {
428
- if (item.label === '保费开始日期' || item.label === '保费结束日期' || item.label === '险种' || item.label === '保费金额') {
429
- item.hidden = true
430
- item.required = false
431
- }
432
- if (item.label === '保险备注') {
433
- item.hidden = true
434
- }
435
- }
436
- }
437
- // 本期保费到期时间默认一年
438
- if (isEmpty(this.selectdata.f_ins_expiration_date)) {
439
- let f_ins_expiration_date = new Date().setFullYear(new Date().getFullYear() + 1)
440
- this.setLabelValue("保费结束日期", new Date(f_ins_expiration_date).Format('yyyy-MM-dd'))
441
- }
442
- },
443
- // 申请节点初始化
444
- 'applyReadyEvent' () {
445
- this.$getConfig(this, 'UserAddress')
446
-
447
- let f_address_type = this.show_data.f_address_type
448
-
449
- for (const item of this.show_data.fields) {
450
- if (f_address_type === '民用市区') {
451
- if (item.label === '区/县' || item.label === '街道/乡镇' || item.label === '集收单位' || item.label === '门牌号') {
452
- item.hidden = false
453
- item.required = true
454
- }
455
- if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层') {
456
- item.hidden = false
457
- item.required = false
458
- }
459
- if (item.label === '地址') {
460
- item.readonly = true
461
- }
462
- }
463
- if (f_address_type === '民用乡镇') {
464
- if (item.label === '区/县' || item.label === '街道/乡镇' || item.label === '集收单位' || item.label === '门牌号') {
465
- item.hidden = false
466
- item.required = true
467
- }
468
- if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层') {
469
- item.hidden = false
470
- item.required = false
471
- }
472
- if (item.label === '楼层') {
473
- item.hidden = true
474
- item.required = false
475
- }
476
- if (item.label === '地址') {
477
- item.readonly = true
478
- }
479
- }
480
- if (f_address_type === '特殊地址') {
481
- if (item.label === '区/县' || item.label === '街道/乡镇') {
482
- item.hidden = false
483
- item.required = true
484
- }
485
- if (item.label === '集收单位') {
486
- item.hidden = false
487
- item.required = false
488
- }
489
- if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层' || item.label === '门牌号') {
490
- item.hidden = true
491
- item.required = false
492
- }
493
- if (item.label === '地址') {
494
- item.readonly = false
495
- }
496
- }
497
-
498
- if (this.show_data.f_apply_source === '线下发起' && item.label === '预约地址') {
499
- item.hidden = true
500
- }
501
- }
502
- },
503
172
  },
504
173
  watch: {
505
174
  deep: true
@@ -24,11 +24,6 @@
24
24
  :defname="selectdata.defname">
25
25
  </apply-upload>
26
26
  </tab>
27
- <div>
28
- <tab header='打印预览'>
29
- <apply-print-charge-node :selectdata="selectdata" :charge="charge" v-ref:print></apply-print-charge-node>
30
- </tab>
31
- </div>
32
27
  </tabset>
33
28
  </div>
34
29
  </div>
@@ -52,9 +47,6 @@
52
47
  created () {
53
48
  },
54
49
  methods: {
55
- print () {
56
- this.$refs.print.$refs.print.PrintTable()
57
- },
58
50
  // 获取页面配置json文件
59
51
  async loadName () {
60
52
  let data = {