Commit 171130e2 by LJM

js

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