order.jsx 154 KB

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