|
@@ -11,6 +11,9 @@
|
11
|
11
|
margin-bottom: 10px;
|
12
|
12
|
">
|
13
|
13
|
<div>
|
|
14
|
+ <el-button size="small" type="primary"
|
|
15
|
+ @click="login">登录
|
|
16
|
+ </el-button>
|
14
|
17
|
<el-button size="small" type="primary"
|
15
|
18
|
@click="query">查询
|
16
|
19
|
</el-button>
|
|
@@ -180,7 +183,53 @@
|
180
|
183
|
</el-pagination>
|
181
|
184
|
</div>
|
182
|
185
|
|
183
|
|
-
|
|
186
|
+ <el-dialog
|
|
187
|
+ title="登录"
|
|
188
|
+ :visible.sync="login_dialogVisible"
|
|
189
|
+ width="40%"
|
|
190
|
+ >
|
|
191
|
+ <div>
|
|
192
|
+ <el-form :rules="rules" :label-position="labelPosition" label-width="100px" :model="formLabelAlign">
|
|
193
|
+ <el-form-item label="税局账号">
|
|
194
|
+ <el-input v-model="formLabelAlign.name"></el-input>
|
|
195
|
+ </el-form-item>
|
|
196
|
+ <el-form-item label="税局密码">
|
|
197
|
+ <el-input v-model="formLabelAlign.region"></el-input>
|
|
198
|
+ </el-form-item>
|
|
199
|
+ <el-form-item label="手机号码">
|
|
200
|
+ <el-input v-model="formLabelAlign.type"></el-input>
|
|
201
|
+ </el-form-item>
|
|
202
|
+ <el-form-item label="短信验证码" prop="verify">
|
|
203
|
+ <div style="display: inline-block;width: 50%;">
|
|
204
|
+ <el-input v-model="formLabelAlign.verify"></el-input>
|
|
205
|
+ </div>
|
|
206
|
+ <div style="display: inline-block;">
|
|
207
|
+ <el-button :disabled="countdown > 0" @click="verify_click">{{countdown > 0?countdown:'获取短信验证码'}}</el-button>
|
|
208
|
+ </div>
|
|
209
|
+ </el-form-item>
|
|
210
|
+ </el-form>
|
|
211
|
+ </div>
|
|
212
|
+ <span slot="footer" class="dialog-footer">
|
|
213
|
+ <el-button @click="login_dialogVisible = false">取 消</el-button>
|
|
214
|
+ <el-button type="primary" @click="login_dialogVisible = false">确 定</el-button>
|
|
215
|
+ </span>
|
|
216
|
+ </el-dialog>
|
|
217
|
+
|
|
218
|
+ <!-- 二维码 -->
|
|
219
|
+ <el-dialog
|
|
220
|
+ title="提示"
|
|
221
|
+ :visible.sync="qr_dialogVisible"
|
|
222
|
+ width="30%"
|
|
223
|
+ center
|
|
224
|
+ >
|
|
225
|
+ <div style="margin: auto;width: 120px;">
|
|
226
|
+ <div class="qrcode" ref="qrCodeUrl"></div>
|
|
227
|
+ </div>
|
|
228
|
+ <span slot="footer" class="dialog-footer">
|
|
229
|
+ <el-button @click="qr_dialogVisible = false">取 消</el-button>
|
|
230
|
+ <el-button type="primary" @click="qr_dialogVisible = false">确 定</el-button>
|
|
231
|
+ </span>
|
|
232
|
+ </el-dialog>
|
184
|
233
|
</div>
|
185
|
234
|
</template>
|
186
|
235
|
|
|
@@ -203,7 +252,7 @@ import {
|
203
|
252
|
} from '../../api/fapiao'
|
204
|
253
|
|
205
|
254
|
import { getDialysisRecordInitData } from '@/api/dialysis_record'
|
206
|
|
-
|
|
255
|
+import QRCode from 'qrcodejs2'
|
207
|
256
|
const moment = require('moment')
|
208
|
257
|
export default {
|
209
|
258
|
name: 'OutpatientChargesSummary',
|
|
@@ -266,6 +315,21 @@ export default {
|
266
|
315
|
settlementVisible: false,
|
267
|
316
|
settlementObj: {},
|
268
|
317
|
accounts_click_vi:false,
|
|
318
|
+
|
|
319
|
+ login_dialogVisible:false,
|
|
320
|
+ qr_dialogVisible:false,
|
|
321
|
+ formLabelAlign: {
|
|
322
|
+ name: '',
|
|
323
|
+ region: '',
|
|
324
|
+ type: '',
|
|
325
|
+ verify:'',
|
|
326
|
+ },
|
|
327
|
+ rules:{
|
|
328
|
+ verify:[{ required: true, message: '请输入活动名称', trigger: 'blur' },]
|
|
329
|
+ },
|
|
330
|
+ time:null,
|
|
331
|
+ countdown: 0,
|
|
332
|
+
|
269
|
333
|
}
|
270
|
334
|
},
|
271
|
335
|
|
|
@@ -278,7 +342,32 @@ export default {
|
278
|
342
|
},
|
279
|
343
|
|
280
|
344
|
methods: {
|
|
345
|
+ login(){
|
|
346
|
+ this.login_dialogVisible = true
|
|
347
|
+ },
|
|
348
|
+ verify_click(){
|
|
349
|
+ this.countdown = 60
|
|
350
|
+ this.time = setInterval(() => {
|
|
351
|
+ if (this.countdown > 0) {
|
|
352
|
+ this.countdown--
|
|
353
|
+ } else {
|
|
354
|
+ clearInterval(this.time)
|
|
355
|
+ }
|
|
356
|
+ }, 1000)
|
|
357
|
+ },
|
281
|
358
|
auth(){
|
|
359
|
+ this.qr_dialogVisible =true
|
|
360
|
+ this.$nextTick(() =>{
|
|
361
|
+ var qrcode = new QRCode(this.$refs.qrCodeUrl, {
|
|
362
|
+ text: 'https://blog.csdn.net/weixin_42601136', // 需要转换为二维码的内容
|
|
363
|
+ width: 120,
|
|
364
|
+ height: 120,
|
|
365
|
+
|
|
366
|
+ colorDark: '#000000',
|
|
367
|
+ colorLight: '#ffffff',
|
|
368
|
+ correctLevel: QRCode.CorrectLevel.H
|
|
369
|
+ })
|
|
370
|
+ })
|
282
|
371
|
|
283
|
372
|
},
|
284
|
373
|
query(){
|
|
@@ -578,6 +667,15 @@ export default {
|
578
|
667
|
|
579
|
668
|
|
580
|
669
|
}
|
|
670
|
+ },
|
|
671
|
+ watch:{
|
|
672
|
+ countdown(news,old){
|
|
673
|
+ if(this.countdown ==0){
|
|
674
|
+ clearInterval(this.time)
|
|
675
|
+ }
|
|
676
|
+
|
|
677
|
+ }
|
|
678
|
+
|
581
|
679
|
}
|
582
|
680
|
}
|
583
|
681
|
</script>
|