shouKuang.jsx 133 KB

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