inquiry.jsx 159 KB

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