sale-client 3.6.315 → 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.315",
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 = ''
@@ -145,7 +145,10 @@
145
145
  <nobr>旧表具剩余金额</nobr>
146
146
  </th>
147
147
  <th>
148
- <nobr>备注</nobr>
148
+ <nobr>换表原因</nobr>
149
+ </th>
150
+ <th>
151
+ <nobr>其他备注</nobr>
149
152
  </th>
150
153
  <th>
151
154
  <nobr>换表人</nobr>
@@ -206,6 +209,9 @@
206
209
  <td style="text-align: center;">
207
210
  <nobr>{{row.f_comments}}</nobr>
208
211
  </td>
212
+ <td style="text-align: center;">
213
+ <nobr>{{row.f_othereason}}</nobr>
214
+ </td>
209
215
  <td style="text-align: center;">
210
216
  <nobr>{{row.f_change_operator}}</nobr>
211
217
  </td>
@@ -273,7 +279,8 @@ const myMap = new Map()
273
279
  'f_meter_brand': '新气表品牌',
274
280
  'f_remanent_gas': '旧表剩余补气量',
275
281
  'f_remanent_money': '旧表剩余金额',
276
- 'f_comments': '备注',
282
+ 'f_comments': '换表原因',
283
+ 'f_othereason': '其他备注',
277
284
  'f_change_operator': '换表人',
278
285
  'f_state': '状态',
279
286
  'f_operate_date': '换表日期',
@@ -152,16 +152,16 @@
152
152
  // 构建数组来存储对象
153
153
  editbank: true,
154
154
  recordList: [],
155
- foperator:[],
155
+ foperator: [],
156
156
  changestate: [{label: '有效', value: '有效'}, {label: '无效', value: '无效'}],
157
157
  showfiles: false,
158
158
  // meterstate:[{label:'已抄',value:'已抄'},{label:'未抄',value:'未抄'}],
159
159
  // handstate:[{label:'有效',value:'有效'},{label:'冲正',value:'冲正'},{label:'作废',value:'作废'},{label:'待审核',value:'待审核'}],
160
160
  fileNameSet: {
161
- // 'f_change_operator':'换表人',
162
- 'f_operate_date': '换表日期'
163
- // 'f_changemeter_state':'换表状态',
164
- // 'f_table_state':'旧表状态',
161
+ 'f_change_operator': '换表人',
162
+ 'f_operate_date': '换表日期',
163
+ 'f_comments': '换表原因',
164
+ 'f_othereason': '其他备注'
165
165
  // 'f_newtable_state':'新表状态'
166
166
  }
167
167
  }
@@ -227,7 +227,7 @@
227
227
  var car = {
228
228
  chinesename: this.fileNameSet[item],
229
229
  fieldname: item,
230
- tablename: 't_changemeter',
230
+ tablename: 't_changetables',
231
231
  oldvalue: this.oldmodel[item],
232
232
  newvalue: this.model[item],
233
233
  state: '有效',
@@ -247,8 +247,23 @@
247
247
  }
248
248
  }
249
249
  await this.$resetpost('rs/logic/saveChangeMeterRecord', {data: {recordlist: this.recordList, newData: this.model}})
250
- await this.$resetpost('rs/entity/t_changetables', this.model, {resolveMsg: '修改成功', rejectMsg: '未通过,修改出错!!!'})
251
- console.log('this.model', this.model)
250
+ // let changetablesData = {
251
+ // id: this.model.id,
252
+ // f_change_operator: this.model.f_change_operator,
253
+ // f_comments: this.model.f_comments,
254
+ // f_othereason: this.model.f_othereason,
255
+ // f_operate_date: this.model.f_operate_date
256
+ // }
257
+ let sqldata = `update t_changetables set
258
+ f_change_operator ='${this.model.f_change_operator}',
259
+ f_comments ='${this.model.f_comments}',
260
+ f_othereason ='${this.model.f_othereason}',
261
+ f_operate_date='${this.model.f_operate_date}'
262
+ where id ='${this.model.id}'`
263
+ console.log('换表记录修正保存', sqldata)
264
+ await this.$resetpost('rs/logic/runSQL', {data: {sql: sqldata}}, {resolveMsg: null, rejectMsg: null})
265
+ // await this.$resetpost('rs/entity/t_changetables', changetablesData, {resolveMsg: '修改成功', rejectMsg: '未通过,修改出错!!!'})
266
+ // console.log('this.model', this.model)
252
267
  this.$dispatch('close')
253
268
  }
254
269
  },
@@ -92,7 +92,7 @@
92
92
  },
93
93
  async getGroupData () {
94
94
  console.log('获取记录')
95
- let condition = ' changemeter_id= ' + this.model.id + " and tablename='t_changemeter'"
95
+ let condition = ' changemeter_id= ' + this.model.id + " and tablename='t_changetables'"
96
96
  let res = await this.$resetpost('rs/sql/singleTable_OrderBy', {
97
97
  data: {
98
98
  items: '*',