approveds.jsx 96 KB

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