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