inquiry.jsx 166 KB

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