|
@@ -120,8 +120,7 @@ export default {
|
|
salesBillSn: this.salesBillSn
|
|
salesBillSn: this.salesBillSn
|
|
}).then(res => {
|
|
}).then(res => {
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
- this.getTotalData()
|
|
|
|
- this.$refs.partQuery.resetSearchForm()
|
|
|
|
|
|
+ this.refashTable(true)
|
|
this.$refs.partQuery.clearSelectTable()
|
|
this.$refs.partQuery.clearSelectTable()
|
|
this.$message.success('添加成功', 2.5)
|
|
this.$message.success('添加成功', 2.5)
|
|
this.spinning = false
|
|
this.spinning = false
|
|
@@ -151,8 +150,7 @@ export default {
|
|
salesBillSn: this.salesBillSn
|
|
salesBillSn: this.salesBillSn
|
|
}).then(res => {
|
|
}).then(res => {
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
- this.getTotalData()
|
|
|
|
- this.$refs.partQuery.resetSearchForm()
|
|
|
|
|
|
+ this.getOrderDetail()
|
|
this.$message.success(res.message, 2.5)
|
|
this.$message.success(res.message, 2.5)
|
|
this.spinning = false
|
|
this.spinning = false
|
|
} else {
|
|
} else {
|
|
@@ -164,16 +162,19 @@ export default {
|
|
refashTable(flag){
|
|
refashTable(flag){
|
|
this.getTotalData()
|
|
this.getTotalData()
|
|
if(flag){
|
|
if(flag){
|
|
- this.$refs.partQuery.resetSearchForm()
|
|
|
|
|
|
+ this.getOrderDetail(false)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// 销售单详情
|
|
// 销售单详情
|
|
- getOrderDetail () {
|
|
|
|
|
|
+ getOrderDetail (flag) {
|
|
salesDetailBySn({ salesBillSn: this.salesBillSn }).then(res => {
|
|
salesDetailBySn({ salesBillSn: this.salesBillSn }).then(res => {
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
this.detailData = res.data
|
|
this.detailData = res.data
|
|
- this.getTotalData(true)
|
|
|
|
- this.$refs.partQuery.pageInit(this.salesBillSn, this.detailData)
|
|
|
|
|
|
+ if(flag){
|
|
|
|
+ this.$refs.partQuery.pageInit(this.salesBillSn, this.detailData)
|
|
|
|
+ }else{
|
|
|
|
+ this.$refs.partQuery.resetSearchForm(this.detailData)
|
|
|
|
+ }
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -211,7 +212,8 @@ export default {
|
|
pageInit () {
|
|
pageInit () {
|
|
this.$refs.partQuery.clearSelectTable()
|
|
this.$refs.partQuery.clearSelectTable()
|
|
this.salesBillSn = this.$route.params.salesBillSn
|
|
this.salesBillSn = this.$route.params.salesBillSn
|
|
- this.getOrderDetail()
|
|
|
|
|
|
+ this.getOrderDetail(true)
|
|
|
|
+ this.getTotalData(true)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted () {
|
|
mounted () {
|