{"version":3,"sources":["webpack:///./src/views/ap/store/user/List.vue?14c6","webpack:///./src/layout/header/Header.vue?b3d9","webpack:///./src/layout/header/Header.ts","webpack:///./src/layout/header/Header.ts?7377","webpack:///./src/layout/header/Header.vue","webpack:///./src/layout/lightbox/add/LightBoxAdd.vue?171f","webpack:///./src/layout/lightbox/add/LightBoxAdd.ts","webpack:///./src/layout/lightbox/add/LightBoxAdd.ts?7556","webpack:///./src/layout/lightbox/add/LightBoxAdd.vue","webpack:///./src/layout/lightbox/delete/LightBoxDelete.vue?04d4","webpack:///./src/layout/lightbox/delete/LightBoxDelete.ts","webpack:///./src/layout/lightbox/delete/LightBoxDelete.ts?10e5","webpack:///./src/layout/lightbox/delete/LightBoxDelete.vue","webpack:///./src/layout/lightbox/insert/LightBoxInsert.vue?2be6","webpack:///./src/layout/lightbox/insert/LightBoxInsert.ts","webpack:///./src/layout/lightbox/insert/LightBoxInsert.ts?892b","webpack:///./src/layout/lightbox/insert/LightBoxInsert.vue","webpack:///./src/layout/lightbox/reset/LightBoxReset.vue?a040","webpack:///./src/layout/lightbox/reset/LightBoxReset.ts","webpack:///./src/layout/lightbox/reset/LightBoxReset.ts?8d01","webpack:///./src/layout/lightbox/reset/LightBoxReset.vue","webpack:///./src/layout/pagination/Pagination.vue?11cd","webpack:///./src/layout/pagination/Pagination.ts","webpack:///./src/layout/pagination/Pagination.ts?582e","webpack:///./src/layout/pagination/Pagination.vue","webpack:///./src/controllers/ap/store/user/List.ts","webpack:///./src/controllers/ap/store/user/List.ts?8ade","webpack:///./src/views/ap/store/user/List.vue"],"names":["render","_vm","this","_c","_self","_setupProxy","attrs","expireTime","staticClass","_m","priv","add","_v","_e","pagination","total","_l","info","index","key","_s","storeUserId","typeMap","type","identification","registerName","account","edit","path","query","delete","on","$event","preventDefault","openLightBoxDelete","openLightBoxReset","current","limit","prev","next","to","lightBoxShow","confirmDelete","closeLightBoxDelete","lightBoxShowForReset","reset","passwordReset","closeLightBoxReset","hintBox","show","hint","closeHint","directives","name","rawName","value","expression","staticRenderFns","openMenu","title","logout","created","$emit","Header","components","component","domProps","target","composing","searchInput","search","takeIn","closeLightBox","searchList","$data","Boolean","LightBoxAdd","cancel","LightBoxDelete","tidNumber","code","Protobuf","StoreList","create","list","onSyncedShowChange","item","StoreInsertQuery","syncedType","StoreInsertQueryType","SIQT_CODE","SIQT_TID_NUMBER","storeInsertQuery","encode","finish","getStoreSearch","getStoreInsertList","Number","LightBoxInsert","BlankPage","confirmReset","LightBoxReset","syncedTotal","block","page","class","syncedCurrent","modifiers","specificPagination","_n","checkPaginationInput","$forceUpdate","toSpecific","apply","arguments","section","min","max","onSyncedMinChange","i","push","onSyncedTotalChange","handleMaxAndMin","syncedLimit","Math","ceil","subSection","isNaN","deep","Pagination","isLoading","AccountTypeMap","userList","selectedDeleteId","hintMessage","selectedResetId","resetDone","delDone","Permission","setPriv","getStoreUser","userInfo","JSON","parse","get","StoreUserQuery","getPagination","console","log","storeUserQuery","storeUserList","getStoreUserList","isSearch","offset","StoreUser","storeUser","deleteStoreUser","errorCode","ErrorCode","EC_SUCESS","openHint","ErrorCodeMap","reloadPage","$router","go","resetPassword","meta","$route","Priv","_checkPriv","privKey","isSetPriv","_checkPrivType","_getPriv","_getExpireTime","StoreUserListController","Hint","Loading","Nav"],"mappings":"yHAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAUF,EAAIG,MAAMC,YAAY,OAAOF,EAAG,MAAM,CAACA,EAAG,MAAM,CAACG,MAAM,CAAC,WAAaL,EAAIM,cAAcJ,EAAG,MAAM,CAACK,YAAY,iBAAiB,CAACL,EAAG,MAAM,CAACK,YAAY,WAAW,CAACL,EAAG,MAAM,CAACK,YAAY,wBAAwB,CAACP,EAAIQ,GAAG,GAAGN,EAAG,MAAM,CAACK,YAAY,SAAS,CAACL,EAAG,MAAM,CAACK,YAAY,aAAa,CAAmB,IAAjBP,EAAIS,KAAKC,IAAWR,EAAG,cAAc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KAAKK,WAAaiK,EAAA,KAAKM,iB,YAjNVC,EAAuB,gBAX3C,eAAmC,CAChC/G,WAAY,CACRmC,UAAS,OACT6E,KAAI,OACJC,QAAO,OACPC,IAAG,OACHjD,WAAU,EACVnD,eAAc,EACduB,cAAa,MAGA0E,GAoNrB,EApNA,CAAqD,QAAhC,MCzBgS,MCOjT,GAAY,eACd,GACA/K,EACAyD,GACA,EACA,KACA,KACA,MAIa,gB","file":"js/chunk-2d0d7103.880e9de2.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',[_c('Nav',{attrs:{\"expireTime\":_vm.expireTime}}),_c('div',{staticClass:\"col-container\"},[_c('div',{staticClass:\"l-title\"},[_c('div',{staticClass:\"col-row col-noGutter\"},[_vm._m(0),_c('div',{staticClass:\"col-4\"},[_c('div',{staticClass:\"flex--end\"},[(_vm.priv.add === 1)?_c('router-link',{staticClass:\"e-btn e-btn--primary\",attrs:{\"to\":\"/store/user/add\"}},[_vm._v(\"新增帳號\")]):_vm._e()],1)])])]),_c('div',{staticClass:\"bgBlock\"},[_c('div',{staticClass:\"col-row\"},[_c('div',{staticClass:\"col-12\"},[_c('div',{staticClass:\"e-table\"},[(_vm.pagination.total === 0)?_c('BlankPage'):_c('table',{staticClass:\"e-table_body\"},[_c('tr',{staticClass:\"e-table_header--noBorder txt-keep\"},[_c('td',[_vm._v(\"編號\")]),_c('td',[_vm._v(\"帳號類型\")]),_c('td',[_vm._v(\"特店代號/統編\")]),_c('td',[_vm._v(\"特店名稱\")]),_c('td',[_vm._v(\"使用者代號\")]),_c('td',[_vm._v(\"操作\")])]),_vm._l((_vm.userList),function(info,index){return _c('tr',{key:index},[_c('td',[_vm._v(_vm._s(info.storeUserId))]),_c('td',[_vm._v(_vm._s(_vm.typeMap[info.type]))]),_c('td',[_vm._v(_vm._s(info.identification))]),_c('td',[_vm._v(_vm._s(info.registerName))]),_c('td',[_vm._v(_vm._s(info.account))]),_c('td',[(_vm.priv.edit === 1)?_c('router-link',{staticClass:\"e-btn e-btn--normal e-btn--edit\",attrs:{\"to\":{ path: '/store/user/edit', query: { 'id': info.storeUserId } }}},[_vm._v(\"編輯\")]):_vm._e(),(info.type !== 4 && _vm.priv.delete === 1)?_c('a',{staticClass:\"e-btn e-btn--normal e-btn--cancel\",on:{\"click\":function($event){$event.preventDefault();return _vm.openLightBoxDelete(index)}}},[_vm._v(\"刪除\")]):_vm._e(),_vm._v(\" \"),(_vm.priv.edit === 1)?_c('a',{staticClass:\"e-btn e-btn--normal e-btn--reset\",on:{\"click\":function($event){$event.preventDefault();return _vm.openLightBoxReset(index)}}},[_vm._v(\"密碼初始化\")]):_vm._e()],1)])})],2)],1)])]),_c('Pagination',{attrs:{\"current\":_vm.pagination.current,\"total\":_vm.pagination.total,\"limit\":_vm.pagination.limit},on:{\"prev\":function($event){return _vm.prev()},\"next\":function($event){return _vm.next()},\"to\":_vm.to,\"toSpecific\":_vm.to}})],1)]),_c('LightBoxDelete',{attrs:{\"show\":_vm.lightBoxShow.delete},on:{\"confirmDelete\":function($event){return _vm.confirmDelete()},\"cancel\":function($event){return _vm.closeLightBoxDelete()}}}),_c('LightBoxReset',{attrs:{\"show\":_vm.lightBoxShowForReset.reset},on:{\"confirmReset\":function($event){return _vm.passwordReset()},\"cancel\":function($event){return _vm.closeLightBoxReset()}}}),_c('Hint',{attrs:{\"show\":_vm.hintBox.show,\"message\":_vm.hintBox.hint},on:{\"closeHint\":function($event){return _vm.closeHint()}}}),_c('Loading',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isLoading),expression:\"isLoading\"}]})],1)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"col-3\"},[_c('span',[_vm._v(\"特店帳號管理\")])])\n}]\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"l-header\"},[_c('div',{staticClass:\"col-container\"},[_c('div',{staticClass:\"col-row col-noGutter\"},[_c('div',{staticClass:\"col-8\"},[_c('div',{staticClass:\"l-header_logo\"},[_vm._m(0),_c('div',{staticClass:\"col-2\"},[_c('a',{staticClass:\"e-btn e-btn--secondary\",attrs:{\"href\":\"\"},on:{\"click\":function($event){$event.preventDefault();return _vm.openMenu()}}},[_vm._v(\"選單\")])])])]),_c('div',{staticClass:\"col-4\"},[_c('div',{staticClass:\"l-header_user\"},[_c('span',[_vm._v(\"您好,\"+_vm._s(_vm.name)+_vm._s(_vm.title))]),_c('p',[_c('a',{attrs:{\"href\":\"\"},on:{\"click\":function($event){$event.preventDefault();return _vm.logout()}}},[_vm._v(\"登出\")])])])])])])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"col-4\"},[_c('img',{attrs:{\"src\":\"/img/logo-w.png\",\"alt\":\"\"}})])\n}]\n\nexport { render, staticRenderFns }","import { Component, Vue } from \"vue-property-decorator\";\r\n\r\n@Component
({\r\n components: {}\r\n})\r\nexport default class Header extends Vue {\r\n private name = \"李阿丹\";\r\n private title = \"專員\";\r\n\r\n public created() {\r\n // TODO: get or call api\r\n }\r\n\r\n private openMenu() {\r\n this.$emit(\"openMenu\");\r\n }\r\n\r\n private logout() {\r\n this.$emit(\"logout\");\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--14-2!../../../node_modules/eslint-loader/index.js??ref--13-0!./Header.ts?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--14-2!../../../node_modules/eslint-loader/index.js??ref--13-0!./Header.ts?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Header.vue?vue&type=template&id=7a5ba45e&\"\nimport script from \"./Header?vue&type=script&lang=ts&\"\nexport * from \"./Header?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.syncedShow),expression:\"syncedShow\"}],staticClass:\"l-mask\"},[_c('div',{staticClass:\"l-mask_content\"},[_c('div',{staticClass:\"col-row\"},[_c('div',{staticClass:\"col-12\"},[_c('div',{staticClass:\"e-form align-center\"},[_c('div',{staticClass:\"col-8\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.searchInput),expression:\"searchInput\"}],staticClass:\"e-formGroup_item\",attrs:{\"type\":\"text\",\"placeholder\":\"請輸入特店代號/統編\"},domProps:{\"value\":(_vm.searchInput)},on:{\"input\":function($event){if($event.target.composing)return;_vm.searchInput=$event.target.value}}})]),_c('a',{staticClass:\"e-btn e-btn--secondary\",attrs:{\"href\":\"\"},on:{\"click\":function($event){$event.preventDefault();return _vm.search()}}},[_vm._v(\"搜尋\")])])])]),_c('div',{staticClass:\"col-row\"},[_c('div',{staticClass:\"col-12\"},[_c('table',{staticClass:\"e-table_body txt-l\"},[_vm._m(0),_vm._l((_vm.searchList),function(search,index){return _c('tr',{key:index},[_c('td',[_vm._v(_vm._s(search))]),_c('td',[_c('a',{staticClass:\"e-btn e-btn--normal\",on:{\"click\":function($event){$event.preventDefault();return _vm.takeIn(index)}}},[_vm._v(\"帶入\")])])])})],2)])]),_c('a',{staticClass:\"e-btn e-btn--secondary\",attrs:{\"href\":\"\"},on:{\"click\":function($event){$event.preventDefault();return _vm.closeLightBox()}}},[_vm._v(\"取消\")])])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('tr',{staticClass:\"e-table_header--noBorder\"},[_c('td',[_vm._v(\"統編\")]),_c('td',[_vm._v(\"操作\")])])\n}]\n\nexport { render, staticRenderFns }","import { Component, PropSync, Vue } from \"vue-property-decorator\";\r\n\r\n@Component({\r\n components: {}\r\n})\r\nexport default class LightBoxAdd extends Vue {\r\n @PropSync(\"show\", { type: Boolean })\r\n syncedShow!: boolean;\r\n\r\n private searchInput = \"\";\r\n private searchList: string[] = [];\r\n\r\n private search() {\r\n if (this.$data.searchInput !== \"\") {\r\n // TODO: search\r\n }\r\n }\r\n\r\n private takeIn(index: number) {\r\n this.$emit(\"takeIn\", this.$data.searchList[index]);\r\n }\r\n\r\n private closeLightBox() {\r\n this.$emit(\"closeLightBox\");\r\n }\r\n}\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/ts-loader/index.js??ref--14-2!../../../../node_modules/eslint-loader/index.js??ref--13-0!./LightBoxAdd.ts?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/ts-loader/index.js??ref--14-2!../../../../node_modules/eslint-loader/index.js??ref--13-0!./LightBoxAdd.ts?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./LightBoxAdd.vue?vue&type=template&id=48365976&\"\nimport script from \"./LightBoxAdd?vue&type=script&lang=ts&\"\nexport * from \"./LightBoxAdd?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.syncedShow),expression:\"syncedShow\"}],staticClass:\"l-mask\"},[_c('div',{staticClass:\"l-mask_content\"},[_c('p',{},[_vm._v(\"確定要刪除嗎?\")]),_c('a',{staticClass:\"e-btn e-btn--secondary\",attrs:{\"href\":\"\"},on:{\"click\":function($event){$event.preventDefault();return _vm.cancel()}}},[_vm._v(\"取消\")]),_c('a',{staticClass:\"e-btn e-btn--primary\",attrs:{\"href\":\"\"},on:{\"click\":function($event){$event.preventDefault();return _vm.confirmDelete()}}},[_vm._v(\"確定\")])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Component, PropSync, Vue } from \"vue-property-decorator\";\r\n\r\n@Component({\r\n components: {}\r\n})\r\nexport default class LightBoxDelete extends Vue {\r\n @PropSync(\"show\", { type: Boolean })\r\n syncedShow!: boolean;\r\n\r\n private confirmDelete() {\r\n this.$emit(\"confirmDelete\");\r\n }\r\n\r\n private cancel() {\r\n this.$emit(\"cancel\");\r\n }\r\n}\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/ts-loader/index.js??ref--14-2!../../../../node_modules/eslint-loader/index.js??ref--13-0!./LightBoxDelete.ts?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/ts-loader/index.js??ref--14-2!../../../../node_modules/eslint-loader/index.js??ref--13-0!./LightBoxDelete.ts?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./LightBoxDelete.vue?vue&type=template&id=d59476d8&\"\nimport script from \"./LightBoxDelete?vue&type=script&lang=ts&\"\nexport * from \"./LightBoxDelete?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.syncedShow),expression:\"syncedShow\"}],staticClass:\"l-mask\"},[_c('div',{staticClass:\"l-mask_content\"},[_c('div',{staticClass:\"col-row\"},[_c('div',{staticClass:\"col-12\"},[_c('div',{staticClass:\"e-form align-center\"},[_c('div',{staticClass:\"col-8\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.searchInput),expression:\"searchInput\"}],staticClass:\"e-formGroup_item\",attrs:{\"type\":\"text\",\"placeholder\":\"請輸入特店代號/統編\"},domProps:{\"value\":(_vm.searchInput)},on:{\"input\":function($event){if($event.target.composing)return;_vm.searchInput=$event.target.value}}})]),_c('div',{staticClass:\"col-4\"},[_c('a',{staticClass:\"e-btn e-btn--secondary\",on:{\"click\":function($event){$event.preventDefault();return _vm.search()}}},[_vm._v(\"搜尋\")])])])])]),_c('div',{staticClass:\"col-row\"},[(_vm.searchList.total >= 0)?_c('div',{staticClass:\"col-12\"},[(_vm.searchList.total === 0)?_c('BlankPage'):_c('table',{staticClass:\"e-table_body txt-l\"},[_c('tr',{staticClass:\"e-table_header--noBorder\"},[_c('td',[_vm._v(\"統編\")]),_c('td',[_vm._v(\"特店代號\")]),_c('td',[_vm._v(\"操作\")])]),_vm._l((_vm.searchList.list),function(search,index){return _c('tr',{key:index},[_c('td',[_vm._v(_vm._s(search.tidNumber))]),_c('td',[_vm._v(_vm._s(search.code))]),_c('td',[_c('a',{staticClass:\"e-btn e-btn--normal\",on:{\"click\":function($event){$event.preventDefault();return _vm.takeIn(index)}}},[_vm._v(\"帶入\")])])])})],2)],1):_vm._e()]),_c('a',{staticClass:\"e-btn e-btn--secondary\",on:{\"click\":function($event){$event.preventDefault();return _vm.closeLightBox()}}},[_vm._v(\"取消\")])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { BlankPage } from \"@/components\";\r\nimport { StoreModel } from \"@/models\";\r\nimport { TCBReceiptApi } from \"@/network/pb/proto\";\r\nimport { Component, PropSync, Vue, Watch } from \"vue-property-decorator\";\r\n\r\n@Component({\r\n components: {\r\n BlankPage\r\n }\r\n})\r\nexport default class LightBoxInsert extends Vue {\r\n @PropSync(\"show\", { type: Boolean })\r\n syncedShow!: boolean;\r\n @PropSync(\"type\", { type: Number })\r\n syncedType!: number;\r\n\r\n private searchInput = \"\";\r\n private searchList = TCBReceiptApi.Protobuf.StoreList.create({\r\n list: [],\r\n total: -1\r\n });\r\n\r\n @Watch(\"syncedShow\")\r\n onSyncedShowChange(show: boolean) {\r\n if (show) {\r\n this.reset();\r\n }\r\n }\r\n\r\n private reset() {\r\n this.searchInput = \"\";\r\n this.searchList = TCBReceiptApi.Protobuf.StoreList.create({\r\n list: [],\r\n total: -1\r\n });\r\n }\r\n\r\n private async search() {\r\n const item = TCBReceiptApi.Protobuf.StoreInsertQuery.create();\r\n switch (this.syncedType) {\r\n case 1:\r\n item.type = TCBReceiptApi.Protobuf.StoreInsertQueryType.SIQT_CODE;\r\n break;\r\n case 2:\r\n item.type = TCBReceiptApi.Protobuf.StoreInsertQueryType.SIQT_TID_NUMBER;\r\n break;\r\n case 3:\r\n item.type = TCBReceiptApi.Protobuf.StoreInsertQueryType.SIQT_TID_NUMBER;\r\n break;\r\n }\r\n item.identification = this.searchInput;\r\n const storeInsertQuery = TCBReceiptApi.Protobuf.StoreInsertQuery.encode(\r\n item\r\n ).finish();\r\n\r\n await StoreModel.getStoreSearch(storeInsertQuery);\r\n this.searchList = StoreModel.getStoreInsertList();\r\n }\r\n\r\n private takeIn(index: number) {\r\n this.$emit(\r\n \"takeIn\",\r\n (this.searchList.list as TCBReceiptApi.Protobuf.IStore[])[index]\r\n );\r\n }\r\n\r\n private closeLightBox() {\r\n this.$emit(\"closeLightBox\");\r\n }\r\n}\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/ts-loader/index.js??ref--14-2!../../../../node_modules/eslint-loader/index.js??ref--13-0!./LightBoxInsert.ts?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/ts-loader/index.js??ref--14-2!../../../../node_modules/eslint-loader/index.js??ref--13-0!./LightBoxInsert.ts?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./LightBoxInsert.vue?vue&type=template&id=e8c89152&\"\nimport script from \"./LightBoxInsert?vue&type=script&lang=ts&\"\nexport * from \"./LightBoxInsert?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.syncedShow),expression:\"syncedShow\"}],staticClass:\"l-mask\"},[_c('div',{staticClass:\"l-mask_content\"},[_c('p',{},[_vm._v(\"確認要初始化密碼嗎?\")]),_c('a',{staticClass:\"e-btn e-btn--secondary\",on:{\"click\":function($event){$event.preventDefault();return _vm.cancel()}}},[_vm._v(\"取消\")]),_c('a',{staticClass:\"e-btn e-btn--primary\",on:{\"click\":function($event){$event.preventDefault();return _vm.confirmReset()}}},[_vm._v(\"確定\")])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Component, PropSync, Vue } from \"vue-property-decorator\";\r\n\r\n@Component({\r\n components: {}\r\n})\r\nexport default class LightBoxReset extends Vue {\r\n @PropSync(\"show\", { type: Boolean })\r\n syncedShow!: boolean;\r\n\r\n private confirmReset() {\r\n this.$emit(\"confirmReset\");\r\n }\r\n\r\n private cancel() {\r\n this.$emit(\"cancel\");\r\n }\r\n}\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/ts-loader/index.js??ref--14-2!../../../../node_modules/eslint-loader/index.js??ref--13-0!./LightBoxReset.ts?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/ts-loader/index.js??ref--14-2!../../../../node_modules/eslint-loader/index.js??ref--13-0!./LightBoxReset.ts?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./LightBoxReset.vue?vue&type=template&id=8a3c4202&\"\nimport script from \"./LightBoxReset?vue&type=script&lang=ts&\"\nexport * from \"./LightBoxReset?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.syncedTotal > 0),expression:\"syncedTotal > 0\"}],staticClass:\"col-row\"},[_c('div',{staticClass:\"col-12\"},[_c('div',{staticClass:\"l-page\"},[_c('div',{staticClass:\"col-11 flex--center pl60\"},[_c('div',{staticClass:\"l-page_group\"},[_c('a',{staticClass:\"l-page_group_icon\",attrs:{\"href\":\"\"},on:{\"click\":function($event){$event.preventDefault();return _vm.prev()}}},[_c('img',{attrs:{\"src\":\"/img/per.svg\",\"alt\":\"\"}})]),_vm._l((_vm.block.list),function(page,index){return _c('a',{key:index,staticClass:\"l-page_group_item\",class:{\n 'l-page_group_item--active': _vm.syncedCurrent === page\n },attrs:{\"href\":\"\"},on:{\"click\":function($event){$event.preventDefault();return _vm.to(page)}}},[_vm._v(_vm._s(page))])}),_c('a',{staticClass:\"l-page_group_icon\",attrs:{\"href\":\"\"},on:{\"click\":function($event){$event.preventDefault();return _vm.next()}}},[_c('img',{attrs:{\"src\":\"/img/next.svg\",\"alt\":\"\"}})])],2),_c('div',{staticClass:\"l-page_group\"},[_c('span',[_vm._v(\"到第\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model.number\",value:(_vm.specificPagination),expression:\"specificPagination\",modifiers:{\"number\":true}}],staticClass:\"l-page_group_txt\",attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.specificPagination)},on:{\"input\":[function($event){if($event.target.composing)return;_vm.specificPagination=_vm._n($event.target.value)},function($event){return _vm.checkPaginationInput()}],\"blur\":function($event){return _vm.$forceUpdate()}}}),_c('span',[_vm._v(\"頁\")])]),_c('button',{staticClass:\"e-btn e-btn--page\",on:{\"click\":function($event){$event.preventDefault();return _vm.toSpecific.apply(null, arguments)}}},[_vm._v(\" 確定 \")])]),_c('div',{staticClass:\"col-1 flex--end\"},[_c('div',{staticClass:\"l-page_group\"},[_c('span',[_vm._v(\"共\"+_vm._s(_vm.syncedTotal)+\"筆資料\")])])])])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Component, PropSync, Vue, Watch } from \"vue-property-decorator\";\r\n\r\n@Component({\r\n components: {}\r\n})\r\nexport default class Pagination extends Vue {\r\n @PropSync(\"current\", { type: Number })\r\n syncedCurrent!: number;\r\n @PropSync(\"total\", { type: Number })\r\n syncedTotal!: number;\r\n @PropSync(\"limit\", { type: Number })\r\n syncedLimit!: number;\r\n\r\n private block: {\r\n list: number[];\r\n section: number;\r\n min: number;\r\n max: number;\r\n } = {\r\n list: [],\r\n section: 5,\r\n min: 0,\r\n max: 0\r\n };\r\n private specificPagination = 0;\r\n\r\n @Watch(\"block.min\", { deep: true })\r\n onSyncedMinChange() {\r\n this.block.list = [];\r\n for (let i = this.block.min; i <= this.block.max; i++) {\r\n this.block.list.push(i);\r\n }\r\n }\r\n\r\n @Watch(\"syncedTotal\")\r\n onSyncedTotalChange() {\r\n this.handleMaxAndMin();\r\n\r\n this.specificPagination = this.syncedCurrent;\r\n this.block.list = [];\r\n for (let i = this.block.min; i <= this.block.max; i++) {\r\n this.block.list.push(i);\r\n }\r\n }\r\n\r\n public created() {\r\n this.handleMaxAndMin();\r\n\r\n this.specificPagination = this.syncedCurrent;\r\n for (let i = this.block.min; i <= this.block.max; i++) {\r\n this.block.list.push(i);\r\n }\r\n }\r\n\r\n private handleMaxAndMin() {\r\n if (this.syncedTotal === 0) {\r\n this.block.max = 0;\r\n this.block.min = 0;\r\n } else if (\r\n this.syncedTotal <=\r\n (this.block.section - 1) * this.syncedLimit\r\n ) {\r\n const max = Math.ceil(this.syncedTotal / this.syncedLimit);\r\n this.block.max = max;\r\n this.block.min = 1;\r\n } else {\r\n this.block.max = this.block.section;\r\n this.block.min = 1;\r\n }\r\n }\r\n\r\n private prev() {\r\n if (this.syncedCurrent > 1) {\r\n if (this.syncedCurrent === this.block.min) {\r\n if (this.block.min > 1) {\r\n this.block.min--;\r\n this.block.max--;\r\n }\r\n }\r\n this.$emit(\"prev\");\r\n }\r\n }\r\n\r\n private next() {\r\n const max = Math.ceil(this.syncedTotal / this.syncedLimit);\r\n if (this.syncedCurrent < max) {\r\n if (this.syncedCurrent === this.block.max) {\r\n if (this.block.min < max) {\r\n this.block.min++;\r\n this.block.max++;\r\n }\r\n }\r\n this.$emit(\"next\");\r\n }\r\n }\r\n\r\n private to(page: number) {\r\n this.$emit(\"to\", page);\r\n\r\n const max = Math.ceil(this.syncedTotal / this.syncedLimit);\r\n if (this.specificPagination > max - this.block.section) {\r\n this.block.max = max;\r\n if (max - this.block.section > 0) {\r\n this.block.min = max - this.block.section + 1;\r\n } else {\r\n this.block.min = 1;\r\n }\r\n } else if (this.specificPagination < this.block.section) {\r\n this.block.min = 1;\r\n this.block.max = this.block.section;\r\n } else {\r\n const subSection = (this.block.section - (this.block.section % 2)) / 2;\r\n this.block.max = this.specificPagination + subSection;\r\n this.block.min = this.block.max - this.block.section + 1;\r\n }\r\n }\r\n\r\n private toSpecific() {\r\n this.$emit(\"toSpecific\", this.specificPagination);\r\n\r\n const max = Math.ceil(this.syncedTotal / this.syncedLimit);\r\n if (this.specificPagination > max - this.block.section) {\r\n this.block.max = max;\r\n if (max - this.block.section > 0) {\r\n this.block.min = max - this.block.section + 1;\r\n } else {\r\n this.block.min = 1;\r\n }\r\n } else if (this.specificPagination < this.block.section) {\r\n this.block.min = 1;\r\n this.block.max = this.block.section;\r\n } else {\r\n const subSection = (this.block.section - (this.block.section % 2)) / 2;\r\n this.block.max = this.specificPagination + subSection;\r\n this.block.min = this.block.max - this.block.section + 1;\r\n }\r\n }\r\n\r\n private checkPaginationInput() {\r\n const max = Math.ceil(this.syncedTotal / this.syncedLimit);\r\n\r\n if (this.specificPagination) {\r\n if (isNaN(this.specificPagination)) {\r\n this.specificPagination = this.syncedCurrent;\r\n } else if (this.specificPagination > max) {\r\n this.specificPagination = max;\r\n } else if (this.specificPagination < 1) {\r\n this.specificPagination = 1;\r\n }\r\n }\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--14-2!../../../node_modules/eslint-loader/index.js??ref--13-0!./Pagination.ts?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--14-2!../../../node_modules/eslint-loader/index.js??ref--13-0!./Pagination.ts?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Pagination.vue?vue&type=template&id=11544ea3&\"\nimport script from \"./Pagination?vue&type=script&lang=ts&\"\nexport * from \"./Pagination?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import { Component, Vue } from \"vue-property-decorator\";\r\nimport Cookies from 'js-cookie';\r\n\r\nimport { BlankPage, Hint, Loading, Nav } from \"@/components\";\r\nimport { Store, Common } from \"@/constant\";\r\nimport { Pagination, LightBoxDelete, LightBoxReset } from \"@/layout\";\r\nimport { StoreUserModel } from \"@/models\";\r\nimport { TCBReceiptApi } from \"@/network/pb/proto\";\r\n\r\nimport { UserInfo } from \"@/types/Login\";\r\n\r\nimport { Priv } from \"@/util/Priv\";\r\nimport { DefaultPath } from \"@/constant/GroupPermission\";\r\n\r\n@Component({\r\n components: {\r\n BlankPage,\r\n Hint,\r\n Loading,\r\n Nav,\r\n Pagination,\r\n LightBoxDelete,\r\n LightBoxReset,\r\n }\r\n})\r\nexport default class StoreUserListController extends Vue {\r\n private isLoading = true;\r\n private expireTime = 0;\r\n private typeMap = Store.AccountTypeMap;\r\n\r\n // 列表\r\n private userList: TCBReceiptApi.Protobuf.IStoreUser[] = [];\r\n\r\n // LB\r\n private lightBoxShow: { delete: boolean; hint: boolean } = {\r\n delete: false,\r\n hint: false\r\n };\r\n private selectedDeleteId = 0;\r\n private hintMessage = \"\";\r\n\r\n private pagination: {\r\n current: number;\r\n total: number;\r\n limit: number;\r\n } = {\r\n current: 1,\r\n total: 0,\r\n limit: 10\r\n };\r\n\r\n // Reset\r\n private selectedResetId = 0;\r\n private lightBoxShowForReset: {\r\n reset: boolean;\r\n hint: boolean;\r\n } = {\r\n reset: false,\r\n hint: false\r\n };\r\n\r\n // Hint\r\n private resetDone = false;\r\n private delDone = false;\r\n private hintBox: { show: boolean; hint: string } = { show: false, hint: \"\" };\r\n\r\n // priv\r\n private priv = TCBReceiptApi.Protobuf.Permission.create();\r\n\r\n public async created() {\r\n /* 取得最新的權限map並判斷有何權限 */\r\n await this.setPriv();\r\n /* 取得最新的權限map並判斷有何權限 */\r\n\r\n this.isLoading = true;\r\n\r\n await this.getStoreUser();\r\n\r\n this.isLoading = false;\r\n }\r\n\r\n private async getStoreUser() {\r\n const userInfo: UserInfo = JSON.parse(Cookies.get(\"appUserInfo\") as string);\r\n const tidNumber = userInfo.identification as string;\r\n\r\n const item = TCBReceiptApi.Protobuf.StoreUserQuery.create({\r\n identification: tidNumber,\r\n pagination: this.getPagination(false),\r\n });\r\n\r\n console.log(\"item\");\r\n console.log(item);\r\n\r\n const storeUserQuery = TCBReceiptApi.Protobuf.StoreUserQuery.encode(item).finish();\r\n await StoreUserModel.getStoreUser(storeUserQuery);\r\n\r\n const storeUserList = StoreUserModel.getStoreUserList();\r\n console.log(storeUserList);\r\n this.userList = storeUserList.list;\r\n this.pagination.total = storeUserList.total;\r\n\r\n console.log(this.userList);\r\n }\r\n\r\n /* Pagination */\r\n private prev() {\r\n this.pagination.current--;\r\n this.getStoreUser();\r\n }\r\n\r\n private next() {\r\n this.pagination.current++;\r\n this.getStoreUser();\r\n }\r\n\r\n private to(specificPagination: number) {\r\n this.pagination.current = specificPagination;\r\n this.getStoreUser();\r\n }\r\n\r\n private getPagination(isSearch: boolean) {\r\n const offset = isSearch\r\n ? 0\r\n : this.pagination.limit * (this.pagination.current - 1);\r\n\r\n const pagination = TCBReceiptApi.Protobuf.Pagination.create({\r\n limit: this.pagination.limit,\r\n offset: offset\r\n });\r\n\r\n return pagination;\r\n }\r\n /* Pagination */\r\n\r\n /* Delete */\r\n private openLightBoxDelete(index: number) {\r\n this.selectedDeleteId = this.userList[index].storeUserId as number;\r\n this.lightBoxShow.delete = true;\r\n }\r\n\r\n private closeLightBoxDelete() {\r\n this.lightBoxShow.delete = false;\r\n this.selectedDeleteId = 0;\r\n }\r\n\r\n private async confirmDelete() {\r\n this.isLoading = true;\r\n\r\n // send value\r\n const item = TCBReceiptApi.Protobuf.StoreUser.create({\r\n storeUserId: this.selectedDeleteId\r\n });\r\n const storeUser = TCBReceiptApi.Protobuf.StoreUser.encode(item).finish();\r\n const errorCode = await StoreUserModel.deleteStoreUser(storeUser); // deleteStoreUser\r\n this.lightBoxShow.delete = false;\r\n\r\n if (errorCode === TCBReceiptApi.Protobuf.ErrorCode.EC_SUCESS) {\r\n this.delDone = true;\r\n this.openHint(\"刪除成功\");\r\n } else {\r\n this.openHint(Common.ErrorCodeMap[errorCode]);\r\n }\r\n\r\n this.lightBoxShow.hint = true;\r\n this.isLoading = false;\r\n }\r\n\r\n private reloadPage() {\r\n this.$router.go(0);\r\n }\r\n /* Delete */\r\n\r\n /* Reset */\r\n private openLightBoxReset(index: number) {\r\n this.selectedResetId = this.userList[index].storeUserId as number;\r\n this.lightBoxShowForReset.reset = true;\r\n }\r\n\r\n private closeLightBoxReset() {\r\n this.lightBoxShowForReset.reset = false;\r\n }\r\n\r\n private async passwordReset() {\r\n this.isLoading = true;\r\n\r\n // send value\r\n const item = TCBReceiptApi.Protobuf.StoreUser.create({\r\n storeUserId: this.selectedResetId\r\n });\r\n const storeUser = TCBReceiptApi.Protobuf.StoreUser.encode(item).finish();\r\n const errorCode = await StoreUserModel.resetPassword(storeUser);\r\n if (errorCode === TCBReceiptApi.Protobuf.ErrorCode.EC_SUCESS) {\r\n this.resetDone = true;\r\n }\r\n\r\n this.lightBoxShowForReset.reset = false;\r\n this.openHint(Common.ErrorCodeMap[errorCode]);\r\n this.isLoading = false;\r\n }\r\n /* Reset */\r\n\r\n /* Hint */\r\n private openHint(hint: string) {\r\n this.hintBox.show = true;\r\n this.hintBox.hint = hint;\r\n }\r\n\r\n private closeHint() {\r\n if (this.delDone || this.resetDone) {\r\n this.reloadPage();\r\n } else {\r\n this.hintBox.show = false;\r\n this.hintBox.hint = \"\";\r\n }\r\n }\r\n /* Hint */\r\n\r\n /* 取得最新的權限map並判斷有何權限 */\r\n private async setPriv() {\r\n const meta = this.$route.meta as { privKey: { controller: string, method: string, type: string } };\r\n console.log(meta);\r\n\r\n const isSetPriv = await Priv._checkPriv(meta.privKey);\r\n if (!isSetPriv) {\r\n this.$router.push(DefaultPath); // priv\r\n }\r\n\r\n if (!Priv._checkPrivType(meta.privKey.type)) {\r\n this.$router.push(DefaultPath); // priv\r\n }\r\n\r\n this.priv = Priv._getPriv() as TCBReceiptApi.Protobuf.Permission;\r\n console.log(this.priv);\r\n\r\n this.expireTime = Priv._getExpireTime(); \r\n }\r\n /* 取得最新的權限map並判斷有何權限 */\r\n}\r\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/ts-loader/index.js??ref--14-2!../../../../../node_modules/eslint-loader/index.js??ref--13-0!./List.ts?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/ts-loader/index.js??ref--14-2!../../../../../node_modules/eslint-loader/index.js??ref--13-0!./List.ts?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./List.vue?vue&type=template&id=61f620ba&\"\nimport script from \"@/controllers/ap/store/user/List?vue&type=script&lang=ts&\"\nexport * from \"@/controllers/ap/store/user/List?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}