2 lines
9.1 KiB
JavaScript
2 lines
9.1 KiB
JavaScript
import{B,C as _,D as b}from"./element-plus.2acb577d.js";import{P as E}from"./index.f292cd50.js";import{a as y}from"./warehouse_product.d57b2a29.js";import"./lodash.6bfd3540.js";import{d as s,s as i,r as D,Z as U,o as c,c as C,U as l,L as d,u as a}from"./@vue.821a47ec.js";import"./lodash-es.df44a280.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.81e2759c.js";import"./@element-plus.dabbc398.js";import"./dayjs.d2a77ee0.js";import"./axios.9e996410.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.81df6f20.js";import"./vue-router.4c04f9b6.js";import"./pinia.fefed778.js";import"./css-color-function.8ff67959.js";import"./color.bfa08e9a.js";import"./clone.660f80c4.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.dcb32030.js";import"./vue-clipboard3.e681583f.js";import"./clipboard.3ad9b20b.js";import"./echarts.42bea269.js";import"./tslib.60310f1a.js";import"./zrender.2cb48b70.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.8864a4be.js";const A={class:"edit-popup"},x=s({name:"psiWarehouseProductDETAILS"}),ne=s({...x,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(k,{expose:F,emit:w}){const f=i(),m=i();D("add");const u=U({id:"",warehouse_id:"",supplier_id:"",store_id:"",order_type:"",product_id:"",unit:"",oid:"",code:"",manufacture:"",expiration_date:"",admin_id:"",enter_admin_id:"",staff_id:"",batch:"",nums:"",refund_nums:"",before_nums:"",after_nums:"",mark:"",price:"",total_price:"",purchase:"",cost:"",vip_price:"",is_pay:"",pay_type:"",status:""}),n=async p=>{for(const e in u)p[e]!=null&&p[e]!=null&&(u[e]=p[e])};return F({open:()=>{var p;(p=m.value)==null||p.open()},setFormData:n,getDetail:async p=>{const e=await y({id:p.id});n(e)}}),(p,e)=>{const r=B,t=_,V=b;return c(),C("div",A,[l(E,{ref_key:"popupRef",ref:m,title:"\u8BE6\u60C5",async:!0,width:"550px",cancelButtonText:!1,confirmButtonText:!1},{default:d(()=>[l(V,{ref_key:"formRef",ref:f,model:a(u),"label-width":"90px"},{default:d(()=>[l(t,{label:"\u4ED3\u5E93",prop:"warehouse_id"},{default:d(()=>[l(r,{modelValue:a(u).warehouse_id,"onUpdate:modelValue":e[0]||(e[0]=o=>a(u).warehouse_id=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4ED3\u5E93",readonly:!0},null,8,["modelValue"])]),_:1}),l(t,{label:"\u4F9B\u5E94\u5546",prop:"supplier_id"},{default:d(()=>[l(r,{modelValue:a(u).supplier_id,"onUpdate:modelValue":e[1]||(e[1]=o=>a(u).supplier_id=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4F9B\u5E94\u5546",readonly:!0},null,8,["modelValue"])]),_:1}),l(t,{label:"\u95E8\u5E97",prop:"store_id"},{default:d(()=>[l(r,{modelValue:a(u).store_id,"onUpdate:modelValue":e[2]||(e[2]=o=>a(u).store_id=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u95E8\u5E97",readonly:!0},null,8,["modelValue"])]),_:1}),l(t,{label:"\u8BA2\u5355\u7C7B\u578B",prop:"order_type"},{default:d(()=>[l(r,{modelValue:a(u).order_type,"onUpdate:modelValue":e[3]||(e[3]=o=>a(u).order_type=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8BA2\u5355\u7C7B\u578B",readonly:!0},null,8,["modelValue"])]),_:1}),l(t,{label:"\u5546\u54C1",prop:"product_id"},{default:d(()=>[l(r,{modelValue:a(u).product_id,"onUpdate:modelValue":e[4]||(e[4]=o=>a(u).product_id=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1",readonly:!0},null,8,["modelValue"])]),_:1}),l(t,{label:"\u5355\u4F4D",prop:"unit"},{default:d(()=>[l(r,{modelValue:a(u).unit,"onUpdate:modelValue":e[5]||(e[5]=o=>a(u).unit=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5355\u4F4D",readonly:!0},null,8,["modelValue"])]),_:1}),l(t,{label:"\u5165\u5E93\u5355ID",prop:"oid"},{default:d(()=>[l(r,{modelValue:a(u).oid,"onUpdate:modelValue":e[6]||(e[6]=o=>a(u).oid=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5165\u5E93\u5355ID",readonly:!0},null,8,["modelValue"])]),_:1}),l(t,{label:"\u5165\u5E93\u5355\u53F7",prop:"code"},{default:d(()=>[l(r,{modelValue:a(u).code,"onUpdate:modelValue":e[7]||(e[7]=o=>a(u).code=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5165\u5E93\u5355\u53F7",readonly:!0},null,8,["modelValue"])]),_:1}),l(t,{label:"\u751F\u4EA7\u65E5\u671F",prop:"manufacture"},{default:d(()=>[l(r,{modelValue:a(u).manufacture,"onUpdate:modelValue":e[8]||(e[8]=o=>a(u).manufacture=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u751F\u4EA7\u65E5\u671F",readonly:!0},null,8,["modelValue"])]),_:1}),l(t,{label:"\u4FDD\u8D28\u671F",prop:"expiration_date"},{default:d(()=>[l(r,{modelValue:a(u).expiration_date,"onUpdate:modelValue":e[9]||(e[9]=o=>a(u).expiration_date=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4FDD\u8D28\u671F",readonly:!0},null,8,["modelValue"])]),_:1}),l(t,{label:"\u586B\u5199\u4EBA\u5458",prop:"admin_id"},{default:d(()=>[l(r,{modelValue:a(u).admin_id,"onUpdate:modelValue":e[10]||(e[10]=o=>a(u).admin_id=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u586B\u5199\u4EBA\u5458",readonly:!0},null,8,["modelValue"])]),_:1}),l(t,{label:"\u786E\u8BA4\u4EBA\u5458",prop:"enter_admin_id"},{default:d(()=>[l(r,{modelValue:a(u).enter_admin_id,"onUpdate:modelValue":e[11]||(e[11]=o=>a(u).enter_admin_id=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u786E\u8BA4\u4EBA\u5458",readonly:!0},null,8,["modelValue"])]),_:1}),l(t,{label:"\u95E8\u5E97\u786E\u8BA4\u4EBA\u5458",prop:"staff_id"},{default:d(()=>[l(r,{modelValue:a(u).staff_id,"onUpdate:modelValue":e[12]||(e[12]=o=>a(u).staff_id=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u95E8\u5E97\u786E\u8BA4\u4EBA\u5458",readonly:!0},null,8,["modelValue"])]),_:1}),l(t,{label:"\u6279\u6B21",prop:"batch"},{default:d(()=>[l(r,{modelValue:a(u).batch,"onUpdate:modelValue":e[13]||(e[13]=o=>a(u).batch=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6279\u6B21",readonly:!0},null,8,["modelValue"])]),_:1}),l(t,{label:"\u6570\u91CF",prop:"nums"},{default:d(()=>[l(r,{modelValue:a(u).nums,"onUpdate:modelValue":e[14]||(e[14]=o=>a(u).nums=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6570\u91CF",readonly:!0},null,8,["modelValue"])]),_:1}),l(t,{label:"\u9000\u8D27\u6570\u91CF",prop:"refund_nums"},{default:d(()=>[l(r,{modelValue:a(u).refund_nums,"onUpdate:modelValue":e[15]||(e[15]=o=>a(u).refund_nums=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u9000\u8D27\u6570\u91CF",readonly:!0},null,8,["modelValue"])]),_:1}),l(t,{label:"\u66F4\u65B0\u524D\u5E93\u5B58",prop:"before_nums"},{default:d(()=>[l(r,{modelValue:a(u).before_nums,"onUpdate:modelValue":e[16]||(e[16]=o=>a(u).before_nums=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u66F4\u65B0\u524D\u5E93\u5B58",readonly:!0},null,8,["modelValue"])]),_:1}),l(t,{label:"\u66F4\u65B0\u540E\u5E93\u5B58",prop:"after_nums"},{default:d(()=>[l(r,{modelValue:a(u).after_nums,"onUpdate:modelValue":e[17]||(e[17]=o=>a(u).after_nums=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u66F4\u65B0\u540E\u5E93\u5B58",readonly:!0},null,8,["modelValue"])]),_:1}),l(t,{label:"\u5907\u6CE8",prop:"mark"},{default:d(()=>[l(r,{modelValue:a(u).mark,"onUpdate:modelValue":e[18]||(e[18]=o=>a(u).mark=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8",readonly:!0},null,8,["modelValue"])]),_:1}),l(t,{label:"\u96F6\u552E\u4EF7\u683C",prop:"price"},{default:d(()=>[l(r,{modelValue:a(u).price,"onUpdate:modelValue":e[19]||(e[19]=o=>a(u).price=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u96F6\u552E\u4EF7\u683C",readonly:!0},null,8,["modelValue"])]),_:1}),l(t,{label:"\u603B\u4EF7\u683C",prop:"total_price"},{default:d(()=>[l(r,{modelValue:a(u).total_price,"onUpdate:modelValue":e[20]||(e[20]=o=>a(u).total_price=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u603B\u4EF7\u683C",readonly:!0},null,8,["modelValue"])]),_:1}),l(t,{label:"\u4F9B\u8D27\u4EF7",prop:"purchase"},{default:d(()=>[l(r,{modelValue:a(u).purchase,"onUpdate:modelValue":e[21]||(e[21]=o=>a(u).purchase=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4F9B\u8D27\u4EF7",readonly:!0},null,8,["modelValue"])]),_:1}),l(t,{label:"\u5546\u6237\u4EF7",prop:"cost"},{default:d(()=>[l(r,{modelValue:a(u).cost,"onUpdate:modelValue":e[22]||(e[22]=o=>a(u).cost=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u6237\u4EF7",readonly:!0},null,8,["modelValue"])]),_:1}),l(t,{label:"\u4F1A\u5458\u4EF7",prop:"vip_price"},{default:d(()=>[l(r,{modelValue:a(u).vip_price,"onUpdate:modelValue":e[23]||(e[23]=o=>a(u).vip_price=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4F1A\u5458\u4EF7",readonly:!0},null,8,["modelValue"])]),_:1}),l(t,{label:"\u662F\u5426\u7ED3\u6E05",prop:"is_pay"},{default:d(()=>[l(r,{modelValue:a(u).is_pay,"onUpdate:modelValue":e[24]||(e[24]=o=>a(u).is_pay=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u662F\u5426\u7ED3\u6E05",readonly:!0},null,8,["modelValue"])]),_:1}),l(t,{label:"\u652F\u4ED8\u65B9\u5F0F",prop:"pay_type"},{default:d(()=>[l(r,{modelValue:a(u).pay_type,"onUpdate:modelValue":e[25]||(e[25]=o=>a(u).pay_type=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u652F\u4ED8\u65B9\u5F0F",readonly:!0},null,8,["modelValue"])]),_:1}),l(t,{label:"\u72B6\u6001",prop:"status"},{default:d(()=>[l(r,{modelValue:a(u).status,"onUpdate:modelValue":e[26]||(e[26]=o=>a(u).status=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u72B6\u6001",readonly:!0},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},512)])}}});export{ne as default};
|