/
home
/
henzagold
/
adminold
/
export
/
js
/
File Upload :
llllll
Current File: //home/henzagold/adminold/export/js/chunk-78f2e1ec.22eb8ee5.js.map
{"version":3,"sources":["webpack:///./src/views/report/product.vue?0e53","webpack:///./src/assets/images/no-image.png","webpack:///./src/views/report/product.vue?d288","webpack:///./src/table/variant.js","webpack:///src/views/report/product.vue","webpack:///./src/views/report/product.vue?7206","webpack:///./src/views/report/product.vue?cb20"],"names":["module","exports","render","_vm","this","_h","$createElement","_c","_self","attrs","ref","staticClass","cols","scopedSlots","_u","key","fn","text","record","_v","_s","split","filter","y","$hasPermission","slot","on","$event","toEdit","_e","showProductModal","product","detailsPopup","tempProduct","title","product_code","body_html","staticRenderFns","tbl","XTbl","add","Xtc","filterNumber","hidden","filterText","filterKey","renderSlot","noSort","components","FeatherIcon","XTable","data","noImage","undefined","productLoading","methods","window","open","component"],"mappings":"kHAAA,W,gDCAAA,EAAOC,QAAU,IAA0B,6B,yCCA3C,IAAIC,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,MAAM,CAAC,GAAK,mBAAmB,CAACF,EAAG,UAAU,CAACG,IAAI,aAAaC,YAAY,UAAUF,MAAM,CAAC,kBAAmB,EAAM,MAAQ,iBAAiB,CAACF,EAAG,MAAM,CAACA,EAAG,SAAS,CAACG,IAAI,cAAcD,MAAM,CAAC,MAAQN,EAAIS,MAAMC,YAAYV,EAAIW,GAAG,CAAC,CAACC,IAAI,QAAQC,GAAG,SAASN,GACxW,IAAIO,EAAOP,EAAIO,KACFP,EAAIQ,OACjB,OAAOX,EAAG,MAAM,GAAG,CAACJ,EAAIgB,GAAG,eAAehB,EAAIiB,GAAGH,EAAKI,MAAM,KAAKC,QAAO,SAAUC,GAAI,MAAc,MAAPA,EAAE,MAAa,IAAI,kBAAkB,CAACR,IAAI,KAAKC,GAAG,SAASN,GAC7IA,EAAIO,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,KALF,WAMI,MAAO,CACLC,QAAN,IACMnB,iBAAaoB,EACbrB,cAAc,EACdsB,gBAAgB,EAChB1C,KAAN,IAGE2C,QAAS,CACP,iBADJ,oEACA,GADA,iFAEA,mBACA,uBACA,qBACA,sDALA,yGAOI3B,OAPJ,SAOA,GACM4B,OAAOC,KAAK,4BAAlB,2DCpGgW,I,wBCQ5VC,EAAY,eACd,EACAxD,EACAmC,GACA,EACA,KACA,KACA,MAIa,aAAAqB,E","file":"js/chunk-78f2e1ec.22eb8ee5.js","sourcesContent":["export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./product.vue?vue&type=style&index=0&lang=css&\"","module.exports = __webpack_public_path__ + \"img/no-image.2e7b9f62.png\";","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"page-user-list\"}},[_c('vx-card',{ref:\"filterCard\",staticClass:\"vx-card\",attrs:{\"removeCardAction\":false,\"title\":\"لیست محصولات\"}},[_c('div',[_c('XTable',{ref:\"tblProducts\",attrs:{\"model\":_vm.cols},scopedSlots:_vm._u([{key:\"color\",fn:function(ref){\nvar text = ref.text;\nvar record = ref.record;\nreturn _c('div',{},[_vm._v(\"\\n \"+_vm._s(text.split('/').filter(function (y){ return y[0]!=='#'; })[0])+\"\\n \")])}},{key:\"op\",fn:function(ref){\nvar text = ref.text;\nvar record = ref.record;\nreturn _c('div',{},[(_vm.$hasPermission('product.list.edit'))?_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)}}})],1):_vm._e(),(_vm.$hasPermission('product.list.view'))?_c('ATooltip',[_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"اطلاعات جامع\")]),_c('FeatherIcon',{staticClass:\"cursor-pointer mx-1\",attrs:{\"icon\":\"AlertCircleIcon\",\"svgClasses\":\"h-6 w-6 text-warning\"},on:{\"click\":function($event){return _vm.showProductModal(record.product)}}})],1):_vm._e()],1)}}])})],1)]),_c('AModal',{attrs:{\"visible\":_vm.detailsPopup,\"zIndex\":410000,\"width\":\"80%\",\"footer\":null},on:{\"update:visible\":function($event){_vm.detailsPopup=$event},\"cancel\":function () { return (_vm.detailsPopup = false); }}},[_c('div',[_c('ACard',{staticClass:\"w-full\",attrs:{\"title\":\"مشاهده اطلاعات\"}},[(_vm.tempProduct)?_c('table',{staticClass:\"flex justify-between\"},[_c('tr',{staticClass:\"flex flex-col\"},[_c('td',{staticClass:\"text-primary\"},[_vm._v(\"عنوان محصول\")]),_c('td',[_vm._v(_vm._s(_vm.tempProduct.title))])]),_c('tr',{staticClass:\"flex flex-col\"},[_c('td',{staticClass:\"text-primary\"},[_vm._v(\"کد محصول\")]),_c('td',[_vm._v(_vm._s(_vm.tempProduct.product_code))])]),_c('tr',{staticClass:\"flex flex-col\"},[_c('td',{staticClass:\"text-primary\"},[_vm._v(\"وضعیت:\")]),(_vm.tempProduct.is_active)?_c('td',[_vm._v(\"فعال\")]):_c('td',[_vm._v(\"غیرفعال\")])])]):_vm._e(),(_vm.tempProduct)?_c('div',{staticClass:\"mt-4 flex flex-col w-full\"},[_c('span',{staticClass:\"text-primary\"},[_vm._v(\"توضیح:\")]),_c('span',[_vm._v(_vm._s(_vm.tempProduct.body_html))])]):_vm._e()])],1)])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import XTbl, {Xtc} from '@/components/x-table/index';\r\n\r\nconst tbl = new XTbl('/product/report', 'لیست محصولات');\r\ntbl.add(new Xtc('id', 'کد تنوع').filterNumber());\r\ntbl.add(new Xtc('product_id_id', 'کد محصول').filterNumber().hidden());\r\ntbl.add(new Xtc('product.title', 'نام محصول').filterText().filterKey('product'))\r\ntbl.add(new Xtc('title', 'نام تنوع').filterText())\r\ntbl.add(new Xtc('qty', 'تعداد').filterText())\r\ntbl.add(new Xtc('grams', 'وزن').filterText())\r\ntbl.add(new Xtc('color_str', 'رنگ').filterText().renderSlot('color'))\r\ntbl.add(new Xtc('rial_pay', 'اجرت ریالی').filterText())\r\ntbl.add(new Xtc('percentage_pay', 'اجرت درصدی').filterText())\r\ntbl.add(new Xtc('op', 'عملیات').renderSlot('op').noSort());\r\n\r\n\r\nexport default tbl;\r\n\r\n","<template>\r\n <div id=\"page-user-list\">\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=\"cols\" ref=\"tblProducts\">\r\n <div slot=\"color\" slot-scope=\"{text, record}\">\r\n {{text.split('/').filter(y=>y[0]!=='#')[0]}}\r\n </div>\r\n <div slot=\"op\" slot-scope=\"{text, record}\">\r\n <ATooltip v-if=\"$hasPermission('product.list.edit')\">\r\n <span slot=\"title\">ویرایش</span>\r\n <FeatherIcon\r\n icon=\"EditIcon\"\r\n @click=\"toEdit(record)\"\r\n svgClasses=\"h-6 w-6 text-primary\"\r\n class=\"cursor-pointer mx-1\"\r\n />\r\n </ATooltip>\r\n <ATooltip v-if=\"$hasPermission('product.list.view')\">\r\n <span slot=\"title\">اطلاعات جامع</span>\r\n <FeatherIcon\r\n icon=\"AlertCircleIcon\"\r\n @click=\"showProductModal(record.product)\"\r\n svgClasses=\"h-6 w-6 text-warning\"\r\n class=\"cursor-pointer mx-1\"\r\n />\r\n </ATooltip>\r\n </div>\r\n </XTable>\r\n </div>\r\n </vx-card>\r\n\r\n <AModal\r\n :visible.sync=\"detailsPopup\"\r\n @cancel=\"() => (detailsPopup = false)\"\r\n :zIndex=\"410000\"\r\n width=\"80%\"\r\n :footer=\"null\" >\r\n <div>\r\n <!-- <h2>مشاهده اطلاعات</h2> -->\r\n <ACard class=\"w-full\" title=\"مشاهده اطلاعات\">\r\n <table class=\"flex justify-between\" v-if=\"tempProduct\" >\r\n <tr class=\"flex flex-col\">\r\n <td class=\"text-primary\">عنوان محصول</td>\r\n <td>{{ tempProduct.title }}</td>\r\n </tr>\r\n <tr class=\"flex flex-col\">\r\n <td class=\"text-primary\">کد محصول</td>\r\n <td>{{ tempProduct.product_code }}</td>\r\n </tr>\r\n\r\n <tr class=\"flex flex-col\">\r\n <td class=\"text-primary\">وضعیت:</td>\r\n <td v-if=\"tempProduct.is_active\">فعال</td>\r\n <td v-else>غیرفعال</td>\r\n </tr>\r\n </table>\r\n <div class=\"mt-4 flex flex-col w-full\" v-if=\"tempProduct\">\r\n <span class=\"text-primary\">توضیح:</span>\r\n <span>{{ tempProduct.body_html }}</span>\r\n </div>\r\n </ACard>\r\n </div>\r\n </AModal>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport FeatherIcon from \"@/components/FeatherIcon.vue\";\r\nimport cols from \"@/table/variant\";\r\nimport XTable from \"@/components/x-table/XTable\";\r\nimport axios from \"@/axios\";\r\nimport noImage from \"@/assets/images/no-image.png\"\r\n\r\nexport default {\r\n components: {\r\n FeatherIcon,\r\n XTable\r\n },\r\n data() {\r\n return {\r\n noImage,\r\n tempProduct: undefined,\r\n detailsPopup: false,\r\n productLoading: false,\r\n cols,\r\n };\r\n },\r\n methods: {\r\n async showProductModal(data) {\r\n this.tempProduct = data;\r\n this.productLoading = false;\r\n this.detailsPopup = true;\r\n console.log(\"this.tempProduct ==> \", this.tempProduct);\r\n },\r\n toEdit(row) {\r\n window.open(`/admin/apps/product/edit/${row.product.id}/${row.id}`, '_blank').focus();\r\n },\r\n },\r\n};\r\n</script>\r\n\r\n<style>\r\n.ant-popover {\r\n z-index: 25000000;\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!./product.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!./product.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./product.vue?vue&type=template&id=9b7d3760&\"\nimport script from \"./product.vue?vue&type=script&lang=js&\"\nexport * from \"./product.vue?vue&type=script&lang=js&\"\nimport style0 from \"./product.vue?vue&type=style&index=0&lang=css&\"\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