|
@@ -20,6 +20,7 @@
|
|
<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-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="type"
|
|
<el-form-item label-width='100px' v-if='deptBudgetList.purpose == "合同费用"' label="类型" span="1" prop="type"
|
|
@@ -28,6 +29,7 @@
|
|
<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-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>
|
|
|
|
|
|
@@ -82,6 +84,8 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label-width='100px' label="金额(元)" span="1" prop="contractNo" class="readonly">
|
|
<el-form-item label-width='100px' label="金额(元)" span="1" prop="contractNo" class="readonly">
|
|
<el-input class='input50 input_css' placeholder="输入请款金额" v-model="deptBudgetList.amountMoney"></el-input>
|
|
<el-input class='input50 input_css' placeholder="输入请款金额" v-model="deptBudgetList.amountMoney"></el-input>
|
|
|
|
+ <el-checkbox v-show="this.deptBudgetList.type != '利息'" v-model="selected">备用金支付</el-checkbox>
|
|
|
|
+ <el-checkbox v-show="this.deptBudgetList.type == '利息'" v-model="lixiSelected" disabled>无需付款</el-checkbox>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label-width='100px' label="备注" span="1" prop="settlementMethod">
|
|
<el-form-item label-width='100px' label="备注" span="1" prop="settlementMethod">
|
|
<el-input type="textarea" :rows="5" placeholder="选填,不超过50个字" v-model="deptBudgetList.remark">
|
|
<el-input type="textarea" :rows="5" placeholder="选填,不超过50个字" v-model="deptBudgetList.remark">
|
|
@@ -110,10 +114,10 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
<div
|
|
<div
|
|
- v-if='deptBudgetList.purpose == "合同费用" && deptBudgetList.type == "非粮款" || deptBudgetList.purpose == "库点费用" && deptBudgetList.autoAssign == "不自动分配"'
|
|
|
|
|
|
+ v-if='deptBudgetList.purpose == "合同费用" && deptBudgetList.type == "利息" || deptBudgetList.purpose == "合同费用" && deptBudgetList.type == "非粮款" || deptBudgetList.purpose == "库点费用" && deptBudgetList.autoAssign == "不自动分配"'
|
|
class='expensetitle'>费用分配</div>
|
|
class='expensetitle'>费用分配</div>
|
|
<div
|
|
<div
|
|
- v-if='deptBudgetList.purpose == "合同费用" && deptBudgetList.type == "非粮款" || deptBudgetList.purpose == "库点费用" && deptBudgetList.autoAssign == "不自动分配"'
|
|
|
|
|
|
+ v-if='deptBudgetList.purpose == "合同费用" && deptBudgetList.type == "利息" || deptBudgetList.purpose == "合同费用" && deptBudgetList.type == "非粮款" || deptBudgetList.purpose == "库点费用" && deptBudgetList.autoAssign == "不自动分配"'
|
|
style='margin:0 auto 10px;width:90%;display: flex;'>
|
|
style='margin:0 auto 10px;width:90%;display: flex;'>
|
|
<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"
|
|
@@ -158,7 +162,7 @@
|
|
<span style="margin-top:5px;margin-left: 10px;" v-if='mode != "暂不分配"'>合计分配:{{ amount }}元</span>
|
|
<span style="margin-top:5px;margin-left: 10px;" v-if='mode != "暂不分配"'>合计分配:{{ amount }}元</span>
|
|
</div>
|
|
</div>
|
|
<el-table ref="tableref"
|
|
<el-table ref="tableref"
|
|
- v-if='deptBudgetList.purpose == "合同费用" && deptBudgetList.type == "非粮款" && mode != "暂不分配" || deptBudgetList.purpose == "库点费用" && mode != "暂不分配" && deptBudgetList.autoAssign == "不自动分配"'
|
|
|
|
|
|
+ v-if='deptBudgetList.purpose == "合同费用" && deptBudgetList.type == "利息" && mode != "暂不分配" || deptBudgetList.purpose == "合同费用" && deptBudgetList.type == "非粮款" && mode != "暂不分配" || deptBudgetList.purpose == "库点费用" && mode != "暂不分配" && deptBudgetList.autoAssign == "不自动分配"'
|
|
:data="feeDetailsDistributions" style="width: 90%;margin:0 auto;">
|
|
:data="feeDetailsDistributions" style="width: 90%;margin:0 auto;">
|
|
<el-table-column key="1" width="150" v-if='deptBudgetList.purpose == "合同费用"' prop="date" label="仓库名称"
|
|
<el-table-column key="1" width="150" v-if='deptBudgetList.purpose == "合同费用"' prop="date" label="仓库名称"
|
|
min-width="110">
|
|
min-width="110">
|
|
@@ -253,6 +257,8 @@ export default {
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ selected:false,
|
|
|
|
+ lixiSelected:true,
|
|
customerList: [],
|
|
customerList: [],
|
|
goodsSource: '',
|
|
goodsSource: '',
|
|
value2: '',
|
|
value2: '',
|
|
@@ -282,7 +288,7 @@ export default {
|
|
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: '粮款', flag: '否', autoAssign: "不自动分配", payee: '', accountNumber: '', bank: '', bankBranch: '', wareExpenseType: '杂费', },
|
|
|
|
|
|
+ deptBudgetList: { purpose: '合同费用', type: '粮款', flag: '否', payerHeader:'',noPaymentFlag:'',autoAssign: '不自动分配', payee: '', accountNumber: '',paymentIdentifi: '', bank: '', bankBranch: '', wareExpenseType: '杂费', },
|
|
makeWordData: {},
|
|
makeWordData: {},
|
|
warehouseList: [],
|
|
warehouseList: [],
|
|
contractList: [],
|
|
contractList: [],
|
|
@@ -323,6 +329,7 @@ export default {
|
|
// this.makeWordData = this.getData(2)
|
|
// this.makeWordData = this.getData(2)
|
|
// this.initCharts()
|
|
// this.initCharts()
|
|
// this.getPassYearFormatDate()
|
|
// this.getPassYearFormatDate()
|
|
|
|
+ this.deptBudgetList.payerHeader = localStorage.getItem('ws-pf_compName')
|
|
this.getList()
|
|
this.getList()
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -342,10 +349,10 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
purposeChange(e) {
|
|
purposeChange(e) {
|
|
- if (e == "库点费用") {
|
|
|
|
- this.deptBudgetList.autoAssign = "不自动分配"
|
|
|
|
|
|
+ if (e == '库点费用') {
|
|
|
|
+ this.deptBudgetList.autoAssign = '不自动分配'
|
|
} else {
|
|
} else {
|
|
- this.deptBudgetList.autoAssign = ""
|
|
|
|
|
|
+ this.deptBudgetList.autoAssign = ''
|
|
}
|
|
}
|
|
},
|
|
},
|
|
sourceChange(e) {
|
|
sourceChange(e) {
|
|
@@ -732,7 +739,7 @@ export default {
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (this.deptBudgetList.purpose == '合同费用' && this.deptBudgetList.type == '非粮款' && this.mode != '暂不分配' || this.deptBudgetList.purpose == '库点费用' && this.deptBudgetList.autoAssign == '不自动分配' && this.mode != '暂不分配') {
|
|
|
|
|
|
+ if (this.deptBudgetList.purpose == '合同费用' && this.deptBudgetList.type == '利息' && this.mode != '暂不分配'|| this.deptBudgetList.purpose == '合同费用' && this.deptBudgetList.type == '非粮款' && this.mode != '暂不分配' || this.deptBudgetList.purpose == '库点费用' && this.deptBudgetList.autoAssign == '不自动分配' && this.mode != '暂不分配') {
|
|
for (let i = 0; i < this.feeDetailsDistributions.length; i++) {
|
|
for (let i = 0; i < this.feeDetailsDistributions.length; i++) {
|
|
// if(!this.feeDetailsDistributions[i].goodsSource){
|
|
// if(!this.feeDetailsDistributions[i].goodsSource){
|
|
// this.$message({
|
|
// this.$message({
|
|
@@ -799,7 +806,19 @@ export default {
|
|
} else if (this.deptBudgetList.purpose == '经营性费用') {
|
|
} else if (this.deptBudgetList.purpose == '经营性费用') {
|
|
this.deptBudgetList.expensesPurpose = 5
|
|
this.deptBudgetList.expensesPurpose = 5
|
|
this.deptBudgetList.costNo = 'JYF' + this.getdate() + this.Num
|
|
this.deptBudgetList.costNo = 'JYF' + this.getdate() + this.Num
|
|
|
|
+ }else if(this.deptBudgetList.purpose == '备用金'){
|
|
|
|
+ this.deptBudgetList.expensesPurpose = 7
|
|
|
|
+ this.deptBudgetList.costNo = 'BYJ' + this.getdate() + this.Num
|
|
|
|
+ this.$set(this.deptBudgetList,'wareExpenseType','')
|
|
|
|
+ this.$set(this.deptBudgetList,'type','')
|
|
|
|
+ this.$set(this.deptBudgetList,'flag','')
|
|
}
|
|
}
|
|
|
|
+ //选中状态下,备用金支付标识为1
|
|
|
|
+ if(this.selected == true){
|
|
|
|
+ this.deptBudgetList.paymentIdentifi = 1
|
|
|
|
+ }else{
|
|
|
|
+ this.deptBudgetList.paymentIdentifi = 0
|
|
|
|
+ }
|
|
if (this.deptBudgetList.expensesPurpose == 1) {
|
|
if (this.deptBudgetList.expensesPurpose == 1) {
|
|
if (this.deptBudgetList.type == '粮款') {
|
|
if (this.deptBudgetList.type == '粮款') {
|
|
this.deptBudgetList.costType = 1
|
|
this.deptBudgetList.costType = 1
|
|
@@ -813,6 +832,13 @@ export default {
|
|
this.deptBudgetList.costType = 5
|
|
this.deptBudgetList.costType = 5
|
|
this.deptBudgetList.expenseAllocationInfoList = []
|
|
this.deptBudgetList.expenseAllocationInfoList = []
|
|
}
|
|
}
|
|
|
|
+ else if(this.deptBudgetList.type == '利息'){
|
|
|
|
+ this.deptBudgetList.noPaymentFlag = 1
|
|
|
|
+ this.deptBudgetList.costType = 7
|
|
|
|
+ if (this.mode != '暂不分配') {
|
|
|
|
+ this.deptBudgetList.expenseAllocationInfoList = this.feeDetailsDistributions
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
if (this.deptBudgetList.expensesPurpose == 1) {
|
|
if (this.deptBudgetList.expensesPurpose == 1) {
|
|
var data = []
|
|
var data = []
|
|
@@ -910,13 +936,13 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- if (this.deptBudgetList.purpose == "库点费用") {
|
|
|
|
- if (this.deptBudgetList.autoAssign == "不自动分配") {
|
|
|
|
|
|
+ if (this.deptBudgetList.purpose == '库点费用') {
|
|
|
|
+ if (this.deptBudgetList.autoAssign == '不自动分配') {
|
|
this.deptBudgetList.autoAssign = 1
|
|
this.deptBudgetList.autoAssign = 1
|
|
- } else if (this.deptBudgetList.autoAssign == "仓储费自动分配") {
|
|
|
|
|
|
+ } else if (this.deptBudgetList.autoAssign == '仓储费自动分配') {
|
|
this.deptBudgetList.autoAssign = 3
|
|
this.deptBudgetList.autoAssign = 3
|
|
this.deptBudgetList.expenseAllocationInfoList = []
|
|
this.deptBudgetList.expenseAllocationInfoList = []
|
|
- } else if (this.deptBudgetList.autoAssign == "燃料费自动分配") {
|
|
|
|
|
|
+ } else if (this.deptBudgetList.autoAssign == '煤款自动分配') {
|
|
if (!this.deptBudgetList.coalPrice) {
|
|
if (!this.deptBudgetList.coalPrice) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '燃料费单价不能为空!',
|
|
message: '燃料费单价不能为空!',
|
|
@@ -986,7 +1012,7 @@ export default {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
this.mode = '全部分配'
|
|
this.mode = '全部分配'
|
|
- this.deptBudgetList = { purpose: '合同费用', type: '粮款', flag: '否', payee: '', accountNumber: '', bank: '', bankBranch: '', wareExpenseType: '杂费', }
|
|
|
|
|
|
+ this.deptBudgetList = { purpose: '合同费用', type: '粮款', flag: '否', payee: '', noPaymentFlag:'',accountNumber: '',payerHeader:'',paymentIdentifi: '', bank: '', bankBranch: '', wareExpenseType: '杂费', }
|
|
this.feeDetailsDistributions = [{ receiptDocDate: '', inWarehouseWeight: 0, distributionMoney: 0, warehouseName: '', goodsName: '', goodsSource: '', index: 0 }]
|
|
this.feeDetailsDistributions = [{ receiptDocDate: '', inWarehouseWeight: 0, distributionMoney: 0, warehouseName: '', goodsName: '', goodsSource: '', index: 0 }]
|
|
this.paymentScreenshot = []
|
|
this.paymentScreenshot = []
|
|
this.$refs.upload.clearFiles()
|
|
this.$refs.upload.clearFiles()
|