Commit 171130e2 by LJM

js

parent d35db85e
......@@ -116,18 +116,18 @@
position: absolute;
top: 30rpx;
right: 30rpx;
font-size: 21rpx;
font-size: 19rpx;
color: #1969f9;
}
}
.total {
.t1 {
font-size: 21rpx;
font-size: 19rpx;
color: #292b33;
}
.t2 {
font-size: 21rpx;
font-size: 19rpx;
color: #1969f9;
}
}
......@@ -271,7 +271,6 @@
.uni-input {
font-size: 18rpx;
color: #292b33;
font-weight: bold;
}
.uni-arrow {
width: 14rpx;
......
......@@ -47,7 +47,7 @@
<text class="text">移位</text>
</navigator>
<navigator class="box-li column rowCenter verCenter" url="/pages/stocktake/list" hover-class="none">
<view class="box row rowCenter verCenter"><image src="/static/home/@2x(3).png"></image></view>
<view class="box row rowCenter verCenter"><image src="/static/home/@2x(10).png"></image></view>
<text class="text">盘点</text>
</navigator>
<navigator class="box-li column rowCenter verCenter" url="/pages/immediatelyStockIn/index" hover-class="none">
......
......@@ -33,10 +33,6 @@
<text class="tt">{{ item.nums }}</text>
</view>
<view class="text-item row verCenter">
<text class="label">总 数 量:</text>
<text class="tt">{{ item.total_qty }}</text>
</view>
<view class="text-item row verCenter">
<text class="label">创建时间:</text>
<text class="tt">{{ item.create_time }}</text>
</view>
......
......@@ -39,7 +39,7 @@
</view>
<view class="total row verCenter" style="margin-top: 15rpx;">
<text class="t1">待盘点任务数:</text>
<text class="t2">{{ total }}</text>
<text class="t2">{{ list.length }}</text>
</view>
<view class="list row bothSide" v-if="list.length > 0">
<view class="box" v-for="(item, index) in list" :key="index">
......@@ -78,7 +78,7 @@
</view>
<view class="text-item row verCenter">
<text class="label">D/C:</text>
<text class="tt">{{ item.sale_name }}</text>
<text class="tt">{{ item.date_code }}</text>
</view>
<view class="text-item row verCenter">
<text class="label">产地:</text>
......@@ -245,7 +245,6 @@ export default {
list: [],
page: 1,
limit: 50,
total: 0,
hasMoreData: true, //是否分页加载
stocktake_sn: '',
detail: {},
......@@ -282,7 +281,7 @@ export default {
showDrawer(data) {
this.$refs.showRight.open();
this.detail = data;
this.stocktake_qty = data.stock_qty;
this.stocktake_qty = data.stocktake_qty;
},
closeDrawer() {
this.$refs.showRight.close();
......@@ -366,13 +365,10 @@ export default {
if (res.data.list.length > 0) {
this.hasMoreData = true;
this.list = this.list.concat(res.data.list);
this.total = res.data.total;
} else {
this.hasMoreData = false;
this.total = 0;
}
} else {
this.total = 0;
uni.showToast({
title: res.msg,
icon: 'none'
......
......@@ -83,7 +83,9 @@
<text class="label">盘点数量:</text>
<text class="tt">{{ item.stocktake_qty }}</text>
</view>
<view class="btn row rowCenter verCenter" @click="showDrawer(item)">修改</view>
<template v-if="item.stocktake_status == 3">
<view class="btn row rowCenter verCenter" @click="showDrawer(item)">修改</view>
</template>
</view>
</view>
<!-- 无数据展示 -->
......@@ -237,7 +239,7 @@ export default {
showDrawer(data) {
this.$refs.showRight.open();
this.detail = data;
this.stocktake_qty = data.stock_qty;
this.stocktake_qty = data.stocktake_qty;
},
closeDrawer() {
this.$refs.showRight.close();
......
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 sign in to comment