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,G","sources":["webpack://liman/./src/views/user/customer/add-edit-customer.vue?8a3b","webpack://liman/src/views/user/customer/add-edit-customer.vue","webpack://liman/./src/views/user/customer/add-edit-customer.vue?b14e","webpack://liman/./src/views/user/customer/add-edit-customer.vue","webpack://liman/./src/mixins/city.js","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('h4',[_vm._v(\" اطلاعات پایه \")]),_c('a-steps',{attrs:{\"type\":\"navigation\",\"size\":\"small\"},model:{value:(_vm.step),callback:function ($$v) {_vm.step=$$v},expression:\"step\"}},_vm._l((_vm.formsName),function(item){return _c('a-step',{key:item,attrs:{\"title\":item}})}),1),_vm._l((_vm.form),function(item,index){return _c('sedmed-form',{directives:[{name:\"show\",rawName:\"v-show\",value:(index === _vm.step),expression:\"index === step\"}],key:index,ref:\"forms\",refInFor:true,attrs:{\"name\":_vm.formsName[index],\"hasBtn\":false,\"items\":_vm.form[index],\"initial-value\":_vm.initialValue,\"select-options\":_vm.formOptions},on:{\"change_province\":_vm.getCities}},[_c('div',{staticClass:\"flex\",attrs:{\"slot\":\"after\"},slot:\"after\"},[(index !== 0)?_c('a-button',{staticClass:\"mr-2\",on:{\"click\":function($event){_vm.step--}}},[_vm._v(\"مرحله قبل\")]):_vm._e(),(index !== 4)?_c('a-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){return _vm.validate(index, $event)}}},[_vm._v(\"مرحله بعد\")]):_vm._e(),(index === 4)?_c('a-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){return _vm.validate(-1, $event)}}},[_vm._v(\"ثبت\")]):_vm._e()],1)])})],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div>\r\n <h4>\r\n اطلاعات پایه\r\n </h4>\r\n\r\n <a-steps v-model=\"step\" type=\"navigation\" size=\"small\">\r\n <a-step v-for=\"item in formsName\" :key=\"item\" :title=\"item\"/>\r\n </a-steps>\r\n\r\n <sedmed-form v-for=\"(item,index) in form\" :key=\"index\" v-show=\"index === step\" :name=\"formsName[index]\"\r\n :hasBtn=\"false\" :items=\"form[index]\" :initial-value=\"initialValue\"\r\n ref=\"forms\" @change_province=\"getCities\"\r\n :select-options=\"formOptions\">\r\n <div class=\"flex\" slot=\"after\">\r\n <a-button class=\"mr-2\" @click=\"step--\" v-if=\"index !== 0\">مرحله قبل</a-button>\r\n <a-button type=\"primary\" @click=\"validate(index, $event)\" v-if=\"index !== 4\">مرحله بعد</a-button>\r\n <a-button type=\"primary\" @click=\"validate(-1, $event)\" v-if=\"index === 4\">ثبت</a-button>\r\n </div>\r\n </sedmed-form>\r\n\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport city from '@/mixins/city'\r\nimport defaultFeilds from '@/mixins/defaultFeilds'\r\nimport SedmedForm from '@/components/sedmed-form/sedmed-form.vue'\r\nimport negoTbl from \"@/mixins/negoTbl\"\r\nimport restFull from \"@/mixins/restFull\"\r\n\r\nexport default {\r\n name: 'addEditCustomer',\r\n components: {\r\n SedmedForm,\r\n },\r\n mixins: [city, negoTbl, restFull],\r\n data() {\r\n return {\r\n step: 0,\r\n initialValue: undefined,\r\n\r\n contactFromItems: Object.assign(Object.assign({}, defaultFeilds), {\r\n phone: {label: 'تلفن ثابت', decorator: [{defaultKey: 'phone'}]},\r\n email: {label: 'ایمیل', decorator: [{defaultKey: 'mail'}]},\r\n porters: {\r\n label: 'کارشناسان فروش',\r\n custom: {\r\n type: 'select',\r\n mode: 'multiple',\r\n options: 'porters',\r\n options_mode: 'list',\r\n options_key: {val: 'user', display: 'user+user__full_name'},\r\n filterOption: true,\r\n search: true\r\n },\r\n },\r\n }),\r\n\r\n shopFromItems: {\r\n shop_name: {label: 'نام فروشگاه', decorator: [{defaultKey: 'required'}]},\r\n aria: {label: 'منطقه', decorator: [{defaultKey: 'required'}]},\r\n postcode: {label: 'کد پستی', decorator: [{defaultKey: 'zip'}]},\r\n province: {\r\n label: 'استان', decorator: [/*{defaultKey: 'required'}*/], getEvent: true,\r\n custom: {\r\n type: 'select',\r\n options: 'province',\r\n options_mode: 'list',\r\n options_key: {val: 'id', display: 'name'},\r\n filterOption: true,\r\n search: true\r\n },\r\n },\r\n city: {\r\n label: 'شهر', decorator: [/*{defaultKey: 'required'}*/],\r\n custom: {\r\n type: 'select',\r\n options: 'city',\r\n options_mode: 'list',\r\n options_key: {val: 'id', display: 'name'},\r\n filterOption: true,\r\n search: true\r\n },\r\n },\r\n address: {\r\n label: 'آدرس',\r\n decorator: [/*{defaultKey: 'required'}*/],\r\n custom: {type: 'textarea', autoSize: {minRows: 3, maxRows: 5},},\r\n cls: 'md:col-span-3'\r\n },\r\n },\r\n\r\n accountFromItems: {\r\n max_debt: {label: 'سقف بدهی', custom: {type: 'number', min: 0}, itemCls: 'w-full hide-counter'},\r\n max_period: {label: 'سقف مدت', custom: {type: 'number', min: 0}, itemCls: 'w-full hide-counter'},\r\n economical_number: {label: 'شماره اقتصادی', decorator: [{defaultKey: 'num'}]},\r\n registration_number: {label: 'شماره ثبت', decorator: [{defaultKey: 'num'}]},\r\n },\r\n\r\n additionalFromItems: {\r\n telegram: {label: 'آیدی تلگرام'},\r\n instagram: {label: 'آیدی اینستاگرام'},\r\n whatsapp: {label: 'آیدی واتس اپ'},\r\n web_url: {label: 'آدرس سایت'},\r\n first_currency: {\r\n label: 'نوع ارز اول', decorator: [{defaultKey: 'required'}],\r\n custom: {\r\n type: 'select',\r\n options: 'currency',\r\n options_mode: 'list',\r\n options_key: {val: 'id', display: 'name'},\r\n filterOption: true,\r\n search: true\r\n },\r\n },\r\n second_currency: {\r\n label: 'نوع ارز دوم', decorator: [{defaultKey: 'required'}],\r\n custom: {\r\n type: 'select',\r\n options: 'currency',\r\n options_mode: 'list',\r\n options_key: {val: 'id', display: 'name'},\r\n filterOption: true,\r\n search: true\r\n },\r\n },\r\n metal: {\r\n label: 'جنس فلز', decorator: [{defaultKey: 'required'}],\r\n custom: {\r\n type: 'select',\r\n options: 'metal',\r\n options_mode: 'list',\r\n options_key: {val: 'id', display: 'name'},\r\n filterOption: true,\r\n search: true\r\n },\r\n },\r\n },\r\n\r\n docFromItems: {\r\n national_card_img: {\r\n label: 'تصویر کارت ملی',\r\n custom: {type: 'upload', mode: 'single', urlKey: 'national_card_img_url'},\r\n initialValue: []\r\n },\r\n license_img: {label: 'تصویر جواز', custom: {type: 'upload', mode: 'single', urlKey: 'license_img_url'}, initialValue: []},\r\n doc_img: {\r\n label: 'تصویر سند یا اجاره نامه',\r\n custom: {type: 'upload', mode: 'single', urlKey: 'doc_img_url'},\r\n initialValue: []\r\n },\r\n },\r\n\r\n formsName: ['اطلاعات تماس', 'اطلاعات فروشگاه', 'اطلاعات حساب کاربری', 'مدارک', 'اطلاعات تکمیلی'],\r\n porters: [],\r\n }\r\n },\r\n computed: {\r\n formOptions() {\r\n return {\r\n currency: this.currency,\r\n metal: this.metal,\r\n province: this.province,\r\n city: this.cities,\r\n porters: this.porters\r\n }\r\n },\r\n form() {\r\n return [\r\n this.contactFromItems,\r\n this.shopFromItems,\r\n this.accountFromItems,\r\n this.docFromItems,\r\n this.additionalFromItems,\r\n ]\r\n },\r\n },\r\n async created() {\r\n // const promiseData =\r\n await Promise.all([\r\n this.getNegotiableByType('currency'),\r\n this.getNegotiableByType('metal'),\r\n this.getProvince(),\r\n this.getPorters(),\r\n ])\r\n },\r\n methods: {\r\n async getPorters(){\r\n try {\r\n this.$store.commit('setLoading', true)\r\n const { data: {rows} } = await this.$axios.post('/porter/table',{\r\n limit:2000,\r\n })\r\n this.porters = 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 // return true\r\n },\r\n handelSubmit(values) {\r\n const val = Object.assign(values, {full_name: `${values.first_name} ${values.last_name}`})\r\n if (typeof val.city == 'object' && val.city.id && val.city.parent && val.city.parent.id) {\r\n val.province = val.city.parent.id\r\n val.city = val.city.id\r\n }\r\n if (typeof val.city == 'object') val.city = null\r\n if (this.id) return this.update(val)\r\n return this.create(val)\r\n },\r\n validate(index, $event) {\r\n if (index !== -1) {\r\n const returnedData = this.$refs.forms[index].handleSubmit($event)\r\n if (returnedData) return this.step++\r\n } else {\r\n let isCorrect = true\r\n let values = {}\r\n for (let i = 0; i < 5; i++) {\r\n const returnedData = this.$refs.forms[i].handleSubmit($event)\r\n if (!returnedData) {\r\n isCorrect = false\r\n break\r\n }\r\n values = Object.assign(values, returnedData)\r\n }\r\n if (isCorrect) this.handelSubmit(values)\r\n }\r\n },\r\n },\r\n}\r\n</script>\r\n\r\n<style scoped>\r\n\r\n</style>\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!./add-edit-customer.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!./add-edit-customer.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./add-edit-customer.vue?vue&type=template&id=6a05f9da&scoped=true&\"\nimport script from \"./add-edit-customer.vue?vue&type=script&lang=js&\"\nexport * from \"./add-edit-customer.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 \"6a05f9da\",\n null\n \n)\n\nexport default component.exports","export default {\r\n data() {\r\n return {\r\n province: [],\r\n cities: [],\r\n }\r\n },\r\n methods: {\r\n async getProvince() {\r\n try {\r\n this.$store.commit('setLoading', true)\r\n const { data: {rows} } = await this.$caxios.post('/utility/province/table',{\r\n limit:2000,\r\n filters: [{field: 'level', value: 1}],\r\n })\r\n this.province = 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 async getCities(id) {\r\n try {\r\n if (id) {\r\n this.$store.commit('setLoading', true)\r\n const { data: {rows} } = await this.$caxios.post('/utility/province/table',{\r\n filters: [{field: 'parent', value: id}],\r\n limit:2000,\r\n })\r\n this.cities = rows[0]\r\n }\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","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\t54660,\n\t\t660\n\t],\n\t\"./categoryTbl\": [\n\t\t22881,\n\t\t881\n\t],\n\t\"./customerTbl\": [\n\t\t61003,\n\t\t3\n\t],\n\t\"./documentTbl\": [\n\t\t1370,\n\t\t370\n\t],\n\t\"./factorTbl\": [\n\t\t13159,\n\t\t159\n\t],\n\t\"./negotiable-typeTbl\": [\n\t\t47429,\n\t\t429\n\t],\n\t\"./negotiableTbl\": [\n\t\t2941,\n\t\t941\n\t],\n\t\"./porterTbl\": [\n\t\t63685,\n\t\t685\n\t],\n\t\"./productTbl\": [\n\t\t44740,\n\t\t740\n\t],\n\t\"./userTbl\": [\n\t\t66896,\n\t\t896\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","_v","attrs","model","value","callback","$$v","step","expression","_l","item","key","index","directives","name","rawName","ref","refInFor","formsName","form","initialValue","formOptions","on","getCities","staticClass","slot","$event","_e","validate","staticRenderFns","components","SedmedForm","mixins","data","undefined","contactFromItems","Object","assign","phone","label","decorator","defaultKey","email","porters","custom","type","mode","options","options_mode","options_key","val","display","filterOption","search","shopFromItems","shop_name","aria","postcode","province","getEvent","city","address","autoSize","minRows","maxRows","cls","accountFromItems","max_debt","min","itemCls","max_period","economical_number","registration_number","additionalFromItems","telegram","instagram","whatsapp","web_url","first_currency","second_currency","metal","docFromItems","national_card_img","urlKey","license_img","doc_img","computed","currency","cities","async","Promise","all","methods","$store","commit","rows","limit","console","log","error","handelSubmit","values","full_name","id","parent","update","create","returnedData","$refs","forms","handleSubmit","isCorrect","i","component","$caxios","post","filters","field","negoTypes","stone","negotiable","$axios","op","showCurrency","find","x","showMetal","showStone","showNegotiable","view","$route","params","restfull","meta","restfullPath","customRoute","isCustomRoute","default","getData","get","patch","$ntSuccess","$router","push","toEdit","window","open","focus","setInitialValue","row","delete","fetch","map","webpackAsyncContext","req","__webpack_require__","o","resolve","then","e","Error","code","ids","keys","module","exports"],"sourceRoot":""}
Copyright ©2k19 -
Hexid
|
Tex7ure