From 1e9fa82cb2fe2c15f46bd1dd73f5c878c74b83b8 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期四, 04 八月 2022 15:35:50 +0800
Subject: [PATCH] 1.系统多账号登录问题2.采购订单页面样式修改及数据渲染
---
src/views/xtsz/bmgz.vue | 29 +++++++++++++++++------------
1 files changed, 17 insertions(+), 12 deletions(-)
diff --git a/src/views/xtsz/bmgz.vue b/src/views/xtsz/bmgz.vue
index 2e6270d..b2b5ba2 100644
--- a/src/views/xtsz/bmgz.vue
+++ b/src/views/xtsz/bmgz.vue
@@ -101,7 +101,7 @@
>
<template slot-scope="{row}">
<div class="operationClass">
- <el-button type="text" @click="edit('edit',row)">淇敼</el-button>
+ <el-button type="text" @click="edit('edit',row)">缂栬緫</el-button>
<!-- <el-button type="text" @click="del(row)">鍒犻櫎</el-button>-->
</div>
</template>
@@ -139,6 +139,7 @@
<el-select
v-model="dialogForm.filingdate"
style="width: 220px"
+ filterable
placeholder="璇烽�夋嫨"
:popper-append-to-body="false"
>
@@ -152,9 +153,13 @@
</el-form-item>
<el-form-item label="鑷浣嶆暟" prop="incbit">
<!-- @change="handleChange"-->
- <el-input-number v-model="dialogForm.incbit" :min="1" :max="100" label="鎻忚堪鏂囧瓧" />
+ <!-- <el-input-number v-model="dialogForm.incbit" :min="1" :max="100" label="鎻忚堪鏂囧瓧" />-->
- <!-- <el-input v-model="dialogForm.incbit" style="width: 220px" />-->
+ <el-input
+ v-model="dialogForm.incbit"
+ oninput="value=value.replace(/[^0-9]/g,'')"
+ style="width: 220px"
+ />
</el-form-item>
<el-form-item label="缂栫爜棰勮">
{{ encodingPre }}
@@ -177,7 +182,7 @@
const SER_HZ = /^[\u4e00-\u9fa5]+$/
export default {
- name: 'Zzjg',
+ name: 'BMGZ',
components: {
Pagination
},
@@ -235,17 +240,17 @@
},
watch: {
dialogForm: {
- handler(newVlaue, oldValue) {
+ handler(newValue, oldValue) {
const date = new Date()
let newDate = ''
- if (newVlaue.filingdate === 'YMD') {
- newDate = date.getFullYear() + '' + (date.getMonth() + 1 + '').padStart(2, '0') + '' + (date.getDate() + '').padStart(2, '0')
- } else if (newVlaue.filingdate === 'YM') {
- newDate = date.getFullYear() + '' + (date.getMonth() + 1 + '').padStart(2, '0')
- } else if (newVlaue.filingdate === 'Y') {
- newDate = date.getFullYear() + ''
+ if (newValue.filingdate === 'YMD') {
+ newDate = date.getFullYear().toString().substring(2, 4) + '' + (date.getMonth() + 1 + '').padStart(2, '0') + '' + (date.getDate() + '').padStart(2, '0')
+ } else if (newValue.filingdate === 'YM') {
+ newDate = date.getFullYear().toString().substring(2, 4) + '' + (date.getMonth() + 1 + '').padStart(2, '0')
+ } else if (newValue.filingdate === 'Y') {
+ newDate = date.getFullYear().toString().substring(2, 4) + ''
}
- this.encodingPre = newVlaue.prefix + '' + newDate + '' + (1 + '').padStart(newVlaue.incbit, '0')
+ this.encodingPre = newValue.prefix + '' + newDate + '' + (1 + '').padStart(newValue.incbit, '0')
},
immediate: true,
deep: true
--
Gitblit v1.9.3