inquiry.jsx 153 KB

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