index.300796.js 4.4 KB

1
  1. import{_ as C,d as D,w as g,r as s,o as f,G as b,C as l,j as u,l as r,a as _,M as m,aJ as E,J as O,b0 as T,h as A,aC as h}from"./index.js";import{B as v}from"./basic-descriptions.f8ae61bf.js";const q=[{label:"\u5904\u7406\u7F16\u53F7",field:"TODO",span:6},{label:"\u53D1\u7968\u660E\u7EC6ID",field:"TODO",span:6},{label:"\u4E1A\u52A1\u7F16\u53F7",field:"TODO",span:6},{label:"\u5546\u54C1\u7F16\u53F7",field:"TODO",span:6},{label:"\u5546\u54C1\u540D\u79F0",field:"TODO",span:6},{label:"\u5546\u54C1\u6570\u91CF",field:"TODO",span:6},{label:"\u7A0E\u524D\u5355\u4EF7",field:"TODO",span:6},{label:"\u7A0E\u540E\u5355\u4EF7",field:"TODO",span:6},{label:"\u51FA\u5E93\u91D1\u989D",field:"TODO",span:6},{label:"\u72B6\u6001",field:"TODO"},{label:"\u5206\u5149",field:"TODO",span:6},{label:"\u521B\u5EFA\u4EBA",field:"TODO",span:6},{label:"\u521B\u5EFA\u65F6\u95F4",field:"TODO",span:6}],x={supplierNo:[{required:!0,message:"\u8BF7\u9009\u62E9\u9500\u552E\u65B9\u516C\u53F8",trigger:"change"}],companyNo:[{required:!0,message:"\u8BF7\u9009\u62E9\u8D2D\u4E70\u65B9\u516C\u53F8",trigger:"change"}],goodSource:[{required:!0,message:"\u8BF7\u9009\u62E9\u5546\u54C1\u6765\u6E90",trigger:"change"}],spuCode:[{required:!0,message:"\u8BF7\u8F93\u5165\u5546\u54C1\u7F16\u53F7",trigger:"change"}],goodType:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BA2\u5355\u5546\u54C1\u7C7B\u578B",trigger:"change"}],is_combind:[{required:!0,message:"\u8BF7\u9009\u62E9\u7EC4\u5408\u7C7B\u578B",trigger:"change"}],goodName:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BA2\u5355\u5546\u54C1\u540D\u79F0",trigger:"change"}],invGoodName:[{required:!0,message:"\u8BF7\u8F93\u5165\u53D1\u7968\u5546\u54C1\u540D\u79F0",trigger:"change"}],beforeTaxPrice:[{required:!0,message:"\u8BF7\u8F93\u5165\u6210\u672C\u7A0E\u524D\u5355\u4EF7",trigger:"change"}],unit:[{required:!0,message:"\u8BF7\u9009\u62E9\u5355\u4F4D",trigger:"change"}],weight:[{required:!0,message:"\u8BF7\u9009\u62E9\u91CD\u91CF",trigger:"change"}],afterTaxPrice:[{required:!0,message:"\u8BF7\u8F93\u5165\u6210\u672C\u7A0E\u540E\u5355\u4EF7",trigger:"change"}],in_code:[{required:!0,message:"\u8BF7\u9009\u62E9\u8FDB\u9879\u7C7B\u76EE",trigger:"change"}],invType:[{required:!0,message:"\u8BF7\u9009\u62E9\u53D1\u7968\u7C7B\u578B",trigger:"change"}],in_tax:[{required:!0,message:"\u8BF7\u9009\u62E9\u8FDB\u9879\u7A0E\u7387",trigger:"change"}],in_cost_status:[{required:!0,message:"\u8BF7\u9009\u62E9\u8FDB\u9879\u6210\u672C\u7C7B\u578B",trigger:"change"}]},y={class:"flex w-full justify-end"},V=D({__name:"index",setup(w){const t=g({isToAdjust:"",amount:""}),d=g(null);async function c(){var n;try{await((n=d.value)==null?void 0:n.validate())}catch{}}return(n,e)=>{const o=s("ElFormItem"),a=s("ElTableColumn"),p=s("ElTable"),F=s("ElOption"),B=s("ElSelect");return f(),b(r(h),{"label-width":"140px",model:t.value,ref_key:"formRef",ref:d,rules:r(x)},{default:l(()=>[u(o,{label:"\u8BA1\u63D0\u660E\u7EC6"},{default:l(()=>[u(r(v),{style:{width:"100%"},columns:r(q),data:{}},null,8,["columns"])]),_:1}),u(o,{label:"\u5173\u8054\u51ED\u8BC1"},{default:l(()=>[u(p,{size:"small",border:""},{default:l(()=>[_(' <ElTableColumn label="\u51ED\u8BC1\u7F16\u53F7" /> '),u(a,{label:"\u5546\u54C1\u7F16\u53F7"}),u(a,{label:"\u5546\u54C1\u540D\u79F0"}),u(a,{label:"\u8D26\u9762\u6570\u91CF"}),u(a,{label:"\u76EE\u6807\u5546\u54C1\u6BD4\u4F8B"}),u(a,{label:"\u5173\u8054\u6570\u91CF"}),u(a,{label:"\u7A0E\u524D\u5355\u4EF7"}),u(a,{label:"\u7A0E\u540E\u5355\u4EF7"}),u(a,{width:"60px"},{label:l(()=>[e[2]||(e[2]=m(" \u64CD\u4F5C ")),u(r(E),{icon:r(O)("add")},null,8,["icon"])]),_:1})]),_:1})]),_:1}),u(o,{label:"\u8C03\u6574\u91D1\u989D",prop:"amount"},{default:l(()=>[u(r(T),{modelValue:t.value.amount,"onUpdate:modelValue":e[0]||(e[0]=i=>t.value.amount=i),placeholder:"\u8C03\u6574\u91D1\u989D",disabled:"",unit:"\u5143"},null,8,["modelValue"])]),_:1}),u(o,{label:"\u6DFB\u52A0\u81F3\u8C03\u6574\u5355",prop:"isToAdjust"},{default:l(()=>[u(B,{modelValue:t.value.isToAdjust,"onUpdate:modelValue":e[1]||(e[1]=i=>t.value.isToAdjust=i),placeholder:"\u6DFB\u52A0\u81F3\u8C03\u6574\u5355"},{default:l(()=>[u(F,{label:"\u662F",value:"1"}),u(F,{label:"\u5426",value:"0"})]),_:1},8,["modelValue"])]),_:1}),A("div",y,[u(r(E),{type:"primary",onClick:c},{default:l(()=>e[3]||(e[3]=[m("\u4FDD\u5B58")])),_:1})])]),_:1},8,["model","rules"])}}});var k=C(V,[["__file","C:/Users/89793/Desktop/projects/ticket-system/src/views/invoiceInOut/provisionOut/components/BaseForm/index.vue"]]);export{k as default};