|
@@ -78,6 +78,7 @@ import { VSelect } from '@/components'
|
|
import debounce from 'lodash/debounce'
|
|
import debounce from 'lodash/debounce'
|
|
import { supplierProductList } from '@/api/supplier'
|
|
import { supplierProductList } from '@/api/supplier'
|
|
import { warehouseCascadeList } from '@/api/warehouse'
|
|
import { warehouseCascadeList } from '@/api/warehouse'
|
|
|
|
+import { stockByProductSn } from '@/api/stock'
|
|
import { sparePartsSaveDetail, sparePartsDetailD } from '@/api/spareParts'
|
|
import { sparePartsSaveDetail, sparePartsDetailD } from '@/api/spareParts'
|
|
export default {
|
|
export default {
|
|
name: 'BulkWarehousingOrderBasicInfoModal',
|
|
name: 'BulkWarehousingOrderBasicInfoModal',
|
|
@@ -167,6 +168,16 @@ export default {
|
|
this.form.productName = this.productData[ind].product.name
|
|
this.form.productName = this.productData[ind].product.name
|
|
this.form.productCode = this.productData[ind].product.code
|
|
this.form.productCode = this.productData[ind].product.code
|
|
this.form.productOrigCode = this.productData[ind].product.origCode
|
|
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
|
|
|
|
+ }
|
|
|
|
+ })
|
|
},
|
|
},
|
|
// 详情
|
|
// 详情
|
|
getDetail () {
|
|
getDetail () {
|