|
|
@@ -57,21 +57,7 @@
|
|
|
</el-col>
|
|
|
<el-col :span="24">
|
|
|
<el-form-item :label="$t(`金额`)+':'" prop="amount">
|
|
|
- <el-input v-model="form.amount" :placeholder="$t(`请填写金额`)" v-on:input="validateInput"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="24">
|
|
|
- <el-form-item :label="$t(`收入凭证`)+':'" prop="source_hrcashbill">
|
|
|
- <tableNewLayout ref="tableRef" :checkbox="false" :layout="income.tablecols" :data="income.list" :opwidth="200" height="calc(100vh - 440px)" :width="true" :custom="true" @selectionChange="selectionChange">
|
|
|
- <template v-slot:customcol="scope">
|
|
|
- <div v-if="scope.column.columnname === 'amount'">
|
|
|
- {{tool.formatAmount(scope.column.data[[scope.column.columnname]],2)}}
|
|
|
- </div>
|
|
|
- <div v-else>
|
|
|
- {{scope.column.data[[scope.column.columnname]] || scope.column.columnname === 'operation'?scope.column.data[[scope.column.columnname]]:'--'}}
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- </tableNewLayout>
|
|
|
+ <el-input v-model="form.amount" :placeholder="$t(`请填写金额`)" v-on:input="validateInput" disabled></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="24">
|
|
|
@@ -196,7 +182,6 @@ export default {
|
|
|
this.income.list = []
|
|
|
this.form.name = ''
|
|
|
this.form.hrid = ''
|
|
|
- this.$refs.tableRef.$refs.table.clearSelection()
|
|
|
this.$refs.formRef.resetFields()
|
|
|
},
|
|
|
handleSizeChange(val) {
|
|
|
@@ -228,7 +213,6 @@ export default {
|
|
|
this.tool.showMessage(res,()=>{
|
|
|
this.dialogVisible = false
|
|
|
this.income.list = []
|
|
|
- this.$refs.tableRef.$refs.table.clearSelection()
|
|
|
this.$refs.formRef.resetFields()
|
|
|
this.form.name = ''
|
|
|
this.form.hrid = ''
|