inquiry.jsx 153 KB

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