inquiry.jsx 159 KB

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