shish 5 лет назад
Родитель
Сommit
cdc25e88f4
1 измененных файлов с 3 добавлено и 40 удалено
  1. 3 40
      ghsApp/src/pagesStorehouse/inventory/list.vue

+ 3 - 40
ghsApp/src/pagesStorehouse/inventory/list.vue

@@ -1,14 +1,5 @@
 <template>
 	<view class="allot-ex-page">
-		<view class="tabs">
-			<Tabs
-				:tabs="tabs"
-				:currentTab="tabIndex"
-				@change="changeTabEvent"
-				@add="addEvent"
-				:itemWidth="'33.33%'"
-			></Tabs>
-		</view>
 		<scroll-view scroll-y class="allot-list">
 			<block v-if="!$util.isEmpty(list.data)">
 				<view
@@ -31,19 +22,6 @@
 							<text class="info-time">时间:{{ item.updateTime }}</text>
 						</view>
 					</view>
-					<view
-						:class="[
-							'status',
-							item.status == INVENTORY_STATUS.DRAFT ? 'primary' : 'gray'
-						]"
-					>
-						<view
-							:class="[
-								'iconfont',
-								item.status == INVENTORY_STATUS.DONE ? 'iconxuanzhong' : 'iconbianji'
-							]"
-						></view>
-					</view>
 				</view>
 			</block>
 			<block v-else>
@@ -56,7 +34,6 @@
 	</view>
 </template>
 <script>
-import Tabs from "@/components/plugin/tabs";
 import AppWrapperEmpty from "@/components/app-wrapper-empty";
 import { INVENTORY_STATUS } from "@/utils/declare";
 import { getCheckOrderListApi } from "@/api/inventory/index";
@@ -64,27 +41,13 @@ import { getCheckOrderListApi } from "@/api/inventory/index";
 import { list } from "@/mixins";
 export default {
 	name: "panDianList",
-	components: { Tabs, AppWrapperEmpty },
+	components: { AppWrapperEmpty },
 	mixins: [list],
 	data() {
 		return {
 			listLoading: false,
 			INVENTORY_STATUS,
-			tabIndex: 0,
-			tabs: [
-				{
-					name: "全部",
-					key: ""
-				},
-				{
-					name: "草稿",
-					key: INVENTORY_STATUS.DRAFT
-				},
-				{
-					name: "已盘点",
-					key: INVENTORY_STATUS.DONE
-				}
-			]
+			tabIndex: 0
 		};
 	},
 	onShow() {
@@ -105,7 +68,7 @@ export default {
 		},
 		_list() {
 			this.listLoading = true;
-			return getCheckOrderListApi(this.tabs[this.tabIndex].key)
+			return getCheckOrderListApi("")
 				.then(res => {
 					this.completes(res);
 					this.listLoading = false;