shouKuang.jsx 102 KB

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