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I,IAAIJ,MAAK,WACzC,OAAOH,EAAoBxD,MAG7BsD,EAAoBU,KAAO,WAAa,OAAO9H,OAAO8H,KAAKX,IAC3DC,EAAoBtD,GAAK,MACzBiE,EAAOC,QAAUZ,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","Promise","methods","limit","rows","console","handelSubmit","values","full_name","parent","id","update","create","returnedData","isCorrect","component","getProvince","$store","commit","$caxios","post","filters","field","log","negoTypes","stone","negotiable","getNegotiableByType","$axios","op","showCurrency","find","x","showMetal","showStone","showNegotiable","view","$route","params","restfull","meta","restfullPath","customRoute","isCustomRoute","created","default","getData","get","patch","$ntSuccess","$router","push","toEdit","window","open","focus","setInitialValue","row","toView","deleteItem","delete","$refs","fetch","map","webpackAsyncContext","req","__webpack_require__","o","resolve","then","e","Error","code","ids","keys","module","exports"],"sourceRoot":""}
Copyright ©2k19 -
Hexid
|
Tex7ure