inquiry.jsx 157 KB

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