inquiry.jsx 163 KB

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