刘璐珈
This commit is contained in:
@@ -164,6 +164,11 @@
|
||||
<el-tag v-else-if="parseInt(scope.row.是否收回) === 0" slot="reference" type="danger" size="mini" style="width: 66px">未收回</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="收回金额">
|
||||
<template slot-scope="scope">
|
||||
{{ Number(scope.row.收回金额).toFixed(2) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="实际收回日期">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.实际收回日期 === '' || scope.row.实际收回日期 === null ? scope.row.实际收回日期 = '暂未收回' : scope.row.实际收回日期 }}
|
||||
@@ -266,6 +271,9 @@
|
||||
type="date"
|
||||
placeholder="请选择实际收回日期"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="收回金额(万元)" prop="收回金额">
|
||||
<el-input-number v-model="form.收回金额" :precision="2" :min="0" :step="1" :max="maxrecmoney" style="width: 150px" size="small"/>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button size="small" icon="el-icon-circle-close" @click="callOffTime('form')">取消</el-button>
|
||||
@@ -398,8 +406,10 @@ export default {
|
||||
performanceGuaranteeShow: true,
|
||||
customerName_check: '',
|
||||
customerName: '', // 客户名称
|
||||
maxrecmoney: 0.00,
|
||||
form: {
|
||||
实际收回日期: ''
|
||||
实际收回日期: '',
|
||||
收回金额: ''
|
||||
},
|
||||
form2: {
|
||||
保证金金额: '',
|
||||
@@ -408,7 +418,10 @@ export default {
|
||||
截止时间: 15
|
||||
},
|
||||
rules: { // 表单验证规则
|
||||
实际收回日期: [{ required: true, message: '请选择实际收回日期', trigger: 'change' }]
|
||||
实际收回日期: [{ required: true, message: '请选择实际收回日期', trigger: 'change' }],
|
||||
收回金额: [
|
||||
{ required: true, message: '请输入收回金额', trigger: 'change' },
|
||||
{ required: true, trigger: 'blur', validator: validateValue }]
|
||||
},
|
||||
rules2: { // 表单验证规则
|
||||
保证金金额: [
|
||||
@@ -525,6 +538,9 @@ export default {
|
||||
takeBack(row) {
|
||||
this.addForm('form')
|
||||
this.performanceBondCode = row.履约保证金流水号
|
||||
this.form.收回金额 = Number(row.收回金额).toFixed(2)
|
||||
console.log((row.履约保证金金额).toFixed(2))
|
||||
this.maxrecmoney = row.履约保证金金额
|
||||
this.dialogTimeVisible = true
|
||||
},
|
||||
callOffTime() {
|
||||
@@ -533,7 +549,7 @@ export default {
|
||||
submitTime(formName) {
|
||||
this.$refs[formName].validate((valid) => {
|
||||
if (valid) {
|
||||
takeBack(this.performanceBondCode, this.form.实际收回日期).then(response => {
|
||||
takeBack(this.performanceBondCode, this.form.实际收回日期, this.form.收回金额).then(response => {
|
||||
if (response.data[0].result === '1') {
|
||||
this.$message.success('操作成功')
|
||||
this.dialogTimeVisible = false
|
||||
|
||||
Reference in New Issue
Block a user