lilei 1 day ago
parent
commit
d99c7a8d3b

+ 6 - 0
src/api/salesNew.js

@@ -90,6 +90,12 @@ export const salesDetailBySn = (params) => {
     method: 'get'
     method: 'get'
   })
   })
 }
 }
+export const salesDetailBaseBySn = (params) => {
+  return axios({
+    url: `/sales/findBaseBySn/${params.salesBillSn}`,
+    method: 'get'
+  })
+}
 // 查询客户名称
 // 查询客户名称
 export const salesDetailByNo = (params) => {
 export const salesDetailByNo = (params) => {
   return axios({
   return axios({

+ 1 - 1
src/store/modules/app.js

@@ -54,7 +54,7 @@ const app = {
     interFaceList: [
     interFaceList: [
       // 销售单,下推
       // 销售单,下推
       {
       {
-        a: 'sales/findBySn',
+        a: 'sales/findBaseBySn',
         b: [
         b: [
           'sales/submit',
           'sales/submit',
           'dispatch/pushDown',
           'dispatch/pushDown',

+ 3 - 2
src/views/salesManagement/salesQueryNew/edit.vue

@@ -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)