/
home
/
henzagold
/
adminold
/
export
/
js
/
File Upload :
llllll
Current File: /home/henzagold/adminold/export/js/chunk-73231a13.cd98321d.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?3b78"],"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","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","methods","window","customer_id","e","err","axios","method","url","headers","console","computed","component"],"mappings":"uHAAA,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,MAAQ,SAASC,GAAQ,OAAOlB,EAA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,wBAAA,wJACAkB,mBACA,IACA,gBACA,sLACAC,GAAA,+BACAC,gBACAC,cACAC,qBACAC,WACAT,SACA,OAEA,OADA,WACA,8BACA,qEAEA,qDAZA,IAcA,SAEAU,eACA,wCACA,QAEA,gBACA,sGAzBAxB,IA4BAyB,UACAzD,qBACA,2BChIsX,I,wBCQlX0D,EAAY,eACd,EACAlE,EACA0C,GACA,EACA,KACA,KACA,MAIa,aAAAwB,E,2CCnBf,W","file":"js/chunk-73231a13.cd98321d.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()]}}])})],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.name', 'نام شعبه').filterText().noSort())\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 </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 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 },\r\n computed:{\r\n is_branch(){\r\n return isBranch()\r\n },\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=3f3374a2&\"\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=3f3374a2&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=3f3374a2&prod&lang=less&\""],"sourceRoot":""}
Copyright ©2k19 -
Hexid
|
Tex7ure