sale-client 3.6.73 → 3.6.75

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.6.73",
3
+ "version": "3.6.75",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div class="auto basic-main" style="height:95%">
3
- <criteria-paged :model="model" v-ref:paged>
3
+ <criteria-paged :model="model" v-ref:paged @sort="sort">
4
4
  <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
5
5
  <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
6
  <div class="row">
@@ -16,6 +16,12 @@
16
16
  condition="f_user_name = '{}'" placeholder="用户姓名"
17
17
  >
18
18
  </div>
19
+ <div class="form-group col-sm-2">
20
+ <label class="font_normal_body">客户地址</label>
21
+ <input type="text" class="form-control" v-model="model.f_buy_address_phone" style="width:60%"
22
+ condition="f_buy_address_phone like '%{}%'" placeholder="用户姓名"
23
+ >
24
+ </div>
19
25
  <div class="form-group col-sm-2">
20
26
  <label class="font_normal_body">票据状态</label>
21
27
  <v-select id="f_bill_state"
@@ -32,6 +38,12 @@
32
38
  <div style="float: right">
33
39
  <button class="button_search" @click="search()">查 询</button>
34
40
  <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
41
+ <export-excel :data="$parent.$parent.getCondition"
42
+ :field="$parent.$parent.fields"
43
+ sqlurl="rs/logic/saleExport" sql-name="eticket_query"
44
+ template-name='发票记录导出'
45
+ :choose-col="true">
46
+ </export-excel>
35
47
  <div
36
48
  :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
37
49
  @click="$parent.$parent.criteriaShow=!$parent.$parent.criteriaShow"
@@ -63,6 +75,28 @@
63
75
  style="width:60%">
64
76
  </datepicker>
65
77
  </div>
78
+ <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
79
+ <label class="font_normal_body">发票金额</label>
80
+ <div class="row">
81
+ <input type="text" style="width:27%" class="input_search" v-model="model.f_collection_small"
82
+ condition="f_total_money >= {} " placeholder="">
83
+ <label class="font_normal_body"> ≤ x ≤ </label>
84
+ <input type="text" style="width:27%" class="input_search" v-model="model.f_collection_big"
85
+ condition="f_total_money <= {} " placeholder="">
86
+ </div>
87
+ </div>
88
+ <div class="form-group col-sm-2">
89
+ <label class="font_normal_body">开票人&nbsp;&nbsp;</label>
90
+ <input type="text" class="form-control" v-model="model.f_operator" style="width:60%"
91
+ condition="f_operator = '{}' " placeholder="开票人"
92
+ >
93
+ </div>
94
+ <div class="form-group col-sm-2">
95
+ <label class="font_normal_body">收款人&nbsp;&nbsp;</label>
96
+ <input type="text" class="form-control" v-model="model.sell_operator" style="width:60%"
97
+ condition="sell_operator = '{}'" placeholder="收款人"
98
+ >
99
+ </div>
66
100
  </div>
67
101
  </div>
68
102
  </criteria>
@@ -79,7 +113,8 @@
79
113
  <nobr>客户地址电话</nobr>
80
114
  </th>
81
115
  <th>
82
- <nobr>实收金额</nobr>
116
+ <data-order field="f_total_money" name="实收金额"
117
+ :order.sync="$parent.$parent.$parent.orderFields.f_total_money"></data-order>
83
118
  </th>
84
119
  <th>
85
120
  <nobr>不含税金额</nobr>
@@ -105,6 +140,12 @@
105
140
  <th>
106
141
  <nobr>开票时间</nobr>
107
142
  </th>
143
+ <th>
144
+ <nobr>开票人</nobr>
145
+ </th>
146
+ <th>
147
+ <nobr>收款人</nobr>
148
+ </th>
108
149
  <th>
109
150
  <nobr>查看发票</nobr>
110
151
  </th>
@@ -127,6 +168,8 @@
127
168
  <th style="text-align:center">{{ row.f_bill_state }}</th>
128
169
  <th style="text-align:center">{{ row.f_charge_type }}</th>
129
170
  <th style="text-align:center">{{ row.f_operate_date }}</th>
171
+ <th style="text-align:center">{{ row.f_operator }}</th>
172
+ <th style="text-align:center">{{ row.sell_operator }}</th>
130
173
  <th style="text-align:center">
131
174
  <button class="btn btn-link" v-if="row.f_bill_url"
132
175
  @click="$parent.$parent.$parent.watch_ch(row.f_bill_url)">
@@ -186,7 +229,7 @@ export default {
186
229
  title: '发票管理',
187
230
  data () {
188
231
  return {
189
- model: new PagedList('rs/sql/eticket_query', 20),
232
+ model: new PagedList('rs/sql/eticket_query', 20, {orderitem: this.orderitem ? '"' + this.orderitem + ' "' : `'f_operate_date desc'`}),
190
233
  criteriaShow: false,
191
234
  eticket_show: false,
192
235
  orgCondtionStr: '',
@@ -202,6 +245,27 @@ export default {
202
245
  show: false,
203
246
  bz: '',
204
247
  row: {},
248
+ orderFields: {
249
+ f_operate_date: 'desc'
250
+ },
251
+ // 排序
252
+ orderitem: '',
253
+ fields: {
254
+ 'f_userinfo_code': '客户编号',
255
+ 'f_user_name': '客户姓名',
256
+ 'f_buy_address_phone': '用户地址',
257
+ 'f_total_money': '实收金额',
258
+ 'f_tax_money': '不含税金额',
259
+ 'f_invoice_type': '发票类型',
260
+ 'f_bill_code': '发票代码',
261
+ 'f_fpqqlsh': '发票流水号',
262
+ 'f_bill_number': '发票号码',
263
+ 'f_bill_state': '发票状态',
264
+ 'f_charge_type': '发票类型',
265
+ 'f_operate_date': '开票时间',
266
+ 'f_operator': '开票人',
267
+ 'sell_operator': '收款人'
268
+ },
205
269
  install_show: false
206
270
  }
207
271
  },
@@ -223,6 +287,23 @@ export default {
223
287
  selfSearch (args) {
224
288
  this.model.search(args.condition, args.model)
225
289
  },
290
+ sort (field, rule) {
291
+ // 将所有排序方式设为不排序,实现相互排斥
292
+ for (let key in this.orderFields) {
293
+ if (key === field) {
294
+ this.orderFields[key] = rule
295
+ } else {
296
+ this.orderFields[key] = 'no'
297
+ }
298
+ }
299
+ // 如果新规则不排序,还原为默认排序
300
+ if (rule === 'no') {
301
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
302
+ } else {
303
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
304
+ }
305
+ this.search()
306
+ },
226
307
  async confirm () {
227
308
  this.eticket_show = true
228
309
  await this.$refs.eticketbill.rushRedInvoice({id: this.row.f_sell_id, eticket_id: this.row.id, bz: this.bz})
@@ -256,6 +337,12 @@ export default {
256
337
  }
257
338
  },
258
339
  computed: {
340
+ getCondition () {
341
+ return {
342
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
343
+ orderitem: this.orderitem ? `${this.orderitem}` : " f_operate_date desc"
344
+ }
345
+ }
259
346
  },
260
347
  events: {
261
348
  'search' () {
@@ -114,6 +114,7 @@ export default {
114
114
  f_add_gas: this.model.f_add_gas,
115
115
  f_userinfo_id: this.data.f_userinfo_id,
116
116
  f_user_id: this.data.f_user_id,
117
+ f_calculation:this.data.f_calculation,
117
118
  f_userfiles_id: this.data.f_userfiles_id,
118
119
  f_user_name: this.data.f_user_name,
119
120
  f_user_type: this.data.f_user_type,
@@ -0,0 +1,61 @@
1
+ <template>
2
+ <!-- <div v-if="listpage">-->
3
+ <tab-button v-ref:list>
4
+ <tabs header="物联网表调价补差">
5
+ <price-adjustment-webmeter @deal-msg="dealMsg"></price-adjustment-webmeter>
6
+ </tabs>
7
+ <tabs header="机表调价补差">
8
+ <price-adjustment @deal-msg="dealMsg"></price-adjustment>
9
+ </tabs>
10
+ <tabs header="卡表调价补差">
11
+ <price-adjustment-card v-if="show[1]" @deal-msg="dealMsg"></price-adjustment-card>
12
+ </tabs>
13
+ <tabs header="记录调价补差">
14
+ <price-adjustment-selling @deal-msg="dealMsg"></price-adjustment-selling>
15
+ </tabs>
16
+ </tab-button>
17
+ <!-- </div>-->
18
+ <!-- <div v-if="!listpage">-->
19
+ <!-- <meter-info-manage :row="rowData" :f_start_date="f_start_date" :f_end_date="f_end_date"></meter-info-manage>-->
20
+ <!-- </div>-->
21
+ </template>
22
+
23
+ <script>
24
+ import TabButton from '../../components/revenue/comprehen/SpecialUser/common/TabButton'
25
+ import Tabs from '../../components/revenue/comprehen/SpecialUser/common/Tabs'
26
+
27
+ export default {
28
+ name: 'PriceAdjustmentManage',
29
+ title: '调价补差管理',
30
+ data () {
31
+ return {// 页面开关
32
+ f_start_date: '',
33
+ f_end_date: '',
34
+ listpage: true,
35
+ width: {
36
+ left: '100%',
37
+ right: '0%'
38
+ },
39
+ // searchNumber:'',
40
+ rowData: {},
41
+ show: [true]
42
+ }
43
+ },
44
+ components: {Tabs, TabButton},
45
+ ready () {
46
+ console.log(this.$refs.list)
47
+ console.log('业务查询')
48
+ },
49
+ methods: {
50
+ cancel (obj) {
51
+ this.listpage = true
52
+ },
53
+ dealMsg (obj) {
54
+ }
55
+ }
56
+ }
57
+ </script>
58
+
59
+ <style scoped>
60
+
61
+ </style>
@@ -43,4 +43,5 @@ export default function () {
43
43
  Vue.component('gas-price-list', (resolve) => { require(['./comprehen/StairPrice/GasPriceList'], resolve) })
44
44
  // 操作历史
45
45
  Vue.component('card-list', (resolve) => { require(['./CardList'], resolve) })
46
+ Vue.component('price-adjustment-manage', (resolve) => { require(['./PriceAdjustmentManage'], resolve) })
46
47
  }