sale-client 3.6.362 → 3.6.363

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.
File without changes
@@ -0,0 +1,2 @@
1
+ #Wed Aug 14 11:29:51 CST 2024
2
+ gradle.version=5.2.1
File without changes
@@ -29,12 +29,12 @@ var devConfig = {
29
29
  '/invoice/rs/logic/getInvoice': {
30
30
  target: serverRul
31
31
  },
32
- // '/rs/sql/filemanage_getUserfies':{
33
- // target: 'http://127.0.0.1:8080/'
34
- // },
35
- // '/rs/logic/importNetworkValve':{
36
- // target: 'http://127.0.0.1:8080/'
37
- // },
32
+ '/rs/sql/filemanage_getUserfies':{
33
+ target: 'http://127.0.0.1:8080/'
34
+ },
35
+ '/rs/logic/importNetworkValve':{
36
+ target: 'http://127.0.0.1:8080/'
37
+ },
38
38
  '/rs/file': {
39
39
  target: localUrl
40
40
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.6.362",
3
+ "version": "3.6.363",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -85,7 +85,7 @@
85
85
  <th><nobr>用气量</nobr></th>
86
86
  <th><nobr>用气金额 </nobr></th>
87
87
  <th><nobr>本期余额</nobr></th>
88
- <th v-if="!row.f_meter_type.includes('物联网表')"><nobr>是否缴费 </nobr></th>
88
+ <th><nobr>是否缴费 </nobr></th>
89
89
  <th v-if="!$parent.$parent.$parent.f_calculation.includes('表端结算')"><nobr>一阶单价 </nobr></th>
90
90
  <th v-if="!$parent.$parent.$parent.f_calculation.includes('表端结算')"><nobr>一阶气量 </nobr></th>
91
91
  <th v-if="!$parent.$parent.$parent.f_calculation.includes('表端结算')"><nobr>二阶单价 </nobr></th>
@@ -111,7 +111,7 @@
111
111
  <td style="text-align:center">{{row.f_oughtamount}}</td>
112
112
  <td style="text-align:center">{{row.f_oughtfee}}</td>
113
113
  <td style="text-align:center">{{row.f_curbalance}}</td>
114
- <td style="text-align:center" v-if="!row.f_meter_type.includes('物联网表')">{{row.f_whether_pay}}</td>
114
+ <td style="text-align:center">{{row.f_whether_pay}}</td>
115
115
  <td style="text-align:center" v-if="!$parent.$parent.$parent.f_calculation.includes('表端结算')">{{row.f_stair1price}}</td>
116
116
  <td style="text-align:center" v-if="!$parent.$parent.$parent.f_calculation.includes('表端结算')">{{row.f_stairamount1}}</td>
117
117
  <td style="text-align:center" v-if="!$parent.$parent.$parent.f_calculation.includes('表端结算')">{{row.f_stair2price}}</td>
@@ -248,7 +248,8 @@
248
248
  props: ['row'],
249
249
  ready () {
250
250
  this.$refs.paged.$refs.criteria.model.f_hand_state = ['有效']
251
- this.f_calculation = this.row.f_calculation
251
+ this.f_calculation = this.row.f_calculation ? this.row.f_calculation : ''
252
+ console.log('123' + this.f_calculation)
252
253
  this.$refs.paged.$refs.criteria.search()
253
254
  // this.sumgasandmoney= this.$refs.paged.$refs.grid.model.sums
254
255
  for (let i in this.all) {
@@ -0,0 +1,221 @@
1
+ <template>
2
+ <div class="auto">
3
+ <validator name='v'>
4
+ <form novalidate class="form-horizontal">
5
+ <div class="row">
6
+ <div class="col-sm-6 form-group">
7
+ <label class="font_normal_body">停用时间</label>
8
+ <input type="text" class="input_search" v-model="disable.f_operate_date" style="width:60%" disabled placeholder="上次停用时间"/>
9
+ </div>
10
+ <div class="col-sm-6 form-group">
11
+ <label class="font_normal_body">操作人</label>
12
+ <input type="text" class="input_search" v-model="disable.f_operator" style="width:60%" disabled placeholder="操作人"/>
13
+ </div>
14
+ <div class="col-sm-12 form-group">
15
+ <label class="font_normal_body">停用原因</label>
16
+ <input type="text" class="input_search" v-model="disable.f_comments" style="width:60%" disabled placeholder="停用原因"/>
17
+ </div>
18
+ <div class="col-sm-12 form-group">
19
+ <label class="font_normal_body">其他原因</label>
20
+ <input type="text" class="input_search" v-model="disable.f_othereason" style="width:60%" disabled placeholder="停用原因"/>
21
+ </div>
22
+ </div>
23
+ <div class="row">
24
+ <div class="col-sm-4 form-group">
25
+ <label for="f_reason" class="font_normal_body">启用原因</label>
26
+ <v-select v-model="model.f_comments" style="width:60%"
27
+ placeholder='启用原因'
28
+ :value.sync="model.f_comments"
29
+ :options='reason'
30
+ v-ref:reason
31
+ close-on-select ></v-select>
32
+ </div>
33
+ <div class="checkbox col-sm-4" style="margin-left:5%" v-if="!kaifa&&row.f_meter_type ==='物联网表'">
34
+ <label>
35
+ <input style="zoom: 200%;top: 1px;left: 14px;" @click="changeisuse(true)" type="checkbox" name="optionsRadios" :id="'optionsRadios'+index" value="option1" :checked="kaifa?'checked':''">
36
+ 开阀
37
+ </label>
38
+ </div>
39
+ <div class="checkbox col-sm-4" style="margin-left:5%" v-if="kaifa&&row.f_meter_type ==='物联网表'">
40
+ <label>
41
+ <input style="zoom: 200%;top: 1px;left: 14px;" @click="changeisuse(false)" type="checkbox" name="optionsRadios" :id="'optionsRadios'+index" value="option1" :checked="kaifa?'checked':''">
42
+ 开阀
43
+ </label>
44
+ </div>
45
+ </div>
46
+ <div class="row" style="margin-top:1px;">
47
+ <div class="col-sm-8 form-group">
48
+ <label for="f_reason" class="font_normal_body">备&emsp;&emsp;注</label>
49
+ <input class="input_search" style="width:80%" v-model="model.f_othereason" placeholder="备注"/>
50
+ </div>
51
+ </div>
52
+ </form>
53
+ <div style="text-align:right;">
54
+ <button class="button_search button_spacing" @click="confirm()" :disabled='!$v.valid'>确认</button>
55
+ <button class="button_clear" @click="clean()" >取消</button>
56
+ </div>
57
+ <upload :blodid="model.f_userinfo_id" :businessid="randomBusinessId" isremark="true" :deleteimg="true" fusetype="表具启用"></upload>
58
+ </validator>
59
+ </div>
60
+ </template>
61
+ <script>
62
+ /**
63
+ *综合业务
64
+ *表具启用组件
65
+ */
66
+
67
+ let meterEnable = async function (self, model, row) {
68
+ let data = {
69
+ f_userfiles_id: {
70
+ f_userfiles_id: row.f_userfiles_id,
71
+ f_table_state: '正常',
72
+ version: row.version
73
+ },
74
+ f_user_id: row.f_user_id,
75
+ record_userinfo: row.f_userinfo_id,
76
+ f_userinfo_id: row.f_userinfo_id,
77
+ f_user_name: row.f_user_name,
78
+ f_user_phone: row.f_user_phone,
79
+ f_state: '有效',
80
+ f_comments: model.f_comments[0],
81
+ f_othereason: model.f_othereason,
82
+ f_operat_type: '启用',
83
+ f_describe: `${self.$login.f.name}对客户${row.f_user_name}进行表具启用操作`,
84
+ f_operator: self.$login.f.name,
85
+ f_operatorid: self.$login.f.id,
86
+ f_orgid: self.$login.f.orgid,
87
+ f_orgname: self.$login.f.orgs,
88
+ f_depid: self.$login.f.depids,
89
+ f_depname: self.$login.f.deps,
90
+ f_zoneid: self.$login.f.zoneid,
91
+ f_zones: self.$login.f.zones
92
+ }
93
+ let returnData = await self.$resetpost('rs/entity/t_enable', data, {resolveMsg: '表具启用成功', rejectMsg: '表具启用失败'})
94
+ console.log('1111111111111')
95
+ console.log(returnData)
96
+ console.log('111111111111')
97
+ let param1 = []
98
+ for (let row of self.resid) {
99
+ param1.push({id: row.id})
100
+ }
101
+ let param = {
102
+ param: param1,
103
+ f_blobid: returnData.data.id
104
+ }
105
+ await self.$resetpost('rs/logic/updatefiles', param)
106
+ if(self.kaifa){
107
+ let array = [{
108
+ f_user_id: self.row.f_userfiles_id,
109
+ f_alias: self.row.f_alias,
110
+ f_userinfo_id: self.row.f_userinfo_id,
111
+ f_orgname: self.$login.f.orgs,
112
+ f_orgid: self.$login.f.orgid,
113
+ f_meternumber: self.row.f_meternumber
114
+ }]
115
+ await self.$resetpost('rs/logic/iot_instructUpdateAndDelect',
116
+ {
117
+ data: {
118
+ data1: {
119
+ f_apply_type: '阀门控制',
120
+ userid: array,
121
+ nowDate: new Date(),
122
+ f_apply_value: '开阀',
123
+ f_apply_beizhu: '表具停用自动开阀',
124
+ f_apply_operator: self.$login.f.name
125
+ },
126
+ data2: {
127
+ userid: array,
128
+ instructtype: '阀门控制',
129
+ isOpen: '开阀',
130
+ instructTitle: '手动开阀',
131
+ f_instruct_state: '待发送',
132
+ inputtor: self.$login.f.name
133
+ }
134
+ }
135
+ })
136
+ }
137
+ self.$dispatch('success')
138
+ }
139
+
140
+ export default {
141
+ title: '启用管理',
142
+ props: ['row'],
143
+ data () {
144
+ return {
145
+ model: {
146
+ },
147
+ select: {
148
+ f_date: '',
149
+ f_reason: ''
150
+ },
151
+ resid:[],
152
+ randomBusinessId:null,
153
+ reason: this.$appdata.getParam('启用原因'),
154
+ disable: {},
155
+ kaifa:false
156
+ }
157
+ },
158
+ ready () {
159
+ this.deactivatedReason()
160
+ this.getRandomId()
161
+ },
162
+ events: {
163
+ // 删除Resid数组元素
164
+ 'delResid' (val) {
165
+ this.resid.$remove({id: val, f_biobid: ''})
166
+ // this.resid.splice(this.resid.indexOf({id:val,f_biobid:''}),1);
167
+ },
168
+ // 增加Resid数组元素
169
+ 'resid' (val) {
170
+ console.log('-=', val)
171
+ this.resid.push({id: val, f_biobid: ''})
172
+ }
173
+ },
174
+ methods: {
175
+ getRandomId () {
176
+ this.randomBusinessId = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
177
+ let res = Math.random() * 16 | 0
178
+ let v = c == 'x' ? res : (res & 0x3 | 0x8)
179
+ return v.toString(16)
180
+ })
181
+ },
182
+ changeisuse(val){
183
+ if(val){
184
+ this.kaifa = true
185
+ }else{
186
+ this.kaifa = false
187
+ }
188
+ },
189
+ // 查询停用原因
190
+ async deactivatedReason () {
191
+ let data = {
192
+ tablename: 't_disable',
193
+ condition: `id = (select max(id) from t_disable where f_userfiles_id = '${this.row.f_userfiles_id}')`
194
+ }
195
+ let res = await this.$resetpost('rs/sql/saleSingleTable', {data: data}, {resolveMsg: null, rejectMsg: '获取上次停用原因失败'})
196
+ this.disable = res.data[0]
197
+ },
198
+ confirm () {
199
+ meterEnable(this, this.model, this.row)
200
+ // this.$LogicService.meterEnable(this.model, this.row)
201
+ // .then(
202
+ // (res) => this.$dispatch('success', '表具启用', this.row, res)
203
+ // ).catch(
204
+ // (error) => {
205
+ // if (error.state === 603) {
206
+ // this.$error('重复提交')
207
+ // return
208
+ // }
209
+ // this.$dispatch('error', '表具启用', this.row, error)
210
+ // }
211
+ // )
212
+ },
213
+ clean () {
214
+ this.$dispatch('refresh')
215
+ }
216
+ }
217
+ }
218
+ </script>
219
+
220
+ <style>
221
+ </style>
@@ -0,0 +1,121 @@
1
+ <template>
2
+ <partial-view v-ref:pv>
3
+ <div class="row">
4
+ <label class="col-sm-4">客户名称:</label>
5
+ <span class="col-sm-8" style="text-align:left">{{model.f_user_name}}</span>
6
+ </div>
7
+ <div class="row">
8
+ <label class="col-sm-4">表编号:</label>
9
+ <span class="col-sm-8" style="text-align:left">{{model.f_user_id}}</span>
10
+ </div>
11
+ <div class="row">
12
+ <label class="col-sm-4">启用原因:</label>
13
+ <pre style="padding:0" class="col-sm-8">{{model.f_reason}}</pre>
14
+ </div>
15
+ <div class="row">
16
+ <label class = "col-sm-4">备注:</label>
17
+ <pre style="padding:0" class = "col-sm-8">{{model.f_othereason}}</pre>
18
+ </div>
19
+ <div class="row">
20
+ <div class="row">
21
+ <label class="col-sm-4">操作人:</label>
22
+ <span class="col-sm-8" style="text-align:left">{{model.f_operator}}</span>
23
+ </div>
24
+ <div class="row">
25
+ <label class="col-sm-4">操作时间:</label>
26
+ <span class="col-sm-8" style="text-align:left">{{data.f_operate_date}}</span>
27
+ </div>
28
+ <div class="row">
29
+ <button class="button_search" style="margin-left:9%" @click="fileUpload()">附件查看</button>
30
+ </div>
31
+
32
+ <!-- 弹窗组件 -->
33
+ <div v-if="showUpload" class="modal">
34
+ <div class="modal-content">
35
+ <span class="close" @click="showUpload = false">&times;</span>
36
+ <upload-img :blodid="data.f_userinfo_id" :businessid="data.id" isremark="true" fusetype="表具启用"></upload-img>
37
+ </div>
38
+ </div>
39
+ </partial-view>
40
+ </template>
41
+
42
+ <script>
43
+ export default {
44
+ title: '表具启用详情',
45
+ props: ['data'],
46
+ data () {
47
+ return {
48
+ model: {},
49
+ showUpload: false
50
+ }
51
+ },
52
+ mounted () {
53
+ console.log('组件已挂载')
54
+ console.log('初始 model:', this.model)
55
+ },
56
+ ready () {
57
+ console.log('this.data', this.data)
58
+ let sql = 'getEnable'
59
+ let condition = {
60
+ id: this.data.id,
61
+ f_userinfo_id: this.data.f_userinfo_id
62
+ }
63
+ this.$info(`加载数据, sql:${sql}`)
64
+ this.$refs.pv.load('rs/logic/getOneData', {data: {sql: sql, params: condition}}).then((a) => {
65
+ this.model = a.data
66
+ }).catch((error) => {
67
+ if (error.status) {
68
+ this.$warn(`加载数据出错, ${JSON.stringify(error)}`)
69
+ return
70
+ }
71
+ throw error
72
+ })
73
+ },
74
+ methods: {
75
+ fileUpload () {
76
+ this.showUpload = true
77
+ console.log('文件上传按钮被点击')
78
+ console.log('客户名称:', this.model.f_user_name) // 打印 model.f_user_name
79
+ console.log('客户名称:', this.model) // 打印 model.f_user_name
80
+ }
81
+ }
82
+ }
83
+ </script>
84
+
85
+ <style>
86
+ /* 样式可根据需要调整 */
87
+ .modal {
88
+ display: block;
89
+ position: fixed;
90
+ z-index: 1;
91
+ left: 0;
92
+ top: 0;
93
+ width: 100%;
94
+ height: 100%;
95
+ overflow: auto;
96
+ background-color: rgb(0,0,0);
97
+ background-color: rgba(0,0,0,0.4);
98
+ }
99
+
100
+ .modal-content {
101
+ background-color: #fefefe;
102
+ margin: 15% auto;
103
+ padding: 20px;
104
+ border: 1px solid #888;
105
+ width: 80%;
106
+ }
107
+
108
+ .close {
109
+ color: #aaa;
110
+ float: right;
111
+ font-size: 28px;
112
+ font-weight: bold;
113
+ }
114
+
115
+ .close:hover,
116
+ .close:focus {
117
+ color: black;
118
+ text-decoration: none;
119
+ cursor: pointer;
120
+ }
121
+ </style>