2026-06-16 18:30:01 +03:30
|
|
|
import{_ as Be}from"./BasicModal.vue_vue_type_style_index_0_lang-dd7b7ec8.js";import{_ as Le,u as Me}from"./useBaseTable-82988bac.js";import{_ as Te,B as Ve}from"./button.vue_vue_type_style_index_0_lang-2c1bd48f.js";import{I as Y}from"./Icon-e6a8fed2.js";import{t as De}from"./useDataTime-e2be3a73.js";import{g as A}from"./convert-67c23be8.js";import{_ as le}from"./TextPreview.vue_vue_type_script_setup_true_lang-b51083e4.js";import{u as Oe}from"./usePrice-bc935b83.js";import{b as t,d as Se,g as h,r as Re,h as T,v as Ae,l as je,o as f,c as U,a as p,w as s,e as x,j as q,E as Ee,k as $,F as N,n as Z,i as H,C as _,ab as ze,G as qe,t as ee}from"./index-818832f6.js";import{g as Ne,u as He,a as Je,b as Ke,d as We}from"./products-56ee4e5a.js";import{g as te}from"./index-b7592eeb.js";import{g as Ge}from"./category-9850d0c2.js";import{g as Xe}from"./brand-afdc945b.js";import{l as R}from"./lodash-a34081a8.js";import{M as Qe,_ as Ye}from"./index-4ab1f351.js";import{I as Ze,_ as et}from"./index-d7a2bf7d.js";import{_ as tt,a as at}from"./index-b25d6457.js";import{_ as lt}from"./index-dac8bf73.js";import{_ as ot,F as nt}from"./index-06fb0aba.js";import{_ as st,a as it}from"./index-f0acd122.js";import{S as rt}from"./fa_IR-6fcbcb1f.js";import{U as ut}from"./index-34285f57.js";import{T as ae}from"./shallowequal-d146fef2.js";import"./index-3a54c033.js";import"./vnode-64cb3fc2.js";import"./Col-48f581a2.js";import"./_plugin-vue_export-helper-d7928b20.js";import"./useState-0d2b1012.js";import"./FormItemContext-2aeab186.js";import"./pickAttrs-6ffcd9a2.js";import"./isPlainObject-9b4ffff0.js";import"./toArray-8487a9ec.js";import"./useRefs-67ee408f.js";const dt=[{title:"ردیف",dataIndex:"id",key:"id",filterable:!1,width:70,align:"center",customRender:m=>m.index+1},{title:"تصویر ",dataIndex:"original_image",key:"original_image",customRender:m=>{const j=A(m.record.original_image);return t("img",{src:j,width:60},null)}},{title:"عنوان",dataIndex:"title_fa",key:"title_fa"},{title:"کد",dataIndex:"code",key:"code"},{title:"توضیحات",dataIndex:"description",key:"description",customRender:m=>t(le,{text:m.record.description},null)},{title:"قیمت (ریال)",dataIndex:"price",key:"price",align:"center",width:120,customRender:m=>Oe(m.record.price??0,!0,"")},{title:"موجودی",dataIndex:"count",key:"count",align:"center",width:120,customRender:m=>m.record.count??0},{title:"زمان ایجاد",dataIndex:"created_at",key:"created_at",customRender:m=>De(m.record.created_at)},{title:"عملیات",dataIndex:"action",key:"action",slot:"action",filterable:!1,align:"center"}],ct={class:"flex justify-between items-center mb-4"},pt=p("h2",null,"محصولات",-1),_t={class:"gap-2 flex justify-center"},vt=p("span",null,"حذف",-1),mt=p("span",null,"ویرایش",-1),ft={key:0,class:"text-gray-500 text-sm mt-1"},gt={class:"col-span-2 flex"},bt={key:0},ht=p("div",{style:{"margin-top":"8px"}},"آپلود",-1),yt=p("div",null,"آپلود فایلها",-1),kt={class:"space-y-2"},wt={class:"flex justify-between items-center mb-2"},Ut={class:"text-sm text-gray-500"},xt={key:1,class:"text-gray-500 text-sm mt-2"},Ct={class:"mt-2 flex flex-wrap gap-4"},It={class:"space-y-3"},Pt={class:"flex justify-between items-center mb-2"},$t={class:"font-medium"},Ft={class:"grid grid-cols-3 gap-4"},ua=Se({__name:"index",setup(m){`${te()||localStorage.getItem("tamin_token")||""}`;const[j,J]=Me(),oe=h({columns:dt,api:Ne,defaultPageLimit:20}),F=h(!1),V=h(!1),D=h(null),B=h(0),O=h(0),a=Re({title_fa:"",title:"",price:0,body:"",is_show:!0,is_active:!0,box_size:0,sell_type:"numeric",original_image:void 0,product_attributes:[],files:[],auto_calculate:!1,is_exist:!0,created_at:void 0,updated_at:void 0,deleted_at:null,count_order:void 0,count_fav:void 0,count_view:void 0,min_price:void 0,max_price:void 0,type:"simple",owner_id:void 0,users:void 0,saved:[],variants:[],code:void 0,brand_id:void 0,collection_id:void 0,discount:void 0,discount_type:"percent",id:void 0,count:void 0,display_price:void 0,meta:void 0,seo_title:void 0,description:void 0,product_type:void 0,weight
|