approveds.jsx 96 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102
  1. import React from 'react';
  2. import {
  3. Icon,
  4. Button,
  5. Input,
  6. Select,
  7. Spin,
  8. Table,
  9. message,
  10. DatePicker,
  11. Upload,
  12. Form,
  13. Modal,
  14. Col,
  15. Tag,
  16. Tabs, Tooltip
  17. } from "antd";
  18. import $ from 'jquery/src/ajax';
  19. import ResolutionDetail from "@/resolutionDetail";
  20. import ReactToPrint from "react-to-print";
  21. import moment from 'moment';
  22. import {
  23. getLiquidationStatus,
  24. getApprovedState,
  25. getProcessStatus,
  26. splitUrl,
  27. getjiedian,
  28. getboutique,
  29. getCuikuan,
  30. ShowModal,
  31. getApproval,
  32. getTaskStatus,
  33. getProjectStatus,
  34. getNewOrderStatus,
  35. getInvoiceStatus
  36. } from "@/tools.js";
  37. import './customer.less';
  38. import { ChooseList } from "../orderNew/chooseList";
  39. import ShowModalDiv from "@/showModal.jsx";
  40. import Project from "../../../../component/project";
  41. import ImgList from "../../../common/imgList";
  42. import { getProjectName } from "../../../tools";
  43. import ProjectDetailsReadOnly from "../../../common/projectDetailsReadOnly";
  44. import DepartmentList from "../../../common/departmentList";
  45. import OrderItemStatus from "../../../common/orderItemStatus";
  46. import EnterpriseNameChange from "../../../common/enterpriseNameChange";
  47. import OrderCoor from './changeComponent/orderCoor';
  48. import ContentUrl from './contentUrl';
  49. import LogPopup from "../../../common/logPopup";
  50. import Cascaders from "../../../common/cascaders";
  51. const { TabPane } = Tabs;
  52. const { TextArea } = Input;
  53. //图片组件
  54. const PicturesWall = React.createClass({
  55. getInitialState() {
  56. return {
  57. previewVisible: false,
  58. previewImage: '',
  59. fileList: [],
  60. }
  61. },
  62. handleCancel() {
  63. this.setState({
  64. previewVisible: false
  65. })
  66. },
  67. handlePreview(file) {
  68. this.setState({
  69. previewImage: file.url || file.thumbUrl,
  70. previewVisible: true,
  71. });
  72. },
  73. handleChange(info) {
  74. let fileList = info.fileList;
  75. this.setState({
  76. fileList
  77. });
  78. this.props.fileList(fileList);
  79. },
  80. componentWillReceiveProps(nextProps) {
  81. this.state.fileList = nextProps.pictureUrl;
  82. this.state.pojectApplicationUrl = undefined;
  83. },
  84. render() {
  85. const {
  86. fileList
  87. } = this.state;
  88. return (
  89. <div style={{ display: "inline-block" }}>
  90. <ImgList
  91. domId={this.props.domId}
  92. fileList={fileList}
  93. />
  94. </div>
  95. );
  96. }
  97. });
  98. const IntentionCustomer = Form.create()(
  99. React.createClass({
  100. loadData(pageNo, pageSize) {
  101. this.setState({
  102. visitModul: false,
  103. loading: true,
  104. ispage: pageNo,
  105. modalVisible: false,
  106. });
  107. $.ajax({
  108. method: "get",
  109. dataType: "json",
  110. crossDomain: false,
  111. url: globalConfig.context + "/api/admin/newOrder/orderNewList",
  112. data: {
  113. pageNo: pageNo || 1,
  114. pageSize: pageSize || this.state.pagination.pageSize,
  115. specially: 3, //审核列表
  116. name: this.state.nameSearch, //名称
  117. orderNo: this.state.orderNoSearch, //订单编号
  118. contractNo: this.state.contractNoSearch, //合同编号
  119. deps: this.state.departmenttList, //订单部门
  120. starTime: this.state.releaseDate[0], //开始时间
  121. endTime: this.state.releaseDate[1], //结束时间
  122. approval: this.state.approvalSearch ? this.state.approvalSearch : 0, //审批状态
  123. liquidationStatus: this.state.liquidationStatusSearch, //结算状态
  124. },
  125. success: function (data) {
  126. ShowModal(this);
  127. let theArr = [];
  128. if (data.error.length || data.data.list == "") {
  129. if (data.error && data.error.length) {
  130. message.warning(data.error[0].message);
  131. }
  132. } else {
  133. for (let i = 0; i < data.data.list.length; i++) {
  134. let thisdata = data.data.list[i];
  135. theArr.push({
  136. key: thisdata.orderNo,
  137. orderNo: thisdata.orderNo,
  138. orderType: thisdata.orderType,
  139. orderStatus: thisdata.orderStatus,
  140. salesmanName: thisdata.salesmanName,
  141. processStatus: thisdata.processStatus,
  142. liquidationStatus: thisdata.liquidationStatus,
  143. approval: thisdata.approval,
  144. settlementAmount: thisdata.settlementAmount,
  145. signDate: thisdata.signDate,
  146. companyId: thisdata.companyId,
  147. companyName: thisdata.companyName,
  148. buyerId: thisdata.buyerId,
  149. userName: thisdata.userName,
  150. contractNo: thisdata.contractNo,
  151. createDate: thisdata.createDate,
  152. depName: thisdata.depName,
  153. invoiceAmount: thisdata.invoiceAmount,
  154. totalAmount: thisdata.totalAmount,
  155. financeName: thisdata.financeName,
  156. });
  157. }
  158. this.state.pagination.total = data.data.totalCount;
  159. }
  160. if (data.data && data.data.list && !data.data.list.length) {
  161. this.state.pagination.total = 0;
  162. }
  163. this.setState({
  164. dataSource: theArr,
  165. pageNo: pageNo,
  166. pagination: this.state.pagination,
  167. selectedRowKeys: [],
  168. });
  169. }.bind(this),
  170. }).always(
  171. function () {
  172. this.setState({
  173. loading: false,
  174. });
  175. }.bind(this)
  176. );
  177. },
  178. getInitialState() {
  179. return {
  180. page: 1,
  181. declarationBatch: 1,
  182. orderNos: '',
  183. dataInfor: {},
  184. releaseDate: [],
  185. selectedRowKeys: [],
  186. rotateDeg: 0,
  187. orgCodeUrl: [],
  188. approvalSearch: "1",
  189. paginations: false,
  190. pagination: {
  191. defaultCurrent: 1,
  192. defaultPageSize: 10,
  193. showQuickJumper: true,
  194. pageSize: 10,
  195. onChange: function (page) {
  196. this.loadData(page);
  197. }.bind(this),
  198. showTotal: function (total) {
  199. return "共" + total + "条数据";
  200. },
  201. },
  202. columnsDate: [
  203. {
  204. title: "编号",
  205. dataIndex: "id",
  206. key: "id",
  207. },
  208. {
  209. title: "订单编号",
  210. dataIndex: "orderno",
  211. key: "orderno",
  212. },
  213. {
  214. title: "开票金额(万元)",
  215. dataIndex: "amount",
  216. key: "amount",
  217. },
  218. {
  219. title: "申请时间",
  220. dataIndex: "createTime",
  221. key: "createTime",
  222. },
  223. {
  224. title: "开票状态",
  225. dataIndex: "status",
  226. key: "status",
  227. render: (text, record) => {
  228. return <div>{getInvoiceStatus(text, record)} <LogPopup id={record.id} /></div>;
  229. },
  230. },
  231. ],
  232. columns: [
  233. {
  234. title: "合同编号",
  235. dataIndex: "contractNo",
  236. key: "contractNo",
  237. className: "title-table",
  238. },
  239. {
  240. title: "订单编号",
  241. dataIndex: "orderNo",
  242. key: "orderNo",
  243. className: "title-table",
  244. // fixed: "left"
  245. },
  246. {
  247. title: "特批状态",
  248. dataIndex: "approval",
  249. key: "approval",
  250. className: "title-table",
  251. render: (text) => {
  252. if (text == 1) {
  253. return <Tag color="#f50">{getApproval(text)}</Tag>;
  254. }
  255. return getApproval(text);
  256. },
  257. },
  258. {
  259. title: "客户名称",
  260. dataIndex: "userName",
  261. key: "userName",
  262. className: "title-table",
  263. render: text => {
  264. return (
  265. <Tooltip title={text}>
  266. <div style={{
  267. maxWidth: '150px',
  268. overflow: 'hidden',
  269. textOverflow: "ellipsis",
  270. whiteSpace: 'nowrap',
  271. }}>{text}</div>
  272. </Tooltip>
  273. )
  274. }
  275. },
  276. {
  277. title: "订单部门",
  278. dataIndex: "depName",
  279. key: "depName",
  280. className: "title-table",
  281. },
  282. {
  283. title: "订单负责人",
  284. dataIndex: "salesmanName",
  285. key: "salesmanName",
  286. className: "title-table",
  287. },
  288. {
  289. title: "财务负责人",
  290. dataIndex: "financeName",
  291. key: "financeName",
  292. className: "title-table",
  293. },
  294. {
  295. title: "签单日期",
  296. dataIndex: "signDate",
  297. key: "signDate",
  298. className: "title-table",
  299. },
  300. {
  301. title: "下单日期",
  302. dataIndex: "createDate",
  303. key: "createDate",
  304. className: "title-table",
  305. },
  306. {
  307. title: "签单金额(万元)",
  308. dataIndex: "totalAmount",
  309. key: "totalAmount",
  310. className: "title-table",
  311. },
  312. {
  313. title: "开票金额(万元)",
  314. dataIndex: "invoiceAmount",
  315. key: "invoiceAmount",
  316. className: "title-table",
  317. },
  318. {
  319. title: "已收款(万元)",
  320. dataIndex: "settlementAmount",
  321. key: "settlementAmount",
  322. className: "title-table",
  323. },
  324. {
  325. title: "结算状态",
  326. dataIndex: "liquidationStatus",
  327. key: "liquidationStatus",
  328. className: "title-table",
  329. render: (text) => {
  330. return getLiquidationStatus(text);
  331. },
  332. },
  333. {
  334. title: "流程状态",
  335. dataIndex: "processStatus",
  336. key: "processStatus",
  337. className: "title-table",
  338. render: (text) => {
  339. return getProcessStatus(text);
  340. },
  341. },
  342. ],
  343. data: [],
  344. dataSource: [],
  345. columnsX: [
  346. {
  347. title: "业务项目名称",
  348. dataIndex: "commodityName",
  349. key: "commodityName",
  350. render: (text, record) => {
  351. return <span>{text}<span style={{ color: "red" }}>{record.patentTypeName}</span>{"-" + record.id}</span>
  352. }
  353. },
  354. {
  355. title: "项目类别",
  356. dataIndex: "cname",
  357. key: "cname",
  358. },
  359. {
  360. title: "项目数量",
  361. dataIndex: "commodityQuantity",
  362. key: "commodityQuantity",
  363. render: (text, record) => {
  364. if (record.splitStatus == 1) {
  365. return (
  366. <span>
  367. {text}{" "}
  368. <Tag
  369. color="#108ee9"
  370. onClick={(e) => {
  371. e.stopPropagation();
  372. this.showRes(record);
  373. }}
  374. >
  375. 已拆
  376. </Tag>
  377. </span>
  378. );
  379. } else {
  380. return text;
  381. }
  382. },
  383. },
  384. {
  385. title: "金额(万元)",
  386. dataIndex: "commodityPrice",
  387. key: "commodityPrice",
  388. },
  389. {
  390. title: "负责人",
  391. dataIndex: "contacts",
  392. key: "contacts",
  393. },
  394. {
  395. title: "负责人电话",
  396. dataIndex: "contactsMobile",
  397. key: "contactsMobile",
  398. },
  399. {
  400. title: "主要项目",
  401. dataIndex: "main",
  402. key: "main",
  403. render: (text) => {
  404. return text ? "是" : "否";
  405. },
  406. },
  407. {
  408. title: "项目说明",
  409. dataIndex: "taskComment",
  410. key: "taskComment",
  411. render: (text) => {
  412. return text && text.length > 8 ? text.substr(0, 8) + "…" : text;
  413. },
  414. },
  415. ],
  416. columnsrizhi: [
  417. {
  418. title: "流程",
  419. dataIndex: "processName",
  420. key: "processName",
  421. },
  422. {
  423. title: "操作人",
  424. dataIndex: "adminName",
  425. key: "adminName",
  426. },
  427. {
  428. title: "时间",
  429. dataIndex: "createDate",
  430. key: "createDate",
  431. },
  432. {
  433. title: "备注",
  434. dataIndex: "remarks",
  435. key: "remarks",
  436. },
  437. ],
  438. dataSourceX: [],
  439. ContactsListsNew: [
  440. {
  441. title: "项目名称",
  442. dataIndex: "commodityName",
  443. key: "commodityName",
  444. render: (text, record) => {
  445. return <span>{text + "-" + record.tid}</span>;
  446. },
  447. },
  448. {
  449. title: "项目分类",
  450. dataIndex: "projectType",
  451. key: "projectType",
  452. render: (text) => {
  453. let arr = this.state.dataSourceX || [];
  454. let str = "";
  455. for (let i = 0; i < arr.length; i++) {
  456. if (this.state.dataSourceX[i].sort == text) {
  457. str = this.state.dataSourceX[i].cname;
  458. return <span>{str}</span>;
  459. }
  460. }
  461. },
  462. },
  463. {
  464. title: "催款科目",
  465. dataIndex: "dunTypeName",
  466. key: "dunTypeName",
  467. render: (text, record) => {
  468. if (record.customizeName) {
  469. return text + record.customizeName;
  470. }
  471. return <span>{text}</span>;
  472. },
  473. },
  474. {
  475. title: "时间(天)",
  476. dataIndex: "waitDay",
  477. key: "waitDay",
  478. render: (text, record) => {
  479. if (record.dunTypeName) {
  480. if (record.customizeTimes) {
  481. return record.customizeTimes;
  482. }
  483. return <span>{text}</span>;
  484. }
  485. },
  486. },
  487. {
  488. title: "金额(万元)",
  489. dataIndex: "money",
  490. key: "money",
  491. render: (text, record) => {
  492. if (record.dunTypeName) {
  493. if (record.appropriationRatio) {
  494. let percent = Number(record.appropriationRatio * 100).toFixed(2);
  495. percent += "%";
  496. return <span>{percent}(拨款比例)</span>;
  497. } else {
  498. return <span>{text}</span>;
  499. }
  500. }
  501. },
  502. },
  503. {
  504. title: "服务年限",
  505. dataIndex: "startDate",
  506. key: "startDate",
  507. render: (text, record) => {
  508. if (record.dunTypeName) {
  509. return <span>{text}</span>;
  510. }
  511. },
  512. },
  513. {
  514. title: "催款状态",
  515. dataIndex: "status",
  516. key: "status",
  517. render: (text) => {
  518. return <span>{text == 1 ? "已启动" : "未启动"}</span>;
  519. },
  520. },
  521. ],
  522. ContactsLists: [
  523. {
  524. title: "催款科目",
  525. dataIndex: "dunSubject",
  526. key: "dunSubject",
  527. render: (text) => {
  528. return getjiedian(text);
  529. },
  530. },
  531. {
  532. title: "金额(万元)",
  533. dataIndex: "money",
  534. key: "money",
  535. },
  536. {
  537. title: "催款状态",
  538. dataIndex: "dunStatus",
  539. key: "dunStatus",
  540. render: (text) => {
  541. return getCuikuan(text);
  542. },
  543. },
  544. ],
  545. waterlistDate: [
  546. {
  547. title: "订单编号",
  548. dataIndex: "orderNo",
  549. key: "orderNo",
  550. },
  551. {
  552. title: "平台流水号",
  553. dataIndex: "billNo",
  554. key: "billNo",
  555. // fixed: "left"
  556. },
  557. {
  558. title: "收款金额(万元)",
  559. dataIndex: "transactionAmount",
  560. key: "transactionAmount",
  561. },
  562. {
  563. title: "收款方",
  564. dataIndex: "payeeName",
  565. key: "payeeName",
  566. },
  567. {
  568. title: "付款方",
  569. dataIndex: "payerName",
  570. key: "payerName",
  571. },
  572. {
  573. title: "流水科目",
  574. dataIndex: "transactionSubject",
  575. key: "transactionSubject",
  576. render: (text) => {
  577. return getTransactionProject(text);
  578. },
  579. },
  580. {
  581. title: "收款类型",
  582. dataIndex: "type",
  583. key: "type",
  584. },
  585. {
  586. title: "财务流水时间",
  587. dataIndex: "financialPayTimes",
  588. key: "financialPayTimes",
  589. },
  590. {
  591. title: "财务流水号",
  592. dataIndex: "financialPayNo",
  593. key: "financialPayNo",
  594. },
  595. {
  596. title: "订单负责人",
  597. dataIndex: "saleName",
  598. key: "saleName",
  599. },
  600. {
  601. title: "创建时间",
  602. dataIndex: "createTimes",
  603. key: "createTimes",
  604. },
  605. ],
  606. timeColumns: [
  607. {
  608. title: "合同编号",
  609. dataIndex: "contractNo",
  610. key: "contractNo",
  611. },
  612. {
  613. title: "订单编号",
  614. dataIndex: "orderNo",
  615. key: "orderNo",
  616. },
  617. {
  618. title: "客户名称",
  619. dataIndex: "userName",
  620. key: "userName",
  621. render: text => {
  622. return (
  623. <Tooltip title={text}>
  624. <div style={{
  625. maxWidth: '150px',
  626. overflow: 'hidden',
  627. textOverflow: "ellipsis",
  628. whiteSpace: 'nowrap',
  629. }}>{text}</div>
  630. </Tooltip>
  631. )
  632. }
  633. },
  634. {
  635. title: "订单部门",
  636. dataIndex: "depName",
  637. key: "depName",
  638. },
  639. {
  640. title: "订单负责人",
  641. dataIndex: "salesmanName",
  642. key: "salesmanName",
  643. },
  644. {
  645. title: "项目类别",
  646. dataIndex: "cname",
  647. key: "cname",
  648. },
  649. {
  650. title: "项目编号",
  651. dataIndex: "id",
  652. key: "id",
  653. },
  654. {
  655. title: "项目名称",
  656. dataIndex: "taskName",
  657. key: "taskName",
  658. },
  659. {
  660. title: "项目负责人",
  661. dataIndex: "receiverName",
  662. key: "receiverName",
  663. },
  664. {
  665. title: "项目价格(万元)",
  666. dataIndex: "commodityPrice",
  667. key: "commodityPrice",
  668. },
  669. {
  670. title: "数量(个)",
  671. dataIndex: "commodityQuantity",
  672. key: "commodityQuantity",
  673. },
  674. {
  675. title: "任务状态",
  676. dataIndex: "taskStatus",
  677. key: "taskStatus",
  678. render: (text) => {
  679. return getTaskStatus(text);
  680. },
  681. },
  682. {
  683. title: "项目状态",
  684. dataIndex: "projectStatus",
  685. key: "projectStatus",
  686. render: (text) => {
  687. return getProjectName(text);
  688. },
  689. },
  690. {
  691. title: "工时",
  692. dataIndex: "hours",
  693. key: "hours",
  694. },
  695. {
  696. title: "是否外包",
  697. dataIndex: "outsource",
  698. key: "outsource",
  699. render: (text) => {
  700. if (text == 0) {
  701. return "否";
  702. } else if (text == 1) {
  703. return "是";
  704. }
  705. },
  706. },
  707. {
  708. title: "签单日期",
  709. dataIndex: "signTime",
  710. key: "signTime",
  711. },
  712. {
  713. title: "派单日期",
  714. dataIndex: "creteTime",
  715. key: "creteTime",
  716. },
  717. {
  718. title: "分配时间",
  719. dataIndex: "taskDistributionTime",
  720. key: "taskDistributionTime",
  721. },
  722. {
  723. title: "完成时间",
  724. dataIndex: "taskEndTime",
  725. key: "taskEndTime",
  726. },
  727. ],
  728. resVisible: false,
  729. cuiColumns: [
  730. {
  731. title: "序号",
  732. dataIndex: "key",
  733. key: "key",
  734. },
  735. {
  736. title: "合同编号",
  737. dataIndex: "contractNo",
  738. key: "contractNo",
  739. },
  740. {
  741. title: "订单编号",
  742. dataIndex: "orderNo",
  743. key: "orderNo",
  744. },
  745. {
  746. title: "客户名称",
  747. dataIndex: "userName",
  748. key: "userName",
  749. render: text => {
  750. return (
  751. <Tooltip title={text}>
  752. <div style={{
  753. maxWidth: '150px',
  754. overflow: 'hidden',
  755. textOverflow: "ellipsis",
  756. whiteSpace: 'nowrap',
  757. }}>{text}</div>
  758. </Tooltip>
  759. )
  760. }
  761. },
  762. {
  763. title: "订单负责人",
  764. dataIndex: "salesmanName",
  765. key: "salesmanName",
  766. },
  767. {
  768. title: "订单部门",
  769. dataIndex: "depName",
  770. key: "depName",
  771. },
  772. {
  773. title: "订单状态",
  774. dataIndex: "orderStatus",
  775. key: "orderStatus",
  776. render: (text) => {
  777. return getNewOrderStatus(text);
  778. },
  779. },
  780. {
  781. title: "项目状态",
  782. dataIndex: "projectStatus",
  783. key: "projectStatus",
  784. render: (text) => {
  785. return getProjectName(text);
  786. },
  787. },
  788. {
  789. title: "签单金额",
  790. dataIndex: "totalAmount",
  791. key: "totalAmount",
  792. },
  793. {
  794. title: "结算状态",
  795. dataIndex: "liquidationStatus",
  796. key: "liquidationStatus",
  797. render: (text) => {
  798. return getLiquidationStatus(text);
  799. },
  800. },
  801. {
  802. title: "已收款",
  803. dataIndex: "settlementAmount",
  804. key: "settlementAmount",
  805. },
  806. {
  807. title: "应收款",
  808. dataIndex: "accountsReceivable",
  809. key: "accountsReceivable",
  810. },
  811. {
  812. title: "催收科目",
  813. dataIndex: "dunSubject",
  814. key: "dunSubject",
  815. // render: text => {
  816. // return getjiedian(text);
  817. // }
  818. },
  819. {
  820. title: "催款状态",
  821. dataIndex: "dunStatus",
  822. key: "dunStatus",
  823. },
  824. {
  825. title: "催收启动时间",
  826. dataIndex: "startDate",
  827. key: "startDate",
  828. },
  829. ],
  830. proColumns: [
  831. {
  832. title: "序号",
  833. dataIndex: "key",
  834. key: "key",
  835. },
  836. {
  837. title: "合同编号",
  838. dataIndex: "contractNo",
  839. key: "contractNo",
  840. },
  841. {
  842. title: "订单编号",
  843. dataIndex: "orderNo",
  844. key: "orderNo",
  845. },
  846. // {
  847. // title: "项目编号",
  848. // dataIndex: "id",
  849. // key: "id"
  850. // },
  851. {
  852. title: "客户名称",
  853. dataIndex: "userName",
  854. key: "userName",
  855. render: text => {
  856. return (
  857. <Tooltip title={text}>
  858. <div style={{
  859. maxWidth: '150px',
  860. overflow: 'hidden',
  861. textOverflow: "ellipsis",
  862. whiteSpace: 'nowrap',
  863. }}>{text}</div>
  864. </Tooltip>
  865. )
  866. }
  867. },
  868. {
  869. title: "订单负责人",
  870. dataIndex: "salesmanName",
  871. key: "salesmanName",
  872. },
  873. {
  874. title: "是否主项目",
  875. dataIndex: "main",
  876. key: "main",
  877. render: (text) => {
  878. return text == 0 ? "否" : "是";
  879. },
  880. },
  881. {
  882. title: "项目类别",
  883. dataIndex: "cname",
  884. key: "cname",
  885. },
  886. {
  887. title: "项目名称",
  888. dataIndex: "commodityName",
  889. key: "commodityName",
  890. },
  891. {
  892. title: "项目数量",
  893. dataIndex: "commodityQuantity",
  894. key: "commodityQuantity",
  895. render: (text, record) => {
  896. if (record.splitStatus == 1) {
  897. return (
  898. <span>
  899. {text}{" "}
  900. <Tag
  901. color="#108ee9"
  902. onClick={(e) => {
  903. e.stopPropagation();
  904. this.showRes(record);
  905. }}
  906. >
  907. 已拆
  908. </Tag>
  909. </span>
  910. );
  911. } else {
  912. return text;
  913. }
  914. },
  915. },
  916. {
  917. title: "服务市价",
  918. dataIndex: "commodityPrice",
  919. key: "commodityPrice",
  920. },
  921. {
  922. title: "证书编号",
  923. dataIndex: "certificateNumber",
  924. key: "certificateNumber",
  925. },
  926. {
  927. title: "项目状态",
  928. dataIndex: "projectStatus",
  929. key: "projectStatus",
  930. render: (text) => {
  931. return getProjectName(text);
  932. },
  933. },
  934. {
  935. title: "项目说明",
  936. dataIndex: "taskComment",
  937. key: "taskComment",
  938. },
  939. // {
  940. // title: "外包(内部)公司",
  941. // dataIndex: "outsourceName",
  942. // key: "outsourceName",
  943. // },
  944. // {
  945. // title: "外包(内部)价格",
  946. // dataIndex: "outsourcePrice",
  947. // key: "outsourcePrice",
  948. // },
  949. ],
  950. };
  951. },
  952. //页面加载函数
  953. componentWillMount() {
  954. this.loadData();
  955. },
  956. //整行点击
  957. tableRowClick(record) {
  958. this.setState({
  959. visible: true,
  960. orderNos: record.orderNo
  961. });
  962. this.xiangqing(record.orderNo);
  963. this.xiangmu(record.orderNo);
  964. this.jiedian(record.orderNo);
  965. this.jiedianNew(record.orderNo);
  966. },
  967. //点击打卡项目详情
  968. tableRowClickX(record) {
  969. // console.log(record);
  970. this.setState({
  971. jid: record.id, //项目ID
  972. kid: record.commodityId, //商品ID
  973. commodityName: record.commodityName, //金额
  974. commodityPrice: record.commodityPrice, //金额
  975. commodityQuantity: record.commodityQuantity, //数量
  976. taskComment: record.taskComment, //备注
  977. main: record.main.toString(), //是否为主要
  978. addnextVisible: true,
  979. dataInfor: record,
  980. addState: 0,
  981. });
  982. },
  983. //项目详情关闭
  984. nextCancel() {
  985. this.setState({
  986. addnextVisible: false,
  987. });
  988. },
  989. //订单详情
  990. xiangqing(orderNos) {
  991. $.ajax({
  992. method: "get",
  993. dataType: "json",
  994. crossDomain: false,
  995. url: globalConfig.context + "/api/admin/newOrder/getOrderNewDetail",
  996. data: {
  997. orderNo: orderNos,
  998. },
  999. success: function (data) {
  1000. if (data.error.length || data.data.list == "") {
  1001. if (data.error && data.error.length) {
  1002. message.warning(data.error[0].message);
  1003. }
  1004. } else {
  1005. let thisdata = data.data;
  1006. this.setState({
  1007. orderUid: thisdata.uid,
  1008. orderNo: thisdata.orderNo, //订单编号
  1009. contractNo: thisdata.contractNo, //合同编号
  1010. userName: thisdata.userName, //客户名称
  1011. signDate: thisdata.signDate, //签单时间
  1012. processStatus: thisdata.processStatus, //流程状态
  1013. liquidationStatus: thisdata.liquidationStatus, //结算状态
  1014. contacts: thisdata.contacts, //企业联系人
  1015. contactMobile: thisdata.contactMobile, //联系人电话
  1016. legalPerson: thisdata.legalPerson, //法人
  1017. legalPersonTel: thisdata.legalPersonTel, //法人电话
  1018. firstAmount: thisdata.firstAmount, //签单金额
  1019. totalAmount: thisdata.totalAmount, //首付金额
  1020. approval: thisdata.approval, //特批状态
  1021. settlementAmount: thisdata.settlementAmount, //已收款项
  1022. orderRemarks: thisdata.orderRemarks, //订单留言
  1023. orgCodeUrl: thisdata.contractPictureUrl
  1024. ? splitUrl(
  1025. thisdata.contractPictureUrl,
  1026. ",",
  1027. globalConfig.avatarHost + "/upload"
  1028. )
  1029. : [], //图片地址
  1030. replenishUrl: thisdata.agreementUrl
  1031. ? splitUrl(
  1032. thisdata.agreementUrl,
  1033. ",",
  1034. globalConfig.avatarHost + "/upload"
  1035. )
  1036. : [],
  1037. contentUrl: thisdata.serviceContent
  1038. ? splitUrl(
  1039. thisdata.serviceContent,
  1040. ",",
  1041. globalConfig.avatarHost + "/upload"
  1042. )
  1043. : [], //图片地址
  1044. salesmanName: thisdata.salesmanName, //营销员名称
  1045. salesmanMobile: thisdata.salesmanMobile, //营销员电话
  1046. financeName: thisdata.financeName, //财务名称
  1047. financeMobile: thisdata.financeMobile, //财务电话
  1048. outsource: thisdata.outsource == 0 ? "否" : "是",
  1049. deleteSign: thisdata.deleteSign,
  1050. });
  1051. }
  1052. }.bind(this),
  1053. }).always(
  1054. function () {
  1055. this.setState({
  1056. loading: false,
  1057. });
  1058. }.bind(this)
  1059. );
  1060. },
  1061. //项目列表
  1062. xiangmu(orderNos) {
  1063. $.ajax({
  1064. method: "get",
  1065. dataType: "json",
  1066. crossDomain: false,
  1067. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  1068. data: {
  1069. orderNo: orderNos,
  1070. },
  1071. success: function (data) {
  1072. let theArr = [];
  1073. if (data.error.length || data.data.list == "") {
  1074. if (data.error && data.error.length) {
  1075. message.warning(data.error[0].message);
  1076. }
  1077. } else {
  1078. for (let i = 0; i < data.data.length; i++) {
  1079. let thisdata = data.data[i];
  1080. thisdata.key = i;
  1081. theArr.push(thisdata);
  1082. }
  1083. }
  1084. this.setState({
  1085. dataSourceX: theArr,
  1086. });
  1087. }.bind(this),
  1088. }).always(
  1089. function () {
  1090. this.setState({
  1091. loading: false,
  1092. });
  1093. }.bind(this)
  1094. );
  1095. },
  1096. rizhi() {
  1097. // console.log(this.state.orderNo);
  1098. this.setState({
  1099. loading: true,
  1100. });
  1101. $.ajax({
  1102. method: "get",
  1103. dataType: "json",
  1104. crossDomain: false,
  1105. url: "/api/admin/newOrder/selectOrderLog",
  1106. data: {
  1107. orderNo: this.state.orderNo,
  1108. },
  1109. success: function (data) {
  1110. let theArr = [];
  1111. let thisData = data.data;
  1112. if (thisData && !thisData.length) {
  1113. if (data.error && data.error.length) {
  1114. message.warning(data.error[0].message);
  1115. }
  1116. thisData = {};
  1117. } else {
  1118. for (let i = 0; i < data.data.length; i++) {
  1119. let thisdata = data.data[i];
  1120. theArr.push({
  1121. processName: thisdata.processName,
  1122. adminName: thisdata.adminName,
  1123. createDate: thisdata.createDate,
  1124. remarks: thisdata.remarks,
  1125. });
  1126. }
  1127. }
  1128. this.setState({
  1129. dataSourcerizhi: theArr,
  1130. });
  1131. }.bind(this),
  1132. }).always(
  1133. function () {
  1134. this.setState({
  1135. loading: false,
  1136. });
  1137. }.bind(this)
  1138. );
  1139. },
  1140. //查看订单日志
  1141. getOrderLog() {
  1142. this.setState({
  1143. rizhivisible: true,
  1144. });
  1145. this.rizhi();
  1146. },
  1147. closeOrderLog() {
  1148. this.setState({
  1149. rizhivisible: false,
  1150. });
  1151. },
  1152. //节点列表
  1153. jiedian(orderNos) {
  1154. $.ajax({
  1155. method: "get",
  1156. dataType: "json",
  1157. crossDomain: false,
  1158. url: globalConfig.context + "/api/admin/newOrder/selectOrderDun",
  1159. data: {
  1160. orderNo: orderNos,
  1161. },
  1162. success: function (data) {
  1163. let theArr = [];
  1164. let thisData = [];
  1165. if (data.error.length || data.data.list == "") {
  1166. if (data.error && data.error.length) {
  1167. message.warning(data.error[0].message);
  1168. }
  1169. } else {
  1170. for (let i = 0; i < data.data.length; i++) {
  1171. thisData = data.data[i];
  1172. theArr.push({
  1173. key: i,
  1174. dunSubject: thisData.dunSubject
  1175. ? thisData.dunSubject.toString()
  1176. : "", //催款科目
  1177. id: thisData.id, //节点Id
  1178. money: thisData.money, //催款金额
  1179. dunStatus: thisData.dunStatus, //催款状态
  1180. });
  1181. }
  1182. this.setState({
  1183. contactList: theArr,
  1184. });
  1185. }
  1186. }.bind(this),
  1187. }).always(
  1188. function () {
  1189. this.setState({
  1190. loading: false,
  1191. });
  1192. }.bind(this)
  1193. );
  1194. },
  1195. //查看催款节点
  1196. jiedianNew(orderNos) {
  1197. $.ajax({
  1198. method: "get",
  1199. dataType: "json",
  1200. crossDomain: false,
  1201. url:
  1202. globalConfig.context + "/api/admin/newOrderDun/selectListNewOrderDun",
  1203. data: {
  1204. orderNo: orderNos,
  1205. },
  1206. success: function (data) {
  1207. if (data.error && data.error.length) {
  1208. message.warning(data.error[0].message);
  1209. } else {
  1210. let theArr = [];
  1211. let thisData = [];
  1212. let arr = data.data || [];
  1213. let totalCui = 0;
  1214. for (let i = 0; i < arr.length; i++) {
  1215. thisData = arr[i];
  1216. totalCui += +thisData.money;
  1217. theArr.push({
  1218. key: i,
  1219. dunSubject: thisData.dunSubject
  1220. ? thisData.dunSubject.toString()
  1221. : "", //催款科目
  1222. id: thisData.id, //节点Id
  1223. money: thisData.money, //催款金额
  1224. // orderNo: record ? record.orderNo : this.props.datauser.orderNo,
  1225. commodityName: thisData.commodityName,
  1226. projectType: thisData.projectType,
  1227. dunTypeName: thisData.dunTypeName,
  1228. status: thisData.status,
  1229. waitDay: thisData.waitDay,
  1230. effectiveCount: thisData.effectiveCount,
  1231. startDate: thisData.startDate,
  1232. dunType: thisData.dunType,
  1233. appropriationRatio: thisData.appropriationRatio,
  1234. customizeName: thisData.customizeName,
  1235. customizeTimes: thisData.customizeTimes,
  1236. tid: thisData.tid,
  1237. });
  1238. }
  1239. if (!totalCui) {
  1240. totalCui = 0;
  1241. }
  1242. totalCui = (Math.round(totalCui * 1000000) / 1000000).toFixed(6);
  1243. this.setState({
  1244. contactListNew: theArr,
  1245. totalCui,
  1246. });
  1247. }
  1248. }.bind(this),
  1249. }).always(
  1250. function () {
  1251. this.setState({
  1252. loading: false,
  1253. });
  1254. }.bind(this)
  1255. );
  1256. },
  1257. //审核通过
  1258. examOk() {
  1259. if (!this.state.reason) {
  1260. message.warning("请填写备注");
  1261. return;
  1262. }
  1263. this.setState({
  1264. loading: true,
  1265. });
  1266. $.ajax({
  1267. method: "post",
  1268. dataType: "json",
  1269. crossDomain: false,
  1270. url: globalConfig.context + "/api/admin/newOrder/approvalOrder",
  1271. data: {
  1272. orderNo: this.state.orderNo,
  1273. confirm: 2,
  1274. reason: this.state.reason,
  1275. },
  1276. success: function (data) {
  1277. if (data.error.length || data.data.list == "") {
  1278. if (data.error && data.error.length) {
  1279. message.warning(data.error[0].message);
  1280. }
  1281. } else {
  1282. message.success("该特批订单已通过审核~");
  1283. this.setState({
  1284. visible: false,
  1285. });
  1286. this.passCancel();
  1287. this.reset();
  1288. }
  1289. }.bind(this),
  1290. }).always(
  1291. function () {
  1292. this.setState({
  1293. loading: false,
  1294. });
  1295. }.bind(this)
  1296. );
  1297. },
  1298. //审核不通过
  1299. examOks() {
  1300. if (!this.state.reason) {
  1301. message.warning("请填写备注");
  1302. return;
  1303. }
  1304. this.setState({
  1305. loading: true,
  1306. });
  1307. $.ajax({
  1308. method: "post",
  1309. dataType: "json",
  1310. crossDomain: false,
  1311. url: globalConfig.context + "/api/admin/newOrder/approvalOrder",
  1312. data: {
  1313. orderNo: this.state.orderNo,
  1314. confirm: 3,
  1315. reason: this.state.reason,
  1316. },
  1317. success: function (data) {
  1318. if (data.error.length || data.data.list == "") {
  1319. if (data.error && data.error.length) {
  1320. message.warning(data.error[0].message);
  1321. }
  1322. } else {
  1323. message.success("该特批订单已被驳回~");
  1324. this.setState({
  1325. visible: false,
  1326. noVisible: false,
  1327. reason: "",
  1328. });
  1329. this.loadData();
  1330. this.resets();
  1331. }
  1332. }.bind(this),
  1333. }).always(
  1334. function () {
  1335. this.setState({
  1336. loading: false,
  1337. });
  1338. }.bind(this)
  1339. );
  1340. },
  1341. //点击拒绝
  1342. examNo() {
  1343. this.setState({
  1344. noVisible: true,
  1345. });
  1346. },
  1347. //关闭输入理由框
  1348. noCancel() {
  1349. this.setState({
  1350. noVisible: false,
  1351. reason: "",
  1352. });
  1353. },
  1354. //搜索
  1355. search() {
  1356. this.setState({
  1357. //signBillVisible:false
  1358. });
  1359. this.loadData();
  1360. },
  1361. //重置
  1362. reset() {
  1363. this.setState({
  1364. signBillVisible: false,
  1365. });
  1366. this.state.orderNoSearch = undefined;
  1367. this.state.contractNoSearch = undefined;
  1368. this.state.nameSearch = undefined;
  1369. this.state.liquidationStatusSearch = [];
  1370. this.state.departmenttList = undefined;
  1371. this.state.releaseDate[0] = undefined;
  1372. this.state.releaseDate[1] = undefined;
  1373. this.state.approvalSearch = "1";
  1374. this.Cascaders.empty();
  1375. this.loadData();
  1376. },
  1377. resets() {
  1378. this.state.orderNo = "";
  1379. this.state.customerName = "";
  1380. this.state.departmenttSearch = undefined;
  1381. this.state.releaseDate[0] = undefined;
  1382. this.state.releaseDate[1] = undefined;
  1383. },
  1384. getOrgCodeUrl(e) {
  1385. this.setState({ orgCodeUrl: e });
  1386. },
  1387. getReplenishUrl(e) {
  1388. this.setState({ replenishUrl: e });
  1389. },
  1390. downImg() {
  1391. let num = 0;
  1392. for (let i = 0; i < this.state.orgCodeUrl.length; i++) {
  1393. if (this.state.orgCodeUrl[i].url == this.state.previewImage) {
  1394. num = i;
  1395. }
  1396. }
  1397. if (num == this.state.orgCodeUrl.length - 1) {
  1398. return message.warning("已经是最后一张了哦");
  1399. }
  1400. this.state.previewImage = this.state.orgCodeUrl[num + 1].url;
  1401. this.setState({
  1402. previewImage: this.state.previewImage,
  1403. rotateDeg: 0,
  1404. });
  1405. },
  1406. upImg() {
  1407. let num = 0;
  1408. for (let i = 0; i < this.state.orgCodeUrl.length; i++) {
  1409. if (this.state.orgCodeUrl[i].url == this.state.previewImage) {
  1410. num = i;
  1411. }
  1412. }
  1413. if (num == 0) {
  1414. return message.warning("已经是第一张了哦");
  1415. }
  1416. this.state.previewImage = this.state.orgCodeUrl[num - 1].url;
  1417. this.setState({
  1418. previewImage: this.state.previewImage,
  1419. rotateDeg: 0,
  1420. });
  1421. },
  1422. rotate() {
  1423. let rotateDeg = this.state.rotateDeg + 90;
  1424. this.setState({
  1425. rotateDeg,
  1426. });
  1427. },
  1428. downImgs() {
  1429. let num = 0;
  1430. for (let i = 0; i < this.state.replenishUrl.length; i++) {
  1431. if (this.state.replenishUrl[i].url == this.state.previewImage) {
  1432. num = i;
  1433. }
  1434. }
  1435. if (num == this.state.replenishUrl.length - 1) {
  1436. return message.warning("已经是最后一张了哦");
  1437. }
  1438. this.state.previewImage = this.state.replenishUrl[num + 1].url;
  1439. this.setState({
  1440. previewImage: this.state.previewImage,
  1441. rotateDeg: 0,
  1442. });
  1443. },
  1444. upImgs() {
  1445. let num = 0;
  1446. for (let i = 0; i < this.state.replenishUrl.length; i++) {
  1447. if (this.state.replenishUrl[i].url == this.state.previewImage) {
  1448. num = i;
  1449. }
  1450. }
  1451. if (num == 0) {
  1452. return message.warning("已经是第一张了哦");
  1453. }
  1454. this.state.previewImage = this.state.replenishUrl[num - 1].url;
  1455. this.setState({
  1456. previewImage: this.state.previewImage,
  1457. rotateDeg: 0,
  1458. });
  1459. },
  1460. rotates() {
  1461. let rotateDeg = this.state.rotateDeg + 90;
  1462. this.setState({
  1463. rotateDeg,
  1464. });
  1465. },
  1466. changeList(arr) {
  1467. const newArr = [];
  1468. this.state.columns.forEach((item) => {
  1469. arr.forEach((val) => {
  1470. if (val === item.title) {
  1471. newArr.push(item);
  1472. }
  1473. });
  1474. });
  1475. this.setState({
  1476. changeList: newArr,
  1477. });
  1478. },
  1479. //关闭详情
  1480. visitCancel() {
  1481. this.setState({
  1482. visible: false,
  1483. });
  1484. this.resets();
  1485. },
  1486. visitOk() {
  1487. this.setState({
  1488. visible: false,
  1489. });
  1490. this.resets();
  1491. },
  1492. waterData() {
  1493. this.state.data = [];
  1494. this.setState({
  1495. loading: true,
  1496. });
  1497. $.ajax({
  1498. method: "get",
  1499. dataType: "json",
  1500. crossDomain: false,
  1501. url: globalConfig.context + "/api/admin/financial/myBillList",
  1502. data: {
  1503. orderNo: this.state.selectedRowKeys[0],
  1504. pageSize: 9999999,
  1505. whoType: 1,
  1506. },
  1507. success: function (data) {
  1508. let theArr = [];
  1509. let waterSum = 0;
  1510. if (!data.data || !data.data.list) {
  1511. if (data.error && data.error.length) {
  1512. message.warning(data.error[0].message);
  1513. }
  1514. } else {
  1515. for (let i = 0; i < data.data.list.length; i++) {
  1516. let thisdata = data.data.list[i];
  1517. waterSum += parseFloat(thisdata.transactionAmount);
  1518. theArr.push({
  1519. key: i,
  1520. orderNo: thisdata.orderNo,
  1521. billNo: thisdata.billNo,
  1522. transactionAmount: thisdata.transactionAmount,
  1523. payeeName: thisdata.payeeName,
  1524. payerName: thisdata.payerName,
  1525. transactionSubject: thisdata.transactionSubject,
  1526. transactionChannel: thisdata.transactionChannel,
  1527. financialPayTimes: thisdata.financialPayTimes,
  1528. financialPayNo: thisdata.financialPayNo,
  1529. createrName: thisdata.createrName,
  1530. saleName: thisdata.saleName,
  1531. createTimes: thisdata.createTimes,
  1532. type: thisdata.type == 0 ? "手工" : "批量",
  1533. });
  1534. }
  1535. }
  1536. this.setState({
  1537. waterData: theArr,
  1538. waterSum: (Math.round(waterSum * 1000000) / 1000000).toFixed(6),
  1539. });
  1540. }.bind(this),
  1541. }).always(
  1542. function () {
  1543. this.setState({
  1544. loading: false,
  1545. });
  1546. }.bind(this)
  1547. );
  1548. },
  1549. waterCanl() {
  1550. this.setState({
  1551. cvisible: false,
  1552. });
  1553. },
  1554. // 拆分详细
  1555. showRes(record) {
  1556. this.setState({
  1557. resVisible: true,
  1558. resRecord: record,
  1559. });
  1560. },
  1561. resCancel() {
  1562. this.setState({
  1563. resVisible: false,
  1564. });
  1565. },
  1566. exportKaip() {
  1567. window.location.href =
  1568. globalConfig.context +
  1569. "/api/admin/receivables/exportInvoice?" +
  1570. `orderNo=${this.state.selectedRowKeys}`;
  1571. },
  1572. exportAll() {
  1573. message.config({
  1574. duration: 20,
  1575. });
  1576. let loading = message.loading("下载中...");
  1577. this.setState({
  1578. exportPendingLoading: true,
  1579. });
  1580. let data = {
  1581. orderNo: this.state.orderNoSearch,
  1582. buyerName: this.state.nameSearch,
  1583. deps: this.state.departmenttList,
  1584. contractNo: this.state.contractNoSearch,
  1585. processStatus: this.state.processStatusSearch,
  1586. };
  1587. $.ajax({
  1588. method: "get",
  1589. dataType: "json",
  1590. crossDomain: false,
  1591. url: "/api/admin/receivables/exportReceivables",
  1592. data,
  1593. success: function (data) {
  1594. if (data.error.length === 0) {
  1595. this.download(data.data);
  1596. } else {
  1597. message.warning(data.error[0].message);
  1598. }
  1599. }.bind(this),
  1600. }).always(
  1601. function () {
  1602. loading();
  1603. this.setState({
  1604. exportPendingLoading: false,
  1605. });
  1606. }.bind(this)
  1607. )
  1608. // window.location.href =
  1609. // globalConfig.context +
  1610. // "/api/admin/receivables/exportReceivables?" +
  1611. // `orderNo=${
  1612. // this.state.orderNoSearch ? this.state.orderNoSearch : ""
  1613. // }&buyerName=${
  1614. // this.state.nameSearch ? this.state.nameSearch : ""
  1615. // }&departmentId=${
  1616. // this.state.departmenttList ? this.state.departmenttList : ""
  1617. // }&contractNo=${
  1618. // this.state.contractNoSearch ? this.state.contractNoSearch : ""
  1619. // }&processStatus=${this.state.processStatusSearch}`;
  1620. },
  1621. // 下载
  1622. download(fileName) {
  1623. window.location.href =
  1624. globalConfig.context + "/open/download?fileName=" + fileName;
  1625. },
  1626. exportWater() {
  1627. window.location.href =
  1628. globalConfig.context +
  1629. "/api/admin/receivables/exportMyBill?" +
  1630. `orderNo=${this.state.selectedRowKeys}&whoType=1`;
  1631. },
  1632. timeData() {
  1633. this.setState({
  1634. loading: true,
  1635. });
  1636. $.ajax({
  1637. method: "get",
  1638. dataType: "json",
  1639. crossDomain: false,
  1640. url: globalConfig.context + "/api/admin/orderProject/taskHoursList",
  1641. data: {
  1642. orderNo: this.state.selectedRowKeys[0],
  1643. pageSize: 9999999,
  1644. },
  1645. success: function (data) {
  1646. let theArr = [];
  1647. if (!data.data || !data.data.list) {
  1648. if (data.error && data.error.length) {
  1649. message.warning(data.error[0].message);
  1650. }
  1651. } else {
  1652. for (let i = 0; i < data.data.list.length; i++) {
  1653. let thisdata = data.data.list[i];
  1654. theArr.push({
  1655. key: i + 1,
  1656. id: thisdata.id, //ID
  1657. orderNo: thisdata.orderNo, //订单编号
  1658. taskName: thisdata.taskName, //任务名称
  1659. userName: thisdata.userName, //客户名称
  1660. cname: thisdata.cname, //项目品类
  1661. taskStatus: thisdata.taskStatus, //任务状态
  1662. receiverName: thisdata.receiverName, //负责人
  1663. hours: thisdata.hours, //任务工时
  1664. depName: thisdata.depName, //派单公司
  1665. contractNo: thisdata.contractNo,
  1666. signTime: thisdata.signTime,
  1667. creteTime: thisdata.creteTime,
  1668. projectStatus: thisdata.projectStatus,
  1669. commodityPrice: thisdata.commodityPrice, //价格
  1670. commodityQuantity: thisdata.commodityQuantity, //数量
  1671. salesmanName: thisdata.salesmanName, //订单负责人
  1672. taskDistributionTime: thisdata.taskDistributionTime,
  1673. taskEndTime: thisdata.taskEndTime,
  1674. outsource: thisdata.outsource,
  1675. });
  1676. }
  1677. }
  1678. this.setState({
  1679. timeDataList: theArr,
  1680. });
  1681. }.bind(this),
  1682. }).always(
  1683. function () {
  1684. this.setState({
  1685. loading: false,
  1686. });
  1687. }.bind(this)
  1688. );
  1689. },
  1690. exportTime() {
  1691. const data = {
  1692. orderNo: this.state.selectedRowKeys[0],
  1693. pageSize: 9999999,
  1694. };
  1695. window.location.href =
  1696. globalConfig.context +
  1697. "/api/admin/orderProject/exportMyTaskList?" +
  1698. $.param(data);
  1699. },
  1700. exportPro() {
  1701. const data = {
  1702. orderNo: this.state.selectedRowKeys[0],
  1703. };
  1704. window.location.href =
  1705. globalConfig.context +
  1706. "/api/admin/newOrder/exportOrderTaskData?" +
  1707. $.param(data);
  1708. },
  1709. exportCui() {
  1710. var data = {
  1711. orderNo: this.state.selectedRowKeys[0]
  1712. ? this.state.selectedRowKeys[0]
  1713. : undefined, //订单编号
  1714. // specially: 1,
  1715. pageSize: 9999999,
  1716. };
  1717. window.location.href =
  1718. globalConfig.context +
  1719. "/api/admin/newOrder/exportOrderDunData?" +
  1720. $.param(data);
  1721. },
  1722. cuiData() {
  1723. this.setState({
  1724. loading: true,
  1725. });
  1726. $.ajax({
  1727. method: "get",
  1728. dataType: "json",
  1729. crossDomain: false,
  1730. url: globalConfig.context + "/api/admin/newOrder/dunOrderNewList",
  1731. data: {
  1732. orderNo: this.state.selectedRowKeys[0],
  1733. pageSize: 9999999,
  1734. },
  1735. success: function (data) {
  1736. let theArr = [];
  1737. if (!data.data || !data.data.list) {
  1738. if (data.error && data.error.length) {
  1739. message.warning(data.error[0].message);
  1740. }
  1741. } else {
  1742. for (let i = 0; i < data.data.list.length; i++) {
  1743. let thisdata = data.data.list[i];
  1744. theArr.push({
  1745. key: i + 1,
  1746. orderNo: thisdata.orderNo,
  1747. contractNo: thisdata.contractNo,
  1748. userName: thisdata.userName,
  1749. buyerName: thisdata.buyerName,
  1750. departmentName: thisdata.departmentName,
  1751. salesmanName: thisdata.salesmanName,
  1752. depName: thisdata.depName,
  1753. orderStatus: thisdata.orderStatus,
  1754. projectStatus: thisdata.projectStatus,
  1755. totalAmount: thisdata.totalAmount,
  1756. liquidationStatus: thisdata.liquidationStatus,
  1757. settlementAmount: thisdata.settlementAmount,
  1758. accountsReceivable: thisdata.accountsReceivable,
  1759. dunSubject: thisdata.dunSubject,
  1760. startDate: thisdata.startDate,
  1761. taskStatus: thisdata.taskStatus,
  1762. cname: thisdata.cname,
  1763. id: thisdata.id,
  1764. taskName: thisdata.taskName,
  1765. hours: thisdata.hours,
  1766. taskDistributionTime: thisdata.taskDistributionTime,
  1767. taskEndTime: thisdata.taskEndTime,
  1768. dunStatus: thisdata.dunStatus == 0 ? "未触发" : "已触发",
  1769. });
  1770. }
  1771. }
  1772. this.setState({
  1773. cuiDataList: theArr,
  1774. });
  1775. }.bind(this),
  1776. }).always(
  1777. function () {
  1778. this.setState({
  1779. loading: false,
  1780. });
  1781. }.bind(this)
  1782. );
  1783. },
  1784. proData() {
  1785. this.setState({
  1786. loading: true,
  1787. });
  1788. $.ajax({
  1789. method: "get",
  1790. dataType: "json",
  1791. crossDomain: false,
  1792. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  1793. data: {
  1794. orderNo: this.state.selectedRowKeys[0],
  1795. pageSize: 9999999,
  1796. },
  1797. success: function (data) {
  1798. let theArr = [];
  1799. let totalWaibao = 0;
  1800. if (!data.data) {
  1801. if (data.error && data.error.length) {
  1802. message.warning(data.error[0].message);
  1803. }
  1804. } else {
  1805. for (let i = 0; i < data.data.length; i++) {
  1806. let thisdata = data.data[i];
  1807. totalWaibao += thisdata.outsourcePrice;
  1808. thisdata.key = i + 1;
  1809. theArr.push(thisdata);
  1810. }
  1811. }
  1812. totalWaibao = (Math.round(totalWaibao * 1000000) / 1000000).toFixed(6);
  1813. this.setState({
  1814. proDataList: theArr,
  1815. totalWaibao,
  1816. });
  1817. }.bind(this),
  1818. }).always(
  1819. function () {
  1820. this.setState({
  1821. loading: false,
  1822. });
  1823. }.bind(this)
  1824. );
  1825. },
  1826. inRecordCanl() {
  1827. this.setState({
  1828. bvisible: false,
  1829. });
  1830. },
  1831. inRecordData() {
  1832. this.setState({
  1833. loading: true,
  1834. });
  1835. $.ajax({
  1836. method: "get",
  1837. dataType: "json",
  1838. crossDomain: false,
  1839. url:
  1840. globalConfig.context +
  1841. "/api/admin/orderInvoice/salesmanOrderInvoiceList",
  1842. data: {
  1843. orderNo: this.state.selectedRowKeys[0],
  1844. pageSize: 9999999,
  1845. },
  1846. success: function (data) {
  1847. let theArr = [];
  1848. let sum = 0;
  1849. if (!data.data) {
  1850. if (data.error && data.error.length) {
  1851. message.warning(data.error[0].message);
  1852. }
  1853. } else {
  1854. for (let i = 0; i < data.data.list.length; i++) {
  1855. let thisdata = data.data.list[i];
  1856. sum += parseFloat(thisdata.amount);
  1857. theArr.push({
  1858. id: thisdata.id,
  1859. orderno: thisdata.orderno, //订单编号
  1860. amount: thisdata.amount, //签单金额
  1861. createTime: thisdata.createTime, //流程状态
  1862. status: thisdata.status, //结算状态
  1863. rejectReason: thisdata.rejectReason,
  1864. approval: thisdata.approval,//0非特批 1待审核 2审核通过
  1865. });
  1866. }
  1867. }
  1868. this.setState({
  1869. recordData: theArr,
  1870. sum: sum.toFixed(6),
  1871. });
  1872. }.bind(this),
  1873. }).done(
  1874. function () {
  1875. this.setState({
  1876. loading: false,
  1877. });
  1878. }.bind(this)
  1879. );
  1880. },
  1881. // 通过弹出备注框
  1882. pass() {
  1883. this.setState({
  1884. reason: "",
  1885. passVisible: true,
  1886. });
  1887. },
  1888. passCancel() {
  1889. this.setState({
  1890. reason: "",
  1891. passVisible: false,
  1892. });
  1893. },
  1894. printAll() {
  1895. this.setState({
  1896. dvisible: true,
  1897. });
  1898. this.loadData(1, 9999999);
  1899. },
  1900. render() {
  1901. const formItemLayout = {
  1902. labelCol: { span: 8 },
  1903. wrapperCol: { span: 14 },
  1904. };
  1905. const FormItem = Form.Item;
  1906. const { RangePicker } = DatePicker;
  1907. const cuiDataList = this.state.contactList || [];
  1908. const rowSelection = {
  1909. selectedRowKeys: this.state.selectedRowKeys,
  1910. onChange: (selectedRowKeys, selectedRows) => {
  1911. this.setState({
  1912. modalVisible: false,
  1913. selectedRows: selectedRows.slice(-1),
  1914. selectedRowKeys: selectedRowKeys.slice(-1),
  1915. });
  1916. },
  1917. onSelect: (recordt) => {
  1918. this.setState({
  1919. modalVisible: false,
  1920. recordt: recordt.id,
  1921. });
  1922. },
  1923. };
  1924. return (
  1925. <div className="user-content">
  1926. {this.state.resVisible ? (
  1927. <ResolutionDetail
  1928. cancel={this.resCancel}
  1929. detail={this.state.resRecord}
  1930. visible={this.state.resVisible}
  1931. id={this.state.resRecord.orderNo}
  1932. />
  1933. ) : (
  1934. ""
  1935. )}
  1936. <ShowModalDiv ShowModal={this.state.showModal} />
  1937. <div className="content-title" style={{ marginBottom: 10 }}>
  1938. <span style={{ fontWeight: 900, fontSize: 16 }}>特批订单审核</span>
  1939. </div>
  1940. <Tabs defaultActiveKey="2" onChange={this.callback} className="test">
  1941. <TabPane tab="更改表格显示数据" key="1">
  1942. <div style={{ marginLeft: 10 }}>
  1943. <ChooseList
  1944. columns={this.state.columns}
  1945. changeFn={this.changeList}
  1946. changeList={this.state.changeList}
  1947. top={55}
  1948. margin={11}
  1949. />
  1950. </div>
  1951. </TabPane>
  1952. <TabPane tab="搜索" key="2">
  1953. <div className="user-search" style={{ marginLeft: 10 }}>
  1954. <Input
  1955. placeholder="订单编号"
  1956. value={this.state.orderNoSearch}
  1957. onChange={(e) => {
  1958. this.setState({ orderNoSearch: e.target.value });
  1959. }}
  1960. />
  1961. <Input
  1962. placeholder="客户名称"
  1963. value={this.state.nameSearch}
  1964. onChange={(e) => {
  1965. this.setState({ nameSearch: e.target.value });
  1966. }}
  1967. />
  1968. <Cascaders
  1969. ref={node => this.Cascaders = node}
  1970. placeholder="订单部门"
  1971. id="id"
  1972. name="name"
  1973. children="list"
  1974. height={28}
  1975. onSel={(e) => {
  1976. this.setState({
  1977. departmenttList: JSON.stringify(e),
  1978. });
  1979. }}
  1980. />
  1981. {/* <DepartmentList
  1982. value={this.state.departmenttList}
  1983. onChange={e => {
  1984. this.setState({ departmenttList: e });
  1985. }} /> */}
  1986. <Input
  1987. placeholder="合同编号"
  1988. value={this.state.contractNoSearch}
  1989. onChange={(e) => {
  1990. this.setState({
  1991. contractNoSearch: e.target.value,
  1992. });
  1993. }}
  1994. />
  1995. <Select
  1996. placeholder="特批状态"
  1997. onChange={(e) => {
  1998. this.setState({ approvalSearch: e });
  1999. }}
  2000. style={{ width: 160, marginRight: 5 }}
  2001. value={this.state.approvalSearch}
  2002. >
  2003. <Option value="1">特批待审核</Option>
  2004. <Option value="2">特批(通过以及驳回)</Option>
  2005. </Select>
  2006. <Select
  2007. placeholder="结算状态"
  2008. onChange={(e) => {
  2009. this.setState({ liquidationStatusSearch: e });
  2010. }}
  2011. style={{ width: 160, marginRight: 5 }}
  2012. value={this.state.liquidationStatusSearch}
  2013. >
  2014. <Option value="0">首付待付清</Option>
  2015. <Option value="1">尾款待付清</Option>
  2016. <Option value="2">已付清</Option>
  2017. </Select>
  2018. <span style={{}}>下单日期:</span>
  2019. <RangePicker
  2020. value={[
  2021. this.state.releaseDate[0]
  2022. ? moment(this.state.releaseDate[0])
  2023. : null,
  2024. this.state.releaseDate[1]
  2025. ? moment(this.state.releaseDate[1])
  2026. : null,
  2027. ]}
  2028. onChange={(data, dataString) => {
  2029. this.setState({ releaseDate: dataString });
  2030. }}
  2031. />
  2032. <Button
  2033. type="primary"
  2034. onClick={this.search}
  2035. style={{ marginLeft: 10 }}
  2036. disabled={this.state.loadingA ? true : false}
  2037. >
  2038. 搜索
  2039. </Button>
  2040. <Button onClick={this.reset}>重置</Button>
  2041. </div>
  2042. </TabPane>
  2043. <TabPane tab="打印" key="3">
  2044. <Button
  2045. type="primary"
  2046. style={{ margin: "11px 0px 10px 10px" }}
  2047. onClick={this.printAll}
  2048. disabled={!this.state.dataSource.length}
  2049. >
  2050. 打印所有列表信息
  2051. </Button>
  2052. <Button
  2053. type="primary"
  2054. disabled={this.state.selectedRowKeys.length != 1}
  2055. style={{ margin: "11px 0px 10px 10px" }}
  2056. onClick={() => {
  2057. this.inRecordData();
  2058. this.setState({
  2059. bvisible: true,
  2060. });
  2061. }}
  2062. >
  2063. 打印开票详情
  2064. </Button>
  2065. <Button
  2066. type="primary"
  2067. disabled={this.state.selectedRowKeys.length != 1}
  2068. style={{ margin: "11px 0px 10px 10px" }}
  2069. onClick={() => {
  2070. this.waterData();
  2071. this.setState({
  2072. cvisible: true,
  2073. });
  2074. }}
  2075. >
  2076. 打印收款流水
  2077. </Button>
  2078. <Button
  2079. type="primary"
  2080. disabled={this.state.selectedRowKeys.length != 1}
  2081. style={{ margin: "11px 0px 10px 10px" }}
  2082. onClick={() => {
  2083. this.timeData();
  2084. this.setState({
  2085. timeVisible: true,
  2086. });
  2087. }}
  2088. >
  2089. 打印工时信息
  2090. </Button>
  2091. <Button
  2092. type="primary"
  2093. disabled={this.state.selectedRowKeys.length != 1}
  2094. style={{ margin: "11px 0px 10px 10px" }}
  2095. onClick={() => {
  2096. this.cuiData();
  2097. this.setState({
  2098. cuiVisible: true,
  2099. });
  2100. }}
  2101. >
  2102. 打印催款信息
  2103. </Button>
  2104. <Button
  2105. type="primary"
  2106. disabled={this.state.selectedRowKeys.length != 1}
  2107. style={{ margin: "11px 0px 10px 10px" }}
  2108. onClick={() => {
  2109. this.proData();
  2110. this.setState({
  2111. proVisible: true,
  2112. });
  2113. }}
  2114. >
  2115. 打印项目信息
  2116. </Button>
  2117. </TabPane>
  2118. <TabPane tab="导出Excel" key="4">
  2119. {/* <Button
  2120. type="primary"
  2121. style={{ margin: "11px 0px 10px 10px" }}
  2122. onClick={this.exportAll}
  2123. >
  2124. 导出当前列表
  2125. </Button> */}
  2126. <Button
  2127. type="primary"
  2128. disabled={this.state.selectedRowKeys.length != 1}
  2129. style={{ margin: "11px 0px 10px 10px" }}
  2130. onClick={this.exportKaip}
  2131. >
  2132. 导出所选开票详情
  2133. </Button>
  2134. <Button
  2135. type="primary"
  2136. disabled={this.state.selectedRowKeys.length != 1}
  2137. style={{ margin: "11px 0px 10px 10px" }}
  2138. onClick={this.exportWater}
  2139. >
  2140. 导出所选收款详情流水
  2141. </Button>
  2142. <Button
  2143. type="primary"
  2144. disabled={this.state.selectedRowKeys.length != 1}
  2145. style={{ margin: "11px 0px 10px 10px" }}
  2146. onClick={this.exportTime}
  2147. >
  2148. 导出所选工时信息
  2149. </Button>
  2150. <Button
  2151. type="primary"
  2152. disabled={this.state.selectedRowKeys.length != 1}
  2153. style={{ margin: "11px 0px 10px 10px" }}
  2154. onClick={this.exportCui}
  2155. >
  2156. 导出催款信息
  2157. </Button>
  2158. <Button
  2159. type="primary"
  2160. disabled={this.state.selectedRowKeys.length != 1}
  2161. style={{ margin: "11px 0px 10px 10px" }}
  2162. onClick={this.exportPro}
  2163. >
  2164. 导出项目详情
  2165. </Button>
  2166. </TabPane>
  2167. <TabPane tab="查看" key="5">
  2168. <Button
  2169. type="primary"
  2170. disabled={this.state.selectedRowKeys.length != 1}
  2171. style={{ margin: "11px 0px 10px 10px" }}
  2172. onClick={() => {
  2173. this.inRecordData();
  2174. this.setState({
  2175. bvisible: true,
  2176. });
  2177. }}
  2178. >
  2179. 查看开票详情
  2180. </Button>
  2181. <Button
  2182. type="primary"
  2183. disabled={this.state.selectedRowKeys.length != 1}
  2184. style={{ margin: "11px 0px 10px 10px" }}
  2185. onClick={() => {
  2186. this.waterData();
  2187. this.setState({
  2188. cvisible: true,
  2189. });
  2190. }}
  2191. >
  2192. 详情收款流水
  2193. </Button>
  2194. <Button
  2195. type="primary"
  2196. disabled={this.state.selectedRowKeys.length != 1}
  2197. style={{ margin: "11px 0px 10px 10px" }}
  2198. onClick={() => {
  2199. this.timeData();
  2200. this.setState({
  2201. timeVisible: true,
  2202. });
  2203. }}
  2204. >
  2205. 工时信息
  2206. </Button>
  2207. <Button
  2208. type="primary"
  2209. disabled={this.state.selectedRowKeys.length != 1}
  2210. style={{ margin: "11px 0px 10px 10px" }}
  2211. onClick={() => {
  2212. this.cuiData();
  2213. this.setState({
  2214. cuiVisible: true,
  2215. });
  2216. }}
  2217. >
  2218. 催款信息
  2219. </Button>
  2220. <Button
  2221. type="primary"
  2222. disabled={this.state.selectedRowKeys.length != 1}
  2223. style={{ margin: "11px 0px 10px 10px" }}
  2224. onClick={() => {
  2225. this.proData();
  2226. this.setState({
  2227. proVisible: true,
  2228. });
  2229. }}
  2230. >
  2231. 项目信息
  2232. </Button>
  2233. </TabPane>
  2234. {/* <TabPane tab="批量操作" key="6">
  2235. <Button
  2236. type="primary"
  2237. disabled={this.state.selectedRowKeys.length == 0}
  2238. style={{ margin: "0px 0px 10px 10px" }}
  2239. onClick={e => {
  2240. e.stopPropagation(),
  2241. this.evaluateY(this.state.selectedRowKeys, "财务专员");
  2242. }}
  2243. >
  2244. 转交
  2245. </Button>
  2246. </TabPane> */}
  2247. </Tabs>
  2248. <div className="user-search">
  2249. <div className="patent-table">
  2250. <Spin spinning={this.state.loading}>
  2251. <Table
  2252. columns={
  2253. this.state.changeList == undefined
  2254. ? this.state.columns
  2255. : this.state.changeList
  2256. }
  2257. dataSource={this.state.dataSource}
  2258. rowSelection={rowSelection}
  2259. pagination={this.state.pagination}
  2260. onRowClick={this.tableRowClick}
  2261. bordered
  2262. size="small"
  2263. />
  2264. </Spin>
  2265. </div>
  2266. {this.state.visible ? <Modal
  2267. maskClosable={false}
  2268. className="customeDetails"
  2269. footer=""
  2270. title="订单详情"
  2271. width="1200px"
  2272. visible={this.state.visible}
  2273. onOk={this.visitOk}
  2274. onCancel={this.visitCancel}
  2275. >
  2276. <Form
  2277. layout="horizontal"
  2278. onSubmit={this.handleSubmit}
  2279. id="demand-form"
  2280. style={{ paddingBottom: "40px" }}
  2281. >
  2282. <Spin spinning={this.state.loading}>
  2283. <div className="clearfix">
  2284. <div style={{ position: "absolute", top: '-52px', left: '81px', zIndex: 10000 }}>
  2285. <OrderItemStatus deleteSign={this.state.deleteSign} />
  2286. </div>
  2287. <FormItem
  2288. className="half-item"
  2289. {...formItemLayout}
  2290. label="订单编号"
  2291. >
  2292. <span>{this.state.orderNo}</span>
  2293. </FormItem>
  2294. <FormItem
  2295. className="half-item"
  2296. {...formItemLayout}
  2297. label="合同编号"
  2298. >
  2299. <span>{this.state.contractNo}</span>
  2300. </FormItem>
  2301. <FormItem
  2302. className="half-item"
  2303. {...formItemLayout}
  2304. label="客户名称"
  2305. >
  2306. <span>
  2307. {this.state.userName}
  2308. <EnterpriseNameChange
  2309. type='journal'
  2310. style={{ marginLeft: 10 }}
  2311. enterpriseId={this.state.orderUid} />
  2312. </span>
  2313. </FormItem>
  2314. <FormItem
  2315. className="half-item"
  2316. {...formItemLayout}
  2317. label="合同签订时间"
  2318. >
  2319. <span>{this.state.signDate}</span>
  2320. </FormItem>
  2321. <FormItem
  2322. className="half-item"
  2323. {...formItemLayout}
  2324. label="流程状态"
  2325. >
  2326. <span>{getProcessStatus(this.state.processStatus)}</span>
  2327. </FormItem>
  2328. <FormItem
  2329. className="half-item"
  2330. {...formItemLayout}
  2331. label="结算状态"
  2332. >
  2333. <span>
  2334. {getLiquidationStatus(this.state.liquidationStatus)}
  2335. </span>
  2336. </FormItem>
  2337. <FormItem
  2338. className="half-item"
  2339. {...formItemLayout}
  2340. label="企业联系人"
  2341. >
  2342. <span>{this.state.contacts}</span>
  2343. </FormItem>
  2344. <FormItem
  2345. className="half-item"
  2346. {...formItemLayout}
  2347. label="联系人电话"
  2348. >
  2349. <span>{this.state.contactMobile}</span>
  2350. </FormItem>
  2351. <FormItem
  2352. className="half-item"
  2353. {...formItemLayout}
  2354. label="企业法人"
  2355. >
  2356. <span>{this.state.legalPerson}</span>
  2357. </FormItem>
  2358. <FormItem
  2359. className="half-item"
  2360. {...formItemLayout}
  2361. label="法人电话"
  2362. >
  2363. <span>{this.state.legalPersonTel}</span>
  2364. </FormItem>
  2365. <FormItem
  2366. className="half-item"
  2367. {...formItemLayout}
  2368. label="签单金额(万元)"
  2369. >
  2370. <span>{this.state.totalAmount}</span>
  2371. </FormItem>
  2372. <FormItem
  2373. className="half-item"
  2374. {...formItemLayout}
  2375. label="首付金额(万元)"
  2376. >
  2377. <span>{this.state.firstAmount}</span>
  2378. </FormItem>
  2379. <FormItem
  2380. className="half-item"
  2381. {...formItemLayout}
  2382. label="特批立项"
  2383. >
  2384. <span>{getApprovedState(this.state.approval)}</span>
  2385. </FormItem>
  2386. <FormItem
  2387. className="half-item"
  2388. {...formItemLayout}
  2389. label="已收款项(万元)"
  2390. >
  2391. <span>{this.state.settlementAmount}</span>
  2392. </FormItem>
  2393. <FormItem
  2394. className="half-item"
  2395. {...formItemLayout}
  2396. label="是否外包"
  2397. >
  2398. <span>{this.state.outsource}</span>
  2399. </FormItem>
  2400. <div className="clearfix">
  2401. <FormItem
  2402. labelCol={{ span: 4 }}
  2403. wrapperCol={{ span: 16 }}
  2404. label="订单留言"
  2405. >
  2406. <span>{this.state.orderRemarks}</span>
  2407. </FormItem>
  2408. </div>
  2409. <div className="clearfix">
  2410. <FormItem
  2411. labelCol={{ span: 4 }}
  2412. wrapperCol={{ span: 18 }}
  2413. label={
  2414. <span>
  2415. <strong style={{ color: "#f00" }}>*</strong>
  2416. 合同扫描件
  2417. </span>
  2418. }
  2419. >
  2420. <PicturesWall
  2421. domId={'approveds1'}
  2422. fileList={this.getOrgCodeUrl}
  2423. pictureUrl={this.state.orgCodeUrl}
  2424. />
  2425. <p>图片建议:要清晰。</p>
  2426. <Button
  2427. style={{
  2428. float: "right",
  2429. marginRight: "140px",
  2430. marginTop: "20px",
  2431. }}
  2432. onClick={this.getOrderLog}
  2433. >
  2434. 查看订单 日志
  2435. </Button>
  2436. </FormItem>
  2437. <FormItem
  2438. labelCol={{ span: 4 }}
  2439. wrapperCol={{ span: 18 }}
  2440. label={
  2441. <span>
  2442. 补充协议
  2443. </span>
  2444. }
  2445. >
  2446. <PicturesWall
  2447. domId={'approveds2'}
  2448. fileList={this.getReplenishUrl}
  2449. pictureUrl={this.state.replenishUrl}
  2450. url="/api/admin/order/uploadOrderImg"
  2451. sign=""
  2452. />
  2453. <p>图片建议:要清晰。</p>
  2454. </FormItem>
  2455. </div>
  2456. <ContentUrl
  2457. processStatus={1}
  2458. domId={"approContents"}
  2459. contentUrl={this.state.contentUrl}
  2460. imgId={"approContentsImg"}
  2461. />
  2462. <div className="clearfix">
  2463. <FormItem
  2464. className="half-item"
  2465. {...formItemLayout}
  2466. label="订单负责人"
  2467. >
  2468. <span>{this.state.salesmanName}</span>
  2469. </FormItem>
  2470. <FormItem
  2471. className="half-item"
  2472. {...formItemLayout}
  2473. label="订单负责人电话"
  2474. >
  2475. <span>{this.state.salesmanMobile}</span>
  2476. </FormItem>
  2477. </div>
  2478. <div className="clearfix">
  2479. <FormItem
  2480. className="half-item"
  2481. {...formItemLayout}
  2482. label="财务负责人"
  2483. >
  2484. <span>{this.state.financeName}</span>
  2485. </FormItem>
  2486. <FormItem
  2487. className="half-item"
  2488. {...formItemLayout}
  2489. label="财务负责人电话"
  2490. >
  2491. <span>{this.state.financeMobile}</span>
  2492. </FormItem>
  2493. </div>
  2494. {/* */}
  2495. <OrderCoor orderNo={this.state.orderNos} />
  2496. <div>
  2497. <span style={{ marginLeft: "50px", fontSize: "18px" }}>
  2498. 项目业务
  2499. </span>
  2500. {this.state.processStatus == 0 ? (
  2501. <Button
  2502. type="primary"
  2503. onClick={this.addDetailed}
  2504. style={{
  2505. float: "right",
  2506. marginRight: "50px",
  2507. marginBottom: "15px",
  2508. }}
  2509. >
  2510. 添加项目明细
  2511. </Button>
  2512. ) : (
  2513. ""
  2514. )}
  2515. </div>
  2516. <div className="patent-table">
  2517. <Spin spinning={this.state.loading}>
  2518. <Table
  2519. columns={this.state.columnsX}
  2520. dataSource={this.state.dataSourceX}
  2521. pagination={this.state.paginations}
  2522. onRowClick={this.tableRowClickX}
  2523. bordered
  2524. size="small"
  2525. />
  2526. </Spin>
  2527. </div>
  2528. <div style={{ marginTop: 10 }}>
  2529. <span style={{ marginLeft: 50, fontSize: "18px" }}>
  2530. 催款节点
  2531. </span>
  2532. <span
  2533. style={{
  2534. display: cuiDataList.length ? "none" : "inline-block",
  2535. marginLeft: 10,
  2536. color: "red",
  2537. }}
  2538. >
  2539. 金额总计(万元): {this.state.totalCui}
  2540. </span>
  2541. </div>
  2542. <div className="clearfix">
  2543. <Spin spinning={this.state.loading}>
  2544. <Form layout="horizontal" id="demand-form">
  2545. <Table
  2546. pagination={false}
  2547. bordered
  2548. size="small"
  2549. columns={
  2550. cuiDataList.length
  2551. ? this.state.ContactsLists
  2552. : this.state.ContactsListsNew
  2553. }
  2554. dataSource={
  2555. cuiDataList.length
  2556. ? this.state.contactList
  2557. : this.state.contactListNew
  2558. }
  2559. />
  2560. <Col
  2561. span={24}
  2562. offset={9}
  2563. style={{ marginTop: "15px" }}
  2564. />
  2565. </Form>
  2566. </Spin>
  2567. </div>
  2568. {(this.state.approval === 1 || this.state.approval === 4) &&
  2569. <div className="addSave" style={{ marginTop: "15px" }}>
  2570. <Button
  2571. className="cancel"
  2572. type="primary"
  2573. onClick={this.pass}
  2574. style={{ marginLeft: "200px" }}
  2575. htmlType="submit"
  2576. >
  2577. 通过
  2578. </Button>
  2579. <Button
  2580. className="cancel"
  2581. type="primary"
  2582. onClick={this.examNo}
  2583. style={{ marginLeft: "50px" }}
  2584. htmlType="submit"
  2585. >
  2586. 驳回
  2587. </Button>
  2588. <Button
  2589. className="cancel"
  2590. type="ghost"
  2591. onClick={this.visitCancel}
  2592. style={{ marginLeft: "50px" }}
  2593. >
  2594. 取消
  2595. </Button>
  2596. </div>}
  2597. </div>
  2598. </Spin>
  2599. </Form>
  2600. </Modal> : <div />}
  2601. {this.state.noVisible ? <Modal
  2602. maskClosable={false}
  2603. visible={this.state.noVisible}
  2604. onOk={this.noCancel}
  2605. onCancel={this.noCancel}
  2606. width="400px"
  2607. title={"拒绝理由"}
  2608. footer=""
  2609. className="admin-desc-content"
  2610. >
  2611. <Form layout="horizontal" id="demand-form">
  2612. <Spin spinning={this.state.loading}>
  2613. <div className="clearfix">
  2614. <FormItem
  2615. labelCol={{ span: 4 }}
  2616. wrapperCol={{ span: 16 }}
  2617. label="拒绝理由"
  2618. >
  2619. <Input
  2620. type="textarea"
  2621. placeholder="请输入拒绝理由"
  2622. rows={4}
  2623. value={this.state.reason}
  2624. onChange={(e) => {
  2625. this.setState({ reason: e.target.value });
  2626. }}
  2627. />
  2628. </FormItem>
  2629. </div>
  2630. <div className="clearfix">
  2631. <Button
  2632. className="cancel"
  2633. type="primary"
  2634. onClick={this.examOks}
  2635. style={{ marginLeft: "50px" }}
  2636. htmlType="submit"
  2637. >
  2638. 确定
  2639. </Button>
  2640. <Button
  2641. className="cancel"
  2642. type="ghost"
  2643. onClick={this.noCancel}
  2644. style={{ marginLeft: "50px" }}
  2645. >
  2646. 取消
  2647. </Button>
  2648. </div>
  2649. </Spin>
  2650. </Form>
  2651. </Modal> : <div />}
  2652. {this.state.passVisible ? <Modal
  2653. maskClosable={false}
  2654. visible={this.state.passVisible}
  2655. onOk={this.passCancel}
  2656. onCancel={this.passCancel}
  2657. width="400px"
  2658. title={"同意理由"}
  2659. footer=""
  2660. className="admin-desc-content"
  2661. >
  2662. <Form layout="horizontal">
  2663. <Spin spinning={this.state.loading}>
  2664. <div className="clearfix">
  2665. <FormItem
  2666. labelCol={{ span: 4 }}
  2667. wrapperCol={{ span: 16 }}
  2668. label="同意备注"
  2669. >
  2670. <Input
  2671. type="textarea"
  2672. placeholder="请输入备注"
  2673. rows={4}
  2674. value={this.state.reason}
  2675. onChange={(e) => {
  2676. this.setState({ reason: e.target.value });
  2677. }}
  2678. />
  2679. </FormItem>
  2680. </div>
  2681. <div className="clearfix">
  2682. <Button
  2683. className="cancel"
  2684. type="primary"
  2685. onClick={this.examOk}
  2686. style={{ marginLeft: "50px" }}
  2687. htmlType="submit"
  2688. >
  2689. 确定
  2690. </Button>
  2691. <Button
  2692. className="cancel"
  2693. type="ghost"
  2694. onClick={this.passCancel}
  2695. style={{ marginLeft: "50px" }}
  2696. >
  2697. 取消
  2698. </Button>
  2699. </div>
  2700. </Spin>
  2701. </Form>
  2702. </Modal> : <div />}
  2703. {this.state.rizhivisible ? <Modal
  2704. visible={this.state.rizhivisible}
  2705. className="admin-desc-content"
  2706. width="800px"
  2707. maskClosable={false}
  2708. title="订单日志"
  2709. footer={null}
  2710. onCancel={this.closeOrderLog}
  2711. >
  2712. <div className="patent-table">
  2713. <Spin spinning={this.state.loading}>
  2714. <Table
  2715. columns={this.state.columnsrizhi}
  2716. dataSource={this.state.dataSourcerizhi}
  2717. pagination={false}
  2718. bordered
  2719. size="small"
  2720. />
  2721. </Spin>
  2722. </div>
  2723. </Modal> : <div />}
  2724. {this.state.dvisible ? <Modal
  2725. maskClosable={false}
  2726. visible={this.state.dvisible}
  2727. footer=""
  2728. title="所有列表信息"
  2729. className="admin-desc-content"
  2730. width="1400px"
  2731. onCancel={() => {
  2732. // this.loadData();
  2733. this.setState({
  2734. dvisible: false,
  2735. });
  2736. }}
  2737. >
  2738. <Spin spinning={this.state.loading}>
  2739. <div
  2740. className="patent-table"
  2741. style={{
  2742. // width: 900,
  2743. // position: "relative",
  2744. // left: "50%",
  2745. // transform: "translate(-50%)",
  2746. padding: "25px 0 30px 30px",
  2747. }}
  2748. ref={(e) => {
  2749. this.refs.all = e;
  2750. }}
  2751. >
  2752. <Table
  2753. columns={this.state.columns}
  2754. dataSource={this.state.dataSource}
  2755. pagination={false}
  2756. bordered
  2757. size="small"
  2758. />
  2759. </div>
  2760. </Spin>
  2761. <ReactToPrint
  2762. trigger={() => (
  2763. <Button
  2764. type="primary"
  2765. style={{
  2766. float: "right",
  2767. marginTop: 10,
  2768. position: "absolute",
  2769. top: 0,
  2770. right: 30,
  2771. }}
  2772. >
  2773. 打印
  2774. </Button>
  2775. )}
  2776. content={() => this.refs.all}
  2777. />
  2778. </Modal> : <div />}
  2779. {this.state.bvisible ? <Modal
  2780. maskClosable={false}
  2781. visible={this.state.bvisible}
  2782. footer=""
  2783. title="开票历史记录"
  2784. className="admin-desc-content"
  2785. width="1200px"
  2786. onCancel={this.inRecordCanl}
  2787. >
  2788. <Spin spinning={this.state.loading}>
  2789. <div
  2790. className="patent-table"
  2791. ref={(e) => {
  2792. this.refs.kaiPiao = e;
  2793. }}
  2794. >
  2795. <Table
  2796. columns={this.state.columnsDate}
  2797. dataSource={this.state.recordData}
  2798. pagination={false}
  2799. bordered
  2800. size="small"
  2801. />
  2802. <div className="clearfix" style={{ marginTop: "20px" }}>
  2803. <FormItem
  2804. className="half-item"
  2805. {...formItemLayout}
  2806. label={<span style={{ fontSize: "14px" }}>开票总计</span>}
  2807. >
  2808. <span>{this.state.sum + "(万元)"}</span>
  2809. </FormItem>
  2810. </div>
  2811. <ReactToPrint
  2812. trigger={() => (
  2813. <Button
  2814. type="primary"
  2815. style={{
  2816. float: "right",
  2817. // marginTop: 10,
  2818. position: "absolute",
  2819. top: -54,
  2820. right: 30,
  2821. }}
  2822. >
  2823. 打印
  2824. </Button>
  2825. )}
  2826. content={() => this.refs.kaiPiao}
  2827. />
  2828. </div>
  2829. </Spin>
  2830. </Modal> : <div />}
  2831. {this.state.cvisible ? <Modal
  2832. maskClosable={false}
  2833. visible={this.state.cvisible}
  2834. footer=""
  2835. title="详细收款流水"
  2836. className="admin-desc-content"
  2837. width="1300px"
  2838. onCancel={this.waterCanl}
  2839. >
  2840. <Spin spinning={this.state.loading}>
  2841. <div
  2842. className="patent-table"
  2843. ref={(e) => {
  2844. this.refs.shouKuan = e;
  2845. }}
  2846. >
  2847. <Table
  2848. columns={this.state.waterlistDate}
  2849. dataSource={this.state.waterData}
  2850. pagination={false}
  2851. bordered
  2852. size="small"
  2853. />
  2854. <div className="clearfix" style={{ marginTop: "20px" }}>
  2855. <FormItem
  2856. className="half-item"
  2857. {...formItemLayout}
  2858. label={<span style={{ fontSize: "14px" }}>总计金额</span>}
  2859. >
  2860. <span>{this.state.waterSum + "(万元)"}</span>
  2861. </FormItem>
  2862. </div>
  2863. <ReactToPrint
  2864. trigger={() => (
  2865. <Button
  2866. type="primary"
  2867. style={{
  2868. float: "right",
  2869. position: "absolute",
  2870. top: -54,
  2871. right: 30,
  2872. }}
  2873. >
  2874. 打印
  2875. </Button>
  2876. )}
  2877. content={() => this.refs.shouKuan}
  2878. />
  2879. </div>
  2880. </Spin>
  2881. </Modal> : <div />}
  2882. {this.state.timeVisible ? <Modal
  2883. maskClosable={false}
  2884. visible={this.state.timeVisible}
  2885. footer=""
  2886. title="工时详情"
  2887. className="admin-desc-content"
  2888. width="1300px"
  2889. pagination={false}
  2890. onCancel={() => {
  2891. // this.loadData();
  2892. this.setState({
  2893. timeVisible: false,
  2894. });
  2895. }}
  2896. >
  2897. <Spin spinning={this.state.loading}>
  2898. <div
  2899. className="patent-table"
  2900. style={
  2901. {
  2902. // width: 900,
  2903. // position: "relative",
  2904. // left: "50%",
  2905. // transform: "translate(-50%)",
  2906. // padding: "25px 0 30px 30px"
  2907. }
  2908. }
  2909. ref={(e) => {
  2910. this.refs.all = e;
  2911. }}
  2912. >
  2913. <Table
  2914. columns={this.state.timeColumns}
  2915. dataSource={this.state.timeDataList}
  2916. scroll={{ x: "max-content", y: 0 }}
  2917. pagination={false}
  2918. bordered
  2919. size="small"
  2920. />
  2921. </div>
  2922. </Spin>
  2923. <ReactToPrint
  2924. trigger={() => (
  2925. <Button
  2926. type="primary"
  2927. style={{
  2928. float: "right",
  2929. marginTop: 10,
  2930. position: "absolute",
  2931. top: 0,
  2932. right: 30,
  2933. }}
  2934. >
  2935. 打印
  2936. </Button>
  2937. )}
  2938. content={() => this.refs.all}
  2939. />
  2940. </Modal> : <div />}
  2941. {this.state.cuiVisible ? <Modal
  2942. maskClosable={false}
  2943. visible={this.state.cuiVisible}
  2944. footer=""
  2945. title="催款详情"
  2946. className="admin-desc-content"
  2947. width="1300px"
  2948. pagination={false}
  2949. onCancel={() => {
  2950. // this.loadData();
  2951. this.setState({
  2952. cuiVisible: false,
  2953. });
  2954. }}
  2955. >
  2956. <Spin spinning={this.state.loading}>
  2957. <div
  2958. className="patent-table"
  2959. style={
  2960. {
  2961. // width: 900,
  2962. // position: "relative",
  2963. // left: "50%",
  2964. // transform: "translate(-50%)",
  2965. // padding: "25px 0 30px 30px"
  2966. }
  2967. }
  2968. ref={(e) => {
  2969. this.refs.all = e;
  2970. }}
  2971. >
  2972. <Table
  2973. columns={this.state.cuiColumns}
  2974. dataSource={this.state.cuiDataList}
  2975. scroll={{ x: "max-content", y: 0 }}
  2976. pagination={false}
  2977. bordered
  2978. size="small"
  2979. />
  2980. </div>
  2981. </Spin>
  2982. <ReactToPrint
  2983. trigger={() => (
  2984. <Button
  2985. type="primary"
  2986. style={{
  2987. float: "right",
  2988. marginTop: 10,
  2989. position: "absolute",
  2990. top: 0,
  2991. right: 30,
  2992. }}
  2993. >
  2994. 打印
  2995. </Button>
  2996. )}
  2997. content={() => this.refs.all}
  2998. />
  2999. </Modal> : <div />}
  3000. {this.state.proVisible ? <Modal
  3001. maskClosable={false}
  3002. visible={this.state.proVisible}
  3003. footer=""
  3004. title="项目详情"
  3005. className="admin-desc-content"
  3006. width="1300px"
  3007. pagination={false}
  3008. onCancel={() => {
  3009. // this.loadData();
  3010. this.setState({
  3011. proVisible: false,
  3012. });
  3013. }}
  3014. >
  3015. <Spin spinning={this.state.loading}>
  3016. <Project
  3017. record={this.state.record}
  3018. visible={this.state.pvisible}
  3019. cancel={() => {
  3020. this.setState({ pvisible: false });
  3021. }}
  3022. />
  3023. <div
  3024. className="patent-table"
  3025. style={
  3026. {
  3027. // width: 900,
  3028. // position: "relative",
  3029. // left: "50%",
  3030. // transform: "translate(-50%)",
  3031. // padding: "25px 0 30px 30px"
  3032. }
  3033. }
  3034. ref={(e) => {
  3035. this.refs.all = e;
  3036. }}
  3037. >
  3038. <Table
  3039. columns={this.state.proColumns}
  3040. dataSource={this.state.proDataList}
  3041. // onRowClick={this.tableRowClickPro}
  3042. pagination={false}
  3043. bordered
  3044. size="small"
  3045. />
  3046. </div>
  3047. <span style={{ display: "block", marginTop: 10, color: "red" }}>
  3048. 外包(内部)价格总计(万元):{this.state.totalWaibao}
  3049. </span>
  3050. </Spin>
  3051. <ReactToPrint
  3052. trigger={() => (
  3053. <Button
  3054. type="primary"
  3055. style={{
  3056. float: "right",
  3057. marginTop: 10,
  3058. position: "absolute",
  3059. top: 0,
  3060. right: 30,
  3061. }}
  3062. >
  3063. 打印
  3064. </Button>
  3065. )}
  3066. content={() => this.refs.all}
  3067. />
  3068. </Modal> : <div />}
  3069. </div>
  3070. {this.state.addnextVisible && <ProjectDetailsReadOnly
  3071. infor={this.state.dataInfor}
  3072. visible={this.state.addnextVisible}
  3073. onCancel={this.nextCancel}
  3074. />}
  3075. </div>
  3076. );
  3077. },
  3078. })
  3079. );
  3080. export default IntentionCustomer;