ProductInvoice-da18816d.js
2.16 KB
var m=(a,u,o)=>new Promise((s,t)=>{var n=e=>{try{i(o.next(e))}catch(r){t(r)}},v=e=>{try{i(o.throw(e))}catch(r){t(r)}},i=e=>e.done?s(e.value):Promise.resolve(e.value).then(n,v);i((o=o.apply(a,u)).next())});import{d as C,k as p,a8 as x,_ as b,a9 as B,aa as I,f as h,a0 as c,ad as M,u as y,a3 as P,a4 as S}from"./vue-5a35c3f5.js";import{b as D,B as N}from"./index-c1c2669a.js";import{C as V,D as A}from"./invoice-f64ec395.js";import{a as O,_ as R}from"./index.js";import"./antd-6b087f69.js";import"./useWindowSizeFn-cc2fb57c.js";import"./order-eff5d778.js";import"./message-c4c6f446.js";const f=a=>(P("data-v-d0c7c652"),a=a(),S(),a),U=f(()=>c("div",{style:{margin:"16px 0"}},null,-1)),j={class:"divAll"},E=f(()=>c("div",{style:{"margin-left":"22px","margin-right":"5px",width:"100px","text-align":"center","line-height":"30px"}},"生产科对账单号",-1)),T={class:"divAll"},$=f(()=>c("div",{style:{"margin-left":"0px","margin-right":"1px",width:"180px","text-align":"center","line-height":"30px"}},"生产科应付款日期",-1)),q=C({__name:"ProductInvoice",setup(a){const{createMessage:u}=O(),{error:o}=u,s=p(""),t=p(),n=p(),[v,{closeModal:i}]=D(l=>m(this,null,function*(){n.value=l.data,t.value=yield V({orderIds:n.value})})),e=p(!1);function r(){return m(this,null,function*(){if(e.value){o("请勿连续点击生成按钮,需要等待三秒再点击生成");return}e.value=!0,setTimeout(()=>{e.value=!1},3e3),yield A({orderIds:n.value,payedDate:t.value,checkNo:s.value}),i()})}function w(l){l||(s.value="")}return(l,d)=>{const g=x("a-input"),k=x("a-space");return b(),B(y(N),M(l.$attrs,{onRegister:y(v),title:"生产对账单",width:"500px",bodyStyle:{height:"140px"},onOk:r,onVisibleChange:w}),{default:I(()=>[h(k,{direction:"vertical"},{default:I(()=>[U,c("div",j,[E,h(g,{value:s.value,"onUpdate:value":d[0]||(d[0]=_=>s.value=_),placeholder:"请输入",style:{width:"320px"}},null,8,["value"])]),c("div",T,[$,h(g,{value:t.value,"onUpdate:value":d[1]||(d[1]=_=>t.value=_),disabled:""},null,8,["value"])])]),_:1})]),_:1},16,["onRegister"])}}});const X=R(q,[["__scopeId","data-v-d0c7c652"],["__file","E:/allcode/erp/test7901/order-erp-front/src/views/project/order/ProductInvoice.vue"]]);export{X as default};