order.jsx 158 KB

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