shouKuanAll.jsx 102 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601
  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> :
  1061. record.approval == 2 && <Tag color="#ff0000">特批通过</Tag>
  1062. }
  1063. </div>
  1064. </div>
  1065. </Tooltip>
  1066. );
  1067. },
  1068. },
  1069. {
  1070. title: "客户名称",
  1071. dataIndex: "buyerName",
  1072. key: "buyerName",
  1073. className: "title-table",
  1074. fixed: "left",
  1075. width: 150,
  1076. render: (text) => {
  1077. return (
  1078. <Tooltip title={text}>
  1079. <div
  1080. style={{
  1081. maxWidth: "150px",
  1082. overflow: "hidden",
  1083. textOverflow: "ellipsis",
  1084. whiteSpace: "nowrap",
  1085. }}
  1086. >
  1087. {text}
  1088. </div>
  1089. </Tooltip>
  1090. );
  1091. },
  1092. },
  1093. {
  1094. title: "订单编号",
  1095. dataIndex: "orderNo",
  1096. key: "orderNo",
  1097. className: "title-table",
  1098. fixed: "left",
  1099. width: 140,
  1100. render: (text, record) => {
  1101. return (
  1102. <Tooltip
  1103. title={
  1104. <Button
  1105. type="primary"
  1106. onClick={(e) => {
  1107. e.stopPropagation();
  1108. let input = document.getElementById("copyText");
  1109. input.value = text;
  1110. input.select();
  1111. document.execCommand("copy");
  1112. message.success("复制成功");
  1113. }}
  1114. >
  1115. 复制
  1116. </Button>
  1117. }
  1118. >
  1119. <div>
  1120. {text}
  1121. <div>
  1122. {record.signTotalAmount >= 10 && <Tag color="#ef7207">大客户</Tag>}
  1123. {record.projectType == 1 && <Tag color="rgb(22, 155, 213)">会员</Tag>}
  1124. </div>
  1125. </div>
  1126. </Tooltip>
  1127. );
  1128. },
  1129. },
  1130. // {
  1131. // title: "特批状态",
  1132. // dataIndex: "approval",
  1133. // key: "approval",
  1134. // className: "title-table",
  1135. // render: (text) => {
  1136. // if (text == 1 || text == 2) {
  1137. // return <Tag color="#f50">{getApproval(text)}</Tag>;
  1138. // }
  1139. // return getApproval(text);
  1140. // },
  1141. // },
  1142. {
  1143. title: "订单部门",
  1144. dataIndex: "departmentName",
  1145. key: "departmentName",
  1146. className: "title-table",
  1147. },
  1148. {
  1149. title: "订单负责人",
  1150. dataIndex: "sellerName",
  1151. key: "sellerName",
  1152. className: "title-table",
  1153. },
  1154. {
  1155. title: "财务负责人",
  1156. dataIndex: "financeName",
  1157. key: "financeName",
  1158. className: "title-table",
  1159. },
  1160. {
  1161. title: "签单日期",
  1162. dataIndex: "signTime",
  1163. key: "signTime",
  1164. className: "title-table",
  1165. },
  1166. {
  1167. title: "下单日期",
  1168. dataIndex: "createTime",
  1169. key: "createTime",
  1170. className: "title-table",
  1171. },
  1172. {
  1173. title: "签单金额(万元)",
  1174. dataIndex: "signTotalAmount",
  1175. key: "signTotalAmount",
  1176. className: "title-table",
  1177. },
  1178. {
  1179. title: "开票金额(万元)",
  1180. dataIndex: "invoiceAmount",
  1181. key: "invoiceAmount",
  1182. className: "title-table",
  1183. },
  1184. {
  1185. title: "已收款(万元)",
  1186. dataIndex: "actuallyTotalAmount",
  1187. key: "actuallyTotalAmount",
  1188. className: "title-table",
  1189. },
  1190. {
  1191. title: "应收款(万元)",
  1192. dataIndex: "orderReceivables",
  1193. key: "orderReceivables",
  1194. className: "title-table",
  1195. },
  1196. {
  1197. title: "欠款(万元)",
  1198. dataIndex: "orderArrears",
  1199. key: "orderArrears",
  1200. className: "title-table",
  1201. },
  1202. {
  1203. title: "总成本(万元)",
  1204. dataIndex: "costAmount",
  1205. key: "costAmount",
  1206. className: "title-table",
  1207. render: (text) => {
  1208. return isNaN(parseFloat(text)) ? text : parseFloat(text);
  1209. },
  1210. },
  1211. {
  1212. title: "已付成本(万元)",
  1213. dataIndex: "paymentAmount",
  1214. key: "paymentAmount",
  1215. className: "title-table",
  1216. render: (text) => {
  1217. return isNaN(parseFloat(text)) ? text : parseFloat(text);
  1218. },
  1219. },
  1220. {
  1221. title: "最近收款(万元)",
  1222. dataIndex: "finalReceivables",
  1223. key: "finalReceivables",
  1224. className: "title-table",
  1225. },
  1226. {
  1227. title: "最近收款时间",
  1228. dataIndex: "finalReceivablesTime",
  1229. key: "finalReceivablesTime",
  1230. className: "title-table",
  1231. },
  1232. {
  1233. title: "结算状态",
  1234. dataIndex: "liquidationStatus",
  1235. key: "liquidationStatus",
  1236. className: "title-table",
  1237. render: (text) => {
  1238. return getLiquidationStatus(text);
  1239. },
  1240. },
  1241. {
  1242. title: "流程状态",
  1243. dataIndex: "processStatus",
  1244. key: "processStatus",
  1245. className: "title-table",
  1246. render: (text) => {
  1247. return getProcessStatus(text);
  1248. },
  1249. },
  1250. {
  1251. title: "驳回状态",
  1252. dataIndex: "backStatus",
  1253. key: "backStatus",
  1254. className: "title-table",
  1255. render: (text) => {
  1256. if (text == 3) {
  1257. return <Tag>已驳回</Tag>;
  1258. } else {
  1259. return "";
  1260. }
  1261. },
  1262. },
  1263. // {
  1264. // title: '订单状态',
  1265. // dataIndex: 'orderStatus',
  1266. // key: 'orderStatus',
  1267. // render: text => { return getNewOrderStatus(text)}
  1268. // },
  1269. // {
  1270. // title: "操作",
  1271. // dataIndex: "caozuo",
  1272. // key: "caouzo",
  1273. // className: "title-table",
  1274. // render: (text, recard) => {
  1275. // return (
  1276. // <div>
  1277. // {recard.liquidationStatus < 2 &&
  1278. // (recard.approval === 1 || recard.approval === 2) ? (
  1279. // <Button
  1280. // style={{ background: "rgb(192,192,192)" }}
  1281. // onClick={e => {
  1282. // e.stopPropagation(), this.evaluateX(recard);
  1283. // }}
  1284. // >
  1285. // 收款
  1286. // </Button>
  1287. // ) : (
  1288. // <Button
  1289. // type="primary"
  1290. // onClick={e => {
  1291. // e.stopPropagation(), this.evaluateX(recard);
  1292. // }}
  1293. // >
  1294. // 收款
  1295. // </Button>
  1296. // )}
  1297. // {recard.processStatus < 4 ? (
  1298. // <Button
  1299. // type="primary"
  1300. // onClick={e => {
  1301. // e.stopPropagation(), this.evaluateZ(recard);
  1302. // }}
  1303. // style={{ marginLeft: "5px" }}
  1304. // >
  1305. // 通过
  1306. // </Button>
  1307. // ) : (
  1308. // ""
  1309. // )}
  1310. // {!(
  1311. // recard.actuallyTotalAmount &&
  1312. // Number(recard.actuallyTotalAmount) > 0
  1313. // ) && (
  1314. // <Button
  1315. // type="danger"
  1316. // style={{ marginLeft: "5px" }}
  1317. // onClick={e => {
  1318. // e.stopPropagation(), this.reject(recard);
  1319. // }}
  1320. // >
  1321. // 驳回
  1322. // </Button>
  1323. // )}
  1324. // {
  1325. // // <Button
  1326. // // type="primary"
  1327. // // style={{ marginLeft: "5px" }}
  1328. // // onClick={e => {
  1329. // // e.stopPropagation(), this.evaluateY(recard, "财务专员");
  1330. // // console.log(recard);
  1331. // // }}
  1332. // // >
  1333. // // 转交
  1334. // // </Button>
  1335. // }
  1336. // </div>
  1337. // );
  1338. // }
  1339. // }
  1340. ],
  1341. dataSource: [],
  1342. searchTime: [],
  1343. columnsDate: [
  1344. {
  1345. title: "编号",
  1346. dataIndex: "id",
  1347. key: "id",
  1348. },
  1349. {
  1350. title: "订单编号",
  1351. dataIndex: "orderno",
  1352. key: "orderno",
  1353. },
  1354. {
  1355. title: "开票金额(万元)",
  1356. dataIndex: "amount",
  1357. key: "amount",
  1358. },
  1359. {
  1360. title: "申请时间",
  1361. dataIndex: "createTime",
  1362. key: "createTime",
  1363. },
  1364. {
  1365. title: "开票状态",
  1366. dataIndex: "status",
  1367. key: "status",
  1368. render: (text, record) => {
  1369. return <div>{getInvoiceStatus(text, record)} <LogPopup id={record.id} /></div>;
  1370. },
  1371. },
  1372. ],
  1373. waterlistDate: [
  1374. {
  1375. title: "订单编号",
  1376. dataIndex: "orderNo",
  1377. key: "orderNo",
  1378. },
  1379. {
  1380. title: "平台流水号",
  1381. dataIndex: "billNo",
  1382. key: "billNo",
  1383. // fixed: "left"
  1384. },
  1385. {
  1386. title: "收款金额(万元)",
  1387. dataIndex: "transactionAmount",
  1388. key: "transactionAmount",
  1389. },
  1390. {
  1391. title: "收款方",
  1392. dataIndex: "payeeName",
  1393. key: "payeeName",
  1394. },
  1395. {
  1396. title: "付款方",
  1397. dataIndex: "payerName",
  1398. key: "payerName",
  1399. },
  1400. {
  1401. title: "流水科目",
  1402. dataIndex: "transactionSubject",
  1403. key: "transactionSubject",
  1404. render: (text) => {
  1405. return getTransactionProject(text);
  1406. },
  1407. },
  1408. {
  1409. title: "收款类型",
  1410. dataIndex: "type",
  1411. key: "type",
  1412. },
  1413. {
  1414. title: "财务流水时间",
  1415. dataIndex: "financialPayTimes",
  1416. key: "financialPayTimes",
  1417. },
  1418. {
  1419. title: "财务流水号",
  1420. dataIndex: "financialPayNo",
  1421. key: "financialPayNo",
  1422. },
  1423. {
  1424. title: "订单负责人",
  1425. dataIndex: "saleName",
  1426. key: "saleName",
  1427. },
  1428. {
  1429. title: "创建时间",
  1430. dataIndex: "createTimes",
  1431. key: "createTimes",
  1432. },
  1433. {
  1434. title: "退款时间",
  1435. dataIndex: "refundTimes",
  1436. key: "refundTimes",
  1437. },
  1438. {
  1439. title: "删除时间",
  1440. dataIndex: "deleteTimes",
  1441. key: "deleteTimes",
  1442. },
  1443. {
  1444. title: "备注",
  1445. dataIndex: "remarks",
  1446. key: "remarks",
  1447. },
  1448. {
  1449. title: "流水状态",
  1450. dataIndex: "deleteSign",
  1451. key: "deleteSign",
  1452. render: (text, record) => {
  1453. if (!text) {
  1454. return "";
  1455. } else {
  1456. return <Tag>已删除</Tag>;
  1457. }
  1458. },
  1459. },
  1460. ],
  1461. waterData: [],
  1462. };
  1463. },
  1464. // 特批通过
  1465. evaluateZ(record) {
  1466. $.ajax({
  1467. method: "POST",
  1468. dataType: "json",
  1469. crossDomain: false,
  1470. url: globalConfig.context + "/api/admin/financial/financeApproval",
  1471. data: {
  1472. orderNo: record.orderNo,
  1473. },
  1474. }).done(
  1475. function (data) {
  1476. if (!data.error.length) {
  1477. message.success("通过成功!");
  1478. this.setState({
  1479. loading: false,
  1480. });
  1481. this.loadData();
  1482. } else {
  1483. message.warning(data.error[0].message);
  1484. }
  1485. }.bind(this)
  1486. );
  1487. },
  1488. /* 收款 */
  1489. evaluateX(recard) {
  1490. this.state.assignDataX = recard;
  1491. this.setState({
  1492. assignVisibleX: true,
  1493. });
  1494. },
  1495. /* 转交 */
  1496. evaluateY(recard, nub) {
  1497. this.state.assignDataY = recard;
  1498. this.setState({
  1499. nub,
  1500. assignVisibleY: true,
  1501. });
  1502. },
  1503. /* 驳回 */
  1504. reject(recard) {
  1505. this.setState({
  1506. bohuiData: recard,
  1507. boHuiVisible: true,
  1508. content: "",
  1509. });
  1510. },
  1511. boHuiOk() {
  1512. this.setState({
  1513. boHuiVisible: false,
  1514. });
  1515. if (
  1516. this.state.pagination.current == this.state.totalPage &&
  1517. this.state.pagination.total % 10 == 1
  1518. ) {
  1519. this.loadData(this.state.page - 1);
  1520. } else {
  1521. this.loadData(this.state.page);
  1522. }
  1523. },
  1524. boHuiCancel() {
  1525. this.setState({
  1526. boHuiVisible: false,
  1527. });
  1528. },
  1529. componentWillMount() {
  1530. this.loadData();
  1531. this.departmentList();
  1532. },
  1533. tableRowClick(record) {
  1534. this.state.RowData = record;
  1535. this.setState({
  1536. showDesc: true,
  1537. });
  1538. },
  1539. closeDesc(e, s) {
  1540. this.state.showDesc = e;
  1541. if (s) {
  1542. this.loadData(this.state.page);
  1543. }
  1544. },
  1545. closeAssignX(e, s) {
  1546. this.state.assignDataX = {};
  1547. this.state.assignVisibleX = e;
  1548. if (s) {
  1549. this.loadData(this.state.page);
  1550. }
  1551. },
  1552. closeAssignY(e, s) {
  1553. this.state.assignDataY = {};
  1554. this.state.assignVisibleY = e;
  1555. if (s) {
  1556. this.loadData(this.state.page);
  1557. }
  1558. },
  1559. search() {
  1560. this.setState({
  1561. selectedRowKeys: [],
  1562. });
  1563. this.loadData();
  1564. },
  1565. // 拆分详细
  1566. showRes(record) {
  1567. this.setState({
  1568. resVisible: true,
  1569. resRecord: record,
  1570. });
  1571. },
  1572. resCancel() {
  1573. this.setState({
  1574. resVisible: false,
  1575. });
  1576. },
  1577. reset() {
  1578. this.state.nameSearch = "";
  1579. this.state.releaseDate = [];
  1580. this.state.shouKuanDate = [];
  1581. this.state.orderNoSearch = "";
  1582. this.state.departmenttList = undefined;
  1583. this.state.amountStatus = undefined;
  1584. this.state.approval = undefined;
  1585. this.state.projectType = undefined;
  1586. this.state.processStatus = [];
  1587. this.state.processStatusSearch = [];
  1588. this.state.contractNoSearch = "";
  1589. this.state.liquidationStatus = [];
  1590. this.state.contractNo = "";
  1591. this.Cascaders.empty();
  1592. this.loadData();
  1593. },
  1594. //驳回
  1595. boHuiSubmit(e) {
  1596. e.preventDefault();
  1597. if (!this.state.content) {
  1598. message.warning("请填写驳回原因");
  1599. return false;
  1600. }
  1601. this.setState({
  1602. loading: true,
  1603. });
  1604. $.ajax({
  1605. method: "POST",
  1606. dataType: "json",
  1607. crossDomain: false,
  1608. url: globalConfig.context + "/api/admin/financial/reject",
  1609. data: {
  1610. orderNo: this.state.bohuiData.orderNo,
  1611. reason: this.state.content,
  1612. },
  1613. }).done(
  1614. function (data) {
  1615. if (!data.error.length) {
  1616. message.success("驳回成功!");
  1617. this.setState({
  1618. loading: false,
  1619. });
  1620. this.boHuiOk();
  1621. } else {
  1622. message.warning(data.error[0].message);
  1623. }
  1624. }.bind(this)
  1625. );
  1626. },
  1627. searchSwitch() {
  1628. this.setState({
  1629. searchMore: !this.state.searchMore,
  1630. });
  1631. },
  1632. changeList(arr) {
  1633. const newArr = [];
  1634. this.state.columns.forEach((item) => {
  1635. arr.forEach((val) => {
  1636. if (val === item.title) {
  1637. newArr.push(item);
  1638. }
  1639. });
  1640. });
  1641. this.setState({
  1642. changeList: newArr,
  1643. });
  1644. },
  1645. onSelectChange(selectedRowKeys, selectedRows) {
  1646. // for(var i=0; i<selectedRowKeys.length; i++){
  1647. // for(var j=i+1; j<selectedRowKeys.length; j++){
  1648. // if(selectedRowKeys[i]==selectedRowKeys[j]){
  1649. // selectedRowKeys.splice(j,1);
  1650. // j--;
  1651. // }
  1652. // }
  1653. // }
  1654. this.setState({ selectedRowKeys, selectedRows });
  1655. },
  1656. inRecordCanl() {
  1657. this.setState({
  1658. bvisible: false,
  1659. });
  1660. },
  1661. inRecordData() {
  1662. this.setState({
  1663. loading: true,
  1664. });
  1665. $.ajax({
  1666. method: "get",
  1667. dataType: "json",
  1668. crossDomain: false,
  1669. url:
  1670. globalConfig.context +
  1671. "/api/admin/orderInvoice/salesmanOrderInvoiceList",
  1672. data: {
  1673. orderNo: this.state.selectedRowKeys[0],
  1674. pageSize: 9999999,
  1675. },
  1676. success: function (data) {
  1677. let theArr = [];
  1678. let sum = 0;
  1679. if (!data.data) {
  1680. if (data.error && data.error.length) {
  1681. message.warning(data.error[0].message);
  1682. }
  1683. } else {
  1684. for (let i = 0; i < data.data.list.length; i++) {
  1685. let thisdata = data.data.list[i];
  1686. sum += parseFloat(thisdata.amount);
  1687. theArr.push({
  1688. id: thisdata.id,
  1689. orderno: thisdata.orderno, //订单编号
  1690. amount: thisdata.amount, //签单金额
  1691. createTime: thisdata.createTime, //流程状态
  1692. status: thisdata.status, //结算状态
  1693. rejectReason: thisdata.rejectReason,
  1694. approval: thisdata.approval,//0非特批 1待审核 2审核通过
  1695. });
  1696. }
  1697. }
  1698. this.setState({
  1699. recordData: theArr,
  1700. sum: sum.toFixed(6),
  1701. });
  1702. }.bind(this),
  1703. }).done(
  1704. function () {
  1705. this.setState({
  1706. loading: false,
  1707. });
  1708. }.bind(this)
  1709. );
  1710. },
  1711. waterData() {
  1712. this.state.data = [];
  1713. this.setState({
  1714. loading: true,
  1715. });
  1716. $.ajax({
  1717. method: "get",
  1718. dataType: "json",
  1719. crossDomain: false,
  1720. url: globalConfig.context + "/api/admin/financial/myBillList",
  1721. data: {
  1722. orderNo: this.state.selectedRowKeys[0],
  1723. pageSize: 9999999,
  1724. whoType: 1,
  1725. },
  1726. success: function (data) {
  1727. let theArr = [];
  1728. let waterSum = 0;
  1729. if (!data.data || !data.data.list) {
  1730. if (data.error && data.error.length) {
  1731. message.warning(data.error[0].message);
  1732. }
  1733. } else {
  1734. for (let i = 0; i < data.data.list.length; i++) {
  1735. let thisdata = data.data.list[i];
  1736. if (thisdata.deleteSign == 0) {
  1737. waterSum += parseFloat(thisdata.transactionAmount);
  1738. }
  1739. theArr.push({
  1740. key: i,
  1741. orderNo: thisdata.orderNo,
  1742. billNo: thisdata.billNo,
  1743. transactionAmount: thisdata.transactionAmount,
  1744. payeeName: thisdata.payeeName,
  1745. payerName: thisdata.payerName,
  1746. transactionSubject: thisdata.transactionSubject,
  1747. transactionChannel: thisdata.transactionChannel,
  1748. financialPayTimes: thisdata.financialPayTimes,
  1749. financialPayNo: thisdata.financialPayNo,
  1750. createrName: thisdata.createrName,
  1751. saleName: thisdata.saleName,
  1752. createTimes: thisdata.createTimes,
  1753. type:
  1754. thisdata.type == 0
  1755. ? "手工"
  1756. : thisdata.type == 1
  1757. ? "批量"
  1758. : "合同变更退款",
  1759. deleteSign: thisdata.deleteSign,
  1760. deleteTimes: thisdata.deleteTimes,
  1761. refundTimes: thisdata.refundTimes,
  1762. remarks: thisdata.remarks,
  1763. });
  1764. }
  1765. }
  1766. this.setState({
  1767. waterData: theArr,
  1768. waterSum: (Math.round(waterSum * 1000000) / 1000000).toFixed(6),
  1769. });
  1770. }.bind(this),
  1771. }).always(
  1772. function () {
  1773. this.setState({
  1774. loading: false,
  1775. });
  1776. }.bind(this)
  1777. );
  1778. },
  1779. waterCanl() {
  1780. this.setState({
  1781. cvisible: false,
  1782. });
  1783. },
  1784. exportKaip() {
  1785. window.location.href =
  1786. globalConfig.context +
  1787. "/api/admin/receivables/exportInvoice?" +
  1788. `orderNo=${this.state.selectedRowKeys}`;
  1789. },
  1790. exportAll() {
  1791. message.config({
  1792. duration: 20,
  1793. });
  1794. let loading = message.loading("下载中...");
  1795. this.setState({
  1796. exportPendingLoading: true,
  1797. });
  1798. const data = {
  1799. orderNo: this.state.orderNoSearch,
  1800. buyerName: this.state.nameSearch,
  1801. deps: this.state.departmenttList,
  1802. contractNo: this.state.contractNoSearch,
  1803. processStatus: this.state.processStatusSearch,
  1804. }
  1805. $.ajax({
  1806. method: "get",
  1807. dataType: "json",
  1808. crossDomain: false,
  1809. url: "/api/admin/receivables/exportReceivables",
  1810. data,
  1811. success: function (data) {
  1812. if (data.error.length === 0) {
  1813. this.download(data.data);
  1814. } else {
  1815. message.warning(data.error[0].message);
  1816. }
  1817. }.bind(this),
  1818. }).always(
  1819. function () {
  1820. loading();
  1821. this.setState({
  1822. exportPendingLoading: false,
  1823. });
  1824. }.bind(this)
  1825. );
  1826. // window.location.href =
  1827. // globalConfig.context +
  1828. // "/api/admin/receivables/exportReceivables?" +
  1829. // `orderNo=${this.state.orderNoSearch ? this.state.orderNoSearch : ""
  1830. // }&buyerName=${this.state.nameSearch ? this.state.nameSearch : ""
  1831. // }&departmentId=${this.state.departmenttList ? this.state.departmenttList : ""
  1832. // }&contractNo=${this.state.contractNoSearch ? this.state.contractNoSearch : ""
  1833. // }&processStatus=${this.state.processStatusSearch}`;
  1834. },
  1835. exportWater() {
  1836. window.location.href =
  1837. globalConfig.context +
  1838. "/api/admin/receivables/exportMyBill?" +
  1839. `orderNo=${this.state.selectedRowKeys}&whoType=1`;
  1840. },
  1841. printAll() {
  1842. this.setState({
  1843. dvisible: true,
  1844. });
  1845. this.loadData(1, 9999999);
  1846. },
  1847. timeData() {
  1848. this.setState({
  1849. loading: true,
  1850. });
  1851. $.ajax({
  1852. method: "get",
  1853. dataType: "json",
  1854. crossDomain: false,
  1855. url: globalConfig.context + "/api/admin/orderProject/taskHoursList",
  1856. data: {
  1857. orderNo: this.state.selectedRowKeys[0],
  1858. pageSize: 9999999,
  1859. },
  1860. success: function (data) {
  1861. let theArr = [];
  1862. if (!data.data || !data.data.list) {
  1863. if (data.error && data.error.length) {
  1864. message.warning(data.error[0].message);
  1865. }
  1866. } else {
  1867. for (let i = 0; i < data.data.list.length; i++) {
  1868. let thisdata = data.data.list[i];
  1869. theArr.push({
  1870. key: i + 1,
  1871. id: thisdata.id, //ID
  1872. orderNo: thisdata.orderNo, //订单编号
  1873. taskName: thisdata.taskName, //任务名称
  1874. userName: thisdata.userName, //客户名称
  1875. cname: thisdata.cname, //项目品类
  1876. taskStatus: thisdata.taskStatus, //任务状态
  1877. receiverName: thisdata.receiverName, //负责人
  1878. hours: thisdata.hours, //任务工时
  1879. depName: thisdata.depName, //派单公司
  1880. contractNo: thisdata.contractNo,
  1881. signTime: thisdata.signTime,
  1882. creteTime: thisdata.creteTime,
  1883. projectStatus: thisdata.projectStatus,
  1884. commodityPrice: thisdata.commodityPrice, //价格
  1885. commodityQuantity: thisdata.commodityQuantity, //数量
  1886. salesmanName: thisdata.salesmanName, //订单负责人
  1887. taskDistributionTime: thisdata.taskDistributionTime,
  1888. taskEndTime: thisdata.taskEndTime,
  1889. outsource: thisdata.outsource,
  1890. splitStatus: thisdata.splitStatus,
  1891. splitSuper: thisdata.splitSuper,
  1892. splitId: thisdata.splitId,
  1893. });
  1894. }
  1895. }
  1896. this.setState({
  1897. timeDataList: theArr,
  1898. });
  1899. }.bind(this),
  1900. }).always(
  1901. function () {
  1902. this.setState({
  1903. loading: false,
  1904. });
  1905. }.bind(this)
  1906. );
  1907. },
  1908. exportTime() {
  1909. const data = {
  1910. orderNo: this.state.selectedRowKeys[0],
  1911. pageSize: 9999999,
  1912. };
  1913. window.location.href =
  1914. globalConfig.context +
  1915. "/api/admin/orderProject/exportMyTaskList?" +
  1916. $.param(data);
  1917. },
  1918. exportPro() {
  1919. const data = {
  1920. orderNo: this.state.selectedRowKeys[0],
  1921. };
  1922. window.location.href =
  1923. globalConfig.context +
  1924. "/api/admin/newOrder/exportOrderTaskData?" +
  1925. $.param(data);
  1926. },
  1927. exportCui() {
  1928. var data = {
  1929. orderNo: this.state.selectedRowKeys[0]
  1930. ? this.state.selectedRowKeys[0]
  1931. : undefined, //订单编号
  1932. // specially: 1,
  1933. pageSize: 9999999,
  1934. };
  1935. window.location.href =
  1936. globalConfig.context +
  1937. "/api/admin/newOrder/exportOrderDunData?" +
  1938. $.param(data);
  1939. },
  1940. cuiData() {
  1941. this.setState({
  1942. loading: true,
  1943. });
  1944. $.ajax({
  1945. method: "get",
  1946. dataType: "json",
  1947. crossDomain: false,
  1948. url: globalConfig.context + "/api/admin/newOrder/dunOrderNewList",
  1949. data: {
  1950. orderNo: this.state.selectedRowKeys[0],
  1951. pageSize: 9999999,
  1952. },
  1953. success: function (data) {
  1954. let theArr = [];
  1955. if (!data.data || !data.data.list) {
  1956. if (data.error && data.error.length) {
  1957. message.warning(data.error[0].message);
  1958. }
  1959. } else {
  1960. for (let i = 0; i < data.data.list.length; i++) {
  1961. let thisdata = data.data.list[i];
  1962. theArr.push({
  1963. key: i + 1,
  1964. orderNo: thisdata.orderNo,
  1965. contractNo: thisdata.contractNo,
  1966. userName: thisdata.userName,
  1967. buyerName: thisdata.buyerName,
  1968. departmentName: thisdata.departmentName,
  1969. salesmanName: thisdata.salesmanName,
  1970. depName: thisdata.depName,
  1971. orderStatus: thisdata.orderStatus,
  1972. projectStatus: thisdata.projectStatus,
  1973. totalAmount: thisdata.totalAmount,
  1974. liquidationStatus: thisdata.liquidationStatus,
  1975. settlementAmount: thisdata.settlementAmount,
  1976. accountsReceivable: thisdata.accountsReceivable,
  1977. dunSubject: thisdata.dunSubject,
  1978. startDate: thisdata.startDate,
  1979. taskStatus: thisdata.taskStatus,
  1980. cname: thisdata.cname,
  1981. id: thisdata.id,
  1982. taskName: thisdata.taskName,
  1983. hours: thisdata.hours,
  1984. taskDistributionTime: thisdata.taskDistributionTime,
  1985. taskEndTime: thisdata.taskEndTime,
  1986. dunStatus: thisdata.dunStatus == 0 ? "未触发" : "已触发",
  1987. });
  1988. }
  1989. }
  1990. this.setState({
  1991. cuiDataList: theArr,
  1992. });
  1993. }.bind(this),
  1994. }).always(
  1995. function () {
  1996. this.setState({
  1997. loading: false,
  1998. });
  1999. }.bind(this)
  2000. );
  2001. },
  2002. cuiTabChange(index) {
  2003. this.setState({
  2004. cuiTabKey: index,
  2005. });
  2006. if (index == 2) {
  2007. this.setState({
  2008. loading: true,
  2009. });
  2010. $.ajax({
  2011. method: "get",
  2012. dataType: "json",
  2013. crossDomain: false,
  2014. url: globalConfig.context + "/api/admin/newOrder/arrearsDunList",
  2015. data: {
  2016. orderNo: this.state.selectedRowKeys[0],
  2017. pageSize: 9999999,
  2018. },
  2019. success: function (data) {
  2020. let theArr = [];
  2021. if (data.error.length || data.data.list == "") {
  2022. if (data.error && data.error.length) {
  2023. message.warning(data.error[0].message);
  2024. }
  2025. } else {
  2026. for (let i = 0; i < data.data.list.length; i++) {
  2027. let thisdata = data.data.list[i];
  2028. let obj = thisdata;
  2029. obj.key = i;
  2030. theArr.push(obj);
  2031. }
  2032. }
  2033. this.setState({
  2034. qianDataList: theArr,
  2035. });
  2036. }.bind(this),
  2037. }).always(
  2038. function () {
  2039. this.setState({
  2040. loading: false,
  2041. });
  2042. }.bind(this)
  2043. );
  2044. }
  2045. },
  2046. proData() {
  2047. this.setState({
  2048. loading: true,
  2049. });
  2050. $.ajax({
  2051. method: "get",
  2052. dataType: "json",
  2053. crossDomain: false,
  2054. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  2055. data: {
  2056. orderNo: this.state.selectedRowKeys[0],
  2057. pageSize: 9999999,
  2058. },
  2059. success: function (data) {
  2060. let theArr = [];
  2061. let totalWaibao = 0;
  2062. if (!data.data) {
  2063. if (data.error && data.error.length) {
  2064. message.warning(data.error[0].message);
  2065. }
  2066. } else {
  2067. for (let i = 0; i < data.data.length; i++) {
  2068. let thisdata = data.data[i];
  2069. totalWaibao += thisdata.outsourcePrice;
  2070. theArr.push({
  2071. key: i + 1,
  2072. orderNo: thisdata.orderNo,
  2073. contractNo: thisdata.contractNo,
  2074. userName: thisdata.userName,
  2075. buyerName: thisdata.buyerName,
  2076. departmentName: thisdata.departmentName,
  2077. salesmanName: thisdata.salesmanName,
  2078. depName: thisdata.depName,
  2079. orderStatus: thisdata.orderStatus,
  2080. projectStatus: thisdata.projectStatus,
  2081. commodityName: thisdata.commodityName,
  2082. totalAmount: thisdata.totalAmount,
  2083. liquidationStatus: thisdata.liquidationStatus,
  2084. settlementAmount: thisdata.settlementAmount,
  2085. accountsReceivable: thisdata.accountsReceivable,
  2086. dunSubject: thisdata.dunSubject,
  2087. startDate: thisdata.startDate,
  2088. taskStatus: thisdata.taskStatus,
  2089. cname: thisdata.cname,
  2090. id: thisdata.id,
  2091. taskName: thisdata.taskName,
  2092. hours: thisdata.hours,
  2093. taskDistributionTime: thisdata.taskDistributionTime,
  2094. taskEndTime: thisdata.taskEndTime,
  2095. commodityQuantity: thisdata.commodityQuantity,
  2096. commodityPrice: thisdata.commodityPrice,
  2097. certificateNumber: thisdata.certificateNumber,
  2098. taskComment: thisdata.taskComment,
  2099. outsourceName: thisdata.outsourceName,
  2100. outsourcePrice: thisdata.outsourcePrice,
  2101. outsource: thisdata.outsource,
  2102. splitStatus: thisdata.splitStatus,
  2103. });
  2104. }
  2105. }
  2106. totalWaibao = (Math.round(totalWaibao * 1000000) / 1000000).toFixed(6);
  2107. this.setState({
  2108. proDataList: theArr,
  2109. totalWaibao,
  2110. });
  2111. }.bind(this),
  2112. }).always(
  2113. function () {
  2114. this.setState({
  2115. loading: false,
  2116. });
  2117. }.bind(this)
  2118. );
  2119. },
  2120. // 查看公出列表
  2121. pubData() {
  2122. this.setState({
  2123. loading: true,
  2124. });
  2125. let rows = this.state.selectedRows[0]
  2126. let searchInfor = {
  2127. releaseStart: this.state.releaseDate[0] || undefined,
  2128. releaseEnd: this.state.releaseDate[1] || undefined,
  2129. aid: this.state.theTypes || undefined,
  2130. sid: this.state.theTypes1 || undefined,
  2131. status: this.state.status,
  2132. clockIn: this.state.clockIn,
  2133. depId: this.state.depId || undefined,
  2134. publicType: this.state.type,
  2135. }
  2136. let datas = Object.assign(searchInfor, {
  2137. pageNo: this.state.pubpageNo || 1,
  2138. pageSize: 9999999,
  2139. uid: rows.buyerId,
  2140. });
  2141. $.ajax({
  2142. method: "get",
  2143. dataType: "json",
  2144. crossDomain: false,
  2145. url: globalConfig.context + "/api/admin/release/publicReleaseDtails",
  2146. data: datas,
  2147. success: function (data) {
  2148. let theArr = [];
  2149. this.setState({
  2150. loading: false,
  2151. });
  2152. if (!data.data) {
  2153. if (data.error && data.error.length) {
  2154. message.warning(data.error[0].message);
  2155. }
  2156. } else {
  2157. for (let i = 0; i < data.data.list.length; i++) {
  2158. let thisdata = data.data.list[i];
  2159. thisdata.key = (data.data.pageNo - 1) * data.data.pageSize + i + 1;
  2160. theArr.push(thisdata);
  2161. }
  2162. this.state.pubpagination.current = data.data.pageNo;
  2163. this.state.pubpagination.total = data.data.totalCount;
  2164. if (data.data && data.data.list && !data.data.list.length) {
  2165. this.state.pubpagination.current = 0;
  2166. this.state.pubpagination.total = 0;
  2167. }
  2168. }
  2169. this.setState({
  2170. pubDataList: theArr,
  2171. pubpagination: this.state.pubpagination,
  2172. pubpageNo: data.data.pageNo,
  2173. });
  2174. }.bind(this),
  2175. }).always(
  2176. function () {
  2177. this.setState({
  2178. loading: false,
  2179. });
  2180. }.bind(this)
  2181. );
  2182. },
  2183. // 重置公出列表查询
  2184. resetAll() {
  2185. this.setState(
  2186. {
  2187. releaseDate: [],
  2188. theCustomerTypes: undefined,
  2189. status: undefined,
  2190. clockIn: undefined,
  2191. depId: undefined,
  2192. auto: "",
  2193. auto1: "",
  2194. customer: "",
  2195. theTypes: undefined,
  2196. theTypes1: undefined,
  2197. type: undefined,
  2198. },
  2199. () => {
  2200. this.pubData();
  2201. }
  2202. );
  2203. },
  2204. //公出导出
  2205. pubexportExec() {
  2206. this.setState({
  2207. exportPendingLoading: true,
  2208. });
  2209. message.config({
  2210. duration: 20,
  2211. });
  2212. let loading = message.loading("下载中...");
  2213. let rows = this.state.selectedRows[0]
  2214. let searchInfor = {
  2215. releaseStart: this.state.releaseDate[0] || undefined,
  2216. releaseEnd: this.state.releaseDate[1] || undefined,
  2217. aid: this.state.theTypes || undefined,
  2218. sid: this.state.theTypes1 || undefined,
  2219. status: this.state.status,
  2220. clockIn: this.state.clockIn,
  2221. depId: this.state.depId || undefined,
  2222. publicType: this.state.type,
  2223. }
  2224. let data = Object.assign(searchInfor, {
  2225. pageNo: this.state.pubpageNo || 1,
  2226. pageSize: 9999999,
  2227. uid: rows.buyerId,
  2228. exportType: 1,
  2229. });
  2230. for (let i of Object.keys(data)) {
  2231. if (i === "status" || i === "clockIn") {
  2232. if (isNaN(parseInt(data[i]))) {
  2233. delete data[i];
  2234. }
  2235. } else if (!data[i]) {
  2236. delete data[i];
  2237. }
  2238. }
  2239. $.ajax({
  2240. method: "get",
  2241. dataType: "json",
  2242. crossDomain: false,
  2243. url: globalConfig.context + "/api/admin/release/publicReleaseDtails/export",
  2244. data,
  2245. success: function (data) {
  2246. if (data.error.length === 0) {
  2247. this.download(data.data);
  2248. } else {
  2249. message.warning(data.error[0].message);
  2250. }
  2251. }.bind(this),
  2252. }).always(
  2253. function () {
  2254. loading();
  2255. this.setState({
  2256. exportPendingLoading: false,
  2257. });
  2258. }.bind(this)
  2259. );
  2260. },
  2261. // 下载
  2262. download(fileName) {
  2263. window.location.href =
  2264. globalConfig.context + "/open/download?fileName=" + fileName;
  2265. },
  2266. tableRowClickPro(record) {
  2267. this.setState({
  2268. pvisible: true,
  2269. record,
  2270. });
  2271. },
  2272. kaiPiaoData(record) {
  2273. this.setState({
  2274. avisible: true,
  2275. });
  2276. this.invoiceData(record.id);
  2277. },
  2278. invoiceData(id) {
  2279. this.setState({
  2280. loading: true,
  2281. });
  2282. $.ajax({
  2283. method: "get",
  2284. dataType: "json",
  2285. crossDomain: false,
  2286. url:
  2287. globalConfig.context + "/api/admin/orderInvoice/selectByIdOrderInvoice",
  2288. data: {
  2289. id,
  2290. },
  2291. success: function (data) {
  2292. let thisdata = data.data;
  2293. let obj = {
  2294. contractNo: thisdata.contractNo,
  2295. orderNo: thisdata.orderNo,
  2296. approval: thisdata.approval,
  2297. type: thisdata.type,
  2298. status: thisdata.status,
  2299. remarks: thisdata.remarks,
  2300. invoiceType: thisdata.invoiceType,
  2301. unitName: thisdata.unitName,
  2302. taxNumber: thisdata.taxNumber,
  2303. amount: thisdata.amount,
  2304. banks: thisdata.banks,
  2305. content: thisdata.content,
  2306. unitAddress: thisdata.unitAddress,
  2307. invoiceRemarks: thisdata.invoiceRemarks,
  2308. unitMobile: thisdata.unitMobile,
  2309. post: thisdata.post,
  2310. addressee: thisdata.addressee,
  2311. addresseeMobile: thisdata.addresseeMobile,
  2312. addresseeProvince: thisdata.addresseeProvince,
  2313. addresseeCity: thisdata.addresseeCity,
  2314. addresseeArea: thisdata.addresseeArea,
  2315. alreadyAmount: thisdata.alreadyAmount,
  2316. recipientAddress: thisdata.recipientAddress,
  2317. orgCodeUrl: thisdata.voucherUrl
  2318. ? splitUrl(
  2319. thisdata.voucherUrl,
  2320. ",",
  2321. globalConfig.avatarHost + "/upload"
  2322. )
  2323. : [],
  2324. };
  2325. this.setState({
  2326. modalData: obj,
  2327. });
  2328. }.bind(this),
  2329. }).done(
  2330. function () {
  2331. this.setState({
  2332. loading: false,
  2333. });
  2334. }.bind(this)
  2335. );
  2336. },
  2337. visitCancels() {
  2338. this.setState({
  2339. avisible: false,
  2340. });
  2341. },
  2342. selectAuto(value, options) {
  2343. this.setState({
  2344. auto: value,
  2345. });
  2346. },
  2347. selectAuto1(value, options) {
  2348. this.setState({
  2349. auto1: value,
  2350. });
  2351. },
  2352. blurChange(e) {
  2353. let theType = "";
  2354. let contactLists = this.state.customerArr || [];
  2355. if (e) {
  2356. contactLists.map(function (item) {
  2357. if (item.name == e.toString()) {
  2358. theType = item.id;
  2359. }
  2360. });
  2361. }
  2362. this.setState({
  2363. theTypes: theType,
  2364. });
  2365. },
  2366. blurChange1(e) {
  2367. let theType = "";
  2368. let contactLists = this.state.customerArr1 || [];
  2369. if (e) {
  2370. contactLists.map(function (item) {
  2371. if (item.name == e.toString()) {
  2372. theType = item.id;
  2373. }
  2374. });
  2375. }
  2376. this.setState({
  2377. theTypes1: theType,
  2378. });
  2379. },
  2380. httpChange(e) {
  2381. if (e.length >= 1) {
  2382. this.supervisor(e);
  2383. }
  2384. this.setState({
  2385. auto: e,
  2386. });
  2387. },
  2388. httpChange1(e) {
  2389. if (e.length >= 1) {
  2390. this.supervisor1(e);
  2391. }
  2392. this.setState({
  2393. auto1: e,
  2394. });
  2395. },
  2396. supervisor(e) {
  2397. $.ajax({
  2398. method: "get",
  2399. dataType: "json",
  2400. crossDomain: false,
  2401. url: globalConfig.context + "/api/admin/customer/listAdminByName",
  2402. data: {
  2403. adminName: e,
  2404. },
  2405. success: function (data) {
  2406. if (data.error && data.error.length === 0) {
  2407. this.setState({
  2408. customerArr: data.data,
  2409. });
  2410. } else {
  2411. message.warning(data.error[0].message);
  2412. }
  2413. }.bind(this),
  2414. }).always(function () { }.bind(this));
  2415. },
  2416. supervisor1(e) {
  2417. $.ajax({
  2418. method: "get",
  2419. dataType: "json",
  2420. crossDomain: false,
  2421. url: globalConfig.context + "/api/admin/customer/listAdminByName",
  2422. data: {
  2423. adminName: e,
  2424. },
  2425. success: function (data) {
  2426. if (data.error && data.error.length === 0) {
  2427. this.setState({
  2428. customerArr1: data.data,
  2429. });
  2430. } else {
  2431. message.warning(data.error[0].message);
  2432. }
  2433. }.bind(this),
  2434. }).always(function () { }.bind(this));
  2435. },
  2436. render() {
  2437. const formItemLayout = {
  2438. labelCol: { span: 8 },
  2439. wrapperCol: { span: 14 },
  2440. };
  2441. const { RangePicker } = DatePicker;
  2442. var departmentArr = this.state.departmentArr || [];
  2443. const { loading, selectedRowKeys, visible } = this.state;
  2444. const rowSelection = {
  2445. selectedRowKeys,
  2446. onChange: this.onSelectChange,
  2447. hideDefaultSelections: true,
  2448. type: "radio",
  2449. };
  2450. const dataSources = this.state.customerArr || [];
  2451. const dataSources1 = this.state.customerArr1 || [];
  2452. const options = dataSources.map((group) => (
  2453. <Select.Option key={group.id} value={group.name}>
  2454. {group.name}
  2455. </Select.Option>
  2456. ));
  2457. const options1 = dataSources1.map((group) => (
  2458. <Select.Option key={group.id} value={group.name}>
  2459. {group.name}
  2460. </Select.Option>
  2461. ));
  2462. return (
  2463. <div className="user-content">
  2464. {this.state.resVisible ? (
  2465. <ResolutionDetail
  2466. cancel={this.resCancel}
  2467. detail={this.state.resRecord}
  2468. visible={this.state.resVisible}
  2469. id={this.state.resRecord.orderNo}
  2470. />
  2471. ) : (
  2472. ""
  2473. )}
  2474. <div className="content-title" style={{ marginBottom: 10 }}>
  2475. <span style={{ fontWeight: 900, fontSize: 16 }}>收款结算</span>
  2476. </div>
  2477. <Tabs defaultActiveKey="2" className="test">
  2478. <TabPane tab="搜索" key="2">
  2479. <div className="user-search" style={{ marginLeft: 10 }}>
  2480. <Input
  2481. placeholder="订单编号"
  2482. value={this.state.orderNoSearch}
  2483. onChange={(e) => {
  2484. this.setState({ orderNoSearch: e.target.value });
  2485. }}
  2486. />
  2487. <Input
  2488. placeholder="客户名称"
  2489. value={this.state.nameSearch}
  2490. onChange={(e) => {
  2491. this.setState({ nameSearch: e.target.value });
  2492. }}
  2493. />
  2494. <Cascaders
  2495. ref={node => this.Cascaders = node}
  2496. placeholder="订单部门"
  2497. id="id"
  2498. name="name"
  2499. children="list"
  2500. height={28}
  2501. onSel={(e) => {
  2502. this.setState({
  2503. departmenttList: JSON.stringify(e),
  2504. });
  2505. }}
  2506. />
  2507. {/* <Select
  2508. placeholder="订单部门"
  2509. style={{ width: 180, marginRight: 10 }}
  2510. value={this.state.departmenttList}
  2511. onChange={(e) => {
  2512. this.setState({ departmenttList: e });
  2513. }}
  2514. >
  2515. {departmentArr.map(function (item) {
  2516. return (
  2517. <Select.Option key={item.id}>{item.name}</Select.Option>
  2518. );
  2519. })}
  2520. </Select> */}
  2521. <Input
  2522. placeholder="合同编号"
  2523. value={this.state.contractNoSearch}
  2524. onChange={(e) => {
  2525. this.setState({
  2526. contractNoSearch: e.target.value,
  2527. });
  2528. }}
  2529. />
  2530. <Select
  2531. placeholder="流程状态"
  2532. onChange={(e) => {
  2533. this.setState({ processStatusSearch: e });
  2534. }}
  2535. style={{ width: 120, marginRight: 5 }}
  2536. value={this.state.processStatusSearch}
  2537. >
  2538. <Option value="3">未分配</Option>
  2539. <Option value="4">已分配</Option>
  2540. <Option value="9">已驳回</Option>
  2541. </Select>
  2542. <Select
  2543. placeholder="结算状态"
  2544. onChange={(e) => {
  2545. this.setState({ liquidationStatus: e });
  2546. }}
  2547. style={{ width: 120, marginRight: 5 }}
  2548. value={this.state.liquidationStatus}
  2549. >
  2550. <Option value="0">首付待付清</Option>
  2551. <Option value="1">尾款待付清</Option>
  2552. <Option value="2">已付清</Option>
  2553. </Select>
  2554. <Select
  2555. style={{ width: 120 }}
  2556. placeholder="签单金额"
  2557. value={this.state.amountStatus}
  2558. onChange={(e) => {
  2559. this.setState({
  2560. amountStatus: e,
  2561. });
  2562. }}
  2563. >
  2564. <Option value="0">10万元以下</Option>
  2565. <Option value="1">10~20万元</Option>
  2566. <Option value="2">20~30万元</Option>
  2567. <Option value="3">30~40万元</Option>
  2568. <Option value="4">40万元以上</Option>
  2569. </Select>
  2570. <Select
  2571. style={{ width: 120 }}
  2572. placeholder="特批状态"
  2573. value={this.state.approval}
  2574. onChange={(e) => {
  2575. this.setState({
  2576. approval: e,
  2577. });
  2578. }}
  2579. >
  2580. <Option value="0">非特批</Option>
  2581. <Option value="1">特批待审</Option>
  2582. <Option value="2">特批通过</Option>
  2583. <Option value="4">全部特批</Option>
  2584. </Select>
  2585. <Select
  2586. style={{ width: 120 }}
  2587. placeholder="会员状态"
  2588. value={this.state.projectType}
  2589. onChange={(e) => {
  2590. this.setState({
  2591. projectType: e,
  2592. });
  2593. }}
  2594. >
  2595. <Option value="1">会员</Option>
  2596. <Option value="0">非会员</Option>
  2597. </Select>
  2598. <span style={{}}>下单日期:</span>
  2599. <RangePicker
  2600. style={{ width: 170 }}
  2601. value={[
  2602. this.state.releaseDate[0]
  2603. ? moment(this.state.releaseDate[0])
  2604. : null,
  2605. this.state.releaseDate[1]
  2606. ? moment(this.state.releaseDate[1])
  2607. : null,
  2608. ]}
  2609. onChange={(data, dataString) => {
  2610. this.setState({ releaseDate: dataString });
  2611. }}
  2612. />
  2613. <span style={{}}>最近收款:</span>
  2614. <RangePicker
  2615. style={{ width: 170 }}
  2616. value={[
  2617. this.state.shouKuanDate[0]
  2618. ? moment(this.state.shouKuanDate[0])
  2619. : null,
  2620. this.state.shouKuanDate[1]
  2621. ? moment(this.state.shouKuanDate[1])
  2622. : null,
  2623. ]}
  2624. onChange={(data, dataString) => {
  2625. this.setState({ shouKuanDate: dataString });
  2626. }}
  2627. />
  2628. <Button
  2629. type="primary"
  2630. onClick={this.search}
  2631. style={{ marginLeft: 10 }}
  2632. disabled={this.state.loadingA ? true : false}
  2633. >
  2634. 搜索
  2635. </Button>
  2636. <Button onClick={this.reset}>重置</Button>
  2637. </div>
  2638. </TabPane>
  2639. <TabPane tab="打印" key="3">
  2640. <Button
  2641. type="primary"
  2642. style={{ margin: "11px 0px 10px 10px" }}
  2643. onClick={this.printAll}
  2644. disabled={!this.state.dataSource.length}
  2645. >
  2646. 打印所有列表信息
  2647. </Button>
  2648. <Button
  2649. type="primary"
  2650. disabled={this.state.selectedRowKeys.length != 1}
  2651. style={{ margin: "11px 0px 10px 10px" }}
  2652. onClick={() => {
  2653. this.inRecordData();
  2654. this.setState({
  2655. bvisible: true,
  2656. });
  2657. }}
  2658. >
  2659. 打印开票详情
  2660. </Button>
  2661. <Button
  2662. type="primary"
  2663. disabled={this.state.selectedRowKeys.length != 1}
  2664. style={{ margin: "11px 0px 10px 10px" }}
  2665. onClick={() => {
  2666. this.waterData();
  2667. this.setState({
  2668. cvisible: true,
  2669. });
  2670. }}
  2671. >
  2672. 打印收款流水
  2673. </Button>
  2674. <Button
  2675. type="primary"
  2676. disabled={this.state.selectedRowKeys.length != 1}
  2677. style={{ margin: "11px 0px 10px 10px" }}
  2678. onClick={() => {
  2679. this.timeData();
  2680. this.setState({
  2681. timeVisible: true,
  2682. });
  2683. }}
  2684. >
  2685. 打印工时信息
  2686. </Button>
  2687. <Button
  2688. type="primary"
  2689. disabled={this.state.selectedRowKeys.length != 1}
  2690. style={{ margin: "11px 0px 10px 10px" }}
  2691. onClick={() => {
  2692. this.cuiData();
  2693. this.setState({
  2694. cuiVisible: true,
  2695. });
  2696. }}
  2697. >
  2698. 打印催款信息
  2699. </Button>
  2700. <Button
  2701. type="primary"
  2702. disabled={this.state.selectedRowKeys.length != 1}
  2703. style={{ margin: "11px 0px 10px 10px" }}
  2704. onClick={() => {
  2705. this.proData();
  2706. this.setState({
  2707. proVisible: true,
  2708. });
  2709. }}
  2710. >
  2711. 打印项目进度
  2712. </Button>
  2713. </TabPane>
  2714. <TabPane tab="导出Excel" key="4">
  2715. <Button
  2716. type="primary"
  2717. style={{ margin: "11px 0px 10px 10px" }}
  2718. onClick={this.exportAll}
  2719. >
  2720. 导出当前列表
  2721. </Button>
  2722. <Button
  2723. type="primary"
  2724. disabled={this.state.selectedRowKeys.length != 1}
  2725. style={{ margin: "11px 0px 10px 10px" }}
  2726. onClick={this.exportKaip}
  2727. >
  2728. 导出所选开票详情
  2729. </Button>
  2730. <Button
  2731. type="primary"
  2732. disabled={this.state.selectedRowKeys.length != 1}
  2733. style={{ margin: "11px 0px 10px 10px" }}
  2734. onClick={this.exportWater}
  2735. >
  2736. 导出所选收款详情流水
  2737. </Button>
  2738. <Button
  2739. type="primary"
  2740. disabled={this.state.selectedRowKeys.length != 1}
  2741. style={{ margin: "11px 0px 10px 10px" }}
  2742. onClick={this.exportTime}
  2743. >
  2744. 导出所选工时信息
  2745. </Button>
  2746. <Button
  2747. type="primary"
  2748. disabled={this.state.selectedRowKeys.length != 1}
  2749. style={{ margin: "11px 0px 10px 10px" }}
  2750. onClick={this.exportCui}
  2751. >
  2752. 导出催款信息
  2753. </Button>
  2754. <Button
  2755. type="primary"
  2756. disabled={this.state.selectedRowKeys.length != 1}
  2757. style={{ margin: "11px 0px 10px 10px" }}
  2758. onClick={this.exportPro}
  2759. >
  2760. 导出项目进度
  2761. </Button>
  2762. </TabPane>
  2763. <TabPane tab="查看" key="5">
  2764. <Button
  2765. type="primary"
  2766. disabled={this.state.selectedRowKeys.length != 1}
  2767. style={{ margin: "11px 0px 10px 10px" }}
  2768. onClick={() => {
  2769. this.inRecordData();
  2770. this.setState({
  2771. bvisible: true,
  2772. });
  2773. }}
  2774. >
  2775. 查看开票详情
  2776. </Button>
  2777. <Button
  2778. type="primary"
  2779. disabled={this.state.selectedRowKeys.length != 1}
  2780. style={{ margin: "11px 0px 10px 10px" }}
  2781. onClick={() => {
  2782. this.waterData();
  2783. this.setState({
  2784. cvisible: true,
  2785. });
  2786. }}
  2787. >
  2788. 详情收款流水
  2789. </Button>
  2790. <Button
  2791. type="primary"
  2792. disabled={this.state.selectedRowKeys.length != 1}
  2793. style={{ margin: "11px 0px 10px 10px" }}
  2794. onClick={() => {
  2795. this.timeData();
  2796. this.setState({
  2797. timeVisible: true,
  2798. });
  2799. }}
  2800. >
  2801. 工时信息
  2802. </Button>
  2803. <Button
  2804. type="primary"
  2805. disabled={this.state.selectedRowKeys.length != 1}
  2806. style={{ margin: "11px 0px 10px 10px" }}
  2807. onClick={() => {
  2808. this.cuiData();
  2809. this.setState({
  2810. cuiVisible: true,
  2811. });
  2812. }}
  2813. >
  2814. 催款信息
  2815. </Button>
  2816. <Button
  2817. type="primary"
  2818. disabled={this.state.selectedRowKeys.length != 1}
  2819. style={{ margin: "11px 0px 10px 10px" }}
  2820. onClick={() => {
  2821. this.proData();
  2822. this.setState({
  2823. proVisible: true,
  2824. });
  2825. }}
  2826. >
  2827. 项目进度
  2828. </Button>
  2829. <Button
  2830. type="primary"
  2831. disabled={this.state.selectedRowKeys.length != 1}
  2832. style={{ margin: "11px 0px 10px 10px" }}
  2833. onClick={() => {
  2834. this.pubData();
  2835. this.selectSuperId();
  2836. this.setState({
  2837. pubVisible: true,
  2838. });
  2839. }}
  2840. >
  2841. 查看公出
  2842. </Button>
  2843. </TabPane>
  2844. <TabPane tab="更改表格显示数据" key="1">
  2845. <div style={{ marginLeft: 10 }}>
  2846. <ChooseList
  2847. columns={this.state.columns}
  2848. changeFn={this.changeList}
  2849. changeList={this.state.changeList}
  2850. top={55}
  2851. margin={11}
  2852. />
  2853. </div>
  2854. </TabPane>
  2855. {/* <TabPane tab="批量操作" key="6">
  2856. <Button
  2857. type="primary"
  2858. disabled={this.state.selectedRowKeys.length == 0}
  2859. style={{ margin: "0px 0px 10px 10px" }}
  2860. onClick={e => {
  2861. e.stopPropagation(),
  2862. this.evaluateY(this.state.selectedRowKeys, "财务专员");
  2863. }}
  2864. >
  2865. 转交
  2866. </Button>
  2867. </TabPane> */}
  2868. </Tabs>
  2869. <div className="patent-table">
  2870. <Spin spinning={this.state.loadingA}>
  2871. <Table
  2872. bordered
  2873. columns={
  2874. this.state.changeList == undefined
  2875. ? this.state.columns
  2876. : this.state.changeList
  2877. }
  2878. dataSource={this.state.dataSource}
  2879. rowSelection={rowSelection}
  2880. scroll={{ x: "max-content", y: 0 }}
  2881. pagination={this.state.pagination}
  2882. onRowDoubleClick={this.tableRowClick.bind(this)}
  2883. size="small"
  2884. />
  2885. </Spin>
  2886. <p
  2887. style={{ display: "inline-block", fontSize: "14px", color: "red" }}
  2888. >
  2889. {
  2890. <span style={{ marginRight: 10 }}>
  2891. {`收款金额总计(万元):${this.state.hui ? this.state.hui : "0"}`}
  2892. </span>
  2893. }
  2894. {
  2895. <span>
  2896. {`合同额总计(万元):${this.state.totalHui ? this.state.totalHui : "0"
  2897. }`}
  2898. </span>
  2899. }
  2900. </p>
  2901. </div>
  2902. <Assign
  2903. title="任务"
  2904. selApi={"/api/admin/newOrder/updateFinance"}
  2905. data={this.state.assignDataY}
  2906. showDesc={this.state.assignVisibleY}
  2907. closeDesc={this.closeAssignY.bind(this)}
  2908. // fenpaiData={8}
  2909. specially={0}
  2910. roleName={this.state.nub}
  2911. requestMethod={"get"}
  2912. />
  2913. <OrderDesc
  2914. data={this.state.RowData}
  2915. showDesc={this.state.showDesc}
  2916. closeDesc={this.closeDesc.bind(this)}
  2917. />
  2918. <Receivable
  2919. title="收款记录"
  2920. api="/api/admin/financial/addReceiptsFlow"
  2921. data={this.state.assignDataX}
  2922. showDesc={this.state.assignVisibleX}
  2923. closeDesc={this.closeAssignX.bind(this)}
  2924. />
  2925. {/* 驳回备注 */}
  2926. <Modal
  2927. visible={this.state.boHuiVisible}
  2928. width="400px"
  2929. title="驳回备注"
  2930. footer=""
  2931. onOk={this.boHuiOk}
  2932. onCancel={this.boHuiCancel}
  2933. >
  2934. <Form layout="horizontal" onSubmit={this.boHuiSubmit}>
  2935. <Spin spinning={this.state.loading}>
  2936. <FormItem
  2937. labelCol={{ span: 5 }}
  2938. wrapperCol={{ span: 16 }}
  2939. label={
  2940. <span>
  2941. <strong style={{ color: "#f00" }}>*</strong>驳回原因
  2942. </span>
  2943. }
  2944. >
  2945. <Input
  2946. type="textarea"
  2947. rows={4}
  2948. placeholder="请输入驳回原因"
  2949. value={this.state.content}
  2950. onChange={(e) => {
  2951. this.setState({ content: e.target.value });
  2952. }}
  2953. />
  2954. </FormItem>
  2955. <FormItem wrapperCol={{ span: 12, offset: 5 }}>
  2956. <Button
  2957. type="primary"
  2958. htmlType="submit"
  2959. style={{ marginRight: 20 }}
  2960. >
  2961. 驳回
  2962. </Button>
  2963. <Button
  2964. type="default"
  2965. onClick={() => {
  2966. this.boHuiCancel();
  2967. }}
  2968. >
  2969. 取消
  2970. </Button>
  2971. </FormItem>
  2972. </Spin>
  2973. </Form>
  2974. </Modal>
  2975. {/* 开票历史记录 */}
  2976. <Modal
  2977. visible={this.state.bvisible}
  2978. footer=""
  2979. title="开票历史记录"
  2980. className="admin-desc-content"
  2981. width="1200px"
  2982. onCancel={this.inRecordCanl}
  2983. >
  2984. <Spin spinning={this.state.loading}>
  2985. <div
  2986. className="patent-table"
  2987. ref={(e) => {
  2988. this.refs.kaiPiao = e;
  2989. }}
  2990. >
  2991. <Table
  2992. columns={this.state.columnsDate}
  2993. dataSource={this.state.recordData}
  2994. onRowClick={this.kaiPiaoData}
  2995. pagination={false}
  2996. bordered
  2997. size="small"
  2998. />
  2999. <div className="clearfix" style={{ marginTop: "20px" }}>
  3000. <FormItem
  3001. className="half-item"
  3002. {...formItemLayout}
  3003. label={<span style={{ fontSize: "14px" }}>开票总计</span>}
  3004. >
  3005. <span>{this.state.sum + "(万元)"}</span>
  3006. </FormItem>
  3007. </div>
  3008. <ReactToPrint
  3009. trigger={() => (
  3010. <Button
  3011. type="primary"
  3012. style={{
  3013. float: "right",
  3014. // marginTop: 10,
  3015. position: "absolute",
  3016. top: -54,
  3017. right: 30,
  3018. }}
  3019. >
  3020. 打印
  3021. </Button>
  3022. )}
  3023. content={() => this.refs.kaiPiao}
  3024. />
  3025. </div>
  3026. </Spin>
  3027. </Modal>
  3028. {/* 详细收款流水 */}
  3029. <Modal
  3030. visible={this.state.cvisible}
  3031. footer=""
  3032. title="详细收款流水"
  3033. className="admin-desc-content"
  3034. width="1300px"
  3035. onCancel={this.waterCanl}
  3036. >
  3037. <Spin spinning={this.state.loading}>
  3038. <div
  3039. className="patent-table"
  3040. ref={(e) => {
  3041. this.refs.shouKuan = e;
  3042. }}
  3043. >
  3044. <Table
  3045. columns={this.state.waterlistDate}
  3046. dataSource={this.state.waterData}
  3047. pagination={false}
  3048. scroll={{ x: "max-content", y: 0 }}
  3049. bordered
  3050. size="small"
  3051. />
  3052. <div className="clearfix" style={{ marginTop: "20px" }}>
  3053. <FormItem
  3054. className="half-item"
  3055. {...formItemLayout}
  3056. label={<span style={{ fontSize: "14px" }}>总计金额</span>}
  3057. >
  3058. <span>{this.state.waterSum + "(万元)"}</span>
  3059. </FormItem>
  3060. </div>
  3061. <ReactToPrint
  3062. trigger={() => (
  3063. <Button
  3064. type="primary"
  3065. style={{
  3066. float: "right",
  3067. position: "absolute",
  3068. top: -54,
  3069. right: 30,
  3070. }}
  3071. >
  3072. 打印
  3073. </Button>
  3074. )}
  3075. content={() => this.refs.shouKuan}
  3076. />
  3077. </div>
  3078. </Spin>
  3079. </Modal>
  3080. {/* 所有列表信息 */}
  3081. <Modal
  3082. visible={this.state.dvisible}
  3083. footer=""
  3084. title="所有列表信息"
  3085. className="admin-desc-content"
  3086. width="1300px"
  3087. onCancel={() => {
  3088. this.loadData();
  3089. this.setState({
  3090. dvisible: false,
  3091. });
  3092. }}
  3093. >
  3094. <Spin spinning={this.state.loading}>
  3095. <div
  3096. className="patent-table"
  3097. style={{
  3098. // width: 900,
  3099. // position: "relative",
  3100. // left: "50%",
  3101. // transform: "translate(-50%)",
  3102. padding: "25px 0 30px 30px",
  3103. }}
  3104. ref={(e) => {
  3105. this.refs.all = e;
  3106. }}
  3107. >
  3108. <Table
  3109. columns={this.state.printColumns}
  3110. dataSource={this.state.dataSource}
  3111. pagination={false}
  3112. bordered
  3113. size="small"
  3114. />
  3115. </div>
  3116. </Spin>
  3117. <ReactToPrint
  3118. trigger={() => (
  3119. <Button
  3120. type="primary"
  3121. style={{
  3122. float: "right",
  3123. marginTop: 10,
  3124. position: "absolute",
  3125. top: 0,
  3126. right: 30,
  3127. }}
  3128. >
  3129. 打印
  3130. </Button>
  3131. )}
  3132. content={() => this.refs.all}
  3133. />
  3134. </Modal>
  3135. {/* 工时详情 */}
  3136. <Modal
  3137. visible={this.state.timeVisible}
  3138. footer=""
  3139. title="工时详情"
  3140. className="admin-desc-content"
  3141. width="1300px"
  3142. pagination={false}
  3143. onCancel={() => {
  3144. this.loadData(this.state.page);
  3145. this.setState({
  3146. timeVisible: false,
  3147. });
  3148. }}
  3149. >
  3150. <Spin spinning={this.state.loading}>
  3151. {this.state.pvisible && (
  3152. <Project
  3153. record={this.state.record}
  3154. visible={this.state.pvisible}
  3155. isAuditPaymentGLY={true}
  3156. cancel={() => {
  3157. this.setState({ pvisible: false });
  3158. }}
  3159. />
  3160. )}
  3161. <div
  3162. className="patent-table"
  3163. style={
  3164. {
  3165. // width: 900,
  3166. // position: "relative",
  3167. // left: "50%",
  3168. // transform: "translate(-50%)",
  3169. // padding: "25px 0 30px 30px"
  3170. }
  3171. }
  3172. ref={(e) => {
  3173. this.refs.all = e;
  3174. }}
  3175. >
  3176. <Table
  3177. columns={this.state.timeColumns}
  3178. dataSource={this.state.timeDataList}
  3179. onRowClick={this.tableRowClickPro}
  3180. scroll={{ x: "max-content", y: 0 }}
  3181. pagination={false}
  3182. bordered
  3183. size="small"
  3184. />
  3185. </div>
  3186. </Spin>
  3187. <ReactToPrint
  3188. trigger={() => (
  3189. <Button
  3190. type="primary"
  3191. style={{
  3192. float: "right",
  3193. marginTop: 10,
  3194. position: "absolute",
  3195. top: 0,
  3196. right: 30,
  3197. }}
  3198. >
  3199. 打印
  3200. </Button>
  3201. )}
  3202. content={() => this.refs.all}
  3203. />
  3204. </Modal>
  3205. {/* 催款详情 */}
  3206. <Modal
  3207. visible={this.state.cuiVisible}
  3208. footer=""
  3209. title="催款详情"
  3210. className="admin-desc-content"
  3211. width="1300px"
  3212. pagination={false}
  3213. onCancel={() => {
  3214. this.loadData(this.state.page);
  3215. this.setState({
  3216. cuiVisible: false,
  3217. cuiTabKey: "1",
  3218. });
  3219. }}
  3220. >
  3221. <Tabs activeKey={this.state.cuiTabKey} onChange={this.cuiTabChange}>
  3222. <TabPane tab="催款节点" key="1">
  3223. <Spin spinning={this.state.loading}>
  3224. <div
  3225. className="patent-table"
  3226. ref={(e) => {
  3227. this.refs.all = e;
  3228. }}
  3229. >
  3230. <Table
  3231. columns={this.state.cuiColumns}
  3232. dataSource={this.state.cuiDataList}
  3233. scroll={{ x: "max-content", y: 0 }}
  3234. pagination={false}
  3235. bordered
  3236. size="small"
  3237. />
  3238. </div>
  3239. <ReactToPrint
  3240. trigger={() => (
  3241. <Button
  3242. type="primary"
  3243. style={{
  3244. float: "right",
  3245. marginTop: 10,
  3246. position: "absolute",
  3247. top: "-60px",
  3248. right: 30,
  3249. }}
  3250. >
  3251. 打印
  3252. </Button>
  3253. )}
  3254. content={() => this.refs.all}
  3255. />
  3256. </Spin>
  3257. </TabPane>
  3258. <TabPane tab="欠款催收记录" key="2">
  3259. <Spin spinning={this.state.loading}>
  3260. <div
  3261. className="patent-table"
  3262. ref={(e) => {
  3263. this.refs.all = e;
  3264. }}
  3265. >
  3266. <Table
  3267. columns={this.state.qianColumns}
  3268. dataSource={this.state.qianDataList}
  3269. scroll={{ x: "max-content", y: 0 }}
  3270. pagination={false}
  3271. bordered
  3272. size="small"
  3273. />
  3274. </div>
  3275. <ReactToPrint
  3276. trigger={() => (
  3277. <Button
  3278. type="primary"
  3279. style={{
  3280. float: "right",
  3281. marginTop: 10,
  3282. position: "absolute",
  3283. top: "-60px",
  3284. right: 30,
  3285. }}
  3286. >
  3287. 打印
  3288. </Button>
  3289. )}
  3290. content={() => this.refs.all}
  3291. />
  3292. </Spin>
  3293. </TabPane>
  3294. </Tabs>
  3295. </Modal>
  3296. <Project
  3297. record={this.state.record}
  3298. visible={this.state.pvisible}
  3299. isAuditPaymentGLY={true}
  3300. cancel={() => {
  3301. this.setState({ pvisible: false });
  3302. }}
  3303. />
  3304. {/* 项目进度 */}
  3305. <Modal
  3306. visible={this.state.proVisible}
  3307. footer=""
  3308. title="项目进度"
  3309. className="admin-desc-content"
  3310. width="1300px"
  3311. pagination={false}
  3312. onCancel={() => {
  3313. this.loadData(this.state.page);
  3314. this.setState({
  3315. proVisible: false,
  3316. });
  3317. }}
  3318. >
  3319. <Spin spinning={this.state.loading}>
  3320. <div
  3321. className="patent-table"
  3322. style={
  3323. {
  3324. // width: 900,
  3325. // position: "relative",
  3326. // left: "50%",
  3327. // transform: "translate(-50%)",
  3328. // padding: "25px 0 30px 30px"
  3329. }
  3330. }
  3331. ref={(e) => {
  3332. this.refs.all = e;
  3333. }}
  3334. >
  3335. <Table
  3336. columns={this.state.proColumns}
  3337. dataSource={this.state.proDataList}
  3338. scroll={{ x: "max-content", y: 0 }}
  3339. onRowClick={this.tableRowClickPro}
  3340. pagination={false}
  3341. bordered
  3342. size="small"
  3343. />
  3344. </div>
  3345. <span style={{ display: "block", marginTop: 10, color: "red" }}>
  3346. 外包(内部)价格总计(万元):{this.state.totalWaibao}
  3347. </span>
  3348. </Spin>
  3349. <ReactToPrint
  3350. trigger={() => (
  3351. <Button
  3352. type="primary"
  3353. style={{
  3354. float: "right",
  3355. marginTop: 10,
  3356. position: "absolute",
  3357. top: 0,
  3358. right: 30,
  3359. }}
  3360. >
  3361. 打印
  3362. </Button>
  3363. )}
  3364. content={() => this.refs.all}
  3365. />
  3366. </Modal>
  3367. <KaiPiaoModal
  3368. visible={this.state.avisible}
  3369. data={this.state.modalData}
  3370. onCancel={this.visitCancels}
  3371. loading={this.state.loading}
  3372. />
  3373. {/* 查看公出 */}
  3374. <Modal
  3375. visible={this.state.pubVisible}
  3376. footer=""
  3377. title={<span>公出详细列表(
  3378. {this.state.selectedRows.length > 0 && this.state.selectedRows[0].buyerName}
  3379. )</span>}
  3380. className="admin-desc-content"
  3381. width="1500px"
  3382. pagination={false}
  3383. onCancel={() => {
  3384. this.pubData();
  3385. this.setState({
  3386. pubVisible: false,
  3387. });
  3388. }}
  3389. >
  3390. <div
  3391. className="user-search"
  3392. style={{
  3393. marginTop: "10px",
  3394. marginLeft: "10px",
  3395. marginRight: "10px",
  3396. }}
  3397. >
  3398. <span style={{ marginRight: "10px" }}>
  3399. <Select
  3400. placeholder="请选择审核状态"
  3401. style={{ width: 120 }}
  3402. value={this.state.status}
  3403. onChange={(e) => {
  3404. this.setState({ status: e });
  3405. }}
  3406. >
  3407. {clockState.map((v, k) => (
  3408. <Select.Option key={k} value={v.id}>
  3409. {v.title}
  3410. </Select.Option>
  3411. ))}
  3412. </Select>
  3413. </span>
  3414. <span style={{ marginRight: "10px" }}>
  3415. <Select
  3416. placeholder="请选择打卡状态"
  3417. style={{ width: 120 }}
  3418. value={this.state.clockIn}
  3419. onChange={(e) => {
  3420. this.setState({ clockIn: e });
  3421. }}
  3422. >
  3423. <Select.Option value={1}>已打卡</Select.Option>
  3424. <Select.Option value={0}>未打卡</Select.Option>
  3425. </Select>
  3426. </span>
  3427. <span style={{ marginRight: "10px" }}>
  3428. <Select
  3429. placeholder="请选择公出类型"
  3430. style={{ width: 120 }}
  3431. value={this.state.type}
  3432. onChange={(e) => {
  3433. this.setState({ type: e });
  3434. }}
  3435. >
  3436. <Select.Option value={0}>业务打卡</Select.Option>
  3437. <Select.Option value={1}>技术打卡</Select.Option>
  3438. <Select.Option value={2}>行政打卡</Select.Option>
  3439. <Select.Option value={3}>技术协单</Select.Option>
  3440. </Select>
  3441. </span>
  3442. <span style={{ marginRight: "10px" }}>
  3443. <AutoComplete
  3444. className="certain-category-search"
  3445. dropdownClassName="certain-category-search-dropdown"
  3446. dropdownMatchSelectWidth={false}
  3447. style={{ width: "120px" }}
  3448. dataSource={options}
  3449. placeholder="输入公出申请人"
  3450. value={this.state.auto}
  3451. onChange={this.httpChange}
  3452. filterOption={true}
  3453. onBlur={this.blurChange}
  3454. onSelect={this.selectAuto}
  3455. >
  3456. <Input />
  3457. </AutoComplete>
  3458. </span>
  3459. <span style={{ marginRight: "10px" }}>
  3460. <AutoComplete
  3461. className="certain-category-search"
  3462. dropdownClassName="certain-category-search-dropdown"
  3463. dropdownMatchSelectWidth={false}
  3464. style={{ width: "120px" }}
  3465. dataSource={options1}
  3466. placeholder="输入跟单人"
  3467. value={this.state.auto1}
  3468. onChange={this.httpChange1}
  3469. filterOption={true}
  3470. onBlur={this.blurChange1}
  3471. onSelect={this.selectAuto1}
  3472. >
  3473. <Input />
  3474. </AutoComplete>
  3475. </span>
  3476. <span style={{ marginRight: "10px" }}>
  3477. <Select
  3478. placeholder="请选择公出部门"
  3479. style={{ width: 200 }}
  3480. value={this.state.depId}
  3481. onChange={(e) => {
  3482. this.setState({ depId: e });
  3483. }}
  3484. notFoundContent="未获取到上级组织列表"
  3485. >
  3486. {this.state.contactsOption}
  3487. </Select>
  3488. </span>
  3489. <span style={{ marginRight: "10px" }}>
  3490. <span style={{ marginRight: "5px", marginBottom: "10px" }}>
  3491. 公出时间 :
  3492. </span>
  3493. <RangePicker
  3494. style={{ marginRight: "10px", marginBottom: "10px" }}
  3495. value={[
  3496. this.state.releaseDate[0]
  3497. ? moment(this.state.releaseDate[0])
  3498. : null,
  3499. this.state.releaseDate[1]
  3500. ? moment(this.state.releaseDate[1])
  3501. : null,
  3502. ]}
  3503. onChange={(data, dataString) => {
  3504. this.setState({ releaseDate: dataString });
  3505. }}
  3506. />
  3507. </span>
  3508. <Button
  3509. type="primary"
  3510. onClick={() => {
  3511. this.pubData();
  3512. }}
  3513. style={{ marginRight: "10px", marginBottom: "10px" }}
  3514. >
  3515. 搜索
  3516. </Button>
  3517. <Button
  3518. onClick={this.resetAll}
  3519. style={{ marginRight: "10px", marginBottom: "10px" }}
  3520. >
  3521. 重置
  3522. </Button>
  3523. </div>
  3524. <Spin spinning={this.state.loading}>
  3525. <div
  3526. className="patent-table"
  3527. ref={(e) => {
  3528. this.refs.all = e;
  3529. }}
  3530. >
  3531. <Table
  3532. columns={this.state.pubColumns}
  3533. dataSource={this.state.pubDataList}
  3534. scroll={{ x: "max-content", y: 0 }}
  3535. pagination={false}
  3536. bordered
  3537. size="small"
  3538. />
  3539. </div>
  3540. </Spin>
  3541. <Button
  3542. type="primary"
  3543. style={{
  3544. float: "right",
  3545. marginTop: 10,
  3546. position: "absolute",
  3547. top: 0,
  3548. right: 120,
  3549. }}
  3550. loading={this.state.exportPendingLoading}
  3551. onClick={() => { this.pubexportExec() }}
  3552. >
  3553. 导出
  3554. </Button>
  3555. <ReactToPrint
  3556. trigger={() => (
  3557. <Button
  3558. type="primary"
  3559. style={{
  3560. float: "right",
  3561. marginTop: 10,
  3562. position: "absolute",
  3563. top: 0,
  3564. right: 30,
  3565. }}
  3566. >
  3567. 打印
  3568. </Button>
  3569. )}
  3570. content={() => this.refs.all}
  3571. />
  3572. </Modal>
  3573. <textarea id="copyText" style={{ opacity: 0 }} />
  3574. </div>
  3575. );
  3576. },
  3577. });
  3578. export default ShouKuang;