fuwei 5 лет назад
Родитель
Сommit
0e166b2b55

+ 0 - 0
ghs/src/pagesStorehouse/components/table.vue → ghs/src/components/app-table.vue


+ 56 - 2
ghs/src/pagesStore/me/incomeExpenses.vue

@@ -1,12 +1,66 @@
+
 <template>
     <div>
-        收支
+       <block v-if="!$util.isEmpty(list.data)">
+        <AppTabel
+                :headerBackgroundColor="'#F0F2F6'"
+                :columns="columns"
+                :dataList="list"
+            >
+            </AppTabel>
+        </block>
+        <block v-else>
+            <AppWrapperEmpty title="暂无数据" :is-empty="$util.isEmpty(list.data)" />
+        </block>
     </div>
 </template>
 
 <script>
+    import AppTabel from "@/components/app-table";
+    import AppWrapperEmpty from "@/components/app-wrapper-empty";
     export default {
-        name:'IncomeExpenses' // 收支
+        name:'IncomeExpenses', //收支记录
+        components:{
+            AppTabel,
+            AppWrapperEmpty
+        },
+        data(){
+            return {
+                    columns: [
+                    {
+                        name: "事项",
+                        dataIndex: "typeName",
+                        color: "info",
+                        align: "center"
+                    },
+                    {
+                        name: "提现记录",
+                        dataIndex: "typeName",
+                        color: "info",
+                        align: "center"
+                    },
+                    {
+                        name: "余额",
+                        dataIndex: "typeName",
+                        color: "info",
+                        align: "center"
+                    },
+                    {
+                        name: "状态",
+                        dataIndex: "typeName",
+                        color: "info",
+                        align: "center"
+                    }
+                ],
+                list:[{ time:'1221',typeName:'hahah',stock:'121255'}]
+            }
+        },
+        methods:{
+
+        },
+        onPullDownRefresh(){
+
+        }
     }
 </script>
 

+ 55 - 2
ghs/src/pagesStore/me/withdraw.vue

@@ -1,12 +1,65 @@
 <template>
     <div>
-        明细
+       <block v-if="!$util.isEmpty(list.data)">
+        <AppTabel
+                :headerBackgroundColor="'#F0F2F6'"
+                :columns="columns"
+                :dataList="list"
+            >
+            </AppTabel>
+        </block>
+        <block v-else>
+            <AppWrapperEmpty title="暂无数据" :is-empty="$util.isEmpty(list.data)" />
+        </block>
     </div>
 </template>
 
 <script>
+    import AppTabel from "@/components/app-table";
+    import AppWrapperEmpty from "@/components/app-wrapper-empty";
     export default {
-        name:'withDraw' //提现记录
+        name:'withDraw', //提现记录
+        components:{
+            AppTabel,
+            AppWrapperEmpty
+        },
+        data(){
+            return {
+                    columns: [
+                    {
+                        name: "事项",
+                        dataIndex: "typeName",
+                        color: "info",
+                        align: "center"
+                    },
+                    {
+                        name: "提现记录",
+                        dataIndex: "typeName",
+                        color: "info",
+                        align: "center"
+                    },
+                    {
+                        name: "余额",
+                        dataIndex: "typeName",
+                        color: "info",
+                        align: "center"
+                    },
+                    {
+                        name: "状态",
+                        dataIndex: "typeName",
+                        color: "info",
+                        align: "center"
+                    }
+                ],
+                list:[{ time:'1221',typeName:'hahah',stock:'121255'}]
+            }
+        },
+        methods:{
+
+        },
+        onPullDownRefresh(){
+
+        }
     }
 </script>
 

+ 1 - 1
ghs/src/pagesStorehouse/allot/addExDetails.vue

@@ -91,7 +91,7 @@
 	</view>
 </template>
 <script>
-import Tabel from "../components/table";
+import Tabel from "@/components/app-table";
 import TuiListCell from "@/components/plugin/list-cell";
 import productMins from "@/mixins/product";
 

+ 1 - 1
ghs/src/pagesStorehouse/allot/exDetails.vue

@@ -94,7 +94,7 @@
 	</view>
 </template>
 <script>
-import Tabel from "../components/table";
+import Tabel from "@/components/app-table";
 import { OUT_STATUS } from "@/utils/declare";
 import {
 	getStockOutDetailApi,

+ 1 - 1
ghs/src/pagesStorehouse/allot/putDetails.vue

@@ -83,7 +83,7 @@
 	</view>
 </template>
 <script>
-import Tabel from "../components/table";
+import Tabel from "@/components/app-table";
 import { PUT_STATUS } from "@/utils/declare";
 import { getStockInDetailApi, confirmOrderApi } from "@/api/storehouse/stock";
 import AppWrapperEmpty from "@/components/app-wrapper-empty";

+ 1 - 1
ghs/src/pagesStorehouse/flower/category.vue

@@ -66,7 +66,7 @@
 	</view>
 </template>
 <script>
-import Tabel from "../components/table";
+import Tabel from "@/components/app-table";
 import AppWrapperEmpty from "@/components/app-wrapper-empty";
 import { list } from "@/mixins";
 import {

+ 1 - 1
ghs/src/pagesStorehouse/flower/manage.vue

@@ -87,7 +87,7 @@
 	</view>
 </template>
 <script>
-import Tabel from "../components/table";
+import Tabel from "@/components/app-table";
 import AppWrapperEmpty from "@/components/app-wrapper-empty";
 import { list } from "@/mixins";
 import {

+ 1 - 1
ghs/src/pagesStorehouse/inventory/details.vue

@@ -82,7 +82,7 @@
 	</view>
 </template>
 <script>
-import Tabel from "../components/table";
+import Tabel from "@/components/app-table";
 import { getCheckOrderDetailApi } from "@/api/inventory/index";
 import { INVENTORY_STATUS } from "@/utils/declare";
 

+ 1 - 1
ghs/src/pagesStorehouse/stockWarn/detailed.vue

@@ -39,7 +39,7 @@
 	</view>
 </template>
 <script>
-import Tabel from "../components/table";
+import Tabel from "@/components/app-table";
 import AppWrapperEmpty from "@/components/app-wrapper-empty";
 
 import SelectList from "@/components/plugin/selectList";