inquiry.jsx 166 KB

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