inquiry.jsx 164 KB

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