|
@@ -4,7 +4,7 @@
|
|
<!-- 自定义的二级文字标题 -->
|
|
<!-- 自定义的二级文字标题 -->
|
|
<template slot="subTitle">
|
|
<template slot="subTitle">
|
|
<a id="warehousingAuditDetail-back-btn" href="javascript:;" @click="handleBack"><a-icon type="left" /> 返回列表</a>
|
|
<a id="warehousingAuditDetail-back-btn" href="javascript:;" @click="handleBack"><a-icon type="left" /> 返回列表</a>
|
|
- <p style=" display: inline-block;margin: 0 0 0 60px;color: #000;font-size: 16px;font-weight: 600;">单号:{{ (basicInfoData&&basicInfoData.sparePartsPurchaseNo) || '--' }}</p>
|
|
|
|
|
|
+ <p style=" display: inline-block;margin: 0 0 0 60px;color: #000;font-size: 16px;font-weight: 600;">单号:{{ (basicInfoData&&basicInfoData.receivingBillNo) || '--' }}</p>
|
|
</template>
|
|
</template>
|
|
<!-- 操作区,位于 title 行的行尾 -->
|
|
<!-- 操作区,位于 title 行的行尾 -->
|
|
<template slot="extra">
|
|
<template slot="extra">
|
|
@@ -17,17 +17,17 @@
|
|
<a-collapse :activeKey="['1']">
|
|
<a-collapse :activeKey="['1']">
|
|
<a-collapse-panel key="1" header="基础信息">
|
|
<a-collapse-panel key="1" header="基础信息">
|
|
<a-descriptions :column="3">
|
|
<a-descriptions :column="3">
|
|
- <a-descriptions-item label="供应商">箭冠营销中心</a-descriptions-item>
|
|
|
|
- <a-descriptions-item label="入库时间">箭冠营销中心</a-descriptions-item>
|
|
|
|
- <a-descriptions-item label="采购单号">箭冠营销中心</a-descriptions-item>
|
|
|
|
|
|
+ <a-descriptions-item label="供应商">{{ basicInfoData&&basicInfoData.dealerName ? basicInfoData.dealerName : '--' }}</a-descriptions-item>
|
|
|
|
+ <a-descriptions-item label="入库时间">{{ basicInfoData&&basicInfoData.stockPutTime ? basicInfoData.stockPutTime : '--' }}</a-descriptions-item>
|
|
|
|
+ <a-descriptions-item label="采购单号">{{ basicInfoData&&basicInfoData.purchaseBillNo ? basicInfoData.purchaseBillNo : '--' }}</a-descriptions-item>
|
|
</a-descriptions>
|
|
</a-descriptions>
|
|
<a-descriptions :column="3" bordered>
|
|
<a-descriptions :column="3" bordered>
|
|
- <a-descriptions-item label="采购总款数">2</a-descriptions-item>
|
|
|
|
- <a-descriptions-item label="采购总数量">20</a-descriptions-item>
|
|
|
|
- <a-descriptions-item label="采购总成本">¥120.36</a-descriptions-item>
|
|
|
|
- <a-descriptions-item label="入库总款数">{{ (bizInfo&&bizInfo.productTotalCategory!=0) ? bizInfo.productTotalCategory : 0 }}</a-descriptions-item>
|
|
|
|
- <a-descriptions-item label="入库总数量">{{ (bizInfo&&bizInfo.productTotalQty!=0) ? bizInfo.productTotalQty : 0 }}</a-descriptions-item>
|
|
|
|
- <a-descriptions-item label="入库总成本">¥{{ (bizInfo&&bizInfo.productTotalCost!=0) ? bizInfo.productTotalCost : 0 }}</a-descriptions-item>
|
|
|
|
|
|
+ <a-descriptions-item label="采购总款数">{{ (basicInfoData&&basicInfoData.totalQty!=0) ? basicInfoData.totalQty : 0 }}</a-descriptions-item>
|
|
|
|
+ <a-descriptions-item label="采购总数量">{{ (basicInfoData&&basicInfoData.totalQty!=0) ? basicInfoData.totalQty : 0 }}</a-descriptions-item>
|
|
|
|
+ <a-descriptions-item label="采购总成本">¥{{ (basicInfoData&&basicInfoData.totalAmount!=0) ? basicInfoData.totalAmount : 0 }}</a-descriptions-item>
|
|
|
|
+ <a-descriptions-item label="入库总款数">{{ (basicInfoData&&basicInfoData.totalQty!=0) ? basicInfoData.totalQty : 0 }}</a-descriptions-item>
|
|
|
|
+ <a-descriptions-item label="入库总数量">{{ (basicInfoData&&basicInfoData.totalQty!=0) ? basicInfoData.totalQty : 0 }}</a-descriptions-item>
|
|
|
|
+ <a-descriptions-item label="入库总成本">¥{{ (basicInfoData&&basicInfoData.totalPutAmount!=0) ? basicInfoData.totalPutAmount : 0 }}</a-descriptions-item>
|
|
</a-descriptions>
|
|
</a-descriptions>
|
|
</a-collapse-panel>
|
|
</a-collapse-panel>
|
|
</a-collapse>
|
|
</a-collapse>
|
|
@@ -56,7 +56,7 @@
|
|
<script>
|
|
<script>
|
|
import { getOperationalPrecision } from '@/libs/tools.js'
|
|
import { getOperationalPrecision } from '@/libs/tools.js'
|
|
import { STable, VSelect } from '@/components'
|
|
import { STable, VSelect } from '@/components'
|
|
-import { receivingDetailList } from '@/api/receiving'
|
|
|
|
|
|
+import { receivingDetailList, receivingDetailSn } from '@/api/receiving'
|
|
export default {
|
|
export default {
|
|
components: { STable, VSelect },
|
|
components: { STable, VSelect },
|
|
data () {
|
|
data () {
|
|
@@ -90,8 +90,7 @@ export default {
|
|
return data
|
|
return data
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- basicInfoData: null, // 基本信息
|
|
|
|
- bizInfo: null
|
|
|
|
|
|
+ basicInfoData: null // 基本信息
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -99,19 +98,19 @@ export default {
|
|
handleBack () {
|
|
handleBack () {
|
|
this.$router.push({ path: '/financialManagement/warehousingAudit/list' })
|
|
this.$router.push({ path: '/financialManagement/warehousingAudit/list' })
|
|
},
|
|
},
|
|
- getBizInfoDetail () {
|
|
|
|
- stockPutBizInfo({ putBizSn: this.$route.params.sn, putBizType: this.$route.params.type }).then(res => {
|
|
|
|
|
|
+ getDetail () {
|
|
|
|
+ receivingDetailSn({ sn: this.$route.params.sn }).then(res => {
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
- this.bizInfo = res.data
|
|
|
|
|
|
+ this.basicInfoData = res.data
|
|
} else {
|
|
} else {
|
|
- this.bizInfo = null
|
|
|
|
|
|
+ this.basicInfoData = null
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
},
|
|
},
|
|
beforeRouteEnter (to, from, next) {
|
|
beforeRouteEnter (to, from, next) {
|
|
next(vm => {
|
|
next(vm => {
|
|
- vm.getBizInfoDetail()
|
|
|
|
|
|
+ vm.getDetail()
|
|
})
|
|
})
|
|
}
|
|
}
|
|
}
|
|
}
|