order.jsx 154 KB

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