order.jsx 157 KB

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