sale-client 3.4.153 → 3.4.155

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.
Files changed (70) hide show
  1. package/build/dev-server.js +8 -10
  2. package/package.json +1 -1
  3. package/src/components/charge/ChargeOper.vue +230 -230
  4. package/src/components/charge/HandList.vue +6 -0
  5. package/src/components/charge/gasloss/gasLossOperate.vue +5 -5
  6. package/src/components/meterBook/MeterManger.vue +61 -61
  7. package/src/components/revenue/HandManager/MeterBookList.vue +488 -488
  8. package/src/components/revenue/HandManager/MeterBookUser.vue +722 -722
  9. package/src/components/revenue/HandManager/OverdueSet.vue +45 -45
  10. package/src/components/revenue/base/rightview/CardList.vue +2 -0
  11. package/src/components/revenue/comprehen/ComprehenOperation/OtherGas/OtherGas.vue +348 -348
  12. package/src/components/revenue/comprehen/ComprehenOperation/OverCharge/OverUseCharge.vue +407 -407
  13. package/src/components/revenue/comprehen/Maintenance/hand/handListMaintain.vue +638 -638
  14. package/src/components/revenue/comprehen/handAudit/MeterReadAudit.vue +342 -342
  15. package/src/components/webMeter/paramSave/ParamHistory.vue +1 -1
  16. package/src/filiale/{weinan → WEINAN}/AutomaticPurse.vue +0 -0
  17. package/src/filiale/{weinan → WEINAN}/CardList.vue +0 -0
  18. package/src/filiale/{weinan → WEINAN}/CardMeterCenter.vue +0 -0
  19. package/src/filiale/{weinan → WEINAN}/CardMeterChargeCancel.vue +0 -0
  20. package/src/filiale/{weinan → WEINAN}/ChangeMeter.vue +0 -0
  21. package/src/filiale/{weinan → WEINAN}/ChargeList.vue +0 -0
  22. package/src/filiale/{weinan → WEINAN}/ChargeManageNew.vue +0 -0
  23. package/src/filiale/{weinan → WEINAN}/ChargeQueryUser.vue +0 -0
  24. package/src/filiale/{weinan → WEINAN}/ChargeRecordQuery.vue +0 -0
  25. package/src/filiale/{weinan → WEINAN}/DisableManage.vue +0 -0
  26. package/src/filiale/{weinan → WEINAN}/EnableManage.vue +0 -0
  27. package/src/filiale/{weinan → WEINAN}/FileAddressManage.vue +0 -0
  28. package/src/filiale/{weinan → WEINAN}/FileUserAddress.vue +0 -0
  29. package/src/filiale/{weinan → WEINAN}/HighMeter.vue +0 -0
  30. package/src/filiale/{weinan → WEINAN}/IOTMeterCenter.vue +0 -0
  31. package/src/filiale/{weinan → WEINAN}/MachineMeterCenter.vue +0 -0
  32. package/src/filiale/{weinan → WEINAN}/MeterMessage.vue +0 -0
  33. package/src/filiale/{weinan → WEINAN}/MeterinfoTest.vue +0 -0
  34. package/src/filiale/{weinan → WEINAN}/OffGasAddGas.vue +0 -0
  35. package/src/filiale/{weinan → WEINAN}/OtherGas.vue +0 -0
  36. package/src/filiale/{weinan → WEINAN}/OverUseCharge.vue +0 -0
  37. package/src/filiale/{weinan → WEINAN}/RecordCancel.vue +0 -0
  38. package/src/filiale/{weinan → WEINAN}/RecordQueryUser.vue +0 -0
  39. package/src/filiale/{weinan → WEINAN}/ReplaceCardManage.vue +0 -0
  40. package/src/filiale/{weinan → WEINAN}/ShowCardSellGas.vue +0 -0
  41. package/src/filiale/{weinan → WEINAN}/Stairinfo.vue +0 -0
  42. package/src/filiale/{weinan → WEINAN}/TransferManage.vue +0 -0
  43. package/src/filiale/{weinan → WEINAN}/UserBaseInfoNew.vue +0 -0
  44. package/src/filiale/{weinan → WEINAN}/UserEssentialInfoTest.vue +0 -0
  45. package/src/filiale/{weinan → WEINAN}/UserGeneralInfoTest.vue +0 -0
  46. package/src/filiale/{weinan → WEINAN}/UserInfoDetailManageNew.vue +0 -0
  47. package/src/filiale/{weinan → WEINAN}/Userinfo.vue +0 -0
  48. package/src/filiale/{weinan → WEINAN}/gasmove.vue +0 -0
  49. package/src/filiale/{weinan → WEINAN}/meterinfodetail.vue +0 -0
  50. package/src/filiale/{weinan → WEINAN}/plugins/FileManageService.js +0 -0
  51. package/src/filiale/{weinan → WEINAN}/plugins/getTimeService.js +0 -0
  52. package/src/filiale/{weinan → WEINAN}/sale.js +0 -0
  53. package/src/filiale/{weinan → WEINAN}/sale.js~Stashed changes +0 -0
  54. package/src/filiale/{weinan → WEINAN}/static/mainicon//347/237/251/345/275/2421828.png +0 -0
  55. package/src/filiale/liaoyuan/MeterBookUser.vue +722 -0
  56. package/src/filiale/liaoyuan/sale.js +3 -1
  57. package/src/filiale/qianneng/CardList.vue +490 -490
  58. package/src/filiale/qianneng/FilesManage/FileUserFiles.vue +994 -994
  59. package/src/filiale/qianneng/FilesManage/UserEssentialInfoTest.vue +322 -322
  60. package/src/filiale/qianneng/FilesManageNew/UserEssentialInfoTest.vue +318 -318
  61. package/src/filiale/qianneng/MeterMessage.vue +192 -192
  62. package/src/filiale/qianneng/machine/MachineMeterCenter.vue +730 -730
  63. package/src/filiale/qianneng/revenue/ChargeManage.vue +32 -32
  64. package/src/filiale/qianneng/revenue/comprehen/closeaccount/Batchmanage.vue +58 -58
  65. package/src/filiale/qianneng/sale.js +49 -49
  66. package/src/filiale/qingtongxia/HandList.vue +4 -0
  67. package/src/filiale/zhongyi/MeterinfoTest.vue +921 -0
  68. package/src/filiale/zhongyi/sale.js +6 -0
  69. package/src/main.js +23 -23
  70. package/yarn-error.log +8859 -0
@@ -10,9 +10,9 @@ var compiler = webpack(config)
10
10
 
11
11
  // Define HTTP proxies to your custom API backend
12
12
  // https://github.com/chimurai/http-proxy-middleware
13
- var bendi = 'http://121.36.106.17:8400',bendi1 = 'http://121.36.106.17:8400'
13
+ var bendi = 'http://121.36.106.17:8400/',bendi1 = 'http://121.36.106.17:8400/'
14
14
  // 公司测试服务
15
- var fuwu = 'http://121.36.106.17:8400'
15
+ var fuwu = 'http://47.93.217.125:8400/'
16
16
  //铜川正式
17
17
  // var fuwu = 'http://61.134.55.234:9999/'
18
18
  //铜川测试
@@ -44,7 +44,7 @@ var proxyTable = {
44
44
  },
45
45
  // 查找资源服务数据
46
46
  '/rs/logic/getLogin': {
47
- target: 'https://qnjtkf.cn:7400/rs/logic/getLogin'
47
+ target: fuwu
48
48
  },
49
49
  // 查找资源服务数据
50
50
  '/rs/logic/getInitData': {
@@ -53,7 +53,7 @@ var proxyTable = {
53
53
  '/rs/logic/getSaleInitData': {
54
54
  target: fuwu
55
55
  },
56
- '/invoice': {
56
+ '/invoice':{
57
57
  target: fuwu
58
58
  },
59
59
  // 用户登录服务地址
@@ -88,20 +88,18 @@ var proxyTable = {
88
88
  target: fuwu
89
89
  },
90
90
  '/rs/report': {
91
- // target: 'https://qnjtkf.cn:7400'
92
- target: fuwu
91
+ target: 'http://121.36.106.17:8400/'
93
92
  },
94
93
  '/rs/vue': {
95
94
  target: fuwu
96
95
  },
97
96
  '/webmeter': {
98
- // target: 'https://qnjtkf.cn:7400'
99
- target: fuwu
97
+ target: 'http://192.168.50.4:8450'
100
98
  },
101
99
  '/rs': {
102
100
  // target: 'http://192.168.30.63:8081/'
103
- // target: 'https://qnjtkf.cn:7400'
104
- target: fuwu
101
+ target: 'http://47.93.217.125:8400/'
102
+ // target:fuwu
105
103
  }
106
104
  }
107
105
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.4.153",
3
+ "version": "3.4.155",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -1,230 +1,230 @@
1
- <template>
2
- <div class="form-inline" style="height: auto">
3
- <div class="form-group" v-for="btn in operBtns">
4
- <button :id="btn.name" type="button" :style="btn.name=='其他欠费' ?'color:red':'color:black'" :class="[($index === 0) ? 'btn btn-click' : 'btn btn-un-click']" @click="business(btn)" :disabled="noButton" ><span :style="btn.name=='其他欠费' ?'color:red':'color:black'">{{btn.name}}</span></button>
5
-
6
- </div>
7
- </div>
8
- <div v-show="isBusiness" style="height: auto" class="select-overspread">
9
- <route v-ref:route></route>
10
- </div>
11
- </template>
12
-
13
- <script>
14
- import { HttpResetClass } from 'vue-client'
15
- let getNewmetermsg = async function (self, row) {
16
- if (row.f_userfiles_id && row.f_userfiles_id.length > 0) {
17
- // 获取用户信息
18
- let getUser = await self.$resetpost('rs/sql/sale_getUser', {
19
- data: {
20
- condition: `u.f_userfiles_id='${row.f_userfiles_id}' `,
21
- orderitem: `u.f_userfiles_id Desc`
22
- }
23
- }, {resolveMsg: '读卡新的用户成功', rejectMsg: '读卡新的用户失败'})
24
- if (getUser.data.length > 0) {
25
- await self.$showAlert('换表成功', 'success', 200)
26
- self.data = getUser.data[0]
27
- }
28
- }
29
- }
30
- let getBtnsGen = async function (self) {
31
- let http = new HttpResetClass()
32
- let param = {
33
- f_userfiles_id: self.data.f_userfiles_id
34
- }
35
- if (self.cardInfo) {
36
- param.cardInfo = self.cardInfo
37
- }
38
- let res = await http.load('POST', 'rs/logic/getOperBtns', {
39
- data: param
40
- }, {
41
- resolveMsg: null,
42
- rejectMsg: '获取业务按钮失败!!'
43
- })
44
- let getBtns = res.data
45
- console.log('获取的业务按钮', getBtns)
46
- console.log('有没有用户信息', self.data)
47
- if (self.$login.r.length === 0) {
48
- self.$showAlert('您没有相关的业务操作权限, 请联系管理员!!', 'warning', 2000)
49
- } else {
50
- self.temp = []
51
- for (let i = 0; i < getBtns.length; i++) {
52
- if (self.$login.r.includes(getBtns[i].name)) {
53
- // 进行权限验证
54
- self.temp.push(getBtns[i])
55
- }
56
- }
57
- // 如果有未写卡记录,添加线下写卡按钮
58
- if (self.data.unWriteSell) {
59
- if (self.data.unWriteSell.length > 0) {
60
- self.temp.push({name: '线下写卡',
61
- value: {
62
- 'weight': 0,
63
- 'routeName': 'un-write-card-center'
64
- }})
65
- }
66
- }
67
- if (self.data.f_user_nature == '单位') {
68
- self.temp.push({name: '维管收费',
69
- value: {
70
- 'weight': 5,
71
- 'routeName': 'repair-charge'
72
- }})
73
- }
74
- if (self.data.f_meter_type == '物联网表') {
75
- if (self.data.f_hascard == '是') {
76
- if (self.data.f_whether_hairpin == '未发') {
77
- if(self.data.f_share_times != '' && self.data.f_share_times == '是' && self.data.f_times>0){
78
- self.temp.push({
79
- name: '补卡',
80
- value: {
81
- 'weight': 2,
82
- 'routeName': 'replace-card-manage'
83
- }
84
- })
85
- }else{
86
- }
87
-
88
- }
89
- }
90
- }
91
- // 如果卡上有气,添加购气撤销按钮
92
- if (self.cardInfo.Gas > 0 || self.cardInfo.Money > 0 || (self.cardInfo.TotalMoney > 0 && self.data.f_support_purchase == '是')) {
93
- self.temp.push({name: '购气撤销',
94
- value: {
95
- 'weight': 0,
96
- 'routeName': 'card-meter-charge-cancel'
97
- }})
98
- }
99
- /* // 如果是预备户,删除发卡售气按钮
100
- if (self.data.f_user_state == '预备') {
101
- self.temp.splice(self.temp.findIndex(item => item.name === '发卡售气'), 1)
102
- } */
103
-
104
- // 根据权重将业务按钮排序
105
- self.operBtns = self.temp.sort((a, b) => {
106
- return a.value.weight - b.value.weight
107
- })
108
-
109
- // 当有调价补差时,只展示调价补差按钮
110
- let adjustSenders = self.operBtns.find((row) => {
111
- return row.name == '调价补差'
112
- })
113
- if (adjustSenders) {
114
- self.operBtns = []
115
- self.operBtns.push(adjustSenders)
116
- }
117
-
118
- if (self.operBtns.length > 0) {
119
- self.isBusiness = true
120
- self.$refs.route.init(self.operBtns[0].value.routeName, {row: self.data, cardData: self.cardInfo})
121
- self.styleChange(self.operBtns[0])
122
- }
123
- }
124
- }
125
-
126
- export default {
127
- title: '业务操作',
128
- data () {
129
- return {
130
- operBtns: [],
131
- isBusiness: false,
132
- noButton: false // 业务请求时禁止按钮点击
133
- }
134
- },
135
- props: ['data', 'cardInfo'],
136
- ready () {
137
- getBtnsGen(this)
138
- console.log('data,cardInfo', this.data, this.cardInfo)
139
-
140
- },
141
- methods: {
142
- business (btn) {
143
- // // 处理按钮样式
144
- // this.styleChange(btn.name)
145
- // this.isBusiness = true
146
- // this.$refs.route.init(btn.value.routeName, {row: this.data, cardData: this.cardInfo})
147
- if(this.$refs.route.cards.length>0){
148
- if(this.$refs.route.cards[0].title == '增值服务管理'){
149
- this.$showMessage('切换页面后,当前页面数据会丢失,是否切换?',['confirm','cancel']).then(res=>{
150
- if(res == 'cancel'){
151
- return;
152
- }else{
153
- // 处理按钮样式
154
- this.styleChange(btn.name)
155
- this.isBusiness = true
156
- this.$refs.route.init(btn.value.routeName, {row: this.data, cardData: this.cardInfo})
157
- }
158
- })
159
- }else{
160
- // 处理按钮样式
161
- this.styleChange(btn.name)
162
- this.isBusiness = true
163
- this.$refs.route.init(btn.value.routeName, {row: this.data, cardData: this.cardInfo})
164
- }
165
- }
166
- },
167
-
168
- styleChange (name) {
169
- this.operBtns.forEach((res) => {
170
- if (res.name === name) {
171
- if (document.getElementById(res.name)) {
172
- document.getElementById(res.name).style.backgroundColor = '#6aa6e2'
173
- document.getElementById(res.name).style.color = 'white'
174
- }
175
- } else {
176
- if (document.getElementById(res.name)) {
177
- document.getElementById(res.name).style.backgroundColor = 'white'
178
- document.getElementById(res.name).style.color = 'black'
179
- }
180
- }
181
- })
182
- }
183
- },
184
- watch: {
185
- 'data' () {
186
- getBtnsGen(this)
187
- }
188
- },
189
- events: {
190
- 'no-button' () {
191
- this.noButton = true
192
- },
193
- 'has-button' () {
194
- this.noButton = false
195
- },
196
- 'get-new-row' (row) {
197
- console.log('xxxxxx', row)
198
- // 发生换表成功
199
- getNewmetermsg(this, row)
200
- },
201
- 'button-specifies' (buttonObj, data) {
202
- console.log('指定按钮。。', buttonObj)
203
- // buttonObj 格式: {name:'机表收费', value: 'machine-meter-center'}
204
- if (buttonObj) {
205
- this.styleChange(buttonObj.name)
206
- this.$refs.route.init(buttonObj.value, {row: data})
207
- }
208
- }
209
- }
210
- }
211
- </script>
212
-
213
- <style scoped>
214
-
215
- .btn-click{
216
- background-color: #6aa6e2;
217
- border-radius: 5px;
218
- color: white;
219
- /*border-color: black;*/
220
- border: solid 1px #c7c7c7;
221
- }
222
-
223
- .btn-un-click{
224
- background-color: white;
225
- border-radius: 5px;
226
- color: black;
227
- /*border-color: black;*/
228
- border: solid 1px #c7c7c7;
229
- }
230
- </style>
1
+ <template>
2
+ <div class="form-inline" style="height: auto">
3
+ <div class="form-group" v-for="btn in operBtns">
4
+ <button :id="btn.name" type="button" :style="btn.name=='其他欠费' ?'color:red':'color:black'" :class="[($index === 0) ? 'btn btn-click' : 'btn btn-un-click']" @click="business(btn)" :disabled="noButton" ><span :style="btn.name=='其他欠费' ?'color:red':'color:black'">{{btn.name}}</span></button>
5
+
6
+ </div>
7
+ </div>
8
+ <div v-show="isBusiness" style="height: auto" class="select-overspread">
9
+ <route v-ref:route></route>
10
+ </div>
11
+ </template>
12
+
13
+ <script>
14
+ import { HttpResetClass } from 'vue-client'
15
+ let getNewmetermsg = async function (self, row) {
16
+ if (row.f_userfiles_id && row.f_userfiles_id.length > 0) {
17
+ // 获取用户信息
18
+ let getUser = await self.$resetpost('rs/sql/sale_getUser', {
19
+ data: {
20
+ condition: `u.f_userfiles_id='${row.f_userfiles_id}' `,
21
+ orderitem: `u.f_userfiles_id Desc`
22
+ }
23
+ }, {resolveMsg: '读卡新的用户成功', rejectMsg: '读卡新的用户失败'})
24
+ if (getUser.data.length > 0) {
25
+ await self.$showAlert('换表成功', 'success', 200)
26
+ self.data = getUser.data[0]
27
+ }
28
+ }
29
+ }
30
+ let getBtnsGen = async function (self) {
31
+ let http = new HttpResetClass()
32
+ let param = {
33
+ f_userfiles_id: self.data.f_userfiles_id
34
+ }
35
+ if (self.cardInfo) {
36
+ param.cardInfo = self.cardInfo
37
+ }
38
+ let res = await http.load('POST', 'rs/logic/getOperBtns', {
39
+ data: param
40
+ }, {
41
+ resolveMsg: null,
42
+ rejectMsg: '获取业务按钮失败!!'
43
+ })
44
+ let getBtns = res.data
45
+ console.log('获取的业务按钮', getBtns)
46
+ console.log('有没有用户信息', self.data)
47
+ if (self.$login.r.length === 0) {
48
+ self.$showAlert('您没有相关的业务操作权限, 请联系管理员!!', 'warning', 2000)
49
+ } else {
50
+ self.temp = []
51
+ for (let i = 0; i < getBtns.length; i++) {
52
+ if (self.$login.r.includes(getBtns[i].name)) {
53
+ // 进行权限验证
54
+ self.temp.push(getBtns[i])
55
+ }
56
+ }
57
+ // 如果有未写卡记录,添加线下写卡按钮
58
+ if (self.data.unWriteSell) {
59
+ if (self.data.unWriteSell.length > 0) {
60
+ self.temp.push({name: '线下写卡',
61
+ value: {
62
+ 'weight': 0,
63
+ 'routeName': 'un-write-card-center'
64
+ }})
65
+ }
66
+ }
67
+ if (self.data.f_user_nature == '单位') {
68
+ self.temp.push({name: '维管收费',
69
+ value: {
70
+ 'weight': 5,
71
+ 'routeName': 'repair-charge'
72
+ }})
73
+ }
74
+ if (self.data.f_meter_type == '物联网表') {
75
+ if (self.data.f_hascard == '是') {
76
+ if (self.data.f_whether_hairpin == '未发') {
77
+ if(self.data.f_share_times != '' && self.data.f_share_times == '是' && self.data.f_times>0){
78
+ self.temp.push({
79
+ name: '补卡',
80
+ value: {
81
+ 'weight': 2,
82
+ 'routeName': 'replace-card-manage'
83
+ }
84
+ })
85
+ }else{
86
+ }
87
+
88
+ }
89
+ }
90
+ }
91
+ // 如果卡上有气,添加购气撤销按钮
92
+ if (self.cardInfo.Gas > 0 || self.cardInfo.Money > 0 || (self.cardInfo.TotalMoney > 0 && self.data.f_support_purchase == '是')) {
93
+ self.temp.push({name: '购气撤销',
94
+ value: {
95
+ 'weight': 0,
96
+ 'routeName': 'card-meter-charge-cancel'
97
+ }})
98
+ }
99
+ /* // 如果是预备户,删除发卡售气按钮
100
+ if (self.data.f_user_state == '预备') {
101
+ self.temp.splice(self.temp.findIndex(item => item.name === '发卡售气'), 1)
102
+ } */
103
+
104
+ // 根据权重将业务按钮排序
105
+ self.operBtns = self.temp.sort((a, b) => {
106
+ return a.value.weight - b.value.weight
107
+ })
108
+
109
+ // 当有调价补差时,只展示调价补差按钮
110
+ let adjustSenders = self.operBtns.find((row) => {
111
+ return row.name == '调价补差'
112
+ })
113
+ if (adjustSenders) {
114
+ self.operBtns = []
115
+ self.operBtns.push(adjustSenders)
116
+ }
117
+
118
+ if (self.operBtns.length > 0) {
119
+ self.isBusiness = true
120
+ self.$refs.route.init(self.operBtns[0].value.routeName, {row: self.data, cardData: self.cardInfo})
121
+ self.styleChange(self.operBtns[0])
122
+ }
123
+ }
124
+ }
125
+
126
+ export default {
127
+ title: '业务操作',
128
+ data () {
129
+ return {
130
+ operBtns: [],
131
+ isBusiness: false,
132
+ noButton: false // 业务请求时禁止按钮点击
133
+ }
134
+ },
135
+ props: ['data', 'cardInfo'],
136
+ ready () {
137
+ getBtnsGen(this)
138
+ console.log('data,cardInfo', this.data, this.cardInfo)
139
+
140
+ },
141
+ methods: {
142
+ business (btn) {
143
+ // // 处理按钮样式
144
+ // this.styleChange(btn.name)
145
+ // this.isBusiness = true
146
+ // this.$refs.route.init(btn.value.routeName, {row: this.data, cardData: this.cardInfo})
147
+ if(this.$refs.route.cards.length>0){
148
+ if(this.$refs.route.cards[0].title == '增值服务管理'){
149
+ this.$showMessage('切换页面后,当前页面数据会丢失,是否切换?',['confirm','cancel']).then(res=>{
150
+ if(res == 'cancel'){
151
+ return;
152
+ }else{
153
+ // 处理按钮样式
154
+ this.styleChange(btn.name)
155
+ this.isBusiness = true
156
+ this.$refs.route.init(btn.value.routeName, {row: this.data, cardData: this.cardInfo})
157
+ }
158
+ })
159
+ }else{
160
+ // 处理按钮样式
161
+ this.styleChange(btn.name)
162
+ this.isBusiness = true
163
+ this.$refs.route.init(btn.value.routeName, {row: this.data, cardData: this.cardInfo})
164
+ }
165
+ }
166
+ },
167
+
168
+ styleChange (name) {
169
+ this.operBtns.forEach((res) => {
170
+ if (res.name === name) {
171
+ if (document.getElementById(res.name)) {
172
+ document.getElementById(res.name).style.backgroundColor = '#6aa6e2'
173
+ document.getElementById(res.name).style.color = 'white'
174
+ }
175
+ } else {
176
+ if (document.getElementById(res.name)) {
177
+ document.getElementById(res.name).style.backgroundColor = 'white'
178
+ document.getElementById(res.name).style.color = 'black'
179
+ }
180
+ }
181
+ })
182
+ }
183
+ },
184
+ watch: {
185
+ 'data' () {
186
+ getBtnsGen(this)
187
+ }
188
+ },
189
+ events: {
190
+ 'no-button' () {
191
+ this.noButton = true
192
+ },
193
+ 'has-button' () {
194
+ this.noButton = false
195
+ },
196
+ 'get-new-row' (row) {
197
+ console.log('xxxxxx', row)
198
+ // 发生换表成功
199
+ getNewmetermsg(this, row)
200
+ },
201
+ 'button-specifies' (buttonObj, data) {
202
+ console.log('指定按钮。。', buttonObj)
203
+ // buttonObj 格式: {name:'机表收费', value: 'machine-meter-center'}
204
+ if (buttonObj) {
205
+ this.styleChange(buttonObj.name)
206
+ this.$refs.route.init(buttonObj.value, {row: data})
207
+ }
208
+ }
209
+ }
210
+ }
211
+ </script>
212
+
213
+ <style scoped>
214
+
215
+ .btn-click{
216
+ background-color: #6aa6e2;
217
+ border-radius: 5px;
218
+ color: white;
219
+ /*border-color: black;*/
220
+ border: solid 1px #c7c7c7;
221
+ }
222
+
223
+ .btn-un-click{
224
+ background-color: white;
225
+ border-radius: 5px;
226
+ color: black;
227
+ /*border-color: black;*/
228
+ border: solid 1px #c7c7c7;
229
+ }
230
+ </style>
@@ -110,6 +110,12 @@
110
110
  isSelected (row) {
111
111
  return this.row === row
112
112
  }
113
+ },
114
+ watch: {
115
+ 'f_userfiles_id'(){
116
+ let condition = `f_userfiles_id = '${this.f_userfiles_id}' `
117
+ this.model.search(condition)
118
+ },
113
119
  }
114
120
  }
115
121
  </script>
@@ -104,12 +104,12 @@
104
104
  close-on-select clear-button>
105
105
  </v-select>
106
106
  </div>
107
- <div class="col-sm-4 auto" style="text-align:right;">
108
- <label for="f_collection" ><font size="6px" style="font-weight:bold;color:darkred">收&emsp;款&emsp;:&emsp;{{model.f_collection}}</font></label>
107
+ <div class="col-sm-4 auto">
108
+ <label for="f_collection" style="text-align:right;"><font size="6px" style="font-weight:bold;color:darkred">收&emsp;款:{{model.f_collection}}</font></label>
109
109
  </div>
110
- <div class="col-sm-12 form-group">
110
+ <div class="col-sm-9 form-group">
111
111
  <label class=" font_normal_body">&emsp;备&emsp;&emsp;注</label>
112
- <input class="input_search" style="width:87%"
112
+ <input class="input_search" style="width:70%"
113
113
  v-model="model.f_comments"
114
114
  placeholder="备注">
115
115
  </div>
@@ -335,7 +335,7 @@
335
335
  })
336
336
 
337
337
  if (money != 0) {
338
- this.model.f_collection = money.toFixed(4)
338
+ this.model.f_collection = money.toFixed(2)
339
339
  }
340
340
  },
341
341
  addadetail () {