inquiry.jsx 158 KB

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