|
@@ -15,6 +15,7 @@
|
|
|
:newLoading="isInster"
|
|
|
@cancelProduct="cancelProduct"
|
|
|
@cancelAll = "cancelAll"
|
|
|
+ @convertPromoGifts = "convertPromoGifts"
|
|
|
@addProduct="insterProduct"></queryPart>
|
|
|
</a-card>
|
|
|
<a-card size="small" :bordered="false" class="waitDispatch-cont">
|
|
@@ -56,7 +57,7 @@ import queryPart from './queryPart.vue'
|
|
|
import detailProductList from './detailProductList.vue'
|
|
|
import dsModal from './dsModal.vue'
|
|
|
import { salesDetailBySn } from '@/api/salesNew'
|
|
|
-import { insertBatchOfWaitDispatch, salesDetailUpdateCancelQty, salesDetailCancleOfAll } from '@/api/salesDetailNew'
|
|
|
+import { insertBatchOfWaitDispatch, salesDetailUpdateCancelQty, salesDetailCancleOfAll, batchTransferOfPurchaseAmount } from '@/api/salesDetailNew'
|
|
|
import { pushDown } from '@/api/waitDispatchDetail'
|
|
|
import { findBySalesBillSn } from '@/api/dispatch'
|
|
|
|
|
@@ -139,6 +140,25 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ // 批量转采购额
|
|
|
+ convertPromoGifts(list){
|
|
|
+ this.$message.loading('正在批量转采购额...', 1)
|
|
|
+ this.isInster = true
|
|
|
+ this.spinning = true
|
|
|
+ batchTransferOfPurchaseAmount({
|
|
|
+ salesBillDetailList: list,
|
|
|
+ salesBillSn: this.salesBillSn
|
|
|
+ }).then(res => {
|
|
|
+ if (res.status == 200) {
|
|
|
+ this.getOrderDetail()
|
|
|
+ this.$message.success(res.message, 2.5)
|
|
|
+ this.spinning = false
|
|
|
+ } else {
|
|
|
+ this.spinning = false
|
|
|
+ }
|
|
|
+ this.isInster = false
|
|
|
+ })
|
|
|
+ },
|
|
|
// 批量取消产品
|
|
|
cancelProduct (list) {
|
|
|
// 防止多次添加产品
|