|
@@ -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
|
|
|
+ }
|
|
|
})
|
|
|
},
|
|
|
// 修改数量
|