inquiry.jsx 163 KB

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