shouKuanAll.jsx 131 KB

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