shouKuanAll.jsx 102 KB

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