mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-07 00:17:26 +09:00
admin_chrg 등록 수정
This commit is contained in:
@@ -65,13 +65,13 @@
|
||||
value="01"
|
||||
id="popup_radio5"
|
||||
v-model="nmineeDivCd"
|
||||
@change="changeNmineDiv($event)"
|
||||
/>
|
||||
<label for="popup_radio5">소멸금액</label>
|
||||
<input
|
||||
type="number"
|
||||
placeholder="소멸 충전 금액 입력"
|
||||
v-model="chrgAmtE"
|
||||
v-bind:disabled ="nmineeDivCd=='02'"
|
||||
/>
|
||||
<input
|
||||
type="radio"
|
||||
@@ -79,15 +79,14 @@
|
||||
value="02"
|
||||
id="popup_radio6"
|
||||
v-model="nmineeDivCd"
|
||||
@change="changeNmineDiv($event)"
|
||||
/>
|
||||
<label for="popup_radio6">이월금액</label>
|
||||
<input
|
||||
class="search-box"
|
||||
type="number"
|
||||
placeholder="이월 충전 금액 입력"
|
||||
disabled
|
||||
v-model="chrgAmtC"
|
||||
v-bind:disabled ="nmineeDivCd=='01'"
|
||||
/>
|
||||
</div>
|
||||
</td>
|
||||
@@ -137,9 +136,9 @@ export default {
|
||||
endMonth: '',
|
||||
|
||||
nmineeDivCd: '01',
|
||||
chrgAmtE: '',
|
||||
chrgAmtC: '',
|
||||
|
||||
chrgAmtE: '0',
|
||||
chrgAmtC: '0',
|
||||
charDiv: '',
|
||||
userId: '',
|
||||
custNm: '',
|
||||
userSttusCd: '',
|
||||
@@ -174,10 +173,15 @@ export default {
|
||||
},
|
||||
// 모달 끄기
|
||||
insertChrgClose() {
|
||||
this.formReset();
|
||||
var dimmed = document.getElementsByClassName('insertChrgModal');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
|
||||
},
|
||||
formReset() {
|
||||
Object.assign(this.$data, this.$options.data());
|
||||
},
|
||||
searchIdPop(){
|
||||
this.$refs.userListPop.UserListPopOpen();
|
||||
@@ -271,12 +275,29 @@ export default {
|
||||
this.endDate = initEndDate;
|
||||
},
|
||||
saveChrg(){
|
||||
var chrgAmt =0;
|
||||
if (this.nmineeDivCd =='01') {
|
||||
this.chrgDiv = 'E';
|
||||
chrgAmt = this.chrgAmtE
|
||||
}else{
|
||||
this.chrgDiv='C';
|
||||
chrgAmt = this.chrgAmtC
|
||||
}
|
||||
|
||||
|
||||
if (chrgAmt<=0) {
|
||||
this.row.title = '경고';
|
||||
this.row.msg1 = '충전금을 입력해주세요.';
|
||||
this.$parent.alertInsert(this.row);
|
||||
return false;
|
||||
}
|
||||
|
||||
let param = {
|
||||
userId : this.userId,
|
||||
strtYm : this.startDate,
|
||||
endYm : this.endDate,
|
||||
chrgAmt : this.chrgAmtE,
|
||||
chrgDiv : this.chrgDiv,
|
||||
chrgAmt : chrgAmt,
|
||||
}
|
||||
|
||||
custMgtApi.insertChrg(param).then((respose)=> {
|
||||
|
||||
Reference in New Issue
Block a user