sale-client 3.5.91 → 3.5.92

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.91",
3
+ "version": "3.5.92",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -136,7 +136,7 @@
136
136
  <td style="text-align:center"><nobr>{{row.f_value}}</nobr></td>
137
137
  <td style="text-align:center"><nobr>{{row.f_filiale_name}}</nobr></td>
138
138
  <td style="text-align:center"><button @click.stop="$parent.$parent.$parent.operate(row.f_price_id,row.f_price_name,row.f_filialeid)" class="btn btn-link"><b>{{row.usercount}}</b></button></td>
139
- <td style="text-align:center">{{row.f_state === '待审核' ? '待审核' : '使用中'}}</td>
139
+ <td style="text-align:center">{{row.f_price_state}}</td>
140
140
  <td style="text-align:center" v-if="$parent.$parent.$parent.config.audit">
141
141
  <button :disabled="$login.r.includes('气价审核')" @click.stop="$parent.$parent.$parent.passPrice(row)"
142
142
  class="btn btn-link" v-if="row.f_state === '待审核'">通过
@@ -0,0 +1,236 @@
1
+ <template>
2
+ <div class="flex-column">
3
+ <div class="span" style="">
4
+ <validator name='v'>
5
+ <form novalidate class="form-horizontal">
6
+ <div class="row" style="margin-top:10px;">
7
+ <div class="col-sm-4">
8
+ <label for="f_newuser_name" id="label" class="font_normal_body">转出方编号</label>
9
+ <input class="input_search" style="width:60%" type="text" title="转出方编号" v-model="model.out_userinfo_code"
10
+ readonly placeholder="用户姓名">
11
+ </div>
12
+ <div class="col-sm-4">
13
+ <label for="f_newuser_name" id="label" class="font_normal_body">转出方姓名</label>
14
+ <input class="input_search" style="width:60%" type="text" title="转出方姓名" v-model="model.out_user_name"
15
+ readonly placeholder="用户姓名">
16
+ </div>
17
+ </div>
18
+ <div class="row" style="margin-top:10px;">
19
+ <div class="col-sm-4" title="回车搜索传出方信息" :class="[$v.in_userinfo_code.required ? 'has-error' : 'has-success']">
20
+ <label for="f_newuser_name" id="label" class="font_normal_body">转&emsp;入&emsp;方</label>
21
+ <input class="input_search" style="width:60%" type="text" title="回车搜索转入方信息" v-model="model.in_userinfo_code"
22
+ v-validate:in_userinfo_code='{required: true }' @keydown.enter="searchByCode" placeholder="转出方编号,按下回车进行查询">
23
+ </div>
24
+ <div class="col-sm-4" :class="[$v.in_user_name.required ? 'has-error' : 'has-success']">
25
+ <label for="f_newuser_name" id="label" class="font_normal_body">转入方姓名</label>
26
+ <input class="input_search" style="width:60%" type="text" title="转入方姓名" v-model="model.in_user_name"
27
+ v-validate:in_user_name='{required: true }' readonly placeholder="转入方姓名">
28
+ </div>
29
+ </div>
30
+ <div class="row" style="margin-top:10px;">
31
+ <div class="col-sm-12" :class="[$v.f_comments.required ? 'has-error' : 'has-success']">
32
+ <label id="label" for="f_comments" class="font_normal_body">&nbsp;备&emsp;&emsp;注</label>
33
+ <input class="input_search" style="width:87%" v-model="model.f_comments"
34
+ v-validate:f_comments='{required: true }'
35
+ placeholder="备注"/>
36
+ </div>
37
+ </div>
38
+ </form>
39
+ <div style="text-align:right;height:auto;">
40
+ <button class="button_search" @click="notarize = true" :disabled='!$v.valid'>
41
+ 确认
42
+ </button>
43
+ <button class="button_clear" @click="clear()">
44
+ 取消
45
+ </button>
46
+ </div>
47
+ <upload :blodid="blodid" v-if="config.showupload" isremark="true" fusetype="用户记录转移管理"></upload>
48
+ </validator>
49
+ </div>
50
+ <modal v-if="notarize" :show.sync="notarize" width="100%" title="信息确认" v-ref:modal large backdrop="false">
51
+ <article slot="modal-body" class="modal-body" style="text-align: center">
52
+ <strong>此操作具有一定的风险性,需要您再次确认转出方用户信息,请输入转入方用户编号</strong>
53
+ <div class="row">
54
+ <div class="col-sm-6 col-sm-offset-3">
55
+ <label for="f_newuser_name" id="label" class="font_normal_body">再次确认用户编号</label>
56
+ <input class="input_search" style="width:60%" type="text" title="用户编号" v-model="notarize_userinfo_code"
57
+ placeholder="用户编号">
58
+ </div>
59
+ </div>
60
+ <!--<div class="row" v-if="row.f_meter_type== '物联网表'||row.f_meter_type== '机表' || row.f_meter_type == '金额卡表'">-->
61
+ <!--<div class="col-sm-6 col-sm-offset-3">-->
62
+ <!--<label for="f_auto_operate" id="f_auto_operate" class="font_normal_body">自动生成补费扣费</label>-->
63
+ <!--<v-select :value.sync="model.f_auto_operate" v-model='model.f_auto_operate'-->
64
+ <!--style="width:60%"-->
65
+ <!--:options='autoOperate' placeholder='是否自动生成补费扣费'-->
66
+ <!--close-on-select-->
67
+ <!--condition="f_state = '{}'"></v-select>-->
68
+ <!--</div>-->
69
+ <!--</div>-->
70
+ </article>
71
+ <footer slot="modal-footer" class="modal-footer">
72
+ <button class="button_search" @click="confirm()" :disabled='!notarize_userinfo_code'>
73
+ 确认
74
+ </button>
75
+ <button class="button_clear" @click="notarize = false">
76
+ 取消
77
+ </button>
78
+ </footer>
79
+ </modal>
80
+ </div>
81
+ </template>
82
+ <script>
83
+
84
+ import {HttpResetClass} from 'vue-client'
85
+
86
+ let asyncTransferManage = async function (self) {
87
+ // await self.$getConfig(self, 'TransferRecord')
88
+ }
89
+
90
+ export default {
91
+ title: '过户管理',
92
+ props: ['row', 'records'],
93
+ data () {
94
+ return {
95
+ // 附件上传必须
96
+ blodid: '',
97
+ notarize: false,
98
+ notarize_userinfo_code: '',
99
+ config: {
100
+ showupload: true,
101
+ tableNames: [
102
+ {
103
+ table: 't_sellinggas',
104
+ name: '收费记录',
105
+ checked: true,
106
+ disabled: true
107
+ }, {
108
+ table: 't_chargeprice',
109
+ name: '划价记录',
110
+ checked: true,
111
+ disabled: true
112
+ }, {
113
+ table: 't_record',
114
+ name: '记录',
115
+ checked: true,
116
+ disabled: true
117
+ }]
118
+ },
119
+ model: {
120
+ table_name: [],
121
+ in_userinfo_id: '',
122
+ in_userfiles_id: '',
123
+ in_userinfo_code: '',
124
+ in_user_id: '',
125
+ out_userinfo_id: '',
126
+ out_userfiles_id: '',
127
+ out_user_id: '',
128
+ // f_auto_operate: '否',
129
+ out_userinfo_code: '',
130
+ in_user_name: '',
131
+ out_user_name: '',
132
+ f_orgid: '',
133
+ f_orgname: '',
134
+ f_depid: '',
135
+ f_depname: '',
136
+ f_operatorid: '',
137
+ f_operator: '',
138
+ f_comments: ''
139
+ },
140
+ autoOperate: [{ label: '是', value: '是' }, { label: '否', value: '否' }]
141
+ }
142
+ },
143
+ ready () {
144
+ this.blodid = this.row.f_userinfo_id
145
+ Object.assign(this.model, {
146
+ out_userinfo_id: this.row.f_userinfo_id,
147
+ out_userinfo_code: this.row.f_userinfo_code,
148
+ out_userfiles_id: this.row.f_userfiles_id,
149
+ out_user_id: this.row.f_user_id,
150
+ out_user_name: this.row.f_user_name,
151
+ f_operator: this.$login.f.name,
152
+ f_operatorid: this.$login.f.id,
153
+ f_orgid: this.$login.f.orgid,
154
+ f_orgname: this.$login.f.orgs,
155
+ f_depid: this.$login.f.depids,
156
+ f_depname: this.$login.f.deps
157
+ })
158
+ asyncTransferManage(this)
159
+ },
160
+ methods: {
161
+ confirm () {
162
+ // 首先验证用户
163
+ new HttpResetClass().load('post', 'rs/sql/sale_getUser',
164
+ {
165
+ data: {
166
+ condition: `f_userinfo_code = '${this.notarize_userinfo_code}'`,
167
+ orderitem: ` f_userinfo_code Desc`
168
+ }
169
+ },
170
+ {resolveMsg: null, rejectMsg: '查找用户出错'}).then(
171
+ res => {
172
+ if (res.data.length === 0) {
173
+ this.$showAlert('验证信息有误,请重新输入用户编号进行查询并谨慎核对!!!', 'warning', 2000)
174
+ } else if (this.model.in_user_id !== res.data[0].f_user_id || this.model.in_userinfo_id !== res.data[0].f_userinfo_id || this.model.in_userfiles_id !== res.data[0].f_userfiles_id) {
175
+ this.$showAlert('验证信息有误,请重新输入用户编号进行查询并谨慎核对!!!', 'warning', 2000)
176
+ this.model.in_user_name = undefined
177
+ } else {
178
+ this.model.table_name = this.config.tableNames.map(item => item.table)
179
+ // this.model.f_auto_operate = this.model.f_auto_operate[0]
180
+ new HttpResetClass().load('post', 'rs/logic/transferRecords',
181
+ {
182
+ model: this.model,
183
+ records: this.records
184
+ },
185
+ {resolveMsg: null, rejectMsg: '转移记录出错'}).then(
186
+ res => {
187
+ this.$showAlert('操作成功', 'success', 2000)
188
+ this.clear()
189
+ }
190
+ )
191
+ }
192
+ }
193
+ )
194
+ },
195
+ clear () {
196
+ this.$dispatch('refresh')
197
+ },
198
+ searchByCode () {
199
+ if (this.model.in_userinfo_code === this.model.out_userinfo_code) {
200
+ this.$showAlert('转出方转入方信息不能一致,请谨慎核对!!!', 'warning', 2000)
201
+ return
202
+ }
203
+ new HttpResetClass().load('post', 'rs/sql/sale_getUser',
204
+ {
205
+ data: {
206
+ condition: `f_userinfo_code = '${this.model.in_userinfo_code}'`,
207
+ orderitem: ` f_userinfo_code Desc`
208
+ }
209
+ },
210
+ {resolveMsg: null, rejectMsg: '查找用户出错'}).then(
211
+ res => {
212
+ if (res.data.length > 0) {
213
+ Object.assign(this.model, {
214
+ in_userinfo_code: res.data[0].f_userinfo_code,
215
+ in_user_id: res.data[0].f_user_id,
216
+ in_userinfo_id: res.data[0].f_userinfo_id,
217
+ in_userfiles_id: res.data[0].f_userfiles_id,
218
+ in_user_name: res.data[0].f_user_name
219
+ })
220
+ } else {
221
+ this.$showAlert('查无用户信息,请谨慎核对!!!', 'warning', 2000)
222
+ this.model.in_user_name = undefined
223
+ }
224
+ }
225
+ )
226
+ }
227
+ },
228
+ events: {}
229
+ }
230
+ </script>
231
+
232
+ <style scoped>
233
+ #label {
234
+ margin-top: 5px;
235
+ }
236
+ </style>
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div class="binary flex" >
3
- <div class="row binary-left flex" style="width:99%;height:98%;margin-bottom:0px">
3
+ <div class="col-12 binary-left flex" style="width:99%;height:98%;margin-bottom:0px">
4
4
  <div class="auto"><user-base-info-new :row="row" @cancel-main="cancel"></user-base-info-new></div>
5
5
  <saletabbut v-if="row" v-ref:list style="height:72%;margin-top: 1%">
6
6
  <saletab header="流水查询" v-if="permission('流水查询')">
@@ -139,7 +139,7 @@
139
139
  <modal v-if="transfer" :show.sync="transfer" v-ref:modal backdrop="false">
140
140
  <header slot="modal-header" class="modal-header" style="display: none">
141
141
  </header>
142
- <article slot="modal-body" class="modal-body" style="padding:4rem 20px;">
142
+ <article slot="modal-body" class="modal-body" style="padding:4rem 20px;height:700px;">
143
143
  <transfer-records :row="row" :records="records" @refresh="transfer = false"></transfer-records>
144
144
  </article>
145
145
  <footer slot="modal-footer" class="modal-footer" style="display:none"> </footer>
@@ -112,6 +112,8 @@ let specialComp = {
112
112
 
113
113
  // 发票信息提示框
114
114
  'eticket-modal': (resolve) => { require(['./bill/EticketModal'], resolve) },
115
- 'card-meter-center': (resolve) => { require(['./CardMeterCenter'], resolve) }
115
+ 'card-meter-center': (resolve) => { require(['./CardMeterCenter'], resolve) },
116
+ // 过户
117
+ 'transfer-records':(resolve) => { require(['./TransferRecords'], resolve) }
116
118
  }
117
119
  exports.specialComp = specialComp