Commit a53193a3 by 王志慧

fixed

1 parent a742cff4
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
<GLDialog class="gl-form-page gl-form-min" :title="isRefuse != 2 ? '审核' : '驳回'" mode="mid" :visible.sync="showPassDialog" :close-on-click-modal="false" :before-close="clearSelect"> <GLDialog class="gl-form-page gl-form-min" :title="isRefuse != 2 ? '审核' : '驳回'" mode="mid" :visible.sync="showPassDialog" :close-on-click-modal="false" :before-close="clearSelect">
<el-form ref="form" :model="form" label-width="154px"> <el-form ref="form" :model="form" label-width="154px">
<el-form-item :label="isRefuse != 2 ? '备注:' : '驳回原因:'"> <el-form-item :label="isRefuse != 2 ? '备注:' : '驳回原因:'">
<el-input type="textarea" v-model="form.remark" :rows="3"></el-input> <el-input type="textarea" v-model="form.remark" :rows="3" maxlength="50"></el-input>
</el-form-item> </el-form-item>
<span class="describe" v-if="isRefuse != 2">审核通过后,转账业务单据自动流转至财务确认。</span> <span class="describe" v-if="isRefuse != 2">审核通过后,转账业务单据自动流转至财务确认。</span>
</el-form> </el-form>
...@@ -189,7 +189,7 @@ export default { ...@@ -189,7 +189,7 @@ export default {
fn: '驳回' fn: '驳回'
}, },
condition: row => { condition: row => {
return row.status == 0 return row.status == 0||row.status == 1
}, },
listeners: { listeners: {
click: row => { click: row => {
...@@ -412,10 +412,9 @@ export default { ...@@ -412,10 +412,9 @@ export default {
}, },
watch: { watch: {
'searchForm.customerPhone'(newVal) { 'searchForm.customerPhone'(newVal) {
if(isNaN(Number(newVal))) { if (isNaN(Number(newVal))) {
this.searchForm.customerPhone=newVal.replace(/[^\d]/g,'') this.searchForm.customerPhone = newVal.replace(/[^\d]/g, '')
} }
} }
}, },
mounted() { mounted() {
...@@ -531,10 +530,16 @@ export default { ...@@ -531,10 +530,16 @@ export default {
getAdmin() { getAdmin() {
this.$apis.withdraw.getAdmin({}).then(res => { this.$apis.withdraw.getAdmin({}).then(res => {
this.payForm.admin = `${res.name} ${res.phone}` this.payForm.admin = `${res.name} ${res.phone}`
console.log(this.payForm)
}) })
}, },
comfirmCheck() { comfirmCheck() {
if (this.isRefuse == 2 && this.form.remark == '') {
this.$message({
message: '请输入驳回原因',
type: 'error'
})
return
}
this.checkLoading = true this.checkLoading = true
let { isRefuse } = this, let { isRefuse } = this,
Methods = this.isRefuse == 2 ? 'integralOut' : 'integralApprove', Methods = this.isRefuse == 2 ? 'integralOut' : 'integralApprove',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!