sale-client 3.6.316 → 3.6.317

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.316",
3
+ "version": "3.6.317",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -51,7 +51,10 @@
51
51
  </div>
52
52
  <div class="row">
53
53
  <label class="col-sm-5">备用电话</label>
54
- <span class="col-sm-7">{{ data ? data.f_rent_phone : dafault.f_rent_phone }}</span>
54
+ <span class="col-sm-7">{{ data ? data.f_rent_phone : dafault.f_rent_phone }}
55
+ <span v-if="data" @click.stop="changerentphone"
56
+ class="glyphicon glyphicon-pencil clickchange" title="修正备用电话"></span>
57
+ </span>
55
58
  </div>
56
59
  <div class="row" :class="[config.f_user_state ? 'highlight' : '']">
57
60
  <label class="col-sm-5">客户状态</label>
@@ -119,6 +122,31 @@
119
122
  <button type="button" class="button_clear" @click='close'>取消</button>
120
123
  </footer>
121
124
  </modal>
125
+ <modal v-if="showselectncuserrent" :show.sync="showselectncuserrent" width="40%" title="修正客户备用电话"
126
+ v-ref:modal large backdrop="false">
127
+ <article slot="modal-body" class="modal-body">
128
+ <div class="form-horizontal">
129
+ <div class="row">
130
+ <div class="col-sm-12 form-group">
131
+ <label class="font_normal_body">旧客户备用电话</label>
132
+ <input disabled readonly type="text" style="width:80%" class="input_search"
133
+ v-model="data.f_rent_phone" placeholder='旧客户备用电话'>
134
+ </div>
135
+ </div>
136
+ <div class="row">
137
+ <div class="col-sm-12 form-group">
138
+ <label class="font_normal_body">新客户备用电话</label>
139
+ <input type="text" style="width:80%" class="input_search" v-model="newrentphone"
140
+ placeholder='新客户备用电话'>
141
+ </div>
142
+ </div>
143
+ </div>
144
+ </article>
145
+ <footer slot="modal-footer" class="modal-footer">
146
+ <button class="button_search" :disabled='!$m.valid ' @click="modifyUserRent">确定</button>
147
+ <button type="button" class="button_clear" @click='close'>取消</button>
148
+ </footer>
149
+ </modal>
122
150
  <modal v-if="reason_show" :show.sync="reason_show" width="40%" title="修改备注信息"
123
151
  v-ref:modal large backdrop="false">
124
152
  <article slot="modal-body" class="modal-body">
@@ -194,7 +222,9 @@ export default {
194
222
  },
195
223
  model: null,
196
224
  showselectncuserinfo: false,
225
+ showselectncuserrent: false,
197
226
  newuserphone: '',
227
+ newrentphone: '',
198
228
  reason_show: false,
199
229
  new_reason: ''
200
230
  }
@@ -235,6 +265,11 @@ export default {
235
265
  this.showselectncuserinfo = true
236
266
  this.newuserphone = ''
237
267
  },
268
+ changerentphone () {
269
+ // 修正客户电话
270
+ this.showselectncuserrent = true
271
+ this.newrentphone = ''
272
+ },
238
273
  async modifyUser () {
239
274
  let param = {
240
275
  new_userphone: this.newuserphone,
@@ -254,8 +289,28 @@ export default {
254
289
  this.$parent.$parent.$refs.list.searchNoData()
255
290
  this.close()
256
291
  },
292
+ async modifyUserRent () {
293
+ let param = {
294
+ new_rentphone: this.newrentphone,
295
+ f_userinfo_id: this.data.f_userinfo_id,
296
+ f_user_id: this.data.f_user_id,
297
+ f_operator: this.$login.f.name,
298
+ f_operatorid: this.$login.f.id,
299
+ f_orgid: this.$login.f.orgid,
300
+ f_orgname: this.$login.f.orgs,
301
+ f_depid: this.$login.f.depids,
302
+ f_depname: this.$login.f.deps
303
+ }
304
+ await this.$resetpost('/rs/logic/changeuserinfo', {data: param}, {resolveMsg: '修正成功', rejectMsg: null})
305
+ this.data.f_rent_phone = this.newrentphone
306
+ this.$parent.$parent.close()
307
+ this.$parent.$parent.clean()
308
+ this.$parent.$parent.$refs.list.searchNoData()
309
+ this.close()
310
+ },
257
311
  close () {
258
312
  this.showselectncuserinfo = false
313
+ this.showselectncuserrent = false
259
314
  this.reason_show = false
260
315
  this.newuserphone = ''
261
316
  this.new_reason = ''