inquiry.jsx 163 KB

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