inquiry.jsx 164 KB

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