shouKuanAll.jsx 102 KB

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