inquiry.jsx 163 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817
  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. //部门
  2079. departmentList() {
  2080. this.setState({
  2081. loading: true,
  2082. });
  2083. $.ajax({
  2084. method: "get",
  2085. dataType: "json",
  2086. crossDomain: false,
  2087. url: globalConfig.context + "/api/admin/organization/selectSuperId",
  2088. data: {},
  2089. success: function (data) {
  2090. let thedata = data.data;
  2091. let theArr = [];
  2092. if (!thedata) {
  2093. if (data.error && data.error.length) {
  2094. message.warning(data.error[0].message);
  2095. }
  2096. thedata = {};
  2097. } else {
  2098. thedata.map(function (item, index) {
  2099. theArr.push({
  2100. key: index,
  2101. name: item.name,
  2102. id: item.id,
  2103. });
  2104. });
  2105. }
  2106. this.setState({
  2107. departmentArr: theArr,
  2108. });
  2109. }.bind(this),
  2110. }).always(
  2111. function () {
  2112. this.setState({
  2113. loading: false,
  2114. });
  2115. }.bind(this)
  2116. );
  2117. },
  2118. changeList(arr) {
  2119. const newArr = [];
  2120. this.state.columns.forEach((item) => {
  2121. arr.forEach((val) => {
  2122. if (val === item.title) {
  2123. newArr.push(item);
  2124. }
  2125. });
  2126. });
  2127. this.setState({
  2128. changeList: newArr,
  2129. });
  2130. },
  2131. onSelectChange(selectedRowKeys) {
  2132. this.setState({ selectedRowKeys });
  2133. // console.log(selectedRowKeys);
  2134. },
  2135. // inRecordData() {
  2136. // this.setState({
  2137. // loading: true
  2138. // });
  2139. // $.ajax({
  2140. // method: "get",
  2141. // dataType: "json",
  2142. // crossDomain: false,
  2143. // url:
  2144. // globalConfig.context +
  2145. // "/api/admin/orderInvoice/salesmanOrderInvoiceList",
  2146. // data: {
  2147. // orderNo: this.state.selectedRowKeys[0],
  2148. // pageSize: 9999
  2149. // },
  2150. // success: function(data) {
  2151. // let theArr = [];
  2152. // let sum = 0;
  2153. // if (!data.data) {
  2154. // if (data.error && data.error.length) {
  2155. // message.warning(data.error[0].message);
  2156. // }
  2157. // } else {
  2158. // for (let i = 0; i < data.data.list.length; i++) {
  2159. // let thisdata = data.data.list[i];
  2160. // sum += parseFloat(thisdata.amount);
  2161. // theArr.push({
  2162. // id: thisdata.id,
  2163. // orderno: thisdata.orderno, //订单编号
  2164. // amount: thisdata.amount, //签单金额
  2165. // createTime: thisdata.createTime, //流程状态
  2166. // status: thisdata.status, //结算状态
  2167. // rejectReason: thisdata.rejectReason
  2168. // });
  2169. // }
  2170. // }
  2171. // this.setState({
  2172. // recordData: theArr,
  2173. // sum: sum.toFixed(4)
  2174. // });
  2175. // }.bind(this)
  2176. // }).done(
  2177. // function() {
  2178. // this.setState({
  2179. // loading: false
  2180. // });
  2181. // }.bind(this)
  2182. // );
  2183. // },
  2184. cuiData() {
  2185. this.setState({
  2186. loading: true,
  2187. });
  2188. $.ajax({
  2189. method: "get",
  2190. dataType: "json",
  2191. crossDomain: false,
  2192. url: globalConfig.context + "/api/admin/newOrder/dunOrderNewList",
  2193. data: {
  2194. orderNo: this.state.selectedRowKeys[0],
  2195. pageSize: 9999999,
  2196. },
  2197. success: function (data) {
  2198. let theArr = [];
  2199. if (!data.data || !data.data.list) {
  2200. if (data.error && data.error.length) {
  2201. message.warning(data.error[0].message);
  2202. }
  2203. } else {
  2204. for (let i = 0; i < data.data.list.length; i++) {
  2205. let thisdata = data.data.list[i];
  2206. theArr.push({
  2207. key: i + 1,
  2208. orderNo: thisdata.orderNo,
  2209. contractNo: thisdata.contractNo,
  2210. userName: thisdata.userName,
  2211. buyerName: thisdata.buyerName,
  2212. departmentName: thisdata.departmentName,
  2213. salesmanName: thisdata.salesmanName,
  2214. depName: thisdata.depName,
  2215. orderStatus: thisdata.orderStatus,
  2216. projectStatus: thisdata.projectStatus,
  2217. totalAmount: thisdata.totalAmount,
  2218. liquidationStatus: thisdata.liquidationStatus,
  2219. settlementAmount: thisdata.settlementAmount,
  2220. accountsReceivable: thisdata.accountsReceivable,
  2221. dunSubject: thisdata.dunSubject,
  2222. startDate: thisdata.startDate,
  2223. taskStatus: thisdata.taskStatus,
  2224. cname: thisdata.cname,
  2225. id: thisdata.id,
  2226. taskName: thisdata.taskName,
  2227. hours: thisdata.hours,
  2228. taskDistributionTime: thisdata.taskDistributionTime,
  2229. taskEndTime: thisdata.taskEndTime,
  2230. dunStatus: thisdata.dunStatus == 0 ? "未触发" : "已触发",
  2231. });
  2232. }
  2233. }
  2234. this.setState({
  2235. cuiDataList: theArr,
  2236. });
  2237. }.bind(this),
  2238. }).always(
  2239. function () {
  2240. this.setState({
  2241. loading: false,
  2242. });
  2243. }.bind(this)
  2244. );
  2245. },
  2246. proData() {
  2247. this.setState({
  2248. loading: true,
  2249. });
  2250. $.ajax({
  2251. method: "get",
  2252. dataType: "json",
  2253. crossDomain: false,
  2254. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  2255. data: {
  2256. orderNo: this.state.selectedRowKeys[0],
  2257. pageSize: 9999999,
  2258. },
  2259. success: function (data) {
  2260. let theArr = [];
  2261. let totalWaibao = 0;
  2262. if (!data.data) {
  2263. if (data.error && data.error.length) {
  2264. message.warning(data.error[0].message);
  2265. }
  2266. } else {
  2267. for (let i = 0; i < data.data.length; i++) {
  2268. let thisdata = data.data[i];
  2269. totalWaibao += thisdata.outsourcePrice;
  2270. thisdata.key = i + 1;
  2271. theArr.push(thisdata);
  2272. }
  2273. }
  2274. totalWaibao = (Math.round(totalWaibao * 1000000) / 1000000).toFixed(6);
  2275. this.setState({
  2276. proDataList: theArr,
  2277. totalWaibao,
  2278. });
  2279. }.bind(this),
  2280. }).always(
  2281. function () {
  2282. this.setState({
  2283. loading: false,
  2284. });
  2285. }.bind(this)
  2286. );
  2287. },
  2288. tableRowClickPro(record) {
  2289. this.setState({
  2290. pvisible: true,
  2291. record,
  2292. });
  2293. },
  2294. downImg() {
  2295. let num = 0;
  2296. for (let i = 0; i < this.state.orgCodeUrl.length; i++) {
  2297. if (this.state.orgCodeUrl[i].url == this.state.previewImage) {
  2298. num = i;
  2299. }
  2300. }
  2301. if (num == this.state.orgCodeUrl.length - 1) {
  2302. return message.warning("已经是最后一张了哦");
  2303. }
  2304. this.state.previewImage = this.state.orgCodeUrl[num + 1].url;
  2305. this.setState({
  2306. previewImage: this.state.previewImage,
  2307. rotateDeg: 0,
  2308. });
  2309. },
  2310. upImg() {
  2311. let num = 0;
  2312. for (let i = 0; i < this.state.orgCodeUrl.length; i++) {
  2313. if (this.state.orgCodeUrl[i].url == this.state.previewImage) {
  2314. num = i;
  2315. }
  2316. }
  2317. if (num == 0) {
  2318. return message.warning("已经是第一张了哦");
  2319. }
  2320. this.state.previewImage = this.state.orgCodeUrl[num - 1].url;
  2321. this.setState({
  2322. previewImage: this.state.previewImage,
  2323. rotateDeg: 0,
  2324. });
  2325. },
  2326. rotate() {
  2327. let rotateDeg = this.state.rotateDeg + 90;
  2328. this.setState({
  2329. rotateDeg,
  2330. });
  2331. },
  2332. downImgs() {
  2333. let num = 0;
  2334. for (let i = 0; i < this.state.replenishUrl.length; i++) {
  2335. if (this.state.replenishUrl[i].url == this.state.previewImage) {
  2336. num = i;
  2337. }
  2338. }
  2339. if (num == this.state.replenishUrl.length - 1) {
  2340. return message.warning("已经是最后一张了哦");
  2341. }
  2342. this.state.previewImage = this.state.replenishUrl[num + 1].url;
  2343. this.setState({
  2344. previewImage: this.state.previewImage,
  2345. rotateDeg: 0,
  2346. });
  2347. },
  2348. upImgs() {
  2349. let num = 0;
  2350. for (let i = 0; i < this.state.replenishUrl.length; i++) {
  2351. if (this.state.replenishUrl[i].url == this.state.previewImage) {
  2352. num = i;
  2353. }
  2354. }
  2355. if (num == 0) {
  2356. return message.warning("已经是第一张了哦");
  2357. }
  2358. this.state.previewImage = this.state.replenishUrl[num - 1].url;
  2359. this.setState({
  2360. previewImage: this.state.previewImage,
  2361. rotateDeg: 0,
  2362. });
  2363. },
  2364. rotates() {
  2365. let rotateDeg = this.state.rotateDeg + 90;
  2366. this.setState({
  2367. rotateDeg,
  2368. });
  2369. },
  2370. // 可展开颜色不同
  2371. addRowColor(record) {
  2372. if (!!record.splitList && record.splitList.length > 0) {
  2373. return 'light'
  2374. } else {
  2375. return 'dark'
  2376. }
  2377. },
  2378. // 管理员上传图片
  2379. updateOrderUrl() {
  2380. // 合同扫描件
  2381. let orgCodeUrl = [];
  2382. if (this.state.orgCodeUrl.length) {
  2383. let picArr = [];
  2384. this.state.orgCodeUrl.map(function (item) {
  2385. if (
  2386. item.response &&
  2387. item.response.data &&
  2388. item.response.data.length
  2389. ) {
  2390. picArr.push(item.response.data);
  2391. }
  2392. });
  2393. orgCodeUrl = picArr.join(",");
  2394. } else {
  2395. message.info("请上传合同扫描件")
  2396. return
  2397. }
  2398. // 补充协议
  2399. let replenishUrl = [];
  2400. if (this.state.replenishUrl.length) {
  2401. let picArr = [];
  2402. this.state.replenishUrl.map(function (item) {
  2403. if (
  2404. item.response &&
  2405. item.response.data &&
  2406. item.response.data.length
  2407. ) {
  2408. picArr.push(item.response.data);
  2409. }
  2410. });
  2411. replenishUrl = picArr.join(",");
  2412. }
  2413. // 服务内容
  2414. let contentUrl = [];
  2415. if (this.state.contentUrl.length) {
  2416. let picArr = [];
  2417. this.state.contentUrl.map(function (item) {
  2418. if (
  2419. item.response &&
  2420. item.response.data &&
  2421. item.response.data.length
  2422. ) {
  2423. picArr.push(item.response.data);
  2424. }
  2425. });
  2426. contentUrl = picArr.join(",");
  2427. } else {
  2428. message.info("请上传服务内容")
  2429. return
  2430. }
  2431. this.setState({
  2432. loading: true,
  2433. });
  2434. $.ajax({
  2435. url: globalConfig.context + "/api/admin/newOrder/updateOrderUrl",
  2436. method: "post",
  2437. data: {
  2438. orderNo: this.state.orderNo,
  2439. contractPictureUrl: orgCodeUrl.length ? orgCodeUrl : "",
  2440. agreementUrl: replenishUrl.length ? replenishUrl : "",
  2441. serviceContent: contentUrl.length ? contentUrl : "",
  2442. },
  2443. }).done(
  2444. function (data) {
  2445. this.setState({
  2446. loading: false,
  2447. });
  2448. if (!data.error.length) {
  2449. message.success("修改成功!");
  2450. } else {
  2451. message.warning(data.error[0].message);
  2452. }
  2453. }.bind(this)
  2454. );
  2455. },
  2456. render() {
  2457. const expandedRowRenderVip = (e) => {
  2458. const data = e.splitList;
  2459. let columns = [];
  2460. if (data instanceof Array && data.length) {
  2461. if (e.cSort == 6) {
  2462. columns = [
  2463. {
  2464. title: "负责人",
  2465. dataIndex: "receiverName",
  2466. key: "receiverName",
  2467. },
  2468. {
  2469. title: "负责人电话",
  2470. dataIndex: "receiverMobile",
  2471. key: "receiverMobile",
  2472. },
  2473. {
  2474. title: "项目状态",
  2475. dataIndex: "projectStatus",
  2476. key: "projectStatus",
  2477. render: (text) => {
  2478. return getProjectName(text);
  2479. },
  2480. },
  2481. {
  2482. title: "本次派单",
  2483. dataIndex: "serviceYear",
  2484. key: "serviceYear",
  2485. },
  2486. {
  2487. title: "项目说明",
  2488. dataIndex: "taskComment",
  2489. key: "taskComment",
  2490. render: (text) => {
  2491. return (
  2492. <Tooltip title={text}>
  2493. <div
  2494. // style={{
  2495. // width: 100,
  2496. // overflow: "hidden",
  2497. // whiteSpace: "nowrap",
  2498. // textOverflow: "ellipsis",
  2499. // }}
  2500. >{text}</div>
  2501. </Tooltip>
  2502. )
  2503. },
  2504. },
  2505. ];
  2506. } else {
  2507. columns = [
  2508. {
  2509. title: "子项目名称",
  2510. dataIndex: "taskName",
  2511. key: "taskName"
  2512. },
  2513. {
  2514. title: "子项目数量",
  2515. dataIndex: "commodityQuantity",
  2516. key: "commodityQuantity"
  2517. },
  2518. {
  2519. title: "拆分操作人",
  2520. dataIndex: "splitAname",
  2521. key: "splitAname"
  2522. },
  2523. {
  2524. title: "项目负责人",
  2525. dataIndex: "receiverName",
  2526. key: "receiverName"
  2527. },
  2528. {
  2529. title: "拆分时间",
  2530. dataIndex: "splitTimes",
  2531. key: "splitTimes"
  2532. }
  2533. ]
  2534. }
  2535. return (
  2536. <Table
  2537. columns={columns}
  2538. dataSource={data}
  2539. pagination={false}
  2540. />
  2541. );
  2542. } else {
  2543. columns = [];
  2544. return (
  2545. <p
  2546. style={{ fontWeight: "bold", color: "red", textAlign: "center" }}
  2547. >
  2548. {e.cSort == 6 ? "暂无派单" : "此项目暂未拆分"}
  2549. </p>
  2550. );
  2551. }
  2552. };
  2553. const FormItem = Form.Item;
  2554. const formItemLayout = {
  2555. labelCol: { span: 8 },
  2556. wrapperCol: { span: 14 },
  2557. };
  2558. const RadioGroup = Radio.Group;
  2559. var departmentArr = this.state.departmentArr || [];
  2560. const cuiDataList = this.state.contactList || [];
  2561. const { RangePicker } = DatePicker;
  2562. const { loading, selectedRowKeys, visible } = this.state;
  2563. const rowSelection = {
  2564. selectedRowKeys,
  2565. onChange: this.onSelectChange,
  2566. hideDefaultSelections: true,
  2567. type: "radio",
  2568. };
  2569. return (
  2570. <div className="user-content">
  2571. {this.state.resVisible ? (
  2572. <ResolutionDetail
  2573. cancel={this.resCancel}
  2574. detail={this.state.resRecord}
  2575. visible={this.state.resVisible}
  2576. id={this.state.resRecord.orderNo}
  2577. />
  2578. ) : (
  2579. ""
  2580. )}
  2581. <ShowModalDiv ShowModal={this.state.showModal} />
  2582. <div className="content-title">
  2583. <span
  2584. style={{
  2585. fontWeight: 900,
  2586. fontSize: 16,
  2587. display: "block",
  2588. marginBottom: 10,
  2589. }}
  2590. >
  2591. 部门订单
  2592. </span>
  2593. <Tabs
  2594. defaultActiveKey="2"
  2595. onChange={this.callback}
  2596. className="test"
  2597. >
  2598. <TabPane tab="更改表格显示数据" key="1">
  2599. <div style={{ marginLeft: 10 }}>
  2600. <ChooseList
  2601. columns={this.state.columns}
  2602. changeFn={this.changeList}
  2603. changeList={this.state.changeList}
  2604. top={55}
  2605. margin={11}
  2606. />
  2607. </div>
  2608. </TabPane>
  2609. <TabPane tab="搜索" key="2">
  2610. <div className="user-search" style={{ marginLeft: 10 }}>
  2611. <Input
  2612. placeholder="订单编号"
  2613. style={{ width: "140px" }}
  2614. value={this.state.searchOrderNo}
  2615. onChange={(e) => {
  2616. this.setState({ searchOrderNo: e.target.value });
  2617. }}
  2618. />
  2619. <Input
  2620. placeholder="客户名称"
  2621. style={{ width: "140px" }}
  2622. value={this.state.customerName}
  2623. onChange={(e) => {
  2624. this.setState({ customerName: e.target.value });
  2625. }}
  2626. />
  2627. <Cascaders
  2628. ref={node => this.Cascaders = node}
  2629. placeholder="订单部门"
  2630. id="id"
  2631. name="name"
  2632. children="list"
  2633. height={28}
  2634. onSel={(e) => {
  2635. this.setState({
  2636. departmenttList: JSON.stringify(e),
  2637. });
  2638. }}
  2639. />
  2640. {/* <Select
  2641. placeholder="订单部门"
  2642. style={{ width: 200, marginRight: 10 }}
  2643. value={this.state.departmenttList}
  2644. onChange={(e) => {
  2645. this.setState({ departmenttList: e });
  2646. }}
  2647. >
  2648. {departmentArr.map(function (item) {
  2649. return <Option key={item.id}>{item.name}</Option>;
  2650. })}
  2651. </Select> */}
  2652. <Input
  2653. placeholder="合同编号"
  2654. style={{ width: "140px" }}
  2655. value={this.state.contractNoSearch}
  2656. onChange={(e) => {
  2657. this.setState({
  2658. contractNoSearch: e.target.value,
  2659. });
  2660. }}
  2661. />
  2662. <Select
  2663. style={{ width: 120 }}
  2664. placeholder="结算状态"
  2665. value={this.state.liquidationStatusSearch}
  2666. onChange={(e) => {
  2667. this.setState({
  2668. liquidationStatusSearch: e,
  2669. });
  2670. }}
  2671. >
  2672. <Option value="0">首付待付请</Option>
  2673. <Option value="1">尾款待付清</Option>
  2674. <Option value="2">已付清</Option>
  2675. </Select>
  2676. <Select
  2677. style={{ width: 120 }}
  2678. placeholder="特批状态"
  2679. value={this.state.approvalSearch}
  2680. onChange={(e) => {
  2681. this.setState({
  2682. approvalSearch: e,
  2683. });
  2684. }}
  2685. >
  2686. <Option value="0">非特批</Option>
  2687. <Option value="1">特批待审</Option>
  2688. <Option value="2">特批通过</Option>
  2689. <Option value="4">全部特批</Option>
  2690. </Select>
  2691. <Select
  2692. style={{ width: 120 }}
  2693. placeholder="签单金额"
  2694. value={this.state.amountStatus}
  2695. onChange={(e) => {
  2696. this.setState({
  2697. amountStatus: e,
  2698. });
  2699. }}
  2700. >
  2701. <Option value="0">10万元以下</Option>
  2702. <Option value="1">10~20万元</Option>
  2703. <Option value="2">20~30万元</Option>
  2704. <Option value="3">30~40万元</Option>
  2705. <Option value="4">40万元以上</Option>
  2706. </Select>
  2707. <Select
  2708. style={{ width: 120 }}
  2709. placeholder="会员状态"
  2710. value={this.state.projectType}
  2711. onChange={(e) => {
  2712. this.setState({
  2713. projectType: e,
  2714. });
  2715. }}
  2716. >
  2717. <Option value="1">会员</Option>
  2718. <Option value="0">非会员</Option>
  2719. </Select>
  2720. <Select
  2721. style={{ width: 160 }}
  2722. placeholder="流程状态"
  2723. value={this.state.processStatusSearch}
  2724. onChange={e => {
  2725. this.setState({
  2726. processStatusSearch: e
  2727. });
  2728. }}
  2729. >
  2730. <Option value="">全部</Option>
  2731. {
  2732. processStatus.map((item) =>
  2733. <Option value={item.value} key={item.value}>{item.key}</Option>
  2734. )
  2735. }
  2736. </Select>
  2737. <Button
  2738. type="primary"
  2739. onClick={this.search}
  2740. style={{ marginLeft: "10px" }}
  2741. >
  2742. 搜索
  2743. <Icon type="search" />
  2744. </Button>
  2745. <Button onClick={this.reset}>
  2746. 重置 <Icon type="reload" />
  2747. </Button>
  2748. <div>
  2749. <span style={{ marginRight: "10px" }}>下单时间 :</span>
  2750. <RangePicker
  2751. value={[
  2752. this.state.releaseDate[0]
  2753. ? moment(this.state.releaseDate[0])
  2754. : null,
  2755. this.state.releaseDate[1]
  2756. ? moment(this.state.releaseDate[1])
  2757. : null,
  2758. ]}
  2759. onChange={(data, dataString) => {
  2760. this.setState({ releaseDate: dataString });
  2761. }}
  2762. />
  2763. </div>
  2764. </div>
  2765. </TabPane>
  2766. <TabPane tab="查看" key="3">
  2767. <Button
  2768. type="primary"
  2769. style={{ margin: "11px 0px 10px 10px" }}
  2770. onClick={() => {
  2771. this.inRecord();
  2772. this.setState({
  2773. bvisible: true,
  2774. });
  2775. }}
  2776. disabled={this.state.selectedRowKeys.length != 1}
  2777. >
  2778. 查看开票详情
  2779. </Button>
  2780. <Button
  2781. type="primary"
  2782. style={{ margin: "11px 0px 10px 10px" }}
  2783. onClick={() => {
  2784. this.cuiData();
  2785. this.setState({
  2786. cuiVisible: true,
  2787. });
  2788. }}
  2789. disabled={this.state.selectedRowKeys.length != 1}
  2790. >
  2791. 查看催款详情
  2792. </Button>
  2793. <Button
  2794. type="primary"
  2795. style={{ margin: "11px 0px 10px 10px" }}
  2796. onClick={() => {
  2797. this.proData();
  2798. this.setState({
  2799. proVisible: true,
  2800. });
  2801. }}
  2802. disabled={this.state.selectedRowKeys.length != 1}
  2803. >
  2804. 查看项目进度
  2805. </Button>
  2806. </TabPane>
  2807. </Tabs>
  2808. <div className="patent-table">
  2809. <Spin spinning={this.state.loading}>
  2810. <Table
  2811. columns={
  2812. this.state.changeList == undefined
  2813. ? this.state.columns
  2814. : this.state.changeList
  2815. }
  2816. dataSource={this.state.dataSource}
  2817. scroll={{ x: 1500, y: 0 }}
  2818. pagination={this.state.pagination}
  2819. rowSelection={rowSelection}
  2820. onRowClick={this.tableRowClick}
  2821. bordered
  2822. size="small"
  2823. />
  2824. </Spin>
  2825. </div>
  2826. <NewService
  2827. uid={this.state.uid}
  2828. signBillVisible={this.state.signBillVisible}
  2829. signBillState={this.state.signBillState}
  2830. operation={this.operation}
  2831. admissibleOrder={this.admissibleOrder}
  2832. userDetaile={this.state.userDetaile}
  2833. datauser={this.state.datauser}
  2834. showDesc={this.state.showDesc}
  2835. closeDesc={this.closeDesc}
  2836. />
  2837. <Modal
  2838. maskClosable={false}
  2839. className="admin-desc-content"
  2840. footer=""
  2841. title="开具发票申请单"
  2842. width="1200px"
  2843. visible={this.state.avisible}
  2844. onOk={this.visitOks}
  2845. onCancel={this.visitCancels}
  2846. style={{ zIndex: 999 }}
  2847. >
  2848. <Form
  2849. layout="horizontal"
  2850. // id="demand-form"
  2851. style={{ paddingBottom: "40px" }}
  2852. >
  2853. <Spin spinning={this.state.loading}>
  2854. <div className="clearfix">
  2855. <div className="clearfix">
  2856. <FormItem
  2857. className="half-item"
  2858. {...formItemLayout}
  2859. label="合同编号"
  2860. >
  2861. <span>{this.state.contractNo}</span>
  2862. </FormItem>
  2863. <FormItem
  2864. className="half-item"
  2865. {...formItemLayout}
  2866. label="备注"
  2867. >
  2868. {
  2869. <Input
  2870. placeholder="填写申请发票原因"
  2871. value={this.state.remarks}
  2872. onChange={(e) => {
  2873. this.setState({ remarks: e.target.value });
  2874. }}
  2875. style={{ width: "240px" }}
  2876. />
  2877. }
  2878. </FormItem>
  2879. </div>
  2880. <div className="clearfix">
  2881. <FormItem
  2882. className="half-item"
  2883. {...formItemLayout}
  2884. label="省内/外:"
  2885. >
  2886. <RadioGroup
  2887. value={this.state.type}
  2888. onChange={(e) => {
  2889. this.setState({ type: e.target.value });
  2890. }}
  2891. >
  2892. <Radio value={0}>省内</Radio>
  2893. <Radio value={1}>省外</Radio>
  2894. </RadioGroup>
  2895. <span
  2896. style={{
  2897. position: "absolute",
  2898. color: "red",
  2899. fontSize: "10px",
  2900. lineHeight: "20px",
  2901. }}
  2902. >
  2903. 省内:湖南省<br></br>省外:除湖南省以外
  2904. </span>
  2905. </FormItem>
  2906. <FormItem
  2907. className="half-item"
  2908. {...formItemLayout}
  2909. label="特批:"
  2910. >
  2911. <RadioGroup
  2912. value={!this.state.ordapproval ? 0 : 1}
  2913. onChange={(e) => {
  2914. this.setState({ ordapproval: e.target.value });
  2915. }}
  2916. >
  2917. <Radio value={0}>否</Radio>
  2918. <Radio value={1}>是</Radio>
  2919. </RadioGroup>
  2920. <span
  2921. style={{
  2922. position: "absolute",
  2923. color: "red",
  2924. fontSize: "10px",
  2925. lineHeight: "15px",
  2926. }}
  2927. >
  2928. 注:特批单,省内省外,<br></br>分别由周总,省外总经理
  2929. <br></br>特批后,方可至开票流程
  2930. </span>
  2931. </FormItem>
  2932. </div>
  2933. <hr
  2934. style={{
  2935. border: "1px dashed #aaa",
  2936. width: "90%",
  2937. margin: "auto",
  2938. }}
  2939. />
  2940. <div style={{ marginTop: "13px", marginLeft: "16px" }}>
  2941. <span style={{ fontSize: "14px" }}>发票内容</span>
  2942. </div>
  2943. <div className="clearfix">
  2944. <FormItem
  2945. className="half-item"
  2946. {...formItemLayout}
  2947. label={
  2948. <span>
  2949. <strong style={{ color: "#f00" }}>*</strong>
  2950. 发票类型
  2951. </span>
  2952. }
  2953. >
  2954. <RadioGroup
  2955. style={{ width: "160%" }}
  2956. onChange={(e) => {
  2957. this.setState({ invoiceType: e.target.value });
  2958. }}
  2959. value={this.state.invoiceType}
  2960. >
  2961. <Radio value={0}>增值税专用发票</Radio>
  2962. <Radio value={1}>增值税普通发票</Radio>
  2963. <Radio value={2}>其他</Radio>
  2964. </RadioGroup>
  2965. </FormItem>
  2966. </div>
  2967. <div className="clearfix">
  2968. <FormItem
  2969. className="half-item"
  2970. {...formItemLayout}
  2971. label={
  2972. <span>
  2973. <strong style={{ color: "#f00" }}>*</strong>
  2974. 单位名称
  2975. </span>
  2976. }
  2977. >
  2978. {
  2979. <Input
  2980. placeholder="请输入单位名称"
  2981. value={this.state.unitName}
  2982. onChange={(e) => {
  2983. this.setState({ unitName: e.target.value });
  2984. }}
  2985. style={{ width: "240px" }}
  2986. />
  2987. }
  2988. <span
  2989. style={{
  2990. position: "absolute",
  2991. color: "red",
  2992. fontSize: "10px",
  2993. lineHeight: "15px",
  2994. width: "30%",
  2995. }}
  2996. >
  2997. 系统读取单位<br></br>名称,可修改
  2998. </span>
  2999. </FormItem>
  3000. <FormItem
  3001. className="half-item"
  3002. {...formItemLayout}
  3003. label={
  3004. <span>
  3005. <strong style={{ color: "#f00" }}>*</strong>税号
  3006. </span>
  3007. }
  3008. >
  3009. {
  3010. <Input
  3011. placeholder="请输入税号"
  3012. value={this.state.taxNumber}
  3013. onChange={(e) => {
  3014. this.setState({ taxNumber: e.target.value });
  3015. }}
  3016. style={{ width: "240px" }}
  3017. />
  3018. }
  3019. </FormItem>
  3020. <FormItem
  3021. className="half-item"
  3022. {...formItemLayout}
  3023. label={
  3024. <span>
  3025. <strong style={{ color: "#f00" }}>*</strong>
  3026. 开票金额(万元)
  3027. </span>
  3028. }
  3029. >
  3030. {
  3031. <Input
  3032. placeholder="请输入开票金额"
  3033. value={this.state.amount}
  3034. onChange={(e) => {
  3035. this.setState({ amount: e.target.value });
  3036. }}
  3037. style={{ width: "240px" }}
  3038. />
  3039. }
  3040. <span
  3041. style={{
  3042. position: "absolute",
  3043. color: "red",
  3044. fontSize: "10px",
  3045. lineHeight: "15px",
  3046. width: "30%",
  3047. }}
  3048. >
  3049. 填写本次开票<br></br>金额
  3050. </span>
  3051. </FormItem>
  3052. <FormItem
  3053. className="half-item"
  3054. {...formItemLayout}
  3055. label={
  3056. <span>
  3057. <strong style={{ color: "#f00" }}>*</strong>
  3058. 开户行及银行账号
  3059. </span>
  3060. }
  3061. >
  3062. {
  3063. <Input
  3064. placeholder="请输入开户行及银行账号"
  3065. value={this.state.banks}
  3066. onChange={(e) => {
  3067. this.setState({ banks: e.target.value });
  3068. }}
  3069. style={{ width: "240px" }}
  3070. />
  3071. }
  3072. </FormItem>
  3073. <FormItem
  3074. className="half-item"
  3075. {...formItemLayout}
  3076. label={
  3077. <span>
  3078. <strong style={{ color: "#f00" }}>*</strong>
  3079. 开票内容及说明
  3080. </span>
  3081. }
  3082. >
  3083. {
  3084. <Input
  3085. placeholder="请输入开票内容及说明"
  3086. value={this.state.content}
  3087. onChange={(e) => {
  3088. this.setState({ content: e.target.value });
  3089. }}
  3090. style={{ width: "240px" }}
  3091. />
  3092. }
  3093. </FormItem>
  3094. <FormItem
  3095. className="half-item"
  3096. {...formItemLayout}
  3097. label={
  3098. <span>
  3099. <strong style={{ color: "#f00" }}>*</strong>
  3100. 单位地址
  3101. </span>
  3102. }
  3103. >
  3104. {
  3105. <Input
  3106. placeholder="请输入单位地址"
  3107. value={this.state.unitAddress}
  3108. onChange={(e) => {
  3109. this.setState({ unitAddress: e.target.value });
  3110. }}
  3111. style={{ width: "240px" }}
  3112. />
  3113. }
  3114. </FormItem>
  3115. <FormItem
  3116. className="half-item"
  3117. {...formItemLayout}
  3118. label="备注"
  3119. >
  3120. {
  3121. <Input
  3122. placeholder="请备注开票公司名称"
  3123. value={this.state.invoiceRemarks}
  3124. onChange={(e) => {
  3125. this.setState({
  3126. invoiceRemarks: e.target.value,
  3127. });
  3128. }}
  3129. style={{ width: "240px" }}
  3130. />
  3131. }
  3132. <span
  3133. style={{
  3134. position: "absolute",
  3135. color: "red",
  3136. fontSize: "10px",
  3137. lineHeight: "15px",
  3138. width: "30%",
  3139. }}
  3140. >
  3141. 开票公司名称,<br></br>如:科德集团
  3142. </span>
  3143. </FormItem>
  3144. <FormItem
  3145. className="half-item"
  3146. {...formItemLayout}
  3147. label={
  3148. <span>
  3149. <strong style={{ color: "#f00" }}>*</strong>
  3150. 单位电话
  3151. </span>
  3152. }
  3153. >
  3154. {
  3155. <Input
  3156. placeholder="请输入单位电话"
  3157. value={this.state.unitMobile}
  3158. onChange={(e) => {
  3159. this.setState({ unitMobile: e.target.value });
  3160. }}
  3161. style={{ width: "240px" }}
  3162. />
  3163. }
  3164. </FormItem>
  3165. </div>
  3166. <div className="clearfix">
  3167. <FormItem
  3168. labelCol={{ span: 4 }}
  3169. wrapperCol={{ span: 18 }}
  3170. label={
  3171. <span>
  3172. <strong style={{ color: "#f00" }}>*</strong>
  3173. 上传附件
  3174. </span>
  3175. }
  3176. >
  3177. <PicturesWall
  3178. fileList={this.getOrgCodeUrl}
  3179. pictureUrl={this.state.orgCodeUrl}
  3180. />
  3181. <span
  3182. style={{
  3183. paddingTop: "10px",
  3184. paddingLeft: "10px",
  3185. color: "red",
  3186. fontSize: "14px",
  3187. }}
  3188. >
  3189. 注:请上传带"公司盖章"的开票申请纸质凭证
  3190. </span>
  3191. <p>图片建议:要清晰。</p>
  3192. </FormItem>
  3193. </div>
  3194. <hr
  3195. style={{
  3196. border: "1px dashed #aaa",
  3197. width: "90%",
  3198. margin: "auto",
  3199. }}
  3200. />
  3201. <div className="clearfix" style={{ marginTop: "10px" }}>
  3202. <FormItem
  3203. className="half-item"
  3204. {...formItemLayout}
  3205. label="发票是否邮寄:"
  3206. >
  3207. <RadioGroup
  3208. value={this.state.post}
  3209. onChange={(e) => {
  3210. this.setState({ post: e.target.value });
  3211. }}
  3212. >
  3213. <Radio value={0}>是</Radio>
  3214. <Radio value={1}>否</Radio>
  3215. </RadioGroup>
  3216. </FormItem>
  3217. </div>
  3218. {this.state.post === 0 ? (
  3219. <div className="clearfix">
  3220. <FormItem
  3221. className="half-item"
  3222. {...formItemLayout}
  3223. label="收信人姓名"
  3224. >
  3225. {
  3226. <Input
  3227. placeholder="请输入收信人姓名"
  3228. value={this.state.addressee}
  3229. onChange={(e) => {
  3230. this.setState({ addressee: e.target.value });
  3231. }}
  3232. style={{ width: "240px" }}
  3233. />
  3234. }
  3235. </FormItem>
  3236. <FormItem
  3237. className="half-item"
  3238. {...formItemLayout}
  3239. label="电话"
  3240. >
  3241. {
  3242. <Input
  3243. placeholder="请输入电话"
  3244. value={this.state.addresseeMobile}
  3245. onChange={(e) => {
  3246. this.setState({
  3247. addresseeMobile: e.target.value,
  3248. });
  3249. }}
  3250. style={{ width: "240px" }}
  3251. />
  3252. }
  3253. </FormItem>
  3254. </div>
  3255. ) : (
  3256. ""
  3257. )}
  3258. {this.state.post === 0 ? (
  3259. <div className="clearfix">
  3260. <FormItem
  3261. className="half-item"
  3262. {...formItemLayout}
  3263. label="省-市-区"
  3264. >
  3265. <Cascader
  3266. options={areaSelect()}
  3267. value={this.state.ProvinceCity}
  3268. placeholder="选择城市"
  3269. style={{ width: "95%" }}
  3270. onChange={(e) => {
  3271. this.setState({ ProvinceCity: e });
  3272. }}
  3273. />
  3274. </FormItem>
  3275. </div>
  3276. ) : (
  3277. ""
  3278. )}
  3279. {this.state.post === 0 ? (
  3280. <div className="clearfix">
  3281. <FormItem
  3282. className="half-item"
  3283. {...formItemLayout}
  3284. label="详细地址"
  3285. >
  3286. {
  3287. <Input
  3288. placeholder="请输入详细地址"
  3289. value={this.state.recipientAddress}
  3290. onChange={(e) => {
  3291. this.setState({
  3292. recipientAddress: e.target.value,
  3293. });
  3294. }}
  3295. style={{ width: "240px" }}
  3296. />
  3297. }
  3298. </FormItem>
  3299. </div>
  3300. ) : (
  3301. ""
  3302. )}
  3303. {/* <FormItem
  3304. className="half-item"
  3305. {...formItemLayout}
  3306. label={
  3307. <span>
  3308. <strong style={{ color: "#f00" }}>*</strong>
  3309. 开票金额总计
  3310. </span>
  3311. }
  3312. >
  3313. {
  3314. <Input
  3315. value={this.state.alreadyAmount}
  3316. onChange={(e) => {
  3317. this.setState({ alreadyAmount: e.target.value });
  3318. }}
  3319. style={{ width: "40px" }}
  3320. />
  3321. }
  3322. 万元
  3323. <span
  3324. style={{
  3325. position: "absolute",
  3326. color: "red",
  3327. fontSize: "10px",
  3328. lineHeight: "15px",
  3329. marginLeft: "20px",
  3330. }}
  3331. >
  3332. 默认值为0.新开票订单此项不用填.<br></br>
  3333. 以前已开票订单,请填写已开票的总计<br></br>
  3334. 金额,便于审核核对!
  3335. </span>
  3336. </FormItem> */}
  3337. </div>
  3338. <Button
  3339. className="cancel"
  3340. type="primary"
  3341. style={{ marginRight: "50px", float: "right" }}
  3342. size="large"
  3343. onClick={this.submitApp}
  3344. >
  3345. 提交申请
  3346. </Button>
  3347. {/*<Button className="cancel" type="primary" style={{marginRight:"50px",float:'right',background:'deepskyblue',border:'none'}} size="large" onClick={this.saveApp}>保存</Button>*/}
  3348. </Spin>
  3349. </Form>
  3350. </Modal>
  3351. <Modal
  3352. maskClosable={false}
  3353. visible={this.state.bvisible}
  3354. footer=""
  3355. title="开票历史记录"
  3356. className="admin-desc-content"
  3357. width="1200px"
  3358. onCancel={(e) => {
  3359. this.setState({
  3360. bvisible: false,
  3361. });
  3362. }}
  3363. style={{ zIndex: 5 }}
  3364. >
  3365. <Spin spinning={this.state.loading}>
  3366. <div className="patent-table">
  3367. <Table
  3368. columns={this.state.columnsDate}
  3369. onRowClick={this.dtableRowClick}
  3370. dataSource={this.state.recordData}
  3371. pagination={false}
  3372. />
  3373. <div className="clearfix" style={{ marginTop: "20px" }}>
  3374. <FormItem
  3375. className="half-item"
  3376. {...formItemLayout}
  3377. label={<span style={{ fontSize: "14px" }}>开票总计</span>}
  3378. >
  3379. <span>{this.state.sum + "(万元)"}</span>
  3380. </FormItem>
  3381. </div>
  3382. </div>
  3383. </Spin>
  3384. </Modal>
  3385. <Modal
  3386. maskClosable={false}
  3387. visible={this.state.visibleR}
  3388. className="admin-desc-content"
  3389. footer=""
  3390. title="拒绝理由"
  3391. width="400px"
  3392. onCancel={this.rejectCancels}
  3393. >
  3394. <Input.TextArea
  3395. disabled={true}
  3396. rows={4}
  3397. value={this.state.reason}
  3398. style={{ color: "black" }}
  3399. ></Input.TextArea>
  3400. </Modal>
  3401. <Modal
  3402. maskClosable={false}
  3403. className="admin-desc-content"
  3404. footer=""
  3405. title="开具发票申请单"
  3406. width="1200px"
  3407. visible={this.state.cvisible}
  3408. onOk={this.visitOks}
  3409. onCancel={this.visitCancels}
  3410. style={{ zIndex: 999 }}
  3411. >
  3412. <Form
  3413. layout="horizontal"
  3414. // id="demand-form"
  3415. style={{ paddingBottom: "40px" }}
  3416. >
  3417. <Spin spinning={this.state.loading}>
  3418. <div className="clearfix">
  3419. <div className="clearfix">
  3420. <FormItem
  3421. className="half-item"
  3422. {...formItemLayout}
  3423. label="合同编号"
  3424. >
  3425. <span>{this.state.contractNo}</span>
  3426. </FormItem>
  3427. <FormItem
  3428. className="half-item"
  3429. {...formItemLayout}
  3430. label="备注"
  3431. >
  3432. {
  3433. <Input
  3434. placeholder="填写申请发票原因"
  3435. value={this.state.remarks}
  3436. onChange={(e) => {
  3437. this.setState({ remarks: e.target.value });
  3438. }}
  3439. style={{ width: "240px" }}
  3440. />
  3441. }
  3442. </FormItem>
  3443. </div>
  3444. <div className="clearfix">
  3445. <FormItem
  3446. className="half-item"
  3447. {...formItemLayout}
  3448. label="省内/外:"
  3449. >
  3450. <RadioGroup
  3451. value={this.state.type}
  3452. onChange={(e) => {
  3453. this.setState({ type: e.target.value });
  3454. }}
  3455. >
  3456. <Radio value={0}>省内</Radio>
  3457. <Radio value={1}>省外</Radio>
  3458. </RadioGroup>
  3459. <span
  3460. style={{
  3461. position: "absolute",
  3462. color: "red",
  3463. fontSize: "10px",
  3464. lineHeight: "20px",
  3465. }}
  3466. >
  3467. 省内:湖南省<br></br>省外:除湖南省以外
  3468. </span>
  3469. </FormItem>
  3470. <FormItem
  3471. className="half-item"
  3472. {...formItemLayout}
  3473. label="特批:"
  3474. >
  3475. <RadioGroup
  3476. value={!this.state.ordapproval ? 0 : 1}
  3477. onChange={(e) => {
  3478. this.setState({ ordapproval: e.target.value });
  3479. }}
  3480. >
  3481. <Radio value={0}>否</Radio>
  3482. <Radio value={1}>是</Radio>
  3483. </RadioGroup>
  3484. <span
  3485. style={{
  3486. position: "absolute",
  3487. color: "red",
  3488. fontSize: "10px",
  3489. lineHeight: "15px",
  3490. }}
  3491. >
  3492. 注:特批单,省内省外,<br></br>分别由周总,省外总经理
  3493. <br></br>特批后,方可至开票流程
  3494. </span>
  3495. </FormItem>
  3496. </div>
  3497. <hr
  3498. style={{
  3499. border: "1px dashed #aaa",
  3500. width: "90%",
  3501. margin: "auto",
  3502. }}
  3503. />
  3504. <div style={{ marginTop: "13px", marginLeft: "16px" }}>
  3505. <span style={{ fontSize: "14px" }}>发票内容</span>
  3506. </div>
  3507. <div className="clearfix">
  3508. <FormItem
  3509. className="half-item"
  3510. {...formItemLayout}
  3511. label={
  3512. <span>
  3513. <strong style={{ color: "#f00" }}>*</strong>
  3514. 发票类型
  3515. </span>
  3516. }
  3517. >
  3518. <RadioGroup
  3519. style={{ width: "160%" }}
  3520. onChange={(e) => {
  3521. this.setState({ invoiceType: e.target.value });
  3522. }}
  3523. value={this.state.invoiceType}
  3524. >
  3525. <Radio value={0}>增值税专用发票</Radio>
  3526. <Radio value={1}>增值税普通发票</Radio>
  3527. <Radio value={2}>其他</Radio>
  3528. </RadioGroup>
  3529. </FormItem>
  3530. </div>
  3531. <div className="clearfix">
  3532. <FormItem
  3533. className="half-item"
  3534. {...formItemLayout}
  3535. label={
  3536. <span>
  3537. <strong style={{ color: "#f00" }}>*</strong>
  3538. 单位名称
  3539. </span>
  3540. }
  3541. >
  3542. {
  3543. <Input
  3544. placeholder="请输入单位名称"
  3545. value={this.state.unitName}
  3546. onChange={(e) => {
  3547. this.setState({ unitName: e.target.value });
  3548. }}
  3549. style={{ width: "240px" }}
  3550. />
  3551. }
  3552. <span
  3553. style={{
  3554. position: "absolute",
  3555. color: "red",
  3556. fontSize: "10px",
  3557. lineHeight: "15px",
  3558. width: "30%",
  3559. }}
  3560. >
  3561. 系统读取单位<br></br>名称,可修改
  3562. </span>
  3563. </FormItem>
  3564. <FormItem
  3565. className="half-item"
  3566. {...formItemLayout}
  3567. label={
  3568. <span>
  3569. <strong style={{ color: "#f00" }}>*</strong>税号
  3570. </span>
  3571. }
  3572. >
  3573. {
  3574. <Input
  3575. placeholder="请输入税号"
  3576. value={this.state.taxNumber}
  3577. onChange={(e) => {
  3578. this.setState({ taxNumber: e.target.value });
  3579. }}
  3580. style={{ width: "240px" }}
  3581. />
  3582. }
  3583. </FormItem>
  3584. <FormItem
  3585. className="half-item"
  3586. {...formItemLayout}
  3587. label={
  3588. <span>
  3589. <strong style={{ color: "#f00" }}>*</strong>
  3590. 开票金额(万元)
  3591. </span>
  3592. }
  3593. >
  3594. {
  3595. <Input
  3596. placeholder="请输入开票金额"
  3597. value={this.state.amount}
  3598. onChange={(e) => {
  3599. this.setState({ amount: e.target.value });
  3600. }}
  3601. style={{ width: "240px" }}
  3602. />
  3603. }
  3604. <span
  3605. style={{
  3606. position: "absolute",
  3607. color: "red",
  3608. fontSize: "10px",
  3609. lineHeight: "15px",
  3610. width: "30%",
  3611. }}
  3612. >
  3613. 填写本次开票<br></br>金额
  3614. </span>
  3615. </FormItem>
  3616. <FormItem
  3617. className="half-item"
  3618. {...formItemLayout}
  3619. label={
  3620. <span>
  3621. <strong style={{ color: "#f00" }}>*</strong>
  3622. 开户行及银行账号
  3623. </span>
  3624. }
  3625. >
  3626. {
  3627. <Input
  3628. placeholder="请输入开户行及银行账号"
  3629. value={this.state.banks}
  3630. onChange={(e) => {
  3631. this.setState({ banks: e.target.value });
  3632. }}
  3633. style={{ width: "240px" }}
  3634. />
  3635. }
  3636. </FormItem>
  3637. <FormItem
  3638. className="half-item"
  3639. {...formItemLayout}
  3640. label={
  3641. <span>
  3642. <strong style={{ color: "#f00" }}>*</strong>
  3643. 开票内容及说明
  3644. </span>
  3645. }
  3646. >
  3647. {
  3648. <Input
  3649. placeholder="请输入开票内容及说明"
  3650. value={this.state.content}
  3651. onChange={(e) => {
  3652. this.setState({ content: e.target.value });
  3653. }}
  3654. style={{ width: "240px" }}
  3655. />
  3656. }
  3657. </FormItem>
  3658. <FormItem
  3659. className="half-item"
  3660. {...formItemLayout}
  3661. label={
  3662. <span>
  3663. <strong style={{ color: "#f00" }}>*</strong>
  3664. 单位地址
  3665. </span>
  3666. }
  3667. >
  3668. {
  3669. <Input
  3670. placeholder="请输入单位地址"
  3671. value={this.state.unitAddress}
  3672. onChange={(e) => {
  3673. this.setState({ unitAddress: e.target.value });
  3674. }}
  3675. style={{ width: "240px" }}
  3676. />
  3677. }
  3678. </FormItem>
  3679. <FormItem
  3680. className="half-item"
  3681. {...formItemLayout}
  3682. label="备注"
  3683. >
  3684. {
  3685. <Input
  3686. placeholder="请备注开票公司名称"
  3687. value={this.state.invoiceRemarks}
  3688. onChange={(e) => {
  3689. this.setState({
  3690. invoiceRemarks: e.target.value,
  3691. });
  3692. }}
  3693. style={{ width: "240px" }}
  3694. />
  3695. }
  3696. <span
  3697. style={{
  3698. position: "absolute",
  3699. color: "red",
  3700. fontSize: "10px",
  3701. lineHeight: "15px",
  3702. width: "30%",
  3703. }}
  3704. >
  3705. 开票公司名称,<br></br>如:科德集团
  3706. </span>
  3707. </FormItem>
  3708. <FormItem
  3709. className="half-item"
  3710. {...formItemLayout}
  3711. label={
  3712. <span>
  3713. <strong style={{ color: "#f00" }}>*</strong>
  3714. 单位电话
  3715. </span>
  3716. }
  3717. >
  3718. {
  3719. <Input
  3720. placeholder="请输入单位电话"
  3721. value={this.state.unitMobile}
  3722. onChange={(e) => {
  3723. this.setState({ unitMobile: e.target.value });
  3724. }}
  3725. style={{ width: "240px" }}
  3726. />
  3727. }
  3728. </FormItem>
  3729. </div>
  3730. <div className="clearfix">
  3731. <FormItem
  3732. labelCol={{ span: 4 }}
  3733. wrapperCol={{ span: 18 }}
  3734. label={
  3735. <span>
  3736. <strong style={{ color: "#f00" }}>*</strong>
  3737. 上传附件
  3738. </span>
  3739. }
  3740. >
  3741. <PicturesWall
  3742. fileList={this.getOrgCodeUrl}
  3743. pictureUrl={this.state.orgCodeUrl}
  3744. />
  3745. <span
  3746. style={{
  3747. paddingTop: "10px",
  3748. paddingLeft: "10px",
  3749. color: "red",
  3750. fontSize: "14px",
  3751. }}
  3752. >
  3753. 注:请上传带"公司盖章"的开票申请纸质凭证
  3754. </span>
  3755. <p>图片建议:要清晰。</p>
  3756. </FormItem>
  3757. </div>
  3758. <hr
  3759. style={{
  3760. border: "1px dashed #aaa",
  3761. width: "90%",
  3762. margin: "auto",
  3763. }}
  3764. />
  3765. <div className="clearfix" style={{ marginTop: "10px" }}>
  3766. <FormItem
  3767. className="half-item"
  3768. {...formItemLayout}
  3769. label="发票是否邮寄:"
  3770. >
  3771. <RadioGroup
  3772. value={this.state.post}
  3773. onChange={(e) => {
  3774. this.setState({ post: e.target.value });
  3775. }}
  3776. >
  3777. <Radio value={0}>是</Radio>
  3778. <Radio value={1}>否</Radio>
  3779. </RadioGroup>
  3780. </FormItem>
  3781. </div>
  3782. {this.state.post === 0 ? (
  3783. <div className="clearfix">
  3784. <FormItem
  3785. className="half-item"
  3786. {...formItemLayout}
  3787. label="收信人姓名"
  3788. >
  3789. {
  3790. <Input
  3791. placeholder="请输入收信人姓名"
  3792. value={this.state.addressee}
  3793. onChange={(e) => {
  3794. this.setState({ addressee: e.target.value });
  3795. }}
  3796. style={{ width: "240px" }}
  3797. />
  3798. }
  3799. </FormItem>
  3800. <FormItem
  3801. className="half-item"
  3802. {...formItemLayout}
  3803. label="电话"
  3804. >
  3805. {
  3806. <Input
  3807. placeholder="请输入电话"
  3808. value={this.state.addresseeMobile}
  3809. onChange={(e) => {
  3810. this.setState({
  3811. addresseeMobile: e.target.value,
  3812. });
  3813. }}
  3814. style={{ width: "240px" }}
  3815. />
  3816. }
  3817. </FormItem>
  3818. </div>
  3819. ) : (
  3820. ""
  3821. )}
  3822. {this.state.post === 0 ? (
  3823. <div className="clearfix">
  3824. <FormItem
  3825. className="half-item"
  3826. {...formItemLayout}
  3827. label="省-市-区"
  3828. >
  3829. <Cascader
  3830. options={areaSelect()}
  3831. value={this.state.ProvinceCity}
  3832. placeholder="选择城市"
  3833. style={{ width: "95%" }}
  3834. onChange={(e) => {
  3835. this.setState({ ProvinceCity: e });
  3836. }}
  3837. />
  3838. </FormItem>
  3839. </div>
  3840. ) : (
  3841. ""
  3842. )}
  3843. {this.state.post === 0 ? (
  3844. <div className="clearfix">
  3845. <FormItem
  3846. className="half-item"
  3847. {...formItemLayout}
  3848. label="详细地址"
  3849. >
  3850. {
  3851. <Input
  3852. placeholder="请输入详细地址"
  3853. value={this.state.recipientAddress}
  3854. onChange={(e) => {
  3855. this.setState({
  3856. recipientAddress: e.target.value,
  3857. });
  3858. }}
  3859. style={{ width: "240px" }}
  3860. />
  3861. }
  3862. </FormItem>
  3863. </div>
  3864. ) : (
  3865. ""
  3866. )}
  3867. {/* <FormItem
  3868. className="half-item"
  3869. {...formItemLayout}
  3870. label={
  3871. <span>
  3872. <strong style={{ color: "#f00" }}>*</strong>
  3873. 开票金额总计
  3874. </span>
  3875. }
  3876. >
  3877. {
  3878. <Input
  3879. value={this.state.alreadyAmount}
  3880. onChange={(e) => {
  3881. this.setState({ alreadyAmount: e.target.value });
  3882. }}
  3883. style={{ width: "40px" }}
  3884. />
  3885. }
  3886. 万元
  3887. <span
  3888. style={{
  3889. position: "absolute",
  3890. color: "red",
  3891. fontSize: "10px",
  3892. lineHeight: "15px",
  3893. marginLeft: "20px",
  3894. }}
  3895. >
  3896. 默认值为0.新开票订单此项不用填.<br></br>
  3897. 以前已开票订单,请填写已开票的总计<br></br>
  3898. 金额,便于审核核对!
  3899. </span>
  3900. </FormItem> */}
  3901. </div>
  3902. <Button
  3903. className="cancel"
  3904. type="primary"
  3905. style={{ marginRight: "50px", float: "right" }}
  3906. size="large"
  3907. onClick={this.submitApp}
  3908. >
  3909. 提交申请
  3910. </Button>
  3911. {/*<Button className="cancel" type="primary" style={{marginRight:"50px",float:'right',background:'deepskyblue',border:'none'}} size="large" onClick={this.saveApp}>保存</Button>*/}
  3912. </Spin>
  3913. </Form>
  3914. </Modal>
  3915. <Modal
  3916. maskClosable={false}
  3917. className="admin-desc-content"
  3918. footer=""
  3919. title="开具发票申请单"
  3920. width="1200px"
  3921. visible={this.state.dvisible}
  3922. onOk={this.visitOks}
  3923. onCancel={this.dvisitCancels}
  3924. >
  3925. <Form
  3926. layout="horizontal"
  3927. // id="demand-form"
  3928. style={{ paddingBottom: "40px" }}
  3929. >
  3930. <Spin spinning={this.state.loading}>
  3931. <div className="clearfix">
  3932. <div className="clearfix">
  3933. <FormItem
  3934. className="half-item"
  3935. {...formItemLayout}
  3936. label="合同编号"
  3937. >
  3938. <span>{this.state.contractNo}</span>
  3939. </FormItem>
  3940. <FormItem
  3941. className="half-item"
  3942. {...formItemLayout}
  3943. label="备注"
  3944. >
  3945. <span>{this.state.remarks}</span>
  3946. </FormItem>
  3947. </div>
  3948. <div className="clearfix">
  3949. <FormItem
  3950. className="half-item"
  3951. {...formItemLayout}
  3952. label={
  3953. <span>
  3954. <strong style={{ color: "#f00" }}>*</strong>
  3955. 省内/外
  3956. </span>
  3957. }
  3958. >
  3959. <span>{getProvinceA(this.state.type)}</span>
  3960. </FormItem>
  3961. <FormItem
  3962. className="half-item"
  3963. {...formItemLayout}
  3964. label={
  3965. <span>
  3966. <strong style={{ color: "#f00" }}>*</strong>特批
  3967. </span>
  3968. }
  3969. >
  3970. <span>
  3971. {this.state.ordapproval === 0 ? "否" : "是"}
  3972. </span>
  3973. </FormItem>
  3974. </div>
  3975. <hr
  3976. style={{
  3977. border: "1px dashed #aaa",
  3978. width: "90%",
  3979. margin: "auto",
  3980. }}
  3981. />
  3982. <div style={{ marginTop: "13px", marginLeft: "16px" }}>
  3983. <span style={{ fontSize: "14px" }}>发票内容</span>
  3984. </div>
  3985. <div className="clearfix">
  3986. <FormItem
  3987. className="half-item"
  3988. {...formItemLayout}
  3989. label={
  3990. <span>
  3991. <strong style={{ color: "#f00" }}>*</strong>
  3992. 发票类型
  3993. </span>
  3994. }
  3995. >
  3996. <span>
  3997. {this.state.invoiceType === 0
  3998. ? "增值税专用发票"
  3999. : this.state.invoiceType === 1
  4000. ? "增值税普通发票"
  4001. : "其他"}
  4002. </span>
  4003. </FormItem>
  4004. </div>
  4005. <div className="clearfix">
  4006. <FormItem
  4007. className="half-item"
  4008. {...formItemLayout}
  4009. label={
  4010. <span>
  4011. <strong style={{ color: "#f00" }}>*</strong>
  4012. 单位名称
  4013. </span>
  4014. }
  4015. >
  4016. <span>{this.state.unitName}</span>
  4017. </FormItem>
  4018. <FormItem
  4019. className="half-item"
  4020. {...formItemLayout}
  4021. label={
  4022. <span>
  4023. <strong style={{ color: "#f00" }}>*</strong>税号
  4024. </span>
  4025. }
  4026. >
  4027. <span>{this.state.taxNumber}</span>
  4028. </FormItem>
  4029. <FormItem
  4030. className="half-item"
  4031. {...formItemLayout}
  4032. label={
  4033. <span>
  4034. <strong style={{ color: "#f00" }}>*</strong>
  4035. 开票金额(万元)
  4036. </span>
  4037. }
  4038. >
  4039. <span>{this.state.amount}</span>
  4040. </FormItem>
  4041. <FormItem
  4042. className="half-item"
  4043. {...formItemLayout}
  4044. label={
  4045. <span>
  4046. <strong style={{ color: "#f00" }}>*</strong>
  4047. 开户行银行账号
  4048. </span>
  4049. }
  4050. >
  4051. <span>{this.state.banks}</span>
  4052. </FormItem>
  4053. <FormItem
  4054. className="half-item"
  4055. {...formItemLayout}
  4056. label={
  4057. <span>
  4058. <strong style={{ color: "#f00" }}>*</strong>
  4059. 开票内容及说明
  4060. </span>
  4061. }
  4062. >
  4063. <span>{this.state.content}</span>
  4064. </FormItem>
  4065. <FormItem
  4066. className="half-item"
  4067. {...formItemLayout}
  4068. label={
  4069. <span>
  4070. <strong style={{ color: "#f00" }}>*</strong>
  4071. 单位地址
  4072. </span>
  4073. }
  4074. >
  4075. <span>{this.state.unitAddress}</span>
  4076. </FormItem>
  4077. <FormItem
  4078. className="half-item"
  4079. {...formItemLayout}
  4080. label="备注"
  4081. >
  4082. <span>{this.state.invoiceRemarks}</span>
  4083. </FormItem>
  4084. <FormItem
  4085. className="half-item"
  4086. {...formItemLayout}
  4087. label={
  4088. <span>
  4089. <strong style={{ color: "#f00" }}>*</strong>
  4090. 单位电话
  4091. </span>
  4092. }
  4093. >
  4094. <span>{this.state.unitMobile}</span>
  4095. </FormItem>
  4096. </div>
  4097. <div className="clearfix">
  4098. <FormItem
  4099. labelCol={{ span: 4 }}
  4100. wrapperCol={{ span: 18 }}
  4101. label={
  4102. <span>
  4103. <strong style={{ color: "#f00" }}>*</strong>附件
  4104. </span>
  4105. }
  4106. >
  4107. {/*<Upload*/}
  4108. {/* className="demandDetailShow-upload"*/}
  4109. {/* listType="picture-card"*/}
  4110. {/* fileList={this.state.orgCodeUrl}*/}
  4111. {/* onPreview={(file) => {*/}
  4112. {/* this.setState({*/}
  4113. {/* previewImage: file.url || file.thumbUrl,*/}
  4114. {/* previewVisible: true,*/}
  4115. {/* });*/}
  4116. {/* }}*/}
  4117. {/*/>*/}
  4118. <div style={{ paddingTop: '10px', paddingBottom: '10px' }}>
  4119. {this.state.visible && this.state.orgCodeUrl ? <ImgList domId={'inquiry2'} fileList={this.state.orgCodeUrl} ItemWidth={'96px'} /> : <div />}
  4120. </div>
  4121. <Modal
  4122. maskClosable={false}
  4123. footer={null}
  4124. visible={this.state.previewVisible}
  4125. onCancel={() => {
  4126. this.setState({ previewVisible: false });
  4127. }}
  4128. >
  4129. <img
  4130. alt=""
  4131. style={{ width: "100%" }}
  4132. src={this.state.previewImage || ""}
  4133. />
  4134. </Modal>
  4135. </FormItem>
  4136. </div>
  4137. <hr
  4138. style={{
  4139. border: "1px dashed #aaa",
  4140. width: "90%",
  4141. margin: "auto",
  4142. }}
  4143. />
  4144. <div className="clearfix" style={{ marginTop: "10px" }}>
  4145. <FormItem
  4146. className="half-item"
  4147. {...formItemLayout}
  4148. label="发票是否邮寄:"
  4149. >
  4150. <span>{this.state.post === 0 ? "是" : "否"}</span>
  4151. </FormItem>
  4152. </div>
  4153. {this.state.post === 0 ? (
  4154. <div>
  4155. <div className="clearfix">
  4156. <FormItem
  4157. className="half-item"
  4158. {...formItemLayout}
  4159. label="收信人姓名"
  4160. >
  4161. <span>{this.state.addressee}</span>
  4162. </FormItem>
  4163. <FormItem
  4164. className="half-item"
  4165. {...formItemLayout}
  4166. label="电话"
  4167. >
  4168. <span>{this.state.addresseeMobile}</span>
  4169. </FormItem>
  4170. </div>
  4171. <div className="clearfix">
  4172. <FormItem
  4173. className="half-item"
  4174. {...formItemLayout}
  4175. label="省-市-区"
  4176. >
  4177. <span>
  4178. {getprovince(this.state.addresseeProvince)}/
  4179. {getprovince(this.state.addresseeCity)}/
  4180. {getprovince(this.state.addresseeArea)}
  4181. </span>
  4182. </FormItem>
  4183. </div>
  4184. <div className="clearfix">
  4185. <FormItem
  4186. className="half-item"
  4187. {...formItemLayout}
  4188. label="详细地址"
  4189. >
  4190. <span>{this.state.recipientAddress}</span>
  4191. </FormItem>
  4192. </div>
  4193. </div>
  4194. ) : (
  4195. ""
  4196. )}
  4197. </div>
  4198. {/* <FormItem
  4199. className="half-item"
  4200. {...formItemLayout}
  4201. label={
  4202. <span>
  4203. <strong style={{ color: "#f00" }}>*</strong>
  4204. 开票金额总计
  4205. </span>
  4206. }
  4207. >
  4208. <span>{this.state.alreadyAmount}万元</span>
  4209. </FormItem> */}
  4210. </Spin>
  4211. </Form>
  4212. </Modal>
  4213. {/* <Modal
  4214. visible={this.state.bvisible}
  4215. footer=""
  4216. title="开票历史记录"
  4217. className="admin-desc-content"
  4218. width="1200px"
  4219. onCancel={this.inRecordCanl}
  4220. >
  4221. <Spin spinning={this.state.loading}>
  4222. <div
  4223. className="patent-table"
  4224. ref={e => {
  4225. this.refs.kaiPiao = e;
  4226. }}
  4227. >
  4228. <Table
  4229. columns={this.state.columnsDate}
  4230. dataSource={this.state.recordData}
  4231. pagination={false}
  4232. bordered
  4233. />
  4234. <div className="clearfix" style={{ marginTop: "20px" }}>
  4235. <FormItem
  4236. className="half-item"
  4237. {...formItemLayout}
  4238. label={<span style={{ fontSize: "14px" }}>开票总计</span>}
  4239. >
  4240. <span>{this.state.sum + "(万元)"}</span>
  4241. </FormItem>
  4242. </div>
  4243. <ReactToPrint
  4244. trigger={() => (
  4245. <Button
  4246. type="primary"
  4247. style={{
  4248. float: "right",
  4249. // marginTop: 10,
  4250. position: "absolute",
  4251. top: -54,
  4252. right: 30
  4253. }}
  4254. >
  4255. 打印
  4256. </Button>
  4257. )}
  4258. content={() => this.refs.kaiPiao}
  4259. />
  4260. </div>
  4261. </Spin>
  4262. </Modal> */}
  4263. <Modal
  4264. maskClosable={false}
  4265. visible={this.state.cuiVisible}
  4266. footer=""
  4267. title="催款详情"
  4268. className="admin-desc-content"
  4269. width="1300px"
  4270. pagination={false}
  4271. onCancel={() => {
  4272. // this.loadData();
  4273. this.setState({
  4274. cuiVisible: false,
  4275. });
  4276. }}
  4277. >
  4278. <Spin spinning={this.state.loading}>
  4279. <div
  4280. className="patent-table"
  4281. style={
  4282. {
  4283. // width: 900,
  4284. // position: "relative",
  4285. // left: "50%",
  4286. // transform: "translate(-50%)",
  4287. // padding: "25px 0 30px 30px"
  4288. }
  4289. }
  4290. ref={(e) => {
  4291. this.refs.all = e;
  4292. }}
  4293. >
  4294. <Table
  4295. columns={this.state.cuiColumns}
  4296. dataSource={this.state.cuiDataList}
  4297. scroll={{ x: "max-content", y: 0 }}
  4298. pagination={false}
  4299. bordered
  4300. size="small"
  4301. />
  4302. </div>
  4303. </Spin>
  4304. <ReactToPrint
  4305. trigger={() => (
  4306. <Button
  4307. type="primary"
  4308. style={{
  4309. float: "right",
  4310. marginTop: 10,
  4311. position: "absolute",
  4312. top: 0,
  4313. right: 30,
  4314. }}
  4315. >
  4316. 打印
  4317. </Button>
  4318. )}
  4319. content={() => this.refs.all}
  4320. />
  4321. </Modal>
  4322. <Modal
  4323. maskClosable={false}
  4324. visible={this.state.proVisible}
  4325. footer=""
  4326. title="项目详情"
  4327. className="admin-desc-content"
  4328. width="1300px"
  4329. pagination={false}
  4330. onCancel={() => {
  4331. // this.loadData();
  4332. this.setState({
  4333. proVisible: false,
  4334. });
  4335. }}
  4336. >
  4337. <Spin spinning={this.state.loading}>
  4338. <Project
  4339. record={this.state.record}
  4340. visible={this.state.pvisible}
  4341. cancel={() => {
  4342. this.setState({ pvisible: false });
  4343. }}
  4344. />
  4345. <div
  4346. className="patent-table"
  4347. ref={(e) => {
  4348. this.refs.all = e;
  4349. }}
  4350. >
  4351. <Table
  4352. columns={this.state.proColumns}
  4353. dataSource={this.state.proDataList}
  4354. onRowClick={this.tableRowClickPro}
  4355. pagination={false}
  4356. bordered
  4357. size="small"
  4358. />
  4359. </div>
  4360. {/* <span style={{ display: "block", marginTop: 10, color: "red" }}>
  4361. 外包(内部)价格总计(万元):{this.state.totalWaibao}
  4362. </span> */}
  4363. </Spin>
  4364. <ReactToPrint
  4365. trigger={() => (
  4366. <Button
  4367. type="primary"
  4368. style={{
  4369. float: "right",
  4370. marginTop: 10,
  4371. position: "absolute",
  4372. top: 0,
  4373. right: 30,
  4374. }}
  4375. >
  4376. 打印
  4377. </Button>
  4378. )}
  4379. content={() => this.refs.all}
  4380. />
  4381. </Modal>
  4382. {this.state.visible ?
  4383. <Modal
  4384. className="customeDetails"
  4385. footer=""
  4386. title="订单详情"
  4387. width="1200px"
  4388. visible={this.state.visible}
  4389. onOk={this.visitOk}
  4390. onCancel={this.visitCancel}
  4391. >
  4392. <Form
  4393. layout="horizontal"
  4394. onSubmit={this.handleSubmit}
  4395. id="demand-form"
  4396. style={{ paddingBottom: "40px" }}
  4397. >
  4398. <Spin spinning={this.state.loading}>
  4399. <div className="clearfix">
  4400. <div style={{ position: "absolute", top: '-52px', left: '81px', zIndex: 10000 }}>
  4401. <OrderItemStatus deleteSign={this.state.deleteSign} />
  4402. </div>
  4403. <FormItem
  4404. className="half-item"
  4405. {...formItemLayout}
  4406. label="订单编号"
  4407. >
  4408. <span>{this.state.orderNo}</span>
  4409. </FormItem>
  4410. <FormItem
  4411. className="half-item"
  4412. {...formItemLayout}
  4413. label="合同编号"
  4414. >
  4415. <span>{this.state.contractNo}</span>
  4416. </FormItem>
  4417. <FormItem
  4418. className="half-item"
  4419. {...formItemLayout}
  4420. label="客户名称"
  4421. >
  4422. <span>{this.state.userName}</span>
  4423. <EnterpriseNameChange
  4424. type='journal'
  4425. style={{ marginLeft: 10 }}
  4426. enterpriseId={this.state.orderUid} />
  4427. </FormItem>
  4428. <FormItem
  4429. className="half-item"
  4430. {...formItemLayout}
  4431. label="销售类型"
  4432. >
  4433. <span>
  4434. {(["私有客户-", "签单客户-"][this.state.userType] || " ") +
  4435. (salesList[this.state.salesType] || "")}
  4436. {
  4437. this.state.other != null && this.state.other != "" &&
  4438. <Tooltip title={this.state.other}>
  4439. <span>
  4440. {"(" + this.state.other.toString().slice(0, 10) + (this.state.other.toString().length > 9 ? "...)" : ")")}
  4441. </span>
  4442. </Tooltip>
  4443. }
  4444. </span>
  4445. {/* <span>{(["私有客户-", "签单客户-"][this.state.userType] || " ") +
  4446. (salesList[this.state.salesType] || "")}</span> */}
  4447. </FormItem>
  4448. <FormItem
  4449. className="half-item"
  4450. {...formItemLayout}
  4451. label="合同签订时间"
  4452. >
  4453. <span>{this.state.signDate}</span>
  4454. </FormItem>
  4455. <FormItem
  4456. className="half-item"
  4457. {...formItemLayout}
  4458. label="流程状态"
  4459. >
  4460. <span>{getProcessStatus(this.state.processStatus, this.state.examineName, this.state.approval)}</span>
  4461. <FlowChart
  4462. orderNo={this.state.orderNos}
  4463. />
  4464. </FormItem>
  4465. <FormItem
  4466. className="half-item"
  4467. {...formItemLayout}
  4468. label="结算状态"
  4469. >
  4470. <span>
  4471. {getLiquidationStatus(this.state.liquidationStatus)}
  4472. </span>
  4473. </FormItem>
  4474. <FormItem
  4475. className="half-item"
  4476. {...formItemLayout}
  4477. label="企业联系人"
  4478. >
  4479. <span>{this.state.contacts}</span>
  4480. </FormItem>
  4481. <FormItem
  4482. className="half-item"
  4483. {...formItemLayout}
  4484. label="联系人电话"
  4485. >
  4486. <span>{this.state.contactMobile}</span>
  4487. </FormItem>
  4488. <FormItem
  4489. className="half-item"
  4490. {...formItemLayout}
  4491. label="企业法人"
  4492. >
  4493. <span>{this.state.legalPerson}</span>
  4494. </FormItem>
  4495. <FormItem
  4496. className="half-item"
  4497. {...formItemLayout}
  4498. label="法人电话"
  4499. >
  4500. <span>{this.state.legalPersonTel}</span>
  4501. </FormItem>
  4502. <FormItem
  4503. className="half-item"
  4504. {...formItemLayout}
  4505. label="签单金额(万元)"
  4506. >
  4507. <span>{this.state.totalAmount}</span>
  4508. </FormItem>
  4509. <FormItem
  4510. className="half-item"
  4511. {...formItemLayout}
  4512. label="首付金额(万元)"
  4513. >
  4514. <span>{this.state.firstAmount}</span>
  4515. </FormItem>
  4516. <FormItem
  4517. className="half-item"
  4518. {...formItemLayout}
  4519. label="特批立项"
  4520. >
  4521. <span>{getApprovedState(this.state.approval)}</span>
  4522. </FormItem>
  4523. <FormItem
  4524. className="half-item"
  4525. {...formItemLayout}
  4526. label="已收款项(万元)"
  4527. >
  4528. <span>{this.state.settlementAmount}</span>
  4529. </FormItem>
  4530. <FormItem
  4531. className="half-item"
  4532. {...formItemLayout}
  4533. label="订单部门"
  4534. >
  4535. <span>{this.state.depName}</span>
  4536. </FormItem>
  4537. <FormItem
  4538. className="half-item"
  4539. {...formItemLayout}
  4540. label="是否外包"
  4541. >
  4542. {this.state.outsource}
  4543. </FormItem>
  4544. <div className="clearfix">
  4545. <FormItem
  4546. labelCol={{ span: 4 }}
  4547. wrapperCol={{ span: 16 }}
  4548. label="订单留言"
  4549. >
  4550. <span>{this.state.orderRemarks}</span>
  4551. </FormItem>
  4552. </div>
  4553. <div className="clearfix">
  4554. <FormItem
  4555. labelCol={{ span: 4 }}
  4556. wrapperCol={{ span: 18 }}
  4557. label={"合同扫描件"}
  4558. >
  4559. {
  4560. window.adminData.isSuperAdmin
  4561. ? <NewPicturesWall
  4562. domId={"addService1"}
  4563. fileList={this.getOrgCodeUrl}
  4564. pictureUrl={this.state.orgCodeUrl}
  4565. url="/api/admin/order/uploadOrderImg"
  4566. orderNo={this.state.orderNo}
  4567. sign="contract"
  4568. deleteApi="/api/admin/order/deleteOrderImg"
  4569. />
  4570. : <div style={{ paddingTop: '10px', paddingBottom: '10px' }}>
  4571. {this.state.visible && this.state.orgCodeUrl ? <ImgList fileList={this.state.orgCodeUrl} ItemWidth={'96px'} /> : <div />}
  4572. </div>
  4573. }
  4574. <Button
  4575. style={{
  4576. float: "right",
  4577. marginRight: "140px",
  4578. marginTop: "20px",
  4579. }}
  4580. onClick={this.getOrderLog}
  4581. >
  4582. 查看订单 日志
  4583. </Button>
  4584. </FormItem>
  4585. <FormItem
  4586. labelCol={{ span: 4 }}
  4587. wrapperCol={{ span: 18 }}
  4588. label="补充协议"
  4589. >
  4590. {
  4591. window.adminData.isSuperAdmin
  4592. ? <NewPicturesWall
  4593. domId={"addService2"}
  4594. fileList={this.getReplenishUrl}
  4595. pictureUrl={this.state.replenishUrl}
  4596. url="/api/admin/order/uploadOrderImg"
  4597. orderNo={this.state.orderNo}
  4598. sign="supplement"
  4599. deleteApi="/api/admin/order/deleteOrderImg"
  4600. />
  4601. : <div style={{ paddingTop: '10px', paddingBottom: '10px' }}>
  4602. {this.state.visible && this.state.replenishUrl ? <ImgList domId={'inquiry1'} fileList={this.state.replenishUrl} ItemWidth={'96px'} /> : <div />}
  4603. </div>
  4604. }
  4605. </FormItem>
  4606. </div>
  4607. {/* 服务内容 */}
  4608. {
  4609. window.adminData.isSuperAdmin
  4610. ? <div class="clearfix">
  4611. <FormItem
  4612. labelCol={{ span: 4 }}
  4613. wrapperCol={{ span: 18 }}
  4614. label='服务内容'
  4615. >
  4616. <NewPicturesWall
  4617. domId={"addServiceContent"}
  4618. fileList={this.getContentUrl}
  4619. pictureUrl={this.state.contentUrl}
  4620. url="/api/admin/order/uploadOrderImg"
  4621. orderNo={this.state.orderNo}
  4622. sign="content"
  4623. deleteApi="/api/admin/order/deleteOrderImg"
  4624. />
  4625. </FormItem>
  4626. </div>
  4627. : <ContentUrl
  4628. processStatus={2}
  4629. domId={"inquiryContents"}
  4630. contentUrl={this.state.contentUrl}
  4631. imgId={"inquiryContentsImg"}
  4632. />
  4633. }
  4634. <div className="clearfix">
  4635. <FormItem
  4636. className="half-item"
  4637. {...formItemLayout}
  4638. label="订单负责人"
  4639. >
  4640. <span>{this.state.salesmanName}</span>
  4641. </FormItem>
  4642. <FormItem
  4643. className="half-item"
  4644. {...formItemLayout}
  4645. label="订单负责人电话"
  4646. >
  4647. <span>{this.state.salesmanMobile}</span>
  4648. </FormItem>
  4649. </div>
  4650. <div className="clearfix">
  4651. <FormItem
  4652. className="half-item"
  4653. {...formItemLayout}
  4654. label="当前财务负责人"
  4655. >
  4656. <span>{this.state.nowFinance}</span>
  4657. </FormItem>
  4658. <FormItem
  4659. className="half-item"
  4660. {...formItemLayout}
  4661. label="当前财务负责人电话"
  4662. >
  4663. <span>{this.state.nowFinanceMobile}</span>
  4664. </FormItem>
  4665. </div>
  4666. <div className="clearfix">
  4667. <FormItem
  4668. className="half-item"
  4669. {...formItemLayout}
  4670. style={{ opacity: ".5" }}
  4671. label="原订单负责人"
  4672. >
  4673. <span>{this.state.oldSalesmanName}</span>
  4674. </FormItem>
  4675. <FormItem
  4676. className="half-item"
  4677. {...formItemLayout}
  4678. style={{ opacity: ".5" }}
  4679. label="原订单负责人电话"
  4680. >
  4681. <span>{this.state.oldSalesmanMobile}</span>
  4682. </FormItem>
  4683. </div>
  4684. <div className="clearfix">
  4685. <FormItem
  4686. className="half-item"
  4687. style={{ opacity: ".5" }}
  4688. {...formItemLayout}
  4689. label="实际财务操作人"
  4690. >
  4691. <span>{this.state.financeName}</span>
  4692. </FormItem>
  4693. <FormItem
  4694. className="half-item"
  4695. {...formItemLayout}
  4696. style={{ opacity: ".5" }}
  4697. label="实际财务操作人电话"
  4698. >
  4699. <span>{this.state.financeMobile}</span>
  4700. </FormItem>
  4701. </div>
  4702. {/* 协单人员 */}
  4703. <OrderCoor orderNo={this.state.orderNos} />
  4704. <div>
  4705. <span style={{ marginLeft: "50px", fontSize: "20px" }}>
  4706. 项目业务
  4707. </span>
  4708. </div>
  4709. <div className="patent-table">
  4710. <Spin spinning={this.state.loading}>
  4711. <Table
  4712. columns={this.state.columnsX}
  4713. dataSource={this.state.dataSourceX}
  4714. pagination={false}
  4715. onRowClick={this.tableRowClickX}
  4716. expandedRowRender={expandedRowRenderVip}
  4717. rowClassName={this.addRowColor}
  4718. bordered
  4719. size="small"
  4720. />
  4721. </Spin>
  4722. </div>
  4723. <div>
  4724. <span style={{ marginLeft: "50px", fontSize: "20px" }}>
  4725. 催款节点
  4726. </span>
  4727. <span
  4728. style={{
  4729. display: cuiDataList.length ? "none" : "inline-block",
  4730. marginLeft: 10,
  4731. color: "red",
  4732. }}
  4733. >
  4734. 金额总计(万元): {this.state.totalCui}
  4735. </span>
  4736. </div>
  4737. <div className="clearfix">
  4738. <Spin spinning={this.state.loading}>
  4739. <Form layout="horizontal" id="demand-form">
  4740. <Table
  4741. pagination={false}
  4742. bordered
  4743. size="small"
  4744. columns={
  4745. cuiDataList.length
  4746. ? this.state.ContactsLists
  4747. : this.state.ContactsListsNew
  4748. }
  4749. dataSource={
  4750. cuiDataList.length
  4751. ? this.state.contactList
  4752. : this.state.contactListNew
  4753. }
  4754. />
  4755. <Col
  4756. span={24}
  4757. offset={9}
  4758. style={{ marginTop: "15px" }}
  4759. ></Col>
  4760. </Form>
  4761. </Spin>
  4762. </div>
  4763. </div>
  4764. </Spin>
  4765. </Form>
  4766. </Modal> : <div />}
  4767. <OrderRiZi
  4768. dataSourcerizhi={this.state.dataSourcerizhi}
  4769. closeOrderLog={this.closeOrderLog}
  4770. visible={this.state.rizhivisible}
  4771. loading={this.state.loading}
  4772. />
  4773. </div>
  4774. {/* {this.state.addnextVisible && <ProjectDetailsReadOnly
  4775. infor={this.state.dataInfor}
  4776. visible={this.state.addnextVisible}
  4777. onCancel={this.nextCancel}
  4778. />} */}
  4779. {
  4780. // 项目业务详情
  4781. this.state.addnextVisible &&
  4782. <NewEditProject
  4783. readOnly={true}
  4784. visible={this.state.addnextVisible}
  4785. dataInfor={this.state.dataInfor}
  4786. onCancel={this.nextCancel}
  4787. />
  4788. }
  4789. <textarea id="copyText" style={{ opacity: 0 }} />
  4790. </div>
  4791. );
  4792. },
  4793. })
  4794. );
  4795. export default IntentionCustomer;