sale-client 3.6.111 → 3.6.113

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.111",
3
+ "version": "3.6.113",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -260,10 +260,9 @@ export default {
260
260
  return {
261
261
  config: {
262
262
  cancleother: false, // 默认可以撤销别人的操作
263
- // cancletime: false, // 默认可以冲正今天以前的操作
264
263
  hasBillManage: false, // 默认不启用发票管理
265
264
  cancelType: 'newBill',
266
- cancletime: true // 是否限制当天不能冲正
265
+ cancletime: false // 是否限制当天不能冲正
267
266
  },
268
267
  model: {
269
268
  f_payment: '',
@@ -142,11 +142,16 @@ export default {
142
142
  }
143
143
  },
144
144
  watch:{
145
- 'data' () {
145
+ 'data' (val) {
146
+ this.data = val
146
147
  this.initModel()
147
148
  }
148
149
  },
149
150
  methods: {
151
+ close () {
152
+ this.blackbatchshow = false
153
+ this.$dispatch('bacthColse')
154
+ },
150
155
  gg () {
151
156
  if (this.f_limit[0] === '限购气量') {
152
157
  this.model.f_limit_amount = ''
@@ -103,7 +103,7 @@
103
103
  ></datepicker>
104
104
  </div>
105
105
  <div class="form-group" :class="{'col-sm-2':!$parent.$parent.$parent.isdetail, 'col-sm-3':$parent.$parent.$parent.isdetail}">
106
- <label class="font_normal_body">到</label>
106
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
107
107
  <datepicker placeholder="截止日期"
108
108
  style="width:60%"
109
109
  class="datepicker"
@@ -314,7 +314,6 @@
314
314
  this.$showMessage('你没有新增黑名单的权限,请联系管理员!')
315
315
  return
316
316
  }
317
- this.style = 'col-sm-3'
318
317
  let dataArr = this.$refs.paged.$refs.grid.getRowData();
319
318
  if (dataArr.length === 0) {
320
319
  this.$showMessage('请选择要添加的用户')
@@ -2,18 +2,18 @@
2
2
  <div id="unit" class="flex-row">
3
3
  <black-list-list class="binary-left" v-ref:list :row="row" :style="style" @select-changed="selected"
4
4
  style="width:auto;"></black-list-list>
5
+ <black-list-batch style="height: 55%; margin-bottom: 30px;" :data="list" :blackbatchshow="isBatchShow" v-if="isBatchShow" v-ref:batch></black-list-batch>
5
6
  <div class="binary-right" style="overflow-y: auto;" v-if="isdetail" :style="{width: isdetail?'50%':'auto'}">
6
7
  <!-- <p class="bg-info text-center" style="padding: 8px;" v-if="row.pricecount">气价变更情况汇总</p> -->
7
8
  <!-- <black-list-batch style="margin-bottom: 30px;" :v-if="isBatchShow" v-ref:batch></black-list-batch>-->
8
- <black-list-batch style="height: 55%; margin-bottom: 30px;" :data="list" :blackbatchshow="isBatchShow" v-show="isBatchShow" v-ref:batch></black-list-batch>
9
9
  <black-list style="height: 55%; margin-bottom: 30px;" :list="list" :data="row" v-ref:gas></black-list>
10
- <div v-show="row" class="auto">
10
+ <div v-if="row" class="auto">
11
11
  <ul class="nav nav-tabs" >
12
12
  <li class="active"><a href="#">黑名单操作记录</a></li>
13
13
  </ul>
14
14
  <black-list-record v-ref:update :data="row"></black-list-record>
15
15
  </div>
16
- <div v-show="row" class="auto">
16
+ <div v-if="row" class="auto">
17
17
  <ul class="nav nav-tabs" >
18
18
  <li class="active"><a href="#">限购充值明细</a></li>
19
19
  </ul>
@@ -98,15 +98,14 @@
98
98
  this.row = null
99
99
  },
100
100
  'batchAdd' () {
101
- this.style = 'col-sm-3 form-group'
102
- this.isdetail = true
101
+ this.row = null
102
+ this.style = 'col-sm-2 form-group'
103
103
  this.blodid = ''
104
104
  this.isBatchShow = true
105
+ this.isdetail = false
105
106
  this.$refs.list.$refs.paged.$refs.grid.selectStore.selected = null
106
107
  const map = this.$refs.list.$refs.paged.$refs.grid.getRowData()
107
- const checked1 = this.$refs.list.checked1
108
108
  console.log('map',map)
109
- this.row = null
110
109
  this.list = map
111
110
  },
112
111
  'blackclose'(){
@@ -118,6 +117,9 @@
118
117
  this.isdetail = false
119
118
  this.row = null
120
119
  this.list = []
120
+ },
121
+ 'bacthColse' () {
122
+ this.isBatchShow = false
121
123
  }
122
124
  },
123
125
  watch: {
@@ -0,0 +1,61 @@
1
+ <template>
2
+ <div class="auto">
3
+ <validator name='v'>
4
+ <form novalidate class="form-horizontal">
5
+ <p class="bg-info text-center" style="padding: 8px;font-size: 20px">操作记录</p>
6
+ <!-- <data-grid :model="inData" v-ref:grid partial='list'>
7
+ <template partial='head'>-->
8
+ <table class="list_area table_sy" style="width: 600px">
9
+ <tr>
10
+ <th style="text-align: center">序号</th>
11
+ <th style="text-align: center">修改内容</th>
12
+ <th style="text-align: center">变更前</th>
13
+ <th style="text-align: center">变更后</th>
14
+ <th style="text-align: center">状态</th>
15
+ <th style="text-align: center">修改时间</th>
16
+ <th style="text-align: center">操作人</th>
17
+ </tr>
18
+
19
+ <tr v-for="row in recordlist">
20
+ <td style="text-align: center;">{{$index + 1}}</td>
21
+ <td style="text-align: center;">{{row.chinesename}}</td>
22
+ <td style="text-align: center;">{{row.oldvalue}}</td>
23
+ <td style="text-align: center;">{{row.newvalue}}</td>
24
+ <td style="text-align: center;">{{row.state}}</td>
25
+ <td style="text-align: center;">{{row.modifitime}}</td>
26
+ <td style="text-align: center;">{{row.operator}}</td>
27
+ </tr>
28
+ </table>
29
+ </form>
30
+
31
+ </validator>
32
+ </div>
33
+ </template>
34
+
35
+ <script>
36
+ export default {
37
+ name: 'addwarehouse',
38
+
39
+ data () {
40
+ return {
41
+ inData: [],
42
+ obj: {},
43
+ userid: this.$login.f.id
44
+
45
+ }
46
+ },
47
+ props: {
48
+ recordlist: Array
49
+ },
50
+ created () {
51
+ },
52
+ ready () {
53
+ },
54
+ methods: {
55
+
56
+ }
57
+ }
58
+ </script>
59
+
60
+ <style lang="less">
61
+ </style>
@@ -0,0 +1,136 @@
1
+ <template>
2
+ <div id="unit" class="row" :class="{'binary':showItem}">
3
+ <div :class="{'basic-main':!showItem,'binary-left':showItem}" style="height:98%">
4
+ <garbage-list @select-changed="idsearch" :showMessage.sync="showAddMssage" v-if="stepControl"
5
+ v-ref:stocklist></garbage-list>
6
+ </div>
7
+ <div class="binary-right" v-show="showItem">
8
+ <garbage-main :recordlist="recordlist" :model="model" :oldmodel="oldmodel" v-show="showItem"
9
+ :f_distribution_state="f_distribution_state" :row="row" :rowsdata="rowsdata1"
10
+ :warehousename="warehousename"></garbage-main>
11
+ </div>
12
+ </div>
13
+
14
+ </template>
15
+
16
+ <script>
17
+ import {HttpResetClass} from 'vue-client'
18
+ export default {
19
+ title: '垃圾费费记录维护',
20
+ name: 'GarbageManage',
21
+ data () {
22
+ return {
23
+ showupload: false,
24
+ recordlist: [],
25
+ model: {},
26
+ oldmodel: {},
27
+ showAddMssage: false,
28
+ // 分配状态z
29
+ f_distribution_state: '',
30
+ // 单选数据
31
+ row: {},
32
+ // 多选数据
33
+ rowsdata: [],
34
+ rowsdata1: {},
35
+ stepControl: true,
36
+ warehousename: '',
37
+ showItem: false
38
+ }
39
+ },
40
+ created () {
41
+ },
42
+ ready () {
43
+ this.arrAddFun()
44
+ },
45
+ methods: {
46
+ arrAddFun () {
47
+ // 拓展数组去空值的方法
48
+ Array.prototype.removeEmpty = function () {
49
+ for (var i = 0; i < this.length; i++) {
50
+ if (this[i] == '' || typeof (this[i]) == 'undefined') {
51
+ this.splice(i, 1)
52
+ i--
53
+ }
54
+ }
55
+ return this
56
+ }
57
+ },
58
+ // 合并二维数组并去空
59
+ mergeRowData (rowsdata) {
60
+ let data = []
61
+ // 合并
62
+ for (let array of rowsdata) {
63
+ data.push.apply(data, array)
64
+ }
65
+ // 去空
66
+ data = data.removeEmpty()
67
+ this.rowsdata = data
68
+ },
69
+ selected (row) {
70
+ this.row = row.val
71
+ },
72
+ join (rowsdata) {
73
+ },
74
+ idsearch (row) {
75
+ this.$refs.stocklist.editList = true
76
+ this.showAddMssage = true
77
+ this.showItem = true
78
+ this.model = JSON.parse(JSON.stringify(row.val))
79
+ this.oldmodel = JSON.parse(JSON.stringify(row.val))
80
+ this.getGroupData()
81
+ },
82
+ getGroupData () {
83
+ let data = {}
84
+ let condition = ' garbage_id= ' + this.model.id
85
+ condition += " and tablename='t_flotsamprice'"
86
+ data.condition = condition
87
+ let http = new HttpResetClass()
88
+ http.load('POST', 'rs/logic/OperationRecord',
89
+ {data: data},
90
+ {resolveMsg: null, rejectMsg: null}).then((res) => {
91
+ this.recordlist = res.data
92
+ })
93
+ }
94
+ },
95
+ events: {
96
+ 'change-state' (state) {
97
+ this.f_distribution_state = state
98
+ this.rowsdata1 = {}
99
+ },
100
+ 'getwarehouse' (a) {
101
+ this.warehousename = a
102
+ },
103
+ 'change-receive' (state) {
104
+ this.f_distribution_state = state
105
+ },
106
+ 'change-state1' (state) {
107
+ console.log('选择分配状态', state)
108
+ this.rowsdata1 = {}
109
+ },
110
+ 'select' (rowsdata) {
111
+ this.mergeRowData(rowsdata)
112
+ },
113
+ 'join' (rowsdata) {
114
+ this.rowsdata1 = Object.assign({}, rowsdata)
115
+ console.log('111:', this.rowsdata1)
116
+ },
117
+ // 重新查询
118
+ 'refresh' () {
119
+ },
120
+ 'close' () {
121
+ this.$refs.stocklist.editList = false
122
+ this.showItem = false
123
+ this.$refs.stocklist.$refs.paged.$refs.criteria.search()
124
+ console.log('this.$refs', this.$refs)
125
+ console.log('showitem', this.showItem)
126
+ },
127
+ // 调拨组件选择调出仓库,根据选择仓库进行查询
128
+ 'idsearch' (f_warehouse_id) {
129
+ }
130
+ }
131
+ }
132
+ </script>
133
+
134
+ <style lang="less">
135
+
136
+ </style>