|
@@ -216,6 +216,7 @@ import vaildPriceModal from './vaildPriceModal.vue'
|
|
import { salesChangePromo } from '@/api/salesDetailNew'
|
|
import { salesChangePromo } from '@/api/salesDetailNew'
|
|
import {
|
|
import {
|
|
salesDetailBySn,
|
|
salesDetailBySn,
|
|
|
|
+ salesDetailBaseBySn,
|
|
salesPromoQueryCount,
|
|
salesPromoQueryCount,
|
|
salesWriteSubmit,
|
|
salesWriteSubmit,
|
|
salesPromoQueryList,
|
|
salesPromoQueryList,
|
|
@@ -520,7 +521,7 @@ export default {
|
|
// 如果添加操作,不实时刷新列表,关闭后再刷新
|
|
// 如果添加操作,不实时刷新列表,关闭后再刷新
|
|
async refashTableData (type, action) {
|
|
async refashTableData (type, action) {
|
|
// 重新获取详情信息更新时间
|
|
// 重新获取详情信息更新时间
|
|
- const detail = await salesDetailBySn({ salesBillSn: this.$route.params.sn }).then(res => res.data)
|
|
|
|
|
|
+ const detail = await salesDetailBaseBySn({ salesBillSn: this.$route.params.sn }).then(res => res.data)
|
|
if (detail) {
|
|
if (detail) {
|
|
this.detailData = detail
|
|
this.detailData = detail
|
|
this.detailData.totalDiscountAmount = Number(this.detailData.totalOrigAmount || 0) - Number(this.detailData.totalAmount || 0)
|
|
this.detailData.totalDiscountAmount = Number(this.detailData.totalOrigAmount || 0) - Number(this.detailData.totalAmount || 0)
|
|
@@ -567,7 +568,7 @@ export default {
|
|
// 销售单详情 flag: true 查询活动列表,false 不查
|
|
// 销售单详情 flag: true 查询活动列表,false 不查
|
|
async getOrderDetail (flag) {
|
|
async getOrderDetail (flag) {
|
|
this.spinning = true
|
|
this.spinning = true
|
|
- const detail = await salesDetailBySn({ salesBillSn: this.$route.params.sn }).then(res => res.data)
|
|
|
|
|
|
+ const detail = await salesDetailBaseBySn({ salesBillSn: this.$route.params.sn }).then(res => res.data)
|
|
if (detail) {
|
|
if (detail) {
|
|
this.detailData = detail
|
|
this.detailData = detail
|
|
this.detailData.totalDiscountAmount = Number(this.detailData.totalOrigAmount || 0) - Number(this.detailData.totalAmount || 0)
|
|
this.detailData.totalDiscountAmount = Number(this.detailData.totalOrigAmount || 0) - Number(this.detailData.totalAmount || 0)
|