|
@@ -64,7 +64,7 @@
|
|
v-show="scope.row.reexType == '支出'" @click="showAudit(scope.row)"></i>
|
|
v-show="scope.row.reexType == '支出'" @click="showAudit(scope.row)"></i>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="操作" width="500">
|
|
|
|
|
|
+ <el-table-column label="操作" min-width="400">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-button @click="audit(1,scope.row)" v-if="scope.row.reexType == '支出' && scope.row.taskId">审核
|
|
<el-button @click="audit(1,scope.row)" v-if="scope.row.reexType == '支出' && scope.row.taskId">审核
|
|
</el-button>
|
|
</el-button>
|
|
@@ -104,7 +104,8 @@
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="款项名称">
|
|
<el-form-item label="款项名称">
|
|
- <el-input v-model="formData.expenseName" placeholder="输入费用名称" :disabled="disabled" maxlength="15"></el-input>
|
|
|
|
|
|
+ <el-input v-model="formData.expenseName" placeholder="输入费用名称" :disabled="disabled" maxlength="15">
|
|
|
|
+ </el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="金额(元)" v-if="btnChange == 3 || btnChange == 4 || btnChange == 5">
|
|
<el-form-item label="金额(元)" v-if="btnChange == 3 || btnChange == 4 || btnChange == 5">
|
|
<el-input v-model="formData.amountMoney" placeholder="输入请款金额" type="number"></el-input>
|
|
<el-input v-model="formData.amountMoney" placeholder="输入请款金额" type="number"></el-input>
|
|
@@ -157,12 +158,15 @@
|
|
<div v-for="(item,index) in auditRecord" :key="index" class="audit">
|
|
<div v-for="(item,index) in auditRecord" :key="index" class="audit">
|
|
<div class="audit_item">
|
|
<div class="audit_item">
|
|
<div class="audit_left">
|
|
<div class="audit_left">
|
|
- <span class="audit_name">{{item.operateUser}}</span><span v-if="item.approveResult">{{item.approveResult == 0 ? "驳回" : "通过"}}</span><span v-else>{{item.dealMsg}}</span>
|
|
|
|
|
|
+ <span class="audit_name">{{item.operateUser}}</span><span
|
|
|
|
+ v-if="item.approveResult">{{item.approveResult == 0 ? "驳回" : "通过"}}</span><span
|
|
|
|
+ v-else>{{item.dealMsg}}</span>
|
|
</div>
|
|
</div>
|
|
<span class="audit_date">{{item.operateDate}}</span>
|
|
<span class="audit_date">{{item.operateDate}}</span>
|
|
</div>
|
|
</div>
|
|
<div class="audit_opinion" v-if="item.dealMsg != '付款' && item.approveResult">审核意见:{{item.verifyRemark}}</div>
|
|
<div class="audit_opinion" v-if="item.dealMsg != '付款' && item.approveResult">审核意见:{{item.verifyRemark}}</div>
|
|
- <div class="audit_opinion" v-if="item.dealMsg == '请款' && item.approveResult == null">备注信息:{{item.verifyRemark}}</div>
|
|
|
|
|
|
+ <div class="audit_opinion" v-if="item.dealMsg == '请款' && item.approveResult == null">备注信息:{{item.verifyRemark}}
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
@@ -211,7 +215,7 @@
|
|
value: "",
|
|
value: "",
|
|
warehouseList: [],
|
|
warehouseList: [],
|
|
formData: {},
|
|
formData: {},
|
|
- radio:"1",
|
|
|
|
|
|
+ radio: "1",
|
|
appendixIdss: [],
|
|
appendixIdss: [],
|
|
editable: false,
|
|
editable: false,
|
|
auditShow: false,
|
|
auditShow: false,
|
|
@@ -329,30 +333,30 @@
|
|
},
|
|
},
|
|
submit() {
|
|
submit() {
|
|
this.formData.expenseType = this.radio
|
|
this.formData.expenseType = this.radio
|
|
- if(this.formData.expenseType == 2){
|
|
|
|
- if(!this.formData.warehouseName){
|
|
|
|
|
|
+ if (this.formData.expenseType == 2) {
|
|
|
|
+ if (!this.formData.warehouseName) {
|
|
this.$message.error("请选择仓库")
|
|
this.$message.error("请选择仓库")
|
|
return
|
|
return
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- if(!this.formData.expenseName){
|
|
|
|
|
|
+ if (!this.formData.expenseName) {
|
|
this.$message.error("款项名称不能为空!")
|
|
this.$message.error("款项名称不能为空!")
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if(!this.formData.amountMoney){
|
|
|
|
|
|
+ if (!this.formData.amountMoney) {
|
|
this.$message.error("金额不能为空!")
|
|
this.$message.error("金额不能为空!")
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if(Number(this.formData.amountMoney) < 0 || Number(this.formData.amountMoney ) > 100000000){
|
|
|
|
|
|
+ if (Number(this.formData.amountMoney) < 0 || Number(this.formData.amountMoney) > 100000000) {
|
|
this.$message.error("金额输入错误!")
|
|
this.$message.error("金额输入错误!")
|
|
}
|
|
}
|
|
console.log(this.formData.amountMoney.split(".")[1].length)
|
|
console.log(this.formData.amountMoney.split(".")[1].length)
|
|
- if(this.formData.amountMoney.split(".")[1].length > 2){
|
|
|
|
|
|
+ if (this.formData.amountMoney.split(".")[1].length > 2) {
|
|
this.$message.error("金额请保留两位小数!")
|
|
this.$message.error("金额请保留两位小数!")
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if(this.btnChange == 4){
|
|
|
|
- if(!this.formData.addressUrl){
|
|
|
|
|
|
+ if (this.btnChange == 4) {
|
|
|
|
+ if (!this.formData.addressUrl) {
|
|
this.$message.error("请上传附件!")
|
|
this.$message.error("请上传附件!")
|
|
return
|
|
return
|
|
}
|
|
}
|