|
@@ -242,28 +242,30 @@
|
|
|
<el-input
|
|
|
v-model="deptBudgetList.paymentAmount"
|
|
|
placeholder="请输入发放金额"
|
|
|
+ @input="customEdit"
|
|
|
+ type="number"
|
|
|
size="small"
|
|
|
></el-input>
|
|
|
</el-form-item>
|
|
|
-
|
|
|
+
|
|
|
<div class="custom">
|
|
|
- <div class="custom1"><el-input type="text" v-model="deptBudgetList.modifyExpense1" :disabled="costOne">(元)</el-input></div>
|
|
|
- <div class="custom2"><el-input type="text" v-model="deptBudgetList.applicationAmount" placeholder="请输入金额" :disabled="costOne" @input="customEdit"></el-input></div>
|
|
|
+ <div class="custom1"><el-input type="text" v-model="deptBudgetList.modifyExpense1" :disabled="costOne" maxlength="8"></el-input></div>
|
|
|
+ <div class="custom2"><el-input type="number" v-model="deptBudgetList.applicationAmount" placeholder="请输入金额" :disabled="costOne" @input="customEdit" ></el-input></div>
|
|
|
<span @click="switch1(1)" class="span_text">{{deptBudgetList.applicationAmountFlag}}</span>
|
|
|
</div>
|
|
|
<div class="custom">
|
|
|
- <div class="custom1"><el-input type="text" v-model="deptBudgetList.modifyExpense2" :disabled="costTwo"></el-input></div>
|
|
|
- <div class="custom2"><el-input type="text" v-model="deptBudgetList.supervisionFee" placeholder="请输入金额" :disabled="costTwo" @input="customEdit"></el-input></div>
|
|
|
+ <div class="custom1"><el-input type="text" v-model="deptBudgetList.modifyExpense2" :disabled="costTwo" maxlength="8"></el-input></div>
|
|
|
+ <div class="custom2"><el-input type="number" v-model="deptBudgetList.supervisionFee" placeholder="请输入金额" :disabled="costTwo" @input="customEdit"></el-input></div>
|
|
|
<span @click="switch1(2)" class="span_text">{{deptBudgetList.supervisionFeeFlag}}</span>
|
|
|
</div>
|
|
|
<div class="custom">
|
|
|
- <div class="custom1"><el-input type="text" v-model="deptBudgetList.modifyExpense3" :disabled="costThree"></el-input></div>
|
|
|
- <div class="custom2"><el-input type="text" v-model="deptBudgetList.insurancePremium" placeholder="请输入金额" :disabled="costThree" @input="customEdit"></el-input></div>
|
|
|
+ <div class="custom1"><el-input type="text" v-model="deptBudgetList.modifyExpense3" :disabled="costThree" maxlength="8"></el-input></div>
|
|
|
+ <div class="custom2"><el-input type="number" v-model="deptBudgetList.insurancePremium" placeholder="请输入金额" :disabled="costThree" @input="customEdit"></el-input></div>
|
|
|
<span @click="switch1(3)" class="span_text">{{deptBudgetList.insurancePremiumFlag}}</span>
|
|
|
</div>
|
|
|
<div class="custom">
|
|
|
- <div class="custom1"><el-input type="text" v-model="deptBudgetList.modifyExpense4" :disabled="costFour"></el-input></div>
|
|
|
- <div class="custom2"><el-input type="text" v-model="deptBudgetList.otherFee" placeholder="请输入金额" :disabled="costFour" @input="customEdit"></el-input></div>
|
|
|
+ <div class="custom1"><el-input type="text" v-model="deptBudgetList.modifyExpense4" :disabled="costFour" maxlength="8"></el-input></div>
|
|
|
+ <div class="custom2"><el-input type="number" v-model="deptBudgetList.otherFee" placeholder="请输入金额" :disabled="costFour" @input="customEdit"></el-input></div>
|
|
|
<span @click="switch1(4)" class="span_text">{{deptBudgetList.otherFeeFlag}}</span>
|
|
|
</div>
|
|
|
<!-- <el-form-item label="利息" span="1" prop="taskNo">
|
|
@@ -304,7 +306,7 @@
|
|
|
</el-form-item>
|
|
|
<div>
|
|
|
<el-button @click="outerVisible = true" type="primary">驳回</el-button>
|
|
|
- <el-button @click="outerVisible1 = true" type="primary">通过</el-button>
|
|
|
+ <el-button @click="submit" type="primary">通过</el-button>
|
|
|
</div>
|
|
|
<div class="title1">审核记录</div>
|
|
|
<el-table class="wenzi" :data="taskhistories" style="width: 100%">
|
|
@@ -406,9 +408,10 @@ export default {
|
|
|
this.getcompList()
|
|
|
},
|
|
|
methods: {
|
|
|
- switch1(num){
|
|
|
+ switch1(num){
|
|
|
if(num == 1){
|
|
|
this.costOne = !this.costOne
|
|
|
+ this.deptBudgetList.applicationAmount = ""
|
|
|
if(this.costOne){
|
|
|
this.deptBudgetList.applicationAmountFlag = "隐藏中"
|
|
|
}else{
|
|
@@ -416,6 +419,7 @@ export default {
|
|
|
}
|
|
|
}else if(num == 2){
|
|
|
this.costTwo = !this.costTwo
|
|
|
+ this.deptBudgetList.supervisionFee = ""
|
|
|
if(this.costTwo){
|
|
|
this.deptBudgetList.supervisionFeeFlag = "隐藏中"
|
|
|
}else{
|
|
@@ -423,12 +427,15 @@ export default {
|
|
|
}
|
|
|
}else if(num == 3){
|
|
|
this.costThree = !this.costThree
|
|
|
+ this.deptBudgetList.insurancePremium = ""
|
|
|
if(this.costThree){
|
|
|
this.deptBudgetList.insurancePremiumFlag = "隐藏中"
|
|
|
}else{
|
|
|
this.deptBudgetList.insurancePremiumFlag = "显示中"
|
|
|
}
|
|
|
}else if(num == 4){
|
|
|
+ this.costFour = !this.costFour
|
|
|
+ this.deptBudgetList.otherFee = ""
|
|
|
if(this.costFour){
|
|
|
this.deptBudgetList.otherFeeFlag = "隐藏中"
|
|
|
}else{
|
|
@@ -437,7 +444,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
customEdit(){
|
|
|
- this.deptBudgetList.amountDue = this.deptBudgetList.paymentAmount + Number(this.deptBudgetList.applicationAmount ? this.deptBudgetList.applicationAmount : 0) + Number(this.deptBudgetList.supervisionFee ? this.deptBudgetList.supervisionFee : 0) + Number(this.deptBudgetList.insurancePremium ? this.deptBudgetList.insurancePremium : 0) + Number(this.deptBudgetList.otherFee? this.deptBudgetList.otherFee : 0)
|
|
|
+ this.deptBudgetList.amountDue = Number(this.deptBudgetList.paymentAmount) + Number(this.deptBudgetList.applicationAmount ? this.deptBudgetList.applicationAmount : 0) + Number(this.deptBudgetList.supervisionFee ? this.deptBudgetList.supervisionFee : 0) + Number(this.deptBudgetList.insurancePremium ? this.deptBudgetList.insurancePremium : 0) + Number(this.deptBudgetList.otherFee? this.deptBudgetList.otherFee : 0)
|
|
|
},
|
|
|
//返回
|
|
|
cancel() {
|
|
@@ -474,15 +481,89 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
+ validate() {
|
|
|
+ function _Validate(min, max, saveNum, type, inputVal) {
|
|
|
+ let _val1 = inputVal
|
|
|
+ let _pointVal1 = _val1.toString().split('.')[1]
|
|
|
+ if (_pointVal1 == undefined) _pointVal1 = 0
|
|
|
+ if (typeof(_pointVal1) == 'string') _pointVal1 = _pointVal1.length
|
|
|
+ if (Number(_val1) <= Number(max) && Number(_val1) >= Number(min) && _pointVal1 <= saveNum) {
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ if (!this.deptBudgetList.contractNo || this.deptBudgetList.contractNo.length < 6 || this.deptBudgetList.contractNo.length > 30) {
|
|
|
+ this.$message.error('合同编号不能为空且长度为6-30个字符!');
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ if (!this.deptBudgetList.paymentAmount || _Validate(1, 1000000000, 2, '', this.deptBudgetList.paymentAmount)) {
|
|
|
+ if (!this.deptBudgetList.paymentAmount) {
|
|
|
+ this.$message.error('发放金额不能为空!');
|
|
|
+ } else {
|
|
|
+ this.$message.error('发放金额输入错误,1-1000000000之间,最多保留2位小数!');
|
|
|
+ }
|
|
|
+ return false
|
|
|
+ }
|
|
|
+
|
|
|
+ if(!this.costOne){
|
|
|
+ if (!this.deptBudgetList.applicationAmount || _Validate(1, 100000000, 2, '', this.deptBudgetList.applicationAmount)) {
|
|
|
+ if (!this.deptBudgetList.applicationAmount) {
|
|
|
+ this.$message.error(this.deptBudgetList.modifyExpense1 + '不能为空!');
|
|
|
+ } else {
|
|
|
+ this.$message.error(this.deptBudgetList.modifyExpense1 + '输入错误,1-1000000000之间,最多保留2位小数!');
|
|
|
+ }
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(!this.costTwo){
|
|
|
+ if (!this.deptBudgetList.supervisionFee || _Validate(1, 100000000, 2, '', this.deptBudgetList.supervisionFee)) {
|
|
|
+ if (!this.deptBudgetList.supervisionFee) {
|
|
|
+ this.$message.error(this.deptBudgetList.modifyExpense2 + '不能为空!');
|
|
|
+ } else {
|
|
|
+ this.$message.error(this.deptBudgetList.modifyExpense2 + '输入错误,1-1000000000之间,最多保留2位小数!');
|
|
|
+ }
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(!this.costThree){
|
|
|
+ if (!this.deptBudgetList.insurancePremium || _Validate(1, 100000000, 2, '', this.deptBudgetList.insurancePremium)) {
|
|
|
+ if (!this.deptBudgetList.insurancePremium) {
|
|
|
+ this.$message.error(this.deptBudgetList.modifyExpense3 + '不能为空!');
|
|
|
+ } else {
|
|
|
+ this.$message.error(this.deptBudgetList.modifyExpense3 + '输入错误,1-1000000000之间,最多保留2位小数!');
|
|
|
+ }
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(!this.costFour){
|
|
|
+ if (!this.deptBudgetList.otherFee || _Validate(1, 100000000, 2, '', this.deptBudgetList.otherFee)) {
|
|
|
+ if (!this.deptBudgetList.otherFee) {
|
|
|
+ this.$message.error(this.deptBudgetList.modifyExpense4 + '不能为空!');
|
|
|
+ } else {
|
|
|
+ this.$message.error(this.deptBudgetList.modifyExpense4 + '输入错误,1-1000000000之间,最多保留2位小数!');
|
|
|
+ }
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return true
|
|
|
+ },
|
|
|
+ submit(){
|
|
|
+ let isValidate = false
|
|
|
+ isValidate = this.validate()
|
|
|
+ if(isValidate){
|
|
|
+ this.outerVisible1 = true
|
|
|
+ }
|
|
|
+ },
|
|
|
// 提交
|
|
|
adoptSubmit() {
|
|
|
+
|
|
|
if (!this.adoptText || this.adoptText.length > 50) {
|
|
|
this.$message.error('审核意见不能为空且不能超出50字')
|
|
|
} else {
|
|
|
WarehouseReceiptUpdate(this.deptBudgetList)
|
|
|
.toPromise()
|
|
|
.then((response) => {
|
|
|
- this.$message.success('提交成功')
|
|
|
+ // this.$message.success('提交成功')
|
|
|
woekflowhandle({
|
|
|
taskId: this.deptBudgetList.taskId,
|
|
|
approved: true,
|
|
@@ -491,7 +572,7 @@ export default {
|
|
|
})
|
|
|
.toPromise()
|
|
|
.then((response) => {
|
|
|
- this.$message.success('审核成功')
|
|
|
+ this.$message.success('审批成功')
|
|
|
this.$router.push({
|
|
|
path: 'warehouseReceiptRegulation'
|
|
|
})
|
|
@@ -584,6 +665,10 @@ export default {
|
|
|
this.deptBudgetList.supervisionFeeFlag="隐藏中"
|
|
|
this.deptBudgetList.insurancePremiumFlag="隐藏中"
|
|
|
this.deptBudgetList.otherFeeFlag="隐藏中"
|
|
|
+ this.deptBudgetList.applicationAmount = ""
|
|
|
+ this.deptBudgetList.supervisionFee = ""
|
|
|
+ this.deptBudgetList.insurancePremium = ""
|
|
|
+ this.deptBudgetList.otherFee = ""
|
|
|
})
|
|
|
.catch((req) => {
|
|
|
|
|
@@ -610,6 +695,8 @@ export default {
|
|
|
baseId: this.deptBudgetList.baseId,
|
|
|
positionId: this.deptBudgetList.warehouseNoId,
|
|
|
warehouseName: this.deptBudgetList.warehouseName,
|
|
|
+ nowWeight:this.deptBudgetList.nowWeight,
|
|
|
+ warehouseNo:this.deptBudgetList.warehouseNo
|
|
|
}
|
|
|
})
|
|
|
}
|