inquiry.jsx 169 KB

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