order.jsx 156 KB

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