sale-client 3.6.379 → 3.6.380

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.379",
3
+ "version": "3.6.380",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -35,7 +35,7 @@ export default {
35
35
  devicesinfo: [],
36
36
  show_devices: false,
37
37
  fireinfo: {},
38
- f_input_person: '',
38
+ f_input_person: [],
39
39
  show_fire: false,
40
40
  imgdelete: '/images/mainicon/deletedevice.png',
41
41
  imgsrc: '/images/mainicon/biaopan.png',
@@ -202,13 +202,21 @@ export default {
202
202
  this.$refs.list.searchNoData()
203
203
  this.$refs.card.search()
204
204
  },
205
- modalsuccess (obj) {
205
+ async modalsuccess (obj) {
206
206
  this.showModal = false
207
- this.$refs.list.criteriaShow = false
208
- this.row = obj
209
- this.cardInfo = this.$refs.list.cardInfo
210
- // 将列表只显示该条数据
211
- this.$refs.list.refreshRow(obj)
207
+ let getUnWriteSell = await this.$SqlService.singleTable('t_sellinggas', `f_state = '有效' and (f_write_card = '未写卡' or (f_write_card = '写卡失败' and f_operate_date >= DATEADD(HOUR, -3, GETDATE()))) and f_userfiles_id = '${obj.f_userfiles_id}'`)
208
+ console.log('获取未写卡记录', getUnWriteSell)
209
+ if (getUnWriteSell.data.length > 1) {
210
+ this.$showAlert('此卡已缴费多次未写卡。请核实后处理!!', 'warning', 5000)
211
+ } else {
212
+ this.$refs.list.criteriaShow = false
213
+ this.row = obj
214
+ this.row.unWriteSell = getUnWriteSell.data
215
+ this.cardInfo = this.$refs.list.cardInfo
216
+ this.$refs.list.criteriaShow = false
217
+ // 将列表只显示该条数据
218
+ this.$refs.list.refreshRow(obj)
219
+ }
212
220
  },
213
221
  async serRow (obj) {
214
222
  let newdata = await this.$resetpost('rs/sql/sale_getUser', {
@@ -27,6 +27,16 @@
27
27
  close-on-select clear-button>
28
28
  </v-select>
29
29
  </div>
30
+ <div class="col-sm-4 form-group">
31
+ <label class="font_normal_body" title="参数值:计入/不计入,计入:更新档案结余及累购,不计入:只保存记录不对档案进行操作">计入累购</label>
32
+ <input v-show="false" v-model="model.f_add_gas" v-validate:f_operat_type='{required: true}'>
33
+ <v-select :value.sync="model.f_add_gas" value-single
34
+ :options='addGas' placeholder='请选择'
35
+ disabled
36
+ selected="是否计入累购"
37
+ style="width:60%"
38
+ close-on-select></v-select>
39
+ </div>
30
40
  <div class="col-sm-4 form-group" v-if="data.f_collection_type === '按气量'">
31
41
  <label class="font_normal_body">剩余气量</label>
32
42
  <input class="input_search" style="width:60%" type="number" v-model="data.f_balance_gas" readonly>
@@ -99,7 +109,11 @@
99
109
  // 默认打印格式
100
110
  self.model.f_print = self.config.printType instanceof Array ? self.config.printType : [self.config.printType]
101
111
  self.model.f_payment = [self.config.payment]
102
-
112
+ if (self.config.addgas) {
113
+ self.model.f_add_gas = '计入'
114
+ } else {
115
+ self.model.f_add_gas = '计入'
116
+ }
103
117
  self.model.f_use_type = self.config.billType
104
118
  self.model.f_bill_type = self.model.f_print
105
119
  self.hasValidateBill = self.config.hasBillManage
@@ -110,6 +124,7 @@
110
124
  data () {
111
125
  return {
112
126
  config: {
127
+ addgas:true,
113
128
  showupload: false, // 默认不上传附件
114
129
  hasPrint: false, // 默认打票
115
130
  hasBillManage: false, // 默认不启用发票管理
@@ -119,6 +134,7 @@
119
134
  billType: '燃气费'
120
135
  },
121
136
  model: {
137
+ f_add_gas: '计入',
122
138
  f_refund_fee: '',
123
139
  f_refund_gas: '',
124
140
  f_comments: '',
@@ -185,6 +201,7 @@
185
201
  f_userfiles_id: this.data.f_userfiles_id,
186
202
  version: this.data.version,
187
203
  f_price: this.model.f_price,
204
+ f_add_gas: this.model.f_add_gas,
188
205
  f_refund_gas: this.model.f_refund_gas,
189
206
  f_refund_fee: this.model.f_refund_fee,
190
207
  f_comments: this.model.f_comments,
@@ -26,7 +26,16 @@
26
26
  close-on-select clear-button>
27
27
  </v-select>
28
28
  </div>
29
-
29
+ <div class="col-sm-4 form-group">
30
+ <label class="font_normal_body" title="参数值:计入/不计入,计入:更新档案结余及累购,不计入:只保存记录不对档案进行操作">计入累购</label>
31
+ <input v-show="false" v-model="model.f_add_gas" v-validate:f_operat_type='{required: true}'>
32
+ <v-select :value.sync="model.f_add_gas" value-single
33
+ :options='addGas' placeholder='请选择'
34
+ disabled
35
+ selected="是否计入累购"
36
+ style="width:60%"
37
+ close-on-select></v-select>
38
+ </div>
30
39
  <div class="col-sm-4 form-group">
31
40
  <label class="font_normal_body">剩余金额</label>
32
41
  <input class="input_search" style="width:60%" type="number" v-model="data.f_balance" readonly>
@@ -76,7 +85,11 @@
76
85
  self.blodid = self.data.f_userinfo_id
77
86
  self.model.f_print = self.config.printType instanceof Array ? self.config.printType : [self.config.printType]
78
87
  self.model.f_payment = [self.config.payment]
79
-
88
+ if (self.config.addgas) {
89
+ self.model.f_add_gas = '计入'
90
+ } else {
91
+ self.model.f_add_gas = '计入'
92
+ }
80
93
  self.model.f_use_type = self.config.billType
81
94
  self.model.f_bill_type = self.model.f_print
82
95
  self.hasValidateBill = self.config.hasBillManage
@@ -87,6 +100,7 @@
87
100
  data () {
88
101
  return {
89
102
  config: {
103
+ addgas:true,
90
104
  showupload: false, // 默认不上传附件
91
105
  hasPrint: false, // 默认打票
92
106
  hasBillManage: false, // 默认不启用发票管理
@@ -96,6 +110,7 @@
96
110
  billType: '燃气费'
97
111
  },
98
112
  model: {
113
+ f_add_gas: '计入',
99
114
  f_refund_fee: '',
100
115
  f_comments: '',
101
116
  f_payment: '',
@@ -160,7 +175,7 @@
160
175
  f_payment: this.model.f_payment[0],
161
176
  f_print: this.model.f_print[0],
162
177
  f_price_id: this.data.f_price_id,
163
-
178
+ f_add_gas: this.model.f_add_gas,
164
179
  f_total_fee: this.data.f_total_fee,
165
180
  f_stairprice_id: this.data.f_stairprice_id,
166
181
  operInfo: {
@@ -0,0 +1,282 @@
1
+ <template>
2
+ <div class="span">
3
+ <validator name='v' style="overflow-y: auto" @valid="confirmEditcheck = true" @invalid="confirmEditcheck = false">
4
+ <form novalidate class="form-horizontal select-overspread" >
5
+ <div class="row auto">
6
+ <div style="margin-top: 2%">
7
+ <img style="margin-top: -2px;margin-left: 2px" src="./../../../static/images/lefticon/矩形1183.png">
8
+ <a style="font-size: 16px;font-weight: 500;">表计信息</a>&nbsp;<a style="color: #999999;text-decoration: none"></a>
9
+ </div>
10
+ <div class="col-sm-6" :class="[$v.f_meternumber.required ? 'has-error' : '']">
11
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;表号&nbsp;&nbsp;&nbsp;</label>
12
+ <input type="text" v-model="newmeterinfo.f_meternumber" @blur="onbulrbunmber($event)" class="input_search" style="width:60%" v-validate:f_meternumber='{required: true }' placeholder="表号">
13
+ </div>
14
+
15
+ <div class="col-sm-6" :class="[$v.f_imei.required ? 'has-error' : '']" v-show="!(this.newmeterinfo.f_meter_brand==='真兰流量计' || this.newmeterinfo.f_meter_brand==='苍南物联网表')" >
16
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;IMEI码&nbsp;&nbsp;&nbsp;</label>
17
+ <input type="text" v-model="newmeterinfo.f_imei" class="input_search" style="width:60%" v-validate:f_imei='{required: true }' placeholder="IMEI码">
18
+ </div>
19
+ <!-- <div class="col-sm-6" v-if="this.newmeterinfo.f_meter_brand==='真兰流量计' || this.newmeterinfo.f_meter_brand==='苍南物联网表'">-->
20
+ <!-- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;IMEI码&nbsp;&nbsp;&nbsp;</label>-->
21
+ <!-- <input type="text" v-model="newmeterinfo.f_imei" class="input_search" style="width:60%" placeholder="IMEI码">-->
22
+ <!-- </div>-->
23
+ <div class="col-sm-6" >
24
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;IMSI码&nbsp;&nbsp;&nbsp;</label>
25
+ <input type="text" v-model="newmeterinfo.f_imsi" class="input_search" style="width:60%" placeholder="IMSI码">
26
+ </div>
27
+ <div class="col-sm-6" :class="[$v.brand.required ? 'has-error' : '']" v-show="!(this.newmeterinfo.f_meter_brand==='真兰流量计' || this.newmeterinfo.f_meter_brand==='苍南物联网表')">
28
+ <label class="font_normal_body" title="参数:气表类型2">&nbsp;&nbsp;&nbsp;气表类型</label>
29
+ <input type="text" v-show="false" v-model="$refs.brand.selectedItems" v-validate:brand='{required: true }'>
30
+ <v-select style="width:60%" title="气表类型2"
31
+ placeholder='气表类型'
32
+ :value.sync="newmeterinfo.f_metertype"
33
+ v-model="newmeterinfo.f_metertype"
34
+ :options='metertype'
35
+ close-on-select
36
+ :value-single="true" v-ref:brand> </v-select>
37
+ </div>
38
+ <div class="col-sm-6" :class="[$v.f_meter_brand.required ? 'has-error' : '']">
39
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;气表品牌</label>
40
+ <input type="text" v-show="false" v-model="newmeterinfo.f_meter_brand"
41
+ v-validate:f_meter_brand='{required: true }'>
42
+ <v-select
43
+ placeholder='气表品牌'
44
+ :value.sync="newmeterinfo.f_meter_brand"
45
+ style="width:60%"
46
+ :value-single="true"
47
+ v-model="newmeterinfo.f_meter_brand"
48
+ :options='meterbrand'
49
+ close-on-select>
50
+ </v-select>
51
+ </div>
52
+ <div class="col-sm-6" :class="[$v.f_meter_style.required ? 'has-error' : '']" v-show="!(this.newmeterinfo.f_meter_brand==='真兰流量计' || this.newmeterinfo.f_meter_brand==='苍南物联网表')">
53
+ <label class="font_normal_body" >&nbsp;&nbsp;&nbsp;气表型号</label>
54
+ <input type="text" v-show="false" v-model="newmeterinfo.f_meter_style"
55
+ v-validate:f_meter_style='{required: true }'>
56
+ <v-select style="width:60%"
57
+ placeholder='气表型号'
58
+ :value.sync="newmeterinfo.f_meter_style"
59
+ v-model="newmeterinfo.f_meter_style"
60
+ :options='meterstyle'
61
+ close-on-select
62
+ :value-single="true"> </v-select>
63
+ </div>
64
+ <div class="col-sm-6" >
65
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;表计电话</label>
66
+ <input type="text" v-model="newmeterinfo.f_meter_phone" class="input_search" style="width:60%" placeholder="表计电话">
67
+ </div>
68
+ <div class="col-sm-12" >
69
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;设备地址</label>
70
+ <input type="text" v-model="newmeterinfo.f_device_address" class="input_search" style="width:80%" placeholder="设备地址">
71
+ </div>
72
+ <div class="col-sm-6" >
73
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;是否领用</label>
74
+ <v-select style="width:60%"
75
+ placeholder='是否领用'
76
+ :value.sync="newmeterinfo.f_is_receive"
77
+ v-model="newmeterinfo.f_is_receive"
78
+ :options='isReceive'
79
+ disabled
80
+ close-on-select
81
+ :value-single="true"> </v-select>
82
+ </div>
83
+ <div class="col-sm-6" >
84
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;气表年限</label>
85
+ <input type="text" v-model="newmeterinfo.f_years" class="input_search" style="width:60%" placeholder="气表年限">
86
+ </div>
87
+ <div class="col-sm-6" >
88
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;生产日期</label>
89
+ <datepicker placeholder="生产日期" style="width: 60%"
90
+ v-model="newmeterinfo.f_manufacture_date"
91
+ :value.sync="newmeterinfo.f_manufacture_date"
92
+ :format="'yyyy-MM-dd HH:mm:ss'">
93
+ </datepicker>
94
+ <!-- <input type="text" v-model="newmeterinfo.f_manufacture_date" class="input_search" style="width:60%" placeholder="生产日期">-->
95
+ </div>
96
+
97
+ <div class="col-sm-6" >
98
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;批次号&nbsp;&nbsp;&nbsp;</label>
99
+ <input type="text" v-model="newmeterinfo.f_batch_number" class="input_search" style="width:60%" placeholder="批次号">
100
+ </div>
101
+ <div class="col-sm-6" >
102
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;终端名称</label>
103
+ <input type="text" v-model="newmeterinfo.f_terminal_id" class="input_search" style="width:60%" placeholder="终端名称">
104
+ </div>
105
+
106
+ <div class="col-sm-6" >
107
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;设备号&nbsp;&nbsp;&nbsp;</label>
108
+ <input type="text" v-model="newmeterinfo.f_device_id" class="input_search" style="width:60%" placeholder="设备号">
109
+ </div>
110
+ <div class="col-sm-6" >
111
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;阀控标识</label>
112
+ <input type="text" v-model="newmeterinfo.f_valvemark" class="input_search" style="width:60%" placeholder="阀控标识">
113
+ </div>
114
+ <div class="col-sm-6" v-show="!(this.newmeterinfo.f_meter_brand==='真兰流量计' || this.newmeterinfo.f_meter_brand==='苍南物联网表')">
115
+ <label class="font_normal_body" style="color: red" title="参数:表通道类型">表通道类型</label>
116
+ <!-- <input type="text" v-model="newmeterinfo.f_iot_type" class="input_search" style="width:60%" placeholder="表通道类型">-->
117
+ <v-select style="width:60%"
118
+ placeholder='表通道类型'
119
+ :value.sync="newmeterinfo.f_iot_type"
120
+ v-model="newmeterinfo.f_iot_type"
121
+ :options='iottype'
122
+ close-on-select
123
+ :value-single="true"> </v-select>
124
+ </div>
125
+ <div class="col-sm-6" >
126
+ <label class="font_normal_body">表通讯序号</label>
127
+ <input type="text" v-model="newmeterinfo.f_telecomm_no" class="input_search" style="width:60%" placeholder="表通讯序号">
128
+ </div>
129
+ <div class="col-sm-6" >
130
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;采购人</label>
131
+ <input type="text" v-model="newmeterinfo.f_purchaser" class="input_search" style="width:60%" placeholder="采购人">
132
+ </div>
133
+ <div class="col-sm-6" >
134
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;采购时间</label>
135
+ <datepicker placeholder="采购时间" style="width: 60%"
136
+ v-model="newmeterinfo.f_purchase_date"
137
+ :value.sync="newmeterinfo.f_purchase_date"
138
+ :format="'yyyy-MM-dd HH:mm:ss'">
139
+ </datepicker>
140
+ </div>
141
+ </div>
142
+ <div class="auto row">
143
+ <div style="margin-top: 2%">
144
+ <img style="margin-top: -2px;margin-left: 2px" src="./../../../static/images/lefticon/矩形1183.png">
145
+ <a style="font-size: 16px;font-weight: 500;">厂商信息</a>&nbsp;<a style="color: #999999;text-decoration: none"></a>
146
+ </div>
147
+ <div class="col-sm-6" >
148
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;气表厂家</label>
149
+ <input type="text" v-model="newmeterinfo.f_manufacturers" class="input_search" style="width:60%" placeholder="气表厂家">
150
+ </div>
151
+ <div class="col-sm-6" >
152
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;厂商代码</label>
153
+ <input type="text" v-model="newmeterinfo.f_vender" class="input_search" style="width:60%" placeholder="厂商代码">
154
+ </div>
155
+ </div>
156
+ <div class="col-sm-12" style="text-align:right;height:auto;margin-top:6px;">
157
+ <button class="button_search" type="button" @click="confirmEdit()" :disabled="!confirmEditcheck">确认</button>
158
+ <button class="button_clear" type="button" @click="close()">取消</button>
159
+ </div>
160
+ </form>
161
+ </validator>
162
+ </div>
163
+ </template>
164
+
165
+
166
+ <script>
167
+ let readyGen = async function (self) {
168
+ await self.$LoadParams.loadParam()
169
+ self.initQueryParam()
170
+ // self.reflash()
171
+ }
172
+ export default {
173
+ title: '表计信息修改',
174
+ props: ['oldmeter', 'f_filialeid'],
175
+ data () {
176
+ return {
177
+ row: {},
178
+ meterbrand: [],
179
+ newmeterinfo: {},
180
+ confirmEditcheck: false,
181
+ meterstyle: [],
182
+ }
183
+ },
184
+ ready () {
185
+ this.newmeterinfo = Object.assign({}, {}, this.oldmeter)
186
+ this.newmeterinfo.f_is_receive = this.newmeterinfo.f_is_receive !== '是' ? '否' : '是'
187
+ readyGen(this)
188
+ },
189
+ watch: {
190
+ 'oldmeter' () {
191
+ this.newmeterinfo = Object.assign({}, {}, this.oldmeter)
192
+ },
193
+ 'newmeterinfo.f_meter_brand' () {
194
+ if (this.newmeterinfo.f_meter_brand == null || this.newmeterinfo.f_meter_brand == '') return
195
+ let gasmodels = []
196
+ let gastype = []
197
+ this.$GetSaleParam.getGasbrand().forEach((item) => {
198
+ if (item.label == this.newmeterinfo.f_meter_brand) {
199
+ gasmodels = item.value.gasmodel
200
+ }
201
+ })
202
+ gasmodels.forEach((items) => {
203
+ let temp = {}
204
+ temp.label = items.label
205
+ temp.value = items.value.f_meter_style + items.value.f_type
206
+ gastype.push(temp)
207
+ })
208
+ this.meterstyle = gastype
209
+ }
210
+ },
211
+ methods: {
212
+
213
+ initQueryParam () {
214
+ let arr = []
215
+ this.$GetSaleParam.getGasbrand().forEach((item) => {
216
+ let temp = {}
217
+ temp.label = item.label
218
+ temp.value = item.value.f_meter_brand
219
+ arr.push(temp)
220
+ })
221
+ console.log(arr)
222
+ this.meterbrand = [{label: '全部', value: ''}, ...arr]
223
+ },
224
+ async onbulrbunmber ($event) {
225
+ if ($event.target.value === '') {
226
+ return
227
+ }
228
+ let expiration = await this.$resetpost('rs/sql/singleTable_OrderBy', {data:
229
+ {orderitem: 'id',
230
+ items: 'f_meternumber',
231
+ tablename: 't_meterinfo',
232
+ condition: 'f_meternumber = \'' + $event.target.value + '\''}}, {resolveMsg: '', rejectMsg: ''})
233
+
234
+ console.log(expiration)
235
+ if (expiration.data.length !== 0) {
236
+ this.$showMessage('表号已经存在')
237
+ }
238
+ },
239
+ close () {
240
+ this.$parent.meterinfos = []
241
+ this.$dispatch('close')
242
+ },
243
+ confirmEdit () {
244
+ this.newmeterinfo.f_diameter = ''
245
+ this.newmeterinfo.f_orgid = this.$login.f.orgid
246
+ // this.newmeterinfo.f_metertype='威星民用表'
247
+ this.newmeterinfo.f_orgname = this.$login.f.orgs
248
+ this.newmeterinfo.f_depid = this.$login.f.depids
249
+ this.newmeterinfo.f_depname = this.$login.f.deps
250
+ this.newmeterinfo.f_operator = this.$login.f.name
251
+ this.newmeterinfo.f_operatorid = this.$login.f.id
252
+ if (JSON.stringify(this.oldmeter) != '{}') {
253
+ if (this.newmeterinfo.f_meternumber && this.newmeterinfo.f_imei && this.newmeterinfo.f_iot_type && this.newmeterinfo.f_meternumber !== '' && this.newmeterinfo.f_imei !== '' && this.newmeterinfo.f_iot_type !== '') {
254
+ this.$resetpost('rs/entity/t_meterinfo', this.newmeterinfo, {resolveMsg: '修改成功。', rejectMsg: '修改失败!!!请核对表号/IMSI码是否重复!'})
255
+ } else {
256
+ this.$showMessage('表号/IMEI码/表通道类型 不能为空!')
257
+ }
258
+ } else {
259
+ // 是新增
260
+ this.newmeterinfo.f_state = '待安装'
261
+ this.newmeterinfo.f_filialeid = this.f_filialeid ? this.f_filialeid : this.$login.f.orgid
262
+ this.$resetpost('rs/entity/t_meterinfo', this.newmeterinfo, {resolveMsg: '添加成功。', rejectMsg: '添加失败!!!请核对表号/IMSI码是否重复'})
263
+ }
264
+ this.$dispatch('close')
265
+ }
266
+ },
267
+ computed: {
268
+ meterbrands () {
269
+ return this.$GetSaleParam.getGasbrand()
270
+ },
271
+ iottype () {
272
+ return this.$appdata.getParam('表通道类型')
273
+ },
274
+ metertype () {
275
+ return this.$appdata.getParam('气表类型2')
276
+ },
277
+ isReceive () {
278
+ return [{label: '否', value: '否'}, {label: '是', value: '是'}]
279
+ }
280
+ }
281
+ }
282
+ </script>
@@ -151,4 +151,5 @@ export default function () {
151
151
  Vue.component('paper-audit', (resolve) => { require(['./paperaudit'], resolve) })
152
152
  // 电子发票管理
153
153
  Vue.component('e-ticket-manage', (resolve) => { require(['./EticketManage'], resolve) })
154
+ Vue.component('edit-meter-info', (resolve) => { require(['./EditWebMeterInfo'], resolve) })
154
155
  }
package/src/main.js CHANGED
@@ -2,7 +2,7 @@ import Vue from 'vue'
2
2
  import all from 'vue-client/src/all'
3
3
  import App from './App'
4
4
  import system from 'system-clients/src/system'
5
- import FilialeSale from './filiale/dexin/sale'
5
+ import FilialeSale from './filiale/qingjian/sale'
6
6
  import sale from './sale'
7
7
  import address from 'address-client/src/address'
8
8
  import ldap from 'ldap-clients/src/ldap'
@@ -176,12 +176,10 @@ let CommonService = {
176
176
  async updatePassword (row, cardRes) {
177
177
  if (cardRes.data.Kmm) {
178
178
  if (row.f_card_password != cardRes.data.Kmm) {
179
- let updateFiles = {
180
- f_userfiles_id: row.f_userfiles_id,
181
- version: row.version + 1,
182
- f_card_password: cardRes.data.Kmm
183
- }
184
- await Vue.resetpost('rs/entity/t_userfiles', updateFiles, {resolveMsg: null, rejectMsg: '更新卡密码出错!!请联系开发人员处理!!'})
179
+ let sql = `update t_userfiles set
180
+ f_card_password = '${cardRes.data.Kmm}'
181
+ where f_userfiles_id = '${row.f_userfiles_id}'`
182
+ await Vue.resetpost('rs/logic/runSQL', {sql: sql})
185
183
  }
186
184
  }
187
185
  },