|
@@ -119,7 +119,8 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
<!-- 经营性费用不分配 -->
|
|
<!-- 经营性费用不分配 -->
|
|
- <div v-if='deptBudgetList.expensesPurpose!=5'>
|
|
|
|
|
|
+ <div v-if='deptBudgetList.expensesPurpose==1&&deptBudgetList.costType==3||deptBudgetList.expensesPurpose==3&&deptBudgetList.storageFeeFlag!=1'>
|
|
|
|
+ <!-- <div v-if='deptBudgetList.expensesPurpose!=5'> -->
|
|
<div style="display:flex">
|
|
<div style="display:flex">
|
|
<div style='margin:0 50px 10px;font-weight:bold'>费用分配</div>
|
|
<div style='margin:0 50px 10px;font-weight:bold'>费用分配</div>
|
|
<div>可分配金额{{deptBudgetList.unallocatedAmount}}元</div>
|
|
<div>可分配金额{{deptBudgetList.unallocatedAmount}}元</div>
|
|
@@ -387,7 +388,8 @@
|
|
searchType: this.searchType,
|
|
searchType: this.searchType,
|
|
searchKeyWord: this.searchKeyWord,
|
|
searchKeyWord: this.searchKeyWord,
|
|
goodsName: this.goodsName,
|
|
goodsName: this.goodsName,
|
|
- goodsSource: this.goodsSource == '全部客户' ? '' : this.goodsSource
|
|
|
|
|
|
+ goodsSource: this.goodsSource == '全部客户' ? '' : this.goodsSource,
|
|
|
|
+ confirmFlag : this.confirmFlag
|
|
})
|
|
})
|
|
.toPromise()
|
|
.toPromise()
|
|
.then((response) => {
|
|
.then((response) => {
|
|
@@ -587,7 +589,8 @@
|
|
},
|
|
},
|
|
submit(status){
|
|
submit(status){
|
|
//经营性费用不进行分配
|
|
//经营性费用不进行分配
|
|
- if(this.deptBudgetList.expensesPurpose!=5&&this.mode!='暂不分配'){
|
|
|
|
|
|
+ if(this.deptBudgetList.expensesPurpose==1&&this.deptBudgetList.costType==3&&this.mode!='暂不分配'||this.deptBudgetList.expensesPurpose=='3'&&this.deptBudgetList.storageFeeFlag!=1&&this.mode!='暂不分配'){
|
|
|
|
+ // if(this.deptBudgetList.expensesPurpose!=5&&this.mode!='暂不分配'){
|
|
for (let i = 0; i < this.feeDetailsDistributions.length; i++) {
|
|
for (let i = 0; i < this.feeDetailsDistributions.length; i++) {
|
|
if(!this.feeDetailsDistributions[i].distributionMoney){
|
|
if(!this.feeDetailsDistributions[i].distributionMoney){
|
|
this.$message({
|
|
this.$message({
|
|
@@ -664,7 +667,7 @@
|
|
}else{
|
|
}else{
|
|
var repetition=data.filter((item,index)=>{
|
|
var repetition=data.filter((item,index)=>{
|
|
return this.feeDetailsDistributions[i].warehouseName==item.warehouseName&&this.feeDetailsDistributions[i].receiptDocDate==item.receiptDocDate
|
|
return this.feeDetailsDistributions[i].warehouseName==item.warehouseName&&this.feeDetailsDistributions[i].receiptDocDate==item.receiptDocDate
|
|
- && this.feeDetailsDistributions[i].goodsSource == item.goodsSource
|
|
|
|
|
|
+ && this.feeDetailsDistributions[i].goodsSource == item.goodsSource && this.feeDetailsDistributions[i].orderId==item.orderId
|
|
})
|
|
})
|
|
if(repetition.length==0){
|
|
if(repetition.length==0){
|
|
data.push(this.feeDetailsDistributions[i])
|
|
data.push(this.feeDetailsDistributions[i])
|