Browse Source

bug修复

chenrui 4 năm trước cách đây
mục cha
commit
e5801258f0

+ 1 - 11
src/views/purchasingManagement/bulkWarehousingOrder/productModal.vue

@@ -78,7 +78,6 @@ import { VSelect } from '@/components'
 import debounce from 'lodash/debounce'
 import { supplierProductList } from '@/api/supplier'
 import { warehouseCascadeList } from '@/api/warehouse'
-import { stockByProductSn } from '@/api/stock'
 import { sparePartsSaveDetail, sparePartsDetailD } from '@/api/spareParts'
 export default {
   name: 'BulkWarehousingOrderBasicInfoModal',
@@ -169,16 +168,7 @@ export default {
       this.form.productName = this.productData[ind].product.name
       this.form.productCode = this.productData[ind].product.code
       this.form.productOrigCode = this.productData[ind].product.origCode
-      this.getCost(this.form.productSn)
-    },
-    // 根据产品编码获取成本价
-    getCost (sn) {
-      const _this = this
-      stockByProductSn({ sn: sn }).then(res => {
-        if (res.status == 200) {
-          _this.form.productCost = res.data.lastStockCost || ''
-        }
-      })
+      this.form.productCost = this.productData[ind].cost
     },
     // 详情
     getDetail () {