inquiry.jsx 168 KB

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