order.jsx 156 KB

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