|
@@ -30,12 +30,12 @@
|
|
<ws-option label="保证金" value="保证金" style="color: #8890b1" />
|
|
<ws-option label="保证金" value="保证金" style="color: #8890b1" />
|
|
</ws-select>
|
|
</ws-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label-width='100px' v-if='deptBudgetList.purpose=="库点费用"' label="仓储费" span="1" prop="contractNo" class="readonly">
|
|
|
|
- <ws-select v-model="deptBudgetList.type" placeholder="" class="typeselect" >
|
|
|
|
|
|
+ <!-- <el-form-item label-width='100px' v-if='deptBudgetList.purpose=="库点费用"' label="仓储费" span="1" prop="contractNo" class="readonly">
|
|
|
|
+ <ws-select v-model="deptBudgetList.flag" placeholder="" class="typeselect" >
|
|
<ws-option label="否" value="否" style="color: #8890b1" />
|
|
<ws-option label="否" value="否" style="color: #8890b1" />
|
|
<ws-option label="是" value="是" style="color: #8890b1" />
|
|
<ws-option label="是" value="是" style="color: #8890b1" />
|
|
</ws-select>
|
|
</ws-select>
|
|
- </el-form-item>
|
|
|
|
|
|
+ </el-form-item> -->
|
|
<el-form-item label-width='100px' v-if='deptBudgetList.purpose=="合同费用"' label="合同编号" span="1" prop="contractNo" class="readonly">
|
|
<el-form-item label-width='100px' v-if='deptBudgetList.purpose=="合同费用"' label="合同编号" span="1" prop="contractNo" class="readonly">
|
|
<el-select v-model="deptBudgetList.contractNo" filterable clearable placeholder="选择合同" class="typeselect" @change="selectcontract">
|
|
<el-select v-model="deptBudgetList.contractNo" filterable clearable placeholder="选择合同" class="typeselect" @change="selectcontract">
|
|
<el-option v-for="item in contractList" :key="item.id" :label="item.contractNo" :value="item.contractNo"
|
|
<el-option v-for="item in contractList" :key="item.id" :label="item.contractNo" :value="item.contractNo"
|
|
@@ -72,8 +72,8 @@
|
|
</el-upload> -->
|
|
</el-upload> -->
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
- <div v-if='deptBudgetList.purpose=="合同费用"&&deptBudgetList.type=="非粮款"||deptBudgetList.purpose=="库点费用"' class='expensetitle'>费用分配</div>
|
|
|
|
- <div v-if='deptBudgetList.purpose=="合同费用"&&deptBudgetList.type=="非粮款"||deptBudgetList.purpose=="库点费用"' style='margin:0 auto 10px;width:90%;'>
|
|
|
|
|
|
+ <div v-if='deptBudgetList.purpose=="合同费用"&&deptBudgetList.type=="非粮款"||deptBudgetList.purpose=="库点费用"&&deptBudgetList.flag!="是"' class='expensetitle'>费用分配</div>
|
|
|
|
+ <div v-if='deptBudgetList.purpose=="合同费用"&&deptBudgetList.type=="非粮款"||deptBudgetList.purpose=="库点费用"&&deptBudgetList.flag!="是"' style='margin:0 auto 10px;width:90%;'>
|
|
<ws-select v-model="mode" placeholder="费用分配方式" @change="modeselect">
|
|
<ws-select v-model="mode" placeholder="费用分配方式" @change="modeselect">
|
|
<ws-option v-for="item in modeList" :key="item.value" :label="item.value" :value="item.value"
|
|
<ws-option v-for="item in modeList" :key="item.value" :label="item.value" :value="item.value"
|
|
style="color: #8890b1" />
|
|
style="color: #8890b1" />
|
|
@@ -99,7 +99,7 @@
|
|
</ws-select>
|
|
</ws-select>
|
|
<span v-if='mode!="暂不分配"'>合计分配:{{amount}}元</span>
|
|
<span v-if='mode!="暂不分配"'>合计分配:{{amount}}元</span>
|
|
</div>
|
|
</div>
|
|
- <el-table ref="tableref" v-if='deptBudgetList.purpose=="合同费用"&&deptBudgetList.type=="非粮款"&&mode!="暂不分配"||deptBudgetList.purpose=="库点费用"&&mode!="暂不分配"' :data="feeDetailsDistributions" style="width: 90%;margin:0 auto;">
|
|
|
|
|
|
+ <el-table ref="tableref" v-if='deptBudgetList.purpose=="合同费用"&&deptBudgetList.type=="非粮款"&&mode!="暂不分配"||deptBudgetList.purpose=="库点费用"&&mode!="暂不分配"&&deptBudgetList.flag!="是"' :data="feeDetailsDistributions" style="width: 90%;margin:0 auto;">
|
|
<el-table-column v-if='deptBudgetList.purpose=="合同费用"' prop="date" label="仓库名称" min-width="110">
|
|
<el-table-column v-if='deptBudgetList.purpose=="合同费用"' prop="date" label="仓库名称" min-width="110">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-select v-model="scope.row.warehouseName" placeholder="选择仓库" @change="((value)=>{selectware(value, scope.$index)})">
|
|
<el-select v-model="scope.row.warehouseName" placeholder="选择仓库" @change="((value)=>{selectware(value, scope.$index)})">
|
|
@@ -184,7 +184,7 @@
|
|
warecontractList:[],
|
|
warecontractList:[],
|
|
dateRange: this.disabledDate(),
|
|
dateRange: this.disabledDate(),
|
|
feeDetailsDistributions:[{receiptDocDate:'',inWarehouseWeight:0,distributionMoney:0,warehouseName:'',goodsName:'',goodsSource:'',index:0}],
|
|
feeDetailsDistributions:[{receiptDocDate:'',inWarehouseWeight:0,distributionMoney:0,warehouseName:'',goodsName:'',goodsSource:'',index:0}],
|
|
- deptBudgetList:{purpose:"合同费用",type:'粮款'},
|
|
|
|
|
|
+ deptBudgetList:{purpose:"合同费用",type:'粮款',flag:'否'},
|
|
makeWordData: {},
|
|
makeWordData: {},
|
|
warehouseList:[],
|
|
warehouseList:[],
|
|
contractList:[],
|
|
contractList:[],
|
|
@@ -464,7 +464,7 @@
|
|
submit(){
|
|
submit(){
|
|
this.deptBudgetList.compId=localStorage.getItem('ws-pf_compId')
|
|
this.deptBudgetList.compId=localStorage.getItem('ws-pf_compId')
|
|
this.deptBudgetList.agent=localStorage.getItem('ws-pf_staffName')
|
|
this.deptBudgetList.agent=localStorage.getItem('ws-pf_staffName')
|
|
- if(this.deptBudgetList.purpose=='合同费用'&&this.deptBudgetList.type=='非粮款'||this.deptBudgetList.purpose=='库点费用'){
|
|
|
|
|
|
+ if(this.deptBudgetList.purpose=='合同费用'&&this.deptBudgetList.type=='非粮款'||this.deptBudgetList.purpose=='库点费用'&&this.deptBudgetList.flag!="是"){
|
|
for (let i = 0; i < this.feeDetailsDistributions.length; i++) {
|
|
for (let i = 0; i < this.feeDetailsDistributions.length; i++) {
|
|
if(!this.feeDetailsDistributions[i].distributionMoney&&this.mode!="暂不分配"){
|
|
if(!this.feeDetailsDistributions[i].distributionMoney&&this.mode!="暂不分配"){
|
|
this.$message({
|
|
this.$message({
|
|
@@ -500,7 +500,14 @@
|
|
this.deptBudgetList.costNo='HTF'+this.getdate()+this.Num
|
|
this.deptBudgetList.costNo='HTF'+this.getdate()+this.Num
|
|
}else if(this.deptBudgetList.purpose=='库点费用'){
|
|
}else if(this.deptBudgetList.purpose=='库点费用'){
|
|
this.deptBudgetList.expensesPurpose=3
|
|
this.deptBudgetList.expensesPurpose=3
|
|
- this.deptBudgetList.expenseAllocationInfoList=this.feeDetailsDistributions
|
|
|
|
|
|
+ if(this.deptBudgetList.flag=='是'){
|
|
|
|
+ this.deptBudgetList.storageFeeFlag=1
|
|
|
|
+ this.deptBudgetList.expenseAllocationInfoList=[]
|
|
|
|
+ }else{
|
|
|
|
+ this.deptBudgetList.storageFeeFlag=0
|
|
|
|
+ this.deptBudgetList.expenseAllocationInfoList=this.feeDetailsDistributions
|
|
|
|
+ }
|
|
|
|
+
|
|
this.deptBudgetList.costNo='KDF'+this.getdate()+this.Num
|
|
this.deptBudgetList.costNo='KDF'+this.getdate()+this.Num
|
|
}else if(this.deptBudgetList.purpose=='经营性费用'){
|
|
}else if(this.deptBudgetList.purpose=='经营性费用'){
|
|
this.deptBudgetList.expensesPurpose=5
|
|
this.deptBudgetList.expensesPurpose=5
|
|
@@ -594,7 +601,7 @@
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
- if(this.deptBudgetList.expensesPurpose==1&&this.deptBudgetList.costType==3&&this.mode=='全部分配'||this.deptBudgetList.expensesPurpose==3&&this.mode=='全部分配'){
|
|
|
|
|
|
+ if(this.deptBudgetList.expensesPurpose==1&&this.deptBudgetList.costType==3&&this.mode=='全部分配'||this.deptBudgetList.expensesPurpose==3&&this.mode=='全部分配'&&this.deptBudgetList.storageFeeFlag!=1){
|
|
if(this.amount!=this.deptBudgetList.amountMoney){
|
|
if(this.amount!=this.deptBudgetList.amountMoney){
|
|
this.$message({
|
|
this.$message({
|
|
message: '请款金额与分配金额不相等!',
|
|
message: '请款金额与分配金额不相等!',
|
|
@@ -603,7 +610,7 @@
|
|
return
|
|
return
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- if(this.deptBudgetList.expensesPurpose==1&&this.deptBudgetList.costType==3&&this.mode=='部分分配'||this.deptBudgetList.expensesPurpose==3&&this.mode=='部分分配'){
|
|
|
|
|
|
+ if(this.deptBudgetList.expensesPurpose==1&&this.deptBudgetList.costType==3&&this.mode=='部分分配'||this.deptBudgetList.expensesPurpose==3&&this.mode=='部分分配'&&this.deptBudgetList.storageFeeFlag!=1){
|
|
if(this.amount>this.deptBudgetList.amountMoney){
|
|
if(this.amount>this.deptBudgetList.amountMoney){
|
|
this.$message({
|
|
this.$message({
|
|
message: '分配金额不可超过请款金额!',
|
|
message: '分配金额不可超过请款金额!',
|