lilei 1 gadu atpakaļ
vecāks
revīzija
23bec4535b

+ 1 - 1
public/version.json

@@ -1,5 +1,5 @@
 {
   "message": "发现有新版本发布,确定更新系统?",
   "vendorJsVersion": "",
-  "version": 1706231355438
+  "version": 1706249809963
 }

+ 9 - 0
src/api/shelf.js

@@ -19,6 +19,15 @@ export const shelfDetail = (params) => {
     method: 'post'
   })
 }
+// 货架产品导出
+export const shelfProductExport = params => {
+  return axios({
+    url: '/shelfProduct/export',
+    data: params,
+    method: 'post',
+    responseType: 'blob'
+  })
+}
 // 货架启用停用
 export const shelfModifState = (params) => {
   return axios({

+ 18 - 1
src/views/numsGoodsShelves/shelfSet/set.vue

@@ -67,6 +67,13 @@
                 <span class="table-page-search-submitButtons">
                   <a-button type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="shelfSet-refresh">查询</a-button>
                   <a-button style="margin-left: 5px" @click="resetSearchForm()" :disabled="disabled" id="shelfSet-reset">重置</a-button>
+                  <a-button
+                    type="primary"
+                    class="button-warning"
+                    @click="handleExport"
+                    :disabled="disabled"
+                    :loading="exportLoading"
+                    >导出</a-button>
                 </span>
               </a-col>
             </a-row>
@@ -170,6 +177,7 @@
 
 <script>
 import { commonMixin } from '@/utils/mixin'
+import { downloadExcel } from '@/libs/JGPrint.js'
 import { STable, VSelect } from '@/components'
 import commonModal from '@/views/common/commonModal.vue'
 import addHwModal from './addHwModal.vue'
@@ -177,7 +185,7 @@ import bindProductModal from './bindProductModal.vue'
 import ImportGuideModal from './importGuideModal.vue'
 import basicInfoModal from './basicInfoModal.vue'
 import importHuoweiModal from './importHuoweiModal.vue'
-import { shelfDetail, shelfProductList, shelfProductBatchInsert, delShelfPlaceSn, shelfProductEnable, getShelfPriceShow } from '@/api/shelf'
+import { shelfDetail, shelfProductList, shelfProductBatchInsert, delShelfPlaceSn, shelfProductEnable, getShelfPriceShow, shelfProductExport } from '@/api/shelf'
 export default {
   name: 'ShelfMonitoringWarehousing',
   components: { STable, VSelect, commonModal, bindProductModal, addHwModal, ImportGuideModal, basicInfoModal, importHuoweiModal },
@@ -187,6 +195,7 @@ export default {
       spinning: false,
       disabled: false, //  查询、重置按钮是否可操作
       tableHeight: 400,
+      exportLoading: false,
       queryParam: {
         shelfProductApiEntity: {
           productCode: '',
@@ -269,6 +278,14 @@ export default {
         }
       })
     },
+    // 导出产品
+    handleExport () {
+      this.exportLoading = true
+      shelfProductExport({shelfSn: this.$route.params.sn}).then(res => {
+        downloadExcel(res, (this.basicInfoData?this.basicInfoData.shelfName:'')+"的产品")
+        this.exportLoading = false
+      })
+    },
     // 导入或新增货位
     addHW (type) {
       // 导入货位

+ 2 - 2
vue.config.js

@@ -209,8 +209,8 @@ const vueConfig = {
     // If you want to turn on the proxy, please remove the mockjs /src/main.jsL11
     proxy: {
       '/api': {
-        // target: 'http://192.168.2.117/qpls-md',
-        target: 'https://p.iscm.360arrow.com/qpls-md',
+        target: 'http://192.168.2.117/qpls-md',
+        // target: 'https://p.iscm.360arrow.com/qpls-md',
         // ws: false,
         ws: true,
         changeOrigin: true,