inquiry.jsx 169 KB

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