inquiry.jsx 152 KB

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