inquiry.jsx 164 KB

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