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,MAAK,WACzC,OAAOJ,EAAoBxC,MAG7BsC,EAAoBW,KAAO,WAAa,OAAO3B,OAAO2B,KAAKZ,IAC3DC,EAAoBtC,GAAK,MACzBkD,EAAOC,QAAUb","sources":["webpack://liman/./src/views/user/customer/customerList.vue?498f","webpack://liman/src/views/user/customer/customerList.vue","webpack://liman/./src/views/user/customer/customerList.vue?a2bf","webpack://liman/./src/views/user/customer/customerList.vue","webpack://liman/./src/mixins/negoTbl.js","webpack://liman/./src/mixins/restFull.js","webpack://liman/./src/tableModel|lazy|/^/.*Tbl$/|groupOptions: {}|namespace object"],"sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('x-table',{ref:\"customerTbl\",attrs:{\"model\":_vm.model},scopedSlots:_vm._u([{key:\"operator\",fn:function(ref){\nvar record = ref.record;\nreturn _c('div',{staticClass:\"grid grid-cols-1 md:grid-cols-3 gap-4\"},[_c('a-tooltip',[_c('template',{slot:\"title\"},[_vm._v(\" نمایش جزئیات \")]),_c('span',{on:{\"click\":function($event){_vm.getNegotiableByType('metal');\n _vm.getNegotiableByType('currency');\n _vm.toView(record.user)}}},[_c('Icon',{staticClass:\"size-25 cursor-pointer\",attrs:{\"icon\":\"ion:list\"}})],1)],2),_c('a-tooltip',[_c('template',{slot:\"title\"},[_vm._v(\" ویرایش \")]),_c('a-popconfirm',{attrs:{\"title\":\"آیتم ویرایش شود؟\",\"ok-text\":\"بله\",\"cancel-text\":\"خیر\"},on:{\"confirm\":function($event){return _vm.toEdit(record.user)}}},[_c('Icon',{class:\"size-24 cursor-pointer text-success\",attrs:{\"icon\":\"ion:create-outline\"}})],1)],2),_c('a-tooltip',[_c('template',{slot:\"title\"},[_vm._v(\" حذف \")]),_c('a-popconfirm',{attrs:{\"title\":\"آیتم حذف شود؟\",\"ok-text\":\"بله\",\"cancel-text\":\"خیر\"},on:{\"confirm\":function($event){return _vm.deleteItem(record.user)}}},[_c('Icon',{class:\"size-24 cursor-pointer text-danger\",attrs:{\"icon\":\"ion:trash-outline\"}})],1)],2)],1)}}])}),(_vm.initialValue)?_c('a-modal',{attrs:{\"footer\":null},model:{value:(_vm.view),callback:function ($$v) {_vm.view=$$v},expression:\"view\"}},[_c('a-descriptions',{attrs:{\"title\":\"اطلاعات تماس\",\"column\":{ xxl: 3, md: 2, xs: 1 }}},[_c('a-descriptions-item',{attrs:{\"label\":\"نام\"}},[_vm._v(\" \"+_vm._s(_vm.initialValue.first_name || '-')+\" \")]),_c('a-descriptions-item',{attrs:{\"label\":\"نام خانوادگی\"}},[_vm._v(\" \"+_vm._s(_vm.initialValue.last_name || '-')+\" \")]),_c('a-descriptions-item',{attrs:{\"label\":\"ایمیل\"}},[_vm._v(\" \"+_vm._s(_vm.initialValue.email || '-')+\" \")]),_c('a-descriptions-item',{attrs:{\"label\":\"شماره تلفن\"}},[_vm._v(\" \"+_vm._s(_vm.initialValue.mobile || '-')+\" \")])],1),_c('a-descriptions',{attrs:{\"title\":\"اطلاعات فروشگاه\",\"column\":{ xxl: 3, md: 2, xs: 1 }}},[_c('a-descriptions-item',{attrs:{\"label\":\"نام فروشگاه\"}},[_vm._v(\" \"+_vm._s(_vm.initialValue.shop_name || '-')+\" \")]),_c('a-descriptions-item',{attrs:{\"label\":\"منطقه\"}},[_vm._v(\" \"+_vm._s(_vm.initialValue.aria || '-')+\" \")])],1),_c('a-descriptions',{attrs:{\"title\":\"اطلاعات حساب کاربری\",\"column\":{ xxl: 3, md: 2, xs: 1 }}},[_c('a-descriptions-item',{attrs:{\"label\":\"سقف بدهی\"}},[_vm._v(\" \"+_vm._s(_vm.initialValue.max_debt || '-')+\" \")]),_c('a-descriptions-item',{attrs:{\"label\":\"سقف مدت\"}},[_vm._v(\" \"+_vm._s(_vm.initialValue.max_period || '-')+\" \")]),_c('a-descriptions-item',{attrs:{\"label\":\"شماره اقتصادی\"}},[_vm._v(\" \"+_vm._s(_vm.initialValue.economical_number || '-')+\" \")]),_c('a-descriptions-item',{attrs:{\"label\":\"شماره ثبت\"}},[_vm._v(\" \"+_vm._s(_vm.initialValue.registration_number || '-')+\" \")])],1),_c('a-descriptions',{attrs:{\"title\":\"اطلاعات تکمیلی\",\"column\":{ xxl: 3, md: 2, xs: 1 }}},[_c('a-descriptions-item',{attrs:{\"label\":\"آیدی اینستاگرام\"}},[_vm._v(\" \"+_vm._s(_vm.initialValue.instagram || '-')+\" \")]),_c('a-descriptions-item',{attrs:{\"label\":\"آیدی تلگرام\"}},[_vm._v(\" \"+_vm._s(_vm.initialValue.telegram || '-')+\" \")]),_c('a-descriptions-item',{attrs:{\"label\":\"آیدی واتس اپ\"}},[_vm._v(\" \"+_vm._s(_vm.initialValue.whatsapp || '-')+\" \")]),_c('a-descriptions-item',{attrs:{\"label\":\"آدرس سایت\"}},[_vm._v(\" \"+_vm._s(_vm.initialValue.web_url || '-')+\" \")]),_c('a-descriptions-item',{attrs:{\"label\":\"نوع ارز اول\"}},[_vm._v(\" \"+_vm._s(_vm.showCurrency(_vm.initialValue.first_currency) || '-')+\" \")]),_c('a-descriptions-item',{attrs:{\"label\":\"نوع ارز دوم\"}},[_vm._v(\" \"+_vm._s(_vm.showCurrency(_vm.initialValue.second_currency) || '-')+\" \")]),_c('a-descriptions-item',{attrs:{\"label\":\"جنس فلز\"}},[_vm._v(\" \"+_vm._s(_vm.showMetal(_vm.initialValue.metal) || '-')+\" \")])],1),_c('a-descriptions',{attrs:{\"title\":\"مدارک\",\"column\":{ xxl: 3, md: 2, xs: 1 }}},[_c('a-descriptions-item',{attrs:{\"label\":\"تصویر کارت ملی\"}},[_c('img',{attrs:{\"src\":_vm.initialValue.national_card_img || require('@/assets/images/no-image.png')}})]),_c('a-descriptions-item',{attrs:{\"label\":\"تصویر جواز\"}},[_c('img',{attrs:{\"src\":_vm.initialValue.license_img || require('@/assets/images/no-image.png')}})]),_c('a-descriptions-item',{attrs:{\"label\":\"تصویر سند یا اجاره نامه\"}},[_c('img',{attrs:{\"src\":_vm.initialValue.doc_img || require('@/assets/images/no-image.png')}})])],1)],1):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div>\r\n <x-table :model=\"model\" ref=\"customerTbl\">\r\n <div class=\"grid grid-cols-1 md:grid-cols-3 gap-4\" slot=\"operator\" slot-scope=\"{record}\">\r\n <a-tooltip>\r\n <template slot=\"title\">\r\n نمایش جزئیات\r\n </template>\r\n <span @click=\"getNegotiableByType('metal');\r\n getNegotiableByType('currency');\r\n toView(record.user)\">\r\n <Icon icon=\"ion:list\" class=\"size-25 cursor-pointer\"/>\r\n </span>\r\n </a-tooltip>\r\n <a-tooltip>\r\n <template slot=\"title\">\r\n ویرایش\r\n </template>\r\n <a-popconfirm\r\n title=\"آیتم ویرایش شود؟\"\r\n ok-text=\"بله\"\r\n cancel-text=\"خیر\"\r\n @confirm=\"toEdit(record.user)\"\r\n >\r\n <Icon icon=\"ion:create-outline\" :class=\"`size-24 cursor-pointer text-success`\"/>\r\n </a-popconfirm>\r\n </a-tooltip>\r\n <a-tooltip>\r\n <template slot=\"title\">\r\n حذف\r\n </template>\r\n <a-popconfirm\r\n title=\"آیتم حذف شود؟\"\r\n ok-text=\"بله\"\r\n cancel-text=\"خیر\"\r\n @confirm=\"deleteItem(record.user)\"\r\n >\r\n <Icon icon=\"ion:trash-outline\" :class=\"`size-24 cursor-pointer text-danger`\"/>\r\n </a-popconfirm>\r\n </a-tooltip>\r\n </div>\r\n </x-table>\r\n <a-modal v-model=\"view\" :footer=\"null\" v-if=\"initialValue\">\r\n <a-descriptions title=\"اطلاعات تماس\" :column=\"{ xxl: 3, md: 2, xs: 1 }\">\r\n <a-descriptions-item label=\"نام\">\r\n {{ initialValue.first_name || '-' }}\r\n </a-descriptions-item>\r\n <a-descriptions-item label=\"نام خانوادگی\">\r\n {{ initialValue.last_name || '-' }}\r\n </a-descriptions-item>\r\n <a-descriptions-item label=\"ایمیل\">\r\n {{ initialValue.email || '-' }}\r\n </a-descriptions-item>\r\n <a-descriptions-item label=\"شماره تلفن\">\r\n {{ initialValue.mobile || '-' }}\r\n </a-descriptions-item>\r\n </a-descriptions>\r\n <a-descriptions title=\"اطلاعات فروشگاه\" :column=\"{ xxl: 3, md: 2, xs: 1 }\">\r\n <a-descriptions-item label=\"نام فروشگاه\">\r\n {{ initialValue.shop_name || '-' }}\r\n </a-descriptions-item>\r\n <a-descriptions-item label=\"منطقه\">\r\n {{ initialValue.aria || '-' }}\r\n </a-descriptions-item>\r\n </a-descriptions>\r\n <a-descriptions title=\"اطلاعات حساب کاربری\" :column=\"{ xxl: 3, md: 2, xs: 1 }\">\r\n <a-descriptions-item label=\"سقف بدهی\">\r\n {{ initialValue.max_debt || '-' }}\r\n </a-descriptions-item>\r\n <a-descriptions-item label=\"سقف مدت\">\r\n {{ initialValue.max_period || '-' }}\r\n </a-descriptions-item>\r\n <a-descriptions-item label=\"شماره اقتصادی\">\r\n {{ initialValue.economical_number || '-' }}\r\n </a-descriptions-item>\r\n <a-descriptions-item label=\"شماره ثبت\">\r\n {{ initialValue.registration_number || '-' }}\r\n </a-descriptions-item>\r\n </a-descriptions>\r\n <a-descriptions title=\"اطلاعات تکمیلی\" :column=\"{ xxl: 3, md: 2, xs: 1 }\">\r\n <a-descriptions-item label=\"آیدی اینستاگرام\">\r\n {{ initialValue.instagram || '-' }}\r\n </a-descriptions-item>\r\n <a-descriptions-item label=\"آیدی تلگرام\">\r\n {{ initialValue.telegram || '-' }}\r\n </a-descriptions-item>\r\n <a-descriptions-item label=\"آیدی واتس اپ\">\r\n {{ initialValue.whatsapp || '-' }}\r\n </a-descriptions-item>\r\n <a-descriptions-item label=\"آدرس سایت\">\r\n {{ initialValue.web_url || '-' }}\r\n </a-descriptions-item>\r\n <a-descriptions-item label=\"نوع ارز اول\">\r\n {{ showCurrency(initialValue.first_currency) || '-' }}\r\n </a-descriptions-item>\r\n <a-descriptions-item label=\"نوع ارز دوم\">\r\n {{ showCurrency(initialValue.second_currency) || '-' }}\r\n </a-descriptions-item>\r\n <a-descriptions-item label=\"جنس فلز\">\r\n {{ showMetal(initialValue.metal) || '-' }}\r\n </a-descriptions-item>\r\n </a-descriptions>\r\n <a-descriptions title=\"مدارک\" :column=\"{ xxl: 3, md: 2, xs: 1 }\">\r\n <a-descriptions-item label=\"تصویر کارت ملی\">\r\n <img :src=\"initialValue.national_card_img || require('@/assets/images/no-image.png')\">\r\n </a-descriptions-item>\r\n <a-descriptions-item label=\"تصویر جواز\">\r\n <img :src=\"initialValue.license_img || require('@/assets/images/no-image.png')\">\r\n </a-descriptions-item>\r\n <a-descriptions-item label=\"تصویر سند یا اجاره نامه\">\r\n <img :src=\"initialValue.doc_img || require('@/assets/images/no-image.png')\">\r\n </a-descriptions-item>\r\n </a-descriptions>\r\n </a-modal>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport XTable from '@/components/x-table/XTable.vue'\r\nimport negoTbl from \"@/mixins/negoTbl\";\r\nimport restFull from \"@/mixins/restFull\";\r\n\r\nexport default {\r\n mixins: [negoTbl,restFull],\r\n name: 'customerList',\r\n components: {XTable},\r\n}\r\n</script>\r\n","import mod from \"-!../../../../node_modules/.pnpm/thread-loader@3.0.4_webpack@5.70.0/node_modules/thread-loader/dist/cjs.js!../../../../node_modules/.pnpm/babel-loader@8.2.3_ed870ac3ba52c4ec230ba2bc3dbb311c/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../node_modules/.pnpm/@vue+cli-service@5.0.1_c60d37d6f98edb8bb59b38caea4c9fe8/node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./customerList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/.pnpm/thread-loader@3.0.4_webpack@5.70.0/node_modules/thread-loader/dist/cjs.js!../../../../node_modules/.pnpm/babel-loader@8.2.3_ed870ac3ba52c4ec230ba2bc3dbb311c/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../node_modules/.pnpm/@vue+cli-service@5.0.1_c60d37d6f98edb8bb59b38caea4c9fe8/node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./customerList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./customerList.vue?vue&type=template&id=baebf754&\"\nimport script from \"./customerList.vue?vue&type=script&lang=js&\"\nexport * from \"./customerList.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/.pnpm/vue-loader@15.9.8_1f9b6d6a8c5e3033a639476f0cf6d876/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","export default {\r\n data() {\r\n return {\r\n negoTypes: {\r\n currency: 1,\r\n metal: 2,\r\n stone: 3,\r\n negotiable: 4,\r\n },\r\n negotiable: [],\r\n stone: [],\r\n metal: [],\r\n currency: [],\r\n }\r\n },\r\n methods: {\r\n async getNegotiableByType(type) {\r\n try {\r\n this.$store.commit('setLoading', true)\r\n const { data: {rows} } = await this.$axios.post('/negotiable/table',{\r\n filters: [{field: 'type', op: 'like', value: this.negoTypes[type]}],\r\n limit: 2000\r\n })\r\n this[type] = rows[0]\r\n } catch (error) {\r\n console.log(error)\r\n } finally {\r\n this.$store.commit('setLoading', false)\r\n }\r\n },\r\n showCurrency(id){\r\n const item = this.currency.find(x => x.id == id)\r\n return item && item.name ? item.name : 'نا معتبر'\r\n },\r\n showMetal(id){\r\n const item = this.metal.find(x => x.id == id)\r\n return item && item.name ? item.name : 'نا معتبر'\r\n },\r\n showStone(id){\r\n const item = this.stone.find(x => x.id == id)\r\n return item && item.name ? item.name : 'نا معتبر'\r\n },\r\n showNegotiable(id){\r\n const item = this.negotiable.find(x => x.id == id)\r\n return item && item.name ? item.name : 'نا معتبر'\r\n },\r\n },\r\n}\r\n","export default {\r\n data() {\r\n return {\r\n initialValue: undefined,\r\n model: undefined,\r\n view: false,\r\n }\r\n },\r\n computed: {\r\n id() {\r\n return this.$route.params.id\r\n },\r\n restfull() {\r\n return this.$route.meta.restfull\r\n },\r\n restfullPath() {\r\n return this.$route.meta.restfullPath || this.$route.meta.restfull\r\n },\r\n customRoute() {\r\n return this.$route.meta.isCustomRoute\r\n },\r\n },\r\n async created() {\r\n const model = await import(`@/tableModel/${this.restfull}Tbl`)\r\n this.model = model.default\r\n if (this.id && !this.customRoute) await this.getData()\r\n if (this.initialValue && this.initialValue.city && this.initialValue.province) await this.getCities(this.initialValue.province)\r\n },\r\n methods: {\r\n async getData(id = undefined) {\r\n try {\r\n this.$store.commit('setLoading', true)\r\n const {data} = await this.$axios.get(`/${this.restfullPath}/${id || this.id}/`)\r\n if (data && data.city && data.city.id && data.city.parent && data.city.parent.id) {\r\n this.initialValue = Object.assign(data, {\r\n province: data.city.parent.id,\r\n city: data.city.id\r\n })\r\n }\r\n else this.initialValue = data\r\n } catch (error) {\r\n console.log(error)\r\n } finally {\r\n this.$store.commit('setLoading', false)\r\n }\r\n },\r\n async update(values) {\r\n try {\r\n this.$store.commit('setLoading', true)\r\n await this.$axios.patch(`/${this.restfullPath}/${this.id}/`, values)\r\n this.$ntSuccess('اطلاعات با موفقیت آپدیت شد')\r\n await this.$router.push({name: `${this.restfull}_list`})\r\n } catch (error) {\r\n console.log(error)\r\n } finally {\r\n this.$store.commit('setLoading', false)\r\n }\r\n },\r\n async create(values) {\r\n try {\r\n this.$store.commit('setLoading', true)\r\n await this.$axios.post(`/${this.restfullPath}/`, values)\r\n this.$ntSuccess('اطلاعات با موفقیت ثبت شد')\r\n await this.$router.push({name: `${this.restfull}_list`})\r\n } catch (error) {\r\n console.log(error)\r\n } finally {\r\n this.$store.commit('setLoading', false)\r\n }\r\n },\r\n\r\n\r\n\r\n // list methods\r\n toEdit(id) {\r\n window.open(`/${this.restfull}/edit/${id}`, '_blank').focus()\r\n },\r\n setInitialValue(row) {\r\n this.initialValue = row\r\n this.view = true\r\n },\r\n async toView(id) {\r\n await this.getData(id)\r\n this.view = true\r\n },\r\n async deleteItem(id) {\r\n try {\r\n this.$store.commit('setLoading', true)\r\n await this.$axios.delete(`/${this.restfullPath}/${id}/`)\r\n this.$ntSuccess('آیتم با موفقیت حذف شد')\r\n await this.$refs[`${this.restfull}Tbl`].fetch()\r\n } catch (error) {\r\n console.log(error)\r\n } finally {\r\n this.$store.commit('setLoading', false)\r\n }\r\n },\r\n },\r\n}\r\n","var map = {\n\t\"./brandTbl\": [\n\t\t79989,\n\t\t4660\n\t],\n\t\"./categoryTbl\": [\n\t\t22881,\n\t\t2881\n\t],\n\t\"./constantTbl\": [\n\t\t77041,\n\t\t7041\n\t],\n\t\"./customerTbl\": [\n\t\t61003,\n\t\t1003\n\t],\n\t\"./documentTbl\": [\n\t\t1370,\n\t\t1370\n\t],\n\t\"./factorTbl\": [\n\t\t13159,\n\t\t3159\n\t],\n\t\"./negotiable-typeTbl\": [\n\t\t47429,\n\t\t7429\n\t],\n\t\"./negotiableTbl\": [\n\t\t2941,\n\t\t2941\n\t],\n\t\"./orderTbl\": [\n\t\t56730,\n\t\t6730\n\t],\n\t\"./porsantTbl\": [\n\t\t45693,\n\t\t5693\n\t],\n\t\"./porterTbl\": [\n\t\t63685,\n\t\t3685\n\t],\n\t\"./productTbl\": [\n\t\t44740,\n\t\t4740\n\t],\n\t\"./sasheTbl\": [\n\t\t45868,\n\t\t5868\n\t],\n\t\"./userTbl\": [\n\t\t66896,\n\t\t6896\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\treturn Promise.resolve().then(function() {\n\t\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t});\n\t}\n\n\tvar ids = map[req], id = ids[0];\n\treturn __webpack_require__.e(ids[1]).then(function() {\n\t\treturn __webpack_require__(id);\n\t});\n}\nwebpackAsyncContext.keys = function() { return Object.keys(map); };\nwebpackAsyncContext.id = 18847;\nmodule.exports = webpackAsyncContext;"],"names":["render","_vm","this","_h","$createElement","_c","_self","ref","attrs","model","scopedSlots","_u","key","fn","record","staticClass","slot","_v","on","$event","getNegotiableByType","toView","user","toEdit","class","deleteItem","value","callback","$$v","view","expression","xxl","md","xs","_s","initialValue","first_name","last_name","email","mobile","shop_name","aria","max_debt","max_period","economical_number","registration_number","instagram","telegram","whatsapp","web_url","showCurrency","first_currency","second_currency","showMetal","metal","national_card_img","license_img","doc_img","_e","staticRenderFns","mixins","name","components","XTable","component","data","negoTypes","currency","stone","negotiable","methods","async","type","$store","commit","rows","$axios","post","filters","field","op","limit","error","console","log","id","item","find","x","showStone","showNegotiable","undefined","computed","$route","params","restfull","meta","restfullPath","customRoute","isCustomRoute","default","getData","city","province","getCities","get","parent","Object","assign","values","patch","$ntSuccess","$router","push","window","open","focus","setInitialValue","row","delete","$refs","fetch","map","webpackAsyncContext","req","__webpack_require__","o","Promise","resolve","then","e","Error","code","ids","keys","module","exports"],"sourceRoot":""}
Copyright ©2k19 -
Hexid
|
Tex7ure