lilei 1 jaar geleden
bovenliggende
commit
958f0ffb1a
4 gewijzigde bestanden met toevoegingen van 14 en 6 verwijderingen
  1. 1 1
      public/version.json
  2. 8 0
      src/api/purchase.js
  3. 3 3
      src/views/purchasingManagement/signWarehousing/edit.vue
  4. 2 2
      vue.config.js

+ 1 - 1
public/version.json

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

+ 8 - 0
src/api/purchase.js

@@ -19,6 +19,14 @@ export const receivingQuery = (params) => {
     method: 'post'
   })
 }
+// 采购入库详情
+export const receivingFindBySn = (params) => {
+  return axios({
+    url: `/receiving/findBySn`,
+    data: params,
+    method: 'post'
+  })
+}
 // 采购入库详细列表
 export const receivingDetail = (params) => {
   return axios({

+ 3 - 3
src/views/purchasingManagement/signWarehousing/edit.vue

@@ -92,7 +92,7 @@
 <script>
 import { commonMixin } from '@/utils/mixin'
 import { STable, VSelect } from '@/components'
-import { purchaseWriteStockIn, receivingQuery, receivingDetail } from '@/api/purchase'
+import { purchaseWriteStockIn, receivingFindBySn, receivingDetail } from '@/api/purchase'
 import { updateRealPutQty } from '@/api/receiving'
 import { purchaseUpdateWarehouse } from '@/api/purchaseDetail'
 import ProductType from '../../common/productType.js'
@@ -230,9 +230,9 @@ export default {
     //  详情
     getDetail () {
       this.spinning = true
-      receivingQuery({ receivingBillSn: this.$route.params.sn }).then(res => {
+      receivingFindBySn({ receivingBillSn: this.$route.params.sn }).then(res => {
         if (res.status == 200) {
-          this.detail = res.data
+          this.detail = [res.data]
         } else {
           this.detail = null
         }

+ 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,