approveds.jsx 95 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045
  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. depId: 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);
  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.loadData();
  1374. },
  1375. resets() {
  1376. this.state.orderNo = "";
  1377. this.state.customerName = "";
  1378. this.state.departmenttSearch = undefined;
  1379. this.state.releaseDate[0] = undefined;
  1380. this.state.releaseDate[1] = undefined;
  1381. },
  1382. getOrgCodeUrl(e) {
  1383. this.setState({ orgCodeUrl: e });
  1384. },
  1385. getReplenishUrl(e) {
  1386. this.setState({ replenishUrl: e });
  1387. },
  1388. downImg() {
  1389. let num = 0;
  1390. for (let i = 0; i < this.state.orgCodeUrl.length; i++) {
  1391. if (this.state.orgCodeUrl[i].url == this.state.previewImage) {
  1392. num = i;
  1393. }
  1394. }
  1395. if (num == this.state.orgCodeUrl.length - 1) {
  1396. return message.warning("已经是最后一张了哦");
  1397. }
  1398. this.state.previewImage = this.state.orgCodeUrl[num + 1].url;
  1399. this.setState({
  1400. previewImage: this.state.previewImage,
  1401. rotateDeg: 0,
  1402. });
  1403. },
  1404. upImg() {
  1405. let num = 0;
  1406. for (let i = 0; i < this.state.orgCodeUrl.length; i++) {
  1407. if (this.state.orgCodeUrl[i].url == this.state.previewImage) {
  1408. num = i;
  1409. }
  1410. }
  1411. if (num == 0) {
  1412. return message.warning("已经是第一张了哦");
  1413. }
  1414. this.state.previewImage = this.state.orgCodeUrl[num - 1].url;
  1415. this.setState({
  1416. previewImage: this.state.previewImage,
  1417. rotateDeg: 0,
  1418. });
  1419. },
  1420. rotate() {
  1421. let rotateDeg = this.state.rotateDeg + 90;
  1422. this.setState({
  1423. rotateDeg,
  1424. });
  1425. },
  1426. downImgs() {
  1427. let num = 0;
  1428. for (let i = 0; i < this.state.replenishUrl.length; i++) {
  1429. if (this.state.replenishUrl[i].url == this.state.previewImage) {
  1430. num = i;
  1431. }
  1432. }
  1433. if (num == this.state.replenishUrl.length - 1) {
  1434. return message.warning("已经是最后一张了哦");
  1435. }
  1436. this.state.previewImage = this.state.replenishUrl[num + 1].url;
  1437. this.setState({
  1438. previewImage: this.state.previewImage,
  1439. rotateDeg: 0,
  1440. });
  1441. },
  1442. upImgs() {
  1443. let num = 0;
  1444. for (let i = 0; i < this.state.replenishUrl.length; i++) {
  1445. if (this.state.replenishUrl[i].url == this.state.previewImage) {
  1446. num = i;
  1447. }
  1448. }
  1449. if (num == 0) {
  1450. return message.warning("已经是第一张了哦");
  1451. }
  1452. this.state.previewImage = this.state.replenishUrl[num - 1].url;
  1453. this.setState({
  1454. previewImage: this.state.previewImage,
  1455. rotateDeg: 0,
  1456. });
  1457. },
  1458. rotates() {
  1459. let rotateDeg = this.state.rotateDeg + 90;
  1460. this.setState({
  1461. rotateDeg,
  1462. });
  1463. },
  1464. changeList(arr) {
  1465. const newArr = [];
  1466. this.state.columns.forEach((item) => {
  1467. arr.forEach((val) => {
  1468. if (val === item.title) {
  1469. newArr.push(item);
  1470. }
  1471. });
  1472. });
  1473. this.setState({
  1474. changeList: newArr,
  1475. });
  1476. },
  1477. //关闭详情
  1478. visitCancel() {
  1479. this.setState({
  1480. visible: false,
  1481. });
  1482. this.resets();
  1483. },
  1484. visitOk() {
  1485. this.setState({
  1486. visible: false,
  1487. });
  1488. this.resets();
  1489. },
  1490. waterData() {
  1491. this.state.data = [];
  1492. this.setState({
  1493. loading: true,
  1494. });
  1495. $.ajax({
  1496. method: "get",
  1497. dataType: "json",
  1498. crossDomain: false,
  1499. url: globalConfig.context + "/api/admin/financial/myBillList",
  1500. data: {
  1501. orderNo: this.state.selectedRowKeys[0],
  1502. pageSize: 9999999,
  1503. whoType: 1,
  1504. },
  1505. success: function (data) {
  1506. let theArr = [];
  1507. let waterSum = 0;
  1508. if (!data.data || !data.data.list) {
  1509. if (data.error && data.error.length) {
  1510. message.warning(data.error[0].message);
  1511. }
  1512. } else {
  1513. for (let i = 0; i < data.data.list.length; i++) {
  1514. let thisdata = data.data.list[i];
  1515. waterSum += parseFloat(thisdata.transactionAmount);
  1516. theArr.push({
  1517. key: i,
  1518. orderNo: thisdata.orderNo,
  1519. billNo: thisdata.billNo,
  1520. transactionAmount: thisdata.transactionAmount,
  1521. payeeName: thisdata.payeeName,
  1522. payerName: thisdata.payerName,
  1523. transactionSubject: thisdata.transactionSubject,
  1524. transactionChannel: thisdata.transactionChannel,
  1525. financialPayTimes: thisdata.financialPayTimes,
  1526. financialPayNo: thisdata.financialPayNo,
  1527. createrName: thisdata.createrName,
  1528. saleName: thisdata.saleName,
  1529. createTimes: thisdata.createTimes,
  1530. type: thisdata.type == 0 ? "手工" : "批量",
  1531. });
  1532. }
  1533. }
  1534. this.setState({
  1535. waterData: theArr,
  1536. waterSum: (Math.round(waterSum * 1000000) / 1000000).toFixed(6),
  1537. });
  1538. }.bind(this),
  1539. }).always(
  1540. function () {
  1541. this.setState({
  1542. loading: false,
  1543. });
  1544. }.bind(this)
  1545. );
  1546. },
  1547. waterCanl() {
  1548. this.setState({
  1549. cvisible: false,
  1550. });
  1551. },
  1552. // 拆分详细
  1553. showRes(record) {
  1554. this.setState({
  1555. resVisible: true,
  1556. resRecord: record,
  1557. });
  1558. },
  1559. resCancel() {
  1560. this.setState({
  1561. resVisible: false,
  1562. });
  1563. },
  1564. exportKaip() {
  1565. window.location.href =
  1566. globalConfig.context +
  1567. "/api/admin/receivables/exportInvoice?" +
  1568. `orderNo=${this.state.selectedRowKeys}`;
  1569. },
  1570. exportAll() {
  1571. window.location.href =
  1572. globalConfig.context +
  1573. "/api/admin/receivables/exportReceivables?" +
  1574. `orderNo=${
  1575. this.state.orderNoSearch ? this.state.orderNoSearch : ""
  1576. }&buyerName=${
  1577. this.state.nameSearch ? this.state.nameSearch : ""
  1578. }&departmentId=${
  1579. this.state.departmenttList ? this.state.departmenttList : ""
  1580. }&contractNo=${
  1581. this.state.contractNoSearch ? this.state.contractNoSearch : ""
  1582. }&processStatus=${this.state.processStatusSearch}`;
  1583. },
  1584. exportWater() {
  1585. window.location.href =
  1586. globalConfig.context +
  1587. "/api/admin/receivables/exportMyBill?" +
  1588. `orderNo=${this.state.selectedRowKeys}&whoType=1`;
  1589. },
  1590. timeData() {
  1591. this.setState({
  1592. loading: true,
  1593. });
  1594. $.ajax({
  1595. method: "get",
  1596. dataType: "json",
  1597. crossDomain: false,
  1598. url: globalConfig.context + "/api/admin/orderProject/taskHoursList",
  1599. data: {
  1600. orderNo: this.state.selectedRowKeys[0],
  1601. pageSize: 9999999,
  1602. },
  1603. success: function (data) {
  1604. let theArr = [];
  1605. if (!data.data || !data.data.list) {
  1606. if (data.error && data.error.length) {
  1607. message.warning(data.error[0].message);
  1608. }
  1609. } else {
  1610. for (let i = 0; i < data.data.list.length; i++) {
  1611. let thisdata = data.data.list[i];
  1612. theArr.push({
  1613. key: i + 1,
  1614. id: thisdata.id, //ID
  1615. orderNo: thisdata.orderNo, //订单编号
  1616. taskName: thisdata.taskName, //任务名称
  1617. userName: thisdata.userName, //客户名称
  1618. cname: thisdata.cname, //项目品类
  1619. taskStatus: thisdata.taskStatus, //任务状态
  1620. receiverName: thisdata.receiverName, //负责人
  1621. hours: thisdata.hours, //任务工时
  1622. depName: thisdata.depName, //派单公司
  1623. contractNo: thisdata.contractNo,
  1624. signTime: thisdata.signTime,
  1625. creteTime: thisdata.creteTime,
  1626. projectStatus: thisdata.projectStatus,
  1627. commodityPrice: thisdata.commodityPrice, //价格
  1628. commodityQuantity: thisdata.commodityQuantity, //数量
  1629. salesmanName: thisdata.salesmanName, //订单负责人
  1630. taskDistributionTime: thisdata.taskDistributionTime,
  1631. taskEndTime: thisdata.taskEndTime,
  1632. outsource: thisdata.outsource,
  1633. });
  1634. }
  1635. }
  1636. this.setState({
  1637. timeDataList: theArr,
  1638. });
  1639. }.bind(this),
  1640. }).always(
  1641. function () {
  1642. this.setState({
  1643. loading: false,
  1644. });
  1645. }.bind(this)
  1646. );
  1647. },
  1648. exportTime() {
  1649. const data = {
  1650. orderNo: this.state.selectedRowKeys[0],
  1651. pageSize: 9999999,
  1652. };
  1653. window.location.href =
  1654. globalConfig.context +
  1655. "/api/admin/orderProject/exportMyTaskList?" +
  1656. $.param(data);
  1657. },
  1658. exportPro() {
  1659. const data = {
  1660. orderNo: this.state.selectedRowKeys[0],
  1661. };
  1662. window.location.href =
  1663. globalConfig.context +
  1664. "/api/admin/newOrder/exportOrderTaskData?" +
  1665. $.param(data);
  1666. },
  1667. exportCui() {
  1668. var data = {
  1669. orderNo: this.state.selectedRowKeys[0]
  1670. ? this.state.selectedRowKeys[0]
  1671. : undefined, //订单编号
  1672. // specially: 1,
  1673. pageSize: 9999999,
  1674. };
  1675. window.location.href =
  1676. globalConfig.context +
  1677. "/api/admin/newOrder/exportOrderDunData?" +
  1678. $.param(data);
  1679. },
  1680. cuiData() {
  1681. this.setState({
  1682. loading: true,
  1683. });
  1684. $.ajax({
  1685. method: "get",
  1686. dataType: "json",
  1687. crossDomain: false,
  1688. url: globalConfig.context + "/api/admin/newOrder/dunOrderNewList",
  1689. data: {
  1690. orderNo: this.state.selectedRowKeys[0],
  1691. pageSize: 9999999,
  1692. },
  1693. success: function (data) {
  1694. let theArr = [];
  1695. if (!data.data || !data.data.list) {
  1696. if (data.error && data.error.length) {
  1697. message.warning(data.error[0].message);
  1698. }
  1699. } else {
  1700. for (let i = 0; i < data.data.list.length; i++) {
  1701. let thisdata = data.data.list[i];
  1702. theArr.push({
  1703. key: i + 1,
  1704. orderNo: thisdata.orderNo,
  1705. contractNo: thisdata.contractNo,
  1706. userName: thisdata.userName,
  1707. buyerName: thisdata.buyerName,
  1708. departmentName: thisdata.departmentName,
  1709. salesmanName: thisdata.salesmanName,
  1710. depName: thisdata.depName,
  1711. orderStatus: thisdata.orderStatus,
  1712. projectStatus: thisdata.projectStatus,
  1713. totalAmount: thisdata.totalAmount,
  1714. liquidationStatus: thisdata.liquidationStatus,
  1715. settlementAmount: thisdata.settlementAmount,
  1716. accountsReceivable: thisdata.accountsReceivable,
  1717. dunSubject: thisdata.dunSubject,
  1718. startDate: thisdata.startDate,
  1719. taskStatus: thisdata.taskStatus,
  1720. cname: thisdata.cname,
  1721. id: thisdata.id,
  1722. taskName: thisdata.taskName,
  1723. hours: thisdata.hours,
  1724. taskDistributionTime: thisdata.taskDistributionTime,
  1725. taskEndTime: thisdata.taskEndTime,
  1726. dunStatus: thisdata.dunStatus == 0 ? "未触发" : "已触发",
  1727. });
  1728. }
  1729. }
  1730. this.setState({
  1731. cuiDataList: theArr,
  1732. });
  1733. }.bind(this),
  1734. }).always(
  1735. function () {
  1736. this.setState({
  1737. loading: false,
  1738. });
  1739. }.bind(this)
  1740. );
  1741. },
  1742. proData() {
  1743. this.setState({
  1744. loading: true,
  1745. });
  1746. $.ajax({
  1747. method: "get",
  1748. dataType: "json",
  1749. crossDomain: false,
  1750. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  1751. data: {
  1752. orderNo: this.state.selectedRowKeys[0],
  1753. pageSize: 9999999,
  1754. },
  1755. success: function (data) {
  1756. let theArr = [];
  1757. let totalWaibao = 0;
  1758. if (!data.data) {
  1759. if (data.error && data.error.length) {
  1760. message.warning(data.error[0].message);
  1761. }
  1762. } else {
  1763. for (let i = 0; i < data.data.length; i++) {
  1764. let thisdata = data.data[i];
  1765. totalWaibao += thisdata.outsourcePrice;
  1766. thisdata.key = i + 1;
  1767. theArr.push(thisdata);
  1768. }
  1769. }
  1770. totalWaibao = (Math.round(totalWaibao * 1000000) / 1000000).toFixed(6);
  1771. this.setState({
  1772. proDataList: theArr,
  1773. totalWaibao,
  1774. });
  1775. }.bind(this),
  1776. }).always(
  1777. function () {
  1778. this.setState({
  1779. loading: false,
  1780. });
  1781. }.bind(this)
  1782. );
  1783. },
  1784. inRecordCanl() {
  1785. this.setState({
  1786. bvisible: false,
  1787. });
  1788. },
  1789. inRecordData() {
  1790. this.setState({
  1791. loading: true,
  1792. });
  1793. $.ajax({
  1794. method: "get",
  1795. dataType: "json",
  1796. crossDomain: false,
  1797. url:
  1798. globalConfig.context +
  1799. "/api/admin/orderInvoice/salesmanOrderInvoiceList",
  1800. data: {
  1801. orderNo: this.state.selectedRowKeys[0],
  1802. pageSize: 9999999,
  1803. },
  1804. success: function (data) {
  1805. let theArr = [];
  1806. let sum = 0;
  1807. if (!data.data) {
  1808. if (data.error && data.error.length) {
  1809. message.warning(data.error[0].message);
  1810. }
  1811. } else {
  1812. for (let i = 0; i < data.data.list.length; i++) {
  1813. let thisdata = data.data.list[i];
  1814. sum += parseFloat(thisdata.amount);
  1815. theArr.push({
  1816. id: thisdata.id,
  1817. orderno: thisdata.orderno, //订单编号
  1818. amount: thisdata.amount, //签单金额
  1819. createTime: thisdata.createTime, //流程状态
  1820. status: thisdata.status, //结算状态
  1821. rejectReason: thisdata.rejectReason,
  1822. approval:thisdata.approval,//0非特批 1待审核 2审核通过
  1823. });
  1824. }
  1825. }
  1826. this.setState({
  1827. recordData: theArr,
  1828. sum: sum.toFixed(6),
  1829. });
  1830. }.bind(this),
  1831. }).done(
  1832. function () {
  1833. this.setState({
  1834. loading: false,
  1835. });
  1836. }.bind(this)
  1837. );
  1838. },
  1839. // 通过弹出备注框
  1840. pass() {
  1841. this.setState({
  1842. reason: "",
  1843. passVisible: true,
  1844. });
  1845. },
  1846. passCancel() {
  1847. this.setState({
  1848. reason: "",
  1849. passVisible: false,
  1850. });
  1851. },
  1852. printAll() {
  1853. this.setState({
  1854. dvisible: true,
  1855. });
  1856. this.loadData(1, 9999999);
  1857. },
  1858. render() {
  1859. const formItemLayout = {
  1860. labelCol: { span: 8 },
  1861. wrapperCol: { span: 14 },
  1862. };
  1863. const FormItem = Form.Item;
  1864. const { RangePicker } = DatePicker;
  1865. const cuiDataList = this.state.contactList || [];
  1866. const rowSelection = {
  1867. selectedRowKeys: this.state.selectedRowKeys,
  1868. onChange: (selectedRowKeys, selectedRows) => {
  1869. this.setState({
  1870. modalVisible: false,
  1871. selectedRows: selectedRows.slice(-1),
  1872. selectedRowKeys: selectedRowKeys.slice(-1),
  1873. });
  1874. },
  1875. onSelect: (recordt) => {
  1876. this.setState({
  1877. modalVisible: false,
  1878. recordt: recordt.id,
  1879. });
  1880. },
  1881. };
  1882. return (
  1883. <div className="user-content">
  1884. {this.state.resVisible ? (
  1885. <ResolutionDetail
  1886. cancel={this.resCancel}
  1887. detail={this.state.resRecord}
  1888. visible={this.state.resVisible}
  1889. id={this.state.resRecord.orderNo}
  1890. />
  1891. ) : (
  1892. ""
  1893. )}
  1894. <ShowModalDiv ShowModal={this.state.showModal} />
  1895. <div className="content-title" style={{ marginBottom: 10 }}>
  1896. <span style={{ fontWeight: 900, fontSize: 16 }}>特批订单审核</span>
  1897. </div>
  1898. <Tabs defaultActiveKey="2" onChange={this.callback} className="test">
  1899. <TabPane tab="更改表格显示数据" key="1">
  1900. <div style={{ marginLeft: 10 }}>
  1901. <ChooseList
  1902. columns={this.state.columns}
  1903. changeFn={this.changeList}
  1904. changeList={this.state.changeList}
  1905. top={55}
  1906. margin={11}
  1907. />
  1908. </div>
  1909. </TabPane>
  1910. <TabPane tab="搜索" key="2">
  1911. <div className="user-search" style={{ marginLeft: 10 }}>
  1912. <Input
  1913. placeholder="订单编号"
  1914. value={this.state.orderNoSearch}
  1915. onChange={(e) => {
  1916. this.setState({ orderNoSearch: e.target.value });
  1917. }}
  1918. />
  1919. <Input
  1920. placeholder="客户名称"
  1921. value={this.state.nameSearch}
  1922. onChange={(e) => {
  1923. this.setState({ nameSearch: e.target.value });
  1924. }}
  1925. />
  1926. <DepartmentList
  1927. value={this.state.departmenttList}
  1928. onChange={e => {
  1929. this.setState({ departmenttList: e });
  1930. }}/>
  1931. <Input
  1932. placeholder="合同编号"
  1933. value={this.state.contractNoSearch}
  1934. onChange={(e) => {
  1935. this.setState({
  1936. contractNoSearch: e.target.value,
  1937. });
  1938. }}
  1939. />
  1940. <Select
  1941. placeholder="特批状态"
  1942. onChange={(e) => {
  1943. this.setState({ approvalSearch: e });
  1944. }}
  1945. style={{ width: 160, marginRight: 5 }}
  1946. value={this.state.approvalSearch}
  1947. >
  1948. <Option value="1">特批待审核</Option>
  1949. <Option value="2">特批(通过以及驳回)</Option>
  1950. </Select>
  1951. <Select
  1952. placeholder="结算状态"
  1953. onChange={(e) => {
  1954. this.setState({ liquidationStatusSearch: e });
  1955. }}
  1956. style={{ width: 160, marginRight: 5 }}
  1957. value={this.state.liquidationStatusSearch}
  1958. >
  1959. <Option value="0">首付待付清</Option>
  1960. <Option value="1">尾款待付清</Option>
  1961. <Option value="2">已付清</Option>
  1962. </Select>
  1963. <span style={{}}>下单日期:</span>
  1964. <RangePicker
  1965. value={[
  1966. this.state.releaseDate[0]
  1967. ? moment(this.state.releaseDate[0])
  1968. : null,
  1969. this.state.releaseDate[1]
  1970. ? moment(this.state.releaseDate[1])
  1971. : null,
  1972. ]}
  1973. onChange={(data, dataString) => {
  1974. this.setState({ releaseDate: dataString });
  1975. }}
  1976. />
  1977. <Button
  1978. type="primary"
  1979. onClick={this.search}
  1980. style={{ marginLeft: 10 }}
  1981. disabled={this.state.loadingA ? true : false}
  1982. >
  1983. 搜索
  1984. </Button>
  1985. <Button onClick={this.reset}>重置</Button>
  1986. </div>
  1987. </TabPane>
  1988. <TabPane tab="打印" key="3">
  1989. <Button
  1990. type="primary"
  1991. style={{ margin: "11px 0px 10px 10px" }}
  1992. onClick={this.printAll}
  1993. disabled={!this.state.dataSource.length}
  1994. >
  1995. 打印所有列表信息
  1996. </Button>
  1997. <Button
  1998. type="primary"
  1999. disabled={this.state.selectedRowKeys.length != 1}
  2000. style={{ margin: "11px 0px 10px 10px" }}
  2001. onClick={() => {
  2002. this.inRecordData();
  2003. this.setState({
  2004. bvisible: true,
  2005. });
  2006. }}
  2007. >
  2008. 打印开票详情
  2009. </Button>
  2010. <Button
  2011. type="primary"
  2012. disabled={this.state.selectedRowKeys.length != 1}
  2013. style={{ margin: "11px 0px 10px 10px" }}
  2014. onClick={() => {
  2015. this.waterData();
  2016. this.setState({
  2017. cvisible: true,
  2018. });
  2019. }}
  2020. >
  2021. 打印收款流水
  2022. </Button>
  2023. <Button
  2024. type="primary"
  2025. disabled={this.state.selectedRowKeys.length != 1}
  2026. style={{ margin: "11px 0px 10px 10px" }}
  2027. onClick={() => {
  2028. this.timeData();
  2029. this.setState({
  2030. timeVisible: true,
  2031. });
  2032. }}
  2033. >
  2034. 打印工时信息
  2035. </Button>
  2036. <Button
  2037. type="primary"
  2038. disabled={this.state.selectedRowKeys.length != 1}
  2039. style={{ margin: "11px 0px 10px 10px" }}
  2040. onClick={() => {
  2041. this.cuiData();
  2042. this.setState({
  2043. cuiVisible: true,
  2044. });
  2045. }}
  2046. >
  2047. 打印催款信息
  2048. </Button>
  2049. <Button
  2050. type="primary"
  2051. disabled={this.state.selectedRowKeys.length != 1}
  2052. style={{ margin: "11px 0px 10px 10px" }}
  2053. onClick={() => {
  2054. this.proData();
  2055. this.setState({
  2056. proVisible: true,
  2057. });
  2058. }}
  2059. >
  2060. 打印项目信息
  2061. </Button>
  2062. </TabPane>
  2063. <TabPane tab="导出Excel" key="4">
  2064. {/* <Button
  2065. type="primary"
  2066. style={{ margin: "11px 0px 10px 10px" }}
  2067. onClick={this.exportAll}
  2068. >
  2069. 导出当前列表
  2070. </Button> */}
  2071. <Button
  2072. type="primary"
  2073. disabled={this.state.selectedRowKeys.length != 1}
  2074. style={{ margin: "11px 0px 10px 10px" }}
  2075. onClick={this.exportKaip}
  2076. >
  2077. 导出所选开票详情
  2078. </Button>
  2079. <Button
  2080. type="primary"
  2081. disabled={this.state.selectedRowKeys.length != 1}
  2082. style={{ margin: "11px 0px 10px 10px" }}
  2083. onClick={this.exportWater}
  2084. >
  2085. 导出所选收款详情流水
  2086. </Button>
  2087. <Button
  2088. type="primary"
  2089. disabled={this.state.selectedRowKeys.length != 1}
  2090. style={{ margin: "11px 0px 10px 10px" }}
  2091. onClick={this.exportTime}
  2092. >
  2093. 导出所选工时信息
  2094. </Button>
  2095. <Button
  2096. type="primary"
  2097. disabled={this.state.selectedRowKeys.length != 1}
  2098. style={{ margin: "11px 0px 10px 10px" }}
  2099. onClick={this.exportCui}
  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={this.exportPro}
  2108. >
  2109. 导出项目详情
  2110. </Button>
  2111. </TabPane>
  2112. <TabPane tab="查看" key="5">
  2113. <Button
  2114. type="primary"
  2115. disabled={this.state.selectedRowKeys.length != 1}
  2116. style={{ margin: "11px 0px 10px 10px" }}
  2117. onClick={() => {
  2118. this.inRecordData();
  2119. this.setState({
  2120. bvisible: true,
  2121. });
  2122. }}
  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={() => {
  2131. this.waterData();
  2132. this.setState({
  2133. cvisible: true,
  2134. });
  2135. }}
  2136. >
  2137. 详情收款流水
  2138. </Button>
  2139. <Button
  2140. type="primary"
  2141. disabled={this.state.selectedRowKeys.length != 1}
  2142. style={{ margin: "11px 0px 10px 10px" }}
  2143. onClick={() => {
  2144. this.timeData();
  2145. this.setState({
  2146. timeVisible: true,
  2147. });
  2148. }}
  2149. >
  2150. 工时信息
  2151. </Button>
  2152. <Button
  2153. type="primary"
  2154. disabled={this.state.selectedRowKeys.length != 1}
  2155. style={{ margin: "11px 0px 10px 10px" }}
  2156. onClick={() => {
  2157. this.cuiData();
  2158. this.setState({
  2159. cuiVisible: true,
  2160. });
  2161. }}
  2162. >
  2163. 催款信息
  2164. </Button>
  2165. <Button
  2166. type="primary"
  2167. disabled={this.state.selectedRowKeys.length != 1}
  2168. style={{ margin: "11px 0px 10px 10px" }}
  2169. onClick={() => {
  2170. this.proData();
  2171. this.setState({
  2172. proVisible: true,
  2173. });
  2174. }}
  2175. >
  2176. 项目信息
  2177. </Button>
  2178. </TabPane>
  2179. {/* <TabPane tab="批量操作" key="6">
  2180. <Button
  2181. type="primary"
  2182. disabled={this.state.selectedRowKeys.length == 0}
  2183. style={{ margin: "0px 0px 10px 10px" }}
  2184. onClick={e => {
  2185. e.stopPropagation(),
  2186. this.evaluateY(this.state.selectedRowKeys, "财务专员");
  2187. }}
  2188. >
  2189. 转交
  2190. </Button>
  2191. </TabPane> */}
  2192. </Tabs>
  2193. <div className="user-search">
  2194. <div className="patent-table">
  2195. <Spin spinning={this.state.loading}>
  2196. <Table
  2197. columns={
  2198. this.state.changeList == undefined
  2199. ? this.state.columns
  2200. : this.state.changeList
  2201. }
  2202. dataSource={this.state.dataSource}
  2203. rowSelection={rowSelection}
  2204. pagination={this.state.pagination}
  2205. onRowClick={this.tableRowClick}
  2206. bordered
  2207. size="small"
  2208. />
  2209. </Spin>
  2210. </div>
  2211. {this.state.visible ? <Modal
  2212. maskClosable={false}
  2213. className="customeDetails"
  2214. footer=""
  2215. title="订单详情"
  2216. width="1000px"
  2217. visible={this.state.visible}
  2218. onOk={this.visitOk}
  2219. onCancel={this.visitCancel}
  2220. >
  2221. <Form
  2222. layout="horizontal"
  2223. onSubmit={this.handleSubmit}
  2224. id="demand-form"
  2225. style={{ paddingBottom: "40px" }}
  2226. >
  2227. <Spin spinning={this.state.loading}>
  2228. <div className="clearfix">
  2229. <div style={{position:"absolute",top:'-52px',left:'81px',zIndex:10000}}>
  2230. <OrderItemStatus deleteSign={this.state.deleteSign}/>
  2231. </div>
  2232. <FormItem
  2233. className="half-item"
  2234. {...formItemLayout}
  2235. label="订单编号"
  2236. >
  2237. <span>{this.state.orderNo}</span>
  2238. </FormItem>
  2239. <FormItem
  2240. className="half-item"
  2241. {...formItemLayout}
  2242. label="合同编号"
  2243. >
  2244. <span>{this.state.contractNo}</span>
  2245. </FormItem>
  2246. <FormItem
  2247. className="half-item"
  2248. {...formItemLayout}
  2249. label="客户名称"
  2250. >
  2251. <span>
  2252. {this.state.userName}
  2253. <EnterpriseNameChange
  2254. type='journal'
  2255. style={{ marginLeft: 10 }}
  2256. enterpriseId={this.state.orderUid}/>
  2257. </span>
  2258. </FormItem>
  2259. <FormItem
  2260. className="half-item"
  2261. {...formItemLayout}
  2262. label="合同签订时间"
  2263. >
  2264. <span>{this.state.signDate}</span>
  2265. </FormItem>
  2266. <FormItem
  2267. className="half-item"
  2268. {...formItemLayout}
  2269. label="流程状态"
  2270. >
  2271. <span>{getProcessStatus(this.state.processStatus)}</span>
  2272. </FormItem>
  2273. <FormItem
  2274. className="half-item"
  2275. {...formItemLayout}
  2276. label="结算状态"
  2277. >
  2278. <span>
  2279. {getLiquidationStatus(this.state.liquidationStatus)}
  2280. </span>
  2281. </FormItem>
  2282. <FormItem
  2283. className="half-item"
  2284. {...formItemLayout}
  2285. label="企业联系人"
  2286. >
  2287. <span>{this.state.contacts}</span>
  2288. </FormItem>
  2289. <FormItem
  2290. className="half-item"
  2291. {...formItemLayout}
  2292. label="联系人电话"
  2293. >
  2294. <span>{this.state.contactMobile}</span>
  2295. </FormItem>
  2296. <FormItem
  2297. className="half-item"
  2298. {...formItemLayout}
  2299. label="企业法人"
  2300. >
  2301. <span>{this.state.legalPerson}</span>
  2302. </FormItem>
  2303. <FormItem
  2304. className="half-item"
  2305. {...formItemLayout}
  2306. label="法人电话"
  2307. >
  2308. <span>{this.state.legalPersonTel}</span>
  2309. </FormItem>
  2310. <FormItem
  2311. className="half-item"
  2312. {...formItemLayout}
  2313. label="签单金额(万元)"
  2314. >
  2315. <span>{this.state.totalAmount}</span>
  2316. </FormItem>
  2317. <FormItem
  2318. className="half-item"
  2319. {...formItemLayout}
  2320. label="首付金额(万元)"
  2321. >
  2322. <span>{this.state.firstAmount}</span>
  2323. </FormItem>
  2324. <FormItem
  2325. className="half-item"
  2326. {...formItemLayout}
  2327. label="特批立项"
  2328. >
  2329. <span>{getApprovedState(this.state.approval)}</span>
  2330. </FormItem>
  2331. <FormItem
  2332. className="half-item"
  2333. {...formItemLayout}
  2334. label="已收款项(万元)"
  2335. >
  2336. <span>{this.state.settlementAmount}</span>
  2337. </FormItem>
  2338. <FormItem
  2339. className="half-item"
  2340. {...formItemLayout}
  2341. label="是否外包"
  2342. >
  2343. <span>{this.state.outsource}</span>
  2344. </FormItem>
  2345. <div className="clearfix">
  2346. <FormItem
  2347. labelCol={{ span: 4 }}
  2348. wrapperCol={{ span: 16 }}
  2349. label="订单留言"
  2350. >
  2351. <span>{this.state.orderRemarks}</span>
  2352. </FormItem>
  2353. </div>
  2354. <div className="clearfix">
  2355. <FormItem
  2356. labelCol={{ span: 4 }}
  2357. wrapperCol={{ span: 18 }}
  2358. label={
  2359. <span>
  2360. <strong style={{ color: "#f00" }}>*</strong>
  2361. 合同扫描件
  2362. </span>
  2363. }
  2364. >
  2365. <PicturesWall
  2366. domId={'approveds1'}
  2367. fileList={this.getOrgCodeUrl}
  2368. pictureUrl={this.state.orgCodeUrl}
  2369. />
  2370. <p>图片建议:要清晰。</p>
  2371. <Button
  2372. style={{
  2373. float: "right",
  2374. marginRight: "140px",
  2375. marginTop: "20px",
  2376. }}
  2377. onClick={this.getOrderLog}
  2378. >
  2379. 查看订单 日志
  2380. </Button>
  2381. </FormItem>
  2382. <FormItem
  2383. labelCol={{ span: 4 }}
  2384. wrapperCol={{ span: 18 }}
  2385. label={
  2386. <span>
  2387. 补充协议
  2388. </span>
  2389. }
  2390. >
  2391. <PicturesWall
  2392. domId={'approveds2'}
  2393. fileList={this.getReplenishUrl}
  2394. pictureUrl={this.state.replenishUrl}
  2395. url="/api/admin/order/uploadOrderImg"
  2396. sign=""
  2397. />
  2398. <p>图片建议:要清晰。</p>
  2399. </FormItem>
  2400. </div>
  2401. <ContentUrl
  2402. processStatus={1}
  2403. domId = {"approContents"}
  2404. contentUrl = {this.state.contentUrl}
  2405. imgId = {"approContentsImg"}
  2406. />
  2407. <div className="clearfix">
  2408. <FormItem
  2409. className="half-item"
  2410. {...formItemLayout}
  2411. label="订单负责人"
  2412. >
  2413. <span>{this.state.salesmanName}</span>
  2414. </FormItem>
  2415. <FormItem
  2416. className="half-item"
  2417. {...formItemLayout}
  2418. label="订单负责人电话"
  2419. >
  2420. <span>{this.state.salesmanMobile}</span>
  2421. </FormItem>
  2422. </div>
  2423. <div className="clearfix">
  2424. <FormItem
  2425. className="half-item"
  2426. {...formItemLayout}
  2427. label="财务负责人"
  2428. >
  2429. <span>{this.state.financeName}</span>
  2430. </FormItem>
  2431. <FormItem
  2432. className="half-item"
  2433. {...formItemLayout}
  2434. label="财务负责人电话"
  2435. >
  2436. <span>{this.state.financeMobile}</span>
  2437. </FormItem>
  2438. </div>
  2439. {/* */}
  2440. <OrderCoor orderNo={this.state.orderNos}/>
  2441. <div>
  2442. <span style={{ marginLeft: "50px", fontSize: "18px" }}>
  2443. 项目业务
  2444. </span>
  2445. {this.state.processStatus == 0 ? (
  2446. <Button
  2447. type="primary"
  2448. onClick={this.addDetailed}
  2449. style={{
  2450. float: "right",
  2451. marginRight: "50px",
  2452. marginBottom: "15px",
  2453. }}
  2454. >
  2455. 添加项目明细
  2456. </Button>
  2457. ) : (
  2458. ""
  2459. )}
  2460. </div>
  2461. <div className="patent-table">
  2462. <Spin spinning={this.state.loading}>
  2463. <Table
  2464. columns={this.state.columnsX}
  2465. dataSource={this.state.dataSourceX}
  2466. pagination={this.state.paginations}
  2467. onRowClick={this.tableRowClickX}
  2468. bordered
  2469. size="small"
  2470. />
  2471. </Spin>
  2472. </div>
  2473. <div style={{ marginTop: 10 }}>
  2474. <span style={{ marginLeft: 50, fontSize: "18px" }}>
  2475. 催款节点
  2476. </span>
  2477. <span
  2478. style={{
  2479. display: cuiDataList.length ? "none" : "inline-block",
  2480. marginLeft: 10,
  2481. color: "red",
  2482. }}
  2483. >
  2484. 金额总计(万元): {this.state.totalCui}
  2485. </span>
  2486. </div>
  2487. <div className="clearfix">
  2488. <Spin spinning={this.state.loading}>
  2489. <Form layout="horizontal" id="demand-form">
  2490. <Table
  2491. pagination={false}
  2492. bordered
  2493. size="small"
  2494. columns={
  2495. cuiDataList.length
  2496. ? this.state.ContactsLists
  2497. : this.state.ContactsListsNew
  2498. }
  2499. dataSource={
  2500. cuiDataList.length
  2501. ? this.state.contactList
  2502. : this.state.contactListNew
  2503. }
  2504. />
  2505. <Col
  2506. span={24}
  2507. offset={9}
  2508. style={{ marginTop: "15px" }}
  2509. />
  2510. </Form>
  2511. </Spin>
  2512. </div>
  2513. {this.state.approval === 1 && <div className="addSave" style={{ marginTop: "15px" }}>
  2514. <Button
  2515. className="cancel"
  2516. type="primary"
  2517. onClick={this.pass}
  2518. style={{ marginLeft: "200px" }}
  2519. htmlType="submit"
  2520. >
  2521. 通过
  2522. </Button>
  2523. <Button
  2524. className="cancel"
  2525. type="primary"
  2526. onClick={this.examNo}
  2527. style={{ marginLeft: "50px" }}
  2528. htmlType="submit"
  2529. >
  2530. 驳回
  2531. </Button>
  2532. <Button
  2533. className="cancel"
  2534. type="ghost"
  2535. onClick={this.visitCancel}
  2536. style={{ marginLeft: "50px" }}
  2537. >
  2538. 取消
  2539. </Button>
  2540. </div>}
  2541. </div>
  2542. </Spin>
  2543. </Form>
  2544. </Modal> : <div/>}
  2545. {this.state.noVisible ? <Modal
  2546. maskClosable={false}
  2547. visible={this.state.noVisible}
  2548. onOk={this.noCancel}
  2549. onCancel={this.noCancel}
  2550. width="400px"
  2551. title={"拒绝理由"}
  2552. footer=""
  2553. className="admin-desc-content"
  2554. >
  2555. <Form layout="horizontal" id="demand-form">
  2556. <Spin spinning={this.state.loading}>
  2557. <div className="clearfix">
  2558. <FormItem
  2559. labelCol={{ span: 4 }}
  2560. wrapperCol={{ span: 16 }}
  2561. label="拒绝理由"
  2562. >
  2563. <Input
  2564. type="textarea"
  2565. placeholder="请输入拒绝理由"
  2566. rows={4}
  2567. value={this.state.reason}
  2568. onChange={(e) => {
  2569. this.setState({ reason: e.target.value });
  2570. }}
  2571. />
  2572. </FormItem>
  2573. </div>
  2574. <div className="clearfix">
  2575. <Button
  2576. className="cancel"
  2577. type="primary"
  2578. onClick={this.examOks}
  2579. style={{ marginLeft: "50px" }}
  2580. htmlType="submit"
  2581. >
  2582. 确定
  2583. </Button>
  2584. <Button
  2585. className="cancel"
  2586. type="ghost"
  2587. onClick={this.noCancel}
  2588. style={{ marginLeft: "50px" }}
  2589. >
  2590. 取消
  2591. </Button>
  2592. </div>
  2593. </Spin>
  2594. </Form>
  2595. </Modal> : <div/>}
  2596. {this.state.passVisible ? <Modal
  2597. maskClosable={false}
  2598. visible={this.state.passVisible}
  2599. onOk={this.passCancel}
  2600. onCancel={this.passCancel}
  2601. width="400px"
  2602. title={"同意理由"}
  2603. footer=""
  2604. className="admin-desc-content"
  2605. >
  2606. <Form layout="horizontal">
  2607. <Spin spinning={this.state.loading}>
  2608. <div className="clearfix">
  2609. <FormItem
  2610. labelCol={{ span: 4 }}
  2611. wrapperCol={{ span: 16 }}
  2612. label="同意备注"
  2613. >
  2614. <Input
  2615. type="textarea"
  2616. placeholder="请输入备注"
  2617. rows={4}
  2618. value={this.state.reason}
  2619. onChange={(e) => {
  2620. this.setState({ reason: e.target.value });
  2621. }}
  2622. />
  2623. </FormItem>
  2624. </div>
  2625. <div className="clearfix">
  2626. <Button
  2627. className="cancel"
  2628. type="primary"
  2629. onClick={this.examOk}
  2630. style={{ marginLeft: "50px" }}
  2631. htmlType="submit"
  2632. >
  2633. 确定
  2634. </Button>
  2635. <Button
  2636. className="cancel"
  2637. type="ghost"
  2638. onClick={this.passCancel}
  2639. style={{ marginLeft: "50px" }}
  2640. >
  2641. 取消
  2642. </Button>
  2643. </div>
  2644. </Spin>
  2645. </Form>
  2646. </Modal> : <div/>}
  2647. {this.state.rizhivisible ? <Modal
  2648. visible={this.state.rizhivisible}
  2649. className="admin-desc-content"
  2650. width="800px"
  2651. maskClosable={false}
  2652. title="订单日志"
  2653. footer={null}
  2654. onCancel={this.closeOrderLog}
  2655. >
  2656. <div className="patent-table">
  2657. <Spin spinning={this.state.loading}>
  2658. <Table
  2659. columns={this.state.columnsrizhi}
  2660. dataSource={this.state.dataSourcerizhi}
  2661. pagination={false}
  2662. bordered
  2663. size="small"
  2664. />
  2665. </Spin>
  2666. </div>
  2667. </Modal> : <div/>}
  2668. {this.state.dvisible ? <Modal
  2669. maskClosable={false}
  2670. visible={this.state.dvisible}
  2671. footer=""
  2672. title="所有列表信息"
  2673. className="admin-desc-content"
  2674. width="1400px"
  2675. onCancel={() => {
  2676. // this.loadData();
  2677. this.setState({
  2678. dvisible: false,
  2679. });
  2680. }}
  2681. >
  2682. <Spin spinning={this.state.loading}>
  2683. <div
  2684. className="patent-table"
  2685. style={{
  2686. // width: 900,
  2687. // position: "relative",
  2688. // left: "50%",
  2689. // transform: "translate(-50%)",
  2690. padding: "25px 0 30px 30px",
  2691. }}
  2692. ref={(e) => {
  2693. this.refs.all = e;
  2694. }}
  2695. >
  2696. <Table
  2697. columns={this.state.columns}
  2698. dataSource={this.state.dataSource}
  2699. pagination={false}
  2700. bordered
  2701. size="small"
  2702. />
  2703. </div>
  2704. </Spin>
  2705. <ReactToPrint
  2706. trigger={() => (
  2707. <Button
  2708. type="primary"
  2709. style={{
  2710. float: "right",
  2711. marginTop: 10,
  2712. position: "absolute",
  2713. top: 0,
  2714. right: 30,
  2715. }}
  2716. >
  2717. 打印
  2718. </Button>
  2719. )}
  2720. content={() => this.refs.all}
  2721. />
  2722. </Modal> : <div/>}
  2723. {this.state.bvisible ? <Modal
  2724. maskClosable={false}
  2725. visible={this.state.bvisible}
  2726. footer=""
  2727. title="开票历史记录"
  2728. className="admin-desc-content"
  2729. width="900px"
  2730. onCancel={this.inRecordCanl}
  2731. >
  2732. <Spin spinning={this.state.loading}>
  2733. <div
  2734. className="patent-table"
  2735. ref={(e) => {
  2736. this.refs.kaiPiao = e;
  2737. }}
  2738. >
  2739. <Table
  2740. columns={this.state.columnsDate}
  2741. dataSource={this.state.recordData}
  2742. pagination={false}
  2743. bordered
  2744. size="small"
  2745. />
  2746. <div className="clearfix" style={{ marginTop: "20px" }}>
  2747. <FormItem
  2748. className="half-item"
  2749. {...formItemLayout}
  2750. label={<span style={{ fontSize: "14px" }}>开票总计</span>}
  2751. >
  2752. <span>{this.state.sum + "(万元)"}</span>
  2753. </FormItem>
  2754. </div>
  2755. <ReactToPrint
  2756. trigger={() => (
  2757. <Button
  2758. type="primary"
  2759. style={{
  2760. float: "right",
  2761. // marginTop: 10,
  2762. position: "absolute",
  2763. top: -54,
  2764. right: 30,
  2765. }}
  2766. >
  2767. 打印
  2768. </Button>
  2769. )}
  2770. content={() => this.refs.kaiPiao}
  2771. />
  2772. </div>
  2773. </Spin>
  2774. </Modal> : <div/>}
  2775. {this.state.cvisible ? <Modal
  2776. maskClosable={false}
  2777. visible={this.state.cvisible}
  2778. footer=""
  2779. title="详细收款流水"
  2780. className="admin-desc-content"
  2781. width="1300px"
  2782. onCancel={this.waterCanl}
  2783. >
  2784. <Spin spinning={this.state.loading}>
  2785. <div
  2786. className="patent-table"
  2787. ref={(e) => {
  2788. this.refs.shouKuan = e;
  2789. }}
  2790. >
  2791. <Table
  2792. columns={this.state.waterlistDate}
  2793. dataSource={this.state.waterData}
  2794. pagination={false}
  2795. bordered
  2796. size="small"
  2797. />
  2798. <div className="clearfix" style={{ marginTop: "20px" }}>
  2799. <FormItem
  2800. className="half-item"
  2801. {...formItemLayout}
  2802. label={<span style={{ fontSize: "14px" }}>总计金额</span>}
  2803. >
  2804. <span>{this.state.waterSum + "(万元)"}</span>
  2805. </FormItem>
  2806. </div>
  2807. <ReactToPrint
  2808. trigger={() => (
  2809. <Button
  2810. type="primary"
  2811. style={{
  2812. float: "right",
  2813. position: "absolute",
  2814. top: -54,
  2815. right: 30,
  2816. }}
  2817. >
  2818. 打印
  2819. </Button>
  2820. )}
  2821. content={() => this.refs.shouKuan}
  2822. />
  2823. </div>
  2824. </Spin>
  2825. </Modal> : <div/>}
  2826. {this.state.timeVisible ? <Modal
  2827. maskClosable={false}
  2828. visible={this.state.timeVisible}
  2829. footer=""
  2830. title="工时详情"
  2831. className="admin-desc-content"
  2832. width="1300px"
  2833. pagination={false}
  2834. onCancel={() => {
  2835. // this.loadData();
  2836. this.setState({
  2837. timeVisible: false,
  2838. });
  2839. }}
  2840. >
  2841. <Spin spinning={this.state.loading}>
  2842. <div
  2843. className="patent-table"
  2844. style={
  2845. {
  2846. // width: 900,
  2847. // position: "relative",
  2848. // left: "50%",
  2849. // transform: "translate(-50%)",
  2850. // padding: "25px 0 30px 30px"
  2851. }
  2852. }
  2853. ref={(e) => {
  2854. this.refs.all = e;
  2855. }}
  2856. >
  2857. <Table
  2858. columns={this.state.timeColumns}
  2859. dataSource={this.state.timeDataList}
  2860. scroll={{ x: "max-content", y: 0 }}
  2861. pagination={false}
  2862. bordered
  2863. size="small"
  2864. />
  2865. </div>
  2866. </Spin>
  2867. <ReactToPrint
  2868. trigger={() => (
  2869. <Button
  2870. type="primary"
  2871. style={{
  2872. float: "right",
  2873. marginTop: 10,
  2874. position: "absolute",
  2875. top: 0,
  2876. right: 30,
  2877. }}
  2878. >
  2879. 打印
  2880. </Button>
  2881. )}
  2882. content={() => this.refs.all}
  2883. />
  2884. </Modal> : <div/>}
  2885. {this.state.cuiVisible ? <Modal
  2886. maskClosable={false}
  2887. visible={this.state.cuiVisible}
  2888. footer=""
  2889. title="催款详情"
  2890. className="admin-desc-content"
  2891. width="1300px"
  2892. pagination={false}
  2893. onCancel={() => {
  2894. // this.loadData();
  2895. this.setState({
  2896. cuiVisible: false,
  2897. });
  2898. }}
  2899. >
  2900. <Spin spinning={this.state.loading}>
  2901. <div
  2902. className="patent-table"
  2903. style={
  2904. {
  2905. // width: 900,
  2906. // position: "relative",
  2907. // left: "50%",
  2908. // transform: "translate(-50%)",
  2909. // padding: "25px 0 30px 30px"
  2910. }
  2911. }
  2912. ref={(e) => {
  2913. this.refs.all = e;
  2914. }}
  2915. >
  2916. <Table
  2917. columns={this.state.cuiColumns}
  2918. dataSource={this.state.cuiDataList}
  2919. scroll={{ x: "max-content", y: 0 }}
  2920. pagination={false}
  2921. bordered
  2922. size="small"
  2923. />
  2924. </div>
  2925. </Spin>
  2926. <ReactToPrint
  2927. trigger={() => (
  2928. <Button
  2929. type="primary"
  2930. style={{
  2931. float: "right",
  2932. marginTop: 10,
  2933. position: "absolute",
  2934. top: 0,
  2935. right: 30,
  2936. }}
  2937. >
  2938. 打印
  2939. </Button>
  2940. )}
  2941. content={() => this.refs.all}
  2942. />
  2943. </Modal> : <div/>}
  2944. {this.state.proVisible ? <Modal
  2945. maskClosable={false}
  2946. visible={this.state.proVisible}
  2947. footer=""
  2948. title="项目详情"
  2949. className="admin-desc-content"
  2950. width="1300px"
  2951. pagination={false}
  2952. onCancel={() => {
  2953. // this.loadData();
  2954. this.setState({
  2955. proVisible: false,
  2956. });
  2957. }}
  2958. >
  2959. <Spin spinning={this.state.loading}>
  2960. <Project
  2961. record={this.state.record}
  2962. visible={this.state.pvisible}
  2963. cancel={() => {
  2964. this.setState({ pvisible: false });
  2965. }}
  2966. />
  2967. <div
  2968. className="patent-table"
  2969. style={
  2970. {
  2971. // width: 900,
  2972. // position: "relative",
  2973. // left: "50%",
  2974. // transform: "translate(-50%)",
  2975. // padding: "25px 0 30px 30px"
  2976. }
  2977. }
  2978. ref={(e) => {
  2979. this.refs.all = e;
  2980. }}
  2981. >
  2982. <Table
  2983. columns={this.state.proColumns}
  2984. dataSource={this.state.proDataList}
  2985. // onRowClick={this.tableRowClickPro}
  2986. pagination={false}
  2987. bordered
  2988. size="small"
  2989. />
  2990. </div>
  2991. <span style={{ display: "block", marginTop: 10, color: "red" }}>
  2992. 外包(内部)价格总计(万元):{this.state.totalWaibao}
  2993. </span>
  2994. </Spin>
  2995. <ReactToPrint
  2996. trigger={() => (
  2997. <Button
  2998. type="primary"
  2999. style={{
  3000. float: "right",
  3001. marginTop: 10,
  3002. position: "absolute",
  3003. top: 0,
  3004. right: 30,
  3005. }}
  3006. >
  3007. 打印
  3008. </Button>
  3009. )}
  3010. content={() => this.refs.all}
  3011. />
  3012. </Modal> : <div/>}
  3013. </div>
  3014. {this.state.addnextVisible && <ProjectDetailsReadOnly
  3015. infor={this.state.dataInfor}
  3016. visible={this.state.addnextVisible}
  3017. onCancel={this.nextCancel}
  3018. />}
  3019. </div>
  3020. );
  3021. },
  3022. })
  3023. );
  3024. export default IntentionCustomer;