Commit ce7d487d authored by xiangzj's avatar xiangzj

代码格式化

parent 8f8312e1
...@@ -122,28 +122,28 @@ export default { ...@@ -122,28 +122,28 @@ export default {
style: '', style: '',
type: 'warning', type: 'warning',
text: '返回', text: '返回',
way: 'goBack', way: 'goBack'
}, },
{ {
style: '', style: '',
type: 'primary', type: 'primary',
text: '提交', text: '提交',
way: 'goSubmit', way: 'goSubmit'
} }
], ]
}; };
}, },
methods: { methods: {
getBtnHandle(row){ getBtnHandle(row) {
this[row.way]() this[row.way]();
}, },
goBack(){ goBack() {
uni.navigateBack(); uni.navigateBack();
}, },
goSubmit(){}, goSubmit() {},
handleInput(e) { handleInput(e) {
console.log(e, 'eee'); console.log(e, 'eee');
}, }
} }
}; };
</script> </script>
......
...@@ -4,20 +4,17 @@ ...@@ -4,20 +4,17 @@
<view class="lines"></view> <view class="lines"></view>
<view class="boxs"> <view class="boxs">
<uni-section v-for="(item, index) in tableData" :key="index" :title="item.title" type="line"> <uni-section v-for="(item, index) in tableData" :key="index" :title="item.title" type="line">
<u-row <u-row gutter="10">
gutter="10" <u-col v-for="(v, i) in item.list" :key="i" span="3">
>
<u-col v-for="(v,i) in item.list" :key="i" span="3">
<navigator :url="v.url" open-type="navigate"> <navigator :url="v.url" open-type="navigate">
<view class="demo-layout"> <view class="demo-layout">
<u-image :src="v.src" width="100rpx" height="100rpx" ></u-image> <u-image :src="v.src" width="100rpx" height="100rpx"></u-image>
<text>{{ v.text }}</text> <text>{{ v.text }}</text>
</view> </view>
</navigator> </navigator>
</u-col> </u-col>
</u-row> </u-row>
</uni-section> </uni-section>
</view> </view>
</view> </view>
</template> </template>
...@@ -51,18 +48,18 @@ export default { ...@@ -51,18 +48,18 @@ export default {
src: require('@/static/images/qtck.png'), src: require('@/static/images/qtck.png'),
text: '库存盘点', text: '库存盘点',
url: '/pages/inventoryCounting/inventoryCounting' url: '/pages/inventoryCounting/inventoryCounting'
}, }
] ]
} }
] ]
}; };
}, },
created () { created() {
this.screenHeight = uni.getSystemInfoSync().screenHeight this.screenHeight = uni.getSystemInfoSync().screenHeight;
}, },
methods: { methods: {
handleClick(v) { handleClick(v) {
uni.nav uni.nav;
} }
} }
}; };
...@@ -73,30 +70,30 @@ export default { ...@@ -73,30 +70,30 @@ export default {
background: #fff; background: #fff;
.title { .title {
background: #fff; background: #fff;
padding-top:20rpx; padding-top: 20rpx;
height: 60rpx; height: 60rpx;
font-size: 28rpx; font-size: 28rpx;
line-height: 40rpx; line-height: 40rpx;
padding-left:32rpx; padding-left: 32rpx;
font-weight: 600; font-weight: 600;
} }
.lines{ .lines {
height:32rpx; height: 32rpx;
background:#f8f8f8; background: #f8f8f8;
} }
} }
.demo-layout { .demo-layout {
height: 164rpx; height: 164rpx;
border-radius: 4px; border-radius: 4px;
margin-bottom:10px; margin-bottom: 10px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
text{ text {
margin-top:24rpx; margin-top: 24rpx;
font-size:24rpx; font-size: 24rpx;
color:#000; color: #000;
} }
} }
</style> </style>
...@@ -38,20 +38,16 @@ ...@@ -38,20 +38,16 @@
</view> </view>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
show: true, show: true
}; };
}, },
computed: { computed: {},
methods: {}
}, };
methods: {
}
}
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
...@@ -104,7 +100,7 @@ ...@@ -104,7 +100,7 @@
} }
.bottomBox { .bottomBox {
padding: 20rpx; padding: 20rpx;
.boxAll{ .boxAll {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
background: #f8f8f8; background: #f8f8f8;
...@@ -122,5 +118,4 @@ ...@@ -122,5 +118,4 @@
} }
} }
} }
</style> </style>
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
<view class="boxRight"> <view class="boxRight">
<view class="items">891/1000pcs</view> <view class="items">891/1000pcs</view>
<view class="itemsBtn"> <view class="itemsBtn">
<u-button size="mini" class="" type="primary" @click="checkShowModel=true">盘点</u-button> <u-button size="mini" class="" type="primary" @click="checkShowModel = true">盘点</u-button>
</view> </view>
</view> </view>
</view> </view>
...@@ -109,7 +109,7 @@ export default { ...@@ -109,7 +109,7 @@ export default {
}, },
checkForm: { checkForm: {
name: '' name: ''
}, }
}; };
}, },
computed: {}, computed: {},
...@@ -127,9 +127,9 @@ export default { ...@@ -127,9 +127,9 @@ export default {
ontabtap(e, type) { ontabtap(e, type) {
console.log('切换tab', e, type); console.log('切换tab', e, type);
}, },
addConfirm(){ addConfirm() {
this.addShowModel = false this.addShowModel = false;
}, }
} }
}; };
</script> </script>
...@@ -232,9 +232,9 @@ export default { ...@@ -232,9 +232,9 @@ export default {
justify-content: space-between; justify-content: space-between;
border-bottom: 1px solid #333; border-bottom: 1px solid #333;
} }
.slot-content{ .slot-content {
padding: 20rpx; padding: 20rpx;
.u-form-item{ .u-form-item {
padding: 0; padding: 0;
} }
} }
......
...@@ -24,9 +24,7 @@ ...@@ -24,9 +24,7 @@
</view> </view>
</view> </view>
<view class="workBtn"> <view class="workBtn">
<u-button size="mini" class="" type="primary" @click='handleClickWork()'> <u-button size="mini" class="" type="primary" @click="handleClickWork()">盘点作业</u-button>
盘点作业
</u-button>
</view> </view>
</view> </view>
<view v-if="!show" class="bottomBox"> <view v-if="!show" class="bottomBox">
...@@ -47,25 +45,22 @@ ...@@ -47,25 +45,22 @@
</view> </view>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
show: true, show: true
}; };
}, },
computed: { computed: {},
},
methods: { methods: {
handleClickWork(){ handleClickWork() {
uni.navigateTo({ uni.navigateTo({
url: `/pages/inventoryCounting/inventoryList` url: `/pages/inventoryCounting/inventoryList`
}) });
},
} }
} }
};
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
...@@ -114,13 +109,13 @@ ...@@ -114,13 +109,13 @@
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
color: #aaa; color: #aaa;
} }
.workBtn{ .workBtn {
margin-right:20rpx; margin-right: 20rpx;
} }
} }
.bottomBox { .bottomBox {
padding: 20rpx; padding: 20rpx;
.boxAll{ .boxAll {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
background: #f8f8f8; background: #f8f8f8;
...@@ -136,9 +131,9 @@ ...@@ -136,9 +131,9 @@
line-height: 40rpx; line-height: 40rpx;
} }
} }
.boxRight{ .boxRight {
padding: 20rpx; padding: 20rpx;
.items{ .items {
color: #333; color: #333;
font-size: 24rpx; font-size: 24rpx;
height: 40rpx; height: 40rpx;
...@@ -147,5 +142,4 @@ ...@@ -147,5 +142,4 @@
} }
} }
} }
</style> </style>
<template> <template>
<view class="lists"> <view class="lists">
<StickyNavBar class='stickyBox'> <StickyNavBar class="stickyBox">
<NavBar title="仓位转移"></NavBar> <NavBar title="仓位转移"></NavBar>
<view class="selectSheet"> <view class="selectSheet">
<u-row gutter="16"> <u-row gutter="16">
<u-col span="6"> <u-col span="6">
<u-input v-model="value" placeholder='请选择工厂' :type="type" :border="border" @click="show = true" /> <u-input v-model="value" placeholder="请选择工厂" :type="type" :border="border" @click="show = true" />
<u-action-sheet :list="actionSheetList" v-model="show" @click="actionSheetCallback"></u-action-sheet> <u-action-sheet :list="actionSheetList" v-model="show" @click="actionSheetCallback"></u-action-sheet>
</u-col> </u-col>
<u-col span="6"> <u-col span="6">
<u-input v-model="value" placeholder='请选择仓库别' :type="type" :border="border" @click="show = true" /> <u-input v-model="value" placeholder="请选择仓库别" :type="type" :border="border" @click="show = true" />
<u-action-sheet :list="actionSheetList" v-model="show" @click="actionSheetCallback"></u-action-sheet> <u-action-sheet :list="actionSheetList" v-model="show" @click="actionSheetCallback"></u-action-sheet>
</u-col> </u-col>
</u-row> </u-row>
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<uni-easyinput prefixIcon="search" v-model="value" focus placeholder="请扫描产品包装条码/外箱码" @input="handleInput"></uni-easyinput> <uni-easyinput prefixIcon="search" v-model="value" focus placeholder="请扫描产品包装条码/外箱码" @input="handleInput"></uni-easyinput>
</view> </view>
</StickyNavBar> </StickyNavBar>
<ContentLoadingMore class='cardbox'> <ContentLoadingMore class="cardbox">
<view class="cardContent"> <view class="cardContent">
<view class="cardTitle"> <view class="cardTitle">
<text class="cardItemLabel">物料批号:</text> <text class="cardItemLabel">物料批号:</text>
...@@ -129,16 +129,15 @@ ...@@ -129,16 +129,15 @@
<text class="btn-text">提交</text> <text class="btn-text">提交</text>
</u-button> </u-button>
</view> --> </view> -->
<BottomBtn :btnArr='btnArr' @getBtnHandle='getBtnHandle'> <BottomBtn :btnArr="btnArr" @getBtnHandle="getBtnHandle"></BottomBtn>
</BottomBtn>
</view> </view>
</template> </template>
<script> <script>
import StickyNavBar from '@/components/StickyNavBar/index.vue'; import StickyNavBar from '@/components/StickyNavBar/index.vue';
import ContentLoadingMore from '@/components/ContentLoadingMore/index.vue'; import ContentLoadingMore from '@/components/ContentLoadingMore/index.vue';
import BottomBtn from '@/components/BottomBtn/index.vue'; import BottomBtn from '@/components/BottomBtn/index.vue';
export default { export default {
components: { components: {
StickyNavBar, StickyNavBar,
ContentLoadingMore, ContentLoadingMore,
...@@ -167,38 +166,38 @@ ...@@ -167,38 +166,38 @@
style: '', style: '',
type: 'warning', type: 'warning',
text: '取消', text: '取消',
way: 'goBack', way: 'goBack'
}, },
{ {
style: '', style: '',
type: 'primary', type: 'primary',
text: '提交', text: '提交',
way: 'goSubmit', way: 'goSubmit'
} }
], ]
}; };
}, },
methods: { methods: {
getBtnHandle(row){ getBtnHandle(row) {
this[row.way]() this[row.way]();
}, },
goBack(){ goBack() {
uni.navigateBack(); uni.navigateBack();
}, },
goSubmit(){}, goSubmit() {},
// 点击actionSheet回调 // 点击actionSheet回调
actionSheetCallback(index) { actionSheetCallback(index) {
this.value = this.actionSheetList[index].text; this.value = this.actionSheetList[index].text;
}, },
handleInput(e) { handleInput(e) {
console.log(e, 'eee') console.log(e, 'eee');
}, },
deleteItem(){ deleteItem() {
console.log('删除') console.log('删除');
}, },
// 加载更多 // 加载更多
onReachBottom() { onReachBottom() {
console.log('加载更多') console.log('加载更多');
// if(this.page >= 3) return ; // if(this.page >= 3) return ;
// this.status = 'loading'; // this.status = 'loading';
// this.page = ++ this.page; // this.page = ++ this.page;
...@@ -209,7 +208,7 @@ ...@@ -209,7 +208,7 @@
// }, 2000) // }, 2000)
} }
} }
} };
</script> </script>
<style lang="scss"> <style lang="scss">
...@@ -223,11 +222,11 @@ page { ...@@ -223,11 +222,11 @@ page {
.scanningBtn { .scanningBtn {
padding: 20rpx; padding: 20rpx;
background: #fff; background: #fff;
.topSearch{ .topSearch {
margin-bottom: 20rpx; margin-bottom: 20rpx;
} }
} }
.selectSheet{ .selectSheet {
padding: 20rpx; padding: 20rpx;
padding-bottom: 0; padding-bottom: 0;
background: #fff; background: #fff;
...@@ -237,14 +236,14 @@ page { ...@@ -237,14 +236,14 @@ page {
padding: 0rpx 20rpx; padding: 0rpx 20rpx;
margin-top: 20rpx; margin-top: 20rpx;
} }
.cardContent{ .cardContent {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
background: #fff; background: #fff;
border-radius: 20rpx; border-radius: 20rpx;
margin-bottom: 20rpx; margin-bottom: 20rpx;
} }
.cardTitle{ .cardTitle {
font-size: 32rpx; font-size: 32rpx;
color: #000; color: #000;
display: flex; display: flex;
...@@ -252,17 +251,17 @@ page { ...@@ -252,17 +251,17 @@ page {
padding-bottom: 20rpx; padding-bottom: 20rpx;
border-bottom: 2px solid #f8f8f8; border-bottom: 2px solid #f8f8f8;
} }
.cardItem{ .cardItem {
padding: 20rpx 20rpx 0 20rpx; padding: 20rpx 20rpx 0 20rpx;
} }
.cardItemDetail{ .cardItemDetail {
display: flex; display: flex;
padding-bottom: 20rpx; padding-bottom: 20rpx;
} }
.cardItemLabel{ .cardItemLabel {
width: 200rpx; width: 200rpx;
} }
.cardItemValue{ .cardItemValue {
width: 500rpx; width: 500rpx;
} }
.bottom { .bottom {
...@@ -280,13 +279,13 @@ page { ...@@ -280,13 +279,13 @@ page {
width: 300rpx; width: 300rpx;
} }
} }
.bottomArea{ .bottomArea {
padding-bottom: 160rpx; padding-bottom: 160rpx;
} }
.itemValueWidth{ .itemValueWidth {
width: 450rpx; width: 450rpx;
} }
/deep/ .u-sticky{ /deep/ .u-sticky {
top: 0!important; top: 0 !important;
} }
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment