chenrui %!s(int64=4) %!d(string=hai) anos
pai
achega
3486401b40

+ 7 - 5
src/api/waitDispatchDetail.js

@@ -25,6 +25,13 @@ export const queryCount = (params) => {
     method: 'post'
   })
 }
+// 销售单  下推  带下推产品列表 合计
+export const dispatchDetail = (params) => {
+  return axios({
+    url: `/dispatch/findBySn/${params.dispatchBillSn}`,
+    method: 'get'
+  })
+}
 
 // 列表  有分页
 export const waitDispatchDetailList = (params) => {
@@ -58,8 +65,3 @@ export const updateQty = (params) => {
     method: 'post'
   })
 }
-
-
-
-
-

+ 2 - 0
src/views/allocationManagement/transferOut/edit.vue

@@ -268,6 +268,8 @@ export default {
           this.$message.success(res.message)
           this.$refs.table.refresh()
           this.getChooseProductList()
+        } else {
+          row.qty = row.qtyBackups
         }
       })
     },

+ 9 - 5
src/views/salesManagement/waitDispatch/edit.vue

@@ -112,7 +112,7 @@ import queryPart from './queryPart.vue'
 import { salesDetailBySn } from '@/api/sales'
 import { salesDetailDispatchByOneKey, insertBatchOfWaitDispatch, salesDetailUpdateCancelQty } from '@/api/salesDetail'
 import EditableCell from '@/views/common/editInput.js'
-import { deleteBatch, pushDown, queryCount, waitDispatchDetailAllList, updateQty } from '@/api/waitDispatchDetail'
+import { deleteBatch, pushDown, dispatchDetail, waitDispatchDetailAllList, updateQty } from '@/api/waitDispatchDetail'
 export default {
   name: 'SalesDetail',
   components: { STable, VSelect, queryPart, EditableCell },
@@ -146,7 +146,7 @@ export default {
         this.productForm.dispatchBillSn = this.$route.params.dispatchBillSn
 
         // 查询统计
-        this.getTotalData(Object.assign(parameter, this.productForm))
+        this.getTotalData()
         return waitDispatchDetailAllList(Object.assign(parameter, this.productForm)).then(res => {
           const data = res.data
           const no = 0
@@ -193,9 +193,13 @@ export default {
       }
     },
     // 统计查询
-    getTotalData (params) {
-      queryCount(params).then(res => {
-        this.totalData = res.data || null
+    getTotalData () {
+      dispatchDetail({ dispatchBillSn: this.$route.params.dispatchBillSn }).then(res => {
+        if (res.status == 200) {
+          this.totalData = res.data || null
+        } else {
+          this.totalData = null
+        }
       })
     },
     // 修改数量