inquiry.jsx 163 KB

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