From 686764c0fab765515891391693ca284a158b89d9 Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期三, 21 九月 2022 09:53:29 +0800
Subject: [PATCH] #
---
pages/basics/demo.vue | 204 ++++++++++++++++++++++++++++----------------------
1 files changed, 113 insertions(+), 91 deletions(-)
diff --git a/pages/basics/demo.vue b/pages/basics/demo.vue
index d670295..bd0cdf2 100644
--- a/pages/basics/demo.vue
+++ b/pages/basics/demo.vue
@@ -1,46 +1,100 @@
<template>
<view>
- <!-- 鎼滅储鏍� -->
- <view>
- <view class="cu-bar bg-white search">
- <view class="search-form radius">
- <text class="cuIcon-search"></text>
- <input v-model="orderNo" :adjust-position="false" type="text" placeholder="鎵爜 / 杈撳叆 (鍗曟嵁缂栧彿)" confirm-type="search" @input="search()"></input>
- <text class="cuIcon-close" @click="reset()"></text>
- </view>
- <view class="action">
- <button class="cu-btn bg-yellow" style="color: #fff;">鎼� 绱�</button>
+
+ <view class="square-2">
+ <view class="square-title">
+ <view class="title-sign"><view class="sign"></view></view>
+ <view class="title-text"><text>娌℃湁鎸夐挳</text></view>
+ </view>
+ <view class="square-content">
+ <view class="content-input">
+ <input type="text" v-model="yyds" placeholder="鎵爜 / 杈撳叆" @input="find" :focus="focus">
+ <uni-icons type="closeempty" size="20" color="#dadada"></uni-icons>
</view>
</view>
</view>
- <view class="margin-top">
- <uni-table border stripe type="selection" emptyText="娌℃湁鏇村鏁版嵁">
- <!-- 琛ㄥご -->
- <uni-tr >
- <uni-th align="center" width="200">璁㈠崟</uni-th>
- <uni-th align="center">搴斿叆搴撻噺</uni-th>
- <uni-th align="center">宸插叆搴撻噺</uni-th>
- <uni-th align="center" width="200">鍟嗗搧缂栫爜</uni-th>
- <uni-th align="center">鍟嗗搧鍚嶇О</uni-th>
- <uni-th align="center">璁㈠崟鐘舵��</uni-th>
- <uni-th align="center"width="200">鎿嶄綔</uni-th>
- </uni-tr>
- <!-- 琛ㄤ綋 -->
- <uni-tr v-for="(item, index) in tabData" :key="index">
- <uni-td align="center">{{item.orderNo}}</uni-td>
- <uni-td align="center">{{item.anfme}}</uni-td>
- <uni-td align="center">{{item.inQty}}</uni-td>
- <uni-td align="center">{{item.matnr}}</uni-td>
- <uni-td align="center">{{item.maktx}}</uni-td>
- <uni-td align="center">{{item.state$}}</uni-td>
- <uni-td>
- <view class="flex justify-around">
- <button class="cu-btn bg-orange sm">涓� 鏋�</button>
- <button class="cu-btn bg-red sm">鎾ら攢涓婃灦</button>
- </view>
- </uni-td>
- </uni-tr>
- </uni-table>
+ <checkbox-group >
+ <view v-for="(item,index) in staNoList" :key="index" class="data-list " >
+ <view class="data-list-left">
+ <view class="matnr">{{item}}</view>
+ </view>
+ </view>
+ </checkbox-group>
+ <view class="square-2">
+ <view class="square-title">
+ <view class="title-sign"><view class="sign"></view></view>
+ <view class="title-text"><text>鍙充晶鎸夐挳</text></view>
+ </view>
+ <view class="square-content">
+ <view class="content-input-btn">
+ <input type="text">
+ <uni-icons type="closeempty" size="20" color="#dadada"></uni-icons>
+ </view>
+ <view class="content-btn">
+ <button class="cu-btn bg-blue pda-btn">鎻愬彇</button>
+ </view>
+ </view>
+ </view>
+
+ <view class="square-3">
+ <view class="square-title">
+ <view class="title-sign"><view class="sign"></view></view>
+ <view class="title-text"><text>宸︿晶涓嬫媺</text></view>
+ </view>
+ <view class="square-content">
+ <view class="content-combox">
+
+ <uni-combox emptyTips="鏆傛棤鏁版嵁" :candidates="staNoList" v-model="staNo" placeholder="绔欏彴鍙�"></uni-combox>
+ </view>
+
+ </view>
+ <view class="square-content">
+ <view class="content-input-combox">
+ <input type="text">
+ <uni-icons type="closeempty" size="20" color="#dadada"></uni-icons>
+ </view>
+ </view>
+ </view>
+
+ <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 class="square-none">
+ <view class="v-show">鏆傛棤鏇村鏁版嵁...</view>
+ </view>
+ <!-- 鍟嗗搧鍒楄〃 -->
+ <view>
+ <view></view>
+ </view>
+ <!-- 琛ㄥ崟 -->
+ <view class="square-form">
+ <view class="form-title">
+ <text>缁撴潫鏃堕棿</text>
+ </view>
+ <view class="form-input">
+ <input type="text" placeholder="璇疯緭鍏�...">
+ </view>
+ </view>
+ <!-- 琛ㄥ崟蹇呭~ -->
+ <view class="square-form">
+ <view class="form-title">
+ <text>缁撴潫鏃堕棿</text>
+ </view>
+ <view class="form-input">
+ <input type="text" placeholder="璇疯緭鍏�...">
+ </view>
+ </view>
+ <!-- 鎼滅储妗� -->
+ <view class="square-1">
+ <view class="searchBox">
+ <view class="searchIcon"><uni-icons type="search" size="20" color="#dadada"></uni-icons></view>
+ <view class="searchArea"><input type="text" placeholder=" 璇疯緭鍏�"></view>
+ <view class="closeIcon"><uni-icons type="closeempty" size="20" color="#dadada"></uni-icons></view>
+ </view>
</view>
</view>
</template>
@@ -49,68 +103,36 @@
export default {
data() {
return {
- tabData: [],
- searchData: {},
- orderNo: '',
- needData:{},
+ staNoList:[],
+ staNo:'',
+ yyds:'',
+ focus:''
}
},
- mounted(){
- const UIP = uni.getStorageSync('UIP');
- this.baseIP = UIP;
- const UPORT = uni.getStorageSync('UPORT');
- this.basePORT = UPORT;
- this.render()
- },
onLoad() {
-
+ // #ifdef APP
+ setInterval(()=>{
+ uni.hideKeyboard()
+ },20)
+ // #endif
},
- methods: {
- // 鎼滅储
- search() {
- let that = this;
- // that.tabData.forEach(function(e){
- // that.searchData = e.orderNo
- // })
- this.render(that.orderNo)
- },
- // 閲嶇疆
- reset() {
- let that = this;
- that.orderNo = '';
- that.needData['order_no'] = '';
- that.getData();
- },
- // 鑾峰彇琛ㄦ牸鏁版嵁
- getData() {
- let that = this
- uni.request({
- url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + "/receiveDetl/list/auth",
- header:{'token':uni.getStorageSync('token')},
- data: that.needData,
- success(res) {
- var res = res.data
- if (res.code === 200) {
- that.tabData = res.data.records
- }
- }
- })
- },
-
- // 琛ㄦ牸鍔犺浇
- render(param) {
- let that = this;
- if(param) {
- that.needData['order_no'] = param;
- that.getData();
- } else {
- that.getData();
- }
+ methods:{
+ find(){
+ this.staNoList.push(this.yyds);
+
+ this.focus = false;
+ setTimeout(()=>{
+ this.yyds ='';
+ this.focus = true;
+ console.log(this.yyds ,'1')
+ }, 50);
}
}
}
+
</script>
<style>
+
</style>
--
Gitblit v1.9.1