inquiry.jsx 152 KB

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