sale-client 4.2.70 → 4.2.71
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/.gradle/5.2.1/fileChanges/last-build.bin +0 -0
- package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/5.2.1/gc.properties +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/.gradle/vcs-1/gc.properties +0 -0
- package/build/dev-server.js +36 -58
- package/index.html +2 -7
- package/package.json +1 -1
- package/src/App.vue +1 -1
- package/src/components/FilesManage/addressts/FileUserFilests.vue +671 -0
- package/src/components/FilesManage/ncUserinfoList.vue +315 -0
- package/src/components/SellGasCharge/MeterCharge/CardDataRewrite.vue +107 -0
- package/src/components/SendCard/SendCardData.vue +208 -0
- package/src/components/accounts/accountAdd.vue +276 -0
- package/src/components/accounts/accountsList.vue +183 -0
- package/src/components/accounts/accountsManage.vue +87 -0
- package/src/components/common/chargeinfo/chargeinfo.vue +55 -0
- package/src/components/common/userinfo_detail/config/exportConfig.js +85 -0
- package/src/components/ncarchives/ncArchivesAdd.vue +468 -0
- package/src/components/ncarchives/ncArchivesList.vue +159 -0
- package/src/components/ncarchives/ncUserfilesList.vue +373 -0
- package/src/components/ncarchives/ncarchivesmanage.vue +80 -0
- package/src/components/revenue/HandManager/MeterBookUser.vue +726 -726
- package/src/components/revenue/IOTArrears/arrears.vue +323 -0
- package/src/components/revenue/IOTArrears/iotRechargeAudit.vue +369 -0
- package/src/components/revenue/base/rightview/carddetail/cardiotfeeChangeDetail.vue +59 -0
- package/src/components/revenue/base/rightview/carddetail/reduceChangeDetail.vue +59 -0
- package/src/components/revenue/comprehen/ComprehenOperation/BatchChange/BatchCancellationts.vue +73 -0
- package/src/components/revenue/comprehen/ComprehenOperation/BatchChange/BatchEnablets.vue +73 -0
- package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/ReduceAddGas.vue +199 -0
- package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/icdeductionManage.vue +24 -0
- package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/icdeductionYSManage.vue +24 -0
- package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/icfeeDeduction.vue +185 -0
- package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/icfeeYSDeduction.vue +185 -0
- package/src/components/revenue/comprehen/ComprehenOperation/QrPay/QrPaymentDetailed.vue +423 -423
- package/src/components/revenue/comprehen/ComprehenOperation/newchangemeter/ChangeFlowMeter.vue +356 -0
- package/src/components/revenue/comprehen/ComprehenOperation/newchangemeter/CorrectionMeter.vue +148 -0
- package/src/components/revenue/comprehen/Maintenance/hand/handOperate.vue +469 -469
- package/src/components/revenue/comprehen/SpecialUser/BlackList/BlackUserList.vue +136 -0
- package/src/components/revenue/machineHandManage/ArrearsQuery.vue +938 -938
- package/src/components/revenue/recordMainten/sellinggas/AddWarehousemain.vue +65 -0
- package/src/components/revenue/recordMainten/sellinggas/MeterOperateAdd.vue +483 -0
- package/src/components/revenue/recordMainten/sellinggas/MeterOperatemain.vue +279 -0
- package/src/components/revenue/recordMainten/sellinggas/MeterOperatemainImport.vue +265 -0
- package/src/components/thirdapply/thirdAdd.vue +289 -0
- package/src/components/thirdapply/thirdList.vue +162 -0
- package/src/components/thirdapply/thirdManage.vue +74 -0
- package/src/components/webMeter/InstructQuery.vue +414 -0
- package/src/components/webMeter/MeterManage/WebMeterBatchOperationValve.vue +970 -970
- package/src/components/webMeter/ParamSet/ParamSet.vue +556 -0
- package/src/components/webMeter/ParamSet/ParamSetForm.vue +296 -0
- package/src/components/webMeter/WebUserHand.vue +483 -0
- package/src/components/webMeter/instructionView/NewQueryInstruct.vue +509 -0
- package/src/components/webMeter/instructionView/NewQueryInstructMain.vue +48 -0
- package/src/components/webMeter/webManage/NewMeterList.vue +461 -0
- package/src/filiale/alashan/eticket/EticketRecordList.vue +428 -428
- package/src/filiale/bayan/ChargeList.vue +1010 -1010
- package/src/filiale/bayan/StockListmain.vue +543 -543
- package/src/filiale/bazhong/UserInfoDetailManageNew.vue +245 -245
- package/src/filiale/bazhong/ic_detail/ChangeMeterQueryUser.vue +370 -370
- package/src/filiale/bazhong/sale.js +8 -8
- package/src/filiale/beifangshiye/OtherChargeNew.vue +625 -625
- package/src/filiale/jinhuang/WebHand.vue +1026 -1026
- package/src/filiale/lixianV3/ArrearsQuery.vue +938 -938
- package/src/filiale/lixianV3/InsuranceChargesDetails.vue +425 -425
- package/src/filiale/meihekou/common/userinfo_detail/ic_detail/MachineRecordQuery.vue +281 -281
- package/src/filiale/qianneng/revenue/sms/AccountMessageList.vue +508 -508
- package/src/filiale/ronghao/ArrearsQuery.vue +974 -974
- package/src/filiale/ronghao/CardService.js +2144 -2144
- package/src/filiale/ronghao/InsuranceManage.vue +58 -58
- package/src/filiale/ronghao/MachineChargeService.js +149 -149
- package/src/filiale/ronghao/NoCardMeterCenter.vue +534 -534
- package/src/filiale/ronghao/PaymentCode.vue +174 -174
- package/src/filiale/ronghao/PriceChangeCompensation/CompensationManage.vue +26 -26
- package/src/filiale/ronghao/PriceChangeCompensation/IotCompensation.vue +318 -318
- package/src/filiale/ronghao/PriceChangeCompensation/JbCompensation.vue +343 -343
- package/src/filiale/ronghao/PriceChangeCompensation/SurplusRecordDetail.vue +74 -74
- package/src/filiale/ronghao/ReplaceCardManage.vue +415 -415
- package/src/filiale/ronghao/Upload.vue +654 -654
- package/src/filiale/ronghao/cardDown.vue +1141 -1141
- package/src/filiale/ronghao/changemeterOperate.vue +315 -315
- package/src/filiale/ronghao/fillgasSpecific.vue +313 -313
- package/src/filiale/ronghao/ic_detail/ChargeRecordQuery.vue +106 -106
- package/src/filiale/ronghao/ic_detail/WatchCollection.vue +115 -115
- package/src/filiale/ronghao/ic_detail/WebHandQueryUser.vue +411 -411
- package/src/filiale/ronghao/machineDown.vue +1176 -1176
- package/src/filiale/ronghao/replacementSingleInfoOperation.vue +315 -315
- package/src/filiale/ronghao/specificInformation.vue +537 -537
- package/src/filiale/yangchun/ChargeList.vue +954 -954
- package/src/filiale/yuncheng/FileManageService.js +469 -469
- package/src/filiale/yuncheng/IndustryCommerceHand.vue +5 -0
- package/src/filiale/yuncheng/IndustryCommerceHandAudit.vue +38 -0
- package/src/filiale/yuncheng/changemeterListMaintain.vue +504 -504
- package/src/filiale/zhongsheng/BlackListList.vue +293 -293
- package/src/filiale/zhongyi/HandQueryUser.vue +389 -389
- package/src/plugins/FileManageServicets.js +214 -0
- package/src/plugins/GetImg.js +53 -0
|
@@ -0,0 +1,279 @@
|
|
|
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 form-group">
|
|
7
|
+
<label class="font_normal_body">用户姓名</label>
|
|
8
|
+
<input type="text" v-model="model.f_user_name" disabled=disabled style="width: 60%" class="input_search">
|
|
9
|
+
</div>
|
|
10
|
+
<div class="col-sm-4 form-group">
|
|
11
|
+
<label class="font_normal_body" title="参数:收费状态">收费状态</label>
|
|
12
|
+
<!-- <input type="text" v-model="model.f_charge_state" disabled=disabled style="width: 60%" class="input_search">-->
|
|
13
|
+
<v-select :value.sync="model.f_state" v-model="model.f_state"
|
|
14
|
+
:value-single="true"
|
|
15
|
+
:search="false"
|
|
16
|
+
disabled=disabled
|
|
17
|
+
:options='positions' placeholder='收费状态'
|
|
18
|
+
close-on-select>
|
|
19
|
+
</v-select>
|
|
20
|
+
</div>
|
|
21
|
+
<div class="col-sm-4 form-group">
|
|
22
|
+
<label class="font_normal_body" title="参数:写卡状态">写卡状态</label>
|
|
23
|
+
<!-- <input type="text" v-model="model.f_write_card" style="width: 60%" class="input_search">-->
|
|
24
|
+
<v-select :value.sync="model.f_write_card" v-model="model.f_write_card"
|
|
25
|
+
:options='writeCards' placeholder='写卡状态'
|
|
26
|
+
:value-single="true"
|
|
27
|
+
:search="false"
|
|
28
|
+
disabled=disabled
|
|
29
|
+
close-on-select>
|
|
30
|
+
</v-select>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
<div class="row">
|
|
34
|
+
<div class="col-sm-12 form-group">
|
|
35
|
+
<label class="font_normal_body">地  址</label>
|
|
36
|
+
<input type="text" v-model="model.f_address" disabled=disabled style="width: 86.5%" class="input_search">
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
<div class="row">
|
|
40
|
+
<!--<div class="col-sm-4 form-group">
|
|
41
|
+
<label class="font_normal_body">用户编号</label>
|
|
42
|
+
<input type="text" v-model="model.f_userinfo_code" disabled=disabled style="width: 60%" class="input_search">
|
|
43
|
+
</div>-->
|
|
44
|
+
<div class="col-sm-4 form-group">
|
|
45
|
+
<label class="font_normal_body" title="参数:付款方式">付款方式</label>
|
|
46
|
+
<!-- <input type="text" v-model="model.f_payment" style="width: 60%" class="input_search">-->
|
|
47
|
+
<v-select :value.sync="model.f_payment" v-model="model.f_payment"
|
|
48
|
+
:options='payments' placeholder='付款方式'
|
|
49
|
+
:value-single="true"
|
|
50
|
+
:search="false"
|
|
51
|
+
close-on-select>
|
|
52
|
+
</v-select>
|
|
53
|
+
</div>
|
|
54
|
+
|
|
55
|
+
<div class="col-sm-4 form-group">
|
|
56
|
+
<label class="font_normal_body">收款金额</label>
|
|
57
|
+
<input type="text" v-model="model.f_collection" disabled=disabled style="width: 60%" class="input_search">
|
|
58
|
+
</div>
|
|
59
|
+
<!--<div class="col-sm-4 form-group">-->
|
|
60
|
+
<!--<label class="font_normal_body">收据类型</label>-->
|
|
61
|
+
<!--<input type="text" v-model="model.f_bill_style" style="width: 60%" class="input_search">-->
|
|
62
|
+
<!--</div>-->
|
|
63
|
+
</div>
|
|
64
|
+
<div class="row">
|
|
65
|
+
<div class="col-sm-4 form-group">
|
|
66
|
+
<label class="font_normal_body">操作时间</label>
|
|
67
|
+
<!--<input type="text" v-model="model.f_delivery_date" style="width: 60%" class="input_search">-->
|
|
68
|
+
<datepicker id="f_delivery_date" placeholder="操作时间" style="width:60%"
|
|
69
|
+
v-model="model.f_operate_date"
|
|
70
|
+
disabled=disabled
|
|
71
|
+
:value.sync="model.f_operate_date"
|
|
72
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
73
|
+
:show-reset-button="true">
|
|
74
|
+
</datepicker>
|
|
75
|
+
</div>
|
|
76
|
+
<div class="col-sm-4 form-group">
|
|
77
|
+
<label class="font_normal_body">购气气量</label>
|
|
78
|
+
<input type="text" v-model="model.f_pregas" disabled=disabled style="width: 60%" class="input_search">
|
|
79
|
+
</div>
|
|
80
|
+
<div class="col-sm-4 form-group">
|
|
81
|
+
<label class="font_normal_body">购气金额</label>
|
|
82
|
+
<input type="text" v-model="model.f_preamount" disabled=disabled style="width: 60%" class="input_search">
|
|
83
|
+
</div>
|
|
84
|
+
</div>
|
|
85
|
+
<div class="row">
|
|
86
|
+
<!-- <res-select-group :show-component="resshow" :style="style" @re-res="getRes" :initres="initres" :mul="false" v-ref:sel></res-select-group>-->
|
|
87
|
+
<div class="col-sm-4 form-group">
|
|
88
|
+
<label class="font_normal_body">操作人员</label>
|
|
89
|
+
<input type="text" v-model="model.f_operator" disabled=disabled style="width: 60%" class="input_search">
|
|
90
|
+
</div>
|
|
91
|
+
<div class="col-sm-4 form-group">
|
|
92
|
+
<label class="font_normal_body">所属部门</label>
|
|
93
|
+
<input type="text" v-model="model.f_depname" disabled=disabled style="width: 60%" class="input_search">
|
|
94
|
+
</div>
|
|
95
|
+
<div class="col-sm-4 form-group">
|
|
96
|
+
<label class="font_normal_body" title="打印格式">收据类型</label>
|
|
97
|
+
<v-select id="f_bill_style"
|
|
98
|
+
placeholder='收据类型'
|
|
99
|
+
:value-single="true" disabled
|
|
100
|
+
|
|
101
|
+
:value.sync="model.f_bill_style"
|
|
102
|
+
:options='equipmentType'
|
|
103
|
+
close-on-select clear-button>
|
|
104
|
+
</v-select>
|
|
105
|
+
</div>
|
|
106
|
+
</div>
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
<div class="col-sm-12 form-group">
|
|
110
|
+
<!-- <label class="font_normal_body">所属公司</label>-->
|
|
111
|
+
<!-- <input type="text" v-model="model.f_orgname" disabled=disabled style="width: 86.5%" class="input_search">-->
|
|
112
|
+
<label class="font_normal_body">所属公司</label>
|
|
113
|
+
<res-select v-ref:select
|
|
114
|
+
:initresid='curorgid'
|
|
115
|
+
:is-mul ="false"
|
|
116
|
+
@res-select="getorg"
|
|
117
|
+
restype='organization'
|
|
118
|
+
>
|
|
119
|
+
</res-select>
|
|
120
|
+
</div>
|
|
121
|
+
|
|
122
|
+
<div class="row">
|
|
123
|
+
<div class="col-sm-12 form-group">
|
|
124
|
+
<label class="font_normal_body">备注信息</label>
|
|
125
|
+
<input type="text" v-model="model.f_comments" style="width: 85%" class="input_search">
|
|
126
|
+
</div>
|
|
127
|
+
</div>
|
|
128
|
+
</form>
|
|
129
|
+
<div style="float: right">
|
|
130
|
+
<button v-if="model.f_operator == this.$login.f.name " class="button_search" @click="save">保存</button>
|
|
131
|
+
<button class="button_clear" @click="cancel">取消</button>
|
|
132
|
+
</div>
|
|
133
|
+
</validator>
|
|
134
|
+
<modal :show.sync="showfiles" width="80%" style="width:auto;" v-ref:modal backdrop="false">
|
|
135
|
+
<article slot="modal-body">
|
|
136
|
+
<upload :blodid="model.f_userinfo_id" :businessid="model.id" v-ref:upload fusetype="收费" isremark="true" style="width:auto" ></upload>
|
|
137
|
+
</article>
|
|
138
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
139
|
+
</footer>
|
|
140
|
+
</modal>
|
|
141
|
+
<!--文件上传按钮-->
|
|
142
|
+
<!-- <button class="button_search" style="width: max-content" @click="uploadFiles()">上传附件</button>-->
|
|
143
|
+
</div>
|
|
144
|
+
</template>
|
|
145
|
+
<script>
|
|
146
|
+
import Vue from 'vue'
|
|
147
|
+
import {HttpResetClass} from 'vue-client'
|
|
148
|
+
|
|
149
|
+
var data
|
|
150
|
+
export default {
|
|
151
|
+
title: '基本信息',
|
|
152
|
+
|
|
153
|
+
data () {
|
|
154
|
+
return {
|
|
155
|
+
style: {
|
|
156
|
+
type: String,
|
|
157
|
+
default: 'col-sm-2 form-group reshowtype'
|
|
158
|
+
},
|
|
159
|
+
equipmentType: this.$appdata.getParam('打印格式') ? [{label: '', value: ''}, ...this.$appdata.getParam('打印格式')] : [],
|
|
160
|
+
// 构建数组来存储对象
|
|
161
|
+
editbank: true,
|
|
162
|
+
uploadText: '收费',
|
|
163
|
+
curorgid:[],
|
|
164
|
+
showfiles: false,
|
|
165
|
+
recordList: [],
|
|
166
|
+
initres: {
|
|
167
|
+
org:[this.$login.f.orgid],
|
|
168
|
+
dep:[this.$login.f.depids],
|
|
169
|
+
user:[this.$login.f.id]
|
|
170
|
+
},
|
|
171
|
+
resshow:['operator'],
|
|
172
|
+
fileNameSet:{
|
|
173
|
+
'f_payment': '付款方式',
|
|
174
|
+
'f_orgid': '分公司编号',
|
|
175
|
+
'f_comments': '备注信息'
|
|
176
|
+
},
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
props: {
|
|
180
|
+
oldmodel: Object,
|
|
181
|
+
model: Object
|
|
182
|
+
},
|
|
183
|
+
watch:{
|
|
184
|
+
'model'(val) {
|
|
185
|
+
this.curorgid = [this.model.f_orgid]
|
|
186
|
+
console.log(this.$refs.select)
|
|
187
|
+
this.$refs.select.selectres = [this.model.f_orgid]
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
ready () {
|
|
191
|
+
this.oldmodel = JSON.parse(JSON.stringify(this.model))
|
|
192
|
+
this.model.f_bill_state = [this.oldmodel]
|
|
193
|
+
this.curorgid = [this.$login.f.orgid]
|
|
194
|
+
},
|
|
195
|
+
created () {
|
|
196
|
+
},
|
|
197
|
+
methods: {
|
|
198
|
+
getRes(obj,objs){
|
|
199
|
+
if(objs.operatornames.length>0){
|
|
200
|
+
this.model.f_operator_id = objs.operatornames[0];
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
getorg(val) {
|
|
204
|
+
console.log(val)
|
|
205
|
+
this.model.f_filialedid = val[0]
|
|
206
|
+
this.model.f_orgid = val[0]
|
|
207
|
+
// this.getPricenames = this.$GetSaleParam.getPriceByOrg(this.f_filialeid)
|
|
208
|
+
},
|
|
209
|
+
selectoperator(){
|
|
210
|
+
let f_operator=this.model.f_operator
|
|
211
|
+
console.log("处理签的this.f_operatorid",this.f_operatorid)
|
|
212
|
+
let http = new HttpResetClass()
|
|
213
|
+
http.load('POST', 'rs/logic/findOperator',
|
|
214
|
+
{f_operator: f_operator},
|
|
215
|
+
{resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
216
|
+
console.log("kanak,res",res)
|
|
217
|
+
this.model.f_operatorid = res.data[0].id
|
|
218
|
+
console.log("this.f_operatorid",this.f_operatorid)
|
|
219
|
+
})
|
|
220
|
+
},
|
|
221
|
+
cancel () {
|
|
222
|
+
this.$dispatch('close')
|
|
223
|
+
},
|
|
224
|
+
uploadFiles(){
|
|
225
|
+
this.showfiles= !this.showfiles
|
|
226
|
+
},
|
|
227
|
+
addressValid (val) {
|
|
228
|
+
},
|
|
229
|
+
save () {
|
|
230
|
+
this.recordList = [];
|
|
231
|
+
for (var item in this.model) {
|
|
232
|
+
//保证只能修改 付款方式和 备注
|
|
233
|
+
if (this.model[item] != this.oldmodel[item] && (item == "f_payment"|| item == "f_comments" || item == "f_orgid" ) ) {
|
|
234
|
+
var car = {
|
|
235
|
+
chinesename: this.fileNameSet[item],
|
|
236
|
+
fieldname: item,
|
|
237
|
+
tablename: 't_sellinggas',
|
|
238
|
+
oldvalue: this.oldmodel[item],
|
|
239
|
+
newvalue: this.model[item],
|
|
240
|
+
state: '有效',
|
|
241
|
+
modifitime: new Date(),
|
|
242
|
+
operator: this.$login.f.name,
|
|
243
|
+
sellingas_id: this.model.id
|
|
244
|
+
}
|
|
245
|
+
this.recordList.push(car)
|
|
246
|
+
// 该方法并未对chinesename fieldname operator等进行判断赋值,此暂写为定值
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
this.$resetpost('rs/logic/saveing', {data: {recordlist: this.recordList, newData: this.model}}).then((res) => {
|
|
250
|
+
console.log('this.model', this.model)
|
|
251
|
+
})
|
|
252
|
+
this.$dispatch('close')
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
computed: {
|
|
256
|
+
foperator() {
|
|
257
|
+
return [...this.$appdata.getParam('操作人员')]
|
|
258
|
+
},
|
|
259
|
+
positions() {
|
|
260
|
+
return this.$appdata.getParam('收费状态')
|
|
261
|
+
},
|
|
262
|
+
payments() {
|
|
263
|
+
return this.$appdata.getParam('付款方式')
|
|
264
|
+
},
|
|
265
|
+
writeCards() {
|
|
266
|
+
return this.$appdata.getParam('写卡状态')
|
|
267
|
+
},
|
|
268
|
+
billStyles() {
|
|
269
|
+
return this.$appdata.getParam('收据类型')
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
}
|
|
273
|
+
</script>
|
|
274
|
+
<style >
|
|
275
|
+
.reshowtype {
|
|
276
|
+
width:50%;
|
|
277
|
+
}
|
|
278
|
+
</style>
|
|
279
|
+
|
|
@@ -0,0 +1,265 @@
|
|
|
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 form-group">
|
|
7
|
+
<label class="font_normal_body">用户姓名</label>
|
|
8
|
+
<input type="text" v-model="model.f_user_name" style="width: 60%" class="input_search">
|
|
9
|
+
</div>
|
|
10
|
+
<div class="col-sm-4 form-group">
|
|
11
|
+
<label class="font_normal_body" title="参数:收费状态">收费状态</label>
|
|
12
|
+
<!-- <input type="text" v-model="model.f_charge_state" style="width: 60%" class="input_search">-->
|
|
13
|
+
<v-select :value.sync="model.f_state" v-model="model.f_state"
|
|
14
|
+
:value-single="true"
|
|
15
|
+
:search="false"
|
|
16
|
+
:options='positions' placeholder='收费状态'
|
|
17
|
+
close-on-select>
|
|
18
|
+
</v-select>
|
|
19
|
+
</div>
|
|
20
|
+
<div class="col-sm-4 form-group">
|
|
21
|
+
<label class="font_normal_body" title="参数:写卡状态">写卡状态</label>
|
|
22
|
+
<!-- <input type="text" v-model="model.f_write_card" style="width: 60%" class="input_search">-->
|
|
23
|
+
<v-select :value.sync="model.f_write_card" v-model="model.f_write_card"
|
|
24
|
+
:options='writeCards' placeholder='写卡状态'
|
|
25
|
+
:value-single="true"
|
|
26
|
+
:search="false"
|
|
27
|
+
close-on-select>
|
|
28
|
+
</v-select>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
<div class="row">
|
|
32
|
+
<div class="col-sm-12 form-group">
|
|
33
|
+
<label class="font_normal_body">地  址</label>
|
|
34
|
+
<input type="text" v-model="model.f_address" style="width: 86.5%" class="input_search">
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
<div class="row">
|
|
38
|
+
<!--<div class="col-sm-4 form-group">
|
|
39
|
+
<label class="font_normal_body">用户编号</label>
|
|
40
|
+
<input type="text" v-model="model.f_userinfo_code" style="width: 60%" class="input_search">
|
|
41
|
+
</div>-->
|
|
42
|
+
<div class="col-sm-4 form-group">
|
|
43
|
+
<label class="font_normal_body" title="参数:付款方式">付款方式</label>
|
|
44
|
+
<!-- <input type="text" v-model="model.f_payment" style="width: 60%" class="input_search">-->
|
|
45
|
+
<v-select :value.sync="model.f_payment" v-model="model.f_payment"
|
|
46
|
+
:options='payments' placeholder='付款方式'
|
|
47
|
+
:value-single="true"
|
|
48
|
+
:search="false"
|
|
49
|
+
close-on-select>
|
|
50
|
+
</v-select>
|
|
51
|
+
</div>
|
|
52
|
+
|
|
53
|
+
<div class="col-sm-4 form-group">
|
|
54
|
+
<label class="font_normal_body">收款金额</label>
|
|
55
|
+
<input type="text" v-model="model.f_collection" style="width: 60%" class="input_search">
|
|
56
|
+
</div>
|
|
57
|
+
<!--<div class="col-sm-4 form-group">-->
|
|
58
|
+
<!--<label class="font_normal_body">收据类型</label>-->
|
|
59
|
+
<!--<input type="text" v-model="model.f_bill_style" style="width: 60%" class="input_search">-->
|
|
60
|
+
<!--</div>-->
|
|
61
|
+
</div>
|
|
62
|
+
<div class="row">
|
|
63
|
+
<div class="col-sm-4 form-group">
|
|
64
|
+
<label class="font_normal_body">操作时间</label>
|
|
65
|
+
<!--<input type="text" v-model="model.f_delivery_date" style="width: 60%" class="input_search">-->
|
|
66
|
+
<datepicker id="f_delivery_date" placeholder="操作时间" style="width:60%"
|
|
67
|
+
v-model="model.f_operate_date"
|
|
68
|
+
:value.sync="model.f_operate_date"
|
|
69
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
70
|
+
:show-reset-button="true">
|
|
71
|
+
</datepicker>
|
|
72
|
+
</div>
|
|
73
|
+
<div class="col-sm-4 form-group">
|
|
74
|
+
<label class="font_normal_body">购气气量</label>
|
|
75
|
+
<input type="text" v-model="model.f_pregas" style="width: 60%" class="input_search">
|
|
76
|
+
</div>
|
|
77
|
+
<div class="col-sm-4 form-group">
|
|
78
|
+
<label class="font_normal_body">购气金额</label>
|
|
79
|
+
<input type="text" v-model="model.f_preamount" style="width: 60%" class="input_search">
|
|
80
|
+
</div>
|
|
81
|
+
</div>
|
|
82
|
+
<div class="row">
|
|
83
|
+
<!-- <res-select-group :show-component="resshow" :style="style" @re-res="getRes" :initres="initres" :mul="false" v-ref:sel></res-select-group>-->
|
|
84
|
+
<div class="col-sm-4 form-group">
|
|
85
|
+
<label class="font_normal_body">操作人员</label>
|
|
86
|
+
<input type="text" v-model="model.f_operator" disabled=disabled style="width: 60%" class="input_search">
|
|
87
|
+
</div>
|
|
88
|
+
<div class="col-sm-4 form-group">
|
|
89
|
+
<label class="font_normal_body">所属部门</label>
|
|
90
|
+
<input type="text" v-model="model.f_depname" disabled=disabled style="width: 60%" class="input_search">
|
|
91
|
+
</div>
|
|
92
|
+
<div class="col-sm-4 form-group">
|
|
93
|
+
<label class="font_normal_body" title="打印格式">收据类型</label>
|
|
94
|
+
<v-select id="f_bill_style"
|
|
95
|
+
placeholder='收据类型'
|
|
96
|
+
:value-single="true"
|
|
97
|
+
:value.sync="model.f_bill_style"
|
|
98
|
+
:options='equipmentType'
|
|
99
|
+
close-on-select clear-button>
|
|
100
|
+
</v-select>
|
|
101
|
+
</div>
|
|
102
|
+
</div>
|
|
103
|
+
|
|
104
|
+
<div class="row">
|
|
105
|
+
<div class="col-sm-12 form-group">
|
|
106
|
+
<label class="font_normal_body">所属公司</label>
|
|
107
|
+
<input type="text" v-model="model.f_orgname" disabled=disabled style="width: 86.5%" class="input_search">
|
|
108
|
+
</div>
|
|
109
|
+
|
|
110
|
+
</div>
|
|
111
|
+
<div class="row">
|
|
112
|
+
<div class="col-sm-12 form-group">
|
|
113
|
+
<label class="font_normal_body">备注信息</label>
|
|
114
|
+
<input type="text" v-model="model.f_comments" style="width: 85%" class="input_search">
|
|
115
|
+
</div>
|
|
116
|
+
</div>
|
|
117
|
+
</form>
|
|
118
|
+
<div style="float: right">
|
|
119
|
+
<button v-if="model.f_operator == this.$login.f.name " class="button_search" @click="save">保存</button>
|
|
120
|
+
<button class="button_clear" @click="cancel">取消</button>
|
|
121
|
+
</div>
|
|
122
|
+
</validator>
|
|
123
|
+
<modal :show.sync="showfiles" width="80%" style="width:auto;" v-ref:modal backdrop="false">
|
|
124
|
+
<article slot="modal-body">
|
|
125
|
+
<upload :blodid="model.f_userinfo_id" :businessid="model.id" v-ref:upload fusetype="收费" isremark="true" style="width:auto" ></upload>
|
|
126
|
+
</article>
|
|
127
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
128
|
+
</footer>
|
|
129
|
+
</modal>
|
|
130
|
+
<!--文件上传按钮-->
|
|
131
|
+
<!-- <button class="button_search" style="width: max-content" @click="uploadFiles()">上传附件</button>-->
|
|
132
|
+
</div>
|
|
133
|
+
</template>
|
|
134
|
+
<script>
|
|
135
|
+
import Vue from 'vue'
|
|
136
|
+
import {HttpResetClass} from 'vue-client'
|
|
137
|
+
import * as Util from "../../../../Util";
|
|
138
|
+
|
|
139
|
+
var data
|
|
140
|
+
export default {
|
|
141
|
+
title: '基本信息',
|
|
142
|
+
|
|
143
|
+
data () {
|
|
144
|
+
return {
|
|
145
|
+
style: {
|
|
146
|
+
type: String,
|
|
147
|
+
default: 'col-sm-2 form-group reshowtype'
|
|
148
|
+
},
|
|
149
|
+
equipmentType: this.$appdata.getParam('打印格式') ? [{label: '', value: ''}, ...this.$appdata.getParam('打印格式')] : [],
|
|
150
|
+
// 构建数组来存储对象
|
|
151
|
+
editbank: true,
|
|
152
|
+
uploadText: '收费',
|
|
153
|
+
showfiles: false,
|
|
154
|
+
recordList: [],
|
|
155
|
+
initres: {
|
|
156
|
+
org:[this.$login.f.orgid],
|
|
157
|
+
dep:[this.$login.f.depids],
|
|
158
|
+
user:[this.$login.f.id]
|
|
159
|
+
},
|
|
160
|
+
resshow:['operator'],
|
|
161
|
+
fileNameSet:{
|
|
162
|
+
'f_payment': '付款方式',
|
|
163
|
+
'f_comments': '备注信息'
|
|
164
|
+
},
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
props: {
|
|
168
|
+
oldmodel: Object,
|
|
169
|
+
model: Object
|
|
170
|
+
},
|
|
171
|
+
|
|
172
|
+
ready () {
|
|
173
|
+
this.oldmodel = JSON.parse(JSON.stringify(this.model))
|
|
174
|
+
this.model.f_bill_state = [this.oldmodel]
|
|
175
|
+
},
|
|
176
|
+
created () {
|
|
177
|
+
},
|
|
178
|
+
methods: {
|
|
179
|
+
getRes(obj,objs){
|
|
180
|
+
if(objs.operatornames.length>0){
|
|
181
|
+
this.model.f_operator_id = objs.operatornames[0];
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
selectoperator(){
|
|
185
|
+
let f_operator=this.model.f_operator
|
|
186
|
+
console.log("处理签的this.f_operatorid",this.f_operatorid)
|
|
187
|
+
let http = new HttpResetClass()
|
|
188
|
+
http.load('POST', 'rs/logic/findOperator',
|
|
189
|
+
{f_operator: f_operator},
|
|
190
|
+
{resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
191
|
+
console.log("kanak,res",res)
|
|
192
|
+
this.model.f_operatorid = res.data[0].id
|
|
193
|
+
console.log("this.f_operatorid",this.f_operatorid)
|
|
194
|
+
})
|
|
195
|
+
},
|
|
196
|
+
cancel () {
|
|
197
|
+
this.$dispatch('close')
|
|
198
|
+
},
|
|
199
|
+
uploadFiles(){
|
|
200
|
+
this.showfiles= !this.showfiles
|
|
201
|
+
},
|
|
202
|
+
addressValid (val) {
|
|
203
|
+
},
|
|
204
|
+
save () {
|
|
205
|
+
// console.log(this.model.key)
|
|
206
|
+
//
|
|
207
|
+
for (var item in this.model) {
|
|
208
|
+
if (this.model[item] != this.oldmodel[item] && this.model[item] !='s_timestamp') {
|
|
209
|
+
var car = {
|
|
210
|
+
chinesename: this.fileNameSet[item],
|
|
211
|
+
fieldname: item,
|
|
212
|
+
tablename: 't_sellinggas',
|
|
213
|
+
oldvalue: this.oldmodel[item],
|
|
214
|
+
newvalue: this.model[item],
|
|
215
|
+
state: '有效',
|
|
216
|
+
modifitime: Util.toStandardTimeString(),
|
|
217
|
+
operator: this.$login.f.name,
|
|
218
|
+
sellingas_id: this.model.id,
|
|
219
|
+
f_operator : this.$login.f.name,
|
|
220
|
+
f_operatorid : this.$login.f.id,
|
|
221
|
+
f_orgid : this.$login.f.orgid,
|
|
222
|
+
f_orgname : this.$login.f.orgs,
|
|
223
|
+
f_depid : this.$login.f.depids,
|
|
224
|
+
f_depname : this.$login.f.deps
|
|
225
|
+
|
|
226
|
+
}
|
|
227
|
+
debugger
|
|
228
|
+
this.recordList.push(car)
|
|
229
|
+
// 该方法并未对chinesename fieldname operator等进行判断赋值,此暂写为定值
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
if (this.model.f_bill_date !== '' || this.model.f_bill_date === undefined) {
|
|
233
|
+
this.model.f_bill_operator = this.$login.f.name
|
|
234
|
+
}
|
|
235
|
+
this.$resetpost('rs/logic/saveselling', {data: {recordlist: this.recordList, newData: this.model}}).then((res) => {
|
|
236
|
+
console.log('this.model', this.model)
|
|
237
|
+
})
|
|
238
|
+
this.$dispatch('close')
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
computed: {
|
|
242
|
+
foperator() {
|
|
243
|
+
return [...this.$appdata.getParam('操作人员')]
|
|
244
|
+
},
|
|
245
|
+
positions() {
|
|
246
|
+
return this.$appdata.getParam('收费状态')
|
|
247
|
+
},
|
|
248
|
+
payments() {
|
|
249
|
+
return this.$appdata.getParam('付款方式')
|
|
250
|
+
},
|
|
251
|
+
writeCards() {
|
|
252
|
+
return this.$appdata.getParam('写卡状态')
|
|
253
|
+
},
|
|
254
|
+
billStyles() {
|
|
255
|
+
return this.$appdata.getParam('收据类型')
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
}
|
|
259
|
+
</script>
|
|
260
|
+
<style >
|
|
261
|
+
.reshowtype {
|
|
262
|
+
width:50%;
|
|
263
|
+
}
|
|
264
|
+
</style>
|
|
265
|
+
|