sale-client 3.6.164 → 3.6.166
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 +1 -1
- package/src/components/FilesManage/MeterinfoTest.vue +32 -22
- package/src/components/FilesManageNew/MeterinfoTest.vue +4 -2
- package/src/components/SellGasCharge/MeterCharge/UnWriteCardCenter.vue +1 -0
- package/src/components/charge/ChargeManage.vue +1 -1
- package/src/components/charge/ChargeOper.vue +13 -0
- package/src/components/charge/ChargeOtherOper.vue +17 -3
- package/src/components/chargeNew/ChargeManageNew.vue +1 -1
- package/src/components/chargeNew/ChargeOper.vue +17 -3
- package/src/components/revenue/machineHandManage/machineHand.vue +5 -0
- package/src/filiale/gaomi/components/charge/ChargeManage.vue +1 -1
- package/src/filiale/gaomi/components/charge/ChargeOper.vue +16 -2
- package/src/filiale/guangxi/CardService.js +1 -1
- package/src/filiale/guangxi/ChargeManage.vue +1 -1
- package/src/filiale/guangxi/ChargeOper.vue +16 -2
- package/src/filiale/kelai/ChargeManage.vue +1 -1
- package/src/filiale/kelai/ChargeOper.vue +16 -2
- package/src/filiale/macheng/ChargeOper.vue +16 -2
- package/src/filiale/meihekou/ChargeManage.vue +1 -1
- package/src/filiale/meihekou/ChargeOper.vue +17 -3
- package/src/filiale/qianneng/revenue/ChargeManage.vue +1 -1
- package/src/filiale/qingjian/FileUserFiles.vue +1035 -0
- package/src/filiale/qingjian/sale.js +2 -0
- package/src/filiale/rizhao/FileUserAddress.vue +741 -0
- package/src/filiale/rizhao/sale.js +2 -0
- package/src/filiale/rongcheng/ChargeManage.vue +1 -1
- package/src/filiale/rongchuang/CardMeterCenter.vue +1 -1
- package/src/filiale/shanggao/charge/ChargeOper.vue +12 -0
- package/src/filiale/shanxian/components/charge/ChargeOper.vue +12 -0
- package/src/filiale/shaoguan/charge/ChargeManage.vue +1 -1
- package/src/filiale/shaoguan/charge/ChargeOper.vue +16 -2
- package/src/filiale/shiquan/ChargeManage.vue +1 -1
- package/src/filiale/tongchuan/ChargeOper.vue +16 -2
- package/src/filiale/wenxi/CardHand.vue +44 -44
- package/src/filiale/wenxi/cardsHand.vue +43 -43
- package/src/filiale/wuan/charge/ChargeManage.vue +2 -2
- package/src/filiale/xinkang/ChangeMeter.vue +5 -4
- package/src/main.js +2 -2
- package/src/plugins/CardService.js +3 -3
- package/.gradle/5.2.1/fileChanges/last-build.bin +0 -0
- package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/5.2.1/gc.properties +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/vcs-1/gc.properties +0 -0
package/package.json
CHANGED
|
@@ -67,63 +67,65 @@
|
|
|
67
67
|
<div class="col-sm-4 form-group" v-if="getConfigShowItem('f_meter_base')"
|
|
68
68
|
v-show="(formconfig && formconfig.f_meter_base && formconfig.f_meter_base.required) || !onlyshowmust">
|
|
69
69
|
<label for="f_meter_base" class="font_normal_body"> 表 读 数</label>
|
|
70
|
-
<input type="
|
|
71
|
-
:disabled="!jurisdiction.includes('档案信息查询修改')" :readonly="!row.f_userfiles_id"
|
|
70
|
+
<input type="text" class="input_search" style="width:60%" v-model="row.f_meter_base" placeholder='表底数'
|
|
71
|
+
:disabled="!jurisdiction.includes('档案信息查询修改')" :readonly="!row.f_userfiles_id"
|
|
72
|
+
v-on:keyup="validateInput($event, 'f_meter_base')" >
|
|
72
73
|
</div>
|
|
73
74
|
<div class="col-sm-4 form-group" title="涉及权限:【档案信息查询修改】" v-if="getConfigShowItem('f_initial_base')"
|
|
74
75
|
v-show="(formconfig && formconfig.f_initial_base && formconfig.f_initial_base.required) || !onlyshowmust">
|
|
75
76
|
<label for="f_meter_base" class="font_normal_body"> 初始底数</label>
|
|
76
|
-
<input type="
|
|
77
|
-
:disabled="!jurisdiction.includes('档案信息查询修改')">
|
|
77
|
+
<input type="text" class="input_search" style="width:60%" v-model="row.f_initial_base" placeholder='表底数'
|
|
78
|
+
:disabled="!jurisdiction.includes('档案信息查询修改')" v-on:keyup="validateInput($event, 'f_initial_base')">
|
|
78
79
|
</div>
|
|
79
80
|
|
|
80
81
|
<div class="col-sm-4 form-group" title="涉及权限:【档案信息查询修改】" v-if="getConfigShowItem('f_total_gas')"
|
|
81
82
|
v-show="(formconfig && formconfig.f_total_gas && formconfig.f_total_gas.required) || !onlyshowmust">
|
|
82
83
|
<label for="f_meter_base" class="font_normal_body"> 累购气量</label>
|
|
83
|
-
<input type="
|
|
84
|
-
:disabled="!jurisdiction.includes('档案信息查询修改')">
|
|
84
|
+
<input type="text" class="input_search" style="width:60%" v-model="row.f_total_gas" placeholder='累购气量'
|
|
85
|
+
:disabled="!jurisdiction.includes('档案信息查询修改')" v-on:keyup="validateInput($event, 'f_total_gas')">
|
|
85
86
|
</div>
|
|
86
87
|
<div class="col-sm-4 form-group" title="涉及权限:【档案信息查询修改】" v-if="getConfigShowItem('f_write_totalgas')"
|
|
87
88
|
v-show="(formconfig && formconfig.f_write_totalgas && formconfig.f_write_totalgas.required) || !onlyshowmust">
|
|
88
89
|
<label for="f_meter_base" class="font_normal_body">表写卡累购气量</label>
|
|
89
|
-
<input type="
|
|
90
|
-
:disabled="!jurisdiction.includes('档案信息查询修改')">
|
|
90
|
+
<input type="text" class="input_search" style="width:60%" v-model="row.f_write_totalgas" placeholder='表写卡累购气量'
|
|
91
|
+
:disabled="!jurisdiction.includes('档案信息查询修改')" v-on:keyup="validateInput($event, 'f_write_totalgas')" >
|
|
91
92
|
</div>
|
|
92
93
|
<div class="col-sm-4 form-group" title="涉及权限:【档案信息查询修改】" v-if="getConfigShowItem('f_total_fee')"
|
|
93
94
|
v-show="(formconfig && formconfig.f_total_fee && formconfig.f_total_fee.required) || !onlyshowmust">
|
|
94
95
|
<label for="f_meter_base" class="font_normal_body"> 累购金额</label>
|
|
95
|
-
<input type="
|
|
96
|
-
:disabled="!jurisdiction.includes('档案信息查询修改')">
|
|
96
|
+
<input type="text" class="input_search" style="width:60%" v-model="row.f_total_fee" placeholder='累购金额'
|
|
97
|
+
:disabled="!jurisdiction.includes('档案信息查询修改')" v-on:keyup="validateInput($event, 'f_total_fee')">
|
|
97
98
|
</div>
|
|
98
99
|
<div class="col-sm-4 form-group" title="涉及权限:【档案信息查询修改】" v-if="getConfigShowItem('f_write_totalfee')"
|
|
99
100
|
v-show="(formconfig && formconfig.f_write_totalfee && formconfig.f_write_totalfee.required) || !onlyshowmust">
|
|
100
101
|
<label for="f_meter_base" class="font_normal_body">表写卡累购金额</label>
|
|
101
|
-
<input type="
|
|
102
|
-
:disabled="!jurisdiction.includes('档案信息查询修改')">
|
|
102
|
+
<input type="text" class="input_search" style="width:60%" v-model="row.f_write_totalfee" placeholder='表写卡累购金额'
|
|
103
|
+
:disabled="!jurisdiction.includes('档案信息查询修改')" v-on:keyup="validateInput($event, 'f_write_totalfee')">
|
|
103
104
|
</div>
|
|
104
105
|
<div class="col-sm-4 form-group" v-show="row.f_meter_classify != '机表' && ((formconfig && formconfig.f_times && formconfig.f_times.required) || !onlyshowmust)" title="涉及权限:【档案信息查询修改】"
|
|
105
106
|
v-if="getConfigShowItem('f_times')">
|
|
106
107
|
<label for="f_times" class="font_normal_body"> 写卡次数</label>
|
|
107
|
-
<input type="
|
|
108
|
-
:disabled="!jurisdiction.includes('档案信息查询修改')">
|
|
108
|
+
<input type="text" class="input_search" style="width:60%" v-model="row.f_times" placeholder='写卡次数'
|
|
109
|
+
:disabled="!jurisdiction.includes('档案信息查询修改')" v-on:keyup="validateInput($event, 'f_times')">
|
|
109
110
|
</div>
|
|
110
111
|
<div class="col-sm-4 form-group" v-show="row.f_meter_classify == '物联网表' && ((formconfig && formconfig.f_iot_times && formconfig.f_iot_times.required) || !onlyshowmust)" title="涉及权限:【档案信息查询修改】"
|
|
111
112
|
v-if="getConfigShowItem('f_iot_times')">
|
|
112
113
|
<label for="f_times" class="font_normal_body">物联网次数</label>
|
|
113
|
-
<input type="
|
|
114
|
-
:disabled="!jurisdiction.includes('档案信息查询修改')">
|
|
114
|
+
<input type="text" class="input_search" style="width:60%" v-model="row.f_iot_times" placeholder='物联网次数'
|
|
115
|
+
:disabled="!jurisdiction.includes('档案信息查询修改')" v-on:keyup="validateInput($event, 'f_iot_times')">
|
|
115
116
|
</div>
|
|
116
117
|
<div class="col-sm-4 form-group" v-show="false">
|
|
117
118
|
<label for="f_remanent_gas" class="font_normal_body">剩余气量</label>
|
|
118
|
-
<input type="
|
|
119
|
+
<input type="text" class="input_search" style="width:60%" v-model="row.f_remanent_gas"
|
|
119
120
|
placeholder='剩余气量'
|
|
120
|
-
:disabled="f_userinfo_id"></input>
|
|
121
|
+
:disabled="f_userinfo_id" v-on:keyup="validateInput($event, 'f_remanent_gas')"></input>
|
|
121
122
|
<!--<button type="button" name="button" class="btn btn-link" @click="modefiy('f_remanent_gas')" v-if="f_userinfo_id">修改</button>-->
|
|
122
123
|
</div>
|
|
123
124
|
<div class="col-sm-4 form-group" v-if="getConfigShowItem('f_capacity')"
|
|
124
125
|
v-show="(formconfig && formconfig.f_capacity && formconfig.f_capacity.required) || !onlyshowmust">
|
|
125
126
|
<label for="f_times" class="font_normal_body"> 最大量程</label>
|
|
126
|
-
<input type="
|
|
127
|
+
<input type="text" class="input_search" style="width:60%" v-model="row.f_capacity" placeholder='最大量程'
|
|
128
|
+
v-on:keyup="validateInput($event, 'f_capacity')">
|
|
127
129
|
</div>
|
|
128
130
|
<div class="col-sm-4 form-group" v-show="row.f_meter_classify == '物联网表' && (formconfig && formconfig.f_valve_state.required || !onlyshowmust)" v-if="getConfigShowItem('f_valve_state')">
|
|
129
131
|
<label for="gasmodel" class="font_normal_body"> 阀门状态</label>
|
|
@@ -613,7 +615,6 @@
|
|
|
613
615
|
import co from 'co'
|
|
614
616
|
import {HttpResetClass} from 'vue-client'
|
|
615
617
|
import Vue from 'vue'
|
|
616
|
-
|
|
617
618
|
let meterBookGen = function * (self) {
|
|
618
619
|
if (self.$login.r.find(value => value == '抄表册建档')) {
|
|
619
620
|
self.opteratormetrbook = true
|
|
@@ -744,8 +745,12 @@
|
|
|
744
745
|
if (this.row.pricetype === '混合气价') {
|
|
745
746
|
this.ratioshow = true
|
|
746
747
|
}
|
|
747
|
-
if (this.row
|
|
748
|
-
this.row.f_force_measure
|
|
748
|
+
if (this.row) {
|
|
749
|
+
if (this.row.f_force_measure !== undefined && Object.prototype.toString.call(this.row.f_force_measure) === '[object Array]') {
|
|
750
|
+
if (this.row.f_force_measure[0]) {
|
|
751
|
+
this.row.f_force_measure = this.row.f_force_measure[0].split(',')
|
|
752
|
+
}
|
|
753
|
+
}
|
|
749
754
|
}
|
|
750
755
|
if (this.row.f_meternumber) {
|
|
751
756
|
this.meterNumberDisabled = true
|
|
@@ -754,6 +759,11 @@
|
|
|
754
759
|
co(meterBookGen(this))
|
|
755
760
|
},
|
|
756
761
|
methods: {
|
|
762
|
+
validateInput (event, key) {
|
|
763
|
+
const value = event.target.value
|
|
764
|
+
const sanitizedValue = value.replace(/[^0-9.]/g, '')
|
|
765
|
+
this.row[key] = sanitizedValue
|
|
766
|
+
},
|
|
757
767
|
getConfigValidate (name, defaultVal) {
|
|
758
768
|
this.$resetValidation()
|
|
759
769
|
if (this.formconfig && this.formconfig[name]) {
|
|
@@ -487,8 +487,10 @@ let meterBookGen = function * (self) {
|
|
|
487
487
|
console.log('this.row', this.row)
|
|
488
488
|
console.log('this.row.f_force_measure', this.row.f_force_measure)
|
|
489
489
|
if (this.row) {
|
|
490
|
-
if (this.row.f_force_measure[
|
|
491
|
-
|
|
490
|
+
if (this.row.f_force_measure !== undefined && Object.prototype.toString.call(this.row.f_force_measure) === '[object Array]') {
|
|
491
|
+
if (this.row.f_force_measure[0]) {
|
|
492
|
+
this.row.f_force_measure = this.row.f_force_measure[0].split(',')
|
|
493
|
+
}
|
|
492
494
|
}
|
|
493
495
|
}
|
|
494
496
|
})
|
|
@@ -134,7 +134,7 @@ export default {
|
|
|
134
134
|
// 对此数据进行验证
|
|
135
135
|
if (await this.validateRow(obj)) {
|
|
136
136
|
// 获取未写卡或者写卡失败记录
|
|
137
|
-
let getUnWriteSell = await this.$SqlService.singleTable('t_sellinggas', `f_state = '有效' and f_write_card
|
|
137
|
+
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}'`)
|
|
138
138
|
console.log('获取未写卡记录', getUnWriteSell)
|
|
139
139
|
if (getUnWriteSell.data.length > 1) {
|
|
140
140
|
this.$showAlert('此卡已缴费多次未写卡。请核实后处理!!', 'warning', 5000)
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
<script>
|
|
19
19
|
import {HttpResetClass} from 'vue-client'
|
|
20
|
+
import Vue from "vue";
|
|
20
21
|
|
|
21
22
|
let getNewmetermsg = async function (self, row) {
|
|
22
23
|
self.cardInfo = undefined
|
|
@@ -124,6 +125,18 @@ let getBtnsGen = async function (self) {
|
|
|
124
125
|
'routeName': 'card-meter-charge-cancel'
|
|
125
126
|
}
|
|
126
127
|
})
|
|
128
|
+
if (self.data.unWriteSell.length > 0) {
|
|
129
|
+
// 过滤掉线下写卡
|
|
130
|
+
self.temp = self.temp.filter((item) => {
|
|
131
|
+
return item.name !== '线下写卡'
|
|
132
|
+
})
|
|
133
|
+
self.data.unWriteSell.forEach(
|
|
134
|
+
async (item) => {
|
|
135
|
+
let sql = `update t_sellinggas set f_write_card = null where id = '${item.id}' and f_write_card ='写卡失败'`
|
|
136
|
+
await self.$resetpost('rs/logic/runSQL', { sql: sql })
|
|
137
|
+
}
|
|
138
|
+
)
|
|
139
|
+
}
|
|
127
140
|
}
|
|
128
141
|
/* // 如果是预备户,删除发卡售气按钮
|
|
129
142
|
if (self.data.f_user_state == '预备') {
|
|
@@ -73,12 +73,26 @@
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
// 如果卡上有气,添加购气撤销按钮
|
|
76
|
-
if (self.cardInfo.Gas > 0 || self.cardInfo.Money > 0) {
|
|
77
|
-
self.temp.push({
|
|
76
|
+
if (self.cardInfo && (self.cardInfo.Gas > 0 || self.cardInfo.Money > 0 || (self.cardInfo.TotalMoney > 0 && self.data.f_support_purchase === '是'))) {
|
|
77
|
+
self.temp.push({
|
|
78
|
+
name: '购气撤销',
|
|
78
79
|
value: {
|
|
79
80
|
'weight': 0,
|
|
80
81
|
'routeName': 'card-meter-charge-cancel'
|
|
81
|
-
|
|
82
|
+
}
|
|
83
|
+
})
|
|
84
|
+
if (self.data.unWriteSell.length > 0) {
|
|
85
|
+
// 过滤掉线下写卡
|
|
86
|
+
self.temp = self.temp.filter((item) => {
|
|
87
|
+
return item.name !== '线下写卡'
|
|
88
|
+
})
|
|
89
|
+
self.data.unWriteSell.forEach(
|
|
90
|
+
async (item) => {
|
|
91
|
+
let sql = `update t_sellinggas set f_write_card = null where id = '${item.id}' and f_write_card ='写卡失败'`
|
|
92
|
+
await self.$resetpost('rs/logic/runSQL', { sql: sql })
|
|
93
|
+
}
|
|
94
|
+
)
|
|
95
|
+
}
|
|
82
96
|
}
|
|
83
97
|
// 根据权重将业务按钮排序
|
|
84
98
|
self.operBtns = self.temp.sort((a, b) => {
|
|
@@ -70,7 +70,7 @@ export default {
|
|
|
70
70
|
// 对此数据进行验证
|
|
71
71
|
if (await this.validateRow(obj)) {
|
|
72
72
|
// 获取未写卡或者写卡失败记录
|
|
73
|
-
let getUnWriteSell = await this.$SqlService.singleTable('t_sellinggas', `f_state = '有效' and f_write_card
|
|
73
|
+
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}'`)
|
|
74
74
|
console.log('获取未写卡记录', getUnWriteSell)
|
|
75
75
|
if (getUnWriteSell.data.length > 1) {
|
|
76
76
|
this.$showAlert('此卡已缴费多次未写卡。请核实后处理!!', 'warning', 5000)
|
|
@@ -99,12 +99,26 @@
|
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
// 如果卡上有气,添加购气撤销按钮
|
|
102
|
-
if (self.cardInfo
|
|
103
|
-
self.temp.push({
|
|
102
|
+
if (self.cardInfo.Gas > 0 || self.cardInfo.Money > 0) {
|
|
103
|
+
self.temp.push({
|
|
104
|
+
name: '购气撤销',
|
|
104
105
|
value: {
|
|
105
106
|
'weight': 0,
|
|
106
107
|
'routeName': 'card-meter-charge-cancel'
|
|
107
|
-
|
|
108
|
+
}
|
|
109
|
+
})
|
|
110
|
+
if (self.data.unWriteSell.length > 0) {
|
|
111
|
+
// 过滤掉线下写卡
|
|
112
|
+
self.temp = self.temp.filter((item) => {
|
|
113
|
+
return item.name !== '线下写卡'
|
|
114
|
+
})
|
|
115
|
+
self.data.unWriteSell.forEach(
|
|
116
|
+
async (item) => {
|
|
117
|
+
let sql = `update t_sellinggas set f_write_card = null where id = '${item.id}' and f_write_card ='写卡失败'`
|
|
118
|
+
await self.$resetpost('rs/logic/runSQL', { sql: sql })
|
|
119
|
+
}
|
|
120
|
+
)
|
|
121
|
+
}
|
|
108
122
|
}
|
|
109
123
|
// 如果是预备户,删除发卡售气按钮
|
|
110
124
|
if (self.data.f_user_state == '预备') {
|
|
@@ -339,6 +339,9 @@
|
|
|
339
339
|
</nobr>
|
|
340
340
|
|
|
341
341
|
</th>
|
|
342
|
+
<th>
|
|
343
|
+
<nobr>册内排序</nobr>
|
|
344
|
+
</th>
|
|
342
345
|
<th>
|
|
343
346
|
<nobr>调压箱名称</nobr>
|
|
344
347
|
</th>
|
|
@@ -446,6 +449,7 @@
|
|
|
446
449
|
</div>
|
|
447
450
|
</td>
|
|
448
451
|
<td>{{row.f_book_name}}</td>
|
|
452
|
+
<td>{{row.f_meter_book_sort}}</td>
|
|
449
453
|
<td>{{row.f_adjustable_name}}</td>
|
|
450
454
|
<td>{{row.f_inputtor}}</td>
|
|
451
455
|
<td>{{row.f_input_person}}</td>
|
|
@@ -840,6 +844,7 @@
|
|
|
840
844
|
'f_oughtamount': '应交气量',
|
|
841
845
|
'f_whether_pay': '是否缴费',
|
|
842
846
|
'f_book_name': '抄表册',
|
|
847
|
+
'f_meter_book_sort': '册内排序',
|
|
843
848
|
'f_input_person': '录入人员',
|
|
844
849
|
'f_operator': '下发人员',
|
|
845
850
|
'f_meter_classify': '气表分类',
|
|
@@ -77,7 +77,7 @@ export default {
|
|
|
77
77
|
this.$showMessage(msg, ['confirm', 'cancel']).then((res) => {
|
|
78
78
|
if (res === 'confirm') {
|
|
79
79
|
// 获取未写卡或者写卡失败记录
|
|
80
|
-
this.$SqlService.singleTable('t_sellinggas', `f_state = '有效' and f_write_card
|
|
80
|
+
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}'`).then((getUnWriteSell) => {
|
|
81
81
|
console.log('获取未写卡记录', getUnWriteSell)
|
|
82
82
|
if (getUnWriteSell.data.length > 1) {
|
|
83
83
|
this.$showAlert('此卡已缴费多次未写卡。请核实后处理!!', 'warning', 5000)
|
|
@@ -93,11 +93,25 @@
|
|
|
93
93
|
}
|
|
94
94
|
// 如果卡上有气,添加购气撤销按钮
|
|
95
95
|
if (self.cardInfo && (self.cardInfo.Gas > 0 || self.cardInfo.Money > 0 || (self.cardInfo.TotalMoney > 0 && self.data.f_support_purchase === '是'))) {
|
|
96
|
-
self.temp.push({
|
|
96
|
+
self.temp.push({
|
|
97
|
+
name: '购气撤销',
|
|
97
98
|
value: {
|
|
98
99
|
'weight': 0,
|
|
99
100
|
'routeName': 'card-meter-charge-cancel'
|
|
100
|
-
|
|
101
|
+
}
|
|
102
|
+
})
|
|
103
|
+
if (self.data.unWriteSell.length > 0) {
|
|
104
|
+
// 过滤掉线下写卡
|
|
105
|
+
self.temp = self.temp.filter((item) => {
|
|
106
|
+
return item.name !== '线下写卡'
|
|
107
|
+
})
|
|
108
|
+
self.data.unWriteSell.forEach(
|
|
109
|
+
async (item) => {
|
|
110
|
+
let sql = `update t_sellinggas set f_write_card = null where id = '${item.id}' and f_write_card ='写卡失败'`
|
|
111
|
+
await self.$resetpost('rs/logic/runSQL', { sql: sql })
|
|
112
|
+
}
|
|
113
|
+
)
|
|
114
|
+
}
|
|
101
115
|
}
|
|
102
116
|
/* // 如果是预备户,删除发卡售气按钮
|
|
103
117
|
if (self.data.f_user_state == '预备') {
|
|
@@ -558,7 +558,7 @@ let offlineWriteGen = async function (row) {
|
|
|
558
558
|
f_write_operator: Vue.$login.f.name,
|
|
559
559
|
f_write_date: Vue.$login.toStandardTimeString()
|
|
560
560
|
}
|
|
561
|
-
await Vue.resetpost('rs/logic/offlineWrite', update, {resolveMsg:
|
|
561
|
+
await Vue.resetpost('rs/logic/offlineWrite', update, {resolveMsg: null, rejectMsg: '写卡成功,更新数据失败'})
|
|
562
562
|
|
|
563
563
|
// 写卡失败,通知第三方
|
|
564
564
|
|
|
@@ -83,7 +83,7 @@ export default {
|
|
|
83
83
|
// 对此数据进行验证
|
|
84
84
|
if (await this.validateRow(obj)) {
|
|
85
85
|
// 获取未写卡或者写卡失败记录
|
|
86
|
-
let getUnWriteSell = await this.$SqlService.singleTable('t_sellinggas', `f_state = '有效' and f_write_card
|
|
86
|
+
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}'`)
|
|
87
87
|
console.log('获取未写卡记录', getUnWriteSell)
|
|
88
88
|
if (getUnWriteSell.data.length > 1) {
|
|
89
89
|
this.$showAlert('此卡已缴费多次未写卡。请核实后处理!!', 'warning', 5000)
|
|
@@ -108,11 +108,25 @@
|
|
|
108
108
|
}
|
|
109
109
|
// 如果卡上有气,添加购气撤销按钮
|
|
110
110
|
if (self.cardInfo && (self.cardInfo.Gas > 0 || self.cardInfo.Money > 0 || (self.cardInfo.TotalMoney > 0 && self.data.f_support_purchase === '是'))) {
|
|
111
|
-
self.temp.push({
|
|
111
|
+
self.temp.push({
|
|
112
|
+
name: '购气撤销',
|
|
112
113
|
value: {
|
|
113
114
|
'weight': 0,
|
|
114
115
|
'routeName': 'card-meter-charge-cancel'
|
|
115
|
-
|
|
116
|
+
}
|
|
117
|
+
})
|
|
118
|
+
if (self.data.unWriteSell.length > 0) {
|
|
119
|
+
// 过滤掉线下写卡
|
|
120
|
+
self.temp = self.temp.filter((item) => {
|
|
121
|
+
return item.name !== '线下写卡'
|
|
122
|
+
})
|
|
123
|
+
self.data.unWriteSell.forEach(
|
|
124
|
+
async (item) => {
|
|
125
|
+
let sql = `update t_sellinggas set f_write_card = null where id = '${item.id}' and f_write_card ='写卡失败'`
|
|
126
|
+
await self.$resetpost('rs/logic/runSQL', { sql: sql })
|
|
127
|
+
}
|
|
128
|
+
)
|
|
129
|
+
}
|
|
116
130
|
}
|
|
117
131
|
/* // 如果是预备户,删除发卡售气按钮
|
|
118
132
|
if (self.data.f_user_state == '预备') {
|
|
@@ -83,7 +83,7 @@ export default {
|
|
|
83
83
|
// 对此数据进行验证
|
|
84
84
|
if (await this.validateRow(obj)) {
|
|
85
85
|
// 获取未写卡或者写卡失败记录
|
|
86
|
-
let getUnWriteSell = await this.$SqlService.singleTable('t_sellinggas', `f_state = '有效' and f_write_card
|
|
86
|
+
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}'`)
|
|
87
87
|
console.log('获取未写卡记录', getUnWriteSell)
|
|
88
88
|
if (getUnWriteSell.data.length > 1) {
|
|
89
89
|
this.$showAlert('此卡已缴费多次未写卡。请核实后处理!!', 'warning', 5000)
|
|
@@ -111,11 +111,25 @@
|
|
|
111
111
|
}
|
|
112
112
|
// 如果卡上有气,添加购气撤销按钮
|
|
113
113
|
if (self.cardInfo && (self.cardInfo.Gas > 0 || self.cardInfo.Money > 0 || (self.cardInfo.TotalMoney > 0 && self.data.f_support_purchase === '是'))) {
|
|
114
|
-
self.temp.push({
|
|
114
|
+
self.temp.push({
|
|
115
|
+
name: '购气撤销',
|
|
115
116
|
value: {
|
|
116
117
|
'weight': 0,
|
|
117
118
|
'routeName': 'card-meter-charge-cancel'
|
|
118
|
-
|
|
119
|
+
}
|
|
120
|
+
})
|
|
121
|
+
if (self.data.unWriteSell.length > 0) {
|
|
122
|
+
// 过滤掉线下写卡
|
|
123
|
+
self.temp = self.temp.filter((item) => {
|
|
124
|
+
return item.name !== '线下写卡'
|
|
125
|
+
})
|
|
126
|
+
self.data.unWriteSell.forEach(
|
|
127
|
+
async (item) => {
|
|
128
|
+
let sql = `update t_sellinggas set f_write_card = null where id = '${item.id}' and f_write_card ='写卡失败'`
|
|
129
|
+
await self.$resetpost('rs/logic/runSQL', { sql: sql })
|
|
130
|
+
}
|
|
131
|
+
)
|
|
132
|
+
}
|
|
119
133
|
}
|
|
120
134
|
/* // 如果是预备户,删除发卡售气按钮
|
|
121
135
|
if (self.data.f_user_state == '预备') {
|
|
@@ -93,11 +93,25 @@
|
|
|
93
93
|
}
|
|
94
94
|
// 如果卡上有气,添加购气撤销按钮
|
|
95
95
|
if (self.cardInfo && (self.cardInfo.Gas > 0 || self.cardInfo.Money > 0 || (self.cardInfo.TotalMoney > 0 && self.data.f_support_purchase === '是'))) {
|
|
96
|
-
self.temp.push({
|
|
96
|
+
self.temp.push({
|
|
97
|
+
name: '购气撤销',
|
|
97
98
|
value: {
|
|
98
99
|
'weight': 0,
|
|
99
100
|
'routeName': 'card-meter-charge-cancel'
|
|
100
|
-
|
|
101
|
+
}
|
|
102
|
+
})
|
|
103
|
+
if (self.data.unWriteSell.length > 0) {
|
|
104
|
+
// 过滤掉线下写卡
|
|
105
|
+
self.temp = self.temp.filter((item) => {
|
|
106
|
+
return item.name !== '线下写卡'
|
|
107
|
+
})
|
|
108
|
+
self.data.unWriteSell.forEach(
|
|
109
|
+
async (item) => {
|
|
110
|
+
let sql = `update t_sellinggas set f_write_card = null where id = '${item.id}' and f_write_card ='写卡失败'`
|
|
111
|
+
await self.$resetpost('rs/logic/runSQL', { sql: sql })
|
|
112
|
+
}
|
|
113
|
+
)
|
|
114
|
+
}
|
|
101
115
|
}
|
|
102
116
|
/* // 如果是预备户,删除发卡售气按钮
|
|
103
117
|
if (self.data.f_user_state == '预备') {
|
|
@@ -87,7 +87,7 @@ export default {
|
|
|
87
87
|
})
|
|
88
88
|
} else {
|
|
89
89
|
// 获取未写卡或者写卡失败记录
|
|
90
|
-
let getUnWriteSell = await this.$SqlService.singleTable('t_sellinggas', `f_state = '有效' and f_write_card
|
|
90
|
+
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}'`)
|
|
91
91
|
console.log('获取未写卡记录', getUnWriteSell)
|
|
92
92
|
if (getUnWriteSell.data.length > 1) {
|
|
93
93
|
this.$showAlert('此卡已缴费多次未写卡。请核实后处理!!', 'warning', 5000)
|
|
@@ -92,12 +92,26 @@
|
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
// 如果卡上有气,添加购气撤销按钮
|
|
95
|
-
if (self.cardInfo.Gas > 0 || self.cardInfo.Money > 0) {
|
|
96
|
-
self.temp.push({
|
|
95
|
+
if (self.cardInfo && (self.cardInfo.Gas > 0 || self.cardInfo.Money > 0 || (self.cardInfo.TotalMoney > 0 && self.data.f_support_purchase === '是'))) {
|
|
96
|
+
self.temp.push({
|
|
97
|
+
name: '购气撤销',
|
|
97
98
|
value: {
|
|
98
99
|
'weight': 0,
|
|
99
100
|
'routeName': 'card-meter-charge-cancel'
|
|
100
|
-
|
|
101
|
+
}
|
|
102
|
+
})
|
|
103
|
+
if (self.data.unWriteSell.length > 0) {
|
|
104
|
+
// 过滤掉线下写卡
|
|
105
|
+
self.temp = self.temp.filter((item) => {
|
|
106
|
+
return item.name !== '线下写卡'
|
|
107
|
+
})
|
|
108
|
+
self.data.unWriteSell.forEach(
|
|
109
|
+
async (item) => {
|
|
110
|
+
let sql = `update t_sellinggas set f_write_card = null where id = '${item.id}' and f_write_card ='写卡失败'`
|
|
111
|
+
await self.$resetpost('rs/logic/runSQL', { sql: sql })
|
|
112
|
+
}
|
|
113
|
+
)
|
|
114
|
+
}
|
|
101
115
|
}
|
|
102
116
|
// 如果是预备户,删除发卡售气按钮
|
|
103
117
|
if (self.data.f_user_state == '预备') {
|
|
@@ -142,7 +142,7 @@ export default {
|
|
|
142
142
|
// 对此数据进行验证
|
|
143
143
|
if (await this.validateRow(obj)) {
|
|
144
144
|
// 获取未写卡或者写卡失败记录
|
|
145
|
-
let getUnWriteSell = await this.$SqlService.singleTable('t_sellinggas', `f_state = '有效' and f_write_card
|
|
145
|
+
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}'`)
|
|
146
146
|
if (getUnWriteSell.data.length > 1) {
|
|
147
147
|
this.$showAlert('此卡已缴费多次未写卡。请核实后处理!!', 'warning', 5000)
|
|
148
148
|
} else {
|