shish 2 лет назад
Родитель
Сommit
eb06507fc1
2 измененных файлов с 16 добавлено и 1 удалено
  1. 7 0
      ghs/src/service/stat-book/index.js
  2. 9 1
      ghs/src/views/order/book.vue

+ 7 - 0
ghs/src/service/stat-book/index.js

@@ -9,5 +9,12 @@ export class StatBookService extends BaseService {
 		});
 	}
 
+	exportStockAssign(data) {
+		return this.request({
+			url: '/export-stock-assign',
+			params: data
+		});
+	}
+
 }
 export default new StatBookService();

+ 9 - 1
ghs/src/views/order/book.vue

@@ -28,7 +28,8 @@
           <el-button slot="reference" type="primary">{{ shop.bookSn==0?'开启预订':'结束预订' }}</el-button>
         </el-popover>
         <el-button type="primary" size="mini" @click="" style="margin-left:40px;">我的采购</el-button>
-        <el-button type="primary" size="mini" @click="" style="margin-left:40px;">去采购</el-button>				
+        <el-button type="primary" size="mini" @click="" style="margin-left:40px;">去采购</el-button>
+        <el-button type="primary" size="mini" @click="exportStockAssign()" style="margin-left:40px;">导出库存分配</el-button>
 			</template>
 
       <template #table-column-remainStockNum="{scope}">
@@ -110,6 +111,13 @@ export default {
     this.init();
   },
   methods: {
+    exportStockAssign(){
+			this.$service.statBook.exportStockAssign({}).then(res => {
+				if(res.file){
+					//window.location.href = res.file
+				}
+			})
+    },
     goDetail(info){
       let query = {itemId:info.itemId,itemName:info.name}
       this.$router.push({path:'/book/itemCustom',query})