/
home
/
henzagold
/
adminold
/
export
/
js
/
File Upload :
llllll
Current File: //home/henzagold/adminold/export/js/chunk-5f50646a.132cb589.js.map
{"version":3,"sources":["webpack:///./src/views/customer/single-customer/SingleCustomer.vue","webpack:///./src/views/customer/single-customer/SingleCustomerList.js","webpack:///src/views/customer/single-customer/SingleCustomer.vue","webpack:///./src/views/customer/single-customer/SingleCustomer.vue?719a","webpack:///./src/views/customer/single-customer/SingleCustomer.vue?a26a","webpack:///./src/views/customer/single-customer/SingleCustomer.vue?4e9d"],"names":["render","_vm","this","_c","_self","ref","staticClass","attrs","is_branch","model","scopedSlots","_u","key","fn","text","record","slot","_v","on","$event","toEdit","id","$hasPermission","staticStyle","toCharge","_e","toView","_s","setBranch","branch_id","value","showChargeForm","callback","$$v","expression","loading","form","directives","name","rawName","rules","required","message","chargeWallet","resetFields","staticRenderFns","tbl","XTbl","add","Xtc","filterNumber","filterText","noSort","renderSlot","components","XTable","FeatherIcon","data","listBranches","methods","window","customer_id","e","err","axios","method","url","headers","console","getBranch","computed","mounted","component"],"mappings":"gJAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,UAAU,CAACE,IAAI,aAAaC,YAAY,UAAUC,MAAM,CAAC,kBAAmB,EAAM,MAAQN,EAAIO,UAAY,eAAgB,0BAA0B,CAACL,EAAG,MAAM,CAACA,EAAG,SAAS,CAACE,IAAI,MAAME,MAAM,CAAC,MAAQN,EAAIQ,OAAOC,YAAYT,EAAIU,GAAG,CAAC,CAACC,IAAI,KAAKC,GAAG,YAAc,EAAJC,KAAc,IAARC,EAAM,EAANA,OAAS,MAAO,CAACZ,EAAG,WAAW,CAACA,EAAG,OAAO,CAACI,MAAM,CAAC,KAAO,SAASS,KAAK,SAAS,CAACf,EAAIgB,GAAG,YAAYd,EAAG,cAAc,CAACG,YAAY,sBAAsBC,MAAM,CAAC,KAAO,WAAW,WAAa,wBAAwBW,GAAG,CAAC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,GACfQ,YACAC,cACAC,oBAEAC,gBACA,OACAhD,QACAsB,kBACAI,WACAuB,gBACAtB,iCAAAE,uBAGAqB,SACAvC,mBACA,wCACAwC,8EAEAlC,mBACA,wCACAkC,8EAEApC,oBAAA,6IACA,0BAAAqC,gBACA,6HAFArC,GAIAmB,wBAAA,wJACAmB,mBACA,IACA,gBACA,sLACAC,GAAA,+BACAC,gBACAC,cACAC,qBACAC,WACAV,SACA,OAEA,OADA,WACA,8BACA,qEAEA,qDAZA,IAcA,SAEAW,eACA,wCACA,QAEA,gBACA,sGAzBAzB,GA2BA0B,qBAAA,6KAEAL,0BAAA,gBAAAP,SACA,6EAEA,8HALAY,GAQAzC,sBACA,aACA,6DACA,+BAIA0C,UACA9D,qBACA,0BAGA+D,mBACA,mBCtJsX,I,wBCQlXC,EAAY,eACd,EACAxE,EACA6C,GACA,EACA,KACA,KACA,MAIa,aAAA2B,E,2CCnBf","file":"js/chunk-5f50646a.132cb589.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('vx-card',{ref:\"filterCard\",staticClass:\"vx-card\",attrs:{\"removeCardAction\":false,\"title\":_vm.is_branch ? 'لیست مشتریان' :'لیست مشتریان تک فروشی'}},[_c('div',[_c('XTable',{ref:\"tbl\",attrs:{\"model\":_vm.model},scopedSlots:_vm._u([{key:\"op\",fn:function({text, record}){return [_c('ATooltip',[_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"ویرایش\")]),_c('FeatherIcon',{staticClass:\"cursor-pointer mx-1\",attrs:{\"icon\":\"EditIcon\",\"svgClasses\":\"h-6 w-6 text-primary\"},on:{\"click\":function($event){return _vm.toEdit(record.id)}}})],1),(_vm.$hasPermission('wallet.charge') && !_vm.is_branch)?_c('ATooltip',[_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"شارژ کیف پول\")]),_c('FeatherIcon',{staticClass:\"cursor-pointer mx-1\",staticStyle:{\"color\":\"#d48806\"},attrs:{\"icon\":\"CreditCardIcon\",\"svgClasses\":\"h-6 w-6\"},on:{\"click\":function($event){return _vm.toCharge(record.id)}}})],1):_vm._e(),(_vm.$hasPermission('wallet.charge'))?_c('ATooltip',[_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"مشاهده اطلاعات\")]),_c('FeatherIcon',{staticClass:\"cursor-pointer mx-1\",attrs:{\"icon\":\"EyeIcon\",\"svgClasses\":\"h-6 w-6 text-success\"},on:{\"click\":function($event){return _vm.toView(record.id)}}})],1):_vm._e()]}},{key:\"branch\",fn:function(text,record){return [_vm._v(\"\\n \"+_vm._s(_vm.setBranch(text.record.branch_id))+\"\\n \")]}}])})],1),(_vm.$hasPermission('wallet.charge'))?_c('AModal',{attrs:{\"forceRender\":true,\"footer\":null,\"title\":\"شارژ کیف پول\"},model:{value:(_vm.showChargeForm),callback:function ($$v) {_vm.showChargeForm=$$v},expression:\"showChargeForm\"}},[_c('a-spin',{attrs:{\"spinning\":_vm.loading}},[_c('a-form',{attrs:{\"form\":_vm.form}},[_c('div',{staticClass:\"grid grid-cols-1 md:grid-cols-2 gap-4 items-end\"},[_c('a-form-item',{staticClass:\"hidden\",attrs:{\"label\":\"شماره مشتری\"}},[_c('a-input-number',{directives:[{name:\"decorator\",rawName:\"v-decorator\",value:(['customer_id',{rules: [{ required: true,message: 'لطفا مقدار را وارد کنید'}]}]),expression:\"['customer_id',{rules: [{ required: true,message: 'لطفا مقدار را وارد کنید'}]}]\"}],staticClass:\"w-full hide-counter\"})],1),_c('a-form-item',{attrs:{\"label\":\"میزان شارژ\"}},[_c('a-input-number',{directives:[{name:\"decorator\",rawName:\"v-decorator\",value:(['value',{rules: [{ required: true,message: 'لطفا مقدار را وارد کنید'}]}]),expression:\"['value',{rules: [{ required: true,message: 'لطفا مقدار را وارد کنید'}]}]\"}],staticClass:\"w-full hide-counter\"})],1),_c('a-popconfirm',{staticStyle:{\"margin-bottom\":\"24px\"},attrs:{\"title\":\"آیا از شارژ کیف پول مطمعن هستید؟\",\"ok-text\":\"بله\",\"cancel-text\":\"خیر\"},on:{\"confirm\":_vm.chargeWallet,\"cancel\":function($event){_vm.form.resetFields() ,_vm.showChargeForm = false}}},[_c('a-button',{attrs:{\"type\":\"primary\"}},[_vm._v(\"\\n ثبت\\n \")])],1)],1)])],1)],1):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import XTbl, {Xtc} from '@/components/x-table/index';\r\n\r\nconst tbl = new XTbl('https://henzagold.com/oapi/admin/single-customer', 'لیست مشتریان تک');\r\ntbl.add(new Xtc('id', 'کد').filterNumber());\r\ntbl.add(new Xtc('fname', 'نام').filterText())\r\ntbl.add(new Xtc('lname', 'نام خانوادگی').filterText().noSort())\r\ntbl.add(new Xtc('phone', 'تلفن تماس').filterText().noSort())\r\ntbl.add(new Xtc('email', 'ایمیل').filterText().noSort())\r\ntbl.add(new Xtc('branch_id', 'نام شعبه').filterText().noSort().renderSlot('branch'))\r\ntbl.add(new Xtc('op', 'عملیات').noSort().renderSlot('op'))\r\nexport default tbl;\r\n","<template>\r\n <vx-card\r\n ref=\"filterCard\"\r\n :removeCardAction=\"false\"\r\n :title=\"is_branch ? 'لیست مشتریان' :'لیست مشتریان تک فروشی'\"\r\n class=\"vx-card\">\r\n <div>\r\n <XTable :model=\"model\" ref=\"tbl\">\r\n <template slot=\"op\" slot-scope=\"{text, record}\">\r\n <ATooltip>\r\n <span slot=\"title\">ویرایش</span>\r\n <FeatherIcon\r\n icon=\"EditIcon\"\r\n @click=\"toEdit(record.id)\"\r\n svgClasses=\"h-6 w-6 text-primary\"\r\n class=\"cursor-pointer mx-1\"/>\r\n </ATooltip>\r\n <ATooltip v-if=\"$hasPermission('wallet.charge') && !is_branch\">\r\n <span slot=\"title\">شارژ کیف پول</span>\r\n <FeatherIcon\r\n icon=\"CreditCardIcon\"\r\n @click=\"toCharge(record.id)\"\r\n svgClasses=\"h-6 w-6\" style=\"color :#d48806\"\r\n class=\"cursor-pointer mx-1\"/>\r\n </ATooltip>\r\n <ATooltip v-if=\"$hasPermission('wallet.charge')\">\r\n <span slot=\"title\">مشاهده اطلاعات</span>\r\n <FeatherIcon\r\n icon=\"EyeIcon\"\r\n @click=\"toView(record.id)\"\r\n svgClasses=\"h-6 w-6 text-success\"\r\n class=\"cursor-pointer mx-1\"/>\r\n </ATooltip>\r\n </template>\r\n <template slot=\"branch\" slot-scope=\"text,record\">\r\n {{ setBranch(text.record.branch_id) }}\r\n </template>\r\n </XTable>\r\n </div>\r\n <AModal v-if=\"$hasPermission('wallet.charge')\" :forceRender=\"true\" :footer=\"null\" v-model=\"showChargeForm\" title=\"شارژ کیف پول\">\r\n <a-spin :spinning=\"loading\">\r\n <a-form :form=\"form\">\r\n <div class=\"grid grid-cols-1 md:grid-cols-2 gap-4 items-end\">\r\n <a-form-item label=\"شماره مشتری\" class=\"hidden\">\r\n <a-input-number class=\"w-full hide-counter\" v-decorator=\"['customer_id',{rules: [{ required: true,message: 'لطفا مقدار را وارد کنید'}]}]\"/>\r\n </a-form-item>\r\n <a-form-item label=\"میزان شارژ\">\r\n <a-input-number class=\"w-full hide-counter\" v-decorator=\"['value',{rules: [{ required: true,message: 'لطفا مقدار را وارد کنید'}]}]\"/>\r\n </a-form-item>\r\n <a-popconfirm style=\"margin-bottom: 24px\"\r\n title=\"آیا از شارژ کیف پول مطمعن هستید؟\"\r\n ok-text=\"بله\"\r\n cancel-text=\"خیر\"\r\n @confirm=\"chargeWallet\"\r\n @cancel=\"form.resetFields() ,showChargeForm = false\"\r\n >\r\n <a-button type=\"primary\">\r\n ثبت\r\n </a-button>\r\n </a-popconfirm>\r\n </div>\r\n </a-form>\r\n </a-spin>\r\n </AModal>\r\n </vx-card>\r\n</template>\r\n\r\n<script>\r\n\r\nimport XTable from \"@/components/x-table/XTable\";\r\nimport model from './SingleCustomerList';\r\nimport FeatherIcon from \"@/components/FeatherIcon.vue\";\r\nimport axios from \"@/axios\"\r\nimport {isBranch} from '@/utils/'\r\n\r\nexport default {\r\n components: {\r\n XTable,\r\n FeatherIcon,\r\n },\r\n data() {\r\n return {\r\n model: model,\r\n showChargeForm: false,\r\n loading: false,\r\n listBranches: [],\r\n form: this.$form.createForm(this, { name: 'coordinated' }),\r\n };\r\n },\r\n methods: {\r\n toEdit(id) {\r\n const prefix=this.is_branch ? '/branch' : '/admin'\r\n window.open(`${prefix}/singleCustomer/edit/${id}`, '_blank').focus();\r\n },\r\n toView(id) {\r\n const prefix=this.is_branch ? '/branch' : '/admin'\r\n window.open(`${prefix}/singleCustomer/view/${id}`, '_blank').focus();\r\n },\r\n async toCharge(id) {\r\n this.form.setFieldsValue({customer_id: id})\r\n this.showChargeForm = true\r\n },\r\n async chargeWallet(e) {\r\n e.preventDefault();\r\n try{\r\n this.loading = true\r\n this.form.validateFields(async (err, values) => {\r\n if (!err) {\r\n await axios({\r\n method: 'post',\r\n url: '/wallet/charge',\r\n headers: {},\r\n data: values\r\n })\r\n this.$ntSet()\r\n this.form.resetFields()\r\n await this.$router.push('/wallet')\r\n }\r\n });\r\n }\r\n catch (e)\r\n {\r\n console.log(e);\r\n this.$ntSetError('خطا در ثبت اطلاعات.')\r\n }\r\n finally {\r\n this.loading = false\r\n }\r\n },\r\n async getBranch() {\r\n try {\r\n const { data } = await axios.get('branch/list')\r\n this.listBranches = data\r\n }catch (e) {\r\n throw new Error(e)\r\n }\r\n },\r\n setBranch(id) {\r\n if (id !== null) {\r\n const findRecord = this.listBranches.find(item => item.id === id)\r\n if (findRecord !== undefined) return findRecord.name\r\n }\r\n }\r\n },\r\n computed:{\r\n is_branch(){\r\n return isBranch()\r\n },\r\n },\r\n mounted() {\r\n this.getBranch()\r\n }\r\n};\r\n</script>\r\n\r\n<style lang=\"less\">\r\n.hide-counter{\r\n .ant-input-number-handler-wrap{\r\n visibility: hidden;\r\n display: none;\r\n }\r\n}\r\n</style>\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SingleCustomer.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SingleCustomer.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./SingleCustomer.vue?vue&type=template&id=07167116&\"\nimport script from \"./SingleCustomer.vue?vue&type=script&lang=js&\"\nexport * from \"./SingleCustomer.vue?vue&type=script&lang=js&\"\nimport style0 from \"./SingleCustomer.vue?vue&type=style&index=0&id=07167116&prod&lang=less&\"\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","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../../../node_modules/css-loader/index.js??ref--10-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../../node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!../../../../node_modules/less-loader/dist/cjs.js??ref--14!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SingleCustomer.vue?vue&type=style&index=0&id=07167116&prod&lang=less&\""],"sourceRoot":""}
Copyright ©2k19 -
Hexid
|
Tex7ure