sale-client 3.5.99 → 3.5.100

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.5.99",
3
+ "version": "3.5.100",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -0,0 +1,304 @@
1
+ <template>
2
+ <div class="auto" >
3
+ <validator name='v'>
4
+ <div novalidate class=" select-overspread container-fluid auto" partial>
5
+ <ul class="nav nav-tabs">
6
+ <li class="active a-tabs"><a href="#">低保信息</a></li>
7
+ </ul>
8
+ <form class="form-horizontal form-group">
9
+ <div class="row">
10
+ <div class="col-sm-6 form-group">
11
+ <label class="font_normal_body">所属公司</label>
12
+ <res-select :initresid='curorgid' @res-select="getorg" is-mul="false" restype='organization'></res-select>
13
+ </div>
14
+ <div class="col-sm-6 form-group" :class="[$v.f_userinfo_code.required ? 'has-error' : 'has-success']">
15
+ <label for="f_userinfo_code" class="font_normal_body">用户编号</label>
16
+ <input class="input_search" style="width:60%" type="text" class="input_search" style="width:60%"
17
+ v-model="model.f_userinfo_code" @keyup.enter="getinfo()"
18
+ v-validate:f_userinfo_code='{required: true }' :disabled='isEdit' placeholder="输入编号,回车查询">
19
+ </div>
20
+ <div class="col-sm-6 form-group">
21
+ <label for="f_user_name" class=" font_normal_body">用户姓名</label>
22
+ <input class="input_search" style="width:60%" type="text" class="input_search" style="width:60%"
23
+ v-model="model.f_user_name" readonly
24
+ placeholder="用户姓名">
25
+
26
+ </div>
27
+ </div>
28
+
29
+ <div class="row">
30
+ <div class="col-sm-12 form-group" >
31
+ <label for="f_address" class=" font_normal_body">地&emsp;&emsp;址</label>
32
+ <input class="input_search" type="text" class="input_search" style="width:80%" v-model="model.f_address"
33
+ readonly
34
+ placeholder="地址">
35
+ </div>
36
+
37
+ </div>
38
+
39
+ <div class="row" >
40
+ <div class="col-sm-6 form-group" id="f_start_date" :class="[$v.f_start_date.required ? 'has-error' : 'has-success']">
41
+ <input type="text" class="input_search" style="width:60%" v-show="false" v-model="model.f_start_date"
42
+ v-validate:f_start_date='{required: true }'>
43
+ <label for="f_start_date" class=" font_normal_body">开始日期</label>
44
+ <datepicker style="width: 60%"
45
+ placeholder="开始日期"
46
+ v-model="model.f_start_date"
47
+ :value.sync="model.f_start_date"
48
+ class="datepicker"
49
+ :format="'yyyy-MM-dd'"
50
+ :disabled='isEdit'>
51
+ </datepicker>
52
+ </div>
53
+ <div class="col-sm-6 form-group" id="f_end_date" :class="[$v.f_end_date.required ? 'has-error' : 'has-success']">
54
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_end_date"
55
+ v-validate:f_end_date='{required: true }' v-show="false" >
56
+ <label for="f_end_date" class=" font_normal_body">结束日期</label>
57
+ <datepicker style="width: 60%"
58
+ placeholder="结束日期"
59
+ v-model="model.f_end_date"
60
+ :value.sync="model.f_end_date"
61
+ class="datepicker"
62
+ :format="'yyyy-MM-dd'"
63
+ :disabled='isEdit'>
64
+ </datepicker>
65
+
66
+ </div>
67
+ </div>
68
+
69
+ <div class="row">
70
+ <div class="col-sm-6 form-group" :class="[$v.f_price_id.required ? 'has-error' : 'has-success']">
71
+ <label class="font_normal_body">气&emsp;&emsp;价</label>
72
+ <input type="text" class="input_search" style="width:60%" v-show="false" v-model="model.f_price_id"
73
+ v-validate:f_price_id='{required: true }'>
74
+ <v-select id="f_price_name"
75
+ v-model="model.f_price_id"
76
+ :value.sync="model.f_price_id"
77
+ :options='pricename'
78
+ :value-single="true"
79
+ close-on-select></v-select>
80
+
81
+ </div>
82
+ </div>
83
+
84
+ <div style="text-align:right;height:auto;margin-top:6px;">
85
+ <button class="button_search" type="button" @click="confirm('确认')" v-if="!isEdit" :disabled='!$v.valid'>
86
+ 确认
87
+ </button>
88
+ <button class="button_search" type="button" style="width:100px;" @click="confirm('取消低保户')"
89
+ v-show="isBasicLiving1 || model.isBasicLiving1 =='true'" :disabled='!$v.valid'>
90
+ 取消低保户
91
+ </button>
92
+ <button class="button_search" type="button" @click="close()">取消</button>
93
+ </div>
94
+ <!--<upload :blodid="model.f_userinfo_id" cols="col-sm-12" isremark="true" fusetype="低保户"></upload>-->
95
+ </form>
96
+
97
+ </div>
98
+
99
+
100
+ </validator>
101
+
102
+ </div>
103
+ </template>
104
+ <script>
105
+ import {HttpResetClass} from 'vue-client'
106
+
107
+ let initGen = async function (self, val) {
108
+ // 获取低保气价
109
+ self.$resetpost('rs/sql/get_priceId',
110
+ {data: {f_orgid: self.f_filiale_id, condition: `f_islow_income = '1'`}},
111
+ {resolveMsg: null, rejectMsg: null}).then((res) => {
112
+ let rs = []
113
+ for (let i = 0; i < res.data.length; i++) {
114
+ let temp = {
115
+ label: res.data[i].f_price_name,
116
+ value: res.data[i].f_price_id
117
+ }
118
+ rs.push(temp)
119
+ }
120
+ self.pricename = [...rs]
121
+ })
122
+
123
+ if (val) {
124
+ self.model = Object.assign({}, self.model, val)
125
+ }
126
+ // let http = new HttpResetClass()
127
+ // let res = await http.load('POST', 'rs/sql/get_BasicLiving',
128
+ // {data: {condition: `id = '${val.id}'`}}, {
129
+ // resolveMsg: null,
130
+ // rejectMsg: null
131
+ // })
132
+ // console.log(res.data)
133
+ // self.model = Object.assign({}, self.model, val)
134
+ // self.model.f_userinfo_code = res.data[0].f_userinfo_code
135
+ // self.model.f_userinfo_id = res.data[0].f_userinfo_id
136
+ // self.model.f_user_phone = res.data[0].f_user_phone
137
+ // self.model.f_address = res.data[0].f_address
138
+ // self.model.f_user_phone = res.data[0].f_user_phone
139
+ // self.model.f_start_date = res.data[0].f_start_date
140
+ // self.model.f_end_date = res.data[0].f_end_date
141
+ // self.model.f_period = res.data[0].f_period
142
+ // self.model.f_price_id = res.data[0].f_price_id
143
+ // self.model.f_price_name = res.data[0].f_price_name
144
+ // self.model.f_operator = self.$login.f.name
145
+ // self.model.f_operatorid = self.$login.f.id
146
+ // self.model.f_filialeid = self.model.f_filialeid ? self.model.f_filialeid : self.$login.f.orgid
147
+ // self.model.f_orgid = self.model.f_orgid ? self.model.f_orgid : self.$login.f.orgid
148
+ // self.model.f_orgname = self.model.f_orgname ? self.model.f_orgname : self.$login.f.orgs
149
+ // self.model.f_depid = self.model.f_depid ? self.model.f_depid : self.$login.f.depids
150
+ // self.model.f_depname = self.model.f_depname ? self.model.f_depname : self.$login.f.deps
151
+ }
152
+
153
+ export default {
154
+ title: '低保户',
155
+ props: {
156
+ f_islow_income: {
157
+ type: String,
158
+ default: '1'
159
+ },
160
+ data: {
161
+ type: Object
162
+ }
163
+ },
164
+ data () {
165
+ return {
166
+ // 公司树状图信息
167
+ curorgid: [this.$login.f.orgid],
168
+ pricename: [{value: '', label: ''}],
169
+ model: {
170
+ f_userinfo_code: '',
171
+ f_userinfo_id: '',
172
+ f_user_name: '',
173
+ f_address: '',
174
+ f_price_id: '',
175
+ f_price_name: '',
176
+ f_user_phone: '',
177
+ f_start_date: '',
178
+ f_end_date: '',
179
+ f_period: '',
180
+ f_state: '有效'
181
+
182
+ },
183
+ isBasicLiving1: false,
184
+ // 编辑控制
185
+ isEdit: false,
186
+ // 所属公司
187
+ f_filiale_id: this.$login.f.orgid,
188
+ // 所属公司名称
189
+ f_filiale_name: this.$login.f.orgs
190
+ }
191
+ },
192
+ ready () {
193
+ if (this.data) {
194
+ this.isBasicLiving1 = true
195
+ initGen(this, this.data)
196
+ } else {
197
+ this.initModel()
198
+ }
199
+ },
200
+ watch: {
201
+ 'data' (val) {
202
+ if (val) {
203
+ initGen(this, val)
204
+ } else {
205
+ this.initModel()
206
+ }
207
+ },
208
+ 'model.f_start_date' (val) {
209
+ if (this.model.f_end_date) {
210
+ this.compareDate(val, this.model.f_end_date)
211
+ }
212
+ },
213
+ 'model.f_end_date' (val) {
214
+ if (this.model.f_start_date) {
215
+ this.compareDate(this.model.f_start_date, val)
216
+ }
217
+ },
218
+ 'f_filiale_id' () {
219
+ initGen(this, this.data)
220
+ }
221
+ },
222
+ methods: {
223
+
224
+ async getinfo () {
225
+ let res = await this.$resetpost('rs/sql/sale_getUserAndPeriod',
226
+ {data: {condition: "f_userinfo_code = '" + this.model.f_userinfo_code + "' and f_orgid ='" + this.f_filiale_id + "'"}}, {
227
+ resolveMsg: null,
228
+ rejectMsg: null
229
+ })
230
+ if (res.data.length == 0) {
231
+ this.$showAlert('查询无此用户!!请核对编号', 'warning', 3000)
232
+ } else {
233
+ this.model = res.data[0]
234
+ this.$parent.blodid = this.model.f_userinfo_id
235
+ this.model.f_start_date = this.$login.toStandardDateString()
236
+ }
237
+ },
238
+ async confirm (type) {
239
+ // if (type == '取消低保户' && !this.$login.r.find(value => value == '取消低保户')) {
240
+ // this.$showMessage('你没有取消低保户的权限,请联系管理员!')
241
+ // return
242
+ // }
243
+ if (type == '取消低保户'){
244
+ let data = {
245
+ f_userinfo_code: this.f_userinfo_code,
246
+ f_userinfo_id: this.model.f_userinfo_id,
247
+ f_user_name: this.model.f_user_name,
248
+ f_address: this.model.f_address,
249
+ f_price_id: this.model.f_price_id,
250
+ f_price_name: this.model.f_price_name
251
+ }
252
+ let res =await this.$resetpost('rs/logic/stopBasicLivingNew', {data: data},{resolveMsg: null, rejectMsg: null})
253
+ this.initModel()
254
+ this.$dispatch('success','isBasicLiving')
255
+ }else {
256
+ await this.$LogicService.basicLiving(this.model, this.data)
257
+ this.initModel()
258
+ this.$dispatch('success', 'isBasicLiving')
259
+ }
260
+ },
261
+ getorg (id, name) {
262
+ this.f_filialeid = id[0]
263
+ this.f_filialename = name[0]
264
+ },
265
+ initModel () {
266
+ this.model = {
267
+ f_userinfo_code: '',
268
+ f_userinfo_id: '',
269
+ f_user_name: '',
270
+ f_address: '',
271
+ f_price_id: 0,
272
+ f_price_name: '',
273
+ f_user_phone: '',
274
+ f_start_date: '',
275
+ f_end_date: '',
276
+ f_period: '',
277
+ f_state: '正常'
278
+ }
279
+ },
280
+ close () {
281
+ this.$dispatch('close')
282
+ },
283
+
284
+ compareDate (date1, date2) {
285
+ let s = new Date(date1)
286
+ let e = new Date(date2)
287
+ if (e < s) {
288
+ this.model.f_start_date = ''
289
+ this.model.f_end_date = ''
290
+ this.$showAlert('结束日期不能小于开始日期', 'warning', 2000)
291
+ }
292
+ }
293
+ }
294
+ }
295
+ </script>
296
+ <style lang="less">
297
+ #gas-price-form {
298
+ .form-group {
299
+ margin-left: 0px;
300
+ margin-right: 0px;
301
+ }
302
+ }
303
+
304
+ </style>
@@ -10,6 +10,7 @@ let specialComp = {
10
10
  // 气价管理(新增)
11
11
  'gas-price': (resolve) => { require(['./components/comprehen/StairPrice/GasPrice'], resolve) },
12
12
  // 档案信息(V3现用档案管理)
13
- 'file-user-files': (resolve) => { require(['./components/FilesManage/FileUserFiles'], resolve) }
13
+ 'file-user-files': (resolve) => { require(['./components/FilesManage/FileUserFiles'], resolve) },
14
+ 'basic-living': (resolve) => { require(['./components/BasicLiving'], resolve) }
14
15
  }
15
16
  exports.specialComp = specialComp
@@ -1,18 +1,20 @@
1
- // 分公司特殊组件页面注册
2
-
3
- const Vue = require("vue");
4
- let specialComp = {
5
- // 高拍仪
6
- 'high-meter-idcard': (resolve) => { require(['./HighMeterIdCard'], resolve) },
7
- // 物联网表收费
8
- 'iot-meter-center': (resolve) => { require(['./IOTMeterCenter'], resolve) },
9
- // MISPOS支付
10
- 'mis-pos-pay': (resolve) => { require(['./MisPosPay'], resolve) },
11
- // 购气撤销
12
- 'card-meter-charge-cancel': (resolve) => { require(['./CardMeterChargeCancel'], resolve) },
13
- // 换表补卡
14
- 'change_fill_sendcard': (resolve) => { require(['./ChangeSendCard'], resolve) },
15
- // 发卡售气
16
- 'show-card-sell-gas': (resolve) => { require(['./ShowCardSellGas'], resolve) },
17
- }
18
- exports.specialComp = specialComp
1
+ // 分公司特殊组件页面注册
2
+
3
+ const Vue = require("vue");
4
+ let specialComp = {
5
+ // 高拍仪
6
+ 'high-meter-idcard': (resolve) => { require(['./HighMeterIdCard'], resolve) },
7
+ // 物联网表收费
8
+ 'iot-meter-center': (resolve) => { require(['./IOTMeterCenter'], resolve) },
9
+ // MISPOS支付
10
+ 'mis-pos-pay': (resolve) => { require(['./MisPosPay'], resolve) },
11
+ // 购气撤销
12
+ 'card-meter-charge-cancel': (resolve) => { require(['./CardMeterChargeCancel'], resolve) },
13
+ // 换表补卡
14
+ 'change_fill_sendcard': (resolve) => { require(['./ChangeSendCard'], resolve) },
15
+ // 发卡售气
16
+ 'show-card-sell-gas': (resolve) => { require(['./ShowCardSellGas'], resolve) },
17
+ // 卡表收费
18
+ 'card-meter-center': (resolve) => { require(['./CardMeterCenter'], resolve) }
19
+ }
20
+ exports.specialComp = specialComp
@@ -951,7 +951,7 @@ let loadParamGem = async function (self) {
951
951
  }
952
952
  let self = this
953
953
  try {
954
- await axios.post('rs/business/batchRunExcelDefault/filemanage_fileSave/newSettleFileImport',
954
+ await axios.post('rs/business/batchRunExcelDefault/filemanage_fileSave_zhongyi/newSettleFileImport',
955
955
  {data: param}, {timeout: 30000}).then((res) => {
956
956
  if (res.data) {
957
957
  self.$showMessage(`本次上传共上传${res.data.totalsum}条数据, 成功${res.data.successsum}条,失败${res.data.errorsum}条,具体失败数据请在稽查查询错误查询中查看!!`)