order.jsx 156 KB

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