|
@@ -5,6 +5,7 @@
|
|
|
<!-- 自定义的二级文字标题 -->
|
|
|
<template slot="subTitle">
|
|
|
<a id="salesEdit-back-btn" href="javascript:;" @click="handleBack"><a-icon type="left" /> 返回列表</a>
|
|
|
+ <span style="margin: 0 10px;color: #666;">销售单号:{{ detailData&&detailData.salesBillNo || '--' }}</span>
|
|
|
<span style="margin: 0 15px;color: #666;">客户名称:{{ detailData&&detailData.buyerName || '--' }}</span>
|
|
|
</template>
|
|
|
<!-- 操作区,位于 title 行的行尾 -->
|
|
@@ -322,14 +323,14 @@ export default {
|
|
|
if (priceType != this.$route.params.priceType) {
|
|
|
this.$router.push({ name: 'salesEdit', params: { id: this.orderId, sn: this.salesBillSn, priceType: priceType } })
|
|
|
} else {
|
|
|
- this.getOrderDetail()
|
|
|
+ this.getOrderDetail(true)
|
|
|
}
|
|
|
},
|
|
|
// 重置
|
|
|
resetSearchForm (flag) {
|
|
|
if (flag) { this.$refs.partQuery.onlyList = true }
|
|
|
this.$refs.table.refresh(!!flag)
|
|
|
- this.getOrderDetail()
|
|
|
+ this.getOrderDetail(false)
|
|
|
},
|
|
|
// 重置列表
|
|
|
resetForm () {
|
|
@@ -481,7 +482,7 @@ export default {
|
|
|
if (res.status == 200) {
|
|
|
// this.resetSearchForm(true) // 不刷新库存
|
|
|
this.$refs.table.refresh(true)
|
|
|
- this.getOrderDetail()
|
|
|
+ this.getOrderDetail(false)
|
|
|
this.$message.success('产品添加成功', 2.5)
|
|
|
}
|
|
|
this.isInster = false
|
|
@@ -489,14 +490,16 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
// 销售单详情
|
|
|
- getOrderDetail () {
|
|
|
+ getOrderDetail (flag) {
|
|
|
salesDetail({ id: this.$route.params.id }).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
this.detailData = res.data
|
|
|
- const vm = this
|
|
|
- const buyerSn = (vm.detailData && vm.detailData.buyerSn && vm.detailData.salesBillSource && vm.detailData.salesBillSource == 'PURCHASE') ? '' : vm.detailData.buyerSn
|
|
|
- const priceType = vm.$route.params.priceType
|
|
|
- vm.$refs.partQuery.pageInit(buyerSn, priceType)
|
|
|
+ if (flag) {
|
|
|
+ const vm = this
|
|
|
+ const buyerSn = (vm.detailData && vm.detailData.buyerSn && vm.detailData.salesBillSource && vm.detailData.salesBillSource == 'PURCHASE') ? '' : vm.detailData.buyerSn
|
|
|
+ const priceType = vm.$route.params.priceType
|
|
|
+ vm.$refs.partQuery.pageInit(buyerSn, priceType)
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -517,7 +520,7 @@ export default {
|
|
|
const vm = this
|
|
|
vm.orderId = vm.$route.params.id
|
|
|
vm.salesBillSn = vm.$route.params.sn
|
|
|
- vm.getOrderDetail()
|
|
|
+ vm.getOrderDetail(true)
|
|
|
vm.$refs.table.refresh(true)
|
|
|
}
|
|
|
},
|