From 8cb9e1850ae28a4a9a1041238dbed5461d418b46 Mon Sep 17 00:00:00 2001
From: whycq <whycq>
Date: 星期二, 15 二月 2022 10:13:22 +0800
Subject: [PATCH] ##
---
pages/basics/stockQuery.vue | 70 ++++++++++++++++++++++++++++++++--
pages/login/login.vue | 9 +---
main.js | 2
colorui/main.css | 20 +++++-----
4 files changed, 79 insertions(+), 22 deletions(-)
diff --git a/colorui/main.css b/colorui/main.css
index 6147bfb..b752b75 100644
--- a/colorui/main.css
+++ b/colorui/main.css
@@ -86,12 +86,12 @@
寮�鍏�
==================== */
-switch,
+/* switch,
checkbox,
radio {
position: relative;
}
-
+ */
switch::after,
switch::before {
font-family: "cuIcon";
@@ -120,10 +120,10 @@
left: auto;
}
-switch[checked]::after,
+/* switch[checked]::after,
switch.checked::after {
transform: scale(1, 1);
-}
+} */
switch[checked]::before,
switch.checked::before {
@@ -131,7 +131,7 @@
}
/* #ifndef MP-ALIPAY */
-radio::before,
+/* radio::before,
checkbox::before {
font-family: "cuIcon";
content: "\e645";
@@ -146,9 +146,9 @@
transform: scale(1, 1);
transition: all 0.3s ease-in-out 0s;
z-index: 9;
-}
+} */
-radio .wx-radio-input,
+/* radio .wx-radio-input,
checkbox .wx-checkbox-input,
radio .uni-radio-input,
checkbox .uni-checkbox-input {
@@ -160,7 +160,7 @@
checkbox.round .wx-checkbox-input,
checkbox.round .uni-checkbox-input {
border-radius: 100upx;
-}
+} */
/* #endif */
@@ -222,11 +222,11 @@
switch .wx-switch-input::before,
radio.radio::before,
-checkbox .wx-checkbox-input::before,
+/* checkbox .wx-checkbox-input::before, */
radio .wx-radio-input::before,
switch .uni-switch-input::before,
radio.radio::before,
-checkbox .uni-checkbox-input::before,
+/* checkbox .uni-checkbox-input::before, */
radio .uni-radio-input::before {
display: none;
}
diff --git a/main.js b/main.js
index 7ff2567..5013c55 100644
--- a/main.js
+++ b/main.js
@@ -3,7 +3,7 @@
// #ifndef VUE3
import Vue from 'vue'
// Vue.prototype.baseUrl = "http://localhost:8081/acs"
-Vue.prototype.baseUrl = "http://192.168.4.123:8082/xgmwms"
+Vue.prototype.baseUrl = "http://localhost:8082/xgmwms"
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
diff --git a/pages/basics/stockQuery.vue b/pages/basics/stockQuery.vue
index e75c970..03d7cb7 100644
--- a/pages/basics/stockQuery.vue
+++ b/pages/basics/stockQuery.vue
@@ -2,14 +2,30 @@
<view>
<view class="cu-form-group margin-top">
<view class="title">搴撲綅</view>
- <input v-model="locNo" placeholder="搴撲綅缂栧彿" name="input" ></input>
+ <input v-model="locNo" placeholder="搴撲綅缂栧彿" name="input" @input="findByLocNo()" focus></input>
</view>
<view class="cu-form-group margin-top">
<view class="title">浜у搧</view>
- <input v-model="matNo" placeholder="浜у搧淇℃伅" name="input"></input>
+ <input v-model="matNo" placeholder="浜у搧淇℃伅" name="input" @input="findByMatNo()"></input>
+ </view>
+ <view class="margin-top">
+ <uni-table border stripe emptyText="鏆傛棤鏇村鏁版嵁">
+ <uni-tr>
+ <uni-th width="90">浜у搧ID</uni-th>
+ <uni-th width="90">浜у搧鍚嶇О</uni-th>
+ <uni-th width="90">搴撲綅</uni-th>
+ <uni-th width="70">鏁伴噺</uni-th>
+ </uni-tr>
+ <uni-tr v-for="(item, index) in locDetlData" :key="index" @input="tabRender()">
+ <uni-td>{{item.matNo}}</uni-td>
+ <uni-td>{{item.matName}}</uni-td>
+ <uni-td>{{item.locNo}}</uni-td>
+ <uni-td>{{item.count}}</uni-td>
+ </uni-tr>
+ </uni-table>
+
</view>
<view>
- <button class='cu-btn bg-yellow pda-btn'>鎼滅储</button>
<button class="cu-btn bg-grey pda-btn" @click="reset">閲嶇疆</button>
</view>
</view>
@@ -21,15 +37,59 @@
return {
locNo:'',
matNo:'',
+ locDetlData:[],
}
},
methods: {
reset:function() {
- let that =this;
+ let that = this;
that.locNo = '';
that.matNo = '';
- console.log(1)
},
+ // 鏍规嵁搴撲綅鍙锋煡鎵惧簱瀛樻槑缁�
+ findByLocNo(){
+ if(this.locNo.length === 0){
+ return;
+ }
+ this.matNo = ''
+ this.find(this.locNo,this.matNo)
+ },
+ // 鏍规嵁浜у搧鍙锋煡鎵惧簱瀛樻槑缁�
+ findByMatNo(){
+ if(this.matNo.length === 0){
+ return;
+ }
+ this.locNo = '',
+ this.find(this.locNo,this.matNo)
+ },
+ // find
+ find(){
+ let that = this
+ uni.request({
+ url:that.baseUrl + "/mobile/locDetl/stockQuery",
+ header:{
+ 'content-type':'application/x-www-form-urlencoded',
+ 'token': localStorage.getItem('token')
+ },
+ data:{
+ locNo: that.locNo,
+ matNo: that.matNo,
+ },
+ method: 'POST',
+ success(res) {
+ if(res.data.code === 200){
+ if(res.data.data != null){
+ that.locDetlData = res.data.data
+ } else if (res.data.code ===403){
+
+ } else {
+
+ }
+ }
+ }
+ })
+ },
+
}
}
</script>
diff --git a/pages/login/login.vue b/pages/login/login.vue
index 96e2a12..69f3dd1 100644
--- a/pages/login/login.vue
+++ b/pages/login/login.vue
@@ -24,10 +24,7 @@
<view>
<checkbox-group>
<label>
- <checkbox value="cb" checked="true" color="#FFCC33" style="transform:scale(0.7)" />閫変腑
- </label>
- <label>
- <checkbox value="cb" checked="true"/>鏈�変腑
+ <checkbox value="cb" checked="true" style="transform:scale(0.7)" />璁颁綇瀵嗙爜
</label>
</checkbox-group>
</view>
@@ -216,8 +213,8 @@
<style>
@import "../../colorui/main.css";
- @import "../../colorui/icon.css";
- @import "../../colorui/animation.css";
+ /* @import "../../colorui/icon.css";
+ @import "../../colorui/animation.css"; */
.login-paddingtop {
padding-top: 50upx;
--
Gitblit v1.9.1