inquiry.jsx 164 KB

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