From 9143091884149a5f74b2f26df99f37bb3ebb22d5 Mon Sep 17 00:00:00 2001 From: whycq <whycq> Date: 星期二, 21 六月 2022 07:56:57 +0800 Subject: [PATCH] # --- pages/basics/stockQuery.vue | 60 ++++++++++++++++++++++++++++++++++++++++-------------------- 1 files changed, 40 insertions(+), 20 deletions(-) diff --git a/pages/basics/stockQuery.vue b/pages/basics/stockQuery.vue index e75c970..d5e5109 100644 --- a/pages/basics/stockQuery.vue +++ b/pages/basics/stockQuery.vue @@ -1,39 +1,59 @@ <template> <view> - <view class="cu-form-group margin-top"> - <view class="title">搴撲綅</view> - <input v-model="locNo" placeholder="搴撲綅缂栧彿" name="input" ></input> + <!-- 鎼滅储妗� --> + <view class="square-1"> + <view class="search-box"> + <view class="search-icon"><uni-icons type="search" size="20" color="#dadada"></uni-icons></view> + <view class="search-area"> + <input type="text" placeholder=" 搴撲綅鍙� / 鎵樼洏鐮� / 鍟嗗搧缂栫爜 "></view> + <view class="close-icon"><uni-icons type="closeempty" size="20" color="#dadada"></uni-icons></view> + </view> </view> - <view class="cu-form-group margin-top"> - <view class="title">浜у搧</view> - <input v-model="matNo" placeholder="浜у搧淇℃伅" name="input"></input> + <!-- 鍒楄〃澶� --> + <view class="square-1"> + <view class="square-title"> + <view class="title-sign"><view class="sign"></view></view> + <view class="title-text"><text>鍟嗗搧鍒楄〃</text></view> + </view> </view> - <view> - <button class='cu-btn bg-yellow pda-btn'>鎼滅储</button> - <button class="cu-btn bg-grey pda-btn" @click="reset">閲嶇疆</button> + <!-- 鍟嗗搧鍒楄〃 --> + <checkbox-group @change="checkbox"> + <view v-for="(item,index) in matList" :key="index" class="data-list bg-false" :class="'bg-'+item.checked" > + <view class="data-list-left"> + <view class="matnr"><text style="width: 400rpx;">缂栫爜锛歿{item.matnr}}</text></view> + <view><text style="width: 400rpx;">鍝佸悕锛歿{item.maktx}}</text></view> + <view><text style="width: 400rpx;">鎵瑰彿锛歿{item.batch}}</text></view> + <view> + <text style="width: 400rpx;">鏁伴噺锛歿{item.anfme}}</text> + </view> + </view> + <view class="data-list-right"> + <label><uni-icons type="compose" size="20" color="#a5a5a5" @click="revise(item,index)"></uni-icons></label> + <label><uni-icons type="trash" size="25" color="#a5a5a5" @click="remove(item,index)"></uni-icons></label> + </view> + </view> + </checkbox-group> + <!-- 鏃犳暟鎹樉绀� --> + <view class="square-none" v-show="matList.length === 0"> + <view class="v-show">鏆傛棤鏇村鏁版嵁...</view> </view> </view> </template> <script> export default { - data() { + data () { return { - locNo:'', - matNo:'', + matList:[], } }, methods: { - reset:function() { - let that =this; - that.locNo = ''; - that.matNo = ''; - console.log(1) + checkbox: function () { + }, - } + }, } </script> <style> - -</style> +</style> \ No newline at end of file -- Gitblit v1.9.1