/
home
/
henzagold
/
adminold
/
export
/
js
/
File Upload :
llllll
Current File: /home/henzagold/adminold/export/js/chunk-cecb6684.8820f7b5.js.map
{"version":3,"sources":["webpack:///./src/views/customer/single-customer/SingleCustomer.vue?bfbb","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"],"names":["render","_vm","this","_c","_self","ref","staticClass","attrs","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","component"],"mappings":"kHAAA,W,yCCAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,UAAU,CAACE,IAAI,aAAaC,YAAY,UAAUC,MAAM,CAAC,kBAAmB,EAAM,MAAQ,0BAA0B,CAACJ,EAAG,MAAM,CAACA,EAAG,SAAS,CAACE,IAAI,MAAME,MAAM,CAAC,MAAQN,EAAIO,OAAOC,YAAYR,EAAIS,GAAG,CAAC,CAACC,IAAI,KAAKC,GAAG,YAAwB,EAAdC,KAAc,IAARC,EAAQ,EAARA,OAAS,MAAO,CAACX,EAAG,WAAW,CAACA,EAAG,OAAO,CAACI,MAAM,CAAC,KAAO,SAASQ,KAAK,SAAS,CAACd,EAAIe,GAAG,YAAYb,EAAG,cAAc,CAACG,YAAY,sBAAsBC,MAAM,CAAC,KAAO,WAAW,WAAa,wBAAwBU,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOjB,EAAIkB,OAAOL,EAA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AEAC,gBACAC,cACAC,qBACAC,WACAT,SANA,cAQA,WACA,qBATA,SAUA,0BAVA,oGAcA,SAEAU,eACA,wCAnBC,QAsBD,gBAnCA,2GCpFsX,I,wBCQlXC,EAAY,eACd,EACAhE,EACAyC,GACA,EACA,KACA,KACA,MAIa,aAAAuB,E","file":"js/chunk-cecb6684.8820f7b5.js","sourcesContent":["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=42c3a4b4&prod&lang=less&\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('vx-card',{ref:\"filterCard\",staticClass:\"vx-card\",attrs:{\"removeCardAction\":false,\"title\":\"لیست مشتریان تک فروشی\"}},[_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'))?_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('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=\"لیست مشتریان تک فروشی\"\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')\">\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\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 window.open(`/admin/singleCustomer/edit/${id}`, '_blank').focus();\r\n },\r\n toView(id) {\r\n window.open(`/admin/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};\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=42c3a4b4&\"\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=42c3a4b4&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"],"sourceRoot":""}
Copyright ©2k19 -
Hexid
|
Tex7ure