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 @@