2023-05-15 16:21:46 +08:00

1 line
6.9 KiB
JavaScript

"use strict";require("./sub-common/77c6c00ee9ac4bfa87e3885cb3a9f4ce.js");require("./sub-common/13c349ec6fe97c02f07716d358f66d11.js");require("./sub-common/b14021f24a99c16a41f3ddce1a2c0358.js");require("./sub-common/a2adaa4f70b80326c7400ed443cd7103.js");require("./sub-common/70f6ef3b44287edfd53418aa08707a3b.js");require("./sub-common/271497e280fc79153f1f116370b30522.js");(wx.webpackJsonp=wx.webpackJsonp||[]).push([[2094],{9617:function(e,s,n){var o=n(2180),l=n(4165),_=n(5861),i=n(9439),t=n(1515),a=n(2954),c=n.n(a),d=n(7294),m={common_safe_area_y:"index-module__common_safe_area_y___OXNBl","flex-col":"index-module__flex-col___ta4S2","flex-row":"index-module__flex-row___gvJNP","justify-between":"index-module__justify-between___mPn5E","justify-center":"index-module__justify-center___PsHXp","items-center":"index-module__items-center___Bzsbk","flex-item":"index-module__flex-item___vcqhb","full-100":"index-module__full-100___QK7IF","color-blue":"index-module__color-blue___cg4Ps","color-yellow":"index-module__color-yellow___PrcNP","color-green":"index-module__color-green___VP6cc","color-grey":"index-module__color-grey___aZU8t","color-white":"index-module__color-white___kquLY","s-w":"index-module__s-w___GA8NK","s-e":"index-module__s-e___IC4eX",filter:"index-module__filter___N66mA",addBox:"index-module__addBox___E7lyt",textAreaBox:"index-module__textAreaBox___LDOr_",textAreaLeft:"index-module__textAreaLeft___RoTmK",textAreaRight:"index-module__textAreaRight___TesfQ",numsTotal:"index-module__numsTotal___IxD6r",msgBox:"index-module__msgBox___m_TH9",msgLeft:"index-module__msgLeft___m_Dw6",msgFlex:"index-module__msgFlex___VfcmB",msgName:"index-module__msgName___oo6qa",msgTime:"index-module__msgTime___L8XGJ",topBox:"index-module__topBox___bKKup",topFont:"index-module__topFont___xqxKq",topMon:"index-module__topMon___rE8Pl",topBigMon:"index-module__topBigMon___v_A3n"},r="index-module__itemBox___apwUD",x="index-module__itemLeft___N2EYd",u="index-module__finkFlex___nm4YM",h="index-module__itemTitle___EjOoB",g="index-module__xing___aKWyJ",f="index-module__finkFont___BEts5",p="index-module__bigPic___aRdTY",N="index-module__itemRight___UvJPK",j="index-module__assginFont___L5dqT",w="index-module__rightFlex___ezUGf",G="index-module__placeholderStyle___JhngD",y="index-module__inputStyle___M942e",B="index-module__iconFlex___usccj",v="index-module__shu___BpvaA",F=n(6028),b=n(3416),L=n(5893),P=function Form(e){return(0,L.jsxs)(t.G7,{className:r,style:{justifyContent:"".concat(e.styleNone?"space-between":""),alignItems:"".concat(e.styleNone?"center":"")},children:[(0,L.jsxs)(t.G7,{className:x,children:[(0,L.jsxs)(t.G7,{className:u,children:[(0,L.jsx)(t.G7,{className:h,children:e.title}),e.require&&(0,L.jsx)(t.xv,{className:g,children:"*"})]}),e.showSizeFont&&(0,L.jsx)(t.G7,{className:f,children:"展示大小写"})]}),e.showPic&&(0,L.jsx)(t.G7,{className:p,children:(0,L.jsx)(b.Z,{onChange:e.getImageList,defaultList:e.PicList,onlyRead:e.onlyRead})}),!e.showPic&&(0,L.jsxs)(t.G7,{className:N,onClick:function onClick(){var s;return null===(s=e.navTo)||void 0===s?void 0:s.call(e)},style:{justifyContent:"".concat(e.showSizeFont?"":"space-between"),alignItems:"".concat(e.showSizeFont?"":"center"),display:"".concat(e.showSizeFont?"":"flex")},children:[(0,L.jsxs)(t.G7,{className:w,children:[e.isInput&&(0,L.jsx)(t.II,{disabled:e.disabled,placeholder:e.placeholderFont,value:e.inputValue,className:y,type:e.inputType,placeholderStyle:G,onBlur:function onBlur(s){var n;return null===(n=e.getInput)||void 0===n?void 0:n.call(e,s.detail.value)}}),!e.isInput&&(0,L.jsx)(t.G7,{className:y,children:e.inputValue})]}),(0,L.jsx)(t.G7,{className:B}),e.showMore&&(0,L.jsx)(F.Z,{name:"icon-chakanquanbukehu",size:50,color:"#000000"}),e.showScan&&(0,L.jsx)(t.G7,{className:v}),e.showScan&&(0,L.jsx)(t.G7,{onClick:function onClick(s){var n;return null===(n=e.getScan)||void 0===n?void 0:n.call(e,s)},children:(0,L.jsx)(F.Z,{name:"icon-saomiao",size:50,color:"#337FFF"})}),e.showSizeFont&&(0,L.jsx)(t.G7,{className:j,children:e.bigMoney})]})]})},S=(0,d.memo)(P),T=n(4812),k=n(2606),I=n(2498),M=function CollectionDetail(){var e=(0,a.useRouter)(),s=(0,d.useState)({}),n=(0,i.Z)(s,2),o=n[0],r=n[1],x=(0,k.$Q)().fetchData,u=function(){var s=(0,_.Z)((0,l.Z)().mark((function _callee(){var s;return(0,l.Z)().wrap((function _callee$(n){for(;;)switch(n.prev=n.next){case 0:return c().showLoading({title:"请稍等",mask:!0}),n.next=3,x({id:Number(e.params.id)});case 3:(s=n.sent).data&&(c().hideLoading(),r(s.data));case 5:case"end":return n.stop()}}),_callee)})));return function getDetail(){return s.apply(this,arguments)}}();(0,d.useEffect)((function(){r(o)}),[o]);var h=(0,d.useMemo)((function(){return o.receipt_amount/100}),[o]);return(0,d.useEffect)((function(){u()}),[]),(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)(t.G7,{className:m.topBox,children:[(0,L.jsx)(t.G7,{className:m.topFont,children:"收款金额(元)"}),(0,L.jsx)(t.G7,{className:m.topMon,children:h}),(0,L.jsx)(t.G7,{className:m.topBigMon,children:(0,I.Z)(void 0===h?0:h)})]}),(0,L.jsxs)(t.G7,{className:m.addBox,children:[(0,L.jsxs)(t.G7,{className:m.msgBox,children:[(0,L.jsx)(t.G7,{className:m.msgLeft,children:"订单编号"}),(0,L.jsxs)(t.G7,{className:m.msgFlex,children:[(0,L.jsx)(t.G7,{className:m.msgName,children:o.order_no}),(0,L.jsx)(t.G7,{className:m.msgTime,style:{color:"#E42945"},children:o.auditor_status_name})]})]}),(0,L.jsx)(S,{title:"客户名称",require:!1,isInput:!0,disabled:!0,inputValue:o.purchaser_name,showMore:!1,showScan:!1,styleNone:!0,showPic:!1,showSizeFont:!1}),(0,L.jsx)(S,{styleNone:!0,title:"收款凭证",require:!1,PicList:null==o?void 0:o.payment_credential_url,isInput:!1,showMore:!1,showScan:!1,onlyRead:!0,showPic:!0,showSizeFont:!1}),(0,L.jsx)(S,{title:"收款账户",require:!1,isInput:!1,disabled:!0,inputValue:o.receiving_account,showMore:!1,showScan:!1,styleNone:!0,showPic:!1,showSizeFont:!1}),(0,L.jsxs)(t.G7,{className:m.textAreaBox,children:[(0,L.jsx)(t.G7,{className:m.textAreaLeft,children:"备注信息"}),(0,L.jsx)(t.G7,{className:m.textAreaRight,children:o.remark})]}),(0,L.jsxs)(t.G7,{className:m.msgBox,children:[(0,L.jsx)(t.G7,{className:m.msgLeft,children:"创建信息"}),(0,L.jsxs)(t.G7,{className:m.msgFlex,children:[(0,L.jsx)(t.G7,{className:m.msgName,children:o.creator_name}),(0,L.jsx)(t.G7,{className:m.msgTime,children:(0,T.o0)(o.create_time)})]})]}),(0,L.jsxs)(t.G7,{className:m.msgBox,style:{borderBottom:"none",paddingBottom:"10rpx"},children:[(0,L.jsx)(t.G7,{className:m.msgLeft,children:"审核信息"}),(0,L.jsxs)(t.G7,{className:m.msgFlex,children:[(0,L.jsx)(t.G7,{className:m.msgName,children:o.auditor_name}),(0,L.jsx)(t.G7,{className:m.msgTime,children:(0,T.o0)(o.audit_time)})]})]})]}),(0,L.jsx)(t.G7,{className:m.safeBox,style:{height:"200rpx"}})]})};Page((0,o.createPageConfig)(M,"pages/collectionDetail/index",{root:{cn:[]}},{navigationBarTitleText:"收款单详情"}||{}))}},function(e){e.O(0,[3338,3927,750,5508,9652,4791,4352,2107,1216,8592],(function(){return s=9617,e(e.s=s);var s}));e.O()}]);