sale-client 3.5.151 → 3.5.152
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
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
<footer slot="modal-footer" class="modal-footer">
|
|
59
59
|
</footer>
|
|
60
60
|
</modal>
|
|
61
|
-
<high-meter
|
|
61
|
+
<high-meter :show.sync="highmetershow" v-if="highmetershow" @photo-finish="newPhoto" v-on:confirminfo="confirmIdCard"></high-meter>
|
|
62
62
|
|
|
63
63
|
<modal :show.sync="filechangeDetailsShow" v-ref:filechangeDetailsShow backdrop="false" class="filechangeDetailsShow">
|
|
64
64
|
<header slot="modal-header" class="modal-header" style="text-align: center">
|
|
@@ -53,11 +53,24 @@
|
|
|
53
53
|
</template>
|
|
54
54
|
|
|
55
55
|
<script>
|
|
56
|
+
import {HttpResetClass} from "vue-client";
|
|
57
|
+
|
|
56
58
|
let postGen = async function (self, name) {
|
|
57
59
|
let url = 'rs/logic/' + name
|
|
58
|
-
|
|
60
|
+
let res
|
|
59
61
|
// 获取冲正后的记录
|
|
60
|
-
|
|
62
|
+
if (name == 'batchPaymentCancel') {
|
|
63
|
+
// 批量的使用进度条模式
|
|
64
|
+
self.model.uuid = self.$login.guid()
|
|
65
|
+
try {
|
|
66
|
+
await self.$CancelService.cancel(url, self.model, self.data, true)
|
|
67
|
+
} catch (e) {}
|
|
68
|
+
self.$showMessage(`正在批量处理中, 请耐心等待...`, [])
|
|
69
|
+
self.getProgress()
|
|
70
|
+
return
|
|
71
|
+
} else {
|
|
72
|
+
res = await self.$CancelService.cancel(url, self.model, self.data)
|
|
73
|
+
}
|
|
61
74
|
console.log('冲正后的记录。。', res, self.model)
|
|
62
75
|
|
|
63
76
|
// 判断需不需要判断冲正发票(发票管理)
|
|
@@ -180,13 +193,32 @@
|
|
|
180
193
|
},
|
|
181
194
|
// 启用发票管理需要对票号进行验证
|
|
182
195
|
hasValidateBill: false,
|
|
183
|
-
validateOk: false
|
|
196
|
+
validateOk: false,
|
|
197
|
+
// 请求对象(批量导入,查询进度使用)
|
|
198
|
+
HttpReset: new HttpResetClass(),
|
|
199
|
+
timer: null
|
|
184
200
|
}
|
|
185
201
|
},
|
|
186
202
|
ready () {
|
|
187
203
|
readyGen(this)
|
|
188
204
|
},
|
|
189
205
|
methods: {
|
|
206
|
+
getProgress () {
|
|
207
|
+
// 启动定时器定时查询处理结果
|
|
208
|
+
this.timer = setInterval(async () => {
|
|
209
|
+
let res = await this.HttpReset.load('POST', 'rs/logic/getBatchOperaPro', {data: {uuid: this.model.uuid}}, {resolveMsg: null, rejectMsg: null})
|
|
210
|
+
if (res.data.msg || res.data.error) {
|
|
211
|
+
clearInterval(this.timer)
|
|
212
|
+
this.$closeMessage()
|
|
213
|
+
if (res.data.error) {
|
|
214
|
+
this.$showAlert(`${res.data.error}`, 'danger')
|
|
215
|
+
return
|
|
216
|
+
}
|
|
217
|
+
await this.$showMessage(res.data.msg)
|
|
218
|
+
this.$dispatch('cancel-success')
|
|
219
|
+
}
|
|
220
|
+
}, 5000)
|
|
221
|
+
},
|
|
190
222
|
confirm () {
|
|
191
223
|
// 整理数据
|
|
192
224
|
let name = this.sortdata()
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const Vue = require("vue");
|
|
4
4
|
let specialComp = {
|
|
5
5
|
// 高拍仪
|
|
6
|
-
'high-meter
|
|
6
|
+
'high-meter': (resolve) => { require(['./HighMeterIdCard'], resolve) },
|
|
7
7
|
// 物联网表收费
|
|
8
8
|
'iot-meter-center': (resolve) => { require(['./IOTMeterCenter'], resolve) },
|
|
9
9
|
// MISPOS支付
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
<datepicker placeholder="备案日期" style="width: 60%"
|
|
52
52
|
v-model="row.f_filing_date"
|
|
53
53
|
:value.sync="row.f_filing_date"
|
|
54
|
-
:format="'yyyy-MM-dd'">
|
|
54
|
+
:format="'yyyy-MM-dd HH:mm:ss'">
|
|
55
55
|
</datepicker>
|
|
56
56
|
</div>
|
|
57
57
|
</div>
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
<datepicker placeholder="安装日期" style="width: 60%"
|
|
85
85
|
v-model="row.f_input_date"
|
|
86
86
|
:value.sync="row.f_input_date"
|
|
87
|
-
:format="'yyyy-MM-dd'">
|
|
87
|
+
:format="'yyyy-MM-dd HH:mm:ss'">
|
|
88
88
|
</datepicker>
|
|
89
89
|
</div>
|
|
90
90
|
</div>
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
v-model="row.f_make_date"
|
|
96
96
|
:value.sync="row.f_make_date"
|
|
97
97
|
:onchange="expireDate($index)"
|
|
98
|
-
:format="'yyyy-MM-dd'">
|
|
98
|
+
:format="'yyyy-MM-dd HH:mm:ss'">
|
|
99
99
|
</datepicker>
|
|
100
100
|
</div>
|
|
101
101
|
<div class="col-sm-6 form-group" style="padding-right: 5px;">
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
<datepicker placeholder="连接管安装日期" style="width: 60%"
|
|
162
162
|
v-model="row.f_pipeinstall_date"
|
|
163
163
|
:value.sync="row.f_pipeinstall_date"
|
|
164
|
-
:format="'yyyy-MM-dd'">
|
|
164
|
+
:format="'yyyy-MM-dd HH:mm:ss'">
|
|
165
165
|
</datepicker>
|
|
166
166
|
</div>
|
|
167
167
|
</div>
|
|
@@ -171,7 +171,7 @@
|
|
|
171
171
|
<datepicker placeholder="连接管到期日期" style="width: 60%"
|
|
172
172
|
v-model="row.f_pipeexpire_date"
|
|
173
173
|
:value.sync="row.f_pipeexpire_date"
|
|
174
|
-
:format="'yyyy-MM-dd'">
|
|
174
|
+
:format="'yyyy-MM-dd HH:mm:ss'">
|
|
175
175
|
</datepicker>
|
|
176
176
|
</div>
|
|
177
177
|
<div class="col-sm-6 form-group" style="padding-right: 5px;">
|
|
@@ -336,8 +336,11 @@ export default {
|
|
|
336
336
|
var year = (b.getFullYear() - 0) + (this.devicesinfo[index].f_service_life - 0)
|
|
337
337
|
var month = (b.getMonth() - 0) + 1
|
|
338
338
|
var day = b.getDate()
|
|
339
|
+
let hh = b.getHours()
|
|
340
|
+
let mm = b.getMinutes()
|
|
341
|
+
let ss = b.getSeconds()
|
|
339
342
|
// this.$set(this.devicesinfo, index, {f_expire_date: year + '-' + (month < 10 ? '0' + month : month) + '-' + (day < 10 ? '0' + day : day)})
|
|
340
|
-
this.devicesinfo[index].f_expire_date = year + '-' + (month < 10 ? '0' + month : month) + '-' + (day < 10 ? '0' + day : day)
|
|
343
|
+
this.devicesinfo[index].f_expire_date = year + '-' + (month < 10 ? '0' + month : month) + '-' + (day < 10 ? '0' + day : day) + ' '+ (hh < 10 ? '0'+hh : hh)+ ':' + (mm < 10 ? '0'+ mm : mm)+ ':' + (ss < 10 ? '0'+ss : ss)
|
|
341
344
|
this.devicesinfoShow = false
|
|
342
345
|
this.$nextTick(() => {
|
|
343
346
|
this.devicesinfoShow = true
|
|
@@ -282,11 +282,14 @@ let CancelService = {
|
|
|
282
282
|
},
|
|
283
283
|
|
|
284
284
|
// 撤销操作
|
|
285
|
-
async cancel (url, model, data) {
|
|
285
|
+
async cancel (url, model, data, batch) {
|
|
286
286
|
if (data.type === '机表收费' || data.type === '物联网收费') {
|
|
287
287
|
return iotchargeCancel(model, data)
|
|
288
288
|
} else {
|
|
289
289
|
data.f_user_id = `${data.f_user_id}`
|
|
290
|
+
if (batch) {
|
|
291
|
+
return Vue.resetpost(url, {data: {model: model, recordData: data, f: Vue.$login.f}}, {resolveMsg: null, rejectMsg: null}, 1000)
|
|
292
|
+
}
|
|
290
293
|
return Vue.resetpost(url, {data: {model: model, recordData: data, f: Vue.$login.f}}, {resolveMsg: '撤销成功', rejectMsg: '撤销失败'})
|
|
291
294
|
}
|
|
292
295
|
}
|