sale-client 3.6.327 → 3.6.328
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/WechatManage/OutLets.vue +3 -1
- package/src/components/revenue/base/UserList.vue +1 -1
- package/src/components/revenue/comprehen/Bill/Eticket/EticketRecordList.vue +4 -0
- package/src/components/revenue/comprehen/Bill/EticketRecordList.vue +2 -0
- package/src/filiale/bayan/ChargeOper.vue +1 -1
- package/src/filiale/bayan/sale.js +2 -1
- package/src/filiale/qianneng/revenue/sms/AccountBillList.vue +497 -0
- package/src/filiale/qianneng/revenue/sms/AccountMessageList.vue +508 -0
- package/src/filiale/qianneng/revenue/sms/MessageReport.vue +139 -0
- package/src/filiale/qianneng/sale.js +6 -1
- package/src/filiale/rongchuang/bill/CustQueryEticket.vue +4 -0
- package/src/filiale/rongchuang/bill/EticketRecordList.vue +2 -1
- package/src/filiale/shaoguan/Message/MessageList.vue +0 -2
- package/src/filiale/shimen/UserDeviceInfoTest.vue +103 -4
- package/src/filiale/tongchuan/bill/EticketOpenJBPage.vue +7 -7
- package/src/main.js +1 -1
- package/src/plugins/LogicService.js +3 -0
package/package.json
CHANGED
|
@@ -250,7 +250,9 @@
|
|
|
250
250
|
f_outlets_adcode: self.model.f_outlets_adcode,
|
|
251
251
|
f_outlets_lng: self.model.f_outlets_lng,
|
|
252
252
|
f_outlets_lat: self.model.f_outlets_lat,
|
|
253
|
-
f_outlets_operator: self.$login.f.name
|
|
253
|
+
f_outlets_operator: self.$login.f.name,
|
|
254
|
+
f_orgstr: self.$login.f.orgid,
|
|
255
|
+
f_state: '有效'
|
|
254
256
|
}
|
|
255
257
|
console.log('新增营业网点', param)
|
|
256
258
|
self.$resetpost('rs/logic/addoutlets', param).then(() => {
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
<a href="#" @click.stop="$parent.$parent.$parent.operate('补费扣费', 'deduction-manage', row)">补费扣费</a>
|
|
167
167
|
</li>
|
|
168
168
|
<li v-if="$parent.$parent.$parent.jurisdiction.includes('限购配置')">
|
|
169
|
-
<a href="#" @click.stop="$parent.$parent.$parent.operate('限购配置', 'limit-gas-
|
|
169
|
+
<a href="#" @click.stop="$parent.$parent.$parent.operate('限购配置', 'limit-gas-manages', row)">限购配置</a>
|
|
170
170
|
</li>
|
|
171
171
|
</ul>
|
|
172
172
|
</dropdown>
|
|
@@ -105,6 +105,9 @@
|
|
|
105
105
|
<th>
|
|
106
106
|
<nobr>开票时间</nobr>
|
|
107
107
|
</th>
|
|
108
|
+
<th>
|
|
109
|
+
<nobr>开票人</nobr>
|
|
110
|
+
</th>
|
|
108
111
|
<th>
|
|
109
112
|
<nobr>查看发票</nobr>
|
|
110
113
|
</th>
|
|
@@ -127,6 +130,7 @@
|
|
|
127
130
|
<th style="text-align:center">{{ row.f_bill_state }}</th>
|
|
128
131
|
<th style="text-align:center">{{ row.f_charge_type }}</th>
|
|
129
132
|
<th style="text-align:center">{{ row.f_operate_date }}</th>
|
|
133
|
+
<th style="text-align:center">{{ row.f_operator }}</th>
|
|
130
134
|
<th style="text-align:center">
|
|
131
135
|
<button class="btn btn-link" v-if="row.f_bill_url"
|
|
132
136
|
@click="$parent.$parent.$parent.watch_ch(row.f_bill_url)">
|
|
@@ -117,6 +117,7 @@
|
|
|
117
117
|
<th>票据状态</th>
|
|
118
118
|
<th>发票号码</th>
|
|
119
119
|
<th>开票时间</th>
|
|
120
|
+
<th>开票人</th>
|
|
120
121
|
<th>查看发票</th>
|
|
121
122
|
<th>操作</th>
|
|
122
123
|
</tr>
|
|
@@ -136,6 +137,7 @@
|
|
|
136
137
|
<td style="text-align:center">{{row.f_bill_state}}</td>
|
|
137
138
|
<td style="text-align:center">{{row.f_bill_number}}</td>
|
|
138
139
|
<td style="text-align:center">{{row.f_kprq}}</td>
|
|
140
|
+
<td style="text-align:center">{{row.f_operator}}</td>
|
|
139
141
|
<td style="text-align:center">
|
|
140
142
|
<button class="btn btn-link" v-if="row.f_sign_url" @click="$parent.$parent.$parent.watchUrl(row)" >查看发票</button>
|
|
141
143
|
</td>
|
|
@@ -26,5 +26,6 @@ export default function () {
|
|
|
26
26
|
Vue.component('machine-meter-center', (resolve) => { require(['./MachineMeterCenter'], resolve) })
|
|
27
27
|
// 其他收费xin
|
|
28
28
|
Vue.component('other-charge-new', (resolve) => { require(['./OtherChargeNew'], resolve) })
|
|
29
|
-
|
|
29
|
+
// 收费页面限制购气
|
|
30
|
+
Vue.component('limit-gas-manages', (resolve) => { require(['./LimitGasManage'], resolve) })
|
|
30
31
|
}
|
|
@@ -0,0 +1,497 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
3
|
+
<p class="bg-info text-center" style="padding: 8px;font-size: 20px">用户信息</p>
|
|
4
|
+
<criteria partial='criteria' @condition-changed='$parent.search' v-ref:cri>
|
|
5
|
+
<div class="form-horizontal select-overspread container-fluid auto" novalidate partial>
|
|
6
|
+
<div class="row">
|
|
7
|
+
<div class="col-sm-3 form-group">
|
|
8
|
+
<label class="font_normal_body">组织机构</label>
|
|
9
|
+
<res-select restype='organization'
|
|
10
|
+
@res-select="$parent.$parent.getorg"
|
|
11
|
+
:initresid='$parent.$parent.curorgid'>
|
|
12
|
+
</res-select>
|
|
13
|
+
</div>
|
|
14
|
+
<div class="col-sm-3 form-group">
|
|
15
|
+
<label class="font_normal_body">账单月份</label>
|
|
16
|
+
<datepicker placeholder='账单月份' style="width:60%"
|
|
17
|
+
v-model="model.hand_date" :value.sync="model.hand_date"
|
|
18
|
+
:format="'yyyy-MM'" :show-reset-button="true"
|
|
19
|
+
condition="hand_date = '{}'">
|
|
20
|
+
</datepicker>
|
|
21
|
+
</div>
|
|
22
|
+
<div class="form-group col-sm-3">
|
|
23
|
+
<label class="font_normal_body">用户编号</label>
|
|
24
|
+
<input type="text" class="form-control" v-model="model.f_userinfo_code" placeholder='用户编号' v-filter v-figure_filter
|
|
25
|
+
condition="f_userinfo_code = '{}'" v-next-el='username' style="width: 60%"
|
|
26
|
+
:size="model.f_userinfo_code ? model.f_userinfo_id.length : 4">
|
|
27
|
+
</div>
|
|
28
|
+
<div class="form-group col-sm-3">
|
|
29
|
+
<label class="font_normal_body">用户姓名</label>
|
|
30
|
+
<input type="text" class="form-control" v-model="model.f_user_name" placeholder='用户姓名'
|
|
31
|
+
condition="f_user_name = '{}'" v-next-el='area' style="width: 60%"
|
|
32
|
+
:size="model.f_user_name ? model.f_user_name.length * 2 : 4">
|
|
33
|
+
</div>
|
|
34
|
+
<!-- <div class="form-group col-sm-3">-->
|
|
35
|
+
<!-- <label class="font_normal_body">用户类型</label>-->
|
|
36
|
+
<!-- <v-select :value.sync="model.f_user_type" v-model="model.f_user_type"-->
|
|
37
|
+
<!-- :options='$parent.$parent.getusertype' placeholder='用户类型'-->
|
|
38
|
+
<!-- close-on-select-->
|
|
39
|
+
<!-- condition="f_user_type = '{}'"-->
|
|
40
|
+
<!-- style="width: 60%">-->
|
|
41
|
+
|
|
42
|
+
<!-- </v-select>-->
|
|
43
|
+
<!-- </div>-->
|
|
44
|
+
<div class="form-group col-sm-3">
|
|
45
|
+
<label class="font_normal_body">用户地址</label>
|
|
46
|
+
<input type="text" class="form-control" v-model="model.f_address" placeholder='用户地址' v-filter
|
|
47
|
+
condition="f_address like '%{}%'" v-next-el='cx' v-el:resentialarea style="width: 60%"
|
|
48
|
+
:size="model.f_address ? model.f_address.length * 2 : 4">
|
|
49
|
+
</div>
|
|
50
|
+
<div class="span" style="float:right;">
|
|
51
|
+
<button class="button_search button_spacing width-60" @click="search()" v-el:cx>查询</button>
|
|
52
|
+
<button class="button_clear button_spacing width-60" @click="$parent.$parent.getcreate()" >生成短信</button>
|
|
53
|
+
|
|
54
|
+
<button v-show="$parent.$parent.rollback" class="button_clear button_spacing width-60" @click="$parent.$parent.retrun()" v-el:cba>返回</button>
|
|
55
|
+
<!-- <export-excel :data="{orderitem: 'f_userinfo_id',condition: condition}" sqlurl="rs/excel/report/getArrearsInfo/欠费记录导出Excel模板"></export-excel> -->
|
|
56
|
+
<div
|
|
57
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
58
|
+
@click="$parent.$parent.hidden()" class="button_spacing" style="float: right">
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
</div>
|
|
63
|
+
</criteria>
|
|
64
|
+
|
|
65
|
+
<data-grid :model="model" partial='list' class="table_sy" v-ref:grid>
|
|
66
|
+
<template partial='head'>
|
|
67
|
+
<tr>
|
|
68
|
+
<th>
|
|
69
|
+
<input type="checkbox" @click="$parent.$parent.$parent.isAll(model.pageIndex)">
|
|
70
|
+
</th>
|
|
71
|
+
<th><nobr>序号</nobr></th>
|
|
72
|
+
<th><nobr>用户姓名</nobr></th>
|
|
73
|
+
<th><nobr>用户编号</nobr></th>
|
|
74
|
+
<th><nobr>用户地址</nobr></th>
|
|
75
|
+
<th><nobr>账期</nobr></th>
|
|
76
|
+
<th><nobr>起数</nobr></th>
|
|
77
|
+
<th><nobr>止数</nobr></th>
|
|
78
|
+
<th><nobr>用气量</nobr></th>
|
|
79
|
+
<th><nobr>用气金额</nobr></th>
|
|
80
|
+
<th><nobr>一阶用气量</nobr></th>
|
|
81
|
+
<th><nobr>一阶单价</nobr></th>
|
|
82
|
+
<th><nobr>二阶用气量</nobr></th>
|
|
83
|
+
<th><nobr>二阶单价</nobr></th>
|
|
84
|
+
<th><nobr>三阶用气量</nobr></th>
|
|
85
|
+
<th><nobr>三阶单价</nobr></th>
|
|
86
|
+
<th><nobr>账户余额</nobr></th>
|
|
87
|
+
</tr>
|
|
88
|
+
</template>
|
|
89
|
+
<template partial='body'>
|
|
90
|
+
<td style="text-align:center">
|
|
91
|
+
<input type="checkbox" v-model="$parent.$parent.$parent.ids"
|
|
92
|
+
:value="row.f_userinfo_code">
|
|
93
|
+
</td>
|
|
94
|
+
<td>{{$index+1}}</td>
|
|
95
|
+
<td style="text-align:center">{{row.f_user_name}} </td>
|
|
96
|
+
<td style="text-align:center">{{row.f_userinfo_code}}</td>
|
|
97
|
+
<td style="text-align:center">{{row.f_address}}</td>
|
|
98
|
+
<td style="text-align:center">{{row.hand_date}}</td>
|
|
99
|
+
<td style="text-align:center">{{row.f_last_tablebase}}</td>
|
|
100
|
+
<td style="text-align:center">{{row.f_tablebase}}</td>
|
|
101
|
+
<td style="text-align:center">{{row.f_oughtamount}}</td>
|
|
102
|
+
<td style="text-align:center">{{row.f_oughtfee}}</td>
|
|
103
|
+
<td style="text-align:center">{{row.f_stair_gas1}}</td>
|
|
104
|
+
<td style="text-align:center">{{row.f_stair_price1}}</td>
|
|
105
|
+
<td style="text-align:center">{{row.f_stair_gas2}}</td>
|
|
106
|
+
<td style="text-align:center">{{row.f_stair_price2}}</td>
|
|
107
|
+
<td style="text-align:center">{{row.f_stair_gas3}}</td>
|
|
108
|
+
<td style="text-align:center">{{row.f_stair_price3}}</td>
|
|
109
|
+
<td style="text-align:center">{{row.f_balance}}</td>
|
|
110
|
+
</template>
|
|
111
|
+
</data-grid>
|
|
112
|
+
</criteria-paged>
|
|
113
|
+
<user-defined-message :show="definedShow" v-ref:printbill v-on:toggle="close"></user-defined-message>
|
|
114
|
+
<modal v-if="allshow" :show.sync="allshow" v-ref:modal backdrop="false">
|
|
115
|
+
<header slot="modal-header" class="modal-header">
|
|
116
|
+
<h4 class="modal-title">短信发送</h4>
|
|
117
|
+
</header>
|
|
118
|
+
<article slot="modal-body" class="modal-body">
|
|
119
|
+
<!-- <div class="form-group row" style="height:auto">-->
|
|
120
|
+
<!-- <label class="label-control">短信内容:</label>{{msg}}-->
|
|
121
|
+
<!-- </div>-->
|
|
122
|
+
<div class="form-group">
|
|
123
|
+
<label class="label-control">定时发送日期</label>
|
|
124
|
+
<datepicker placeholder="定时发送日期" :value.sync="sendtimeingdate" :disabled-days-of-Week="[]" :format="'yyyy-MM-dd HH:mm:ss'" :show-reset-button="reset"></datepicker>
|
|
125
|
+
</div>
|
|
126
|
+
<div class="form-group">
|
|
127
|
+
<label class="label-control">发送截至日期</label>
|
|
128
|
+
<datepicker placeholder="发送截至日期" :value.sync="alldownDate" :disabled-days-of-Week="[]" :format="'yyyy-MM-dd HH:mm:ss'" :show-reset-button="reset"></datepicker>
|
|
129
|
+
</div>
|
|
130
|
+
</article>
|
|
131
|
+
|
|
132
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
133
|
+
<button v-show="allshow" type="button" class="btn btn-default width-60" @click='allclose'>取消</button>
|
|
134
|
+
<button v-show="allshow" type="button" class="btn btn-success width-60" @click='create()'>确认</button>
|
|
135
|
+
</footer>
|
|
136
|
+
</modal>
|
|
137
|
+
<modal :show.sync="infoshow" width="1100px" title="短信模板选择" v-ref:modal large backdrop="false">
|
|
138
|
+
<article slot="modal-body" class="modal-body">
|
|
139
|
+
<criteria-paged :model="model2" v-ref:paged2>
|
|
140
|
+
<data-grid :model="$parent.$parent.model2" v-ref:grid2 partial='list'>
|
|
141
|
+
<template partial='head'>
|
|
142
|
+
<tr>
|
|
143
|
+
<!--<th style="padding: 0;border: 0">
|
|
144
|
+
<input type="checkbox" id="f_operator" v-model="$parent.$parent.$parent.all[model.pageIndex-1]"
|
|
145
|
+
@change="$parent.$parent.$parent.select()" style="width: 22px;height: 22px"/>
|
|
146
|
+
</th>-->
|
|
147
|
+
<th><nobr>选择</nobr></th>
|
|
148
|
+
<th><nobr>短信类型</nobr></th>
|
|
149
|
+
<th><nobr>模板内容</nobr></th>
|
|
150
|
+
<th><nobr>模板状态</nobr></th>
|
|
151
|
+
<th><nobr><b>创建人</b></nobr></th>
|
|
152
|
+
<th><nobr>操作</nobr></th>
|
|
153
|
+
</tr>
|
|
154
|
+
</template>
|
|
155
|
+
<template partial='body'>
|
|
156
|
+
<td style="text-align: center;"><input type="checkbox" v-model="$parent.$parent.$parent.$parent.sendmodelids" :value="row"></td>
|
|
157
|
+
<td style="text-align: center;">{{row.f_send_type}}</td>
|
|
158
|
+
<td style="text-align: center;" title="{{row.f_user_defined}}" >{{row.f_user_defined}}</td>
|
|
159
|
+
<td style="text-align: center;">{{row.f_state }}</td>
|
|
160
|
+
<td style="text-align: center;"><b>{{row.f_operator}}</b></td>
|
|
161
|
+
<td style="text-align: center;"><nobr>
|
|
162
|
+
<a @click='$parent.$parent.$parent.$parent.edit(row)'>编辑</a> <a @click='$parent.$parent.$parent.$parent.senddelete(row)'>删除</a>
|
|
163
|
+
</nobr></td>
|
|
164
|
+
</template>
|
|
165
|
+
</data-grid>
|
|
166
|
+
</criteria-paged>
|
|
167
|
+
</article>
|
|
168
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
169
|
+
<button type="button" class="btn btn-success width-60" @click='create1'>确定</button>
|
|
170
|
+
<button type="button" class="btn btn-default width-60" @click='infoclose'>关闭</button>
|
|
171
|
+
</footer>
|
|
172
|
+
</modal>
|
|
173
|
+
<modal :show.sync="allshow2" v-ref:modal backdrop="false">
|
|
174
|
+
<header slot="modal-header" class="modal-header">
|
|
175
|
+
<h4 class="modal-title">修正短信内容</h4>
|
|
176
|
+
</header>
|
|
177
|
+
<article slot="modal-body" class="modal-body">
|
|
178
|
+
<div class="form-group row" style="height:auto">
|
|
179
|
+
<label class="label-control">原短信内容:</label>{{msg_old}}
|
|
180
|
+
</div>
|
|
181
|
+
<div class="form-group">
|
|
182
|
+
<label class="label-control">修正为:</label>
|
|
183
|
+
<div class="row auto">
|
|
184
|
+
<textarea class="form-control col-sm-4" v-model="msg_new" rows="8" placeholder=""></textarea>
|
|
185
|
+
</div>
|
|
186
|
+
</div>
|
|
187
|
+
<div class="form-group" style="text-align: center;">
|
|
188
|
+
<h4><b>字数:<span style="color: #5cb85c">{{fontSizeNum}}</span></b></h4>
|
|
189
|
+
</div>
|
|
190
|
+
</article>
|
|
191
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
192
|
+
<button v-show="allshow2" type="button" class="btn btn-default width-60" @click='closeEdit'>取消</button>
|
|
193
|
+
<button v-show="allshow2" type="button" class="btn btn-success width-60" @click='createEdit'>修正</button>
|
|
194
|
+
</footer>
|
|
195
|
+
</modal>
|
|
196
|
+
</template>
|
|
197
|
+
|
|
198
|
+
<script>
|
|
199
|
+
/**
|
|
200
|
+
*阶梯水价查询列表
|
|
201
|
+
*/
|
|
202
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
|
203
|
+
import Vue from 'vue'
|
|
204
|
+
|
|
205
|
+
// let readySomething = async function (self) {
|
|
206
|
+
// // await self.$LoadParams.loadParam(self.f_filialeid)
|
|
207
|
+
// // self.loadMeterBooks()
|
|
208
|
+
// //self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
|
|
209
|
+
// self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
|
|
210
|
+
// }
|
|
211
|
+
|
|
212
|
+
export default {
|
|
213
|
+
data () {
|
|
214
|
+
return {
|
|
215
|
+
model: new PagedList('rs/sql/getAccountUser', 50, {
|
|
216
|
+
startDate: 'this.model.startDate',
|
|
217
|
+
endDate: 'this.model.endDate'
|
|
218
|
+
}),
|
|
219
|
+
model2: new PagedList('rs/sql/getSendModel', 30, {orderitem: " \'id desc\'"}),
|
|
220
|
+
// 短信模板选择
|
|
221
|
+
infoshow: false,
|
|
222
|
+
// 下选后其他查询条件
|
|
223
|
+
criteriaShow: false,
|
|
224
|
+
// 短信发送
|
|
225
|
+
definedShow: false,
|
|
226
|
+
allshow: false,
|
|
227
|
+
allshow2: false,
|
|
228
|
+
alldownDate: '',
|
|
229
|
+
sendtimeingdate: '', // 定时发送日期
|
|
230
|
+
startDate: '',
|
|
231
|
+
endDate: '',
|
|
232
|
+
sendtype: '',
|
|
233
|
+
fontSizeNum: 0,
|
|
234
|
+
userdefinedMessage: '',
|
|
235
|
+
meterbrands: [{label: '全部', value: ''}],
|
|
236
|
+
msg: '',
|
|
237
|
+
ids: [],
|
|
238
|
+
pages: [],
|
|
239
|
+
msg_old: '',
|
|
240
|
+
msg_new: '',
|
|
241
|
+
rowEdit: '',
|
|
242
|
+
sendmodelids: [],
|
|
243
|
+
curorgid: [this.$login.f.orgid],
|
|
244
|
+
f_orgid: '',
|
|
245
|
+
f_filialeids: '',
|
|
246
|
+
f_whether: '全部',
|
|
247
|
+
pcdslist: [],
|
|
248
|
+
isFirst: true
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
props: {
|
|
252
|
+
orderitem: {
|
|
253
|
+
type: String,
|
|
254
|
+
default: 'f_userinfo_id'
|
|
255
|
+
},
|
|
256
|
+
tablename: {
|
|
257
|
+
type: String,
|
|
258
|
+
default: 't_userinfo'
|
|
259
|
+
},
|
|
260
|
+
items: {
|
|
261
|
+
type: String,
|
|
262
|
+
default: '*'
|
|
263
|
+
},
|
|
264
|
+
rollback: false
|
|
265
|
+
},
|
|
266
|
+
ready () {
|
|
267
|
+
// this.getaddress()
|
|
268
|
+
this.$refs.paged.$refs.cri.model.hand_date = this.$login.toStandardYearMonth()
|
|
269
|
+
// this.$refs.paged.$refs.cri.search()
|
|
270
|
+
},
|
|
271
|
+
watch: {
|
|
272
|
+
'f_whether' (val) {
|
|
273
|
+
if (val[0] === '欠费') {
|
|
274
|
+
this.$dispatch('all', '欠费')
|
|
275
|
+
this.f_whether = '全部'
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
'msg_new' (val) {
|
|
279
|
+
this.fontSizeNum = val.length
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
methods: {
|
|
283
|
+
getorg (val) {
|
|
284
|
+
this.f_orgid = this.$login.convertToIn(val)
|
|
285
|
+
this.f_filialeids = val[0]
|
|
286
|
+
},
|
|
287
|
+
loadMeterBooks () {
|
|
288
|
+
let meterbrand = this.$GetSaleParam.getGasbrand()
|
|
289
|
+
for (let row of meterbrand) {
|
|
290
|
+
this.meterbrands.push({label: row.label, value: row.value.f_meter_brand})
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
retrun () {
|
|
294
|
+
this.alllist = false
|
|
295
|
+
this.$dispatch('allchange4')
|
|
296
|
+
},
|
|
297
|
+
async getaddress () {
|
|
298
|
+
console.log('开始获取小区')
|
|
299
|
+
let HttpReset = new HttpResetClass()
|
|
300
|
+
var data = await HttpReset.load('POST', 'rs/sql/address_getarealist', {
|
|
301
|
+
data: {
|
|
302
|
+
condition: `1=1 and s.f_filialeid = '${this.$login.f.orgid}'`
|
|
303
|
+
}
|
|
304
|
+
}, {resolveMsg: null, rejectMsg: '获取小区失败!'})
|
|
305
|
+
console.log('小区', data.data)
|
|
306
|
+
let house = []
|
|
307
|
+
for (let row of data.data) {
|
|
308
|
+
console.log('开始保存小区')
|
|
309
|
+
house.push({label: row.f_residential_area, value: row.f_residential_area})
|
|
310
|
+
}
|
|
311
|
+
this.residentialArea = house
|
|
312
|
+
this.pcdslist = []
|
|
313
|
+
let req = await HttpReset.load('POST', 'rs/sql/address_singleTableOrderBy?pageNo=1&pageSize=9999999', {
|
|
314
|
+
data: {
|
|
315
|
+
items: '*',
|
|
316
|
+
tablename: 't_pcd',
|
|
317
|
+
orderitem: 'id',
|
|
318
|
+
condition: `1=1 and f_filialeid = '${this.$login.f.orgid}'`
|
|
319
|
+
}
|
|
320
|
+
}, {resolveMsg: null, rejectMsg: '获取地址失败!'})
|
|
321
|
+
let redata = []
|
|
322
|
+
req.data.forEach((row, n) => {
|
|
323
|
+
redata[n] = {
|
|
324
|
+
label: row.f_pcd,
|
|
325
|
+
value: row.id,
|
|
326
|
+
data: row,
|
|
327
|
+
id: row.id
|
|
328
|
+
}
|
|
329
|
+
})
|
|
330
|
+
this.pcdslist = redata
|
|
331
|
+
},
|
|
332
|
+
hidden () {
|
|
333
|
+
this.criteriaShow = !this.criteriaShow
|
|
334
|
+
},
|
|
335
|
+
closeEdit () {
|
|
336
|
+
this.allshow2 = false
|
|
337
|
+
},
|
|
338
|
+
senddelete (row) {
|
|
339
|
+
let setpos = {
|
|
340
|
+
id: row.id,
|
|
341
|
+
f_state: '无效'
|
|
342
|
+
}
|
|
343
|
+
this.$resetpost('rs/entity/t_send_model', setpos, {resolveMsg: '模板删除成功', rejectMsg: '模板删除失败'})
|
|
344
|
+
let condition = "f_state=\'有效\'"
|
|
345
|
+
this.model2.search(condition)
|
|
346
|
+
},
|
|
347
|
+
createEdit () {
|
|
348
|
+
this.allshow2 = false
|
|
349
|
+
let setpos = {
|
|
350
|
+
id: this.rowEdit.id,
|
|
351
|
+
f_user_defined: this.msg_new.replace(/'/g, `''`)
|
|
352
|
+
}
|
|
353
|
+
this.$resetpost('rs/entity/t_send_model', setpos, {resolveMsg: '模板修正成功', rejectMsg: '模板修正失败'})
|
|
354
|
+
this.rowEdit = ''
|
|
355
|
+
this.msg_new = ''
|
|
356
|
+
this.msg_old = ''
|
|
357
|
+
this.sendmodelids = []
|
|
358
|
+
let condition = "f_state=\'有效\' and f_orgid = \'" + Vue.$login.f.orgid + "\'"
|
|
359
|
+
this.model2.search(condition)
|
|
360
|
+
},
|
|
361
|
+
edit (row) {
|
|
362
|
+
this.allshow2 = true
|
|
363
|
+
this.rowEdit = row
|
|
364
|
+
this.msg_old = row.f_user_defined
|
|
365
|
+
this.msg_new = row.f_user_defined
|
|
366
|
+
},
|
|
367
|
+
getsendmodel () {
|
|
368
|
+
let condition = "f_state=\'有效\'"
|
|
369
|
+
let res = this.model2.search(condition)
|
|
370
|
+
console.log('---------------------' + res)
|
|
371
|
+
console.log('this.model2:', this.model2)
|
|
372
|
+
this.infoshow = true
|
|
373
|
+
},
|
|
374
|
+
infoclose () {
|
|
375
|
+
this.infoshow = false
|
|
376
|
+
},
|
|
377
|
+
getcreate () {
|
|
378
|
+
this.allshow = true
|
|
379
|
+
},
|
|
380
|
+
create () {
|
|
381
|
+
if (this.sendtimeingdate && this.sendtimeingdate != '') {
|
|
382
|
+
if (new Date(this.sendtimeingdate).getTime() <= new Date().getTime()) {
|
|
383
|
+
this.$showAlert('定时发送时间不能小于当前时间', 'warning', 2000)
|
|
384
|
+
return
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
if (this.alldownDate && this.alldownDate != '') {
|
|
388
|
+
if (new Date(this.alldownDate).getTime() <= new Date().getTime()) {
|
|
389
|
+
this.$showAlert('发送截至日期不能小于当前时间', 'warning', 2000)
|
|
390
|
+
return
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
this.allshow = false
|
|
395
|
+
this.startDate = this.$refs.paged.$refs.cri.model.startDate
|
|
396
|
+
this.endDate = this.$refs.paged.$refs.cri.model.endDate
|
|
397
|
+
this.model.condition = this.model.condition + " and f_orgid = \'" + Vue.$login.f.orgid + "\'"
|
|
398
|
+
if (this.ids.length !== 0) {
|
|
399
|
+
console.log('ids', this.ids)
|
|
400
|
+
let tems = ''
|
|
401
|
+
for (let i = 0; i < this.ids.length; i++) {
|
|
402
|
+
tems += `'${this.ids[i]}',`
|
|
403
|
+
}
|
|
404
|
+
console.log('tems', tems.substr(0, tems.length - 1), tems)
|
|
405
|
+
this.model.condition = this.model.condition + `and f_userinfo_code in (${tems.substr(0, tems.length - 1)})`
|
|
406
|
+
}
|
|
407
|
+
this.userdefinedMessage = 'selfAccount'
|
|
408
|
+
if (this.userdefinedMessage === '' || this.userdefinedMessage === null || this.alldownDate === '' || this.alldownDate === null) {
|
|
409
|
+
this.$showAlert('短信模板及发送截至时间都不能为空!', 'danger', 3000)
|
|
410
|
+
} else {
|
|
411
|
+
this.$dispatch('create', this.model.condition, this.userdefinedMessage, this.alldownDate, this.sendtype, this.startDate, this.endDate, this.sendtimeingdate)
|
|
412
|
+
this.sendmodelid = []
|
|
413
|
+
this.userdefinedMessage = ''
|
|
414
|
+
this.alldownDate = ''
|
|
415
|
+
this.sendtype = ''
|
|
416
|
+
}
|
|
417
|
+
this.$refs.paged.$refs.cri.search()
|
|
418
|
+
},
|
|
419
|
+
create1 () {
|
|
420
|
+
console.log('kaishi ===', this.sendmodelids)
|
|
421
|
+
if (this.alldownDate === '' || this.alldownDate === null) {
|
|
422
|
+
if (this.sendmodelids.length !== 1) {
|
|
423
|
+
this.$showAlert('短信模板未选择或选择多个!', 'danger', 3000)
|
|
424
|
+
} else {
|
|
425
|
+
console.log('kaishi ===', this.sendmodelids[0])
|
|
426
|
+
this.userdefinedMessage = this.sendmodelids[0].f_user_defined
|
|
427
|
+
this.sendtype = this.sendmodelids[0].f_send_type
|
|
428
|
+
this.sendmodelids = []
|
|
429
|
+
this.msg = this.userdefinedMessage
|
|
430
|
+
this.infoshow = false
|
|
431
|
+
this.allshow = true
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
},
|
|
435
|
+
search (args) {
|
|
436
|
+
console.log('args1:', args)
|
|
437
|
+
args.condition = `${args.condition} and f_user_state = '正常'`
|
|
438
|
+
args.condition = `${args.condition} and f_orgid = '${Vue.$login.f.orgid}'`
|
|
439
|
+
console.log('args.model', args.model)
|
|
440
|
+
this.model.search(args.condition, args.model)
|
|
441
|
+
if (this.isFirst) {
|
|
442
|
+
this.isFirst = false
|
|
443
|
+
} else {
|
|
444
|
+
this.$dispatch('allchange3')
|
|
445
|
+
this.alllist = true
|
|
446
|
+
}
|
|
447
|
+
},
|
|
448
|
+
addsendmodel () {
|
|
449
|
+
this.definedShow = true
|
|
450
|
+
},
|
|
451
|
+
allclose () {
|
|
452
|
+
this.allshow = false
|
|
453
|
+
},
|
|
454
|
+
close () {
|
|
455
|
+
this.definedShow = false
|
|
456
|
+
},
|
|
457
|
+
isAll (page) {
|
|
458
|
+
if (this.pages.includes(page)) { // 已添加,取消动作
|
|
459
|
+
// 从ids中删除本页所有数据的ids
|
|
460
|
+
this.addOrRemove(false)
|
|
461
|
+
this.pages = this.pages.filter((item) => {
|
|
462
|
+
return item !== page
|
|
463
|
+
})
|
|
464
|
+
} else { // 未添加
|
|
465
|
+
this.pages.push(page) // 添加id,添加动作
|
|
466
|
+
this.addOrRemove(true)
|
|
467
|
+
}
|
|
468
|
+
},
|
|
469
|
+
addOrRemove (is) {
|
|
470
|
+
let that = this
|
|
471
|
+
if (is) { // 添加本页所有数据到ids中
|
|
472
|
+
this.model.rows.forEach((row) => {
|
|
473
|
+
if (!that.ids.includes(row.f_userinfo_code)) {
|
|
474
|
+
that.ids.push(row.f_userinfo_code)
|
|
475
|
+
}
|
|
476
|
+
})
|
|
477
|
+
} else { // 从ids中取消所有的数据
|
|
478
|
+
this.model.rows.forEach((row) => {
|
|
479
|
+
that.ids = that.ids.filter((item) => {
|
|
480
|
+
return item !== row.f_userinfo_code
|
|
481
|
+
})
|
|
482
|
+
})
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
},
|
|
486
|
+
events: {
|
|
487
|
+
'definedMessage' (val) {
|
|
488
|
+
this.definedShow = false
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
</script>
|
|
493
|
+
<style>
|
|
494
|
+
.form-group {
|
|
495
|
+
height: 30px;
|
|
496
|
+
}
|
|
497
|
+
</style>
|