Commit ce7d487d authored by xiangzj's avatar xiangzj

代码格式化

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