sale-client 3.5.228 → 3.5.230
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/build/dev-server.js +81 -81
- package/package.json +1 -1
- package/src/components/charge/business/IOTMeterCenter.vue +0 -1
- package/src/filiale/liaoyuan/CardList.vue +8 -8
- package/src/filiale/qianneng/FilesManage/UserGeneralInfoTest.vue +2 -2
- package/src/filiale/rizhao/replaceMentList.vue +4 -3
- package/src/filiale/rizhao/replacementSingleInfoOperation.vue +296 -0
- package/src/filiale/rizhao/sale.js +3 -0
- package/src/filiale/rongcheng/MeterinfoTest.vue +21 -2
- package/src/filiale/rongchuang/GasPriceList.vue +359 -0
- package/src/filiale/rongchuang/sale.js +2 -0
- package/src/filiale/yuansheng/CardMeterCenter.vue +945 -0
- package/src/filiale/yuansheng/IOTMeterCenter.vue +784 -0
- package/src/filiale/yuansheng/sale.js +7 -0
- package/src/main.js +1 -1
package/build/dev-server.js
CHANGED
|
@@ -1,81 +1,81 @@
|
|
|
1
|
-
var path = require('path')
|
|
2
|
-
const [localUrl, serverRul] = ['http://
|
|
3
|
-
var merge = require('webpack-merge')
|
|
4
|
-
var baseConfig = require('./webpack.dev.conf')
|
|
5
|
-
var devConfig = {
|
|
6
|
-
devServer: {
|
|
7
|
-
contentBase: path.join(__dirname, 'src'),
|
|
8
|
-
hot: true,
|
|
9
|
-
publicPath: baseConfig.output.publicPath,
|
|
10
|
-
historyApiFallback: true,
|
|
11
|
-
port: 8089,
|
|
12
|
-
open: true,
|
|
13
|
-
stats: {
|
|
14
|
-
colors: false, // 配置控制台输出彩色日志
|
|
15
|
-
chunks: false, // 不输出构建 chunk 信息
|
|
16
|
-
children: false // 不输出子模块构建信息
|
|
17
|
-
},
|
|
18
|
-
proxy: {
|
|
19
|
-
'/rs/file': {
|
|
20
|
-
target: serverRul
|
|
21
|
-
},
|
|
22
|
-
// 查找资源服务数据
|
|
23
|
-
'/rs/search': {
|
|
24
|
-
target: serverRul
|
|
25
|
-
},
|
|
26
|
-
// 查找资源服务数据
|
|
27
|
-
'/rs/logic/getLogin': {
|
|
28
|
-
target: serverRul
|
|
29
|
-
},
|
|
30
|
-
// 查找资源服务数据
|
|
31
|
-
'/rs/logic/getInitData': {
|
|
32
|
-
target: serverRul
|
|
33
|
-
},
|
|
34
|
-
'/rs/logic/getSaleInitData': {
|
|
35
|
-
target: serverRul
|
|
36
|
-
},
|
|
37
|
-
// 用户登录服务地址
|
|
38
|
-
'/rs/user': {
|
|
39
|
-
target: serverRul
|
|
40
|
-
},
|
|
41
|
-
'/rs/path': {
|
|
42
|
-
target: serverRul
|
|
43
|
-
},
|
|
44
|
-
'/rs/data': {
|
|
45
|
-
target: serverRul
|
|
46
|
-
},
|
|
47
|
-
'/rs/license': {
|
|
48
|
-
target: serverRul
|
|
49
|
-
},
|
|
50
|
-
'/rs/db': {
|
|
51
|
-
target: serverRul
|
|
52
|
-
},
|
|
53
|
-
'/excel': {
|
|
54
|
-
target: serverRul
|
|
55
|
-
},
|
|
56
|
-
'/rs/config': {
|
|
57
|
-
target: serverRul
|
|
58
|
-
},
|
|
59
|
-
'/rs/report': {
|
|
60
|
-
target: serverRul
|
|
61
|
-
},
|
|
62
|
-
'/rs/vue': {
|
|
63
|
-
target: serverRul
|
|
64
|
-
},
|
|
65
|
-
'/rs/logic': {
|
|
66
|
-
target: localUrl
|
|
67
|
-
},
|
|
68
|
-
'/rs/sql': {
|
|
69
|
-
target: localUrl
|
|
70
|
-
},
|
|
71
|
-
'/webmeter': {
|
|
72
|
-
target: serverRul
|
|
73
|
-
},
|
|
74
|
-
'/rs': {
|
|
75
|
-
target: serverRul
|
|
76
|
-
// changeOrigin: true
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
module.exports = merge(baseConfig, devConfig)
|
|
1
|
+
var path = require('path')
|
|
2
|
+
const [localUrl, serverRul] = ['http://61.240.138.248:8400', 'http://61.240.138.248:8400']
|
|
3
|
+
var merge = require('webpack-merge')
|
|
4
|
+
var baseConfig = require('./webpack.dev.conf')
|
|
5
|
+
var devConfig = {
|
|
6
|
+
devServer: {
|
|
7
|
+
contentBase: path.join(__dirname, 'src'),
|
|
8
|
+
hot: true,
|
|
9
|
+
publicPath: baseConfig.output.publicPath,
|
|
10
|
+
historyApiFallback: true,
|
|
11
|
+
port: 8089,
|
|
12
|
+
open: true,
|
|
13
|
+
stats: {
|
|
14
|
+
colors: false, // 配置控制台输出彩色日志
|
|
15
|
+
chunks: false, // 不输出构建 chunk 信息
|
|
16
|
+
children: false // 不输出子模块构建信息
|
|
17
|
+
},
|
|
18
|
+
proxy: {
|
|
19
|
+
'/rs/file': {
|
|
20
|
+
target: serverRul
|
|
21
|
+
},
|
|
22
|
+
// 查找资源服务数据
|
|
23
|
+
'/rs/search': {
|
|
24
|
+
target: serverRul
|
|
25
|
+
},
|
|
26
|
+
// 查找资源服务数据
|
|
27
|
+
'/rs/logic/getLogin': {
|
|
28
|
+
target: serverRul
|
|
29
|
+
},
|
|
30
|
+
// 查找资源服务数据
|
|
31
|
+
'/rs/logic/getInitData': {
|
|
32
|
+
target: serverRul
|
|
33
|
+
},
|
|
34
|
+
'/rs/logic/getSaleInitData': {
|
|
35
|
+
target: serverRul
|
|
36
|
+
},
|
|
37
|
+
// 用户登录服务地址
|
|
38
|
+
'/rs/user': {
|
|
39
|
+
target: serverRul
|
|
40
|
+
},
|
|
41
|
+
'/rs/path': {
|
|
42
|
+
target: serverRul
|
|
43
|
+
},
|
|
44
|
+
'/rs/data': {
|
|
45
|
+
target: serverRul
|
|
46
|
+
},
|
|
47
|
+
'/rs/license': {
|
|
48
|
+
target: serverRul
|
|
49
|
+
},
|
|
50
|
+
'/rs/db': {
|
|
51
|
+
target: serverRul
|
|
52
|
+
},
|
|
53
|
+
'/excel': {
|
|
54
|
+
target: serverRul
|
|
55
|
+
},
|
|
56
|
+
'/rs/config': {
|
|
57
|
+
target: serverRul
|
|
58
|
+
},
|
|
59
|
+
'/rs/report': {
|
|
60
|
+
target: serverRul
|
|
61
|
+
},
|
|
62
|
+
'/rs/vue': {
|
|
63
|
+
target: serverRul
|
|
64
|
+
},
|
|
65
|
+
'/rs/logic': {
|
|
66
|
+
target: localUrl
|
|
67
|
+
},
|
|
68
|
+
'/rs/sql': {
|
|
69
|
+
target: localUrl
|
|
70
|
+
},
|
|
71
|
+
'/webmeter': {
|
|
72
|
+
target: serverRul
|
|
73
|
+
},
|
|
74
|
+
'/rs': {
|
|
75
|
+
target: serverRul
|
|
76
|
+
// changeOrigin: true
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
module.exports = merge(baseConfig, devConfig)
|
package/package.json
CHANGED
|
@@ -495,14 +495,14 @@
|
|
|
495
495
|
co(cancel)
|
|
496
496
|
},
|
|
497
497
|
selfSearch (args) {
|
|
498
|
-
if (!this.$login.f.parent.parent.name.includes('统一资源管理')) {
|
|
499
|
-
|
|
500
|
-
}
|
|
501
|
-
if (this.f_orgid) {
|
|
502
|
-
|
|
503
|
-
} else {
|
|
504
|
-
|
|
505
|
-
}
|
|
498
|
+
// if (!this.$login.f.parent.parent.name.includes('统一资源管理')) {
|
|
499
|
+
// args.condition += `and f_filialeids = '${this.$login.f.f_orgids}'`
|
|
500
|
+
// }
|
|
501
|
+
// if (this.f_orgid) {
|
|
502
|
+
// args.condition += `and r.f_orgid in ${this.f_orgid}`
|
|
503
|
+
// } else {
|
|
504
|
+
// args.condition += `and r.f_orgid = '${this.$login.f.orgid}'`
|
|
505
|
+
// }
|
|
506
506
|
if (this.authArr.includes('操作记录查询限定')) {
|
|
507
507
|
args.condition += ` and r.f_operatorid = '${this.$login.f.id}'`
|
|
508
508
|
}
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
|
|
24
24
|
<div style="height: auto;width: 100%">
|
|
25
25
|
<div style="margin-bottom: 2%; margin-top: 2%">
|
|
26
|
-
<img style="margin-top: -5px" src="
|
|
26
|
+
<img style="margin-top: -5px" src="../../../../static/images/lefticon/矩形1183.png">
|
|
27
27
|
<a style="font-size: 20px;font-weight: 500;">发票信息</a> <a style="color: #999999"></a>
|
|
28
28
|
</div>
|
|
29
29
|
<user-paper-info-test :baseinfo="data.baseinfo"></user-paper-info-test>
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
</template>
|
|
107
107
|
|
|
108
108
|
<script>
|
|
109
|
-
import UserPaperInfoTest from '
|
|
109
|
+
import UserPaperInfoTest from '../../../components/FilesManage/UserPaperInfoTest'
|
|
110
110
|
import {HttpResetClass} from 'vue-client'
|
|
111
111
|
|
|
112
112
|
let getFileGen = async function (self, data) {
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
placeholder='用户类型'
|
|
43
43
|
:options='$parent.$parent.equipmentType'
|
|
44
44
|
condition="f_user_type = '{}'"
|
|
45
|
+
|
|
45
46
|
close-on-select clear-button>
|
|
46
47
|
</v-select>
|
|
47
48
|
</div>
|
|
@@ -114,8 +115,8 @@
|
|
|
114
115
|
</div>
|
|
115
116
|
<div :class="$parent.$parent.styles">
|
|
116
117
|
<label class="font_normal_body">补卡原因</label>
|
|
117
|
-
<input type="text" style="width:60%" class="input_search" v-model="model.
|
|
118
|
-
condition="
|
|
118
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_comments"
|
|
119
|
+
condition="f_comments like '{}%'" placeholder='补卡原因'>
|
|
119
120
|
</div>
|
|
120
121
|
<!-- <div :class="$parent.$parent.styles">-->
|
|
121
122
|
<!-- <label class="font_normal_body">补卡日期</label>-->
|
|
@@ -208,7 +209,7 @@
|
|
|
208
209
|
<td style="text-align: center;"><nobr>{{row.f_payment}}</nobr></td>
|
|
209
210
|
<td style="text-align: center;"><nobr>{{row.f_bill_style}}</nobr></td>
|
|
210
211
|
<td style="text-align: center;"><nobr>{{row.f_ispick_table}}</nobr></td>
|
|
211
|
-
<td style="text-align: center;"><nobr>{{row.
|
|
212
|
+
<td style="text-align: center;"><nobr>{{row.f_comments}}</nobr></td>
|
|
212
213
|
<td style="text-align: center;"><nobr>{{row.f_fillcard_date}}</nobr></td>
|
|
213
214
|
<td style="text-align: center;"><nobr>{{row.f_state}}</nobr></td>
|
|
214
215
|
<td style="text-align: center;"><nobr>{{row.f_orgname}}</nobr></td>
|
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="auto">
|
|
3
|
+
<validator name='a' @valid="addressValid(true)" @invalid="addressValid(false)">
|
|
4
|
+
<form class="form-horizontal">
|
|
5
|
+
<div class="row">
|
|
6
|
+
<div class="col-sm-4">
|
|
7
|
+
<label class="font_normal_body">表编号 </label>
|
|
8
|
+
<input type="text" v-model="model.f_userinfo_id" disabled=disabled style="width: 60%" class="input_search">
|
|
9
|
+
</div>
|
|
10
|
+
<div class="col-sm-4">
|
|
11
|
+
<label class="font_normal_body">用户编号</label>
|
|
12
|
+
<input type="text" v-model="model.f_user_id" disabled=disabled style="width: 60%" class="input_search">
|
|
13
|
+
</div>
|
|
14
|
+
<div class="col-sm-4">
|
|
15
|
+
<label class="font_normal_body">用户姓名</label>
|
|
16
|
+
<input type="text" v-model="model.f_user_name" disabled=disabled style="width: 60%" class="input_search">
|
|
17
|
+
</div>
|
|
18
|
+
<!--<div class="col-sm-4">-->
|
|
19
|
+
<!--<label class="font_normal_body">收据类型</label>-->
|
|
20
|
+
<!--<input type="text" v-model="model.f_bill_style" style="width: 60%" class="input_search">-->
|
|
21
|
+
<!--</div>-->
|
|
22
|
+
</div>
|
|
23
|
+
<div class="row">
|
|
24
|
+
<div class="col-sm-4">
|
|
25
|
+
<label class="font_normal_body">用户类型</label>
|
|
26
|
+
<input type="text" v-model="model.f_user_type" disabled=disabled style="width: 60%" class="input_search">
|
|
27
|
+
</div>
|
|
28
|
+
<div class="col-sm-4">
|
|
29
|
+
<label class="font_normal_body">用气性质</label>
|
|
30
|
+
<input type="text" v-model="model.f_gasproperties" disabled=disabled style="width: 60%" class="input_search">
|
|
31
|
+
</div>
|
|
32
|
+
<div class="col-sm-4">
|
|
33
|
+
<label class="font_normal_body">补卡类型</label>
|
|
34
|
+
<input type="text" v-model="model.f_type" disabled=disabled style="width: 60%" class="input_search">
|
|
35
|
+
</div>
|
|
36
|
+
|
|
37
|
+
</div>
|
|
38
|
+
<div class="row">
|
|
39
|
+
<div class="col-sm-4">
|
|
40
|
+
<label class="font_normal_body">卡 号 </label>
|
|
41
|
+
<input type="text" v-model="model.f_card_id" disabled=disabled style="width: 60%" class="input_search">
|
|
42
|
+
</div>
|
|
43
|
+
<div class="col-sm-4">
|
|
44
|
+
<label class="font_normal_body">卡 费 </label>
|
|
45
|
+
<input type="text" v-model="model.f_cardfees" style="width: 60%" class="input_search">
|
|
46
|
+
</div>
|
|
47
|
+
<div class="col-sm-4">
|
|
48
|
+
<!-- <label class="font_normal_body">付款方式</label>-->
|
|
49
|
+
<!-- <input type="text" v-model="model.f_payment" style="width: 60%" class="input_search">-->
|
|
50
|
+
<label class="font_normal_body" title="参数:付款方式">付款方式</label>
|
|
51
|
+
<v-select id="f_payment"
|
|
52
|
+
v-model="model.f_payment" :value-single="true"
|
|
53
|
+
class="select_list select"
|
|
54
|
+
:value.sync="model.f_payment"
|
|
55
|
+
:options='paytype'
|
|
56
|
+
close-on-select >
|
|
57
|
+
</v-select>
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
<div class="row">
|
|
61
|
+
<div class="col-sm-4">
|
|
62
|
+
<label class="font_normal_body" title="参数:票据类型">票据类型</label>
|
|
63
|
+
<v-select :value.sync="model.f_bill_style" v-model="model.f_bill_style"
|
|
64
|
+
:options='papertype' :value-single="true"
|
|
65
|
+
class="select_list select"
|
|
66
|
+
close-on-select></v-select>
|
|
67
|
+
<!-- <label class="font_normal_body">票据类型</label>-->
|
|
68
|
+
<!-- <input type="text" v-model="model.f_bill_style" style="width: 60%" class="input_search">-->
|
|
69
|
+
</div>
|
|
70
|
+
<div class="col-sm-4">
|
|
71
|
+
<label class="font_normal_body">是否接表</label>
|
|
72
|
+
<input type="text" v-model="model.f_ispick_table" disabled=disabled style="width: 60%" class="input_search">
|
|
73
|
+
</div>
|
|
74
|
+
<div class="col-sm-4">
|
|
75
|
+
<label class="font_normal_body">补卡原因</label>
|
|
76
|
+
<input type="text" v-model="model.f_comments" style="width: 60%" class="input_search">
|
|
77
|
+
</div>
|
|
78
|
+
</div>
|
|
79
|
+
<div class="row">
|
|
80
|
+
<div class="col-sm-4">
|
|
81
|
+
<label class="font_normal_body">补卡日期</label>
|
|
82
|
+
<datepicker id="f_fillcard_date" placeholder="补卡日期" style="width:60%"
|
|
83
|
+
v-model="model.f_operate_date"
|
|
84
|
+
:value.sync="model.f_operate_date"
|
|
85
|
+
:format="'yyyy-MM-dd'"
|
|
86
|
+
:show-reset-button="true">
|
|
87
|
+
</datepicker>
|
|
88
|
+
</div>
|
|
89
|
+
<div class="col-sm-4">
|
|
90
|
+
<label class="font_normal_body">补卡状态</label>
|
|
91
|
+
<!-- <input type="text" v-model="model.f_fillcard_state" disabled=disabled style="width: 60%" class="input_search">-->
|
|
92
|
+
<v-select :value.sync="model.f_state" v-model="model.f_state"
|
|
93
|
+
:options='fillcard_state' :value-single="true"
|
|
94
|
+
class="select_list select"
|
|
95
|
+
close-on-select></v-select>
|
|
96
|
+
</div>
|
|
97
|
+
<div class="col-sm-4">
|
|
98
|
+
<label class="font_normal_body">组 织 </label>
|
|
99
|
+
<input type="text" v-model="model.f_orgname" disabled=disabled style="width: 60%" class="input_search">
|
|
100
|
+
</div>
|
|
101
|
+
|
|
102
|
+
</div>
|
|
103
|
+
<div class="row">
|
|
104
|
+
<div class="col-sm-4">
|
|
105
|
+
<label class="font_normal_body">部 门 </label>
|
|
106
|
+
<input type="text" v-model="model.f_depname" disabled=disabled style="width: 60%" class="input_search">
|
|
107
|
+
</div>
|
|
108
|
+
<div class="col-sm-4 ">
|
|
109
|
+
<label class="font_normal_body" title="参数:操作人员查询">操作人员</label>
|
|
110
|
+
<v-select :value.sync="model.f_operatorid"
|
|
111
|
+
v-model="model.f_operatorid"
|
|
112
|
+
:value-single="true" @change="selectoperator()"
|
|
113
|
+
:options='foperator'
|
|
114
|
+
close-on-select></v-select>
|
|
115
|
+
</div>
|
|
116
|
+
<div class="col-sm-4">
|
|
117
|
+
<label class="font_normal_body">流水号 </label>
|
|
118
|
+
<input type="text" v-model="model.f_serial_id" disabled=disabled style="width: 60%" class="input_search">
|
|
119
|
+
</div>
|
|
120
|
+
</div>
|
|
121
|
+
</form>
|
|
122
|
+
<div style="float: right">
|
|
123
|
+
<button class="button_search" @click="save">保存</button>
|
|
124
|
+
<button class="button_clear" @click="cancel">取消</button>
|
|
125
|
+
</div>
|
|
126
|
+
</validator>
|
|
127
|
+
<!--<modal :show.sync="showfiles" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">-->
|
|
128
|
+
<!--<article slot="modal-body">-->
|
|
129
|
+
<!--<upload :blodid="model.f_userinfo_id" :businessid="model.id" v-ref:upload fusetype="收费" isremark="true" style="width:auto" ></upload>-->
|
|
130
|
+
<!--</article>-->
|
|
131
|
+
<!--<footer slot="modal-footer" class="modal-footer">-->
|
|
132
|
+
<!--</footer>-->
|
|
133
|
+
<!--</modal>-->
|
|
134
|
+
<!--<!–文件上传按钮–>-->
|
|
135
|
+
<!--<button class="button_search" style="width: max-content" @click="uploadFiles()">上传附件</button>-->
|
|
136
|
+
</div>
|
|
137
|
+
</template>
|
|
138
|
+
|
|
139
|
+
<script>
|
|
140
|
+
import Vue from 'vue'
|
|
141
|
+
import {HttpResetClass} from 'vue-client'
|
|
142
|
+
import * as Util from "../../../src/Util";
|
|
143
|
+
var data
|
|
144
|
+
let readyGen = async function (self) {
|
|
145
|
+
await self.$LoadParams.loadParam(self.f_filialeid)
|
|
146
|
+
await self.$GetSaleParam.initinputtor()
|
|
147
|
+
await self.initoperator()
|
|
148
|
+
}
|
|
149
|
+
export default {
|
|
150
|
+
title: '基本信息',
|
|
151
|
+
data () {
|
|
152
|
+
return {
|
|
153
|
+
equipmentType: this.$appdata.getParam('打印格式') ? [{label: '', value: ''}, ...this.$appdata.getParam('打印格式')] : [],
|
|
154
|
+
// 构建数组来存储对象
|
|
155
|
+
editbank: true,
|
|
156
|
+
uploadText: '收费',
|
|
157
|
+
papertype: this.$appdata.getParam('票据类型') ? [{label: '', value: ''}, ...this.$appdata.getParam('票据类型')] : [],
|
|
158
|
+
paytype: this.$appdata.getParam('付款方式') ? [{label: '', value: ''}, ...this.$appdata.getParam('付款方式')] : [],
|
|
159
|
+
showfiles: false,
|
|
160
|
+
recordList: [],
|
|
161
|
+
foperator:[],
|
|
162
|
+
fileNameSet: {
|
|
163
|
+
// 要更改字段的中文名
|
|
164
|
+
'f_cardfees': '卡费',
|
|
165
|
+
'f_payment': '付款方式',
|
|
166
|
+
'f_bill_style': '票据类型',
|
|
167
|
+
'f_reason': '补卡原因',
|
|
168
|
+
'f_fillcard_date': '补卡日期',
|
|
169
|
+
'f_state':'补卡状态',
|
|
170
|
+
'f_operator':'操作人',
|
|
171
|
+
},
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
props: {
|
|
175
|
+
oldmodel: Object,
|
|
176
|
+
model: Object
|
|
177
|
+
},
|
|
178
|
+
|
|
179
|
+
ready () {
|
|
180
|
+
if (this.$login.r.includes('维护补卡信息')) {
|
|
181
|
+
this.editbank = true
|
|
182
|
+
}
|
|
183
|
+
this.oldmodel = JSON.parse(JSON.stringify(this.model))
|
|
184
|
+
this.model.f_bill_state = [this.oldmodel]
|
|
185
|
+
readyGen(this)
|
|
186
|
+
},
|
|
187
|
+
created () {
|
|
188
|
+
},
|
|
189
|
+
methods: {
|
|
190
|
+
initoperator(){
|
|
191
|
+
this.foperator=[]
|
|
192
|
+
console.log("this.$login-------------------------",this.$login,this.oldmodel,this.model)
|
|
193
|
+
let arr = this.$GetSaleParam.inputtors.filter((res) => {
|
|
194
|
+
if (res.rolestr != null && res.rolestr != '') {
|
|
195
|
+
return res.rolestr.indexOf('营业员') > -1 && res.f_department_name == this.model.f_depname
|
|
196
|
+
}
|
|
197
|
+
})
|
|
198
|
+
arr.forEach((res) => {
|
|
199
|
+
this.foperator.push({label: res.name, value: res.id})
|
|
200
|
+
})
|
|
201
|
+
},
|
|
202
|
+
selectoperator () {
|
|
203
|
+
let id = this.model.f_operatorid
|
|
204
|
+
if(!this.model.f_operatorid){
|
|
205
|
+
return
|
|
206
|
+
}
|
|
207
|
+
let http = new HttpResetClass()
|
|
208
|
+
http.load('POST', 'rs/sql/saleSingleTable',
|
|
209
|
+
{data:{tablename: 't_user',
|
|
210
|
+
condition: `id = '${id}'`}},
|
|
211
|
+
{resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
212
|
+
console.log('kanak,res', res)
|
|
213
|
+
if(res.data.length>0){
|
|
214
|
+
this.model.f_operator = res.data[0].name
|
|
215
|
+
}else{
|
|
216
|
+
this.model.f_operatorid=''
|
|
217
|
+
this.$showAlert('操作员信息未找到','warning',2000)
|
|
218
|
+
}
|
|
219
|
+
console.log('this.f_operatorid', this.model.f_operator)
|
|
220
|
+
})
|
|
221
|
+
},
|
|
222
|
+
cancel () {
|
|
223
|
+
this.$dispatch('close')
|
|
224
|
+
},
|
|
225
|
+
uploadFiles () {
|
|
226
|
+
this.showfiles = !this.showfiles
|
|
227
|
+
},
|
|
228
|
+
addressValid (val) {
|
|
229
|
+
},
|
|
230
|
+
save () {
|
|
231
|
+
// console.log(this.model.key)
|
|
232
|
+
this.recordList = [] // 清空,防止重复提交
|
|
233
|
+
console.log('newdate' + new Date())
|
|
234
|
+
console.log('MODEL BEFORE:', this.model)
|
|
235
|
+
for (var item in this.model) {
|
|
236
|
+
if (this.model[item] instanceof Array) {
|
|
237
|
+
this.model[item] = this.model[item].length > 0 ? this.model[item][0] : ''
|
|
238
|
+
}
|
|
239
|
+
if (this.model[item] != this.oldmodel[item] && this.model[item] !='s_timestamp') {
|
|
240
|
+
var car = { // 需要更改的字段
|
|
241
|
+
// t_fillcard
|
|
242
|
+
id: this.model.id,
|
|
243
|
+
f_user_id: this.model.f_user_id,
|
|
244
|
+
chinesename: this.fileNameSet[item],
|
|
245
|
+
fieldname: item,
|
|
246
|
+
tablename: 't_fillcard',
|
|
247
|
+
oldvalue: this.oldmodel[item],
|
|
248
|
+
newvalue: this.model[item],
|
|
249
|
+
state: '有效',
|
|
250
|
+
modifitime: Util.toStandardTimeString(),
|
|
251
|
+
operator: this.$login.f.name,
|
|
252
|
+
changemeter_id: this.model.id,
|
|
253
|
+
f_operate_date: this.model.f_operate_date,
|
|
254
|
+
f_cardfees: this.model.f_cardfees?this.model.f_cardfees:null,
|
|
255
|
+
f_payment: this.model.f_payment,
|
|
256
|
+
f_bill_style: this.model.f_bill_style,
|
|
257
|
+
f_reason: this.model.f_comments ? this.model.f_comments : '',
|
|
258
|
+
f_fillcard_date: this.model.f_operate_date,
|
|
259
|
+
f_operator : this.$login.f.name,
|
|
260
|
+
f_operatorid : this.$login.f.id,
|
|
261
|
+
f_orgid : this.$login.f.orgid,
|
|
262
|
+
f_orgname : this.$login.f.orgs,
|
|
263
|
+
f_depid : this.$login.f.depids,
|
|
264
|
+
f_depname : this.$login.f.deps
|
|
265
|
+
}
|
|
266
|
+
this.recordList.push(car)
|
|
267
|
+
// 该方法并未对chinesename fieldname operator等进行判断赋值,此暂写为定值
|
|
268
|
+
console.log('看看car的值', car)
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
this.model.f_reason=this.model.f_comments ? this.model.f_comments : ''
|
|
273
|
+
this.model.f_fillcard_date=this.model.f_operate_date
|
|
274
|
+
console.log('model--------abc-', this.model)
|
|
275
|
+
this.$resetpost('rs/logic/replacementCardSaving', {data: {recordlist: this.recordList, newData: this.model}}).then((res) => {
|
|
276
|
+
console.log('this.model', this.model)
|
|
277
|
+
})
|
|
278
|
+
this.$dispatch('close')
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
computed: {
|
|
282
|
+
fillcard_state () {
|
|
283
|
+
return [...this.$appdata.getParam('补卡状态')]
|
|
284
|
+
},
|
|
285
|
+
},
|
|
286
|
+
watch: {
|
|
287
|
+
'model'(){
|
|
288
|
+
this.initoperator()
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
</script>
|
|
293
|
+
|
|
294
|
+
<style scoped>
|
|
295
|
+
|
|
296
|
+
</style>
|
|
@@ -36,4 +36,7 @@ export default function () {
|
|
|
36
36
|
Vue.component('user-meterinfodetail', (resolve) => { require(['./meterinfodetail'], resolve) })
|
|
37
37
|
// 补卡记录列表页面
|
|
38
38
|
Vue.component('replace-mentlist', (resolve) => { require(['./replaceMentList'], resolve) })
|
|
39
|
+
// 单条记录维护界面
|
|
40
|
+
Vue.component('replacement-single-info-operation', (resolve) => { require(['./replacementSingleInfoOperation'], resolve) })
|
|
41
|
+
|
|
39
42
|
}
|
|
@@ -43,8 +43,15 @@
|
|
|
43
43
|
</div>
|
|
44
44
|
<div class="col-sm-4 form-group" >
|
|
45
45
|
<label for="f_bqf_type" class="font_normal_body">表前阀型号</label>
|
|
46
|
-
<
|
|
47
|
-
|
|
46
|
+
<v-select
|
|
47
|
+
:value.sync="row.f_bqf_type"
|
|
48
|
+
v-model="row.f_bqf_type"
|
|
49
|
+
width="60%"
|
|
50
|
+
search="true"
|
|
51
|
+
enterPush="true"
|
|
52
|
+
:options="bqftype"
|
|
53
|
+
placeholder="表前阀型号"
|
|
54
|
+
close-on-select></v-select>
|
|
48
55
|
</div>
|
|
49
56
|
<div class="col-sm-4 form-group">
|
|
50
57
|
<label for="f_meter_base" class="font_normal_body"> 表 读 数</label>
|
|
@@ -401,6 +408,13 @@ let meterBookGen = function * (self) {
|
|
|
401
408
|
co(meterBookGen(this))
|
|
402
409
|
},
|
|
403
410
|
methods: {
|
|
411
|
+
toggleDropdown() {
|
|
412
|
+
this.width = this.$els.group.clientWidth * this.width +'px'
|
|
413
|
+
this.show = !this.show
|
|
414
|
+
},
|
|
415
|
+
bqfTypeChange () {
|
|
416
|
+
console.log('bqfTypeChange')
|
|
417
|
+
},
|
|
404
418
|
async confirmUserfiles () {
|
|
405
419
|
if (this.$refs.addparamlist.confirm()) {
|
|
406
420
|
var paramlist = this.$refs.addparamlist.addGasParameter
|
|
@@ -520,6 +534,8 @@ let meterBookGen = function * (self) {
|
|
|
520
534
|
},
|
|
521
535
|
computed: {
|
|
522
536
|
|
|
537
|
+
|
|
538
|
+
|
|
523
539
|
// 控制用户类型修改
|
|
524
540
|
permissionUserType () {
|
|
525
541
|
let res = false
|
|
@@ -597,6 +613,9 @@ let meterBookGen = function * (self) {
|
|
|
597
613
|
positions () {
|
|
598
614
|
return this.$appdata.getParam('安装位置')
|
|
599
615
|
},
|
|
616
|
+
bqftype(){
|
|
617
|
+
return this.$appdata.getParam('表前阀型号')
|
|
618
|
+
},
|
|
600
619
|
usetype () {
|
|
601
620
|
return this.$appdata.getParam('使用类型')
|
|
602
621
|
},
|