sale-client 3.6.500 → 3.6.501

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.6.500",
3
+ "version": "3.6.501",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -62,7 +62,10 @@
62
62
  </div>
63
63
  <limit-gas :show.sync="limitShow" :f_userinfo_id="data.baseinfo.base.f_userinfo_id"
64
64
  @limit="getLimitGas"></limit-gas>
65
- <modal :show.sync="showfiles" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
65
+ <modal :show.sync="showfiles" styles="margin-top:50px" v-ref:modal backdrop="false" width="80%" >
66
+ <header slot="modal-header" class="modal-header">
67
+ <button type="button" class="close" @click="showFilesClose"><span class="glyphicon glyphicon-remove"></span></button>
68
+ </header>
66
69
  <article slot="modal-body">
67
70
  <upload-idcard :blodid="blodid" isremark="true" @getidinfo="confirmIdCard" style="width:auto" fusetype="档案信息"></upload-idcard>
68
71
  </article>
@@ -282,6 +285,9 @@ export default {
282
285
  }
283
286
  },
284
287
  methods: {
288
+ showFilesClose () {
289
+ this.showfiles = false
290
+ },
285
291
  close () {
286
292
  this.printflag = false
287
293
  },
@@ -53,7 +53,10 @@
53
53
  </div>
54
54
  <div class="row">
55
55
  <label class="col-sm-5">备用电话</label>
56
- <span class="col-sm-7">{{ data ? data.f_rent_phone : dafault.f_rent_phone }}</span>
56
+ <span class="col-sm-7">{{ data ? data.f_rent_phone : dafault.f_rent_phone }}
57
+ <span v-if="data && data.f_rent_phone" @click.stop="changeUserRentPhone"
58
+ class="glyphicon glyphicon-pencil clickchange" title="修正备用电话"></span>
59
+ </span>
57
60
  </div>
58
61
  <div class="row" :class="[config.f_user_state ? 'highlight' : '']">
59
62
  <label class="col-sm-5">客户状态</label>
@@ -99,7 +102,16 @@
99
102
 
100
103
  <div class="row" >
101
104
  <label class="col-sm-5">保险到期日期</label>
102
- <span class="col-sm-7">{{ data ? data.f_ins_stop_date.substr(0, 10) : dafault.f_input_date }}</span>
105
+ <span class="col-sm-7">{{ data ? data.f_ins_stop_date.substr(0, 10) : dafault.f_input_date }}
106
+ <span v-if="data" @click.stop="changeInsStopDate"
107
+ class="glyphicon glyphicon-pencil clickchange" title="修正保险到期日期"></span>
108
+ </span>
109
+ </div>
110
+ <div class="row">
111
+ <label class="col-sm-5">保险金额</label>
112
+ <span class="col-sm-7">{{ data ? data.f_total_ins_charge : dafault.f_total_ins_charge }}
113
+ <span v-if="data" @click.stop="changeTotalInsCharge"
114
+ class="glyphicon glyphicon-pencil clickchange" title="修正保险金额"></span></span>
103
115
  </div>
104
116
  <modal v-if="showselectncuserinfo" :show.sync="showselectncuserinfo" width="40%" title="修正客户电话号码"
105
117
  v-ref:modal large backdrop="false">
@@ -126,6 +138,96 @@
126
138
  <button type="button" class="button_clear" @click='close'>取消</button>
127
139
  </footer>
128
140
  </modal>
141
+ <modal v-if="showSelectUserRentPhone" :show.sync="showSelectUserRentPhone" width="40%" title="修正客户备用电话号码"
142
+ v-ref:modal large backdrop="false">
143
+ <article slot="modal-body" class="modal-body">
144
+ <div class="form-horizontal">
145
+ <div class="row">
146
+ <div class="col-sm-12 form-group">
147
+ <label class="font_normal_body">旧备用电话</label>
148
+ <input disabled readonly type="text" style="width:80%" class="input_search"
149
+ v-model="data.f_rent_phone" placeholder='旧备用电话'>
150
+ </div>
151
+ </div>
152
+ <div class="row">
153
+ <div class="col-sm-12 form-group">
154
+ <label class="font_normal_body">新备用电话</label>
155
+ <input type="text" style="width:80%" class="input_search" v-model="newUserRentPhone"
156
+ placeholder='新备用电话'>
157
+ </div>
158
+ </div>
159
+ </div>
160
+ </article>
161
+ <footer slot="modal-footer" class="modal-footer">
162
+ <button class="button_search" :disabled='!$m.valid ' @click="modifyUserRentPhone">确定</button>
163
+ <button type="button" class="button_clear" @click='close'>取消</button>
164
+ </footer>
165
+ </modal>
166
+ <modal v-if="showInsStopDate" :show.sync="showInsStopDate" width="40%" title="修正保险到期日期"
167
+ v-ref:modal large backdrop="false">
168
+ <article slot="modal-body" class="modal-body">
169
+ <div class="form-horizontal">
170
+ <div class="row">
171
+ <div class="col-sm-12 form-group">
172
+ <label class="font_normal_body">旧保险到期日期</label>
173
+ <datepicker placeholder="旧保险到期日期"
174
+ style="width:60%"
175
+ class="datepicker"
176
+ disabled
177
+ v-model="data.f_ins_stop_date"
178
+ :value.sync="data.f_ins_stop_date"
179
+ :format="'yyyy-MM-dd'"
180
+ ></datepicker>
181
+ <!-- <input disabled readonly type="text" style="width:80%" class="input_search"-->
182
+ <!-- v-model="data.f_ins_stop_date" placeholder='旧保险到期日期'>-->
183
+ </div>
184
+ </div>
185
+ <div class="row">
186
+ <div class="col-sm-12 form-group">
187
+ <label class="font_normal_body">新保险到期日期</label>
188
+ <datepicker placeholder="新保险到期日期"
189
+ style="width:60%"
190
+ class="datepicker"
191
+ v-model="newInsStopDate"
192
+ :value.sync="newInsStopDate"
193
+ :format="'yyyy-MM-dd'"
194
+ ></datepicker>
195
+ <!-- <input type="text" style="width:80%" class="input_search" v-model="newInsStopDate"-->
196
+ <!-- placeholder='新保险到期日期'>-->
197
+ </div>
198
+ </div>
199
+ </div>
200
+ </article>
201
+ <footer slot="modal-footer" class="modal-footer">
202
+ <button class="button_search" :disabled='!$m.valid ' @click="modifyInsStopDate">确定</button>
203
+ <button type="button" class="button_clear" @click='close'>取消</button>
204
+ </footer>
205
+ </modal>
206
+ <modal v-if="showChangeTotalInsCharge" :show.sync="showChangeTotalInsCharge" width="40%" title="修改保险金额"
207
+ v-ref:modal large backdrop="false">
208
+ <article slot="modal-body" class="modal-body">
209
+ <div class="form-horizontal">
210
+ <div class="row">
211
+ <div class="col-sm-12 form-group">
212
+ <label class="font_normal_body">旧保险金额</label>
213
+ <input disabled readonly type="text" style="width:80%" class="input_search"
214
+ v-model="data.f_total_ins_charge" placeholder='旧保险金额'>
215
+ </div>
216
+ </div>
217
+ <div class="row">
218
+ <div class="col-sm-12 form-group">
219
+ <label class="font_normal_body">新保险金额</label>
220
+ <input type="text" style="width:80%" class="input_search" v-model="newTotalInsCharge"
221
+ placeholder='新保险金额'>
222
+ </div>
223
+ </div>
224
+ </div>
225
+ </article>
226
+ <footer slot="modal-footer" class="modal-footer">
227
+ <button class="button_search" :disabled='!$m.valid ' @click="modifyTotalInsCharge">确定</button>
228
+ <button type="button" class="button_clear" @click='close'>取消</button>
229
+ </footer>
230
+ </modal>
129
231
  <modal v-if="reason_show" :show.sync="reason_show" width="40%" title="修改备注信息"
130
232
  v-ref:modal large backdrop="false">
131
233
  <article slot="modal-body" class="modal-body">
@@ -208,7 +310,8 @@ export default {
208
310
  f_rent_phone: '************',
209
311
  f_comments: '**',
210
312
  f_user_state: '****',
211
- f_contract_id: '*************'
313
+ f_contract_id: '*************',
314
+ f_total_ins_charge: '*************'
212
315
  },
213
316
  config: {
214
317
  f_user_name: false,
@@ -226,7 +329,13 @@ export default {
226
329
  model: null,
227
330
  showselectncuserinfo: false,
228
331
  showselectncuseridnumber: false,
332
+ showSelectUserRentPhone: false,
333
+ showInsStopDate: false,
334
+ showChangeTotalInsCharge: false,
335
+ newTotalInsCharge: '',
229
336
  newuserphone: '',
337
+ newUserRentPhone: '',
338
+ newInsStopDate: '',
230
339
  reason_show: false,
231
340
  newuseridnumber: '',
232
341
  new_reason: ''
@@ -292,6 +401,18 @@ export default {
292
401
  this.showselectncuserinfo = true
293
402
  this.newuserphone = ''
294
403
  },
404
+ changeUserRentPhone () {
405
+ this.showSelectUserRentPhone = true
406
+ this.newUserRentPhone = ''
407
+ },
408
+ changeInsStopDate () {
409
+ this.showInsStopDate = true
410
+ this.newInsStopDate = ''
411
+ },
412
+ changeTotalInsCharge () {
413
+ this.showChangeTotalInsCharge = true
414
+ this.newTotalInsCharge = ''
415
+ },
295
416
  async modifyUser () {
296
417
  let param = {
297
418
  new_userphone: this.newuserphone,
@@ -311,13 +432,76 @@ export default {
311
432
  this.$parent.$parent.$refs.list.searchNoData()
312
433
  this.close()
313
434
  },
435
+ async modifyUserRentPhone () {
436
+ let param = {
437
+ new_rentphone: this.newUserRentPhone,
438
+ f_userinfo_id: this.data.f_userinfo_id,
439
+ f_user_id: this.data.f_user_id,
440
+ f_operator: this.$login.f.name,
441
+ f_operatorid: this.$login.f.id,
442
+ f_orgid: this.$login.f.orgid,
443
+ f_orgname: this.$login.f.orgs,
444
+ f_depid: this.$login.f.depids,
445
+ f_depname: this.$login.f.deps
446
+ }
447
+ await this.$resetpost('/rs/logic/changeuserinfo', {data: param}, {resolveMsg: '修正成功', rejectMsg: null})
448
+ this.data.f_rent_phone = this.newUserRentPhone
449
+ this.$parent.$parent.close()
450
+ this.$parent.$parent.clean()
451
+ this.$parent.$parent.$refs.list.searchNoData()
452
+ this.close()
453
+ },
454
+ async modifyInsStopDate () {
455
+ let param = {
456
+ new_insStopDate: this.newInsStopDate,
457
+ f_userinfo_id: this.data.f_userinfo_id,
458
+ f_user_id: this.data.f_user_id,
459
+ f_operator: this.$login.f.name,
460
+ f_operatorid: this.$login.f.id,
461
+ f_orgid: this.$login.f.orgid,
462
+ f_orgname: this.$login.f.orgs,
463
+ f_depid: this.$login.f.depids,
464
+ f_depname: this.$login.f.deps
465
+ }
466
+ await this.$resetpost('/rs/logic/changeuserinfo', {data: param}, {resolveMsg: '修正成功', rejectMsg: null})
467
+ this.data.f_ins_stop_date = this.newInsStopDate
468
+ this.$parent.$parent.close()
469
+ this.$parent.$parent.clean()
470
+ this.$parent.$parent.$refs.list.searchNoData()
471
+ this.close()
472
+ },
473
+ async modifyTotalInsCharge () {
474
+ let param = {
475
+ new_totalInsCharge: this.newTotalInsCharge,
476
+ f_userinfo_id: this.data.f_userinfo_id,
477
+ f_user_id: this.data.f_user_id,
478
+ f_operator: this.$login.f.name,
479
+ f_operatorid: this.$login.f.id,
480
+ f_orgid: this.$login.f.orgid,
481
+ f_orgname: this.$login.f.orgs,
482
+ f_depid: this.$login.f.depids,
483
+ f_depname: this.$login.f.deps
484
+ }
485
+ await this.$resetpost('/rs/logic/changeuserinfo', {data: param}, {resolveMsg: '修正成功', rejectMsg: null})
486
+ this.data.f_total_ins_charge = this.newTotalInsCharge
487
+ this.$parent.$parent.close()
488
+ this.$parent.$parent.clean()
489
+ this.$parent.$parent.$refs.list.searchNoData()
490
+ this.close()
491
+ },
314
492
  close () {
315
493
  this.showselectncuserinfo = false
494
+ this.showSelectUserRentPhone = false
495
+ this.showInsStopDate = false
496
+ this.showChangeTotalInsCharge = false
316
497
  this.reason_show = false
317
498
  this.showselectncuseridnumber = false
318
499
  this.newuserphone = ''
319
500
  this.new_reason = ''
320
501
  this.new_idnumber = ''
502
+ this.newUserRentPhone = ''
503
+ this.newInsStopDate = ''
504
+ this.newTotalInsCharge = ''
321
505
  }
322
506
  },
323
507
  watch: {
@@ -62,6 +62,7 @@ export default {
62
62
  id: sellId,
63
63
  eticket_id: row.id,
64
64
  f_charge_type: type,
65
+ charge_item: type,
65
66
  f_invoice_type: 0,
66
67
  invoice_type: 0,
67
68
  invoice_kind: row.f_paper_type,
@@ -72,7 +72,10 @@
72
72
  </div>
73
73
  <limit-gas :show.sync="limitShow" :f_userinfo_id="data.baseinfo.base.f_userinfo_id"
74
74
  @limit="getLimitGas"></limit-gas>
75
- <modal :show.sync="showfiles" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
75
+ <modal :show.sync="showfiles" styles="margin-top:50px" v-ref:modal backdrop="false" width="80%" >
76
+ <header slot="modal-header" class="modal-header">
77
+ <button type="button" class="close" @click="showFilesClose"><span class="glyphicon glyphicon-remove"></span></button>
78
+ </header>
76
79
  <article slot="modal-body">
77
80
  <upload-idcard :blodid="blodid" isremark="true" @getidinfo="confirmIdCard" style="width:auto"
78
81
  fusetype="档案信息" v-ref:upload></upload-idcard>
@@ -358,6 +361,9 @@ export default {
358
361
  }
359
362
  },
360
363
  methods: {
364
+ showFilesClose () {
365
+ this.showfiles = false
366
+ },
361
367
  permission (name) {
362
368
  console.log('>>> 开票信息修改权限 --> ' + name)
363
369
  console.log('权限:', this.$login.r)
@@ -281,6 +281,17 @@
281
281
  condition="f_totalsplit_type = '{}'">
282
282
  </v-select>
283
283
  </div>
284
+ <div class="col-sm-2 form-group">
285
+ <label class="font_normal_body">使用类型</label>
286
+ <v-select :value.sync="model.f_usetype"
287
+ v-model="model.f_usetype"
288
+ :options='$parent.$parent.usetype'
289
+ placeholder='使用类型'
290
+ style="width:60%"
291
+ close-on-select
292
+ condition="f_usetype = '{}'">
293
+ </v-select>
294
+ </div>
284
295
  </div>
285
296
  </div>
286
297
  </criteria>
@@ -436,6 +447,9 @@
436
447
  <th>
437
448
  <nobr>公司</nobr>
438
449
  </th>
450
+ <th>
451
+ <nobr>使用类型</nobr>
452
+ </th>
439
453
  <th>
440
454
  <nobr>备注</nobr>
441
455
  </th>
@@ -595,6 +609,9 @@
595
609
  <td style="text-align: center;">
596
610
  <nobr>{{ row.f_orgname }}</nobr>
597
611
  </td>
612
+ <td style="text-align: center;">
613
+ <nobr>{{ row.f_usetype }}</nobr>
614
+ </td>
598
615
  <td style="text-align: center;">
599
616
  <nobr>{{ row.f_comments }}</nobr>
600
617
  </td>
@@ -1282,6 +1299,9 @@ export default {
1282
1299
  handstate () {
1283
1300
  return [{label: '全部', value: ''}, ...this.$appdata.getParam('表单状态')]
1284
1301
  },
1302
+ usetype () {
1303
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('使用类型')]
1304
+ },
1285
1305
  // inputtor() {
1286
1306
  // return [{label: '全部', value: ''}, ...this.$appdata.getParam('抄表员')]
1287
1307
  // },
package/src/sign.html CHANGED
@@ -15,14 +15,25 @@
15
15
  }
16
16
  .s_conLeft {
17
17
  width: 75%;
18
- height: 100%;
18
+ height: 100vh;
19
19
  float: left;
20
20
  background: #ffffff;
21
+ overflow: auto;
22
+ position: relative;
23
+ }
24
+ #div_scroll {
25
+ width: 100%;
26
+ height: 100%;
27
+ overflow-y: auto;
28
+ overflow-x: hidden;
29
+ -ms-overflow-style: scrollbar; /* IE和Edge */
30
+ scrollbar-width: normal; /* Firefox */
21
31
  }
22
32
  .s_conLeftsing {
23
33
  width: 100%;
24
34
  height: 1000px;
25
35
  border: none;
36
+ display: block;
26
37
  }
27
38
  .s_conRight {
28
39
  width: 25%;
@@ -32,9 +43,10 @@
32
43
  }
33
44
  .sign_window {
34
45
  width: 300px;
35
- position: absolute;
46
+ position: fixed;
36
47
  right: 20px;
37
48
  top: 100px;
49
+ z-index: 1002;
38
50
  }
39
51
  #open_close_sign {
40
52
  float: right;
@@ -70,6 +82,17 @@
70
82
  margin: 5px;
71
83
  background: #ffffff;
72
84
  border: 1px solid #e0e0e0;
85
+ position: relative;
86
+ z-index: 1000;
87
+ }
88
+ #TInputSign {
89
+ position: relative;
90
+ z-index: 1001;
91
+ background: transparent;
92
+ }
93
+ .sign_place, .sign_dashed {
94
+ position: absolute;
95
+ z-index: 999;
73
96
  }
74
97
  .sign_place {
75
98
  float: left;
@@ -148,14 +171,75 @@
148
171
  ok = _buttonInfo("TInput_click_ok", obj_ok);
149
172
  var obj_resign = document.getElementById("button_resign");
150
173
  resign = _buttonInfo("TInput_click_resign", obj_resign);
151
- var close_open=document.getElementById("open_close_sign");
174
+ var close_open = document.getElementById("open_close_sign");
152
175
  close_open_btn = _buttonInfo("TInput_close_open", close_open);
176
+
177
+ // 添加上下滚动按钮的信息
178
+ var scrollDiv = document.getElementById("div_scroll");
179
+ if(scrollDiv) {
180
+ var scroll_up = _buttonInfo("Move_Up_Btn", scrollDiv);
181
+ var scroll_down = _buttonInfo("Move_Down_Btn", scrollDiv);
182
+ activex = _objectInfo(obj);
183
+ return ok + resign + close_open_btn + scroll_up + scroll_down + activex;
184
+ }
185
+
153
186
  activex = _objectInfo(obj);
154
- s = ok + resign + close_open_btn + activex;
155
- return s;
187
+ return ok + resign + close_open_btn + activex;
156
188
  }
157
189
 
158
190
  // <!-- 笔响应支持脚本结束 -->
191
+ // 添加滚动控制变量
192
+ var scrollTimer = null;
193
+ var scrolling = false;
194
+ var scrollStep = 30; // 减小单次滚动步长
195
+ var scrollInterval = 10; // 缩短滚动间隔时间
196
+
197
+ function smoothScroll(direction) {
198
+ if (scrollTimer) return; // 如果已经在滚动则不重复启动
199
+
200
+ var scr = document.getElementById("div_scroll");
201
+ if (!scr) return;
202
+
203
+ function doScroll() {
204
+ var currentPos = scr.scrollTop;
205
+ var maxScroll = scr.scrollHeight - scr.clientHeight;
206
+
207
+ if (direction === 'up') {
208
+ if (currentPos <= 0) {
209
+ clearInterval(scrollTimer);
210
+ scrollTimer = null;
211
+ return;
212
+ }
213
+ scr.scrollTop = Math.max(0, currentPos - scrollStep);
214
+ } else {
215
+ if (currentPos >= maxScroll) {
216
+ clearInterval(scrollTimer);
217
+ scrollTimer = null;
218
+ return;
219
+ }
220
+ scr.scrollTop = Math.min(maxScroll, currentPos + scrollStep);
221
+ }
222
+ }
223
+
224
+ scrollTimer = setInterval(doScroll, scrollInterval);
225
+ }
226
+
227
+ function stopScroll() {
228
+ if (scrollTimer) {
229
+ clearInterval(scrollTimer);
230
+ scrollTimer = null;
231
+ }
232
+ }
233
+
234
+ function move_up() {
235
+ smoothScroll('up');
236
+ }
237
+
238
+ function move_down() {
239
+ smoothScroll('down');
240
+ }
241
+
242
+ // 优化事件处理
159
243
  window.onload = function(){
160
244
  obj = document.getElementById("TInputSign");
161
245
  obj.TInputSetString("license","VFZNMGQweHFRWFZOVVNVelJDVXpSQSUzRCUzRA=");
@@ -166,6 +250,14 @@
166
250
  obj.TInputMovetoExt();
167
251
  obj.TInputRegisterButtonInfo(TInput_getButtonsInfo());
168
252
  }, 600);
253
+
254
+ // 添加滚动结束监听
255
+ var scrollDiv = document.getElementById("div_scroll");
256
+ if(scrollDiv) {
257
+ scrollDiv.onmouseleave = function() {
258
+ stopScroll(); // 鼠标离开时停止滚动
259
+ };
260
+ }
169
261
  }
170
262
  window.onunload=function(){
171
263
  obj.TInputFinalize();
@@ -221,97 +313,67 @@
221
313
 
222
314
  //控件调用绑定的函数
223
315
  function TInput_click_ok(){
316
+ stopScroll(); // 点击确认时停止滚动
224
317
  button_click_ok();
225
318
  }
226
319
  function TInput_click_resign(){
320
+ stopScroll(); // 点击重签时停止滚动
227
321
  button_click_resign();
228
322
  }
229
323
  function TInput_close_open(){
324
+ stopScroll(); // 点击关闭时停止滚动
230
325
  close_open_button();
231
326
  }
232
327
  function Move_Up_Btn(){
233
328
  // document.getElementById("div1").style.backgroundColor="#000000";
234
329
  move_up();
235
330
  }
236
- function move_up(){
237
- // alert('up')
238
- GoTop()
239
- }
240
331
  function Move_Down_Btn(){
241
332
  // document.getElementById("div1").style.backgroundColor="#000000";
242
333
  move_down();
243
334
  }
244
- function move_down(){
245
- // alert('down')
246
- GoBottom();
247
- }
248
-
249
- var currentPosition;
250
- function GoTop() {
251
- var scr = document.getElementById("div_scroll");
252
- currentPosition = scr.scrollTop;
253
335
 
254
- currentPosition -= 300;
255
- if (currentPosition > 0) {
256
- scr.scrollTop = currentPosition;
257
- // scr.scrollTo(0, currentPosition);
258
- // timer = setInterval("GoTop()", 10);
259
- } else {
260
- currentPosition = 0;
261
- scr.scrollTop = currentPosition;
262
- // scr.scrollTo(0, 0);
263
-
264
- // window.clearInterval(timer);
265
- }
266
-
267
- }
268
- var currentPosition2;
269
- function GoBottom() {
270
- var scr = document.getElementById("div_scroll");
271
- // console.log('down');
272
- // var scr = document.body;
273
- currentPosition2 = scr.scrollTop;
274
-
275
- currentPosition2 += 300;
276
- if (currentPosition2 <= 3000) {
277
- scr.scrollTop = currentPosition2;
278
- // scr.scrollTo(0,currentPosition2);
279
- // timer2 = setInterval("GoBottom()", 100);
280
- } else {
281
- scr.scrollTop = 3000;
282
- // currentPosition = 1000;
283
- // scr.scrollTo(0,1000);
284
- // window.clearInterval(timer2);
285
- }
286
- }
287
-
288
- /*
289
- *回调
290
- */
291
- function TInputSignWebButtonClickCallback()
292
- {
336
+ // 修改回调函数,优化滚动触发
337
+ function TInputSignWebButtonClickCallback() {
293
338
  var fname = obj.GetClickedFuncname();
294
- if(fname == "TInput_click_ok")
295
- {
339
+ if(fname == "TInput_click_ok") {
340
+ stopScroll(); // 点击确认时停止滚动
296
341
  button_click_ok();
297
342
  }
298
- if(fname == "TInput_click_resign")
299
- {
343
+ else if(fname == "TInput_click_resign") {
344
+ stopScroll(); // 点击重签时停止滚动
300
345
  button_click_resign();
301
346
  }
302
- if(fname == "TInput_close_open")
303
- {
347
+ else if(fname == "TInput_close_open") {
348
+ stopScroll(); // 点击关闭时停止滚动
304
349
  close_open_button();
305
350
  }
306
- if(fname == "Move_Up_Btn")
307
- {
351
+ else if(fname == "Move_Up_Btn") {
308
352
  move_up();
309
353
  }
310
- if(fname == "Move_Down_Btn")
311
- {
354
+ else if(fname == "Move_Down_Btn") {
312
355
  move_down();
313
356
  }
314
357
  }
358
+
359
+ // 添加笔迹移动事件处理
360
+ function TInputPenMove(x, y) {
361
+ var scrollDiv = document.getElementById("div_scroll");
362
+ var objRect = obj.getBoundingClientRect();
363
+ var scrollRect = scrollDiv.getBoundingClientRect();
364
+
365
+ // 计算相对位置
366
+ var relativeY = y - scrollRect.top;
367
+
368
+ // 如果笔迹接近底部,向下滚动
369
+ if (relativeY > scrollRect.height - 50) {
370
+ scrollDiv.scrollTop += 20;
371
+ }
372
+ // 如果笔迹接近顶部,向上滚动
373
+ else if (relativeY < 50) {
374
+ scrollDiv.scrollTop -= 20;
375
+ }
376
+ }
315
377
  </script>
316
378
  <div class="s_content">
317
379
  <!-- <iframe class="s_conLeftsing" id="singurl"></iframe>-->