order.jsx 154 KB

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