shouKuanAll.jsx 100 KB

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