approveds.jsx 106 KB

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