From eed5166e953dc68a5528897d1e8ba26fd43327be Mon Sep 17 00:00:00 2001 From: wuxw <928255095@qq.com> Date: Fri, 13 Oct 2023 15:39:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wirteInvoiceEvent/wirteInvoiceEvent.html | 43 +++ .../wirteInvoiceEvent/wirteInvoiceEvent.js | 60 ++++ .../editAccessControlWhite.html | 302 ++++++------------ .../property/addOwner/addOwner.html | 14 +- .../tempImportRoomFee/tempImportRoomFee.html | 82 +++-- .../tempImportRoomFee/tempImportRoomFee.js | 20 +- .../pages/fee/invoiceApply/invoiceApply.html | 6 + public/pages/fee/invoiceApply/invoiceApply.js | 3 + 8 files changed, 285 insertions(+), 245 deletions(-) create mode 100644 public/components/fee/wirteInvoiceEvent/wirteInvoiceEvent.html create mode 100644 public/components/fee/wirteInvoiceEvent/wirteInvoiceEvent.js diff --git a/public/components/fee/wirteInvoiceEvent/wirteInvoiceEvent.html b/public/components/fee/wirteInvoiceEvent/wirteInvoiceEvent.html new file mode 100644 index 000000000..3bea596aa --- /dev/null +++ b/public/components/fee/wirteInvoiceEvent/wirteInvoiceEvent.html @@ -0,0 +1,43 @@ + \ No newline at end of file diff --git a/public/components/fee/wirteInvoiceEvent/wirteInvoiceEvent.js b/public/components/fee/wirteInvoiceEvent/wirteInvoiceEvent.js new file mode 100644 index 000000000..b7eb5faf6 --- /dev/null +++ b/public/components/fee/wirteInvoiceEvent/wirteInvoiceEvent.js @@ -0,0 +1,60 @@ +(function (vc) { + vc.extends({ + data: { + wirteInvoiceEventInfo: { + applyId: '', + eventType:'', + remark: '', + } + }, + _initMethod: function () { + + }, + _initEvent: function () { + + vc.on('wirteInvoiceEvent', 'openWirteInvoiceModal', function(_param) { + vc.copyObject(_param,$that.wirteInvoiceEventInfo); + $('#wirteInvoiceEventModel').modal('show'); + }); + }, + methods: { + _wirteEvent: function () { + let _eventType = $that.wirteInvoiceEventInfo.eventType; + if (!_eventType) { + vc.toast("请选择类型"); + return; + } + $that.wirteInvoiceEventInfo.communityId = vc.getCurrentCommunity().communityId; + vc.http.apiPost( + '/invoice.writeInvoiceApply', + JSON.stringify($that.wirteInvoiceEventInfo), { + emulateJSON: true + }, + function (json, res) { + //vm.menus = vm.refreshMenuActive(JSON.parse(json),0); + let _json = JSON.parse(json) + if (_json.code == '0') { + //关闭model + $('#wirteInvoiceEventModel').modal('hide'); + $that.clearWirteInvoiceEventInfo(); + vc.emit('invoiceApply', 'listInvoiceApply', {}); + vc.toast("上传成功"); + return; + } else { + vc.toast(_json.msg); + } + }, + function (errInfo, error) { + vc.toast(errInfo); + }); + }, + clearWirteInvoiceEventInfo: function () { + $that.wirteInvoiceEventInfo = { + applyId: '', + eventType:'', + remark: '', + }; + }, + } + }); +})(window.vc); \ No newline at end of file diff --git a/public/components/machine/editAccessControlWhite/editAccessControlWhite.html b/public/components/machine/editAccessControlWhite/editAccessControlWhite.html index 3ced94961..d7be1d2eb 100644 --- a/public/components/machine/editAccessControlWhite/editAccessControlWhite.html +++ b/public/components/machine/editAccessControlWhite/editAccessControlWhite.html @@ -1,209 +1,103 @@