sale-client 3.4.112 → 3.4.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/.gradle/{5.2.1 → 4.4}/fileChanges/last-build.bin +0 -0
- package/.gradle/{6.1.1 → 4.4}/fileHashes/fileHashes.bin +0 -0
- package/.gradle/4.4/fileHashes/fileHashes.lock +0 -0
- package/build/dev-server.js +3 -3
- package/{.gradle/5.2.1/gc.properties → npm} +0 -0
- package/package.json +1 -1
- package/src/components/FilesManage/MeterinfoTest.vue +904 -905
- package/src/components/FilesManage/TemplateManage.vue +167 -167
- package/src/components/FilesManage/UserGeneralInfoTest.vue +642 -640
- package/src/components/charge/business/CardChangeFill.vue +612 -612
- package/src/components/charge/business/CardMeterCenter.vue +899 -899
- package/src/components/charge/business/FilesComplete.vue +253 -253
- package/src/components/charge/business/refund/IOTRefund.vue +236 -236
- package/src/components/charge/business/refund/RefundManage.vue +28 -28
- package/src/components/charge/gasloss/gasLossOperate.vue +357 -357
- package/src/components/chargeNew/thirdSurplus.vue +2 -0
- package/src/components/revenue/Common/MeterMessage.vue +184 -184
- package/src/components/revenue/HandManager/MeterBookManage.vue +153 -153
- package/src/components/revenue/base/leftview/MixPriceInfo.vue +60 -60
- package/src/components/revenue/base/leftview/Mulitinfo.vue +74 -74
- package/src/components/revenue/base/leftview/SafeCheck.vue +311 -311
- package/src/components/revenue/base/leftview/Stairinfo.vue +156 -156
- package/src/components/revenue/base/leftview/meterinfodetail.vue +195 -195
- package/src/components/revenue/base/rightview/CardList.vue +477 -477
- package/src/components/revenue/comprehen/ComprehenOperation/MeterDisable/DisableManage.vue +93 -93
- package/src/components/revenue/comprehen/ComprehenOperation/MeterEnable/EnableManage.vue +184 -184
- package/src/components/revenue/comprehen/ComprehenOperation/OtherGas/OtherGas.vue +5 -1
- package/src/components/revenue/comprehen/ComprehenOperation/removeTable.vue +1 -1
- package/src/components/revenue/comprehen/Maintenance/hand/handListMaintain.vue +638 -638
- package/src/components/revenue/comprehen/Maintenance/revenue/StockListmain.vue +7 -7
- package/src/components/revenue/comprehen/Message/MessageList.vue +587 -587
- package/src/components/revenue/comprehen/SpecialUser/BlackList/BlackList.vue +1 -1
- package/src/components/revenue/comprehen/SpecialUser/BlackList/BlackListManage.vue +1 -1
- package/src/components/revenue/comprehen/StairPrice/GasPriceList.vue +303 -303
- package/src/components/revenue/comprehen/replacement/replacementHandInfoRecord.vue +155 -155
- package/src/components/revenue/comprehen/wechatpay/WeChat.vue +62 -62
- package/src/components/webMeter/MeterManage/WebMeterBatchOperationValve.vue +8 -4
- package/src/filiale/alashan/PrintBill.vue +116 -116
- package/src/filiale/jingwei/CardHand.vue +742 -742
- package/src/filiale/macheng/FilesManageNew/FileUserFiles.vue +743 -0
- package/src/filiale/macheng/FilesManageNew/UserEssentialInfoTest.vue +371 -371
- package/src/filiale/macheng/FilesManageNew/UserGeneralInfoTest.vue +596 -596
- package/src/filiale/macheng/UserEssentialInfoTest.vue +368 -366
- package/src/filiale/meihekou/MeterinfoTest.vue +0 -1
- package/src/filiale/meihekou/PrintBill.vue +140 -140
- package/src/filiale/meihekou/ReissueBill.vue +322 -322
- package/src/filiale/qianneng/FilesManage/MeterinfoTest.vue +0 -1
- package/src/filiale/qianneng/GasPriceList.vue +330 -330
- package/src/filiale/qianneng/HandManager.vue +1838 -1838
- package/src/filiale/qianneng/OtherChargeNew.vue +6 -2
- package/src/filiale/qianneng/sale.js +30 -32
- package/src/filiale/qingtongxia/UserGeneralInfoTest.vue +538 -533
- package/src/filiale/rongcheng/FilesManageNew/UserGeneralInfoTest.vue +608 -608
- package/src/filiale/rongchuang/OtherGas.vue +329 -329
- package/src/filiale/tongchuan/CardList.vue +482 -482
- package/src/filiale/tongchuan/MeterinfoTest.vue +892 -892
- package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/AutomaticPurse.vue +298 -298
- package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/CardHandRecord.vue +267 -267
- package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/ChangeMeterQueryUser.vue +240 -240
- package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/ChangeRecord.vue +235 -235
- package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/ChargeQueryUser.vue +372 -372
- package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/DeveiceRecord.vue +251 -251
- package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/FillCardQueryUser.vue +209 -209
- package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/HandQueryUser.vue +365 -365
- package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/MachineRecordQuery.vue +252 -252
- package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/OtherChargeQueryUser.vue +250 -250
- package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/RecordQueryUser.vue +249 -249
- package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/TransferQueryUser.vue +222 -222
- package/src/filiale/tongchuan/sale.js +107 -107
- package/src/filiale/zhongsheng/rightview/CardList.vue +492 -492
- package/src/filiale/zhongsheng/wechatpay/WeChatPayDetail.vue +469 -469
- package/src/main.js +1 -1
- package/src/plugins/CardService.js +1798 -1798
- package/src/plugins/ChangeMeterService.js +756 -756
- package/src/plugins/FileManageService.js +366 -366
- package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/6.1.1/executionHistory/executionHistory.bin +0 -0
- package/.gradle/6.1.1/executionHistory/executionHistory.lock +0 -0
- package/.gradle/6.1.1/fileChanges/last-build.bin +0 -0
- package/.gradle/6.1.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/6.1.1/gc.properties +0 -0
- package/.gradle/7.1/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/.gradle/7.1/dependencies-accessors/gc.properties +0 -0
- package/.gradle/7.1/executionHistory/executionHistory.bin +0 -0
- package/.gradle/7.1/executionHistory/executionHistory.lock +0 -0
- package/.gradle/7.1/fileChanges/last-build.bin +0 -0
- package/.gradle/7.1/fileHashes/fileHashes.bin +0 -0
- package/.gradle/7.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/7.1/gc.properties +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/.gradle/checksums/checksums.lock +0 -0
- package/.gradle/vcs-1/gc.properties +0 -0
|
@@ -1,330 +1,330 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div @keyup.enter="search" class="flex">
|
|
3
|
-
<criteria-paged :model="model" v-ref:paged>
|
|
4
|
-
<criteria @condition-changed='$parent.selfSearch' partial='criteria' v-ref:cri>
|
|
5
|
-
<div class="form-horizontal select-overspread container-fluid auto" novalidate partial>
|
|
6
|
-
<div class="row">
|
|
7
|
-
<div :class="{'col-sm-2 form-group':!$parent.$parent.$parent.isdetail,'col-sm-3 form-group':$parent.$parent.$parent.isdetail}">
|
|
8
|
-
<label class="font_normal_body">组织机构</label>
|
|
9
|
-
<res-select :initresid='$parent.$parent.curorgid'
|
|
10
|
-
@res-select="$parent.$parent.getorg"
|
|
11
|
-
class="select select_list"
|
|
12
|
-
restype='organization'
|
|
13
|
-
style="width: 60%">
|
|
14
|
-
</res-select>
|
|
15
|
-
</div>
|
|
16
|
-
<div :class="{'col-sm-2 form-group':!$parent.$parent.$parent.isdetail,'col-sm-3 form-group':$parent.$parent.$parent.isdetail}">
|
|
17
|
-
<label class="font_normal_body">气价名称</label>
|
|
18
|
-
<input class="input_search" condition="f_price_name like '%{}%'" placeholder='气价名称' style="width:60%" type="text"
|
|
19
|
-
v-el:qjmc v-model="model.f_price_name" v-next-el="cx"
|
|
20
|
-
>
|
|
21
|
-
</div>
|
|
22
|
-
<div :class="{'col-sm-2 form-group':!$parent.$parent.$parent.isdetail,'col-sm-3 form-group':$parent.$parent.$parent.isdetail}">
|
|
23
|
-
<label class="font_normal_body">气价编号</label>
|
|
24
|
-
<input type="number" class="input_search" style="width: 60%" v-model="model.f_user_name" placeholder='气价编号'
|
|
25
|
-
condition="f_price_id = '{}'" >
|
|
26
|
-
</div>
|
|
27
|
-
<!--<div class="col-sm-4">-->
|
|
28
|
-
<!--<label class="font_normal_body">生效时间大于</label>-->
|
|
29
|
-
<!--<datepicker :format="'yyyy-MM-dd'"-->
|
|
30
|
-
<!--:value.sync="model.performDate"-->
|
|
31
|
-
<!--placeholder="生效日期"-->
|
|
32
|
-
<!--condition="performDate > '{}'"-->
|
|
33
|
-
<!--v-model="model.performDate" style="width: 55%">-->
|
|
34
|
-
<!--</datepicker>-->
|
|
35
|
-
<!--</div>-->
|
|
36
|
-
<div class="form-group col-sm-6 button-range" style="margin-right: 10px" >
|
|
37
|
-
<button @click="$parent.$parent.batchAdjust()" class="button_new button_spacing">批量调价</button>
|
|
38
|
-
<button @click="$parent.$parent.search()" class="button_search button_spacing" v-el:cx>查询</button>
|
|
39
|
-
<button @click="$parent.$parent.add()" class="button_new button_spacing">新增</button>
|
|
40
|
-
|
|
41
|
-
<div :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
42
|
-
@click="$parent.$parent.criteriaShow=!$parent.$parent.criteriaShow"
|
|
43
|
-
class="button_spacing"
|
|
44
|
-
style="float: right"></div>
|
|
45
|
-
</div>
|
|
46
|
-
</div>
|
|
47
|
-
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
48
|
-
<div :class="{'col-sm-2 form-group':!$parent.$parent.$parent.isdetail,'col-sm-3 form-group':$parent.$parent.$parent.isdetail}">
|
|
49
|
-
<label class="font_normal_body">气价来源</label>
|
|
50
|
-
<v-select :value.sync="model.f_custom" v-model="model.f_custom"
|
|
51
|
-
placeholder='气价来源' :options="$parent.$parent.custom"
|
|
52
|
-
condition="custom = '{}'"
|
|
53
|
-
close-on-select v-ref:type>
|
|
54
|
-
</v-select>
|
|
55
|
-
</div>
|
|
56
|
-
<div :class="{'col-sm-2 form-group':!$parent.$parent.$parent.isdetail,'col-sm-3 form-group':$parent.$parent.$parent.isdetail}">
|
|
57
|
-
<label class="font_normal_body">客户类型</label>
|
|
58
|
-
<v-select :value.sync="model.f_user_type"
|
|
59
|
-
@change="$parent.$parent.userTypeChange()"
|
|
60
|
-
:options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
|
|
61
|
-
condition="f_user_type = '{}'"
|
|
62
|
-
close-on-select></v-select>
|
|
63
|
-
</div>
|
|
64
|
-
<div :class="{'col-sm-2 form-group':!$parent.$parent.$parent.isdetail,'col-sm-3 form-group':$parent.$parent.$parent.isdetail}">
|
|
65
|
-
<label class="font_normal_body">用气性质</label>
|
|
66
|
-
<v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
|
|
67
|
-
:options='$parent.$parent.gasproperties' placeholder='请选择'
|
|
68
|
-
condition="f_gasproperties = '{}'"
|
|
69
|
-
close-on-select></v-select>
|
|
70
|
-
</div>
|
|
71
|
-
<div :class="{'col-sm-2 form-group':!$parent.$parent.$parent.isdetail,'col-sm-3 form-group':$parent.$parent.$parent.isdetail}">
|
|
72
|
-
<label class="font_normal_body">气价类型</label>
|
|
73
|
-
<v-select :value.sync="model.pricetype" v-model="model.pricetype"
|
|
74
|
-
placeholder='气价类型' :options="$parent.$parent.pricetypes"
|
|
75
|
-
condition="f_price_type = '{}'"
|
|
76
|
-
close-on-select v-ref:type>
|
|
77
|
-
</v-select>
|
|
78
|
-
</div>
|
|
79
|
-
<div :class="{'col-sm-2 form-group':!$parent.$parent.$parent.isdetail,'col-sm-3 form-group':$parent.$parent.$parent.isdetail}">
|
|
80
|
-
<label class="font_normal_body">是否启用</label>
|
|
81
|
-
<v-select :value.sync="model.f_priceStates" v-model="model.f_priceStates"
|
|
82
|
-
:value-single="true"
|
|
83
|
-
placeholder='是否启用' :options="$parent.$parent.priceEnable"
|
|
84
|
-
close-on-select >
|
|
85
|
-
</v-select>
|
|
86
|
-
</div>
|
|
87
|
-
<div :class="{'col-sm-2 form-group':!$parent.$parent.$parent.isdetail,'col-sm-3 form-group':$parent.$parent.$parent.isdetail}">
|
|
88
|
-
<label class="font_normal_body">气价状态</label>
|
|
89
|
-
<v-select :value.sync="model.f_price_state" v-model="model.f_price_state"
|
|
90
|
-
:value-single="true"
|
|
91
|
-
placeholder='气价状态' :options="$parent.$parent.priceStates"
|
|
92
|
-
condition="f_price_state = '{}'"
|
|
93
|
-
close-on-select >
|
|
94
|
-
</v-select>
|
|
95
|
-
</div>
|
|
96
|
-
</div>
|
|
97
|
-
</div>
|
|
98
|
-
|
|
99
|
-
</criteria>
|
|
100
|
-
<data-grid :model="model" class="list_area table_sy" partial='list' v-ref:grid>
|
|
101
|
-
<template partial='head'>
|
|
102
|
-
<tr>
|
|
103
|
-
<th>
|
|
104
|
-
<nobr>序号</nobr>
|
|
105
|
-
</th>
|
|
106
|
-
<th>
|
|
107
|
-
<nobr>气价编号</nobr>
|
|
108
|
-
</th>
|
|
109
|
-
<th v-show="!$parent.$parent.$parent.$parent.usershow && !($parent.$parent.$parent.$parent.isdetail && !$parent.$parent.$parent.$parent.usershow)">
|
|
110
|
-
<nobr>气价名称</nobr>
|
|
111
|
-
</th>
|
|
112
|
-
|
|
113
|
-
<th v-show="!$parent.$parent.$parent.$parent.usershow && !($parent.$parent.$parent.$parent.isdetail && !$parent.$parent.$parent.$parent.usershow)">
|
|
114
|
-
<nobr>客户类型</nobr>
|
|
115
|
-
</th>
|
|
116
|
-
<th v-show="!$parent.$parent.$parent.$parent.usershow && !($parent.$parent.$parent.$parent.isdetail && !$parent.$parent.$parent.$parent.usershow)">
|
|
117
|
-
<nobr>用气性质</nobr>
|
|
118
|
-
</th>
|
|
119
|
-
<th v-show="!$parent.$parent.$parent.$parent.usershow && !($parent.$parent.$parent.$parent.isdetail && !$parent.$parent.$parent.$parent.usershow)">
|
|
120
|
-
<nobr>气价类型</nobr>
|
|
121
|
-
</th>
|
|
122
|
-
<th>
|
|
123
|
-
<nobr>最新版本</nobr>
|
|
124
|
-
</th>
|
|
125
|
-
<th>
|
|
126
|
-
<nobr>气价信息</nobr>
|
|
127
|
-
</th>
|
|
128
|
-
<th>
|
|
129
|
-
<nobr>使用分公司</nobr>
|
|
130
|
-
</th>
|
|
131
|
-
<th>
|
|
132
|
-
<nobr>使用户数</nobr>
|
|
133
|
-
</th>
|
|
134
|
-
<th>
|
|
135
|
-
<nobr>气价状态</nobr>
|
|
136
|
-
</th>
|
|
137
|
-
<th v-if="$parent.$parent.$parent.config.audit">
|
|
138
|
-
<nobr>操作</nobr>
|
|
139
|
-
</th>
|
|
140
|
-
<th v-show="false">
|
|
141
|
-
<nobr>历史记录</nobr>
|
|
142
|
-
</th>
|
|
143
|
-
</tr>
|
|
144
|
-
</template>
|
|
145
|
-
<template partial='body'>
|
|
146
|
-
<tr>
|
|
147
|
-
<td style="text-align:center">{{$index + 1}}</td>
|
|
148
|
-
<td style="text-align:center">{{row.f_price_id}}</td>
|
|
149
|
-
<td style="text-align:center" v-show="!$parent.$parent.$parent.$parent.usershow && !($parent.$parent.$parent.$parent.isdetail && !$parent.$parent.$parent.$parent.usershow)"><nobr>{{row.f_price_name}}</nobr></td>
|
|
150
|
-
<td style="text-align:center" v-show="!$parent.$parent.$parent.$parent.usershow && !($parent.$parent.$parent.$parent.isdetail && !$parent.$parent.$parent.$parent.usershow)">{{row.f_user_type}}</td>
|
|
151
|
-
<td style="text-align:center" v-show="!$parent.$parent.$parent.$parent.usershow && !($parent.$parent.$parent.$parent.isdetail && !$parent.$parent.$parent.$parent.usershow)">{{row.f_gasproperties}}</td>
|
|
152
|
-
<td style="text-align:center" v-show="!$parent.$parent.$parent.$parent.usershow && !($parent.$parent.$parent.$parent.isdetail && !$parent.$parent.$parent.$parent.usershow)">{{row.f_price_type}}</td>
|
|
153
|
-
<td style="text-align:center">{{row.new_version}}</td>
|
|
154
|
-
<td style="text-align:center"><nobr>{{row.f_value}}</nobr></td>
|
|
155
|
-
<td style="text-align:center"><nobr>{{row.f_filiale_name}}</nobr></td>
|
|
156
|
-
<td style="text-align:center"><button @click.stop="$parent.$parent.$parent.operate(row.f_price_id,row.f_price_name)" class="btn btn-link"><b>{{row.usercount}}</b></button></td>
|
|
157
|
-
<td style="text-align:center">{{row.f_price_state}}</td>
|
|
158
|
-
<td style="text-align:center" v-if="$parent.$parent.$parent.config.audit">
|
|
159
|
-
<button :disabled="$login.r.includes('气价审核')" @click.stop="$parent.$parent.$parent.passPrice(row)"
|
|
160
|
-
class="btn btn-link" v-if="row.f_state === '待审核'">通过
|
|
161
|
-
</button>
|
|
162
|
-
</td>
|
|
163
|
-
<td style="text-align: center;" v-show="false">
|
|
164
|
-
<button type="button" name="button" class="button_search-2 button_spacing width-60"
|
|
165
|
-
@click.stop="$parent.$parent.$parent.showhistory(row)">查看</button>
|
|
166
|
-
</td>
|
|
167
|
-
</tr>
|
|
168
|
-
</template>
|
|
169
|
-
<template partial='foot'></template>
|
|
170
|
-
</data-grid>
|
|
171
|
-
</criteria-paged>
|
|
172
|
-
<modal :backdrop="false" :show.sync="show" v-if="show" width="1000px">
|
|
173
|
-
<header class="modal-header" slot="modal-header">
|
|
174
|
-
<button @click="show=!show" class="close" type="button"><span>×</span></button>
|
|
175
|
-
<h4 class="modal-title">历史记录</h4>
|
|
176
|
-
</header>
|
|
177
|
-
<article class="modal-body" slot="modal-body" style="height:100%;width:100%" title="历史记录">
|
|
178
|
-
<price-change-history :row="row" :show.sync="show" @select-changed="historySeleted" v-on:toggle="close"></price-change-history>
|
|
179
|
-
</article>
|
|
180
|
-
<footer class="modal-footer" slot="modal-footer">
|
|
181
|
-
|
|
182
|
-
</footer>
|
|
183
|
-
</modal>
|
|
184
|
-
</div>
|
|
185
|
-
</template>
|
|
186
|
-
|
|
187
|
-
<script>
|
|
188
|
-
/**
|
|
189
|
-
*阶梯气价查询列表
|
|
190
|
-
*/
|
|
191
|
-
import {PagedList} from 'vue-client'
|
|
192
|
-
import Vue from 'vue'
|
|
193
|
-
|
|
194
|
-
let passGen = async function (self, row) {
|
|
195
|
-
let param = {
|
|
196
|
-
id: row.id,
|
|
197
|
-
userid: self.$login.f.id
|
|
198
|
-
}
|
|
199
|
-
await self.$resetpost('rs/logic/priceNextFlow', param, {
|
|
200
|
-
warnMsg: `确定要通过气价名称为: ${row.f_price_name}的气价吗?`,
|
|
201
|
-
resolveMsg: '审核通过',
|
|
202
|
-
rejectMsg: '流程进行出错!!!'
|
|
203
|
-
})
|
|
204
|
-
self.$dispatch('success')
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
export default {
|
|
208
|
-
data () {
|
|
209
|
-
return {
|
|
210
|
-
model: new PagedList('rs/sql/getGasPriceInfo', 20, {performDate: 'this.model.performDate', orderitem: `'${this.orderitem}'`}),
|
|
211
|
-
show: false,
|
|
212
|
-
criteriaShow: false,
|
|
213
|
-
// 公司下拉
|
|
214
|
-
curorgid: [this.$login.f.orgid],
|
|
215
|
-
row: {},
|
|
216
|
-
f_orgid: '',
|
|
217
|
-
gasproperties: [],
|
|
218
|
-
priceEnable:[{label: '全部', value: ''},{label: '是', value: '是'}, {label: '否', value: '否'}],
|
|
219
|
-
priceStates:[{label: '全部', value: ''},{label: '使用中', value: '使用中'},{label: '预调价', value: '预调价'},{label: '已作废', value: '已作废'},{label: '有效', value: '有效'},{label: '删除', value: '删除'}],
|
|
220
|
-
custom: [{label: '全部', value: ''}, {label: '正常气价', value: '正常气价'}, {label: '自定义气价', value: '自定义气价'}],
|
|
221
|
-
usertypes: this.$appdata.getParam('用户类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')] : []
|
|
222
|
-
}
|
|
223
|
-
},
|
|
224
|
-
props: {
|
|
225
|
-
orderitem: {
|
|
226
|
-
type: String,
|
|
227
|
-
default: 'f_price_id'
|
|
228
|
-
},
|
|
229
|
-
row: {},
|
|
230
|
-
config: {},
|
|
231
|
-
ispartial: false,
|
|
232
|
-
f_filialeid: {
|
|
233
|
-
type: String
|
|
234
|
-
}
|
|
235
|
-
},
|
|
236
|
-
ready () {
|
|
237
|
-
this.$refs.paged.$refs.cri.model.f_priceStates=['是']
|
|
238
|
-
this.$refs.paged.$refs.cri.model.f_price_state=['使用中']
|
|
239
|
-
this.$refs.paged.$refs.cri.model.performDate = this.$login.toStandardDateString()
|
|
240
|
-
this.search()
|
|
241
|
-
},
|
|
242
|
-
methods: {
|
|
243
|
-
batchAdjust(){
|
|
244
|
-
this.$parent.usershow=true
|
|
245
|
-
this.$parent.priceid=null
|
|
246
|
-
},
|
|
247
|
-
showhistory (row) {
|
|
248
|
-
this.show = true
|
|
249
|
-
this.row = row
|
|
250
|
-
},
|
|
251
|
-
userTypeChange () {
|
|
252
|
-
this.gasproperties = []
|
|
253
|
-
if (this.$refs.paged.$refs.cri.model !== null) {
|
|
254
|
-
this.$refs.paged.$refs.cri.model.f_gasproperties = ''
|
|
255
|
-
this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
|
|
256
|
-
} else {
|
|
257
|
-
this.gasproperties = [{label: '全部', value: ''}]
|
|
258
|
-
}
|
|
259
|
-
},
|
|
260
|
-
operate (id, pricename) {
|
|
261
|
-
this.$parent.usershow = true
|
|
262
|
-
this.$parent.priceid = id
|
|
263
|
-
this.$parent.pricename = pricename
|
|
264
|
-
},
|
|
265
|
-
search () {
|
|
266
|
-
this.$refs.paged.$refs.cri.search()
|
|
267
|
-
this.$dispatch('search')
|
|
268
|
-
},
|
|
269
|
-
hidden () {
|
|
270
|
-
this.criteriaShow = !this.criteriaShow
|
|
271
|
-
},
|
|
272
|
-
getorg (val) {
|
|
273
|
-
this.f_orgid = this.$login.convertToIn(val)
|
|
274
|
-
this.f_filialeid = val[0]
|
|
275
|
-
},
|
|
276
|
-
selfSearch (args) {
|
|
277
|
-
if (!this.f_orgid) {
|
|
278
|
-
this.getorg([this.$login.f.orgid])
|
|
279
|
-
}
|
|
280
|
-
console.log('查询。。。', this.f_orgid)
|
|
281
|
-
if (this.f_orgid) {
|
|
282
|
-
args.condition = `f_filialeid in ${this.f_orgid} and ${args.condition}`
|
|
283
|
-
}
|
|
284
|
-
if(this.$refs.paged.$refs.cri.model.f_priceStates=='否'){
|
|
285
|
-
args.condition += ` and f_end_date is null`
|
|
286
|
-
}else if(this.$refs.paged.$refs.cri.model.f_priceStates=='是'){
|
|
287
|
-
args.condition += ` and f_end_date is not null`
|
|
288
|
-
}
|
|
289
|
-
this.$refs.paged.$refs.grid.$el.scrollTop = 0
|
|
290
|
-
this.model.search(args.condition, args.model)
|
|
291
|
-
},
|
|
292
|
-
add () {
|
|
293
|
-
this.$dispatch('add')
|
|
294
|
-
},
|
|
295
|
-
passPrice (row) {
|
|
296
|
-
console.log('气价审核通过。。。', row, this.$refs.paged.$refs.grid.selected)
|
|
297
|
-
let selectedRow = this.$refs.paged.$refs.grid.selected
|
|
298
|
-
if (selectedRow) {
|
|
299
|
-
if (row.id !== selectedRow.id && selectedRow.f_state === '待审核') {
|
|
300
|
-
this.$showAlert('您通过的气价信息不是您选中的信息', 'warning', 3000)
|
|
301
|
-
} else {
|
|
302
|
-
passGen(this, row)
|
|
303
|
-
}
|
|
304
|
-
} else {
|
|
305
|
-
passGen(this, row)
|
|
306
|
-
}
|
|
307
|
-
},
|
|
308
|
-
historySeleted () {
|
|
309
|
-
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
},
|
|
313
|
-
watch: {
|
|
314
|
-
'model.rows.length' (val) {
|
|
315
|
-
if (val === 1) {
|
|
316
|
-
this.$refs.paged.$refs.grid.select(this.model.rows[0])
|
|
317
|
-
this.$parent.usershow = false
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
},
|
|
321
|
-
computed: {
|
|
322
|
-
pricetypes () {
|
|
323
|
-
return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
|
|
324
|
-
},
|
|
325
|
-
bookstates () {
|
|
326
|
-
return [ {label: '有效', value: "= '有效'"}, {label: '无效', value: "= '无效'"} ]
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div @keyup.enter="search" class="flex">
|
|
3
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
4
|
+
<criteria @condition-changed='$parent.selfSearch' partial='criteria' v-ref:cri>
|
|
5
|
+
<div class="form-horizontal select-overspread container-fluid auto" novalidate partial>
|
|
6
|
+
<div class="row">
|
|
7
|
+
<div :class="{'col-sm-2 form-group':!$parent.$parent.$parent.isdetail,'col-sm-3 form-group':$parent.$parent.$parent.isdetail}">
|
|
8
|
+
<label class="font_normal_body">组织机构</label>
|
|
9
|
+
<res-select :initresid='$parent.$parent.curorgid'
|
|
10
|
+
@res-select="$parent.$parent.getorg"
|
|
11
|
+
class="select select_list"
|
|
12
|
+
restype='organization'
|
|
13
|
+
style="width: 60%">
|
|
14
|
+
</res-select>
|
|
15
|
+
</div>
|
|
16
|
+
<div :class="{'col-sm-2 form-group':!$parent.$parent.$parent.isdetail,'col-sm-3 form-group':$parent.$parent.$parent.isdetail}">
|
|
17
|
+
<label class="font_normal_body">气价名称</label>
|
|
18
|
+
<input class="input_search" condition="f_price_name like '%{}%'" placeholder='气价名称' style="width:60%" type="text"
|
|
19
|
+
v-el:qjmc v-model="model.f_price_name" v-next-el="cx"
|
|
20
|
+
>
|
|
21
|
+
</div>
|
|
22
|
+
<div :class="{'col-sm-2 form-group':!$parent.$parent.$parent.isdetail,'col-sm-3 form-group':$parent.$parent.$parent.isdetail}">
|
|
23
|
+
<label class="font_normal_body">气价编号</label>
|
|
24
|
+
<input type="number" class="input_search" style="width: 60%" v-model="model.f_user_name" placeholder='气价编号'
|
|
25
|
+
condition="f_price_id = '{}'" >
|
|
26
|
+
</div>
|
|
27
|
+
<!--<div class="col-sm-4">-->
|
|
28
|
+
<!--<label class="font_normal_body">生效时间大于</label>-->
|
|
29
|
+
<!--<datepicker :format="'yyyy-MM-dd'"-->
|
|
30
|
+
<!--:value.sync="model.performDate"-->
|
|
31
|
+
<!--placeholder="生效日期"-->
|
|
32
|
+
<!--condition="performDate > '{}'"-->
|
|
33
|
+
<!--v-model="model.performDate" style="width: 55%">-->
|
|
34
|
+
<!--</datepicker>-->
|
|
35
|
+
<!--</div>-->
|
|
36
|
+
<div class="form-group col-sm-6 button-range" style="margin-right: 10px" >
|
|
37
|
+
<button @click="$parent.$parent.batchAdjust()" class="button_new button_spacing">批量调价</button>
|
|
38
|
+
<button @click="$parent.$parent.search()" class="button_search button_spacing" v-el:cx>查询</button>
|
|
39
|
+
<button @click="$parent.$parent.add()" class="button_new button_spacing">新增</button>
|
|
40
|
+
|
|
41
|
+
<div :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
42
|
+
@click="$parent.$parent.criteriaShow=!$parent.$parent.criteriaShow"
|
|
43
|
+
class="button_spacing"
|
|
44
|
+
style="float: right"></div>
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
48
|
+
<div :class="{'col-sm-2 form-group':!$parent.$parent.$parent.isdetail,'col-sm-3 form-group':$parent.$parent.$parent.isdetail}">
|
|
49
|
+
<label class="font_normal_body">气价来源</label>
|
|
50
|
+
<v-select :value.sync="model.f_custom" v-model="model.f_custom"
|
|
51
|
+
placeholder='气价来源' :options="$parent.$parent.custom"
|
|
52
|
+
condition="custom = '{}'"
|
|
53
|
+
close-on-select v-ref:type>
|
|
54
|
+
</v-select>
|
|
55
|
+
</div>
|
|
56
|
+
<div :class="{'col-sm-2 form-group':!$parent.$parent.$parent.isdetail,'col-sm-3 form-group':$parent.$parent.$parent.isdetail}">
|
|
57
|
+
<label class="font_normal_body">客户类型</label>
|
|
58
|
+
<v-select :value.sync="model.f_user_type"
|
|
59
|
+
@change="$parent.$parent.userTypeChange()"
|
|
60
|
+
:options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
|
|
61
|
+
condition="f_user_type = '{}'"
|
|
62
|
+
close-on-select></v-select>
|
|
63
|
+
</div>
|
|
64
|
+
<div :class="{'col-sm-2 form-group':!$parent.$parent.$parent.isdetail,'col-sm-3 form-group':$parent.$parent.$parent.isdetail}">
|
|
65
|
+
<label class="font_normal_body">用气性质</label>
|
|
66
|
+
<v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
|
|
67
|
+
:options='$parent.$parent.gasproperties' placeholder='请选择'
|
|
68
|
+
condition="f_gasproperties = '{}'"
|
|
69
|
+
close-on-select></v-select>
|
|
70
|
+
</div>
|
|
71
|
+
<div :class="{'col-sm-2 form-group':!$parent.$parent.$parent.isdetail,'col-sm-3 form-group':$parent.$parent.$parent.isdetail}">
|
|
72
|
+
<label class="font_normal_body">气价类型</label>
|
|
73
|
+
<v-select :value.sync="model.pricetype" v-model="model.pricetype"
|
|
74
|
+
placeholder='气价类型' :options="$parent.$parent.pricetypes"
|
|
75
|
+
condition="f_price_type = '{}'"
|
|
76
|
+
close-on-select v-ref:type>
|
|
77
|
+
</v-select>
|
|
78
|
+
</div>
|
|
79
|
+
<div :class="{'col-sm-2 form-group':!$parent.$parent.$parent.isdetail,'col-sm-3 form-group':$parent.$parent.$parent.isdetail}">
|
|
80
|
+
<label class="font_normal_body">是否启用</label>
|
|
81
|
+
<v-select :value.sync="model.f_priceStates" v-model="model.f_priceStates"
|
|
82
|
+
:value-single="true"
|
|
83
|
+
placeholder='是否启用' :options="$parent.$parent.priceEnable"
|
|
84
|
+
close-on-select >
|
|
85
|
+
</v-select>
|
|
86
|
+
</div>
|
|
87
|
+
<div :class="{'col-sm-2 form-group':!$parent.$parent.$parent.isdetail,'col-sm-3 form-group':$parent.$parent.$parent.isdetail}">
|
|
88
|
+
<label class="font_normal_body">气价状态</label>
|
|
89
|
+
<v-select :value.sync="model.f_price_state" v-model="model.f_price_state"
|
|
90
|
+
:value-single="true"
|
|
91
|
+
placeholder='气价状态' :options="$parent.$parent.priceStates"
|
|
92
|
+
condition="f_price_state = '{}'"
|
|
93
|
+
close-on-select >
|
|
94
|
+
</v-select>
|
|
95
|
+
</div>
|
|
96
|
+
</div>
|
|
97
|
+
</div>
|
|
98
|
+
|
|
99
|
+
</criteria>
|
|
100
|
+
<data-grid :model="model" class="list_area table_sy" partial='list' v-ref:grid>
|
|
101
|
+
<template partial='head'>
|
|
102
|
+
<tr>
|
|
103
|
+
<th>
|
|
104
|
+
<nobr>序号</nobr>
|
|
105
|
+
</th>
|
|
106
|
+
<th>
|
|
107
|
+
<nobr>气价编号</nobr>
|
|
108
|
+
</th>
|
|
109
|
+
<th v-show="!$parent.$parent.$parent.$parent.usershow && !($parent.$parent.$parent.$parent.isdetail && !$parent.$parent.$parent.$parent.usershow)">
|
|
110
|
+
<nobr>气价名称</nobr>
|
|
111
|
+
</th>
|
|
112
|
+
|
|
113
|
+
<th v-show="!$parent.$parent.$parent.$parent.usershow && !($parent.$parent.$parent.$parent.isdetail && !$parent.$parent.$parent.$parent.usershow)">
|
|
114
|
+
<nobr>客户类型</nobr>
|
|
115
|
+
</th>
|
|
116
|
+
<th v-show="!$parent.$parent.$parent.$parent.usershow && !($parent.$parent.$parent.$parent.isdetail && !$parent.$parent.$parent.$parent.usershow)">
|
|
117
|
+
<nobr>用气性质</nobr>
|
|
118
|
+
</th>
|
|
119
|
+
<th v-show="!$parent.$parent.$parent.$parent.usershow && !($parent.$parent.$parent.$parent.isdetail && !$parent.$parent.$parent.$parent.usershow)">
|
|
120
|
+
<nobr>气价类型</nobr>
|
|
121
|
+
</th>
|
|
122
|
+
<th>
|
|
123
|
+
<nobr>最新版本</nobr>
|
|
124
|
+
</th>
|
|
125
|
+
<th>
|
|
126
|
+
<nobr>气价信息</nobr>
|
|
127
|
+
</th>
|
|
128
|
+
<th>
|
|
129
|
+
<nobr>使用分公司</nobr>
|
|
130
|
+
</th>
|
|
131
|
+
<th>
|
|
132
|
+
<nobr>使用户数</nobr>
|
|
133
|
+
</th>
|
|
134
|
+
<th>
|
|
135
|
+
<nobr>气价状态</nobr>
|
|
136
|
+
</th>
|
|
137
|
+
<th v-if="$parent.$parent.$parent.config.audit">
|
|
138
|
+
<nobr>操作</nobr>
|
|
139
|
+
</th>
|
|
140
|
+
<th v-show="false">
|
|
141
|
+
<nobr>历史记录</nobr>
|
|
142
|
+
</th>
|
|
143
|
+
</tr>
|
|
144
|
+
</template>
|
|
145
|
+
<template partial='body'>
|
|
146
|
+
<tr>
|
|
147
|
+
<td style="text-align:center">{{$index + 1}}</td>
|
|
148
|
+
<td style="text-align:center">{{row.f_price_id}}</td>
|
|
149
|
+
<td style="text-align:center" v-show="!$parent.$parent.$parent.$parent.usershow && !($parent.$parent.$parent.$parent.isdetail && !$parent.$parent.$parent.$parent.usershow)"><nobr>{{row.f_price_name}}</nobr></td>
|
|
150
|
+
<td style="text-align:center" v-show="!$parent.$parent.$parent.$parent.usershow && !($parent.$parent.$parent.$parent.isdetail && !$parent.$parent.$parent.$parent.usershow)">{{row.f_user_type}}</td>
|
|
151
|
+
<td style="text-align:center" v-show="!$parent.$parent.$parent.$parent.usershow && !($parent.$parent.$parent.$parent.isdetail && !$parent.$parent.$parent.$parent.usershow)">{{row.f_gasproperties}}</td>
|
|
152
|
+
<td style="text-align:center" v-show="!$parent.$parent.$parent.$parent.usershow && !($parent.$parent.$parent.$parent.isdetail && !$parent.$parent.$parent.$parent.usershow)">{{row.f_price_type}}</td>
|
|
153
|
+
<td style="text-align:center">{{row.new_version}}</td>
|
|
154
|
+
<td style="text-align:center"><nobr>{{row.f_value}}</nobr></td>
|
|
155
|
+
<td style="text-align:center"><nobr>{{row.f_filiale_name}}</nobr></td>
|
|
156
|
+
<td style="text-align:center"><button @click.stop="$parent.$parent.$parent.operate(row.f_price_id,row.f_price_name)" class="btn btn-link"><b>{{row.usercount}}</b></button></td>
|
|
157
|
+
<td style="text-align:center">{{row.f_price_state}}</td>
|
|
158
|
+
<td style="text-align:center" v-if="$parent.$parent.$parent.config.audit">
|
|
159
|
+
<button :disabled="$login.r.includes('气价审核')" @click.stop="$parent.$parent.$parent.passPrice(row)"
|
|
160
|
+
class="btn btn-link" v-if="row.f_state === '待审核'">通过
|
|
161
|
+
</button>
|
|
162
|
+
</td>
|
|
163
|
+
<td style="text-align: center;" v-show="false">
|
|
164
|
+
<button type="button" name="button" class="button_search-2 button_spacing width-60"
|
|
165
|
+
@click.stop="$parent.$parent.$parent.showhistory(row)">查看</button>
|
|
166
|
+
</td>
|
|
167
|
+
</tr>
|
|
168
|
+
</template>
|
|
169
|
+
<template partial='foot'></template>
|
|
170
|
+
</data-grid>
|
|
171
|
+
</criteria-paged>
|
|
172
|
+
<modal :backdrop="false" :show.sync="show" v-if="show" width="1000px">
|
|
173
|
+
<header class="modal-header" slot="modal-header">
|
|
174
|
+
<button @click="show=!show" class="close" type="button"><span>×</span></button>
|
|
175
|
+
<h4 class="modal-title">历史记录</h4>
|
|
176
|
+
</header>
|
|
177
|
+
<article class="modal-body" slot="modal-body" style="height:100%;width:100%" title="历史记录">
|
|
178
|
+
<price-change-history :row="row" :show.sync="show" @select-changed="historySeleted" v-on:toggle="close"></price-change-history>
|
|
179
|
+
</article>
|
|
180
|
+
<footer class="modal-footer" slot="modal-footer">
|
|
181
|
+
|
|
182
|
+
</footer>
|
|
183
|
+
</modal>
|
|
184
|
+
</div>
|
|
185
|
+
</template>
|
|
186
|
+
|
|
187
|
+
<script>
|
|
188
|
+
/**
|
|
189
|
+
*阶梯气价查询列表
|
|
190
|
+
*/
|
|
191
|
+
import {PagedList} from 'vue-client'
|
|
192
|
+
import Vue from 'vue'
|
|
193
|
+
|
|
194
|
+
let passGen = async function (self, row) {
|
|
195
|
+
let param = {
|
|
196
|
+
id: row.id,
|
|
197
|
+
userid: self.$login.f.id
|
|
198
|
+
}
|
|
199
|
+
await self.$resetpost('rs/logic/priceNextFlow', param, {
|
|
200
|
+
warnMsg: `确定要通过气价名称为: ${row.f_price_name}的气价吗?`,
|
|
201
|
+
resolveMsg: '审核通过',
|
|
202
|
+
rejectMsg: '流程进行出错!!!'
|
|
203
|
+
})
|
|
204
|
+
self.$dispatch('success')
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
export default {
|
|
208
|
+
data () {
|
|
209
|
+
return {
|
|
210
|
+
model: new PagedList('rs/sql/getGasPriceInfo', 20, {performDate: 'this.model.performDate', orderitem: `'${this.orderitem}'`}),
|
|
211
|
+
show: false,
|
|
212
|
+
criteriaShow: false,
|
|
213
|
+
// 公司下拉
|
|
214
|
+
curorgid: [this.$login.f.orgid],
|
|
215
|
+
row: {},
|
|
216
|
+
f_orgid: '',
|
|
217
|
+
gasproperties: [],
|
|
218
|
+
priceEnable:[{label: '全部', value: ''},{label: '是', value: '是'}, {label: '否', value: '否'}],
|
|
219
|
+
priceStates:[{label: '全部', value: ''},{label: '使用中', value: '使用中'},{label: '预调价', value: '预调价'},{label: '已作废', value: '已作废'},{label: '有效', value: '有效'},{label: '删除', value: '删除'}],
|
|
220
|
+
custom: [{label: '全部', value: ''}, {label: '正常气价', value: '正常气价'}, {label: '自定义气价', value: '自定义气价'}],
|
|
221
|
+
usertypes: this.$appdata.getParam('用户类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')] : []
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
props: {
|
|
225
|
+
orderitem: {
|
|
226
|
+
type: String,
|
|
227
|
+
default: 'f_price_id'
|
|
228
|
+
},
|
|
229
|
+
row: {},
|
|
230
|
+
config: {},
|
|
231
|
+
ispartial: false,
|
|
232
|
+
f_filialeid: {
|
|
233
|
+
type: String
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
ready () {
|
|
237
|
+
this.$refs.paged.$refs.cri.model.f_priceStates=['是']
|
|
238
|
+
this.$refs.paged.$refs.cri.model.f_price_state=['使用中']
|
|
239
|
+
this.$refs.paged.$refs.cri.model.performDate = this.$login.toStandardDateString()
|
|
240
|
+
this.search()
|
|
241
|
+
},
|
|
242
|
+
methods: {
|
|
243
|
+
batchAdjust(){
|
|
244
|
+
this.$parent.usershow=true
|
|
245
|
+
this.$parent.priceid=null
|
|
246
|
+
},
|
|
247
|
+
showhistory (row) {
|
|
248
|
+
this.show = true
|
|
249
|
+
this.row = row
|
|
250
|
+
},
|
|
251
|
+
userTypeChange () {
|
|
252
|
+
this.gasproperties = []
|
|
253
|
+
if (this.$refs.paged.$refs.cri.model !== null) {
|
|
254
|
+
this.$refs.paged.$refs.cri.model.f_gasproperties = ''
|
|
255
|
+
this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
|
|
256
|
+
} else {
|
|
257
|
+
this.gasproperties = [{label: '全部', value: ''}]
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
operate (id, pricename) {
|
|
261
|
+
this.$parent.usershow = true
|
|
262
|
+
this.$parent.priceid = id
|
|
263
|
+
this.$parent.pricename = pricename
|
|
264
|
+
},
|
|
265
|
+
search () {
|
|
266
|
+
this.$refs.paged.$refs.cri.search()
|
|
267
|
+
this.$dispatch('search')
|
|
268
|
+
},
|
|
269
|
+
hidden () {
|
|
270
|
+
this.criteriaShow = !this.criteriaShow
|
|
271
|
+
},
|
|
272
|
+
getorg (val) {
|
|
273
|
+
this.f_orgid = this.$login.convertToIn(val)
|
|
274
|
+
this.f_filialeid = val[0]
|
|
275
|
+
},
|
|
276
|
+
selfSearch (args) {
|
|
277
|
+
if (!this.f_orgid) {
|
|
278
|
+
this.getorg([this.$login.f.orgid])
|
|
279
|
+
}
|
|
280
|
+
console.log('查询。。。', this.f_orgid)
|
|
281
|
+
if (this.f_orgid) {
|
|
282
|
+
args.condition = `f_filialeid in ${this.f_orgid} and ${args.condition}`
|
|
283
|
+
}
|
|
284
|
+
if(this.$refs.paged.$refs.cri.model.f_priceStates=='否'){
|
|
285
|
+
args.condition += ` and f_end_date is null`
|
|
286
|
+
}else if(this.$refs.paged.$refs.cri.model.f_priceStates=='是'){
|
|
287
|
+
args.condition += ` and f_end_date is not null`
|
|
288
|
+
}
|
|
289
|
+
this.$refs.paged.$refs.grid.$el.scrollTop = 0
|
|
290
|
+
this.model.search(args.condition, args.model)
|
|
291
|
+
},
|
|
292
|
+
add () {
|
|
293
|
+
this.$dispatch('add')
|
|
294
|
+
},
|
|
295
|
+
passPrice (row) {
|
|
296
|
+
console.log('气价审核通过。。。', row, this.$refs.paged.$refs.grid.selected)
|
|
297
|
+
let selectedRow = this.$refs.paged.$refs.grid.selected
|
|
298
|
+
if (selectedRow) {
|
|
299
|
+
if (row.id !== selectedRow.id && selectedRow.f_state === '待审核') {
|
|
300
|
+
this.$showAlert('您通过的气价信息不是您选中的信息', 'warning', 3000)
|
|
301
|
+
} else {
|
|
302
|
+
passGen(this, row)
|
|
303
|
+
}
|
|
304
|
+
} else {
|
|
305
|
+
passGen(this, row)
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
historySeleted () {
|
|
309
|
+
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
},
|
|
313
|
+
watch: {
|
|
314
|
+
'model.rows.length' (val) {
|
|
315
|
+
if (val === 1) {
|
|
316
|
+
this.$refs.paged.$refs.grid.select(this.model.rows[0])
|
|
317
|
+
this.$parent.usershow = false
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
computed: {
|
|
322
|
+
pricetypes () {
|
|
323
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
|
|
324
|
+
},
|
|
325
|
+
bookstates () {
|
|
326
|
+
return [ {label: '有效', value: "= '有效'"}, {label: '无效', value: "= '无效'"} ]
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
</script>
|