shouKuang.jsx 102 KB

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