1 |
- import{u as k}from"./usePermission.8064505c.js";import{_ as D,P as y}from"./page-content.e0c7af12.js";import{u as A}from"./use-page-search.0f272301.js";import{A as x,F as O,b as R}from"./status.2b37e8be.js";import{c as S,a as P,r as f}from"./column-helper.64ceba17.js";import{c as T,d as $}from"./exchangeStock.a63486af.js";import{_ as L}from"./edit-dialog.vue_vue_type_script_setup_true_lang.a8046633.js";import{_ as N}from"./add-dialog.vue_vue_type_script_setup_true_lang.2bf77cfe.js";import{_ as I}from"./ListModal.vue_vue_type_script_setup_true_lang.bd516856.js";import{a as M,r as p,b as h,c as C,j as g,h as a,f as i,u as e,x as U,l as V}from"./index.4d061c66.js";import"./btnList.6c44b4ef.js";import"./remote-select.36ee67a3.js";import"./useAsync.df7387ce.js";import"./useNav.5e73c372.js";import"./image.e35d846c.js";import"./hooks.9f8f44e2.js";/* empty css */import"./image.4c97dbe3.js";/* empty css */import"./index.e63aea62.js";import"./responseHandle.fe68d5aa.js";import"./goodDetail.config.df7d45a7.js";import"./good.75e37e88.js";import"./userDetail.config.0ab63777.js";import"./user.0ff210bc.js";import"./ComCard.vue_vue_type_script_setup_true_lang.ad550102.js";import"./remoteSelect.403add72.js";import"./pageListModal.b8e2dd01.js";import"./ladder-table.vue_vue_type_script_setup_true_lang.61d5aa65.js";const W={formItems:[{field:"status",type:"select",placeholder:"\u8D26\u53F7\u72B6\u6001",options:S(x)},{field:["inventory_start","inventory_end"],type:"range",otherOptions:{startPlaceholder:"\u5E93\u5B58\u8D77\u59CB\u503C",endPlaceholder:"\u5E93\u5B58\u7ED3\u675F\u503C",precision:0}},{field:"good_name",type:"input",placeholder:"\u5546\u54C1\u7F16\u53F7"},{field:"good_name",type:"input",placeholder:"\u5546\u54C1\u540D\u79F0"},{field:"username",type:"input",placeholder:"\u8D26\u53F7"},{field:"nickname",type:"input",placeholder:"\u5BA2\u6237\u59D3\u540D"},{field:"mobile",type:"input",placeholder:"\u5BA2\u6237\u624B\u673A\u53F7"}]},_=W,q=[{prop:"account_username",label:"\u8D26\u6237",width:120},{prop:"account_name",label:"\u8D26\u6237\u59D3\u540D"},{prop:"mobile",label:"\u624B\u673A\u53F7",width:100},{prop:"good_code",label:"\u5546\u54C1\u7F16\u7801",width:140},{label:"\u56FE\u7247",prop:"good_cover_img",width:60,showOverflowTooltip:!0,...P("good_cover_img")},{label:"\u5546\u54C1\u540D\u79F0",prop:"good_name",minWidth:160},{prop:"inventory",label:"\u5E93\u5B58\u6570",width:"110px"},{label:"\u552E\u4EF7",prop:"price",width:110,showOverflowTooltip:!0},{label:"\u5355\u4F4D",prop:"unit",width:50,showOverflowTooltip:!0},{label:"\u8D77\u8BA2\u91CF",prop:"moq",width:60,showOverflowTooltip:!0},{label:"\u6B65\u957F",prop:"step",width:50,showOverflowTooltip:!0},{prop:"updatetime",label:"\u66F4\u65B0\u65F6\u95F4",width:"140px"},{label:"\u64CD\u4F5C",fixed:"right",width:110,slot:"operation"}],G={title:"\u5361\u7C7B\u578B\u7BA1\u7406",columns:q,apis:{httpList:T}},j=G,H={isHide:!0,formItems:[]},z=[{prop:"good_code",label:"\u5546\u54C1\u7F16\u7801",width:160},{label:"\u5546\u54C1\u540D\u79F0",prop:"good_name",minWidth:160},{prop:"before_inventory",label:"\u4FEE\u6539\u524D\u5E93\u5B58",width:"110px"},{prop:"flag",label:"\u4FEE\u6539\u65B9\u5F0F",...f(O,"flag"),width:"70px"},{prop:"after_inventory",label:"\u4FEE\u6539\u540E\u5E93\u5B58",width:"110px"},{prop:"source",label:"\u64CD\u4F5C\u6765\u6E90",...f(R,"source"),width:"110px"},{prop:"addtime",label:"\u64CD\u4F5C\u65F6\u95F4",width:"140px"}],J={title:"\u5361\u7C7B\u578B\u7BA1\u7406",notReuqiredInit:!0,columns:z,apis:{httpList:$}},K={title:"\u5E93\u5B58\u4FEE\u6539\u8BB0\u5F55",searchConfig:H,contentConfig:J},Q=K,Ao=M({__name:"index",setup(X){const s="exchangeStock",{hasPermissionWithCode:F,permissions:w}=k(s),d=p(null),m=p(null),{pageContentRef:r,handleResetClick:B,handleSearchClick:b}=A(void 0,void 0,_),c=p(null);function v(u){c.value.show(u)}function l(u,o,n){n==="create"?m.value.show(u,o,n):d.value.show(u,o,n)}return(u,o)=>{const n=h("el-button"),E=h("PageAuth");return C(),g(E,{pageName:s},{default:a(()=>[i(e(D),{"form-config":e(_),onSearchBtnClick:e(b),onResetBtnClick:e(B)},{action:a(()=>[e(F)("002")?(C(),g(n,{key:0,type:"primary",onClick:o[0]||(o[0]=t=>l({},"","create"))},{default:a(()=>[U(" \u65B0\u589E ")]),_:1})):V("",!0)]),_:1},8,["form-config","onSearchBtnClick","onResetBtnClick"]),i(e(y),{ref_key:"pageContentRef",ref:r,powers:e(w),"content-config":e(j),onPreviewBtnClick:o[1]||(o[1]=t=>l(t,t.id,"view")),onUpdateBtnClick:o[2]||(o[2]=t=>l(t,t.id,"edit")),onLogBtnClick:o[3]||(o[3]=({id:t})=>v(t))},null,8,["powers","content-config"]),i(N,{ref_key:"modelAddRef",ref:m,onReload:o[4]||(o[4]=t=>e(r).onSearch())},null,512),i(L,{ref_key:"modelEditRef",ref:d,onReload:o[5]||(o[5]=t=>e(r).onSearch())},null,512),i(e(I),{ref_key:"ListModalRef",ref:c,modalConfig:e(Q)},null,8,["modalConfig"])]),_:1})}}});export{Ao as default};
|