From c58ebcba3e14b386c09cd77233010e0dee474744 Mon Sep 17 00:00:00 2001 From: xiangxy Date: Wed, 16 Nov 2022 17:11:24 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=98=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/style/layout.css | 14 ++++ main.js | 33 ++++++-- pages/WarehouseManage/CheckDtl.vue | 117 ++++++++++++++++++++++++++++ pages/WarehouseManage/CheckList.vue | 99 +++++++++++++++++++++++ pages/login/login.vue | 72 ++++++++--------- 5 files changed, 294 insertions(+), 41 deletions(-) create mode 100644 pages/WarehouseManage/CheckDtl.vue create mode 100644 pages/WarehouseManage/CheckList.vue diff --git a/common/style/layout.css b/common/style/layout.css index 3de9c9a..f431e01 100644 --- a/common/style/layout.css +++ b/common/style/layout.css @@ -304,4 +304,18 @@ uni-button:after { } .uni-select__input-placeholder,.uni-select__selector-empty, .uni-select__selector-item { font-size: 28rpx !important +} +.sin_input { + width: 150rpx; + font-size: 28rpx; + line-height: 150rpx; + height: 68rpx; + color: #323232; + padding: 0 .1rem; + border: 1px solid #a1a1a1; + border-radius: 3px; +} +.layout-t tr.checked td .sin_input { + color: #8a8a8a; + border: 1px solid #ffffff; } \ No newline at end of file diff --git a/main.js b/main.js index 09bde92..1abc647 100644 --- a/main.js +++ b/main.js @@ -1,13 +1,36 @@ import App from './App' import Vue from 'vue' -Vue.config.productionTip = false +Vue.config.productionTip = false App.mpType = 'app' +Vue.directive('enterNumber', { + inserted: function (el) { + el.addEventListener("keypress",function(e){ + e = e || window.event; + let charcode = typeof e.charCode == 'number' ? e.charCode : e.keyCode; + // if (parseInt(e.target.value) == 0) { + // e.preventDefault(); + // } + parseInt(e.target.value) == 0 && e.preventDefault(); + let re = /\d/; + if(!re.test(String.fromCharCode(charcode)) && charcode > 9 && !e.ctrlKey){ + if(e.preventDefault){ + e.preventDefault(); + }else{ + e.returnValue = false; + } + } + }); + } +}); + import store from '@/vuex/store.js' - -const app = new Vue({ + +const app = new Vue({ ...App, - store -}) + store +}) + + app.$mount() \ No newline at end of file diff --git a/pages/WarehouseManage/CheckDtl.vue b/pages/WarehouseManage/CheckDtl.vue new file mode 100644 index 0000000..ceb238c --- /dev/null +++ b/pages/WarehouseManage/CheckDtl.vue @@ -0,0 +1,117 @@ + + + + + diff --git a/pages/WarehouseManage/CheckList.vue b/pages/WarehouseManage/CheckList.vue new file mode 100644 index 0000000..cdb285b --- /dev/null +++ b/pages/WarehouseManage/CheckList.vue @@ -0,0 +1,99 @@ + + + + + diff --git a/pages/login/login.vue b/pages/login/login.vue index 55e67ff..2cc3f08 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -1,13 +1,13 @@ - + + } + } + } + +