inquiry.jsx 163 KB

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