shouKuang.jsx 102 KB

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