inquiry.jsx 153 KB

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