inquiry.jsx 157 KB

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