inquiry.jsx 167 KB

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