|
|
@@ -54,7 +54,8 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item
|
|
|
label="Monthly Credit Limit:"
|
|
|
- prop="creditLimitAmount">
|
|
|
+ prop="creditLimitAmount"
|
|
|
+ v-if="false">
|
|
|
<span class="item-unit">(S$)</span>
|
|
|
<el-input
|
|
|
class="add-text"
|
|
|
@@ -63,6 +64,16 @@
|
|
|
maxlength="10"
|
|
|
:readonly="form.onlyView"/>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item
|
|
|
+ label="Monthly Credit Limit:"
|
|
|
+ prop="creditLimitAmount"
|
|
|
+ v-if="isEdit">
|
|
|
+ <span class="item-unit">(S$)</span>
|
|
|
+ <el-input
|
|
|
+ class="add-text"
|
|
|
+ v-model="form.totalCreditLimitAmount"
|
|
|
+ readonly/>
|
|
|
+ </el-form-item>
|
|
|
</div>
|
|
|
<div class="form-right" v-if="isEdit">
|
|
|
<el-form-item
|
|
|
@@ -105,7 +116,15 @@
|
|
|
align="center"
|
|
|
label="Amount"
|
|
|
prop="groupCredit"
|
|
|
- min-width="100"/>
|
|
|
+ min-width="100">
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <el-input
|
|
|
+ class="add-text credit-input"
|
|
|
+ v-model="form.creditLimitAmount"
|
|
|
+ maxlength="10"
|
|
|
+ :readonly="form.onlyView"/>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column
|
|
|
align="center"
|
|
|
label="Assigned Users"
|
|
|
@@ -384,6 +403,17 @@ export default {
|
|
|
.add-text ::v-deep .el-textarea__inner {
|
|
|
font-family: sans-serif;
|
|
|
}
|
|
|
+ .add-text.credit-input ::v-deep .el-input__inner {
|
|
|
+ border: none;
|
|
|
+ padding: 0;
|
|
|
+ width: 150px;
|
|
|
+ border-radius: 0;
|
|
|
+ text-align: center;
|
|
|
+ border-bottom: 1px solid #aaa;
|
|
|
+ &:focus {
|
|
|
+ border-bottom: 1px solid $itemActiveBg;
|
|
|
+ }
|
|
|
+ }
|
|
|
.hr {
|
|
|
height: 2px;
|
|
|
margin: 10px -40px;
|