inquiry.jsx 153 KB

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