inquiry.jsx 157 KB

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