admin_chrg 등록 수정

This commit is contained in:
2023-04-04 13:17:48 +09:00
parent 7fa6f0bf78
commit 19872e3661
6 changed files with 117 additions and 11 deletions

View File

@@ -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)=> {