approveds.jsx 97 KB

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