inquiry.jsx 170 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971
  1. import React from "react";
  2. import $ from "jquery/src/ajax";
  3. import {
  4. Form,
  5. Radio,
  6. Icon,
  7. Button,
  8. Input,
  9. Spin,
  10. Table,
  11. message,
  12. DatePicker,
  13. Modal,
  14. Upload,
  15. Tooltip,
  16. Cascader,
  17. Tabs,
  18. Select,
  19. Col,
  20. Tag,
  21. } from "antd";
  22. import NewService from "./addService.jsx";
  23. import ResolutionDetail from "@/resolutionDetail";
  24. import moment from "moment";
  25. import "../userMangagement.less";
  26. import { areaSelect } from "@/NewDicProvinceList";
  27. import OrderRiZi from "@/orderRiZi.jsx";
  28. import {
  29. getApprovedState,
  30. getprovince,
  31. getProcessStatus,
  32. getLiquidationStatus,
  33. getNewOrderStatus,
  34. beforeUploadFile,
  35. getProvinceA,
  36. getInvoiceStatus,
  37. splitUrl,
  38. ShowModal,
  39. getProjectStatus,
  40. getboutique,
  41. getCuikuan,
  42. getjiedian,
  43. getProjectName,
  44. getApprovalTag,
  45. getApprovedType,
  46. } from "../../../tools.js";
  47. import { salesList, processStatus, approvalOptions } from "@/dataDic.js";
  48. import ShowModalDiv from "@/showModal.jsx";
  49. import { ChooseList } from "../orderNew/chooseList";
  50. import ReactToPrint from "react-to-print";
  51. import Project from "../../../../component/project";
  52. import ImgList from "../../../common/imgList";
  53. import ProjectDetailsReadOnly from "../../../common/projectDetailsReadOnly";
  54. import NewEditProject from "../../../common/projectOperation/newEditProject";
  55. import OrderItemStatus from "../../../common/orderItemStatus";
  56. import EnterpriseNameChange from "../../../common/enterpriseNameChange";
  57. import OrderCoor from "./changeComponent/orderCoor.jsx";
  58. import ContentUrl from "./contentUrl.jsx";
  59. import Order from "../../customerService/administration/order.jsx";
  60. import LogPopup from "../../../common/logPopup";
  61. import Cascaders from "../../../common/cascaders";
  62. import NewPicturesWall from "./changeComponent/picturesWall.js";
  63. import FlowChart from '../../../common/flowchart'; // 流程图
  64. import ApproveTypeTooltip from "../../../common/ApproveTypeTooltip/index.js";
  65. import ConfidenBreachView from "./confidenBreachView.jsx";
  66. const { Option } = Select;
  67. const { TabPane } = Tabs;
  68. const PicturesWall = React.createClass({
  69. getInitialState() {
  70. return {
  71. previewVisible: false,
  72. previewImage: "",
  73. fileList: this.props.pictureUrl,
  74. declarationBatch: 1,
  75. dataInfor: {},
  76. };
  77. },
  78. getDefaultProps() {
  79. return {
  80. changeClick: this.modifyChange
  81. };
  82. },
  83. handleCancel() {
  84. this.setState({ previewVisible: false });
  85. },
  86. handlePreview(file) {
  87. this.setState({
  88. previewImage: file.url || file.thumbUrl,
  89. previewVisible: true
  90. });
  91. },
  92. handleChange(info) {
  93. let fileList = info.fileList;
  94. this.setState({ fileList });
  95. this.props.fileList(fileList);
  96. },
  97. componentWillReceiveProps(nextProps) {
  98. this.state.fileList = nextProps.pictureUrl;
  99. },
  100. render() {
  101. const { previewVisible, previewImage, fileList } = this.state;
  102. const uploadButton = (
  103. <div>
  104. <Icon type="plus" />
  105. <div className="ant-upload-text">点击上传</div>
  106. </div>
  107. );
  108. return (
  109. <div style={{ display: "inline-block" }}>
  110. <Upload
  111. beforeUpload={beforeUploadFile}
  112. action={
  113. globalConfig.context +
  114. "/api/admin/orderInvoice/uploadOrderInvoiceFile"
  115. }
  116. multiple={true}
  117. data={{ sign: "order_invoice_file" }}
  118. listType="picture-card"
  119. fileList={fileList}
  120. onPreview={this.handlePreview}
  121. onChange={this.handleChange}
  122. >
  123. {uploadButton}
  124. </Upload>
  125. <Modal
  126. maskClosable={false}
  127. visible={previewVisible}
  128. footer={null}
  129. onCancel={this.handleCancel}
  130. >
  131. <img alt="example" style={{ width: "100%" }} src={previewImage} />
  132. </Modal>
  133. </div>
  134. );
  135. }
  136. });
  137. const IntentionCustomer = Form.create()(
  138. React.createClass({
  139. loadData(pageNo) {
  140. this.state.data = [];
  141. this.setState({
  142. loading: true,
  143. });
  144. $.ajax({
  145. method: "get",
  146. dataType: "json",
  147. crossDomain: false,
  148. url: globalConfig.context + "/api/admin/newOrder/orderNewList",
  149. data: {
  150. pageNo: pageNo || 1,
  151. pageSize: this.state.pagination.pageSize,
  152. specially: 5,
  153. name: this.state.customerName,
  154. orderNo: this.state.searchOrderNo,
  155. // depId: this.state.departmenttSearch,
  156. starTime: this.state.releaseDate[0],
  157. endTime: this.state.releaseDate[1],
  158. liquidationStatus: this.state.liquidationStatusSearch,
  159. contractNo: this.state.contractNoSearch,
  160. deps: this.state.departmenttList,
  161. amountStatus: this.state.amountStatus,
  162. approval: this.state.approvalSearch,
  163. projectType: this.state.projectType,
  164. processStatus: this.state.processStatusSearch,
  165. type: this.state.approvaType.length > 0 ? this.state.approvaType.toString() : undefined, //特批类型
  166. },
  167. success: function (data) {
  168. ShowModal(this);
  169. let theArr = [];
  170. if (!data.data) {
  171. if (data.error && data.error.length) {
  172. message.warning(data.error[0].message);
  173. }
  174. } else {
  175. for (let i = 0; i < data.data.list.length; i++) {
  176. let thisdata = data.data.list[i];
  177. theArr.push({
  178. key: thisdata.orderNo,
  179. id: thisdata.id,
  180. salesType: thisdata.salesType, //销售类型
  181. other: thisdata.other,
  182. deleteSign: thisdata.deleteSign,
  183. projectType: thisdata.projectType, // 会员状态
  184. orderNo: thisdata.orderNo, //订单编号
  185. totalAmount: thisdata.totalAmount, //签单金额
  186. examineName: thisdata.examineName,
  187. processStatus: thisdata.processStatus, //流程状态
  188. liquidationStatus: thisdata.liquidationStatus, //结算状态
  189. approval: thisdata.approval, //特批状态
  190. signDate: thisdata.signDate, //签单时间
  191. userName: thisdata.userName, //客户名称
  192. salesmanName: thisdata.salesmanName, //营销员名称
  193. financeName: thisdata.financeName, //财务名称
  194. createDate: thisdata.createDate, //下单时间
  195. orderStatus: thisdata.orderStatus, //订单状态
  196. depName: thisdata.depName, //部门名称
  197. contractNo: thisdata.contractNo, //合同编号
  198. invoiceAmount: thisdata.invoiceAmount, //开票金额
  199. settlementAmount: thisdata.settlementAmount, //已收款
  200. type: thisdata.type || "", // 特批类型
  201. typeExplain: thisdata.typeExplain,
  202. });
  203. }
  204. this.state.pagination.current = data.data.pageNo;
  205. this.state.pagination.total = data.data.totalCount;
  206. }
  207. if (!data.data.list.length) {
  208. this.state.pagination.current = 0;
  209. this.state.pagination.total = 0;
  210. }
  211. this.setState({
  212. pageNo: pageNo,
  213. dataSource: theArr,
  214. pagination: this.state.pagination,
  215. selectedRowKeys: [],
  216. });
  217. }.bind(this),
  218. }).always(
  219. function () {
  220. this.setState({
  221. loading: false,
  222. });
  223. }.bind(this)
  224. );
  225. },
  226. getInitialState() {
  227. return {
  228. confidenBreachData: {},
  229. approvaType: [],
  230. rotateDeg: 0,
  231. orderNos: '',
  232. kaiData: {
  233. remarks: "",
  234. type: undefined,
  235. orgCodeUrl: "",
  236. invoiceType: undefined,
  237. unitName: "",
  238. taxNumber: "",
  239. unitName: "",
  240. amount: "",
  241. banks: "",
  242. content: "",
  243. unitAddress: "",
  244. invoiceRemarks: "",
  245. unitMobile: "",
  246. post: undefined,
  247. addressee: "",
  248. addresseeMobile: "",
  249. addresseeProvince: "",
  250. addresseeCity: "",
  251. addresseeArea: "",
  252. recipientAddress: "",
  253. ordapproval: undefined,
  254. alreadyAmount: "0",
  255. ProvinceCity: [],
  256. },
  257. changeList: undefined,
  258. datauser: {},
  259. orgCodeUrl: [],
  260. selectedRowKeys: [],
  261. releaseDate: [],
  262. departmentArr: [],
  263. signBillState: false,
  264. signBillVisible: false,
  265. selectedRows: [],
  266. recordData: [],
  267. flag: false,
  268. searchMore: true,
  269. loading: false,
  270. alreadyAmount: 0,
  271. intentOrder: true,
  272. formalOrder: true,
  273. resVisible: false,
  274. pagination: {
  275. defaultCurrent: 1,
  276. defaultPageSize: 10,
  277. showQuickJumper: true,
  278. pageSize: 10,
  279. onChange: function (page) {
  280. this.loadData(page);
  281. }.bind(this),
  282. showTotal: function (total) {
  283. return "共" + total + "条数据";
  284. },
  285. },
  286. columnsX: [
  287. {
  288. title: "业务项目名称",
  289. dataIndex: "commodityName",
  290. key: "commodityName",
  291. render: (text, record) => {
  292. return <span>
  293. {text}<span style={{ color: "red" }}>{record.patentTypeName}</span>{"-" + record.id}
  294. <div>
  295. {record.cSort == 6 && record.projectType == 1 && <span>(含{record.htMember == 1 ? '高新会员&' : ''}{record.additionalDeduction == 1 ? '加计扣除&' : ''}{record.rdAwardsubsidy == 1 ? '研发奖补' : ''})</span>}
  296. {record.cSort == 6 && ([0, 3].indexOf(record.projectType) > -1) && <span>(仅提供单边会员服务)</span>}
  297. {record.cSort == 6 && record.projectType == 2 && <span>(仅填报表,仅咨询,不出备查资料)</span>}
  298. {record.cSort == 3 && <span>{record.technologyProjectType==0?'(简易项目)':record.technologyProjectType==1?'(市区级)':record.technologyProjectType==2?'(省级)':record.technologyProjectType==3?'(国家级)':''}</span>}
  299. {record.cSort == 8 ? (record.type != 2 && record.patentType == 1) ? <span>(变更)</span> : <span>{record.ordinaryRisk == 0 ? '(普通申请)' : record.ordinaryRisk == 1 ? '(风险代理)' : ''}</span> : ""}
  300. {record.type == 2 && <span>({record.days == 0 ? '普通' : record.days == 1 ? '加急' : ''}{record.scheme == 0 ? '&无方案' : record.scheme == 1 ? '&有方案' : ''})</span>}
  301. </div>
  302. </span>
  303. }
  304. },
  305. {
  306. title: "项目类别",
  307. dataIndex: "cname",
  308. key: "cname",
  309. },
  310. {
  311. title: "项目数量",
  312. dataIndex: "commodityQuantity",
  313. key: "commodityQuantity",
  314. render: (text, record) => {
  315. if (record.splitStatus == 1) {
  316. return (
  317. <span>
  318. {text}{" "}
  319. {/* <Tag
  320. color="#108ee9"
  321. onClick={(e) => {
  322. e.stopPropagation();
  323. this.showRes(record);
  324. }}
  325. >
  326. 已拆
  327. </Tag> */}
  328. </span>
  329. );
  330. } else {
  331. return text;
  332. }
  333. },
  334. },
  335. {
  336. title: "金额(万元)",
  337. dataIndex: "commodityPrice",
  338. key: "commodityPrice",
  339. },
  340. {
  341. title: "负责人",
  342. dataIndex: "contacts",
  343. key: "contacts",
  344. },
  345. {
  346. title: "负责人电话",
  347. dataIndex: "contactsMobile",
  348. key: "contactsMobile",
  349. },
  350. {
  351. title: "主要项目",
  352. dataIndex: "main",
  353. key: "main",
  354. render: (text) => {
  355. return text ? "是" : "否";
  356. },
  357. },
  358. {
  359. title: "总年限",
  360. dataIndex: "yearSum",
  361. key: "yearSum",
  362. render: (text, record) => {
  363. return (
  364. <div>{["", "一年", "二年", "三年", "四年", "五年"][text]}</div>
  365. );
  366. }
  367. },
  368. {
  369. title: "年限",
  370. dataIndex: "serviceLife",
  371. key: "serviceLife",
  372. render: (text, record) => {
  373. return (
  374. <div>{!!text && JSON.parse(text).toString()}</div>
  375. );
  376. }
  377. },
  378. {
  379. title: "本次派单",
  380. dataIndex: "serviceYear",
  381. key: "serviceYear",
  382. render: (text, record) => {
  383. return (
  384. <div>{!text ? "" : text}</div>
  385. );
  386. }
  387. },
  388. {
  389. title: "项目说明",
  390. dataIndex: "taskComment",
  391. key: "taskComment",
  392. render: (text, record) => {
  393. let textStr = text;
  394. return (
  395. <Tooltip title={textStr}>
  396. <div
  397. style={{
  398. width: 100,
  399. overflow: "hidden",
  400. whiteSpace: "nowrap",
  401. textOverflow: "ellipsis",
  402. }}
  403. >{textStr}</div>
  404. </Tooltip>
  405. )
  406. },
  407. },
  408. ],
  409. ContactsListsNew: [
  410. {
  411. title: "项目名称",
  412. dataIndex: "commodityName",
  413. key: "commodityName",
  414. render: (text, record) => {
  415. return <span>{text + "-" + record.tid}</span>;
  416. },
  417. },
  418. {
  419. title: "项目分类",
  420. dataIndex: "projectType",
  421. key: "projectType",
  422. render: (text) => {
  423. let arr = this.state.dataSourceX || [];
  424. let str = "";
  425. for (let i = 0; i < arr.length; i++) {
  426. if (this.state.dataSourceX[i].sort == text) {
  427. str = this.state.dataSourceX[i].cname;
  428. return <span>{str}</span>;
  429. }
  430. }
  431. },
  432. },
  433. {
  434. title: "催款科目",
  435. dataIndex: "dunTypeName",
  436. key: "dunTypeName",
  437. render: (text, record) => {
  438. if (record.customizeName) {
  439. return text + record.customizeName;
  440. }
  441. return <span>{text}</span>;
  442. },
  443. },
  444. {
  445. title: "时间(天)",
  446. dataIndex: "waitDay",
  447. key: "waitDay",
  448. render: (text, record) => {
  449. if (record.dunTypeName) {
  450. if (record.customizeTimes) {
  451. return record.customizeTimes;
  452. }
  453. return <span>{text}</span>;
  454. }
  455. },
  456. },
  457. {
  458. title: "金额(万元)",
  459. dataIndex: "money",
  460. key: "money",
  461. render: (text, record) => {
  462. if (record.dunTypeName) {
  463. if (record.appropriationRatio) {
  464. let percent = Number(record.appropriationRatio * 100).toFixed(2);
  465. percent += "%";
  466. return <span>{percent}(拨款比例)</span>;
  467. } else {
  468. return <span>{text}</span>;
  469. }
  470. }
  471. },
  472. },
  473. {
  474. title: "服务年限",
  475. dataIndex: "startDate",
  476. key: "startDate",
  477. render: (text, record) => {
  478. if (record.dunTypeName) {
  479. return <span>{text}</span>;
  480. }
  481. },
  482. },
  483. {
  484. title: "催款状态",
  485. dataIndex: "status",
  486. key: "status",
  487. render: (text) => {
  488. return <span>{text == 1 ? "已启动" : "未启动"}</span>;
  489. },
  490. },
  491. ],
  492. ContactsLists: [
  493. {
  494. title: "催款科目",
  495. dataIndex: "dunSubject",
  496. key: "dunSubject",
  497. render: (text) => {
  498. return getjiedian(text);
  499. },
  500. },
  501. {
  502. title: "金额(万元)",
  503. dataIndex: "money",
  504. key: "money",
  505. },
  506. {
  507. title: "催款状态",
  508. dataIndex: "dunStatus",
  509. key: "dunStatus",
  510. render: (text) => {
  511. return getCuikuan(text);
  512. },
  513. },
  514. ],
  515. cuiColumns: [
  516. {
  517. title: "序号",
  518. dataIndex: "key",
  519. key: "key",
  520. },
  521. {
  522. title: "合同编号",
  523. dataIndex: "contractNo",
  524. key: "contractNo",
  525. },
  526. {
  527. title: "订单编号",
  528. dataIndex: "orderNo",
  529. key: "orderNo",
  530. },
  531. {
  532. title: "客户名称",
  533. dataIndex: "userName",
  534. key: "userName",
  535. render: text => {
  536. return (
  537. <Tooltip title={text}>
  538. <div
  539. // style={{
  540. // maxWidth: '150px',
  541. // overflow: 'hidden',
  542. // textOverflow: "ellipsis",
  543. // whiteSpace: 'nowrap',
  544. // }}
  545. >{text}</div>
  546. </Tooltip>
  547. )
  548. }
  549. },
  550. {
  551. title: "订单负责人",
  552. dataIndex: "salesmanName",
  553. key: "salesmanName",
  554. },
  555. {
  556. title: "订单部门",
  557. dataIndex: "depName",
  558. key: "depName",
  559. },
  560. {
  561. title: "订单状态",
  562. dataIndex: "orderStatus",
  563. key: "orderStatus",
  564. render: (text) => {
  565. return getNewOrderStatus(text);
  566. },
  567. },
  568. {
  569. title: "项目状态",
  570. dataIndex: "projectStatus",
  571. key: "projectStatus",
  572. render: (text) => {
  573. return getProjectName(text);
  574. },
  575. },
  576. {
  577. title: "签单金额",
  578. dataIndex: "totalAmount",
  579. key: "totalAmount",
  580. },
  581. {
  582. title: "结算状态",
  583. dataIndex: "liquidationStatus",
  584. key: "liquidationStatus",
  585. render: (text) => {
  586. return getLiquidationStatus(text);
  587. },
  588. },
  589. {
  590. title: "已收款",
  591. dataIndex: "settlementAmount",
  592. key: "settlementAmount",
  593. },
  594. {
  595. title: "应收款",
  596. dataIndex: "accountsReceivable",
  597. key: "accountsReceivable",
  598. },
  599. {
  600. title: "催收科目",
  601. dataIndex: "dunSubject",
  602. key: "dunSubject",
  603. // render: text => {
  604. // return getjiedian(text);
  605. // }
  606. },
  607. {
  608. title: "催款状态",
  609. dataIndex: "dunStatus",
  610. key: "dunStatus",
  611. },
  612. {
  613. title: "催收启动时间",
  614. dataIndex: "startDate",
  615. key: "startDate",
  616. },
  617. ],
  618. proColumns: [
  619. {
  620. title: "序号",
  621. dataIndex: "key",
  622. key: "key",
  623. },
  624. {
  625. title: "合同编号",
  626. dataIndex: "contractNo",
  627. key: "contractNo",
  628. },
  629. {
  630. title: "订单编号",
  631. dataIndex: "orderNo",
  632. key: "orderNo",
  633. },
  634. // {
  635. // title: "项目编号",
  636. // dataIndex: "id",
  637. // key: "id"
  638. // },
  639. {
  640. title: "客户名称",
  641. dataIndex: "userName",
  642. key: "userName",
  643. render: text => {
  644. return (
  645. <Tooltip title={text}>
  646. <div
  647. // style={{
  648. // maxWidth: '150px',
  649. // overflow: 'hidden',
  650. // textOverflow: "ellipsis",
  651. // whiteSpace: 'nowrap',
  652. // }}
  653. >{text}</div>
  654. </Tooltip>
  655. )
  656. }
  657. },
  658. {
  659. title: "订单负责人",
  660. dataIndex: "salesmanName",
  661. key: "salesmanName",
  662. },
  663. {
  664. title: "是否主项目",
  665. dataIndex: "main",
  666. key: "main",
  667. render: (text) => {
  668. return text == 0 ? "否" : "是";
  669. },
  670. },
  671. {
  672. title: "项目类别",
  673. dataIndex: "cname",
  674. key: "cname",
  675. },
  676. {
  677. title: "项目名称",
  678. dataIndex: "commodityName",
  679. key: "commodityName",
  680. },
  681. {
  682. title: "项目数量",
  683. dataIndex: "commodityQuantity",
  684. key: "commodityQuantity",
  685. render: (text, record) => {
  686. if (record.splitStatus == 1) {
  687. return (
  688. <span>
  689. {text}{" "}
  690. <Tag
  691. color="#108ee9"
  692. onClick={(e) => {
  693. e.stopPropagation();
  694. this.showRes(record);
  695. }}
  696. >
  697. 已拆
  698. </Tag>
  699. </span>
  700. );
  701. } else {
  702. return text;
  703. }
  704. },
  705. },
  706. {
  707. title: "服务市价",
  708. dataIndex: "commodityPrice",
  709. key: "commodityPrice",
  710. render: (text) => {
  711. return "****";
  712. },
  713. },
  714. {
  715. title: "证书编号",
  716. dataIndex: "certificateNumber",
  717. key: "certificateNumber",
  718. },
  719. {
  720. title: "项目状态",
  721. dataIndex: "projectStatus",
  722. key: "projectStatus",
  723. render: (text) => {
  724. return getProjectName(text);
  725. },
  726. },
  727. {
  728. title: "项目说明",
  729. dataIndex: "taskComment",
  730. key: "taskComment",
  731. },
  732. // {
  733. // title: "外包(内部)公司",
  734. // dataIndex: "outsourceName",
  735. // key: "outsourceName",
  736. // },
  737. // {
  738. // title: "外包(内部)价格",
  739. // dataIndex: "outsourcePrice",
  740. // key: "outsourcePrice",
  741. // render: (text) => {
  742. // return "****";
  743. // },
  744. // },
  745. ],
  746. columns: [
  747. {
  748. title: "销售类型",
  749. dataIndex: "salesType",
  750. key: "salesType",
  751. render: (text, record) => {
  752. return (
  753. <Tooltip
  754. title={salesList[text] + ((text == 3 || text == 4 || text == 5) ? (!record.other ? "" : "," + record.other) : "")}
  755. >
  756. <span>
  757. {salesList[text]}
  758. </span>
  759. </Tooltip>
  760. );
  761. },
  762. },
  763. {
  764. title: "特批类型",
  765. dataIndex: "type",
  766. key: "type",
  767. width: 110,
  768. render: (text, record) => {
  769. return (
  770. <span>
  771. {getApprovedType(text ? text.split(",").map(Number) : [], record.typeExplain)}
  772. </span>
  773. );
  774. },
  775. },
  776. {
  777. title: "合同编号",
  778. dataIndex: "contractNo",
  779. key: "contractNo",
  780. // fixed: 'left'
  781. // width: 130,
  782. render: (text, record) => {
  783. return (
  784. <Tooltip
  785. title={
  786. <Button
  787. type="primary"
  788. onClick={(e) => {
  789. e.stopPropagation();
  790. let input = document.getElementById("copyText");
  791. input.value = text;
  792. input.select();
  793. document.execCommand("copy");
  794. message.success("复制成功");
  795. }}
  796. >
  797. 复制
  798. </Button>
  799. }
  800. >
  801. <div>
  802. {text}
  803. <div style={{ display: "flex" }}>
  804. <OrderItemStatus deleteSign={record.deleteSign} />
  805. {getApprovalTag(record.approval)}
  806. </div>
  807. </div>
  808. </Tooltip>
  809. );
  810. },
  811. },
  812. {
  813. title: "订单编号",
  814. dataIndex: "orderNo",
  815. key: "orderNo",
  816. // fixed: 'left'
  817. width: 140,
  818. render: (text, record) => {
  819. return (
  820. <Tooltip
  821. title={
  822. <Button
  823. type="primary"
  824. onClick={(e) => {
  825. e.stopPropagation();
  826. let input = document.getElementById("copyText");
  827. input.value = text;
  828. input.select();
  829. document.execCommand("copy");
  830. message.success("复制成功");
  831. }}
  832. >
  833. 复制
  834. </Button>
  835. }
  836. >
  837. <div>
  838. {text}
  839. <div>
  840. {record.totalAmount >= 10 && <Tag color="#ef7207">大客户</Tag>}
  841. {record.projectType == 1 && <Tag color="rgb(22, 155, 213)">会员</Tag>}
  842. </div>
  843. </div>
  844. </Tooltip>
  845. );
  846. },
  847. },
  848. {
  849. title: "客户名称",
  850. dataIndex: "userName",
  851. key: "userName",
  852. render: text => {
  853. return (
  854. <Tooltip title={text}>
  855. <div>{text}</div>
  856. </Tooltip>
  857. )
  858. }
  859. },
  860. {
  861. title: "订单部门",
  862. dataIndex: "depName",
  863. key: "depName",
  864. },
  865. {
  866. title: "下单时间",
  867. dataIndex: "createDate",
  868. key: "createTime",
  869. width: 80,
  870. },
  871. {
  872. title: "合同签订时间",
  873. dataIndex: "signDate",
  874. key: "signDate",
  875. width: 90,
  876. },
  877. {
  878. title: "流程状态",
  879. dataIndex: "processStatus",
  880. key: "processStatus",
  881. render: (text, record) => {
  882. return getProcessStatus(text, record.examineName, record.approval);
  883. },
  884. },
  885. {
  886. title: "签单金额(万元)",
  887. dataIndex: "totalAmount",
  888. key: "totalAmount",
  889. },
  890. {
  891. title: "开票金额(万元)",
  892. dataIndex: "invoiceAmount",
  893. key: "invoiceAmount",
  894. },
  895. {
  896. title: "已收款(万元)",
  897. dataIndex: "settlementAmount",
  898. key: "settlementAmount",
  899. },
  900. {
  901. title: "结算状态",
  902. dataIndex: "liquidationStatus",
  903. key: "liquidationStatus",
  904. render: (text) => {
  905. return getLiquidationStatus(text);
  906. },
  907. },
  908. // {
  909. // title: "是否特批",
  910. // dataIndex: "approval",
  911. // key: "approval",
  912. // render: (text) => {
  913. // return getApprovedState(text);
  914. // },
  915. // },
  916. {
  917. title: "订单状态",
  918. dataIndex: "orderStatus",
  919. key: "orderStatus",
  920. render: (text) => {
  921. return getNewOrderStatus(text);
  922. },
  923. },
  924. {
  925. title: "财务负责人",
  926. dataIndex: "financeName",
  927. key: "financeName",
  928. },
  929. ],
  930. columnsDate: [
  931. {
  932. title: "编号",
  933. dataIndex: "id",
  934. key: "id",
  935. },
  936. {
  937. title: "订单编号",
  938. dataIndex: "orderno",
  939. key: "orderno",
  940. },
  941. {
  942. title: "开票金额(万元)",
  943. dataIndex: "amount",
  944. key: "amount",
  945. },
  946. {
  947. title: "申请时间",
  948. dataIndex: "createTime",
  949. key: "createTime",
  950. },
  951. {
  952. title: "开票状态",
  953. dataIndex: "status",
  954. key: "status",
  955. render: (text, record) => {
  956. return <div>{getInvoiceStatus(text, record)} <LogPopup id={record.id} /></div>;
  957. },
  958. },
  959. ],
  960. dataSource: [],
  961. };
  962. },
  963. invoiceData(record) {
  964. if (this.state.flagA) return;
  965. this.setState({
  966. flagA: true,
  967. });
  968. let theorgCodeUrl = [];
  969. if (this.state.orgCodeUrl.length) {
  970. let picArr = [];
  971. this.state.orgCodeUrl.map(function (item) {
  972. if (
  973. item.response &&
  974. item.response.data &&
  975. item.response.data.length
  976. ) {
  977. picArr.push(item.response.data);
  978. }
  979. });
  980. theorgCodeUrl = picArr.join(",");
  981. }
  982. let api = "",
  983. api1 = "",
  984. method = "",
  985. fdata = {
  986. orderNo: this.state.orderNo3,
  987. type: this.state.type,
  988. status: this.state.status,
  989. approval: this.state.ordapproval,
  990. remarks: this.state.remarks,
  991. invoiceType: this.state.invoiceType,
  992. unitName: this.state.unitName,
  993. taxNumber: this.state.taxNumber,
  994. amount: parseFloat(this.state.amount),
  995. banks: this.state.banks,
  996. content: this.state.content,
  997. unitAddress: this.state.unitAddress,
  998. invoiceRemarks: this.state.invoiceRemarks,
  999. unitMobile: this.state.unitMobile,
  1000. voucherUrl: theorgCodeUrl.length ? theorgCodeUrl : "",
  1001. post: this.state.post,
  1002. addressee: this.state.addressee,
  1003. addresseeMobile: this.state.addresseeMobile,
  1004. addresseeProvince:
  1005. this.state.post === 0 ? this.state.ProvinceCity[0] : "",
  1006. addresseeCity:
  1007. this.state.post === 0 ? this.state.ProvinceCity[1] : "",
  1008. addresseeArea:
  1009. this.state.post === 0 ? this.state.ProvinceCity[2] : "",
  1010. recipientAddress: this.state.recipientAddress,
  1011. alreadyAmount: parseFloat(this.state.alreadyAmount),
  1012. },
  1013. sumData = {},
  1014. sumData1 = {};
  1015. switch (this.state.status) {
  1016. case 0:
  1017. api = "/api/admin/orderInvoice/createOrderInvoice";
  1018. sumData = fdata;
  1019. method = "post";
  1020. break;
  1021. case 1:
  1022. api = "/api/admin/orderInvoice/createOrderInvoice";
  1023. api1 = "/api/admin/orderInvoice/updateOrderInvoice";
  1024. sumData = fdata;
  1025. sumData1 = {
  1026. orderNo: this.state.orderNo3,
  1027. type: this.state.type,
  1028. status: this.state.status,
  1029. approval: this.state.ordapproval,
  1030. remarks: this.state.remarks,
  1031. invoiceType: this.state.invoiceType,
  1032. unitName: this.state.unitName,
  1033. taxNumber: this.state.taxNumber,
  1034. amount: parseFloat(this.state.amount),
  1035. banks: this.state.banks,
  1036. content: this.state.content,
  1037. unitAddress: this.state.unitAddress,
  1038. invoiceRemarks: this.state.invoiceRemarks,
  1039. unitMobile: this.state.unitMobile,
  1040. voucherUrl: theorgCodeUrl.length ? theorgCodeUrl : "",
  1041. post: this.state.post,
  1042. addressee: this.state.addressee,
  1043. addresseeMobile: this.state.addresseeMobile,
  1044. addresseeProvince:
  1045. this.state.post === 0 ? this.state.ProvinceCity[0] : "",
  1046. addresseeCity:
  1047. this.state.post === 0 ? this.state.ProvinceCity[1] : "",
  1048. addresseeArea:
  1049. this.state.post === 0 ? this.state.ProvinceCity[2] : "",
  1050. recipientAddress: this.state.recipientAddress,
  1051. alreadyAmount: parseFloat(this.state.alreadyAmount),
  1052. };
  1053. sumData1.id = this.state.id;
  1054. method = "post";
  1055. break;
  1056. case 3:
  1057. api = "/api/admin/orderInvoice/selectByIdOrderInvoice";
  1058. sumData.id = record.id;
  1059. method = "get";
  1060. break;
  1061. default:
  1062. api = "";
  1063. break;
  1064. }
  1065. if (this.state.status === 1 || this.state.status === 0) {
  1066. if (typeof this.state.type !== "number") {
  1067. message.warning("省内/外不能为空");
  1068. this.setState({
  1069. flagA: false,
  1070. });
  1071. return;
  1072. }
  1073. if (typeof this.state.invoiceType !== "number") {
  1074. message.warning("发票类型不能为空");
  1075. this.setState({
  1076. flagA: false,
  1077. });
  1078. return;
  1079. }
  1080. if (typeof theorgCodeUrl !== "string") {
  1081. message.warning("未上传图片");
  1082. this.setState({
  1083. flagA: false,
  1084. });
  1085. return;
  1086. }
  1087. if (!this.state.unitName) {
  1088. message.warning("单位名称不能为空");
  1089. this.setState({
  1090. flagA: false,
  1091. });
  1092. return;
  1093. }
  1094. if (!this.state.taxNumber) {
  1095. message.warning("税号不能为空");
  1096. this.setState({
  1097. flagA: false,
  1098. });
  1099. return;
  1100. }
  1101. if (!this.state.amount) {
  1102. message.warning("金额不能为空");
  1103. this.setState({
  1104. flagA: false,
  1105. });
  1106. return;
  1107. }
  1108. if (isNaN(this.state.amount)) {
  1109. message.warning("开票金额包含非法字符,请重新输入");
  1110. this.setState({
  1111. flagA: false,
  1112. });
  1113. return;
  1114. }
  1115. if (isNaN(this.state.alreadyAmount)) {
  1116. message.warning("开票金额总计包含非法字符,请重新输入");
  1117. this.setState({
  1118. flagA: false,
  1119. });
  1120. return;
  1121. }
  1122. if (parseFloat(this.state.alreadyAmount) < 0) {
  1123. message.warning("开票金额总计不能小于0,请重新输入");
  1124. this.setState({
  1125. flagA: false,
  1126. });
  1127. return;
  1128. }
  1129. if (!this.state.banks) {
  1130. message.warning("开户行不能为空");
  1131. this.setState({
  1132. flagA: false,
  1133. });
  1134. return;
  1135. }
  1136. if (!this.state.content) {
  1137. message.warning("开票内容及说明不能为空");
  1138. this.setState({
  1139. flagA: false,
  1140. });
  1141. return;
  1142. }
  1143. if (!this.state.unitAddress) {
  1144. message.warning("单位地址不能为空");
  1145. this.setState({
  1146. flagA: false,
  1147. });
  1148. return;
  1149. }
  1150. if (!this.state.unitMobile) {
  1151. message.warning("单位电话不能为空");
  1152. this.setState({
  1153. flagA: false,
  1154. });
  1155. return;
  1156. }
  1157. if (this.state.alreadyAmount === "") {
  1158. message.warning("开票金额总计不能为空");
  1159. this.setState({
  1160. flagA: false,
  1161. });
  1162. return;
  1163. }
  1164. }
  1165. // console.log(this.state.flag,this.state.status)
  1166. this.setState({
  1167. loading: true,
  1168. });
  1169. $.ajax({
  1170. method: method,
  1171. dataType: "json",
  1172. crossDomain: false,
  1173. url: globalConfig.context + (this.state.flag ? api1 : api),
  1174. data: this.state.flag ? sumData1 : sumData,
  1175. success: function (data) {
  1176. if (this.state.status === 3 && typeof data.data === "object") {
  1177. let thisdata = data.data;
  1178. let ProvinceCityArr = [];
  1179. let ProvinceS = thisdata.addresseeProvince; //省
  1180. let citys = thisdata.addresseeCity; //市
  1181. let Areas = thisdata.addresseeArea; //区
  1182. ProvinceCityArr.push(ProvinceS, citys, Areas);
  1183. this.setState({
  1184. orderNo: thisdata.orderNo,
  1185. type: thisdata.type,
  1186. status: thisdata.status,
  1187. ordapproval: thisdata.approval,
  1188. remarks: thisdata.remarks,
  1189. invoiceType: thisdata.invoiceType,
  1190. unitName: thisdata.unitName,
  1191. taxNumber: thisdata.taxNumber,
  1192. amount: thisdata.amount + "",
  1193. banks: thisdata.banks,
  1194. content: thisdata.content,
  1195. unitAddress: thisdata.unitAddress,
  1196. invoiceRemarks: thisdata.invoiceRemarks,
  1197. unitMobile: thisdata.unitMobile,
  1198. post: thisdata.post,
  1199. addressee: thisdata.addressee,
  1200. addresseeMobile: thisdata.addresseeMobile,
  1201. addresseeProvince: thisdata.addresseeProvince,
  1202. addresseeCity: thisdata.addresseeCity,
  1203. addresseeArea: thisdata.addresseeArea,
  1204. alreadyAmount: thisdata.alreadyAmount + "",
  1205. ProvinceCity:
  1206. ProvinceCityArr[0] != null ? ProvinceCityArr : undefined, //省市区
  1207. recipientAddress: thisdata.recipientAddress,
  1208. orgCodeUrl: thisdata.voucherUrl
  1209. ? splitUrl(
  1210. thisdata.voucherUrl,
  1211. ",",
  1212. globalConfig.avatarHost + "/upload"
  1213. )
  1214. : [],
  1215. });
  1216. }
  1217. }.bind(this),
  1218. }).done(
  1219. function (data) {
  1220. this.setState({
  1221. loading: false,
  1222. });
  1223. if (!data.error.length) {
  1224. if (this.state.status === 1) {
  1225. message.success("提交成功!");
  1226. this.visitCancels();
  1227. if (this.state.flag) {
  1228. this.inRecordData();
  1229. }
  1230. this.setState({
  1231. flagA: false,
  1232. });
  1233. } else if (this.state.status === 0) {
  1234. message.success("保存成功!");
  1235. this.visitCancels();
  1236. this.setState({
  1237. flagA: false,
  1238. });
  1239. } else if (this.state.status === 3) {
  1240. this.setState({
  1241. flag: true,
  1242. flagA: false,
  1243. });
  1244. }
  1245. } else {
  1246. message.warning(data.error[0].message);
  1247. this.setState({
  1248. flagA: false,
  1249. });
  1250. }
  1251. }.bind(this)
  1252. );
  1253. },
  1254. areset() {
  1255. this.setState({
  1256. remarks: "",
  1257. type: undefined,
  1258. orgCodeUrl: "",
  1259. invoiceType: undefined,
  1260. unitName: "",
  1261. taxNumber: "",
  1262. amount: "",
  1263. banks: "",
  1264. content: "",
  1265. unitAddress: "",
  1266. invoiceRemarks: "",
  1267. unitMobile: "",
  1268. post: undefined,
  1269. addressee: "",
  1270. addresseeMobile: "",
  1271. addresseeProvince: "",
  1272. addresseeCity: "",
  1273. addresseeArea: "",
  1274. recipientAddress: "",
  1275. ordapproval: undefined,
  1276. alreadyAmount: "",
  1277. ProvinceCity: [],
  1278. });
  1279. },
  1280. recompose(record) {
  1281. // console.log(record)
  1282. this.setState({
  1283. avisible: true,
  1284. orderNo3: record.orderno,
  1285. id: record.id,
  1286. });
  1287. this.setState(
  1288. {
  1289. status: 3,
  1290. cvisible: true,
  1291. flag: false,
  1292. },
  1293. () => {
  1294. this.invoiceData(record);
  1295. }
  1296. );
  1297. },
  1298. submitApp() {
  1299. if (this.state.status === 3) {
  1300. this.setState({
  1301. flag: true,
  1302. });
  1303. }
  1304. this.setState(
  1305. {
  1306. status: 1,
  1307. },
  1308. () => {
  1309. this.invoiceData();
  1310. }
  1311. );
  1312. },
  1313. saveApp() {
  1314. this.setState(
  1315. {
  1316. status: 0,
  1317. },
  1318. () => {
  1319. this.invoiceData();
  1320. }
  1321. );
  1322. },
  1323. reject(record) {
  1324. this.setState({
  1325. visibleR: true,
  1326. reason: record.rejectReason,
  1327. });
  1328. },
  1329. rejectCancels() {
  1330. this.setState({
  1331. visibleR: false,
  1332. });
  1333. },
  1334. rizhi() {
  1335. // console.log(this.state.orderNo);
  1336. this.setState({
  1337. loading: true,
  1338. });
  1339. $.ajax({
  1340. method: "get",
  1341. dataType: "json",
  1342. crossDomain: false,
  1343. url: "/api/admin/newOrder/selectOrderLog",
  1344. data: {
  1345. orderNo: this.state.orderNo,
  1346. },
  1347. success: function (data) {
  1348. let theArr = [];
  1349. let thisData = data.data;
  1350. if (!thisData.length) {
  1351. if (data.error && data.error.length) {
  1352. message.warning(data.error[0].message);
  1353. }
  1354. thisData = {};
  1355. } else {
  1356. for (let i = 0; i < data.data.length; i++) {
  1357. let thisdata = data.data[i];
  1358. theArr.push({
  1359. processName: thisdata.processName,
  1360. adminName: thisdata.adminName,
  1361. createDate: thisdata.createDate,
  1362. remarks: thisdata.remarks,
  1363. });
  1364. }
  1365. }
  1366. this.setState({
  1367. dataSourcerizhi: theArr,
  1368. });
  1369. }.bind(this),
  1370. }).always(
  1371. function () {
  1372. this.setState({
  1373. loading: false,
  1374. });
  1375. }.bind(this)
  1376. );
  1377. },
  1378. //查看订单日志
  1379. getOrderLog() {
  1380. this.setState({
  1381. rizhivisible: true,
  1382. });
  1383. this.rizhi();
  1384. },
  1385. closeOrderLog() {
  1386. this.setState({
  1387. rizhivisible: false,
  1388. });
  1389. },
  1390. //开票
  1391. visit(record, index) {
  1392. this.areset();
  1393. this.setState({
  1394. contractNo: this.state.dataSource[index].contractNo,
  1395. orderNo3: record.orderNo,
  1396. avisible: true,
  1397. flag: false,
  1398. invoiceType: 0,
  1399. alreadyAmount: 0,
  1400. unitName: this.state.dataSource[index].userName,
  1401. post: 1,
  1402. });
  1403. $.ajax({
  1404. method: "get",
  1405. dataType: "json",
  1406. crossDomain: false,
  1407. url: globalConfig.context + "/api/admin/orderInvoice/getInvoiceDetails",
  1408. data: {
  1409. orderNo: record.orderNo,
  1410. },
  1411. success: (data) => {
  1412. if (data.error.length) {
  1413. message.warning(data.error[0].message);
  1414. } else if (data.data) {
  1415. const thisdata = data.data;
  1416. this.setState({
  1417. contractNo: thisdata.contractNo,
  1418. orderNo: thisdata.orderNo,
  1419. ordapproval: thisdata.approval,
  1420. type: thisdata.type,
  1421. status: thisdata.status,
  1422. remarks: thisdata.remarks,
  1423. invoiceType: thisdata.invoiceType,
  1424. unitName: thisdata.unitName,
  1425. taxNumber: thisdata.taxNumber,
  1426. amount: thisdata.amount,
  1427. banks: thisdata.banks,
  1428. content: thisdata.content,
  1429. unitAddress: thisdata.unitAddress,
  1430. invoiceRemarks: thisdata.invoiceRemarks,
  1431. unitMobile: thisdata.unitMobile,
  1432. post: thisdata.post,
  1433. addressee: thisdata.addressee,
  1434. addresseeMobile: thisdata.addresseeMobile,
  1435. addresseeProvince: thisdata.addresseeProvince,
  1436. addresseeCity: thisdata.addresseeCity,
  1437. addresseeArea: thisdata.addresseeArea,
  1438. alreadyAmount: thisdata.alreadyAmount,
  1439. recipientAddress: thisdata.recipientAddress,
  1440. orgCodeUrl: thisdata.voucherUrl
  1441. ? splitUrl(
  1442. thisdata.voucherUrl,
  1443. ",",
  1444. globalConfig.avatarHost + "/upload"
  1445. )
  1446. : [],
  1447. });
  1448. }
  1449. },
  1450. });
  1451. },
  1452. visitCancels() {
  1453. this.setState({
  1454. avisible: false,
  1455. cvisible: false,
  1456. });
  1457. },
  1458. //查看开票历史记录详情
  1459. dtableRowClick(record) {
  1460. this.setState({
  1461. dvisible: true,
  1462. });
  1463. this.setState({
  1464. loading: true,
  1465. });
  1466. $.ajax({
  1467. method: "get",
  1468. dataType: "json",
  1469. crossDomain: false,
  1470. url:
  1471. globalConfig.context +
  1472. "/api/admin/orderInvoice/selectByIdOrderInvoice",
  1473. data: {
  1474. id: record.id,
  1475. },
  1476. success: function (data) {
  1477. let thisdata = data.data;
  1478. this.setState({
  1479. contractNo: thisdata.contractNo,
  1480. orderNo: thisdata.orderNo,
  1481. ordapproval: thisdata.approval,
  1482. type: thisdata.type,
  1483. status: thisdata.status,
  1484. remarks: thisdata.remarks,
  1485. invoiceType: thisdata.invoiceType,
  1486. unitName: thisdata.unitName,
  1487. taxNumber: thisdata.taxNumber,
  1488. amount: thisdata.amount,
  1489. banks: thisdata.banks,
  1490. content: thisdata.content,
  1491. unitAddress: thisdata.unitAddress,
  1492. invoiceRemarks: thisdata.invoiceRemarks,
  1493. unitMobile: thisdata.unitMobile,
  1494. post: thisdata.post,
  1495. addressee: thisdata.addressee,
  1496. addresseeMobile: thisdata.addresseeMobile,
  1497. addresseeProvince: thisdata.addresseeProvince,
  1498. addresseeCity: thisdata.addresseeCity,
  1499. addresseeArea: thisdata.addresseeArea,
  1500. alreadyAmount: thisdata.alreadyAmount,
  1501. recipientAddress: thisdata.recipientAddress,
  1502. orgCodeUrl: thisdata.voucherUrl
  1503. ? splitUrl(
  1504. thisdata.voucherUrl,
  1505. ",",
  1506. globalConfig.avatarHost + "/upload"
  1507. )
  1508. : [],
  1509. });
  1510. }.bind(this),
  1511. }).done(
  1512. function () {
  1513. this.setState({
  1514. loading: false,
  1515. });
  1516. }.bind(this)
  1517. );
  1518. },
  1519. //关闭开票历史记录详情
  1520. dvisitCancels() {
  1521. this.setState({
  1522. dvisible: false,
  1523. });
  1524. },
  1525. inRecordData() {
  1526. this.setState({
  1527. loading: true,
  1528. });
  1529. $.ajax({
  1530. method: "get",
  1531. dataType: "json",
  1532. crossDomain: false,
  1533. url:
  1534. globalConfig.context +
  1535. "/api/admin/orderInvoice/salesmanOrderInvoiceList",
  1536. data: {
  1537. orderNo: this.state.orderNo2,
  1538. },
  1539. success: function (data) {
  1540. let theArr = [];
  1541. let sum = 0;
  1542. if (!data.data) {
  1543. if (data.error && data.error.length) {
  1544. message.warning(data.error[0].message);
  1545. }
  1546. } else {
  1547. for (let i = 0; i < data.data.list.length; i++) {
  1548. let thisdata = data.data.list[i];
  1549. sum += parseFloat(thisdata.amount);
  1550. theArr.push({
  1551. id: thisdata.id,
  1552. orderno: thisdata.orderno, //订单编号
  1553. amount: thisdata.amount, //签单金额
  1554. createTime: thisdata.createTime, //流程状态
  1555. status: thisdata.status, //结算状态
  1556. rejectReason: thisdata.rejectReason,
  1557. approval: thisdata.approval,
  1558. examineName: thisdata.examineName,
  1559. });
  1560. }
  1561. }
  1562. this.setState({
  1563. recordData: theArr,
  1564. sum: sum.toFixed(6),
  1565. });
  1566. }.bind(this),
  1567. }).done(
  1568. function () {
  1569. this.setState({
  1570. loading: false,
  1571. });
  1572. }.bind(this)
  1573. );
  1574. },
  1575. inRecord(record) {
  1576. this.setState(
  1577. {
  1578. bvisible: true,
  1579. orderNo2: this.state.selectedRowKeys[0],
  1580. },
  1581. () => {
  1582. this.inRecordData();
  1583. }
  1584. );
  1585. },
  1586. inRecordCanl() {
  1587. this.setState({
  1588. bvisible: false,
  1589. });
  1590. },
  1591. // 拆分详细
  1592. showRes(record) {
  1593. this.setState({
  1594. resVisible: true,
  1595. resRecord: record,
  1596. });
  1597. },
  1598. resCancel() {
  1599. this.setState({
  1600. resVisible: false,
  1601. });
  1602. },
  1603. //结项
  1604. delectRow(record) {
  1605. this.setState({
  1606. loading: true,
  1607. });
  1608. $.ajax({
  1609. method: "get",
  1610. dataType: "json",
  1611. crossDomain: false,
  1612. url: globalConfig.context + "/api/admin/newOrder/OrderOver",
  1613. data: {
  1614. orderNo: record.orderNo,
  1615. },
  1616. }).done(
  1617. function (data) {
  1618. if (!data.error.length) {
  1619. message.success("该项目已成功结项!");
  1620. this.loadData();
  1621. } else {
  1622. message.warning(data.error[0].message);
  1623. }
  1624. this.setState({
  1625. loading: false,
  1626. });
  1627. }.bind(this)
  1628. );
  1629. },
  1630. //是否退款
  1631. refundCancel(record) {
  1632. this.refund(record, 0);
  1633. },
  1634. refundOk(record) {
  1635. this.refund(record, 1);
  1636. },
  1637. refund(record, index) {
  1638. this.setState({
  1639. signBillVisible: false,
  1640. selectedRowKeys: [],
  1641. loading: true,
  1642. userDetaile: false,
  1643. });
  1644. $.ajax({
  1645. method: "get",
  1646. dataType: "json",
  1647. crossDomain: false,
  1648. url: globalConfig.context + "/api/admin/order/confirmRefund",
  1649. data: {
  1650. orderNo: record.orderNo,
  1651. confirm: index,
  1652. },
  1653. }).done(
  1654. function (data) {
  1655. if (!data.error.length) {
  1656. message.success("操作成功!");
  1657. this.setState({
  1658. loading: false,
  1659. showDesc: false,
  1660. });
  1661. }
  1662. this.loadData(this.state.pageNo);
  1663. }.bind(this)
  1664. );
  1665. },
  1666. //受理订单
  1667. admissibleOrderOk(e) {
  1668. this.admissibleOrder(e, true);
  1669. },
  1670. admissibleOrderCancel(e) {
  1671. this.admissibleOrder(e, false);
  1672. },
  1673. admissibleOrder(record, index) {
  1674. this.setState({
  1675. signBillVisible: false,
  1676. selectedRowKeys: [],
  1677. loading: true,
  1678. userDetaile: false,
  1679. });
  1680. $.ajax({
  1681. method: "POST",
  1682. dataType: "json",
  1683. crossDomain: false,
  1684. url: globalConfig.context + "/api/admin/order/confirmIntention",
  1685. data: {
  1686. orderNo: record.orderNo,
  1687. confirm: index,
  1688. },
  1689. }).done(
  1690. function (data) {
  1691. if (!data.error.length) {
  1692. message.success("操作成功!");
  1693. this.setState({
  1694. loading: false,
  1695. showDesc: false,
  1696. });
  1697. } else {
  1698. message.warning(data.error[0].message);
  1699. this.setState({
  1700. showDesc: true,
  1701. });
  1702. }
  1703. this.loadData(this.state.pageNo);
  1704. }.bind(this)
  1705. );
  1706. },
  1707. //取消订单
  1708. cancelOrder(e) {
  1709. this.operation(e, 3);
  1710. },
  1711. //作废订单
  1712. scrapOrder(e) {
  1713. this.operation(e, 2);
  1714. },
  1715. //锁定订单
  1716. lockOrder(e) {
  1717. this.operation(e, 0);
  1718. },
  1719. //解锁订单
  1720. unlockOrder(e) {
  1721. this.operation(e, 1);
  1722. },
  1723. //签单
  1724. signBill(ids) {
  1725. this.setState({
  1726. uid: ids,
  1727. signBillVisible: true,
  1728. });
  1729. },
  1730. componentWillMount() {
  1731. // this.departmentList();
  1732. this.loadData();
  1733. },
  1734. //整行点击
  1735. tableRowClick(record) {
  1736. this.xiangqing(record.orderNo);
  1737. this.xiangmu(record.orderNo);
  1738. this.jiedian(record.orderNo);
  1739. this.jiedianNew(record.orderNo);
  1740. this.setState({
  1741. visible: true,
  1742. orderNos: record.orderNo
  1743. });
  1744. },
  1745. //点击打卡项目详情
  1746. tableRowClickX(record) {
  1747. this.setState({
  1748. jid: record.id, //项目ID
  1749. kid: record.commodityId, //商品ID
  1750. commodityName: record.commodityName, //金额
  1751. commodityPrice: record.commodityPrice, //金额
  1752. commodityQuantity: record.commodityQuantity, //数量
  1753. taskComment: record.taskComment, //备注
  1754. main: record.main.toString(), //是否为主要
  1755. addnextVisible: true,
  1756. dataInfor: record,
  1757. addState: 0,
  1758. });
  1759. },
  1760. //项目详情关闭
  1761. nextCancel() {
  1762. this.setState({
  1763. addnextVisible: false,
  1764. });
  1765. },
  1766. visitCancel() {
  1767. this.setState({
  1768. visible: false,
  1769. dataSourceX: [],
  1770. contactList: [],
  1771. contactListNew: [],
  1772. });
  1773. },
  1774. //订单详情
  1775. xiangqing(orderNos) {
  1776. this.setState({
  1777. loading: true,
  1778. });
  1779. $.ajax({
  1780. method: "get",
  1781. dataType: "json",
  1782. crossDomain: false,
  1783. url: globalConfig.context + "/api/admin/newOrder/getOrderNewDetail",
  1784. data: {
  1785. orderNo: orderNos,
  1786. },
  1787. success: function (data) {
  1788. this.setState({
  1789. loading: false,
  1790. });
  1791. if (data.error.length || data.data.list == "") {
  1792. if (data.error && data.error.length) {
  1793. message.warning(data.error[0].message);
  1794. }
  1795. } else {
  1796. let thisdata = data.data;
  1797. this.setState({
  1798. orderUid: thisdata.uid,
  1799. userType: thisdata.userType,
  1800. salesType: thisdata.salesType, //销售类型
  1801. other: thisdata.other,
  1802. orderNo: thisdata.orderNo, //订单编号
  1803. contractNo: thisdata.contractNo, //合同编号
  1804. userName: thisdata.userName, //客户名称
  1805. signDate: thisdata.signDate, //签单时间
  1806. examineName: thisdata.examineName,
  1807. processStatus: thisdata.processStatus, //流程状态
  1808. liquidationStatus: thisdata.liquidationStatus, //结算状态
  1809. contacts: thisdata.contacts, //企业联系人
  1810. contactMobile: thisdata.contactMobile, //联系人电话
  1811. legalPerson: thisdata.legalPerson, //法人
  1812. legalPersonTel: thisdata.legalPersonTel, //法人电话
  1813. firstAmount: thisdata.firstAmount, //签单金额
  1814. totalAmount: thisdata.totalAmount, //首付金额
  1815. approval: thisdata.approval, //特批状态
  1816. settlementAmount: thisdata.settlementAmount, //已收款项
  1817. orderRemarks: thisdata.orderRemarks, //订单留言
  1818. orgCodeUrl: thisdata.contractPictureUrl
  1819. ? splitUrl(
  1820. thisdata.contractPictureUrl,
  1821. ",",
  1822. globalConfig.avatarHost + "/upload"
  1823. )
  1824. : [], //图片地址
  1825. replenishUrl: thisdata.agreementUrl
  1826. ? splitUrl(
  1827. thisdata.agreementUrl,
  1828. ",",
  1829. globalConfig.avatarHost + "/upload"
  1830. )
  1831. : [], //图片地址
  1832. contentUrl: thisdata.serviceContent
  1833. ? splitUrl(
  1834. thisdata.serviceContent,
  1835. ",",
  1836. globalConfig.avatarHost + "/upload"
  1837. )
  1838. : [], //图片地址
  1839. salesmanName: thisdata.salesmanName, //营销员名称
  1840. salesmanMobile: thisdata.salesmanMobile, //营销员电话
  1841. oldSalesmanName: thisdata.oldSalesmanName, //营销员名称
  1842. oldSalesmanMobile: thisdata.oldSalesmanMobile, //营销员电话
  1843. financeName: thisdata.financeName, //财务名称
  1844. financeMobile: thisdata.financeMobile, //财务电话
  1845. nowFinance: thisdata.nowFinance, //财务名称
  1846. nowFinanceMobile: thisdata.nowFinanceMobile, //财务电话
  1847. depName: thisdata.depName,
  1848. outsource: thisdata.outsource == 0 ? "否" : "是",
  1849. deleteSign: thisdata.deleteSign,
  1850. confidenBreachData: {
  1851. nda: thisdata.nda,
  1852. ndaUrl: thisdata.ndaUrl,
  1853. breachClause: thisdata.breachClause,
  1854. breachClauseUrl: thisdata.breachClauseUrl
  1855. },
  1856. });
  1857. }
  1858. }.bind(this),
  1859. }).always(
  1860. function () {
  1861. this.setState({
  1862. loading: false,
  1863. });
  1864. }.bind(this)
  1865. );
  1866. },
  1867. //项目列表
  1868. xiangmu(orderNos) {
  1869. this.setState({
  1870. loading: true,
  1871. });
  1872. $.ajax({
  1873. method: "get",
  1874. dataType: "json",
  1875. crossDomain: false,
  1876. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  1877. data: {
  1878. orderNo: orderNos,
  1879. },
  1880. success: function (data) {
  1881. this.setState({
  1882. loading: false,
  1883. });
  1884. let theArr = [];
  1885. if (data.error.length || data.data.list == "") {
  1886. if (data.error && data.error.length) {
  1887. message.warning(data.error[0].message);
  1888. }
  1889. } else {
  1890. for (let i = 0; i < data.data.length; i++) {
  1891. let thisdata = data.data[i];
  1892. thisdata.key = i;
  1893. thisdata.sort = thisdata.cSort;
  1894. theArr.push(thisdata);
  1895. }
  1896. }
  1897. this.setState({
  1898. dataSourceX: theArr,
  1899. });
  1900. }.bind(this),
  1901. }).always(
  1902. function () {
  1903. this.setState({
  1904. loading: false,
  1905. });
  1906. }.bind(this)
  1907. );
  1908. },
  1909. //节点列表
  1910. jiedian(orderNos) {
  1911. this.setState({
  1912. loading: true,
  1913. });
  1914. $.ajax({
  1915. method: "get",
  1916. dataType: "json",
  1917. crossDomain: false,
  1918. url: globalConfig.context + "/api/admin/newOrder/selectOrderDun",
  1919. data: {
  1920. orderNo: orderNos,
  1921. },
  1922. success: function (data) {
  1923. this.setState({
  1924. loading: false,
  1925. });
  1926. let theArr = [];
  1927. let thisData = [];
  1928. if (data.error.length || data.data.list == "") {
  1929. if (data.error && data.error.length) {
  1930. message.warning(data.error[0].message);
  1931. }
  1932. } else {
  1933. for (let i = 0; i < data.data.length; i++) {
  1934. thisData = data.data[i];
  1935. theArr.push({
  1936. key: i,
  1937. dunSubject: thisData.dunSubject
  1938. ? thisData.dunSubject.toString()
  1939. : "", //催款科目
  1940. id: thisData.id, //节点Id
  1941. money: thisData.money, //催款金额
  1942. dunStatus: thisData.dunStatus, //催款状态
  1943. });
  1944. }
  1945. this.setState({
  1946. contactList: theArr,
  1947. });
  1948. }
  1949. }.bind(this),
  1950. }).always(
  1951. function () {
  1952. this.setState({
  1953. loading: false,
  1954. });
  1955. }.bind(this)
  1956. );
  1957. },
  1958. //查看催款节点
  1959. jiedianNew(orderNos) {
  1960. this.setState({
  1961. loading: true,
  1962. });
  1963. $.ajax({
  1964. method: "get",
  1965. dataType: "json",
  1966. crossDomain: false,
  1967. url:
  1968. globalConfig.context + "/api/admin/newOrderDun/selectListNewOrderDun",
  1969. data: {
  1970. orderNo: orderNos,
  1971. },
  1972. success: function (data) {
  1973. this.setState({
  1974. loading: false,
  1975. });
  1976. if (data.error && data.error.length) {
  1977. message.warning(data.error[0].message);
  1978. } else {
  1979. let theArr = [];
  1980. let thisData = [];
  1981. let arr = data.data || [];
  1982. let totalCui = 0;
  1983. for (let i = 0; i < arr.length; i++) {
  1984. thisData = arr[i];
  1985. totalCui += +thisData.money;
  1986. theArr.push({
  1987. key: i,
  1988. dunSubject: thisData.dunSubject
  1989. ? thisData.dunSubject.toString()
  1990. : "", //催款科目
  1991. id: thisData.id, //节点Id
  1992. money: thisData.money, //催款金额
  1993. // orderNo: record ? record.orderNo : this.props.datauser.orderNo,
  1994. commodityName: thisData.commodityName,
  1995. projectType: thisData.projectType,
  1996. dunTypeName: thisData.dunTypeName,
  1997. status: thisData.status,
  1998. waitDay: thisData.waitDay,
  1999. effectiveCount: thisData.effectiveCount,
  2000. startDate: thisData.startDate,
  2001. dunType: thisData.dunType,
  2002. appropriationRatio: thisData.appropriationRatio,
  2003. customizeName: thisData.customizeName,
  2004. customizeTimes: thisData.customizeTimes,
  2005. tid: thisData.tid,
  2006. });
  2007. }
  2008. if (!totalCui) {
  2009. totalCui = 0;
  2010. }
  2011. totalCui = (Math.round(totalCui * 1000000) / 1000000).toFixed(6);
  2012. this.setState({
  2013. contactListNew: theArr,
  2014. totalCui,
  2015. });
  2016. }
  2017. }.bind(this),
  2018. }).always(
  2019. function () {
  2020. this.setState({
  2021. loading: false,
  2022. });
  2023. }.bind(this)
  2024. );
  2025. },
  2026. //列表各种骚操作
  2027. operation(record, index) {
  2028. this.setState({
  2029. selectedRowKeys: [],
  2030. loading: true,
  2031. showDesc: false,
  2032. });
  2033. $.ajax({
  2034. method: "get",
  2035. dataType: "json",
  2036. crossDomain: false,
  2037. url: globalConfig.context + "/api/admin/order/lockOrRevokeOrder",
  2038. data: {
  2039. orderNo: record.orderNo,
  2040. operatorType: index,
  2041. },
  2042. }).done(
  2043. function (data) {
  2044. if (!data.error.length) {
  2045. message.success("操作成功!");
  2046. this.setState({
  2047. loading: false,
  2048. });
  2049. } else {
  2050. message.warning(data.error[0].message);
  2051. }
  2052. this.loadData(this.state.pageNo);
  2053. }.bind(this)
  2054. );
  2055. },
  2056. addClick() {
  2057. this.state.userDetaile = false;
  2058. this.setState({
  2059. signBillVisible: false,
  2060. showDesc: true,
  2061. });
  2062. },
  2063. closeDesc(e, s) {
  2064. this.state.userDetaile = false;
  2065. this.state.signBillVisible = false;
  2066. this.state.showDesc = e;
  2067. if (s) {
  2068. this.loadData(this.state.pageNo);
  2069. }
  2070. },
  2071. searchSwitch() {
  2072. this.setState({
  2073. signBillVisible: false,
  2074. searchMore: !this.state.searchMore,
  2075. });
  2076. },
  2077. getOrgCodeUrl(e) {
  2078. this.setState({ orgCodeUrl: e });
  2079. },
  2080. getReplenishUrl(e) {
  2081. this.setState({ replenishUrl: e });
  2082. },
  2083. getContentUrl(e) {
  2084. this.setState({ contentUrl: e });
  2085. },
  2086. search() {
  2087. this.setState({
  2088. signBillVisible: false,
  2089. });
  2090. this.loadData();
  2091. },
  2092. reset() {
  2093. this.setState({
  2094. signBillVisible: false,
  2095. });
  2096. this.state.searchOrderNo = undefined;
  2097. this.state.orderNo = undefined;
  2098. this.state.customerName = undefined;
  2099. this.state.departmenttSearch = undefined;
  2100. this.state.releaseDate[0] = undefined;
  2101. this.state.releaseDate[1] = undefined;
  2102. this.state.projectProgress = undefined;
  2103. this.state.approval = undefined;
  2104. this.state.formalOrder = true;
  2105. this.state.intentOrder = true;
  2106. (this.state.liquidationStatusSearch = []),
  2107. (this.state.contractNoSearch = undefined);
  2108. this.state.departmenttList = [];
  2109. this.state.amountStatus = undefined;
  2110. this.state.approvalSearch = undefined;
  2111. this.state.processStatusSearch = undefined;
  2112. this.state.projectType = undefined;
  2113. this.state.approvaType = [];
  2114. this.Cascaders.empty();
  2115. this.loadData();
  2116. },
  2117. exportExec() {
  2118. let data = {
  2119. specially: 5,
  2120. name: this.state.customerName,
  2121. orderNo: this.state.searchOrderNo,
  2122. // depId: this.state.departmenttSearch,
  2123. starTime: this.state.releaseDate[0],
  2124. endTime: this.state.releaseDate[1],
  2125. liquidationStatus: this.state.liquidationStatusSearch,
  2126. contractNo: this.state.contractNoSearch,
  2127. deps: this.state.departmenttList,
  2128. amountStatus: this.state.amountStatus,
  2129. approval: this.state.approvalSearch,
  2130. projectType: this.state.projectType,
  2131. processStatus: this.state.processStatusSearch
  2132. };
  2133. for (let i in data) {
  2134. if (typeof data[i] === "undefined") {
  2135. delete data[i]
  2136. }
  2137. }
  2138. window.location.href =
  2139. globalConfig.context +
  2140. "/api/admin/newOrder/orderNewListDownload?" +
  2141. $.param(data);
  2142. },
  2143. //部门
  2144. departmentList() {
  2145. this.setState({
  2146. loading: true,
  2147. });
  2148. $.ajax({
  2149. method: "get",
  2150. dataType: "json",
  2151. crossDomain: false,
  2152. url: globalConfig.context + "/api/admin/organization/selectSuperId",
  2153. data: {},
  2154. success: function (data) {
  2155. let thedata = data.data;
  2156. let theArr = [];
  2157. if (!thedata) {
  2158. if (data.error && data.error.length) {
  2159. message.warning(data.error[0].message);
  2160. }
  2161. thedata = {};
  2162. } else {
  2163. thedata.map(function (item, index) {
  2164. theArr.push({
  2165. key: index,
  2166. name: item.name,
  2167. id: item.id,
  2168. });
  2169. });
  2170. }
  2171. this.setState({
  2172. departmentArr: theArr,
  2173. });
  2174. }.bind(this),
  2175. }).always(
  2176. function () {
  2177. this.setState({
  2178. loading: false,
  2179. });
  2180. }.bind(this)
  2181. );
  2182. },
  2183. changeList(arr) {
  2184. const newArr = [];
  2185. this.state.columns.forEach((item) => {
  2186. arr.forEach((val) => {
  2187. if (val === item.title) {
  2188. newArr.push(item);
  2189. }
  2190. });
  2191. });
  2192. this.setState({
  2193. changeList: newArr,
  2194. });
  2195. },
  2196. onSelectChange(selectedRowKeys) {
  2197. this.setState({ selectedRowKeys });
  2198. // console.log(selectedRowKeys);
  2199. },
  2200. // inRecordData() {
  2201. // this.setState({
  2202. // loading: true
  2203. // });
  2204. // $.ajax({
  2205. // method: "get",
  2206. // dataType: "json",
  2207. // crossDomain: false,
  2208. // url:
  2209. // globalConfig.context +
  2210. // "/api/admin/orderInvoice/salesmanOrderInvoiceList",
  2211. // data: {
  2212. // orderNo: this.state.selectedRowKeys[0],
  2213. // pageSize: 9999
  2214. // },
  2215. // success: function(data) {
  2216. // let theArr = [];
  2217. // let sum = 0;
  2218. // if (!data.data) {
  2219. // if (data.error && data.error.length) {
  2220. // message.warning(data.error[0].message);
  2221. // }
  2222. // } else {
  2223. // for (let i = 0; i < data.data.list.length; i++) {
  2224. // let thisdata = data.data.list[i];
  2225. // sum += parseFloat(thisdata.amount);
  2226. // theArr.push({
  2227. // id: thisdata.id,
  2228. // orderno: thisdata.orderno, //订单编号
  2229. // amount: thisdata.amount, //签单金额
  2230. // createTime: thisdata.createTime, //流程状态
  2231. // status: thisdata.status, //结算状态
  2232. // rejectReason: thisdata.rejectReason
  2233. // });
  2234. // }
  2235. // }
  2236. // this.setState({
  2237. // recordData: theArr,
  2238. // sum: sum.toFixed(4)
  2239. // });
  2240. // }.bind(this)
  2241. // }).done(
  2242. // function() {
  2243. // this.setState({
  2244. // loading: false
  2245. // });
  2246. // }.bind(this)
  2247. // );
  2248. // },
  2249. cuiData() {
  2250. this.setState({
  2251. loading: true,
  2252. });
  2253. $.ajax({
  2254. method: "get",
  2255. dataType: "json",
  2256. crossDomain: false,
  2257. url: globalConfig.context + "/api/admin/newOrder/dunOrderNewList",
  2258. data: {
  2259. orderNo: this.state.selectedRowKeys[0],
  2260. pageSize: 9999999,
  2261. },
  2262. success: function (data) {
  2263. let theArr = [];
  2264. if (!data.data || !data.data.list) {
  2265. if (data.error && data.error.length) {
  2266. message.warning(data.error[0].message);
  2267. }
  2268. } else {
  2269. for (let i = 0; i < data.data.list.length; i++) {
  2270. let thisdata = data.data.list[i];
  2271. theArr.push({
  2272. key: i + 1,
  2273. orderNo: thisdata.orderNo,
  2274. contractNo: thisdata.contractNo,
  2275. userName: thisdata.userName,
  2276. buyerName: thisdata.buyerName,
  2277. departmentName: thisdata.departmentName,
  2278. salesmanName: thisdata.salesmanName,
  2279. depName: thisdata.depName,
  2280. orderStatus: thisdata.orderStatus,
  2281. projectStatus: thisdata.projectStatus,
  2282. totalAmount: thisdata.totalAmount,
  2283. liquidationStatus: thisdata.liquidationStatus,
  2284. settlementAmount: thisdata.settlementAmount,
  2285. accountsReceivable: thisdata.accountsReceivable,
  2286. dunSubject: thisdata.dunSubject,
  2287. startDate: thisdata.startDate,
  2288. taskStatus: thisdata.taskStatus,
  2289. cname: thisdata.cname,
  2290. id: thisdata.id,
  2291. taskName: thisdata.taskName,
  2292. hours: thisdata.hours,
  2293. taskDistributionTime: thisdata.taskDistributionTime,
  2294. taskEndTime: thisdata.taskEndTime,
  2295. dunStatus: thisdata.dunStatus == 0 ? "未触发" : "已触发",
  2296. });
  2297. }
  2298. }
  2299. this.setState({
  2300. cuiDataList: theArr,
  2301. });
  2302. }.bind(this),
  2303. }).always(
  2304. function () {
  2305. this.setState({
  2306. loading: false,
  2307. });
  2308. }.bind(this)
  2309. );
  2310. },
  2311. proData() {
  2312. this.setState({
  2313. loading: true,
  2314. });
  2315. $.ajax({
  2316. method: "get",
  2317. dataType: "json",
  2318. crossDomain: false,
  2319. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  2320. data: {
  2321. orderNo: this.state.selectedRowKeys[0],
  2322. pageSize: 9999999,
  2323. },
  2324. success: function (data) {
  2325. let theArr = [];
  2326. let totalWaibao = 0;
  2327. if (!data.data) {
  2328. if (data.error && data.error.length) {
  2329. message.warning(data.error[0].message);
  2330. }
  2331. } else {
  2332. for (let i = 0; i < data.data.length; i++) {
  2333. let thisdata = data.data[i];
  2334. totalWaibao += thisdata.outsourcePrice;
  2335. thisdata.key = i + 1;
  2336. theArr.push(thisdata);
  2337. }
  2338. }
  2339. totalWaibao = (Math.round(totalWaibao * 1000000) / 1000000).toFixed(6);
  2340. this.setState({
  2341. proDataList: theArr,
  2342. totalWaibao,
  2343. });
  2344. }.bind(this),
  2345. }).always(
  2346. function () {
  2347. this.setState({
  2348. loading: false,
  2349. });
  2350. }.bind(this)
  2351. );
  2352. },
  2353. tableRowClickPro(record) {
  2354. this.setState({
  2355. pvisible: true,
  2356. record,
  2357. });
  2358. },
  2359. downImg() {
  2360. let num = 0;
  2361. for (let i = 0; i < this.state.orgCodeUrl.length; i++) {
  2362. if (this.state.orgCodeUrl[i].url == this.state.previewImage) {
  2363. num = i;
  2364. }
  2365. }
  2366. if (num == this.state.orgCodeUrl.length - 1) {
  2367. return message.warning("已经是最后一张了哦");
  2368. }
  2369. this.state.previewImage = this.state.orgCodeUrl[num + 1].url;
  2370. this.setState({
  2371. previewImage: this.state.previewImage,
  2372. rotateDeg: 0,
  2373. });
  2374. },
  2375. upImg() {
  2376. let num = 0;
  2377. for (let i = 0; i < this.state.orgCodeUrl.length; i++) {
  2378. if (this.state.orgCodeUrl[i].url == this.state.previewImage) {
  2379. num = i;
  2380. }
  2381. }
  2382. if (num == 0) {
  2383. return message.warning("已经是第一张了哦");
  2384. }
  2385. this.state.previewImage = this.state.orgCodeUrl[num - 1].url;
  2386. this.setState({
  2387. previewImage: this.state.previewImage,
  2388. rotateDeg: 0,
  2389. });
  2390. },
  2391. rotate() {
  2392. let rotateDeg = this.state.rotateDeg + 90;
  2393. this.setState({
  2394. rotateDeg,
  2395. });
  2396. },
  2397. downImgs() {
  2398. let num = 0;
  2399. for (let i = 0; i < this.state.replenishUrl.length; i++) {
  2400. if (this.state.replenishUrl[i].url == this.state.previewImage) {
  2401. num = i;
  2402. }
  2403. }
  2404. if (num == this.state.replenishUrl.length - 1) {
  2405. return message.warning("已经是最后一张了哦");
  2406. }
  2407. this.state.previewImage = this.state.replenishUrl[num + 1].url;
  2408. this.setState({
  2409. previewImage: this.state.previewImage,
  2410. rotateDeg: 0,
  2411. });
  2412. },
  2413. upImgs() {
  2414. let num = 0;
  2415. for (let i = 0; i < this.state.replenishUrl.length; i++) {
  2416. if (this.state.replenishUrl[i].url == this.state.previewImage) {
  2417. num = i;
  2418. }
  2419. }
  2420. if (num == 0) {
  2421. return message.warning("已经是第一张了哦");
  2422. }
  2423. this.state.previewImage = this.state.replenishUrl[num - 1].url;
  2424. this.setState({
  2425. previewImage: this.state.previewImage,
  2426. rotateDeg: 0,
  2427. });
  2428. },
  2429. rotates() {
  2430. let rotateDeg = this.state.rotateDeg + 90;
  2431. this.setState({
  2432. rotateDeg,
  2433. });
  2434. },
  2435. // 可展开颜色不同
  2436. addRowColor(record) {
  2437. if (!!record.splitList && record.splitList.length > 0) {
  2438. return 'light'
  2439. } else {
  2440. return 'dark'
  2441. }
  2442. },
  2443. // 管理员上传图片
  2444. updateOrderUrl() {
  2445. // 合同扫描件
  2446. let orgCodeUrl = [];
  2447. if (this.state.orgCodeUrl.length) {
  2448. let picArr = [];
  2449. this.state.orgCodeUrl.map(function (item) {
  2450. if (
  2451. item.response &&
  2452. item.response.data &&
  2453. item.response.data.length
  2454. ) {
  2455. picArr.push(item.response.data);
  2456. }
  2457. });
  2458. orgCodeUrl = picArr.join(",");
  2459. } else {
  2460. message.info("请上传合同扫描件")
  2461. return
  2462. }
  2463. // 补充协议
  2464. let replenishUrl = [];
  2465. if (this.state.replenishUrl.length) {
  2466. let picArr = [];
  2467. this.state.replenishUrl.map(function (item) {
  2468. if (
  2469. item.response &&
  2470. item.response.data &&
  2471. item.response.data.length
  2472. ) {
  2473. picArr.push(item.response.data);
  2474. }
  2475. });
  2476. replenishUrl = picArr.join(",");
  2477. }
  2478. // 服务内容
  2479. let contentUrl = [];
  2480. if (this.state.contentUrl.length) {
  2481. let picArr = [];
  2482. this.state.contentUrl.map(function (item) {
  2483. if (
  2484. item.response &&
  2485. item.response.data &&
  2486. item.response.data.length
  2487. ) {
  2488. picArr.push(item.response.data);
  2489. }
  2490. });
  2491. contentUrl = picArr.join(",");
  2492. } else {
  2493. message.info("请上传服务内容")
  2494. return
  2495. }
  2496. this.setState({
  2497. loading: true,
  2498. });
  2499. $.ajax({
  2500. url: globalConfig.context + "/api/admin/newOrder/updateOrderUrl",
  2501. method: "post",
  2502. data: {
  2503. orderNo: this.state.orderNo,
  2504. contractPictureUrl: orgCodeUrl.length ? orgCodeUrl : "",
  2505. agreementUrl: replenishUrl.length ? replenishUrl : "",
  2506. serviceContent: contentUrl.length ? contentUrl : "",
  2507. },
  2508. }).done(
  2509. function (data) {
  2510. this.setState({
  2511. loading: false,
  2512. });
  2513. if (!data.error.length) {
  2514. message.success("修改成功!");
  2515. } else {
  2516. message.warning(data.error[0].message);
  2517. }
  2518. }.bind(this)
  2519. );
  2520. },
  2521. render() {
  2522. const expandedRowRenderVip = (e) => {
  2523. const data = e.splitList;
  2524. let columns = [];
  2525. if (data instanceof Array && data.length) {
  2526. if (e.cSort == 6) {
  2527. columns = [
  2528. {
  2529. title: "负责人",
  2530. dataIndex: "receiverName",
  2531. key: "receiverName",
  2532. width: 140,
  2533. },
  2534. {
  2535. title: "负责人电话",
  2536. dataIndex: "receiverMobile",
  2537. key: "receiverMobile",
  2538. align: "center",
  2539. width: 120,
  2540. },
  2541. {
  2542. title: "会员负责人",
  2543. dataIndex: "projectMemberName",
  2544. key: "projectMemberName",
  2545. width: 140,
  2546. align: "center",
  2547. },
  2548. {
  2549. title: "项目状态",
  2550. dataIndex: "projectStatus",
  2551. key: "projectStatus",
  2552. align: "center",
  2553. width: 100,
  2554. render: (text) => {
  2555. return getProjectName(text);
  2556. },
  2557. },
  2558. {
  2559. title: "本次派单",
  2560. dataIndex: "serviceYear",
  2561. key: "serviceYear",
  2562. width: 80,
  2563. align: "center"
  2564. },
  2565. {
  2566. title: "项目说明",
  2567. dataIndex: "taskComment",
  2568. key: "taskComment",
  2569. render: (text, record) => {
  2570. let textStr = text;
  2571. let textArr = [];
  2572. if (record.htMember === 1) {
  2573. textArr.push("高新会员");
  2574. }
  2575. if (record.additionalDeduction === 1) {
  2576. textArr.push("加计扣除");
  2577. }
  2578. if (record.rdAwardsubsidy === 1) {
  2579. textArr.push("研发奖补");
  2580. }
  2581. if (textArr.length) {
  2582. textStr = `${textArr.join("&")} ${!!text ? `(${text})` : ''}`
  2583. }
  2584. return (
  2585. <Tooltip title={textStr}>
  2586. <div
  2587. // style={{
  2588. // width: 100,
  2589. // overflow: "hidden",
  2590. // whiteSpace: "nowrap",
  2591. // textOverflow: "ellipsis",
  2592. // }}
  2593. >{textStr}</div>
  2594. </Tooltip>
  2595. )
  2596. },
  2597. },
  2598. ];
  2599. } else {
  2600. columns = [
  2601. {
  2602. title: "子项目名称",
  2603. dataIndex: "taskName",
  2604. key: "taskName"
  2605. },
  2606. {
  2607. title: "子项目数量",
  2608. dataIndex: "commodityQuantity",
  2609. key: "commodityQuantity"
  2610. },
  2611. {
  2612. title: "拆分操作人",
  2613. dataIndex: "splitAname",
  2614. key: "splitAname"
  2615. },
  2616. {
  2617. title: "项目负责人",
  2618. dataIndex: "receiverName",
  2619. key: "receiverName"
  2620. },
  2621. {
  2622. title: "拆分时间",
  2623. dataIndex: "splitTimes",
  2624. key: "splitTimes"
  2625. }
  2626. ]
  2627. }
  2628. return (
  2629. <Table
  2630. columns={columns}
  2631. dataSource={data}
  2632. pagination={false}
  2633. />
  2634. );
  2635. } else {
  2636. columns = [];
  2637. return (
  2638. <p
  2639. style={{ fontWeight: "bold", color: "red", textAlign: "center" }}
  2640. >
  2641. {e.cSort == 6 ? "暂无派单" : "此项目暂未拆分"}
  2642. </p>
  2643. );
  2644. }
  2645. };
  2646. const FormItem = Form.Item;
  2647. const formItemLayout = {
  2648. labelCol: { span: 8 },
  2649. wrapperCol: { span: 14 },
  2650. };
  2651. const RadioGroup = Radio.Group;
  2652. var departmentArr = this.state.departmentArr || [];
  2653. const cuiDataList = this.state.contactList || [];
  2654. const { RangePicker } = DatePicker;
  2655. const { loading, selectedRowKeys, visible } = this.state;
  2656. const rowSelection = {
  2657. selectedRowKeys,
  2658. onChange: this.onSelectChange,
  2659. hideDefaultSelections: true,
  2660. type: "radio",
  2661. };
  2662. const approvaChildren = approvalOptions.map(i => (
  2663. <Option key={i.value}>{i.label}</Option>
  2664. ));
  2665. return (
  2666. <div className="user-content">
  2667. {this.state.resVisible ? (
  2668. <ResolutionDetail
  2669. cancel={this.resCancel}
  2670. detail={this.state.resRecord}
  2671. visible={this.state.resVisible}
  2672. id={this.state.resRecord.orderNo}
  2673. />
  2674. ) : (
  2675. ""
  2676. )}
  2677. <ShowModalDiv ShowModal={this.state.showModal} onClose={() => { this.setState({ showModal: false }) }} />
  2678. <div className="content-title">
  2679. <span
  2680. style={{
  2681. fontWeight: 900,
  2682. fontSize: 16,
  2683. display: "block",
  2684. marginBottom: 10,
  2685. }}
  2686. >
  2687. 部门订单
  2688. </span>
  2689. <Tabs
  2690. defaultActiveKey="2"
  2691. onChange={this.callback}
  2692. className="test"
  2693. >
  2694. <TabPane tab="更改表格显示数据" key="1">
  2695. <div style={{ marginLeft: 10 }}>
  2696. <ChooseList
  2697. columns={this.state.columns}
  2698. changeFn={this.changeList}
  2699. changeList={this.state.changeList}
  2700. top={55}
  2701. margin={11}
  2702. />
  2703. </div>
  2704. </TabPane>
  2705. <TabPane tab="搜索" key="2">
  2706. <div className="user-search" style={{ marginLeft: 10 }}>
  2707. <Input
  2708. placeholder="订单编号"
  2709. style={{ width: "140px" }}
  2710. value={this.state.searchOrderNo}
  2711. onChange={(e) => {
  2712. this.setState({ searchOrderNo: e.target.value });
  2713. }}
  2714. />
  2715. <Input
  2716. placeholder="客户名称"
  2717. style={{ width: "140px" }}
  2718. value={this.state.customerName}
  2719. onChange={(e) => {
  2720. this.setState({ customerName: e.target.value });
  2721. }}
  2722. />
  2723. <Cascaders
  2724. ref={node => this.Cascaders = node}
  2725. placeholder="订单部门"
  2726. id="id"
  2727. name="name"
  2728. children="list"
  2729. height={28}
  2730. onSel={(e) => {
  2731. this.setState({
  2732. departmenttList: JSON.stringify(e),
  2733. });
  2734. }}
  2735. />
  2736. {/* <Select
  2737. placeholder="订单部门"
  2738. style={{ width: 200, marginRight: 10 }}
  2739. value={this.state.departmenttList}
  2740. onChange={(e) => {
  2741. this.setState({ departmenttList: e });
  2742. }}
  2743. >
  2744. {departmentArr.map(function (item) {
  2745. return <Option key={item.id}>{item.name}</Option>;
  2746. })}
  2747. </Select> */}
  2748. <Input
  2749. placeholder="合同编号"
  2750. style={{ width: "140px" }}
  2751. value={this.state.contractNoSearch}
  2752. onChange={(e) => {
  2753. this.setState({
  2754. contractNoSearch: e.target.value,
  2755. });
  2756. }}
  2757. />
  2758. <Select
  2759. style={{ width: 120 }}
  2760. placeholder="结算状态"
  2761. value={this.state.liquidationStatusSearch}
  2762. onChange={(e) => {
  2763. this.setState({
  2764. liquidationStatusSearch: e,
  2765. });
  2766. }}
  2767. >
  2768. <Option value="0">首付待付请</Option>
  2769. <Option value="1">尾款待付清</Option>
  2770. <Option value="2">已付清</Option>
  2771. </Select>
  2772. <Select
  2773. style={{ width: 120 }}
  2774. placeholder="特批状态"
  2775. value={this.state.approvalSearch}
  2776. onChange={(e) => {
  2777. this.setState({
  2778. approvalSearch: e,
  2779. });
  2780. }}
  2781. >
  2782. <Option value="0">非特批</Option>
  2783. <Option value="1">特批待审</Option>
  2784. <Option value="2">特批通过</Option>
  2785. <Option value="4">全部特批</Option>
  2786. </Select>
  2787. <Select
  2788. style={{ width: 120 }}
  2789. placeholder="签单金额"
  2790. value={this.state.amountStatus}
  2791. onChange={(e) => {
  2792. this.setState({
  2793. amountStatus: e,
  2794. });
  2795. }}
  2796. >
  2797. <Option value="0">10万元以下</Option>
  2798. <Option value="1">10~20万元</Option>
  2799. <Option value="2">20~30万元</Option>
  2800. <Option value="3">30~40万元</Option>
  2801. <Option value="4">40万元以上</Option>
  2802. </Select>
  2803. <Select
  2804. style={{ width: 120 }}
  2805. placeholder="会员状态"
  2806. value={this.state.projectType}
  2807. onChange={(e) => {
  2808. this.setState({
  2809. projectType: e,
  2810. });
  2811. }}
  2812. >
  2813. <Option value="1">会员</Option>
  2814. <Option value="0">非会员</Option>
  2815. </Select>
  2816. <Select
  2817. style={{ width: 160 }}
  2818. placeholder="流程状态"
  2819. value={this.state.processStatusSearch}
  2820. onChange={e => {
  2821. this.setState({
  2822. processStatusSearch: e
  2823. });
  2824. }}
  2825. >
  2826. <Option value="">全部</Option>
  2827. {
  2828. processStatus.map((item) =>
  2829. <Option value={item.value} key={item.value}>{item.key}</Option>
  2830. )
  2831. }
  2832. </Select>
  2833. <Button
  2834. type="primary"
  2835. onClick={this.search}
  2836. style={{ marginLeft: "10px" }}
  2837. >
  2838. 搜索
  2839. <Icon type="search" />
  2840. </Button>
  2841. <Button onClick={this.reset}>
  2842. 重置 <Icon type="reload" />
  2843. </Button>
  2844. <div style={{ marginTop: 10 }}>
  2845. <Select
  2846. mode="multiple"
  2847. style={{ width: 200 }}
  2848. placeholder="特批类型"
  2849. value={this.state.approvaType}
  2850. onChange={e => {
  2851. this.setState({
  2852. approvaType: e
  2853. })
  2854. }}
  2855. >
  2856. {approvaChildren}
  2857. </Select>
  2858. <span style={{ marginRight: "10px" }}>下单时间 :</span>
  2859. <RangePicker
  2860. value={[
  2861. this.state.releaseDate[0]
  2862. ? moment(this.state.releaseDate[0])
  2863. : null,
  2864. this.state.releaseDate[1]
  2865. ? moment(this.state.releaseDate[1])
  2866. : null,
  2867. ]}
  2868. onChange={(data, dataString) => {
  2869. this.setState({ releaseDate: dataString });
  2870. }}
  2871. />
  2872. </div>
  2873. </div>
  2874. </TabPane>
  2875. <TabPane tab="查看" key="3">
  2876. <Button
  2877. type="primary"
  2878. style={{ margin: "11px 0px 10px 10px" }}
  2879. onClick={() => {
  2880. this.inRecord();
  2881. this.setState({
  2882. bvisible: true,
  2883. });
  2884. }}
  2885. disabled={this.state.selectedRowKeys.length != 1}
  2886. >
  2887. 查看开票详情
  2888. </Button>
  2889. <Button
  2890. type="primary"
  2891. style={{ margin: "11px 0px 10px 10px" }}
  2892. onClick={() => {
  2893. this.cuiData();
  2894. this.setState({
  2895. cuiVisible: true,
  2896. });
  2897. }}
  2898. disabled={this.state.selectedRowKeys.length != 1}
  2899. >
  2900. 查看催款详情
  2901. </Button>
  2902. <Button
  2903. type="primary"
  2904. style={{ margin: "11px 0px 10px 10px" }}
  2905. onClick={() => {
  2906. this.proData();
  2907. this.setState({
  2908. proVisible: true,
  2909. });
  2910. }}
  2911. disabled={this.state.selectedRowKeys.length != 1}
  2912. >
  2913. 查看项目进度
  2914. </Button>
  2915. {
  2916. adminData.isSuperAdmin &&
  2917. <Button
  2918. type="primary"
  2919. style={{ margin: "11px 0px 10px 10px" }}
  2920. onClick={() => {
  2921. this.exportExec()
  2922. }}
  2923. >
  2924. 导出附件
  2925. </Button>
  2926. }
  2927. </TabPane>
  2928. </Tabs>
  2929. <div className="patent-table">
  2930. <Spin spinning={this.state.loading}>
  2931. <Table
  2932. columns={
  2933. this.state.changeList == undefined
  2934. ? this.state.columns
  2935. : this.state.changeList
  2936. }
  2937. dataSource={this.state.dataSource}
  2938. scroll={{ x: 1500, y: 0 }}
  2939. pagination={this.state.pagination}
  2940. rowSelection={rowSelection}
  2941. onRowClick={this.tableRowClick}
  2942. bordered
  2943. size="small"
  2944. />
  2945. </Spin>
  2946. </div>
  2947. <NewService
  2948. uid={this.state.uid}
  2949. signBillVisible={this.state.signBillVisible}
  2950. signBillState={this.state.signBillState}
  2951. operation={this.operation}
  2952. admissibleOrder={this.admissibleOrder}
  2953. userDetaile={this.state.userDetaile}
  2954. datauser={this.state.datauser}
  2955. showDesc={this.state.showDesc}
  2956. closeDesc={this.closeDesc}
  2957. />
  2958. <Modal
  2959. maskClosable={false}
  2960. className="admin-desc-content"
  2961. footer=""
  2962. title="开具发票申请单"
  2963. width="1200px"
  2964. visible={this.state.avisible}
  2965. onOk={this.visitOks}
  2966. onCancel={this.visitCancels}
  2967. style={{ zIndex: 999 }}
  2968. >
  2969. <Form
  2970. layout="horizontal"
  2971. // id="demand-form"
  2972. style={{ paddingBottom: "40px" }}
  2973. >
  2974. <Spin spinning={this.state.loading}>
  2975. <div className="clearfix">
  2976. <div className="clearfix">
  2977. <FormItem
  2978. className="half-item"
  2979. {...formItemLayout}
  2980. label="合同编号"
  2981. >
  2982. <span>{this.state.contractNo}</span>
  2983. </FormItem>
  2984. <FormItem
  2985. className="half-item"
  2986. {...formItemLayout}
  2987. label="备注"
  2988. >
  2989. {
  2990. <Input
  2991. placeholder="填写申请发票原因"
  2992. value={this.state.remarks}
  2993. onChange={(e) => {
  2994. this.setState({ remarks: e.target.value });
  2995. }}
  2996. style={{ width: "240px" }}
  2997. />
  2998. }
  2999. </FormItem>
  3000. </div>
  3001. <div className="clearfix">
  3002. <FormItem
  3003. className="half-item"
  3004. {...formItemLayout}
  3005. label="省内/外:"
  3006. >
  3007. <RadioGroup
  3008. value={this.state.type}
  3009. onChange={(e) => {
  3010. this.setState({ type: e.target.value });
  3011. }}
  3012. >
  3013. <Radio value={0}>省内</Radio>
  3014. <Radio value={1}>省外</Radio>
  3015. </RadioGroup>
  3016. <span
  3017. style={{
  3018. position: "absolute",
  3019. color: "red",
  3020. fontSize: "10px",
  3021. lineHeight: "20px",
  3022. }}
  3023. >
  3024. 省内:湖南省<br></br>省外:除湖南省以外
  3025. </span>
  3026. </FormItem>
  3027. <FormItem
  3028. className="half-item"
  3029. {...formItemLayout}
  3030. label="特批:"
  3031. >
  3032. <RadioGroup
  3033. value={!this.state.ordapproval ? 0 : 1}
  3034. onChange={(e) => {
  3035. this.setState({ ordapproval: e.target.value });
  3036. }}
  3037. >
  3038. <Radio value={0}>否</Radio>
  3039. <Radio value={1}>是</Radio>
  3040. </RadioGroup>
  3041. <span
  3042. style={{
  3043. position: "absolute",
  3044. color: "red",
  3045. fontSize: "10px",
  3046. lineHeight: "15px",
  3047. }}
  3048. >
  3049. 注:特批单,省内省外,<br></br>分别由周总,省外总经理
  3050. <br></br>特批后,方可至开票流程
  3051. </span>
  3052. </FormItem>
  3053. </div>
  3054. <hr
  3055. style={{
  3056. border: "1px dashed #aaa",
  3057. width: "90%",
  3058. margin: "auto",
  3059. }}
  3060. />
  3061. <div style={{ marginTop: "13px", marginLeft: "16px" }}>
  3062. <span style={{ fontSize: "14px" }}>发票内容</span>
  3063. </div>
  3064. <div className="clearfix">
  3065. <FormItem
  3066. className="half-item"
  3067. {...formItemLayout}
  3068. label={
  3069. <span>
  3070. <strong style={{ color: "#f00" }}>*</strong>
  3071. 发票类型
  3072. </span>
  3073. }
  3074. >
  3075. <RadioGroup
  3076. style={{ width: "160%" }}
  3077. onChange={(e) => {
  3078. this.setState({ invoiceType: e.target.value });
  3079. }}
  3080. value={this.state.invoiceType}
  3081. >
  3082. <Radio value={0}>增值税专用发票</Radio>
  3083. <Radio value={1}>增值税普通发票</Radio>
  3084. <Radio value={2}>其他</Radio>
  3085. </RadioGroup>
  3086. </FormItem>
  3087. </div>
  3088. <div className="clearfix">
  3089. <FormItem
  3090. className="half-item"
  3091. {...formItemLayout}
  3092. label={
  3093. <span>
  3094. <strong style={{ color: "#f00" }}>*</strong>
  3095. 单位名称
  3096. </span>
  3097. }
  3098. >
  3099. {
  3100. <Input
  3101. placeholder="请输入单位名称"
  3102. value={this.state.unitName}
  3103. onChange={(e) => {
  3104. this.setState({ unitName: e.target.value });
  3105. }}
  3106. style={{ width: "240px" }}
  3107. />
  3108. }
  3109. <span
  3110. style={{
  3111. position: "absolute",
  3112. color: "red",
  3113. fontSize: "10px",
  3114. lineHeight: "15px",
  3115. width: "30%",
  3116. }}
  3117. >
  3118. 系统读取单位<br></br>名称,可修改
  3119. </span>
  3120. </FormItem>
  3121. <FormItem
  3122. className="half-item"
  3123. {...formItemLayout}
  3124. label={
  3125. <span>
  3126. <strong style={{ color: "#f00" }}>*</strong>税号
  3127. </span>
  3128. }
  3129. >
  3130. {
  3131. <Input
  3132. placeholder="请输入税号"
  3133. value={this.state.taxNumber}
  3134. onChange={(e) => {
  3135. this.setState({ taxNumber: e.target.value });
  3136. }}
  3137. style={{ width: "240px" }}
  3138. />
  3139. }
  3140. </FormItem>
  3141. <FormItem
  3142. className="half-item"
  3143. {...formItemLayout}
  3144. label={
  3145. <span>
  3146. <strong style={{ color: "#f00" }}>*</strong>
  3147. 开票金额(万元)
  3148. </span>
  3149. }
  3150. >
  3151. {
  3152. <Input
  3153. placeholder="请输入开票金额"
  3154. value={this.state.amount}
  3155. onChange={(e) => {
  3156. this.setState({ amount: e.target.value });
  3157. }}
  3158. style={{ width: "240px" }}
  3159. />
  3160. }
  3161. <span
  3162. style={{
  3163. position: "absolute",
  3164. color: "red",
  3165. fontSize: "10px",
  3166. lineHeight: "15px",
  3167. width: "30%",
  3168. }}
  3169. >
  3170. 填写本次开票<br></br>金额
  3171. </span>
  3172. </FormItem>
  3173. <FormItem
  3174. className="half-item"
  3175. {...formItemLayout}
  3176. label={
  3177. <span>
  3178. <strong style={{ color: "#f00" }}>*</strong>
  3179. 开户行及银行账号
  3180. </span>
  3181. }
  3182. >
  3183. {
  3184. <Input
  3185. placeholder="请输入开户行及银行账号"
  3186. value={this.state.banks}
  3187. onChange={(e) => {
  3188. this.setState({ banks: e.target.value });
  3189. }}
  3190. style={{ width: "240px" }}
  3191. />
  3192. }
  3193. </FormItem>
  3194. <FormItem
  3195. className="half-item"
  3196. {...formItemLayout}
  3197. label={
  3198. <span>
  3199. <strong style={{ color: "#f00" }}>*</strong>
  3200. 开票内容及说明
  3201. </span>
  3202. }
  3203. >
  3204. {
  3205. <Input
  3206. placeholder="请输入开票内容及说明"
  3207. value={this.state.content}
  3208. onChange={(e) => {
  3209. this.setState({ content: e.target.value });
  3210. }}
  3211. style={{ width: "240px" }}
  3212. />
  3213. }
  3214. </FormItem>
  3215. <FormItem
  3216. className="half-item"
  3217. {...formItemLayout}
  3218. label={
  3219. <span>
  3220. <strong style={{ color: "#f00" }}>*</strong>
  3221. 单位地址
  3222. </span>
  3223. }
  3224. >
  3225. {
  3226. <Input
  3227. placeholder="请输入单位地址"
  3228. value={this.state.unitAddress}
  3229. onChange={(e) => {
  3230. this.setState({ unitAddress: e.target.value });
  3231. }}
  3232. style={{ width: "240px" }}
  3233. />
  3234. }
  3235. </FormItem>
  3236. <FormItem
  3237. className="half-item"
  3238. {...formItemLayout}
  3239. label="备注"
  3240. >
  3241. {
  3242. <Input
  3243. placeholder="请备注开票公司名称"
  3244. value={this.state.invoiceRemarks}
  3245. onChange={(e) => {
  3246. this.setState({
  3247. invoiceRemarks: e.target.value,
  3248. });
  3249. }}
  3250. style={{ width: "240px" }}
  3251. />
  3252. }
  3253. <span
  3254. style={{
  3255. position: "absolute",
  3256. color: "red",
  3257. fontSize: "10px",
  3258. lineHeight: "15px",
  3259. width: "30%",
  3260. }}
  3261. >
  3262. 开票公司名称,<br></br>如:科德集团
  3263. </span>
  3264. </FormItem>
  3265. <FormItem
  3266. className="half-item"
  3267. {...formItemLayout}
  3268. label={
  3269. <span>
  3270. <strong style={{ color: "#f00" }}>*</strong>
  3271. 单位电话
  3272. </span>
  3273. }
  3274. >
  3275. {
  3276. <Input
  3277. placeholder="请输入单位电话"
  3278. value={this.state.unitMobile}
  3279. onChange={(e) => {
  3280. this.setState({ unitMobile: e.target.value });
  3281. }}
  3282. style={{ width: "240px" }}
  3283. />
  3284. }
  3285. </FormItem>
  3286. </div>
  3287. <div className="clearfix">
  3288. <FormItem
  3289. labelCol={{ span: 4 }}
  3290. wrapperCol={{ span: 18 }}
  3291. label={
  3292. <span>
  3293. <strong style={{ color: "#f00" }}>*</strong>
  3294. 上传附件
  3295. </span>
  3296. }
  3297. >
  3298. <PicturesWall
  3299. fileList={this.getOrgCodeUrl}
  3300. pictureUrl={this.state.orgCodeUrl}
  3301. />
  3302. <span
  3303. style={{
  3304. paddingTop: "10px",
  3305. paddingLeft: "10px",
  3306. color: "red",
  3307. fontSize: "14px",
  3308. }}
  3309. >
  3310. 注:请上传带"公司盖章"的开票申请纸质凭证
  3311. </span>
  3312. <p>图片建议:要清晰。</p>
  3313. </FormItem>
  3314. </div>
  3315. <hr
  3316. style={{
  3317. border: "1px dashed #aaa",
  3318. width: "90%",
  3319. margin: "auto",
  3320. }}
  3321. />
  3322. <div className="clearfix" style={{ marginTop: "10px" }}>
  3323. <FormItem
  3324. className="half-item"
  3325. {...formItemLayout}
  3326. label="发票是否邮寄:"
  3327. >
  3328. <RadioGroup
  3329. value={this.state.post}
  3330. onChange={(e) => {
  3331. this.setState({ post: e.target.value });
  3332. }}
  3333. >
  3334. <Radio value={0}>是</Radio>
  3335. <Radio value={1}>否</Radio>
  3336. </RadioGroup>
  3337. </FormItem>
  3338. </div>
  3339. {this.state.post === 0 ? (
  3340. <div className="clearfix">
  3341. <FormItem
  3342. className="half-item"
  3343. {...formItemLayout}
  3344. label="收信人姓名"
  3345. >
  3346. {
  3347. <Input
  3348. placeholder="请输入收信人姓名"
  3349. value={this.state.addressee}
  3350. onChange={(e) => {
  3351. this.setState({ addressee: e.target.value });
  3352. }}
  3353. style={{ width: "240px" }}
  3354. />
  3355. }
  3356. </FormItem>
  3357. <FormItem
  3358. className="half-item"
  3359. {...formItemLayout}
  3360. label="电话"
  3361. >
  3362. {
  3363. <Input
  3364. placeholder="请输入电话"
  3365. value={this.state.addresseeMobile}
  3366. onChange={(e) => {
  3367. this.setState({
  3368. addresseeMobile: e.target.value,
  3369. });
  3370. }}
  3371. style={{ width: "240px" }}
  3372. />
  3373. }
  3374. </FormItem>
  3375. </div>
  3376. ) : (
  3377. ""
  3378. )}
  3379. {this.state.post === 0 ? (
  3380. <div className="clearfix">
  3381. <FormItem
  3382. className="half-item"
  3383. {...formItemLayout}
  3384. label="省-市-区"
  3385. >
  3386. <Cascader
  3387. options={areaSelect()}
  3388. value={this.state.ProvinceCity}
  3389. placeholder="选择城市"
  3390. style={{ width: "95%" }}
  3391. onChange={(e) => {
  3392. this.setState({ ProvinceCity: e });
  3393. }}
  3394. />
  3395. </FormItem>
  3396. </div>
  3397. ) : (
  3398. ""
  3399. )}
  3400. {this.state.post === 0 ? (
  3401. <div className="clearfix">
  3402. <FormItem
  3403. className="half-item"
  3404. {...formItemLayout}
  3405. label="详细地址"
  3406. >
  3407. {
  3408. <Input
  3409. placeholder="请输入详细地址"
  3410. value={this.state.recipientAddress}
  3411. onChange={(e) => {
  3412. this.setState({
  3413. recipientAddress: e.target.value,
  3414. });
  3415. }}
  3416. style={{ width: "240px" }}
  3417. />
  3418. }
  3419. </FormItem>
  3420. </div>
  3421. ) : (
  3422. ""
  3423. )}
  3424. {/* <FormItem
  3425. className="half-item"
  3426. {...formItemLayout}
  3427. label={
  3428. <span>
  3429. <strong style={{ color: "#f00" }}>*</strong>
  3430. 开票金额总计
  3431. </span>
  3432. }
  3433. >
  3434. {
  3435. <Input
  3436. value={this.state.alreadyAmount}
  3437. onChange={(e) => {
  3438. this.setState({ alreadyAmount: e.target.value });
  3439. }}
  3440. style={{ width: "40px" }}
  3441. />
  3442. }
  3443. 万元
  3444. <span
  3445. style={{
  3446. position: "absolute",
  3447. color: "red",
  3448. fontSize: "10px",
  3449. lineHeight: "15px",
  3450. marginLeft: "20px",
  3451. }}
  3452. >
  3453. 默认值为0.新开票订单此项不用填.<br></br>
  3454. 以前已开票订单,请填写已开票的总计<br></br>
  3455. 金额,便于审核核对!
  3456. </span>
  3457. </FormItem> */}
  3458. </div>
  3459. <Button
  3460. className="cancel"
  3461. type="primary"
  3462. style={{ marginRight: "50px", float: "right" }}
  3463. size="large"
  3464. onClick={this.submitApp}
  3465. >
  3466. 提交申请
  3467. </Button>
  3468. {/*<Button className="cancel" type="primary" style={{marginRight:"50px",float:'right',background:'deepskyblue',border:'none'}} size="large" onClick={this.saveApp}>保存</Button>*/}
  3469. </Spin>
  3470. </Form>
  3471. </Modal>
  3472. <Modal
  3473. maskClosable={false}
  3474. visible={this.state.bvisible}
  3475. footer=""
  3476. title="开票历史记录"
  3477. className="admin-desc-content"
  3478. width="1200px"
  3479. onCancel={(e) => {
  3480. this.setState({
  3481. bvisible: false,
  3482. });
  3483. }}
  3484. style={{ zIndex: 5 }}
  3485. >
  3486. <Spin spinning={this.state.loading}>
  3487. <div className="patent-table">
  3488. <Table
  3489. columns={this.state.columnsDate}
  3490. onRowClick={this.dtableRowClick}
  3491. dataSource={this.state.recordData}
  3492. pagination={false}
  3493. />
  3494. <div className="clearfix" style={{ marginTop: "20px" }}>
  3495. <FormItem
  3496. className="half-item"
  3497. {...formItemLayout}
  3498. label={<span style={{ fontSize: "14px" }}>开票总计</span>}
  3499. >
  3500. <span>{this.state.sum + "(万元)"}</span>
  3501. </FormItem>
  3502. </div>
  3503. </div>
  3504. </Spin>
  3505. </Modal>
  3506. <Modal
  3507. maskClosable={false}
  3508. visible={this.state.visibleR}
  3509. className="admin-desc-content"
  3510. footer=""
  3511. title="拒绝理由"
  3512. width="400px"
  3513. onCancel={this.rejectCancels}
  3514. >
  3515. <Input.TextArea
  3516. disabled={true}
  3517. rows={4}
  3518. value={this.state.reason}
  3519. style={{ color: "black" }}
  3520. ></Input.TextArea>
  3521. </Modal>
  3522. <Modal
  3523. maskClosable={false}
  3524. className="admin-desc-content"
  3525. footer=""
  3526. title="开具发票申请单"
  3527. width="1200px"
  3528. visible={this.state.cvisible}
  3529. onOk={this.visitOks}
  3530. onCancel={this.visitCancels}
  3531. style={{ zIndex: 999 }}
  3532. >
  3533. <Form
  3534. layout="horizontal"
  3535. // id="demand-form"
  3536. style={{ paddingBottom: "40px" }}
  3537. >
  3538. <Spin spinning={this.state.loading}>
  3539. <div className="clearfix">
  3540. <div className="clearfix">
  3541. <FormItem
  3542. className="half-item"
  3543. {...formItemLayout}
  3544. label="合同编号"
  3545. >
  3546. <span>{this.state.contractNo}</span>
  3547. </FormItem>
  3548. <FormItem
  3549. className="half-item"
  3550. {...formItemLayout}
  3551. label="备注"
  3552. >
  3553. {
  3554. <Input
  3555. placeholder="填写申请发票原因"
  3556. value={this.state.remarks}
  3557. onChange={(e) => {
  3558. this.setState({ remarks: e.target.value });
  3559. }}
  3560. style={{ width: "240px" }}
  3561. />
  3562. }
  3563. </FormItem>
  3564. </div>
  3565. <div className="clearfix">
  3566. <FormItem
  3567. className="half-item"
  3568. {...formItemLayout}
  3569. label="省内/外:"
  3570. >
  3571. <RadioGroup
  3572. value={this.state.type}
  3573. onChange={(e) => {
  3574. this.setState({ type: e.target.value });
  3575. }}
  3576. >
  3577. <Radio value={0}>省内</Radio>
  3578. <Radio value={1}>省外</Radio>
  3579. </RadioGroup>
  3580. <span
  3581. style={{
  3582. position: "absolute",
  3583. color: "red",
  3584. fontSize: "10px",
  3585. lineHeight: "20px",
  3586. }}
  3587. >
  3588. 省内:湖南省<br></br>省外:除湖南省以外
  3589. </span>
  3590. </FormItem>
  3591. <FormItem
  3592. className="half-item"
  3593. {...formItemLayout}
  3594. label="特批:"
  3595. >
  3596. <RadioGroup
  3597. value={!this.state.ordapproval ? 0 : 1}
  3598. onChange={(e) => {
  3599. this.setState({ ordapproval: e.target.value });
  3600. }}
  3601. >
  3602. <Radio value={0}>否</Radio>
  3603. <Radio value={1}>是</Radio>
  3604. </RadioGroup>
  3605. <span
  3606. style={{
  3607. position: "absolute",
  3608. color: "red",
  3609. fontSize: "10px",
  3610. lineHeight: "15px",
  3611. }}
  3612. >
  3613. 注:特批单,省内省外,<br></br>分别由周总,省外总经理
  3614. <br></br>特批后,方可至开票流程
  3615. </span>
  3616. </FormItem>
  3617. </div>
  3618. <hr
  3619. style={{
  3620. border: "1px dashed #aaa",
  3621. width: "90%",
  3622. margin: "auto",
  3623. }}
  3624. />
  3625. <div style={{ marginTop: "13px", marginLeft: "16px" }}>
  3626. <span style={{ fontSize: "14px" }}>发票内容</span>
  3627. </div>
  3628. <div className="clearfix">
  3629. <FormItem
  3630. className="half-item"
  3631. {...formItemLayout}
  3632. label={
  3633. <span>
  3634. <strong style={{ color: "#f00" }}>*</strong>
  3635. 发票类型
  3636. </span>
  3637. }
  3638. >
  3639. <RadioGroup
  3640. style={{ width: "160%" }}
  3641. onChange={(e) => {
  3642. this.setState({ invoiceType: e.target.value });
  3643. }}
  3644. value={this.state.invoiceType}
  3645. >
  3646. <Radio value={0}>增值税专用发票</Radio>
  3647. <Radio value={1}>增值税普通发票</Radio>
  3648. <Radio value={2}>其他</Radio>
  3649. </RadioGroup>
  3650. </FormItem>
  3651. </div>
  3652. <div className="clearfix">
  3653. <FormItem
  3654. className="half-item"
  3655. {...formItemLayout}
  3656. label={
  3657. <span>
  3658. <strong style={{ color: "#f00" }}>*</strong>
  3659. 单位名称
  3660. </span>
  3661. }
  3662. >
  3663. {
  3664. <Input
  3665. placeholder="请输入单位名称"
  3666. value={this.state.unitName}
  3667. onChange={(e) => {
  3668. this.setState({ unitName: e.target.value });
  3669. }}
  3670. style={{ width: "240px" }}
  3671. />
  3672. }
  3673. <span
  3674. style={{
  3675. position: "absolute",
  3676. color: "red",
  3677. fontSize: "10px",
  3678. lineHeight: "15px",
  3679. width: "30%",
  3680. }}
  3681. >
  3682. 系统读取单位<br></br>名称,可修改
  3683. </span>
  3684. </FormItem>
  3685. <FormItem
  3686. className="half-item"
  3687. {...formItemLayout}
  3688. label={
  3689. <span>
  3690. <strong style={{ color: "#f00" }}>*</strong>税号
  3691. </span>
  3692. }
  3693. >
  3694. {
  3695. <Input
  3696. placeholder="请输入税号"
  3697. value={this.state.taxNumber}
  3698. onChange={(e) => {
  3699. this.setState({ taxNumber: e.target.value });
  3700. }}
  3701. style={{ width: "240px" }}
  3702. />
  3703. }
  3704. </FormItem>
  3705. <FormItem
  3706. className="half-item"
  3707. {...formItemLayout}
  3708. label={
  3709. <span>
  3710. <strong style={{ color: "#f00" }}>*</strong>
  3711. 开票金额(万元)
  3712. </span>
  3713. }
  3714. >
  3715. {
  3716. <Input
  3717. placeholder="请输入开票金额"
  3718. value={this.state.amount}
  3719. onChange={(e) => {
  3720. this.setState({ amount: e.target.value });
  3721. }}
  3722. style={{ width: "240px" }}
  3723. />
  3724. }
  3725. <span
  3726. style={{
  3727. position: "absolute",
  3728. color: "red",
  3729. fontSize: "10px",
  3730. lineHeight: "15px",
  3731. width: "30%",
  3732. }}
  3733. >
  3734. 填写本次开票<br></br>金额
  3735. </span>
  3736. </FormItem>
  3737. <FormItem
  3738. className="half-item"
  3739. {...formItemLayout}
  3740. label={
  3741. <span>
  3742. <strong style={{ color: "#f00" }}>*</strong>
  3743. 开户行及银行账号
  3744. </span>
  3745. }
  3746. >
  3747. {
  3748. <Input
  3749. placeholder="请输入开户行及银行账号"
  3750. value={this.state.banks}
  3751. onChange={(e) => {
  3752. this.setState({ banks: e.target.value });
  3753. }}
  3754. style={{ width: "240px" }}
  3755. />
  3756. }
  3757. </FormItem>
  3758. <FormItem
  3759. className="half-item"
  3760. {...formItemLayout}
  3761. label={
  3762. <span>
  3763. <strong style={{ color: "#f00" }}>*</strong>
  3764. 开票内容及说明
  3765. </span>
  3766. }
  3767. >
  3768. {
  3769. <Input
  3770. placeholder="请输入开票内容及说明"
  3771. value={this.state.content}
  3772. onChange={(e) => {
  3773. this.setState({ content: e.target.value });
  3774. }}
  3775. style={{ width: "240px" }}
  3776. />
  3777. }
  3778. </FormItem>
  3779. <FormItem
  3780. className="half-item"
  3781. {...formItemLayout}
  3782. label={
  3783. <span>
  3784. <strong style={{ color: "#f00" }}>*</strong>
  3785. 单位地址
  3786. </span>
  3787. }
  3788. >
  3789. {
  3790. <Input
  3791. placeholder="请输入单位地址"
  3792. value={this.state.unitAddress}
  3793. onChange={(e) => {
  3794. this.setState({ unitAddress: e.target.value });
  3795. }}
  3796. style={{ width: "240px" }}
  3797. />
  3798. }
  3799. </FormItem>
  3800. <FormItem
  3801. className="half-item"
  3802. {...formItemLayout}
  3803. label="备注"
  3804. >
  3805. {
  3806. <Input
  3807. placeholder="请备注开票公司名称"
  3808. value={this.state.invoiceRemarks}
  3809. onChange={(e) => {
  3810. this.setState({
  3811. invoiceRemarks: e.target.value,
  3812. });
  3813. }}
  3814. style={{ width: "240px" }}
  3815. />
  3816. }
  3817. <span
  3818. style={{
  3819. position: "absolute",
  3820. color: "red",
  3821. fontSize: "10px",
  3822. lineHeight: "15px",
  3823. width: "30%",
  3824. }}
  3825. >
  3826. 开票公司名称,<br></br>如:科德集团
  3827. </span>
  3828. </FormItem>
  3829. <FormItem
  3830. className="half-item"
  3831. {...formItemLayout}
  3832. label={
  3833. <span>
  3834. <strong style={{ color: "#f00" }}>*</strong>
  3835. 单位电话
  3836. </span>
  3837. }
  3838. >
  3839. {
  3840. <Input
  3841. placeholder="请输入单位电话"
  3842. value={this.state.unitMobile}
  3843. onChange={(e) => {
  3844. this.setState({ unitMobile: e.target.value });
  3845. }}
  3846. style={{ width: "240px" }}
  3847. />
  3848. }
  3849. </FormItem>
  3850. </div>
  3851. <div className="clearfix">
  3852. <FormItem
  3853. labelCol={{ span: 4 }}
  3854. wrapperCol={{ span: 18 }}
  3855. label={
  3856. <span>
  3857. <strong style={{ color: "#f00" }}>*</strong>
  3858. 上传附件
  3859. </span>
  3860. }
  3861. >
  3862. <PicturesWall
  3863. fileList={this.getOrgCodeUrl}
  3864. pictureUrl={this.state.orgCodeUrl}
  3865. />
  3866. <span
  3867. style={{
  3868. paddingTop: "10px",
  3869. paddingLeft: "10px",
  3870. color: "red",
  3871. fontSize: "14px",
  3872. }}
  3873. >
  3874. 注:请上传带"公司盖章"的开票申请纸质凭证
  3875. </span>
  3876. <p>图片建议:要清晰。</p>
  3877. </FormItem>
  3878. </div>
  3879. <hr
  3880. style={{
  3881. border: "1px dashed #aaa",
  3882. width: "90%",
  3883. margin: "auto",
  3884. }}
  3885. />
  3886. <div className="clearfix" style={{ marginTop: "10px" }}>
  3887. <FormItem
  3888. className="half-item"
  3889. {...formItemLayout}
  3890. label="发票是否邮寄:"
  3891. >
  3892. <RadioGroup
  3893. value={this.state.post}
  3894. onChange={(e) => {
  3895. this.setState({ post: e.target.value });
  3896. }}
  3897. >
  3898. <Radio value={0}>是</Radio>
  3899. <Radio value={1}>否</Radio>
  3900. </RadioGroup>
  3901. </FormItem>
  3902. </div>
  3903. {this.state.post === 0 ? (
  3904. <div className="clearfix">
  3905. <FormItem
  3906. className="half-item"
  3907. {...formItemLayout}
  3908. label="收信人姓名"
  3909. >
  3910. {
  3911. <Input
  3912. placeholder="请输入收信人姓名"
  3913. value={this.state.addressee}
  3914. onChange={(e) => {
  3915. this.setState({ addressee: e.target.value });
  3916. }}
  3917. style={{ width: "240px" }}
  3918. />
  3919. }
  3920. </FormItem>
  3921. <FormItem
  3922. className="half-item"
  3923. {...formItemLayout}
  3924. label="电话"
  3925. >
  3926. {
  3927. <Input
  3928. placeholder="请输入电话"
  3929. value={this.state.addresseeMobile}
  3930. onChange={(e) => {
  3931. this.setState({
  3932. addresseeMobile: e.target.value,
  3933. });
  3934. }}
  3935. style={{ width: "240px" }}
  3936. />
  3937. }
  3938. </FormItem>
  3939. </div>
  3940. ) : (
  3941. ""
  3942. )}
  3943. {this.state.post === 0 ? (
  3944. <div className="clearfix">
  3945. <FormItem
  3946. className="half-item"
  3947. {...formItemLayout}
  3948. label="省-市-区"
  3949. >
  3950. <Cascader
  3951. options={areaSelect()}
  3952. value={this.state.ProvinceCity}
  3953. placeholder="选择城市"
  3954. style={{ width: "95%" }}
  3955. onChange={(e) => {
  3956. this.setState({ ProvinceCity: e });
  3957. }}
  3958. />
  3959. </FormItem>
  3960. </div>
  3961. ) : (
  3962. ""
  3963. )}
  3964. {this.state.post === 0 ? (
  3965. <div className="clearfix">
  3966. <FormItem
  3967. className="half-item"
  3968. {...formItemLayout}
  3969. label="详细地址"
  3970. >
  3971. {
  3972. <Input
  3973. placeholder="请输入详细地址"
  3974. value={this.state.recipientAddress}
  3975. onChange={(e) => {
  3976. this.setState({
  3977. recipientAddress: e.target.value,
  3978. });
  3979. }}
  3980. style={{ width: "240px" }}
  3981. />
  3982. }
  3983. </FormItem>
  3984. </div>
  3985. ) : (
  3986. ""
  3987. )}
  3988. {/* <FormItem
  3989. className="half-item"
  3990. {...formItemLayout}
  3991. label={
  3992. <span>
  3993. <strong style={{ color: "#f00" }}>*</strong>
  3994. 开票金额总计
  3995. </span>
  3996. }
  3997. >
  3998. {
  3999. <Input
  4000. value={this.state.alreadyAmount}
  4001. onChange={(e) => {
  4002. this.setState({ alreadyAmount: e.target.value });
  4003. }}
  4004. style={{ width: "40px" }}
  4005. />
  4006. }
  4007. 万元
  4008. <span
  4009. style={{
  4010. position: "absolute",
  4011. color: "red",
  4012. fontSize: "10px",
  4013. lineHeight: "15px",
  4014. marginLeft: "20px",
  4015. }}
  4016. >
  4017. 默认值为0.新开票订单此项不用填.<br></br>
  4018. 以前已开票订单,请填写已开票的总计<br></br>
  4019. 金额,便于审核核对!
  4020. </span>
  4021. </FormItem> */}
  4022. </div>
  4023. <Button
  4024. className="cancel"
  4025. type="primary"
  4026. style={{ marginRight: "50px", float: "right" }}
  4027. size="large"
  4028. onClick={this.submitApp}
  4029. >
  4030. 提交申请
  4031. </Button>
  4032. {/*<Button className="cancel" type="primary" style={{marginRight:"50px",float:'right',background:'deepskyblue',border:'none'}} size="large" onClick={this.saveApp}>保存</Button>*/}
  4033. </Spin>
  4034. </Form>
  4035. </Modal>
  4036. <Modal
  4037. maskClosable={false}
  4038. className="admin-desc-content"
  4039. footer=""
  4040. title="开具发票申请单"
  4041. width="1200px"
  4042. visible={this.state.dvisible}
  4043. onOk={this.visitOks}
  4044. onCancel={this.dvisitCancels}
  4045. >
  4046. <Form
  4047. layout="horizontal"
  4048. // id="demand-form"
  4049. style={{ paddingBottom: "40px" }}
  4050. >
  4051. <Spin spinning={this.state.loading}>
  4052. <div className="clearfix">
  4053. <div className="clearfix">
  4054. <FormItem
  4055. className="half-item"
  4056. {...formItemLayout}
  4057. label="合同编号"
  4058. >
  4059. <span>{this.state.contractNo}</span>
  4060. </FormItem>
  4061. <FormItem
  4062. className="half-item"
  4063. {...formItemLayout}
  4064. label="备注"
  4065. >
  4066. <span>{this.state.remarks}</span>
  4067. </FormItem>
  4068. </div>
  4069. <div className="clearfix">
  4070. <FormItem
  4071. className="half-item"
  4072. {...formItemLayout}
  4073. label={
  4074. <span>
  4075. <strong style={{ color: "#f00" }}>*</strong>
  4076. 省内/外
  4077. </span>
  4078. }
  4079. >
  4080. <span>{getProvinceA(this.state.type)}</span>
  4081. </FormItem>
  4082. <FormItem
  4083. className="half-item"
  4084. {...formItemLayout}
  4085. label={
  4086. <span>
  4087. <strong style={{ color: "#f00" }}>*</strong>特批
  4088. </span>
  4089. }
  4090. >
  4091. <span>
  4092. {this.state.ordapproval === 0 ? "否" : "是"}
  4093. </span>
  4094. </FormItem>
  4095. </div>
  4096. <hr
  4097. style={{
  4098. border: "1px dashed #aaa",
  4099. width: "90%",
  4100. margin: "auto",
  4101. }}
  4102. />
  4103. <div style={{ marginTop: "13px", marginLeft: "16px" }}>
  4104. <span style={{ fontSize: "14px" }}>发票内容</span>
  4105. </div>
  4106. <div className="clearfix">
  4107. <FormItem
  4108. className="half-item"
  4109. {...formItemLayout}
  4110. label={
  4111. <span>
  4112. <strong style={{ color: "#f00" }}>*</strong>
  4113. 发票类型
  4114. </span>
  4115. }
  4116. >
  4117. <span>
  4118. {this.state.invoiceType === 0
  4119. ? "增值税专用发票"
  4120. : this.state.invoiceType === 1
  4121. ? "增值税普通发票"
  4122. : "其他"}
  4123. </span>
  4124. </FormItem>
  4125. </div>
  4126. <div className="clearfix">
  4127. <FormItem
  4128. className="half-item"
  4129. {...formItemLayout}
  4130. label={
  4131. <span>
  4132. <strong style={{ color: "#f00" }}>*</strong>
  4133. 单位名称
  4134. </span>
  4135. }
  4136. >
  4137. <span>{this.state.unitName}</span>
  4138. </FormItem>
  4139. <FormItem
  4140. className="half-item"
  4141. {...formItemLayout}
  4142. label={
  4143. <span>
  4144. <strong style={{ color: "#f00" }}>*</strong>税号
  4145. </span>
  4146. }
  4147. >
  4148. <span>{this.state.taxNumber}</span>
  4149. </FormItem>
  4150. <FormItem
  4151. className="half-item"
  4152. {...formItemLayout}
  4153. label={
  4154. <span>
  4155. <strong style={{ color: "#f00" }}>*</strong>
  4156. 开票金额(万元)
  4157. </span>
  4158. }
  4159. >
  4160. <span>{this.state.amount}</span>
  4161. </FormItem>
  4162. <FormItem
  4163. className="half-item"
  4164. {...formItemLayout}
  4165. label={
  4166. <span>
  4167. <strong style={{ color: "#f00" }}>*</strong>
  4168. 开户行银行账号
  4169. </span>
  4170. }
  4171. >
  4172. <span>{this.state.banks}</span>
  4173. </FormItem>
  4174. <FormItem
  4175. className="half-item"
  4176. {...formItemLayout}
  4177. label={
  4178. <span>
  4179. <strong style={{ color: "#f00" }}>*</strong>
  4180. 开票内容及说明
  4181. </span>
  4182. }
  4183. >
  4184. <span>{this.state.content}</span>
  4185. </FormItem>
  4186. <FormItem
  4187. className="half-item"
  4188. {...formItemLayout}
  4189. label={
  4190. <span>
  4191. <strong style={{ color: "#f00" }}>*</strong>
  4192. 单位地址
  4193. </span>
  4194. }
  4195. >
  4196. <span>{this.state.unitAddress}</span>
  4197. </FormItem>
  4198. <FormItem
  4199. className="half-item"
  4200. {...formItemLayout}
  4201. label="备注"
  4202. >
  4203. <span>{this.state.invoiceRemarks}</span>
  4204. </FormItem>
  4205. <FormItem
  4206. className="half-item"
  4207. {...formItemLayout}
  4208. label={
  4209. <span>
  4210. <strong style={{ color: "#f00" }}>*</strong>
  4211. 单位电话
  4212. </span>
  4213. }
  4214. >
  4215. <span>{this.state.unitMobile}</span>
  4216. </FormItem>
  4217. </div>
  4218. <div className="clearfix">
  4219. <FormItem
  4220. labelCol={{ span: 4 }}
  4221. wrapperCol={{ span: 18 }}
  4222. label={
  4223. <span>
  4224. <strong style={{ color: "#f00" }}>*</strong>附件
  4225. </span>
  4226. }
  4227. >
  4228. {/*<Upload*/}
  4229. {/* className="demandDetailShow-upload"*/}
  4230. {/* listType="picture-card"*/}
  4231. {/* fileList={this.state.orgCodeUrl}*/}
  4232. {/* onPreview={(file) => {*/}
  4233. {/* this.setState({*/}
  4234. {/* previewImage: file.url || file.thumbUrl,*/}
  4235. {/* previewVisible: true,*/}
  4236. {/* });*/}
  4237. {/* }}*/}
  4238. {/*/>*/}
  4239. <div style={{ paddingTop: '10px', paddingBottom: '10px' }}>
  4240. {this.state.visible && this.state.orgCodeUrl ? <ImgList domId={'inquiry2'} fileList={this.state.orgCodeUrl} ItemWidth={'96px'} /> : <div />}
  4241. </div>
  4242. <Modal
  4243. maskClosable={false}
  4244. footer={null}
  4245. visible={this.state.previewVisible}
  4246. onCancel={() => {
  4247. this.setState({ previewVisible: false });
  4248. }}
  4249. >
  4250. <img
  4251. alt=""
  4252. style={{ width: "100%" }}
  4253. src={this.state.previewImage || ""}
  4254. />
  4255. </Modal>
  4256. </FormItem>
  4257. </div>
  4258. <hr
  4259. style={{
  4260. border: "1px dashed #aaa",
  4261. width: "90%",
  4262. margin: "auto",
  4263. }}
  4264. />
  4265. <div className="clearfix" style={{ marginTop: "10px" }}>
  4266. <FormItem
  4267. className="half-item"
  4268. {...formItemLayout}
  4269. label="发票是否邮寄:"
  4270. >
  4271. <span>{this.state.post === 0 ? "是" : "否"}</span>
  4272. </FormItem>
  4273. </div>
  4274. {this.state.post === 0 ? (
  4275. <div>
  4276. <div className="clearfix">
  4277. <FormItem
  4278. className="half-item"
  4279. {...formItemLayout}
  4280. label="收信人姓名"
  4281. >
  4282. <span>{this.state.addressee}</span>
  4283. </FormItem>
  4284. <FormItem
  4285. className="half-item"
  4286. {...formItemLayout}
  4287. label="电话"
  4288. >
  4289. <span>{this.state.addresseeMobile}</span>
  4290. </FormItem>
  4291. </div>
  4292. <div className="clearfix">
  4293. <FormItem
  4294. className="half-item"
  4295. {...formItemLayout}
  4296. label="省-市-区"
  4297. >
  4298. <span>
  4299. {getprovince(this.state.addresseeProvince)}/
  4300. {getprovince(this.state.addresseeCity)}/
  4301. {getprovince(this.state.addresseeArea)}
  4302. </span>
  4303. </FormItem>
  4304. </div>
  4305. <div className="clearfix">
  4306. <FormItem
  4307. className="half-item"
  4308. {...formItemLayout}
  4309. label="详细地址"
  4310. >
  4311. <span>{this.state.recipientAddress}</span>
  4312. </FormItem>
  4313. </div>
  4314. </div>
  4315. ) : (
  4316. ""
  4317. )}
  4318. </div>
  4319. {/* <FormItem
  4320. className="half-item"
  4321. {...formItemLayout}
  4322. label={
  4323. <span>
  4324. <strong style={{ color: "#f00" }}>*</strong>
  4325. 开票金额总计
  4326. </span>
  4327. }
  4328. >
  4329. <span>{this.state.alreadyAmount}万元</span>
  4330. </FormItem> */}
  4331. </Spin>
  4332. </Form>
  4333. </Modal>
  4334. {/* <Modal
  4335. visible={this.state.bvisible}
  4336. footer=""
  4337. title="开票历史记录"
  4338. className="admin-desc-content"
  4339. width="1200px"
  4340. onCancel={this.inRecordCanl}
  4341. >
  4342. <Spin spinning={this.state.loading}>
  4343. <div
  4344. className="patent-table"
  4345. ref={e => {
  4346. this.refs.kaiPiao = e;
  4347. }}
  4348. >
  4349. <Table
  4350. columns={this.state.columnsDate}
  4351. dataSource={this.state.recordData}
  4352. pagination={false}
  4353. bordered
  4354. />
  4355. <div className="clearfix" style={{ marginTop: "20px" }}>
  4356. <FormItem
  4357. className="half-item"
  4358. {...formItemLayout}
  4359. label={<span style={{ fontSize: "14px" }}>开票总计</span>}
  4360. >
  4361. <span>{this.state.sum + "(万元)"}</span>
  4362. </FormItem>
  4363. </div>
  4364. <ReactToPrint
  4365. trigger={() => (
  4366. <Button
  4367. type="primary"
  4368. style={{
  4369. float: "right",
  4370. // marginTop: 10,
  4371. position: "absolute",
  4372. top: -54,
  4373. right: 30
  4374. }}
  4375. >
  4376. 打印
  4377. </Button>
  4378. )}
  4379. content={() => this.refs.kaiPiao}
  4380. />
  4381. </div>
  4382. </Spin>
  4383. </Modal> */}
  4384. <Modal
  4385. maskClosable={false}
  4386. visible={this.state.cuiVisible}
  4387. footer=""
  4388. title="催款详情"
  4389. className="admin-desc-content"
  4390. width="1300px"
  4391. pagination={false}
  4392. onCancel={() => {
  4393. // this.loadData();
  4394. this.setState({
  4395. cuiVisible: false,
  4396. });
  4397. }}
  4398. >
  4399. <Spin spinning={this.state.loading}>
  4400. <div
  4401. className="patent-table"
  4402. style={
  4403. {
  4404. // width: 900,
  4405. // position: "relative",
  4406. // left: "50%",
  4407. // transform: "translate(-50%)",
  4408. // padding: "25px 0 30px 30px"
  4409. }
  4410. }
  4411. ref={(e) => {
  4412. this.refs.all = e;
  4413. }}
  4414. >
  4415. <Table
  4416. columns={this.state.cuiColumns}
  4417. dataSource={this.state.cuiDataList}
  4418. scroll={{ x: "max-content", y: 0 }}
  4419. pagination={false}
  4420. bordered
  4421. size="small"
  4422. />
  4423. </div>
  4424. </Spin>
  4425. <ReactToPrint
  4426. trigger={() => (
  4427. <Button
  4428. type="primary"
  4429. style={{
  4430. float: "right",
  4431. marginTop: 10,
  4432. position: "absolute",
  4433. top: 0,
  4434. right: 30,
  4435. }}
  4436. >
  4437. 打印
  4438. </Button>
  4439. )}
  4440. content={() => this.refs.all}
  4441. />
  4442. </Modal>
  4443. <Modal
  4444. maskClosable={false}
  4445. visible={this.state.proVisible}
  4446. footer=""
  4447. title="项目详情"
  4448. className="admin-desc-content"
  4449. width="1300px"
  4450. pagination={false}
  4451. onCancel={() => {
  4452. // this.loadData();
  4453. this.setState({
  4454. proVisible: false,
  4455. });
  4456. }}
  4457. >
  4458. <Spin spinning={this.state.loading}>
  4459. <Project
  4460. record={this.state.record}
  4461. visible={this.state.pvisible}
  4462. cancel={() => {
  4463. this.setState({ pvisible: false });
  4464. }}
  4465. />
  4466. <div
  4467. className="patent-table"
  4468. ref={(e) => {
  4469. this.refs.all = e;
  4470. }}
  4471. >
  4472. <Table
  4473. columns={this.state.proColumns}
  4474. dataSource={this.state.proDataList}
  4475. onRowClick={this.tableRowClickPro}
  4476. pagination={false}
  4477. bordered
  4478. size="small"
  4479. />
  4480. </div>
  4481. {/* <span style={{ display: "block", marginTop: 10, color: "red" }}>
  4482. 外包(内部)价格总计(万元):{this.state.totalWaibao}
  4483. </span> */}
  4484. </Spin>
  4485. <ReactToPrint
  4486. trigger={() => (
  4487. <Button
  4488. type="primary"
  4489. style={{
  4490. float: "right",
  4491. marginTop: 10,
  4492. position: "absolute",
  4493. top: 0,
  4494. right: 30,
  4495. }}
  4496. >
  4497. 打印
  4498. </Button>
  4499. )}
  4500. content={() => this.refs.all}
  4501. />
  4502. </Modal>
  4503. {this.state.visible ?
  4504. <Modal
  4505. className="customeDetails"
  4506. footer=""
  4507. title="订单详情"
  4508. width="1200px"
  4509. visible={this.state.visible}
  4510. onOk={this.visitOk}
  4511. onCancel={this.visitCancel}
  4512. >
  4513. <Form
  4514. layout="horizontal"
  4515. onSubmit={this.handleSubmit}
  4516. id="demand-form"
  4517. style={{ paddingBottom: "40px" }}
  4518. >
  4519. <Spin spinning={this.state.loading}>
  4520. <div className="clearfix">
  4521. <div style={{ position: "absolute", top: '-52px', left: '81px', zIndex: 10000 }}>
  4522. <OrderItemStatus deleteSign={this.state.deleteSign} />
  4523. </div>
  4524. <FormItem
  4525. className="half-item"
  4526. {...formItemLayout}
  4527. label="订单编号"
  4528. >
  4529. <span>{this.state.orderNo}</span>
  4530. </FormItem>
  4531. <FormItem
  4532. className="half-item"
  4533. {...formItemLayout}
  4534. label="合同编号"
  4535. >
  4536. <span>{this.state.contractNo}</span>
  4537. </FormItem>
  4538. <FormItem
  4539. className="half-item"
  4540. {...formItemLayout}
  4541. label="客户名称"
  4542. >
  4543. <span>{this.state.userName}</span>
  4544. <EnterpriseNameChange
  4545. type='journal'
  4546. style={{ marginLeft: 10 }}
  4547. enterpriseId={this.state.orderUid} />
  4548. </FormItem>
  4549. <FormItem
  4550. className="half-item"
  4551. {...formItemLayout}
  4552. label="销售类型"
  4553. >
  4554. <span>
  4555. {(["私有客户-", "签单客户-"][this.state.userType] || " ") +
  4556. (salesList[this.state.salesType] || "")}
  4557. {
  4558. this.state.other != null && this.state.other != "" &&
  4559. <Tooltip title={this.state.other}>
  4560. <span>
  4561. {"(" + this.state.other.toString().slice(0, 10) + (this.state.other.toString().length > 9 ? "...)" : ")")}
  4562. </span>
  4563. </Tooltip>
  4564. }
  4565. </span>
  4566. {/* <span>{(["私有客户-", "签单客户-"][this.state.userType] || " ") +
  4567. (salesList[this.state.salesType] || "")}</span> */}
  4568. </FormItem>
  4569. <FormItem
  4570. className="half-item"
  4571. {...formItemLayout}
  4572. label="合同签订时间"
  4573. >
  4574. <span>{this.state.signDate}</span>
  4575. </FormItem>
  4576. <FormItem
  4577. className="half-item"
  4578. {...formItemLayout}
  4579. label="流程状态"
  4580. >
  4581. <span>{getProcessStatus(this.state.processStatus, this.state.examineName, this.state.approval)}</span>
  4582. <FlowChart
  4583. orderNo={this.state.orderNos}
  4584. />
  4585. </FormItem>
  4586. <FormItem
  4587. className="half-item"
  4588. {...formItemLayout}
  4589. label="结算状态"
  4590. >
  4591. <span>
  4592. {getLiquidationStatus(this.state.liquidationStatus)}
  4593. </span>
  4594. </FormItem>
  4595. <FormItem
  4596. className="half-item"
  4597. {...formItemLayout}
  4598. label="企业联系人"
  4599. >
  4600. <span>{this.state.contacts}</span>
  4601. </FormItem>
  4602. <FormItem
  4603. className="half-item"
  4604. {...formItemLayout}
  4605. label="联系人电话"
  4606. >
  4607. <span>{this.state.contactMobile}</span>
  4608. </FormItem>
  4609. <FormItem
  4610. className="half-item"
  4611. {...formItemLayout}
  4612. label="企业法人"
  4613. >
  4614. <span>{this.state.legalPerson}</span>
  4615. </FormItem>
  4616. <FormItem
  4617. className="half-item"
  4618. {...formItemLayout}
  4619. label="法人电话"
  4620. >
  4621. <span>{this.state.legalPersonTel}</span>
  4622. </FormItem>
  4623. <FormItem
  4624. className="half-item"
  4625. {...formItemLayout}
  4626. label="签单金额(万元)"
  4627. >
  4628. <span>{this.state.totalAmount}</span>
  4629. </FormItem>
  4630. <FormItem
  4631. className="half-item"
  4632. {...formItemLayout}
  4633. label="首付金额(万元)"
  4634. >
  4635. <span>{this.state.firstAmount}</span>
  4636. </FormItem>
  4637. <FormItem
  4638. className="half-item"
  4639. {...formItemLayout}
  4640. label="特批立项"
  4641. >
  4642. <span>
  4643. {getApprovedState(this.state.approval)}
  4644. {getApprovedType(this.state.type ? this.state.type.split(",").map(Number) : [], this.state.typeExplain, 1)}
  4645. </span>
  4646. </FormItem>
  4647. { this.state.approval > 0 && <div className="clearfix">
  4648. <FormItem
  4649. labelCol={{ span: 4 }}
  4650. wrapperCol={{ span: 20 }}
  4651. label={
  4652. <span className="mandatory" style={{fontSize: '12px'}}>
  4653. 提示
  4654. </span>
  4655. }
  4656. >
  4657. <ApproveTypeTooltip />
  4658. </FormItem>
  4659. </div>
  4660. }
  4661. <FormItem
  4662. className="half-item"
  4663. {...formItemLayout}
  4664. label="已收款项(万元)"
  4665. >
  4666. <span>{this.state.settlementAmount}</span>
  4667. </FormItem>
  4668. <FormItem
  4669. className="half-item"
  4670. {...formItemLayout}
  4671. label="订单部门"
  4672. >
  4673. <span>{this.state.depName}</span>
  4674. </FormItem>
  4675. <FormItem
  4676. className="half-item"
  4677. {...formItemLayout}
  4678. label="是否外包"
  4679. >
  4680. {this.state.outsource}
  4681. </FormItem>
  4682. <div className="clearfix">
  4683. <FormItem
  4684. labelCol={{ span: 4 }}
  4685. wrapperCol={{ span: 16 }}
  4686. label="订单留言"
  4687. >
  4688. <span>{this.state.orderRemarks}</span>
  4689. </FormItem>
  4690. </div>
  4691. <div className="clearfix">
  4692. <FormItem
  4693. labelCol={{ span: 4 }}
  4694. wrapperCol={{ span: 18 }}
  4695. label={"合同扫描件"}
  4696. >
  4697. {
  4698. window.adminData.isSuperAdmin
  4699. ? <NewPicturesWall
  4700. domId={"addService1"}
  4701. fileList={this.getOrgCodeUrl}
  4702. pictureUrl={this.state.orgCodeUrl}
  4703. url="/api/admin/order/uploadOrderImg"
  4704. orderNo={this.state.orderNo}
  4705. sign="contract"
  4706. deleteApi="/api/admin/order/deleteOrderImg"
  4707. />
  4708. : <div style={{ paddingTop: '10px', paddingBottom: '10px' }}>
  4709. {this.state.visible && this.state.orgCodeUrl ? <ImgList fileList={this.state.orgCodeUrl} ItemWidth={'96px'} /> : <div />}
  4710. </div>
  4711. }
  4712. <Button
  4713. style={{
  4714. float: "right",
  4715. marginRight: "140px",
  4716. marginTop: "20px",
  4717. }}
  4718. onClick={this.getOrderLog}
  4719. >
  4720. 查看订单 日志
  4721. </Button>
  4722. </FormItem>
  4723. <FormItem
  4724. labelCol={{ span: 4 }}
  4725. wrapperCol={{ span: 18 }}
  4726. label="补充协议"
  4727. >
  4728. {
  4729. window.adminData.isSuperAdmin
  4730. ? <NewPicturesWall
  4731. domId={"addService2"}
  4732. fileList={this.getReplenishUrl}
  4733. pictureUrl={this.state.replenishUrl}
  4734. url="/api/admin/order/uploadOrderImg"
  4735. orderNo={this.state.orderNo}
  4736. sign="supplement"
  4737. deleteApi="/api/admin/order/deleteOrderImg"
  4738. />
  4739. : <div style={{ paddingTop: '10px', paddingBottom: '10px' }}>
  4740. {this.state.visible && this.state.replenishUrl ? <ImgList domId={'inquiry1'} fileList={this.state.replenishUrl} ItemWidth={'96px'} /> : <div />}
  4741. </div>
  4742. }
  4743. </FormItem>
  4744. </div>
  4745. {/* 服务内容 */}
  4746. {
  4747. window.adminData.isSuperAdmin
  4748. ? <div class="clearfix">
  4749. <FormItem
  4750. labelCol={{ span: 4 }}
  4751. wrapperCol={{ span: 18 }}
  4752. label='服务内容'
  4753. >
  4754. <NewPicturesWall
  4755. domId={"addServiceContent"}
  4756. fileList={this.getContentUrl}
  4757. pictureUrl={this.state.contentUrl}
  4758. url="/api/admin/order/uploadOrderImg"
  4759. orderNo={this.state.orderNo}
  4760. sign="content"
  4761. deleteApi="/api/admin/order/deleteOrderImg"
  4762. />
  4763. <p> <span style={{ color: "red", display: "inline-block" }}>(注:必需上传服务内容、服务年限、时间节点、乙方权利与责任、违约条款、保密条款!)</span>图片建议:要清晰。</p>
  4764. </FormItem>
  4765. </div>
  4766. : <ContentUrl
  4767. processStatus={2}
  4768. domId={"inquiryContents"}
  4769. contentUrl={this.state.contentUrl}
  4770. imgId={"inquiryContentsImg"}
  4771. />
  4772. }
  4773. <div className="clearfix">
  4774. {/* 订单保密&违约说明 */}
  4775. <ConfidenBreachView
  4776. data={this.state.confidenBreachData}
  4777. labelCol={4}
  4778. wrapperCol={18}
  4779. />
  4780. </div>
  4781. <div className="clearfix">
  4782. <FormItem
  4783. className="half-item"
  4784. {...formItemLayout}
  4785. label="订单负责人"
  4786. >
  4787. <span>{this.state.salesmanName}</span>
  4788. </FormItem>
  4789. <FormItem
  4790. className="half-item"
  4791. {...formItemLayout}
  4792. label="订单负责人电话"
  4793. >
  4794. <span>{this.state.salesmanMobile}</span>
  4795. </FormItem>
  4796. </div>
  4797. <div className="clearfix">
  4798. <FormItem
  4799. className="half-item"
  4800. {...formItemLayout}
  4801. label="当前财务负责人"
  4802. >
  4803. <span>{this.state.nowFinance}</span>
  4804. </FormItem>
  4805. <FormItem
  4806. className="half-item"
  4807. {...formItemLayout}
  4808. label="当前财务负责人电话"
  4809. >
  4810. <span>{this.state.nowFinanceMobile}</span>
  4811. </FormItem>
  4812. </div>
  4813. <div className="clearfix">
  4814. <FormItem
  4815. className="half-item"
  4816. {...formItemLayout}
  4817. style={{ opacity: ".5" }}
  4818. label="原订单负责人"
  4819. >
  4820. <span>{this.state.oldSalesmanName}</span>
  4821. </FormItem>
  4822. <FormItem
  4823. className="half-item"
  4824. {...formItemLayout}
  4825. style={{ opacity: ".5" }}
  4826. label="原订单负责人电话"
  4827. >
  4828. <span>{this.state.oldSalesmanMobile}</span>
  4829. </FormItem>
  4830. </div>
  4831. <div className="clearfix">
  4832. <FormItem
  4833. className="half-item"
  4834. style={{ opacity: ".5" }}
  4835. {...formItemLayout}
  4836. label="实际财务操作人"
  4837. >
  4838. <span>{this.state.financeName}</span>
  4839. </FormItem>
  4840. <FormItem
  4841. className="half-item"
  4842. {...formItemLayout}
  4843. style={{ opacity: ".5" }}
  4844. label="实际财务操作人电话"
  4845. >
  4846. <span>{this.state.financeMobile}</span>
  4847. </FormItem>
  4848. </div>
  4849. {/* 协单人员 */}
  4850. <OrderCoor orderNo={this.state.orderNos} />
  4851. <div>
  4852. <span style={{ marginLeft: "50px", fontSize: "20px" }}>
  4853. 项目业务
  4854. </span>
  4855. </div>
  4856. <div className="patent-table">
  4857. <Spin spinning={this.state.loading}>
  4858. <Table
  4859. columns={this.state.columnsX}
  4860. dataSource={this.state.dataSourceX}
  4861. pagination={false}
  4862. onRowClick={this.tableRowClickX}
  4863. expandedRowRender={expandedRowRenderVip}
  4864. rowClassName={this.addRowColor}
  4865. bordered
  4866. size="small"
  4867. />
  4868. </Spin>
  4869. </div>
  4870. <div>
  4871. <span style={{ marginLeft: "50px", fontSize: "20px" }}>
  4872. 催款节点
  4873. </span>
  4874. <span
  4875. style={{
  4876. display: cuiDataList.length ? "none" : "inline-block",
  4877. marginLeft: 10,
  4878. color: "red",
  4879. }}
  4880. >
  4881. 金额总计(万元): {this.state.totalCui}
  4882. </span>
  4883. </div>
  4884. <div className="clearfix">
  4885. <Spin spinning={this.state.loading}>
  4886. <Form layout="horizontal" id="demand-form">
  4887. <Table
  4888. pagination={false}
  4889. bordered
  4890. size="small"
  4891. columns={
  4892. cuiDataList.length
  4893. ? this.state.ContactsLists
  4894. : this.state.ContactsListsNew
  4895. }
  4896. dataSource={
  4897. cuiDataList.length
  4898. ? this.state.contactList
  4899. : this.state.contactListNew
  4900. }
  4901. />
  4902. <Col
  4903. span={24}
  4904. offset={9}
  4905. style={{ marginTop: "15px" }}
  4906. ></Col>
  4907. </Form>
  4908. </Spin>
  4909. </div>
  4910. </div>
  4911. </Spin>
  4912. </Form>
  4913. </Modal> : <div />}
  4914. <OrderRiZi
  4915. dataSourcerizhi={this.state.dataSourcerizhi}
  4916. closeOrderLog={this.closeOrderLog}
  4917. visible={this.state.rizhivisible}
  4918. loading={this.state.loading}
  4919. />
  4920. </div>
  4921. {/* {this.state.addnextVisible && <ProjectDetailsReadOnly
  4922. infor={this.state.dataInfor}
  4923. visible={this.state.addnextVisible}
  4924. onCancel={this.nextCancel}
  4925. />} */}
  4926. {
  4927. // 项目业务详情
  4928. this.state.addnextVisible &&
  4929. <NewEditProject
  4930. readOnly={true}
  4931. visible={this.state.addnextVisible}
  4932. dataInfor={this.state.dataInfor}
  4933. onCancel={this.nextCancel}
  4934. />
  4935. }
  4936. <textarea id="copyText" style={{ opacity: 0 }} />
  4937. </div>
  4938. );
  4939. },
  4940. })
  4941. );
  4942. export default IntentionCustomer;