|
@@ -1,49 +1,18 @@
|
|
|
<template>
|
|
<template>
|
|
|
- <!-- 出库列表 -->
|
|
|
|
|
<view class="allot-ex-page">
|
|
<view class="allot-ex-page">
|
|
|
<view class="tabs">
|
|
<view class="tabs">
|
|
|
- <Tabs
|
|
|
|
|
- :tabs="tabs"
|
|
|
|
|
- :currentTab="tabIndex"
|
|
|
|
|
- @change="changeTabEvent"
|
|
|
|
|
- @add="addEvent"
|
|
|
|
|
- :addText="'新增'"
|
|
|
|
|
- :isAdd="false"
|
|
|
|
|
- ></Tabs>
|
|
|
|
|
|
|
+ <Tabs :tabs="tabs" :currentTab="tabIndex" @change="changeTabEvent" @add="addEvent" :addText="'新增'" :isAdd="false" ></Tabs>
|
|
|
</view>
|
|
</view>
|
|
|
<scroll-view scroll-y class="allot-list">
|
|
<scroll-view scroll-y class="allot-list">
|
|
|
<block v-if="!$util.isEmpty(list.data)">
|
|
<block v-if="!$util.isEmpty(list.data)">
|
|
|
- <view
|
|
|
|
|
- class="allot-item"
|
|
|
|
|
- v-for="(item, index) in list.data"
|
|
|
|
|
- :key="index"
|
|
|
|
|
- @click="gotoDetails(item)"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <view class="allot-item" v-for="(item, index) in list.data" :key="index" @click="gotoDetails(item)" >
|
|
|
<view class="info">
|
|
<view class="info">
|
|
|
<view class="info-order">{{ item.orderSn }}</view>
|
|
<view class="info-order">{{ item.orderSn }}</view>
|
|
|
<view class="info-name">{{ item.adminName }}</view>
|
|
<view class="info-name">{{ item.adminName }}</view>
|
|
|
- <view
|
|
|
|
|
- ><text class="info-time">{{ item.updateTime }}</text
|
|
|
|
|
- ><text>{{ item.smallNum || "-" }}/{{ item.bigNum || "-" }}</text
|
|
|
|
|
- >件</view
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <view ><text class="info-time">{{ item.updateTime }}</text ><text>{{ item.smallNum || "-" }}/{{ item.bigNum || "-" }}</text >件</view >
|
|
|
</view>
|
|
</view>
|
|
|
- <view
|
|
|
|
|
- :class="[
|
|
|
|
|
- 'status',
|
|
|
|
|
- item.status == OUT_STATUS.DONE
|
|
|
|
|
- ? 'primary'
|
|
|
|
|
- : item.status == OUT_STATUS.CONFIRM
|
|
|
|
|
- ? 'warn'
|
|
|
|
|
- : 'gray'
|
|
|
|
|
- ]"
|
|
|
|
|
- >
|
|
|
|
|
- <view
|
|
|
|
|
- :class="[
|
|
|
|
|
- 'iconfont',
|
|
|
|
|
- item.status == OUT_STATUS.CANCEL ? 'iconcaozuojihuo' : 'icondairuku'
|
|
|
|
|
- ]"
|
|
|
|
|
- ></view>
|
|
|
|
|
|
|
+ <view :class="[ 'status', item.status == OUT_STATUS.DONE ? 'primary' : item.status == OUT_STATUS.CONFIRM ? 'warn' : 'gray' ]" >
|
|
|
|
|
+ <view :class="[ 'iconfont', item.status == OUT_STATUS.CANCEL ? 'iconcaozuojihuo' : 'icondairuku' ]" ></view>
|
|
|
<view :class="['status-name']">{{ item.statusName }}</view>
|
|
<view :class="['status-name']">{{ item.statusName }}</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -52,11 +21,9 @@
|
|
|
<AppWrapperEmpty title="暂无记录" :is-empty="$util.isEmpty(list.data)" />
|
|
<AppWrapperEmpty title="暂无记录" :is-empty="$util.isEmpty(list.data)" />
|
|
|
</block>
|
|
</block>
|
|
|
</scroll-view>
|
|
</scroll-view>
|
|
|
-
|
|
|
|
|
<view class="app-footer open_btn">
|
|
<view class="app-footer open_btn">
|
|
|
<view @click="addEvent" class="admin-button-com middle blue">新增出库</view>
|
|
<view @click="addEvent" class="admin-button-com middle blue">新增出库</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <!-- <kd-entrance></kd-entrance> -->
|
|
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
@@ -140,6 +107,8 @@ export default {
|
|
|
return name;
|
|
return name;
|
|
|
},
|
|
},
|
|
|
addEvent() {
|
|
addEvent() {
|
|
|
|
|
+ this.$msg('开发中')
|
|
|
|
|
+ return
|
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
|
url: `/pagesStorehouse/allot/addExDetails`,
|
|
url: `/pagesStorehouse/allot/addExDetails`,
|
|
|
success: result => {},
|
|
success: result => {},
|
|
@@ -223,4 +192,4 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-</style>
|
|
|
|
|
|
|
+</style>
|