|
@@ -363,7 +363,8 @@ weight: 4000}]],
|
|
|
searchType: this.searchType,
|
|
|
searchKeyWord: this.searchKeyWord,
|
|
|
goodsName: this.goodsName,
|
|
|
- goodsSource: this.goodsSource == '全部客户' ? '' : this.goodsSource
|
|
|
+ goodsSource: this.goodsSource == '全部客户' ? '' : this.goodsSource,
|
|
|
+ confirmFlag : this.confirmFlag
|
|
|
})
|
|
|
.toPromise()
|
|
|
.then((response) => {
|
|
@@ -652,27 +653,26 @@ weight: 4000}]],
|
|
|
}
|
|
|
}
|
|
|
if(this.deptBudgetList.expensesPurpose==3){
|
|
|
- // var data=[]
|
|
|
- // for (let i = 0; i < this.feeDetailsDistributions.length; i++) {
|
|
|
- // if(data.length==0){
|
|
|
- // data.push(this.feeDetailsDistributions[i])
|
|
|
- // }else{
|
|
|
- // var repetition=data.filter((item,index)=>{
|
|
|
- // return this.feeDetailsDistributions[i].warehouseName==item.warehouseName&&this.feeDetailsDistributions[i].receiptDocDate==item.receiptDocDate
|
|
|
- // && this.feeDetailsDistributions[i].goodsSource == item.goodsSource
|
|
|
- // })
|
|
|
- // if(repetition.length==0){
|
|
|
- // data.push(this.feeDetailsDistributions[i])
|
|
|
- // }else{
|
|
|
- // this.$message({
|
|
|
- // message: '货源重复!',
|
|
|
- // type: 'warning',
|
|
|
- // })
|
|
|
- // return
|
|
|
- // }
|
|
|
- // }
|
|
|
-
|
|
|
- // }
|
|
|
+ var data=[]
|
|
|
+ for (let i = 0; i < this.feeDetailsDistributions.length; i++) {
|
|
|
+ if(data.length==0){
|
|
|
+ data.push(this.feeDetailsDistributions[i])
|
|
|
+ }else{
|
|
|
+ var repetition=data.filter((item,index)=>{
|
|
|
+ return this.feeDetailsDistributions[i].warehouseName==item.warehouseName&&this.feeDetailsDistributions[i].receiptDocDate==item.receiptDocDate
|
|
|
+ && this.feeDetailsDistributions[i].goodsSource == item.goodsSource && this.feeDetailsDistributions[i].orderId==item.orderId
|
|
|
+ })
|
|
|
+ if(repetition.length==0){
|
|
|
+ data.push(this.feeDetailsDistributions[i])
|
|
|
+ }else{
|
|
|
+ this.$message({
|
|
|
+ message: '货源重复!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
this.deptBudgetList.expensesType=2
|
|
|
if(!this.deptBudgetList.contractNo&&this.deptBudgetList.expensesPurpose==1){
|