inquiry.jsx 168 KB

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