sale-client 3.6.315 → 3.6.316

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.316",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -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: '*',