shouKuanAll.jsx 100 KB

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