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
@@ -58,6 +58,21 @@
58
58
  close-on-select ></v-select>
59
59
  </div>
60
60
  </div>
61
+ <div class="row form-group app-input" v-if="$parent.$parent.criteriaShow">
62
+ <label class="">报建性质:</label>
63
+ <div class="col-xs-8" >
64
+ <v-select
65
+ width="100%"
66
+ v-model="model.f_apply_nature"
67
+ placeholder='报建性质'
68
+ condition="f_apply_nature = '{}'"
69
+ :value.sync="model.f_apply_nature"
70
+ :options='$parent.$parent.applyNatures'
71
+ class="select select_list"
72
+ :value-single="true"
73
+ close-on-select ></v-select>
74
+ </div>
75
+ </div>
61
76
  <div class="row form-group app-input" v-if="$parent.$parent.criteriaShow">
62
77
  <label class="">用户地址:</label>
63
78
  <div class="col-xs-8" >
@@ -71,9 +86,9 @@
71
86
  style="width: 100%!important;"
72
87
  v-model="model.startDate"
73
88
  :value.sync="model.startDate"
74
- :format="'yyyy-MM-dd HH:mm:ss'"
89
+ :format="'yyyy-MM-dd 00:00:00'"
75
90
  :show-reset-button="true"
76
- condition="u.f_apply_date >= to_date('{}', 'yyyy-mm-dd hh24:mi:ss')">
91
+ condition="u.f_apply_date >= '{}'">
77
92
  </datepicker>
78
93
  </div>
79
94
  </div>
@@ -84,12 +99,27 @@
84
99
  style="width: 100%!important;"
85
100
  v-model="model.endDate"
86
101
  :value.sync="model.endDate"
87
- :format="'yyyy-MM-dd HH:mm:ss'"
102
+ :format="'yyyy-MM-dd 23:59:59'"
88
103
  :show-reset-button="true"
89
- condition="f_apply_date <= to_date('{}', 'yyyy-mm-dd hh24:mi:ss')">
104
+ condition="f_apply_date <= '{}'">
90
105
  </datepicker>
91
106
  </div>
92
107
  </div>
108
+ <div class="row form-group app-input" v-if="$parent.$parent.criteriaShow">
109
+ <label class="">稍后处理:</label>
110
+ <div class="col-xs-8" >
111
+ <v-select
112
+ width="100%"
113
+ v-model="model.f_is_later"
114
+ placeholder='稍后处理'
115
+ condition="f_is_later = '{}'"
116
+ :value.sync="model.f_is_later"
117
+ :options='$parent.$parent.laterList'
118
+ class="select select_list"
119
+ :value-single="true"
120
+ close-on-select ></v-select>
121
+ </div>
122
+ </div>
93
123
  <div class="row form-group text-right" style="">
94
124
  <button class="btn btn-primary" @click="$parent.$parent.search()">查询</button>
95
125
  <button class="btn btn-info" @click="$parent.$parent.clear()">清空</button>
@@ -107,12 +137,19 @@
107
137
  </div>
108
138
  <div class="col-xs-12">
109
139
  <p class="col-xs-3 text-left font"><b>电&emsp;&emsp;话:</b></p>
110
- <p class="col-xs-9 text-left input-font">{{ row.f_phone }}</p>
140
+ <p class="col-xs-9 text-left input-font">
141
+ {{ row.f_phone }}&ensp;
142
+ <svg @click.prevent="$parent.$parent.$parent.dialNumber(row.f_phone)" style="width: 25px;height: 25px;position: absolute;" t="1628575136009" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2374" width="200" height="200"><path d="M682.25 465.262c0 16.695 11.115 27.811 27.81 27.811s27.812-11.116 27.812-27.811A167.395 167.395 0 0 0 570.96 298.35c-16.695 0-27.811 11.116-27.811 27.811s11.16 27.812 27.811 27.812a111.597 111.597 0 0 1 111.29 111.289z m111.289 0c0 16.695 11.115 27.811 27.81 27.811s27.812-11.116 27.812-27.811c0-152.984-125.217-278.201-278.2-278.201-16.696 0-27.812 11.16-27.812 27.855s11.16 27.811 27.811 27.811c122.405 0 222.579 100.174 222.579 222.535zM417.976 367.9c30.623-30.579 33.391-77.898 5.58-111.289L337.31 148.134c-27.811-36.16-80.666-41.74-116.869-13.928-2.768 2.812-5.536 2.812-5.536 5.58l-75.13 75.13c-72.318 72.318 30.623 267.041 217.042 453.417C543.15 854.708 735.06 954.88 807.378 885.33l75.13-75.13c33.392-33.391 33.392-86.246 0-116.825l-5.536-5.58-108.52-86.246c-33.348-27.81-80.623-25.043-111.246 5.58l-47.275 47.319c-50.087-30.623-94.593-64.014-133.564-102.941-38.927-38.971-72.275-83.478-102.898-133.565l44.507-50.043z m-38.927-75.13c8.348 11.16 8.348 27.855-2.812 36.203l-61.202 63.97a29.569 29.569 0 0 0-5.536 33.392 721.425 721.425 0 0 0 122.405 164.1 721.512 721.512 0 0 0 164.1 122.405 29.569 29.569 0 0 0 33.39-5.58l63.971-63.97c11.16-11.116 25.043-11.116 36.203-2.769l108.477 89.014s2.768 0 2.768 2.768a26.889 26.889 0 0 1 0 38.971l-75.13 75.13c-36.115 36.115-208.606-55.666-372.75-217.042-164.1-161.332-253.114-336.548-216.955-372.75l77.854-77.899c11.16-8.348 30.623-8.348 38.971 5.58l86.246 108.521z" fill="#8A8A8A" p-id="2375"></path></svg>
143
+ </p>
111
144
  </div>
112
145
  <div class="col-xs-12">
113
146
  <p class="col-xs-3 text-left font"><b>工程编号:</b></p>
114
147
  <p class="col-xs-9 text-left input-font">{{ row.f_apply_num }}</p>
115
148
  </div>
149
+ <div class="col-xs-12">
150
+ <p class="col-xs-3 text-left font"><b>客户编号:</b></p>
151
+ <p class="col-xs-9 text-left input-font">{{ row.f_userinfo_code }}</p>
152
+ </div>
116
153
  <div class="col-xs-12">
117
154
  <p class="col-xs-3 text-left font"><b>报建类型:</b></p>
118
155
  <p class="col-xs-9 text-left input-font">{{ row.f_apply_type }}</p>
@@ -129,6 +166,10 @@
129
166
  <p class="col-xs-3 text-left font"><b>报建日期:</b></p>
130
167
  <p class="col-xs-9 text-left input-font">{{ row.f_apply_date }}</p>
131
168
  </div>
169
+ <div class="col-xs-12" style="color: red">
170
+ <p class="col-xs-3 text-left font"><b>施工备注:</b></p>
171
+ <p class="col-xs-9 text-left input-font">{{ row.f_construction_remarks }}</p>
172
+ </div>
132
173
 
133
174
  <div class="col-xs-12 text-right">
134
175
  <button class="btn btn-info" @click="$parent.$parent.$parent.click(row)">处理</button>
@@ -150,23 +191,29 @@ export default {
150
191
  model: new PagedList(`${this.$androidUtil.getProxyUrl()}/rs/sql/checkuser`, 20, {
151
192
  // model: new PagedList('rs/sql/checkuser', 20, {
152
193
  data: {
153
- id: Vue.user.id,
194
+ userid: Vue.user.id,
154
195
  orgid: Vue.user.orgid
155
- // id: '1626081',
156
- // orgid: '1123'
196
+ // userid: '97036',
197
+ // orgid: '21142'
157
198
  }
158
199
  }),
159
200
  criteriaShow: false,
160
- applytype: this.$appdata.getParam('报建类型')?[{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')]:[{label: '全部', value: ''}], // 所有报建类型
161
- // applytype: [{label: '全部', value: ''},{label: '散户报建', value: '散户报建'}], // 所有报建类型
162
-
163
- defnames: [{label: '全部', value: ''}]
201
+ applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')], // 所有报建类型
202
+ defnames: [{label: '全部', value: ''}],
203
+ applyNatures: [{label: '全部', value: ''}] // 报建性质
164
204
  }
165
205
  },
166
206
  ready () {
167
207
  this.search()
168
208
  },
169
209
  methods: {
210
+ dialNumber (phone) {
211
+ this.$showMessage(`是否拨打电话:${phone}`, ['confirm']).then((res) => {
212
+ if (res === 'confirm') {
213
+ this.$androidUtil.makeAPhoneCall(phone)
214
+ }
215
+ })
216
+ },
170
217
  clear () {
171
218
  Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
172
219
  this.$refs.cp.$refs.cri.model[key] = null
@@ -177,7 +224,7 @@ export default {
177
224
  this.$refs.cp.$refs.cri.search()
178
225
  },
179
226
  searchCondition (args) {
180
- args.condition
227
+ args.condition += `and act.defname in ${this.appDefnames}`
181
228
  this.model.search(args.condition, args.model)
182
229
  },
183
230
  click (row) {
@@ -193,13 +240,17 @@ export default {
193
240
  if (!isEmpty(this.$refs.cp.$refs.cri.model.f_apply_type)) {
194
241
  let http = new HttpResetClass()
195
242
  http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/getDefnameByType`, {
196
- // http.load('POST', 'rs/logic/getDefnameByType', {
243
+ // http.load('POST', 'rs/logic/getDefnameByType', {
197
244
  f_apply_type: this.$refs.cp.$refs.cri.model.f_apply_type
198
245
  }, {resolveMsg: null, rejectMsg: null}).then((res) => {
199
246
  this.defnames = [{label: '全部', value: ''}, ...res.data]
247
+
248
+ this.applyNatures = isEmpty(this.$appdata.getParam(`${this.$refs.cp.$refs.cri.model.f_apply_type}性质`)) ? [{label: '全部', value: ''}] : [{label: '全部', value: ''}, ...this.$appdata.getParam(`${this.$refs.cp.$refs.cri.model.f_apply_type}性质`)]
200
249
  })
201
250
  } else {
202
251
  this.defnames = [{label: '全部', value: ''}]
252
+
253
+ this.applyNatures = [{label: '全部', value: ''}]
203
254
  }
204
255
  }
205
256
  },
@@ -209,7 +260,6 @@ export default {
209
260
  },
210
261
  computed: {
211
262
  appDefnames () {
212
- // let list = [{label: '报装缴费', value: '报装缴费'}, {label: '通气点火', value: '通气点火'}]
213
263
  let list = this.$appdata.getParam('手机节点')
214
264
  return `(${list.map(item => `'${item.value}'`).toString()})`
215
265
  }
@@ -217,31 +267,31 @@ export default {
217
267
  }
218
268
  </script>
219
269
  <style scoped>
220
- .panel-self{
221
- border-radius: 10px;
222
- border:1px solid #499EDF;
223
- background-color: #F8F8F8;
224
- }
225
- .font{
226
- font: 15px PingFang-SC-Medium;
227
- color: #666666;
228
- }
270
+ .panel-self{
271
+ border-radius: 10px;
272
+ border:1px solid #499EDF;
273
+ background-color: #F8F8F8;
274
+ }
275
+ .font{
276
+ font: 15px PingFang-SC-Medium;
277
+ color: #666666;
278
+ }
229
279
 
230
- .button_shrink_top {
231
- width: 34px;
232
- height: 34px;
233
- border: solid 1px #6aa6e2;
234
- background-size: 100%;
235
- background-image: url("../../../../static/newStyle/stretch_top.png")
236
- }
280
+ .button_shrink_top {
281
+ width: 34px;
282
+ height: 34px;
283
+ border: solid 1px #6aa6e2;
284
+ background-size: 100%;
285
+ background-image: url("../../../../static/newStyle/stretch_top.png")
286
+ }
237
287
 
238
- .button_shrink_bottom {
239
- width: 34px;
240
- height: 34px;
241
- border: solid 1px #6aa6e2;
242
- background-size: 100%;
243
- background-image: url("../../../../static/newStyle/stretch_bottom.png")
244
- }
288
+ .button_shrink_bottom {
289
+ width: 34px;
290
+ height: 34px;
291
+ border: solid 1px #6aa6e2;
292
+ background-size: 100%;
293
+ background-image: url("../../../../static/newStyle/stretch_bottom.png")
294
+ }
245
295
  </style>
246
296
  <style lang="less">
247
297
  .app-input {
@@ -422,6 +422,7 @@ export default {
422
422
  if (this.selectdata.f_process_dep === '运营部') {
423
423
  return 'this.getParentByType($organization$).getChildByName($运营部报装$).getChildren()'
424
424
  }
425
+ return 'this.getParentByType($organization$).getChildByName($工程部报装$).getChildren()'
425
426
  },
426
427
  async getPrice (f_price_id) {
427
428
  console.log('=======================')
@@ -458,6 +459,40 @@ export default {
458
459
  'checkRepeat' (index) {
459
460
  this.checkDuplicate(index)
460
461
  },
462
+ // 选择材料
463
+ async materialNameChenge (index, fieldIndex) {
464
+ let material = this.show_data.onetomany[index].fields[fieldIndex].value
465
+
466
+ this.show_data.onetomany[index].fields.forEach(item => {
467
+ if (material[item.field]) {
468
+ item.value = material[item.field]
469
+ }
470
+ })
471
+ },
472
+ // 打开模态框获取材料
473
+ async 'getMaterialName' (index) {
474
+ let data = {
475
+ condition: `1=1`
476
+ }
477
+ let http = new HttpResetClass()
478
+ let res = await http.load(
479
+ 'POST',
480
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/getStockMaterial`,
481
+ {data: data},
482
+ {resolveMsg: null, rejectMsg: '材料查询失败!!!'}
483
+ )
484
+
485
+ this.show_data.onetomany[index].fields.forEach(field => {
486
+ if (field.label === '选择材料') {
487
+ field.options = res.data.map(item => {
488
+ return {
489
+ 'label': `${item.f_material_name}--${item.f_material_style}--${item.f_material_unit}`,
490
+ 'value': item
491
+ }
492
+ })
493
+ }
494
+ })
495
+ },
461
496
  // 选择气价
462
497
  'priceChange' (index) {
463
498
  if (isEmpty(this.show_data.stairPrice)) {
@@ -487,13 +522,10 @@ export default {
487
522
  item.hidden = false
488
523
  }
489
524
  } else {
490
- if (item.label === '保费开始日期' || item.label === '保费结束日期' || item.label === '险种' || item.label === '保费金额') {
525
+ if (item.label === '保费开始日期' || item.label === '保费结束日期' || item.label === '险种' || item.label === '保费金额' || item.label === '保险备注') {
491
526
  item.hidden = true
492
527
  item.required = false
493
528
  }
494
- if (item.label === '保险备注') {
495
- item.hidden = true
496
- }
497
529
  }
498
530
  }
499
531
  },
@@ -504,6 +536,36 @@ export default {
504
536
  this.setLabelValue('气价名称', priceList[0].value)
505
537
  }
506
538
 
539
+ let data = {
540
+ tablename: 't_userfees',
541
+ condition: `f_orgid = '${Vue.user.orgid}' and f_userinfo_id = '${this.show_data.f_userinfo_id}' and f_state = '待执行'`
542
+ }
543
+ let http = new HttpResetClass()
544
+ let res = await http.load(
545
+ 'POST',
546
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
547
+ {data: data},
548
+ {resolveMsg: null, rejectMsg: '保险查询失败!!!'}
549
+ )
550
+ if (res.data.length > 0) {
551
+ this.setLabelValue('待执行保险', '是')
552
+ for (const item of this.show_data.fields) {
553
+ if (item.label === '保费开始日期' || item.label === '是否购买保险' || item.label === '保费结束日期' || item.label === '险种' || item.label === '保费金额' || item.label === '保险备注') {
554
+ item.hidden = true
555
+ item.required = false
556
+ item.value = null
557
+ }
558
+ }
559
+ } else {
560
+ this.setLabelValue('待执行保险', '否')
561
+ for (const item of this.show_data.fields) {
562
+ if (item.label === '是否购买保险' || item.label === '保费开始日期' || item.label === '保费结束日期' || item.label === '险种' || item.label === '保费金额' || item.label === '保险备注') {
563
+ item.hidden = false
564
+ item.required = true
565
+ }
566
+ }
567
+ }
568
+
507
569
  // 初始化显示内容
508
570
  let f_is_insure = this.getLableValue('是否购买保险')
509
571
  for (const item of this.show_data.fields) {
@@ -515,21 +577,19 @@ export default {
515
577
  if (item.label === '保险备注') {
516
578
  item.hidden = false
517
579
  }
518
- } else {
519
- if (item.label === '保费开始日期' || item.label === '保费结束日期' || item.label === '险种' || item.label === '保费金额') {
520
- item.hidden = true
521
- item.required = false
580
+ // 本期保费到期时间默认一年
581
+ if (isEmpty(this.selectdata.f_ins_expiration_date)) {
582
+ let f_ins_expiration_date = new Date().setFullYear(new Date().getFullYear() + 1)
583
+ this.setLabelValue("保费结束日期", new Date(f_ins_expiration_date).Format('yyyy-MM-dd'))
522
584
  }
523
- if (item.label === '保险备注') {
585
+ }
586
+ if (f_is_insure === '否') {
587
+ if (item.label === '保费开始日期' || item.label === '保费结束日期' || item.label === '险种' || item.label === '保费金额' || item.label === '保险备注') {
524
588
  item.hidden = true
589
+ item.required = false
525
590
  }
526
591
  }
527
592
  }
528
- // 本期保费到期时间默认一年
529
- if (isEmpty(this.selectdata.f_ins_expiration_date)) {
530
- let f_ins_expiration_date = new Date().setFullYear(new Date().getFullYear() + 1)
531
- this.setLabelValue("保费结束日期", new Date(f_ins_expiration_date).Format('yyyy-MM-dd'))
532
- }
533
593
  },
534
594
  // 合同金额失去焦点
535
595
  async 'contractMoneyChange' (index) {
@@ -635,7 +695,10 @@ export default {
635
695
  null,
636
696
  {resolveMsg: null, rejectMsg: '删除失败!!!'}
637
697
  )
638
-
698
+ res = await this.$resetpost(
699
+ `${this.$androidUtil.getProxyUrl()}/rs/entity/t_apply`,
700
+ this.show_data
701
+ )
639
702
  this.breakControl()
640
703
  },
641
704
  async 'onetomanyupdate' (index, rowIndex) {
@@ -648,6 +711,10 @@ export default {
648
711
  `${this.$androidUtil.getProxyUrl()}/rs/entity/${this.show_data.onetomany[index].tables[0]}`,
649
712
  data
650
713
  )
714
+ res = await this.$resetpost(
715
+ `${this.$androidUtil.getProxyUrl()}/rs/entity/t_apply`,
716
+ this.show_data
717
+ )
651
718
  this.breakControl()
652
719
  },
653
720
  async 'onetomanyadd' (index) {
@@ -655,7 +722,7 @@ export default {
655
722
  f_process_id : this.show_data.f_process_id,
656
723
  f_operator_id: Vue.user.id,
657
724
  f_operator: Vue.user.name,
658
- f_operation_date: new Date(),
725
+ f_operation_date: new Date().Format('yyyy-MM-dd HH:mm:ss'),
659
726
  f_orgid: Vue.user.orgid,
660
727
  f_orgname: Vue.user.orgs
661
728
  }
@@ -666,6 +733,10 @@ export default {
666
733
  `${this.$androidUtil.getProxyUrl()}/rs/entity/${this.show_data.onetomany[index].tables[0]}`,
667
734
  data
668
735
  )
736
+ res = await this.$resetpost(
737
+ `${this.$androidUtil.getProxyUrl()}/rs/entity/t_apply`,
738
+ this.show_data
739
+ )
669
740
  this.breakControl()
670
741
  },
671
742
  'onbutchange' (index) {