From a88bb56f5036294d6a4c9c0327eed4d9894d9f0e Mon Sep 17 00:00:00 2001
From: whycq <you@example.com>
Date: 星期日, 19 三月 2023 22:46:15 +0800
Subject: [PATCH] #
---
pages/login/login.vue | 86 ++------------
pages/pakin/pakin.vue | 134 +++++++++++++++-------
static/css/wms.css/wms.css | 114 +++++++++++++++++++
3 files changed, 219 insertions(+), 115 deletions(-)
diff --git a/pages/login/login.vue b/pages/login/login.vue
index b5fa6e5..5d2634f 100644
--- a/pages/login/login.vue
+++ b/pages/login/login.vue
@@ -61,17 +61,17 @@
<view class="popup">
<!-- 鏍囬 -->
<view class="title">閰� 缃�</view>
- <view class="input">
- <view class="input-left">IP:</view>
- <view class="input-right"><input type="text"></view>
+ <view class="popup-item">
+ <view class="popup-item-left">IP:</view>
+ <view class="popup-item-right"><input type="text"></view>
</view>
- <view class="input">
- <view class="input-left">绔彛:</view>
- <view class="input-right"><input type="text"></view>
+ <view class="popup-item">
+ <view class="popup-item-left">绔彛:</view>
+ <view class="popup-item-right"><input type="text"></view>
</view>
- <view class="input">
- <view class="input-left">椤圭洰:</view>
- <view class="input-right"><input type="text"></view>
+ <view class="popup-item">
+ <view class="popup-item-left">椤圭洰:</view>
+ <view class="popup-item-right"><input type="text"></view>
</view>
<view class="btn">
<view class="btn-left" @click="close">鍙栨秷</view>
@@ -141,6 +141,7 @@
}
</script>
<style>
+ @import url('../../static/css/wms.css/wms.css');
/* 璁剧疆鍖哄煙 */
.settings {
min-height: 100rpx;
@@ -227,69 +228,10 @@
color: #909399;
}
- .popup {
- width: 80vw;
- min-height: 400rpx;
- background-color: #FFF;
- border-radius: 25rpx;
- }
- .title {
- height: 100rpx;
- line-height: 100rpx;
- width: 100%;
- color: #606266;
- text-align: center;
- font-size: 18px;
- }
- .input {
- height: 80rpx;
- line-height: 80rpx;
- display: flex;
- align-items: center;
- font-size: 14px;
- }
- .input-left {
- width: 16vw;
- padding-right: 20rpx;
- text-align: right;
- color: #606266;
- }
- .input-right {
- display: flex;
- align-items: center;
- width: 50vw;
- height: 50rpx;
- padding: 2px 5px;
- border: 1px solid #E4E7ED;
- border-radius: 5rpx;
- }
- .input-right input{
- color: #606266;
- }
- .btn {
- display: flex;
- height: 90rpx;
- margin-top: 20rpx;
- border-top: 1px solid #DCDFE6;
- justify-content: center;
- align-items: center;
- }
- .btn-left {
- display: flex;
- flex: 1;
- height: 100%;
- justify-content: center;
- align-items: center;
- color: #606266;
- border-right: 1px solid #DCDFE6;
- }
- .btn-right {
- display: flex;
- flex: 1;
- justify-content: center;
- align-items: center;
- color: #409EFF;
- }
+
+
+
+
diff --git a/pages/pakin/pakin.vue b/pages/pakin/pakin.vue
index 2ecd03f..98008f9 100644
--- a/pages/pakin/pakin.vue
+++ b/pages/pakin/pakin.vue
@@ -22,35 +22,83 @@
<view class="list-left">
<view class="list-left-item">
<view class="desc">No锛�</view>
- <view>{{i + 1}}</view>
+ <view class="left-item">{{i + 1}}</view>
</view>
<view class="list-left-item">
<view class="desc">缂栫爜锛�</view>
- <view>{{item.matnr}}</view>
+ <view class="left-item">{{item.matnr}}</view>
</view>
<view class="list-left-item">
<view class="desc">鍝佸悕锛�</view>
- <view>{{item.maktx}}</view>
+ <view class="left-item">{{item.maktx}}</view>
</view>
<view class="list-left-item">
<view class="desc">瑙勬牸锛�</view>
- <view>{{item.specs}}</view>
+ <view class="left-item">{{item.specs}}</view>
</view>
<view class="list-left-item">
<view class="desc">鎵瑰彿锛�</view>
- <view>{{item.batch}}</view>
+ <view class="left-item">{{item.batch}}</view>
</view>
<view class="list-left-item">
<view class="desc">鏁伴噺锛�</view>
- <view>{{item.anfme}}</view>
+ <view class="left-item">{{item.anfme}}</view>
</view>
</view>
<view class="list-right">
- <uni-icons type="compose" color="#c1c1c1" size="24"></uni-icons>
- <uni-icons type="trash" color="#c1c1c1" size="24"></uni-icons>
+ <uni-icons type="compose" color="#c1c1c1" size="24" @click="revise(item,i)"></uni-icons>
+ <uni-icons type="trash" color="#c1c1c1" size="24" @click="remove(item,i)"></uni-icons>
</view>
</view>
</scroll-view>
+ <!-- 搴曢儴鎿嶄綔鎸夐挳 -->
+ <view class="buttom">
+ <button size="mini">閲嶇疆</button>
+ <button size="mini" type="primary">缁勬墭</button>
+ </view>
+ <!-- 寮圭獥 -->
+ <!-- 淇敼鏁伴噺 -->
+ <!-- <uni-popup ref="revise" background-color="#fff">
+ <view class="revise-box ">
+ <view class="" style="position: relative;left: 50px;margin-bottom: 20px;">
+ <text style="display: inline-block;float: left;width: 60px;">鍚堝悓鍙凤細</text>
+ <input type="text" style="width: 100px;border-bottom: 1px solid #9e9e9e;" v-model="dataList.batch">
+ </view>
+ <view class="changeBox">
+ <view class="num-box">
+ <text style="display: inline-block;float: left;width: 60px;">鏁伴噺锛�</text>
+ <uni-number-box :value="count" :max="9999" color="#747474" @change="changeValue"/>
+ </view>
+ </view>
+ <view class="revise-box-buttom">
+ <view>
+ <button class="cu-btn bg-blue" @click="confirm()">纭</button>
+ </view>
+ </view>
+ </view>
+ </uni-popup> -->
+ <view>
+ <uni-popup ref="revise" type="dialog">
+ <view class="popup">
+ <!-- 鏍囬 -->
+ <view class="title">閰� 缃�</view>
+ <view class="popup-item">
+ <view class="popup-item-left">鍚堝悓鍙�:</view>
+ <view class="popup-item-right"><input type="text"></view>
+ </view>
+ <view class="popup-item">
+ <view class="popup-item-left">鏁伴噺:</view>
+ <view class="popup-item-right" style="border: none;justify-content: center;">
+ <uni-number-box :value="dataList.concat" :max="9999" color="#747474" @change="changeValue"/>
+ </view>
+ </view>
+ <view class="btn">
+ <view class="btn-left" @click="close">鍙栨秷</view>
+ <view class="btn-right">纭</view>
+ </view>
+ </view>
+ </uni-popup>
+ </view>
</view>
</template>
@@ -59,7 +107,7 @@
data() {
return {
dataList: [{
- matnr: "whycq19950520222222-23232",
+ matnr: "whycq19950222222-232321111",
maktx: "wusuowei",
specs: "涓�",
batch: "鎵瑰彿",
@@ -101,17 +149,49 @@
batch: "鎵瑰彿",
anfme: "12"
}
- ]
+ ],
+ count: '',
+ rowNum: '',
+
}
},
onLoad() {
},
- methods: {}
+ methods: {
+ revise(item,i) {
+ this.count = this.dataList[i].anfme
+ // var maxCount = this.matList[index].maxCount
+ // if (maxCount == undefined ) {
+ // this.matList[index]["maxCount"] = item.enableQty
+ // }
+ // this.enableQty = item.enableQty
+ // this.count = this.minCount
+ // this.maxCount = item.maxCount
+ this.rowNum = i
+ this.eject()
+ },
+ eject(type) {
+ this.type = type
+ // open 鏂规硶浼犲叆鍙傛暟 绛夊悓鍦� uni-popup 缁勪欢涓婄粦瀹� type灞炴��
+ this.$refs.revise.open(type)
+ },
+ // 鍒楄〃鍒犻櫎鎸夐挳
+ remove(item,index) {
+ this.dataList.splice(index,1)
+ },
+ confirm() {
+ this.dataList[this.rowNum].anfme = this.dataList.count
+ this.dataList[this.rowNum].batch = this.dataList.batch
+ this.$refs.revise.close()
+ this.$forceUpdate() // 寮哄埗鍒锋柊
+ },
+ }
}
</script>
<style>
+ @import url('../../static/css/wms.css/wms.css');
.code {
width: 100%;
position: fixed;
@@ -155,37 +235,5 @@
/* border-top: 1px solid #DCDFE6; */
text-align: center;
box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.5);
- }
-
- .list {
- display: flex;
- min-height: 80rpx;
- background-color: #FFF;
- margin-top: 20rpx;
- box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.3);
- }
- .list:first-child {
- margin-top: 310rpx;
- }
- .list:last-child {
- margin-bottom: 120rpx;
- }
- .list-left {
- display: flex;
- flex-direction: column;
- margin-left: 20rpx;
- width: 80vw;
- }
- .list-left-item {
- min-height: 40rpx;
- line-height: 40rpx;
- display: flex;
- }
- .list-right {
- display: flex;
- width: 20vw;
- justify-content: space-between;
- align-items: center;
- margin-right: 20rpx;
}
</style>
\ No newline at end of file
diff --git a/static/css/wms.css/wms.css b/static/css/wms.css/wms.css
new file mode 100644
index 0000000..6147bc4
--- /dev/null
+++ b/static/css/wms.css/wms.css
@@ -0,0 +1,114 @@
+.list {
+ display: flex;
+ min-height: 80rpx;
+ background-color: #FFF;
+ margin-top: 20rpx;
+ box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.3);
+}
+.list:first-child {
+ margin-top: 310rpx;
+}
+.list:last-child {
+ margin-bottom: 120rpx;
+}
+.list-left {
+ display: flex;
+ flex-direction: column;
+ margin-left: 20rpx;
+ width: 80vw;
+}
+.list-left-item {
+ min-height: 40rpx;
+ line-height: 40rpx;
+ display: flex;
+}
+.desc {
+ width: 20%;
+}
+.left-item {
+ display: flex;
+ flex-wrap: wrap;
+ width: 75%;
+}
+.list-right {
+ display: flex;
+ width: 20vw;
+ justify-content: space-between;
+ align-items: center;
+ margin-right: 20rpx;
+}
+.buttom {
+ width: 100%;
+ position: fixed;
+ bottom: 0;
+ left: 0;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ height: 100rpx;
+ background-color: #FFF;
+ box-shadow: 0px 0px 50px 0px rgba(0,0,0,0.4) ;
+}
+.popup {
+ width: 80vw;
+ min-height: 100rpx;
+ background-color: #FFF;
+ border-radius: 25rpx;
+}
+.title {
+ height: 100rpx;
+ line-height: 100rpx;
+ width: 100%;
+ color: #606266;
+ text-align: center;
+ font-size: 18px;
+}
+.popup-item {
+ height: 80rpx;
+ line-height: 80rpx;
+ display: flex;
+ align-items: center;
+ font-size: 14px;
+}
+.popup-item-left {
+ width: 16vw;
+ padding-right: 20rpx;
+ text-align: right;
+ color: #606266;
+}
+.popup-item-right {
+ display: flex;
+ align-items: center;
+ width: 50vw;
+ height: 50rpx;
+ padding: 2px 5px;
+ border: 1px solid #E4E7ED;
+ border-radius: 5rpx;
+}
+.popup-item-right input{
+ color: #606266;
+}
+.btn {
+ display: flex;
+ height: 90rpx;
+ margin-top: 20rpx;
+ border-top: 1px solid #DCDFE6;
+ justify-content: center;
+ align-items: center;
+}
+.btn-left {
+ display: flex;
+ flex: 1;
+ height: 100%;
+ justify-content: center;
+ align-items: center;
+ color: #606266;
+ border-right: 1px solid #DCDFE6;
+}
+.btn-right {
+ display: flex;
+ flex: 1;
+ justify-content: center;
+ align-items: center;
+ color: #409EFF;
+}
--
Gitblit v1.9.1