|
@@ -85,8 +85,8 @@
|
|
<div class="baseBtn">
|
|
<div class="baseBtn">
|
|
<div class="blockWidth">
|
|
<div class="blockWidth">
|
|
<el-button type="primary" @click="download">生成表单</el-button>
|
|
<el-button type="primary" @click="download">生成表单</el-button>
|
|
- <el-button type="primary" v-if="!state" @click="submitData">提交</el-button>
|
|
|
|
- <el-button type="primary" v-if="state>0" class="disa">提交</el-button>
|
|
|
|
|
|
+ <el-button type="primary" v-if="!state&& $store.state.userInfo.type!=0" @click="submitData">提交</el-button>
|
|
|
|
+ <el-button type="primary" v-if="state>0&& $store.state.userInfo.type!=0" class="disa">提交</el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -299,7 +299,8 @@ export default {
|
|
let fund2=arr2.reduce((prev,cur,index,arr) => {
|
|
let fund2=arr2.reduce((prev,cur,index,arr) => {
|
|
return prev + cur*1;
|
|
return prev + cur*1;
|
|
},0);
|
|
},0);
|
|
- console.log(fund,fund2);
|
|
|
|
|
|
+ // console.log(fund,fund2);
|
|
|
|
+ if (fund==0) return this.$message.error('请输入实际使用金额')
|
|
if (fund+fund2>this.allFund) return this.$message.error('申请金额已大于预算')
|
|
if (fund+fund2>this.allFund) return this.$message.error('申请金额已大于预算')
|
|
this.submitDataDig=true
|
|
this.submitDataDig=true
|
|
},
|
|
},
|