|
@@ -30,7 +30,7 @@
|
|
待下推产品
|
|
待下推产品
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <div class="table-operator">
|
|
|
|
|
|
+ <div style="margin: 0 0 10px 0;">
|
|
<a-button
|
|
<a-button
|
|
type="primary"
|
|
type="primary"
|
|
@click="delSalerDetailAll"
|
|
@click="delSalerDetailAll"
|
|
@@ -126,7 +126,7 @@ export default {
|
|
detailData: { discountAmount: 0, id: null, salesBillSn: '' }, // 订单基础数据
|
|
detailData: { discountAmount: 0, id: null, salesBillSn: '' }, // 订单基础数据
|
|
dataSource: [],
|
|
dataSource: [],
|
|
productForm: {
|
|
productForm: {
|
|
- salesBillSn: ''
|
|
|
|
|
|
+ dispatchBillSn: ''
|
|
},
|
|
},
|
|
selectedRowKeys: [], // Check here to configure the default column
|
|
selectedRowKeys: [], // Check here to configure the default column
|
|
selectedRows: [],
|
|
selectedRows: [],
|
|
@@ -143,7 +143,7 @@ export default {
|
|
// 加载数据方法 必须为 Promise 对象
|
|
// 加载数据方法 必须为 Promise 对象
|
|
loadData: parameter => {
|
|
loadData: parameter => {
|
|
this.disabled = true
|
|
this.disabled = true
|
|
- this.productForm.salesBillSn = this.$route.params.sn
|
|
|
|
|
|
+ this.productForm.dispatchBillSn = this.$route.params.dispatchBillSn
|
|
|
|
|
|
// 查询统计
|
|
// 查询统计
|
|
this.getTotalData(Object.assign(parameter, this.productForm))
|
|
this.getTotalData(Object.assign(parameter, this.productForm))
|
|
@@ -293,7 +293,7 @@ export default {
|
|
// 一键下推
|
|
// 一键下推
|
|
oneDispatch () {
|
|
oneDispatch () {
|
|
this.isInster = true
|
|
this.isInster = true
|
|
- salesDetailDispatchByOneKey({ salesBillSn: this.$route.params.sn }).then(res => {
|
|
|
|
|
|
+ salesDetailDispatchByOneKey({ salesBillSn: this.$route.params.salesBillSn }).then(res => {
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
this.resetSearchForm()
|
|
this.resetSearchForm()
|
|
this.$refs.partQuery.resetCurForm()
|
|
this.$refs.partQuery.resetCurForm()
|
|
@@ -303,7 +303,7 @@ export default {
|
|
},
|
|
},
|
|
// 销售单详情
|
|
// 销售单详情
|
|
getOrderDetail () {
|
|
getOrderDetail () {
|
|
- salesDetailBySn({ salesBillSn: this.$route.params.sn }).then(res => {
|
|
|
|
|
|
+ salesDetailBySn({ salesBillSn: this.$route.params.salesBillSn }).then(res => {
|
|
console.log('getOrderDetail')
|
|
console.log('getOrderDetail')
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
this.detailData = res.data
|
|
this.detailData = res.data
|
|
@@ -316,7 +316,7 @@ export default {
|
|
this.delLoading = true
|
|
this.delLoading = true
|
|
this.isInster = true
|
|
this.isInster = true
|
|
this.loading = true
|
|
this.loading = true
|
|
- pushDown({ salesBillSn: this.$route.params.sn }).then(res => {
|
|
|
|
|
|
+ pushDown({ dispatchBillSn: this.$route.params.dispatchBillSn }).then(res => {
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
this.handleBack()
|
|
this.handleBack()
|
|
this.$message.success(res.message)
|
|
this.$message.success(res.message)
|
|
@@ -333,7 +333,7 @@ export default {
|
|
beforeRouteEnter (to, from, next) {
|
|
beforeRouteEnter (to, from, next) {
|
|
next(vm => {
|
|
next(vm => {
|
|
console.log('beforeRouteEnter')
|
|
console.log('beforeRouteEnter')
|
|
- vm.salesBillSn = vm.$route.params.sn
|
|
|
|
|
|
+ vm.salesBillSn = vm.$route.params.salesBillSn
|
|
})
|
|
})
|
|
}
|
|
}
|
|
}
|
|
}
|