inquiry.jsx 153 KB

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