approveds.jsx 106 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335
  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) => {
  2019. return (
  2020. <Tooltip title={text}>
  2021. <div
  2022. // style={{
  2023. // width: 100,
  2024. // overflow: "hidden",
  2025. // whiteSpace: "nowrap",
  2026. // textOverflow: "ellipsis",
  2027. // }}
  2028. >{text}</div>
  2029. </Tooltip>
  2030. )
  2031. },
  2032. },
  2033. ];
  2034. } else {
  2035. columns = [
  2036. {
  2037. title: "子项目名称",
  2038. dataIndex: "taskName",
  2039. key: "taskName"
  2040. },
  2041. {
  2042. title: "子项目数量",
  2043. dataIndex: "commodityQuantity",
  2044. key: "commodityQuantity"
  2045. },
  2046. {
  2047. title: "拆分操作人",
  2048. dataIndex: "splitAname",
  2049. key: "splitAname"
  2050. },
  2051. {
  2052. title: "项目负责人",
  2053. dataIndex: "receiverName",
  2054. key: "receiverName"
  2055. },
  2056. {
  2057. title: "拆分时间",
  2058. dataIndex: "splitTimes",
  2059. key: "splitTimes"
  2060. }
  2061. ]
  2062. }
  2063. return (
  2064. <Table
  2065. columns={columns}
  2066. dataSource={data}
  2067. pagination={false}
  2068. />
  2069. );
  2070. } else {
  2071. columns = [];
  2072. return (
  2073. <p
  2074. style={{ fontWeight: "bold", color: "red", textAlign: "center" }}
  2075. >
  2076. {e.cSort == 6 ? "暂无派单" : "此项目暂未拆分"}
  2077. </p>
  2078. );
  2079. }
  2080. };
  2081. const formItemLayout = {
  2082. labelCol: { span: 8 },
  2083. wrapperCol: { span: 14 },
  2084. };
  2085. const FormItem = Form.Item;
  2086. const { RangePicker } = DatePicker;
  2087. const cuiDataList = this.state.contactList || [];
  2088. const rowSelection = {
  2089. selectedRowKeys: this.state.selectedRowKeys,
  2090. onChange: (selectedRowKeys, selectedRows) => {
  2091. this.setState({
  2092. modalVisible: false,
  2093. selectedRows: selectedRows.slice(-1),
  2094. selectedRowKeys: selectedRowKeys.slice(-1),
  2095. });
  2096. },
  2097. onSelect: (recordt) => {
  2098. this.setState({
  2099. modalVisible: false,
  2100. recordt: recordt.id,
  2101. });
  2102. },
  2103. };
  2104. const approvaChildren = approvalOptions.map(i => (
  2105. <Option key={i.value}>{i.label}</Option>
  2106. ));
  2107. return (
  2108. <div className="user-content">
  2109. {this.state.resVisible ? (
  2110. <ResolutionDetail
  2111. cancel={this.resCancel}
  2112. detail={this.state.resRecord}
  2113. visible={this.state.resVisible}
  2114. id={this.state.resRecord.orderNo}
  2115. />
  2116. ) : (
  2117. ""
  2118. )}
  2119. <ShowModalDiv ShowModal={this.state.showModal} onClose={() => { this.setState({ showModal: false }) }} />
  2120. <div className="content-title" style={{ marginBottom: 10 }}>
  2121. <span style={{ fontWeight: 900, fontSize: 16 }}>特批订单审核</span>
  2122. </div>
  2123. <Tabs defaultActiveKey="2" onChange={this.callback} className="test">
  2124. <TabPane tab="更改表格显示数据" key="1">
  2125. <div style={{ marginLeft: 10 }}>
  2126. <ChooseList
  2127. columns={this.state.columns}
  2128. changeFn={this.changeList}
  2129. changeList={this.state.changeList}
  2130. top={55}
  2131. margin={11}
  2132. />
  2133. </div>
  2134. </TabPane>
  2135. <TabPane tab="搜索" key="2">
  2136. <div className="user-search" style={{ marginLeft: 10 }}>
  2137. <Input
  2138. placeholder="订单编号"
  2139. value={this.state.orderNoSearch}
  2140. onChange={(e) => {
  2141. this.setState({ orderNoSearch: e.target.value });
  2142. }}
  2143. />
  2144. <Input
  2145. placeholder="客户名称"
  2146. value={this.state.nameSearch}
  2147. onChange={(e) => {
  2148. this.setState({ nameSearch: e.target.value });
  2149. }}
  2150. />
  2151. <Cascaders
  2152. ref={node => this.Cascaders = node}
  2153. placeholder="订单部门"
  2154. id="id"
  2155. name="name"
  2156. children="list"
  2157. height={28}
  2158. onSel={(e) => {
  2159. this.setState({
  2160. departmenttList: JSON.stringify(e),
  2161. });
  2162. }}
  2163. />
  2164. {/* <DepartmentList
  2165. value={this.state.departmenttList}
  2166. onChange={e => {
  2167. this.setState({ departmenttList: e });
  2168. }} /> */}
  2169. <Input
  2170. placeholder="合同编号"
  2171. value={this.state.contractNoSearch}
  2172. onChange={(e) => {
  2173. this.setState({
  2174. contractNoSearch: e.target.value,
  2175. });
  2176. }}
  2177. />
  2178. <Select
  2179. placeholder="特批状态"
  2180. onChange={(e) => {
  2181. this.setState({ approvalSearch: e });
  2182. }}
  2183. style={{ width: 160, marginRight: 5 }}
  2184. value={this.state.approvalSearch}
  2185. >
  2186. <Option value="1">特批待审核</Option>
  2187. <Option value="2">特批(通过以及驳回)</Option>
  2188. </Select>
  2189. <Select
  2190. placeholder="结算状态"
  2191. onChange={(e) => {
  2192. this.setState({ liquidationStatusSearch: e });
  2193. }}
  2194. style={{ width: 160, marginRight: 5 }}
  2195. value={this.state.liquidationStatusSearch}
  2196. >
  2197. <Option value="0">首付待付清</Option>
  2198. <Option value="1">尾款待付清</Option>
  2199. <Option value="2">已付清</Option>
  2200. </Select>
  2201. <Select
  2202. mode="multiple"
  2203. style={{ width: 200 }}
  2204. placeholder="特批类型"
  2205. value={this.state.approvaType}
  2206. onChange={e => {
  2207. this.setState({
  2208. approvaType: e
  2209. })
  2210. }}
  2211. >
  2212. {approvaChildren}
  2213. </Select>
  2214. <span style={{}}>下单日期:</span>
  2215. <RangePicker
  2216. value={[
  2217. this.state.releaseDate[0]
  2218. ? moment(this.state.releaseDate[0])
  2219. : null,
  2220. this.state.releaseDate[1]
  2221. ? moment(this.state.releaseDate[1])
  2222. : null,
  2223. ]}
  2224. onChange={(data, dataString) => {
  2225. this.setState({ releaseDate: dataString });
  2226. }}
  2227. />
  2228. <Button
  2229. type="primary"
  2230. onClick={this.search}
  2231. style={{ marginLeft: 10 }}
  2232. disabled={this.state.loadingA ? true : false}
  2233. >
  2234. 搜索
  2235. </Button>
  2236. <Button onClick={this.reset}>重置</Button>
  2237. </div>
  2238. </TabPane>
  2239. <TabPane tab="打印" key="3">
  2240. <Button
  2241. type="primary"
  2242. style={{ margin: "11px 0px 10px 10px" }}
  2243. onClick={this.printAll}
  2244. disabled={!this.state.dataSource.length}
  2245. >
  2246. 打印所有列表信息
  2247. </Button>
  2248. <Button
  2249. type="primary"
  2250. disabled={this.state.selectedRowKeys.length != 1}
  2251. style={{ margin: "11px 0px 10px 10px" }}
  2252. onClick={() => {
  2253. this.inRecordData();
  2254. this.setState({
  2255. bvisible: true,
  2256. });
  2257. }}
  2258. >
  2259. 打印开票详情
  2260. </Button>
  2261. <Button
  2262. type="primary"
  2263. disabled={this.state.selectedRowKeys.length != 1}
  2264. style={{ margin: "11px 0px 10px 10px" }}
  2265. onClick={() => {
  2266. this.waterData();
  2267. this.setState({
  2268. cvisible: true,
  2269. });
  2270. }}
  2271. >
  2272. 打印收款流水
  2273. </Button>
  2274. <Button
  2275. type="primary"
  2276. disabled={this.state.selectedRowKeys.length != 1}
  2277. style={{ margin: "11px 0px 10px 10px" }}
  2278. onClick={() => {
  2279. this.timeData();
  2280. this.setState({
  2281. timeVisible: true,
  2282. });
  2283. }}
  2284. >
  2285. 打印工时信息
  2286. </Button>
  2287. <Button
  2288. type="primary"
  2289. disabled={this.state.selectedRowKeys.length != 1}
  2290. style={{ margin: "11px 0px 10px 10px" }}
  2291. onClick={() => {
  2292. this.cuiData();
  2293. this.setState({
  2294. cuiVisible: true,
  2295. });
  2296. }}
  2297. >
  2298. 打印催款信息
  2299. </Button>
  2300. <Button
  2301. type="primary"
  2302. disabled={this.state.selectedRowKeys.length != 1}
  2303. style={{ margin: "11px 0px 10px 10px" }}
  2304. onClick={() => {
  2305. this.proData();
  2306. this.setState({
  2307. proVisible: true,
  2308. });
  2309. }}
  2310. >
  2311. 打印项目信息
  2312. </Button>
  2313. </TabPane>
  2314. <TabPane tab="导出Excel" key="4">
  2315. {/* <Button
  2316. type="primary"
  2317. style={{ margin: "11px 0px 10px 10px" }}
  2318. onClick={this.exportAll}
  2319. >
  2320. 导出当前列表
  2321. </Button> */}
  2322. <Button
  2323. type="primary"
  2324. disabled={this.state.selectedRowKeys.length != 1}
  2325. style={{ margin: "11px 0px 10px 10px" }}
  2326. onClick={this.exportKaip}
  2327. >
  2328. 导出所选开票详情
  2329. </Button>
  2330. <Button
  2331. type="primary"
  2332. disabled={this.state.selectedRowKeys.length != 1}
  2333. style={{ margin: "11px 0px 10px 10px" }}
  2334. onClick={this.exportWater}
  2335. >
  2336. 导出所选收款详情流水
  2337. </Button>
  2338. <Button
  2339. type="primary"
  2340. disabled={this.state.selectedRowKeys.length != 1}
  2341. style={{ margin: "11px 0px 10px 10px" }}
  2342. onClick={this.exportTime}
  2343. >
  2344. 导出所选工时信息
  2345. </Button>
  2346. <Button
  2347. type="primary"
  2348. disabled={this.state.selectedRowKeys.length != 1}
  2349. style={{ margin: "11px 0px 10px 10px" }}
  2350. onClick={this.exportCui}
  2351. >
  2352. 导出催款信息
  2353. </Button>
  2354. <Button
  2355. type="primary"
  2356. disabled={this.state.selectedRowKeys.length != 1}
  2357. style={{ margin: "11px 0px 10px 10px" }}
  2358. onClick={this.exportPro}
  2359. >
  2360. 导出项目详情
  2361. </Button>
  2362. </TabPane>
  2363. <TabPane tab="查看" key="5">
  2364. <Button
  2365. type="primary"
  2366. disabled={this.state.selectedRowKeys.length != 1}
  2367. style={{ margin: "11px 0px 10px 10px" }}
  2368. onClick={() => {
  2369. this.inRecordData();
  2370. this.setState({
  2371. bvisible: true,
  2372. });
  2373. }}
  2374. >
  2375. 查看开票详情
  2376. </Button>
  2377. <Button
  2378. type="primary"
  2379. disabled={this.state.selectedRowKeys.length != 1}
  2380. style={{ margin: "11px 0px 10px 10px" }}
  2381. onClick={() => {
  2382. this.waterData();
  2383. this.setState({
  2384. cvisible: true,
  2385. });
  2386. }}
  2387. >
  2388. 详情收款流水
  2389. </Button>
  2390. <Button
  2391. type="primary"
  2392. disabled={this.state.selectedRowKeys.length != 1}
  2393. style={{ margin: "11px 0px 10px 10px" }}
  2394. onClick={() => {
  2395. this.timeData();
  2396. this.setState({
  2397. timeVisible: true,
  2398. });
  2399. }}
  2400. >
  2401. 工时信息
  2402. </Button>
  2403. <Button
  2404. type="primary"
  2405. disabled={this.state.selectedRowKeys.length != 1}
  2406. style={{ margin: "11px 0px 10px 10px" }}
  2407. onClick={() => {
  2408. this.cuiData();
  2409. this.setState({
  2410. cuiVisible: true,
  2411. });
  2412. }}
  2413. >
  2414. 催款信息
  2415. </Button>
  2416. <Button
  2417. type="primary"
  2418. disabled={this.state.selectedRowKeys.length != 1}
  2419. style={{ margin: "11px 0px 10px 10px" }}
  2420. onClick={() => {
  2421. this.proData();
  2422. this.setState({
  2423. proVisible: true,
  2424. });
  2425. }}
  2426. >
  2427. 项目信息
  2428. </Button>
  2429. </TabPane>
  2430. {/* <TabPane tab="批量操作" key="6">
  2431. <Button
  2432. type="primary"
  2433. disabled={this.state.selectedRowKeys.length == 0}
  2434. style={{ margin: "0px 0px 10px 10px" }}
  2435. onClick={e => {
  2436. e.stopPropagation(),
  2437. this.evaluateY(this.state.selectedRowKeys, "财务专员");
  2438. }}
  2439. >
  2440. 转交
  2441. </Button>
  2442. </TabPane> */}
  2443. </Tabs>
  2444. <div className="user-search">
  2445. <div className="patent-table">
  2446. <Spin spinning={this.state.loading}>
  2447. <Table
  2448. columns={
  2449. this.state.changeList == undefined
  2450. ? this.state.columns
  2451. : this.state.changeList
  2452. }
  2453. dataSource={this.state.dataSource}
  2454. rowSelection={rowSelection}
  2455. pagination={this.state.pagination}
  2456. onRowClick={this.tableRowClick}
  2457. bordered
  2458. size="small"
  2459. />
  2460. </Spin>
  2461. </div>
  2462. {this.state.visible ? <Modal
  2463. maskClosable={false}
  2464. className="customeDetails"
  2465. footer=""
  2466. title="订单详情"
  2467. width="1200px"
  2468. visible={this.state.visible}
  2469. onOk={this.visitOk}
  2470. onCancel={this.visitCancel}
  2471. >
  2472. <Form
  2473. layout="horizontal"
  2474. onSubmit={this.handleSubmit}
  2475. id="demand-form"
  2476. style={{ paddingBottom: "15px" }}
  2477. >
  2478. <Spin spinning={this.state.loading}>
  2479. <div className="clearfix">
  2480. <div style={{ position: "absolute", top: '-52px', left: '81px', zIndex: 10000 }}>
  2481. <OrderItemStatus deleteSign={this.state.deleteSign} />
  2482. </div>
  2483. <FormItem
  2484. className="half-item"
  2485. {...formItemLayout}
  2486. label="订单编号"
  2487. >
  2488. <span>{this.state.orderNo}</span>
  2489. </FormItem>
  2490. <FormItem
  2491. className="half-item"
  2492. {...formItemLayout}
  2493. label="合同编号"
  2494. >
  2495. <span>{this.state.contractNo}</span>
  2496. </FormItem>
  2497. <FormItem
  2498. className="half-item"
  2499. {...formItemLayout}
  2500. label="客户名称"
  2501. >
  2502. <span>
  2503. {this.state.userName}
  2504. <EnterpriseNameChange
  2505. type='journal'
  2506. style={{ marginLeft: 10 }}
  2507. enterpriseId={this.state.orderUid} />
  2508. </span>
  2509. </FormItem>
  2510. <FormItem
  2511. className="half-item"
  2512. {...formItemLayout}
  2513. label="合同签订时间"
  2514. >
  2515. <span>{this.state.signDate}</span>
  2516. </FormItem>
  2517. <FormItem
  2518. className="half-item"
  2519. {...formItemLayout}
  2520. label="流程状态"
  2521. >
  2522. <span>{getProcessStatus(this.state.processStatus, this.state.examineName, this.state.approval)}</span>
  2523. <FlowChart
  2524. orderNo={this.state.orderNos}
  2525. />
  2526. </FormItem>
  2527. <FormItem
  2528. className="half-item"
  2529. {...formItemLayout}
  2530. label="结算状态"
  2531. >
  2532. <span>
  2533. {getLiquidationStatus(this.state.liquidationStatus)}
  2534. </span>
  2535. </FormItem>
  2536. <FormItem
  2537. className="half-item"
  2538. {...formItemLayout}
  2539. label="企业联系人"
  2540. >
  2541. <span>{this.state.contacts}</span>
  2542. </FormItem>
  2543. <FormItem
  2544. className="half-item"
  2545. {...formItemLayout}
  2546. label="联系人电话"
  2547. >
  2548. <span>{this.state.contactMobile}</span>
  2549. </FormItem>
  2550. <FormItem
  2551. className="half-item"
  2552. {...formItemLayout}
  2553. label="企业法人"
  2554. >
  2555. <span>{this.state.legalPerson}</span>
  2556. </FormItem>
  2557. <FormItem
  2558. className="half-item"
  2559. {...formItemLayout}
  2560. label="法人电话"
  2561. >
  2562. <span>{this.state.legalPersonTel}</span>
  2563. </FormItem>
  2564. <FormItem
  2565. className="half-item"
  2566. {...formItemLayout}
  2567. label="签单金额(万元)"
  2568. >
  2569. <span>{this.state.totalAmount}</span>
  2570. </FormItem>
  2571. <FormItem
  2572. className="half-item"
  2573. {...formItemLayout}
  2574. label="首付金额(万元)"
  2575. >
  2576. <span>{this.state.firstAmount}</span>
  2577. </FormItem>
  2578. <FormItem
  2579. className="half-item"
  2580. {...formItemLayout}
  2581. label="特批立项"
  2582. >
  2583. <span>
  2584. {getApprovedState(this.state.approval)}
  2585. {getApprovedType(this.state.type ? this.state.type.split(",").map(Number) : [], this.state.typeExplain, 1)}
  2586. </span>
  2587. </FormItem>
  2588. <FormItem
  2589. className="half-item"
  2590. {...formItemLayout}
  2591. label="已收款项(万元)"
  2592. >
  2593. <span>{this.state.settlementAmount}</span>
  2594. </FormItem>
  2595. <FormItem
  2596. className="half-item"
  2597. {...formItemLayout}
  2598. label="是否外包"
  2599. >
  2600. <span>{this.state.outsource}</span>
  2601. </FormItem>
  2602. <div className="clearfix">
  2603. <FormItem
  2604. labelCol={{ span: 4 }}
  2605. wrapperCol={{ span: 16 }}
  2606. label="订单留言"
  2607. >
  2608. <span>{this.state.orderRemarks}</span>
  2609. </FormItem>
  2610. </div>
  2611. <div className="clearfix">
  2612. <FormItem
  2613. labelCol={{ span: 4 }}
  2614. wrapperCol={{ span: 18 }}
  2615. label={
  2616. <span>
  2617. <strong style={{ color: "#f00" }}>*</strong>
  2618. 合同扫描件
  2619. </span>
  2620. }
  2621. >
  2622. <PicturesWall
  2623. domId={'approveds1'}
  2624. fileList={this.getOrgCodeUrl}
  2625. pictureUrl={this.state.orgCodeUrl}
  2626. />
  2627. <p>图片建议:要清晰。</p>
  2628. <Button
  2629. style={{
  2630. float: "right",
  2631. marginRight: "140px",
  2632. marginTop: "20px",
  2633. }}
  2634. onClick={this.getOrderLog}
  2635. >
  2636. 查看订单日志
  2637. </Button>
  2638. </FormItem>
  2639. {/* 高新纯咨询合同说明详情 */}
  2640. <Gxczx
  2641. knowledgeServices={this.state.knowledgeServices}
  2642. auditServices={this.state.auditServices}
  2643. addDeductionServices={this.state.addDeductionServices}
  2644. knowledgeOther={this.state.knowledgeOther}
  2645. auditOther={this.state.auditOther}
  2646. addDeductionOther={this.state.addDeductionOther}
  2647. />
  2648. <FormItem
  2649. labelCol={{ span: 4 }}
  2650. wrapperCol={{ span: 18 }}
  2651. label={
  2652. <span>
  2653. 补充协议
  2654. </span>
  2655. }
  2656. >
  2657. <PicturesWall
  2658. domId={'approveds2'}
  2659. fileList={this.getReplenishUrl}
  2660. pictureUrl={this.state.replenishUrl}
  2661. url="/api/admin/order/uploadOrderImg"
  2662. sign=""
  2663. />
  2664. <p>图片建议:要清晰。</p>
  2665. </FormItem>
  2666. </div>
  2667. <ContentUrl
  2668. processStatus={2}
  2669. domId={"approContents"}
  2670. contentUrl={this.state.contentUrl}
  2671. imgId={"approContentsImg"}
  2672. />
  2673. <Property
  2674. patentStatus={this.state.patentStatus}
  2675. />
  2676. <div className="clearfix">
  2677. <FormItem
  2678. className="half-item"
  2679. {...formItemLayout}
  2680. label="订单负责人"
  2681. >
  2682. <span>{this.state.salesmanName}</span>
  2683. </FormItem>
  2684. <FormItem
  2685. className="half-item"
  2686. {...formItemLayout}
  2687. label="订单负责人电话"
  2688. >
  2689. <span>{this.state.salesmanMobile}</span>
  2690. </FormItem>
  2691. </div>
  2692. <div className="clearfix">
  2693. <FormItem
  2694. className="half-item"
  2695. {...formItemLayout}
  2696. label="财务负责人"
  2697. >
  2698. <span>{this.state.financeName}</span>
  2699. </FormItem>
  2700. <FormItem
  2701. className="half-item"
  2702. {...formItemLayout}
  2703. label="财务负责人电话"
  2704. >
  2705. <span>{this.state.financeMobile}</span>
  2706. </FormItem>
  2707. </div>
  2708. {/* */}
  2709. <OrderCoor orderNo={this.state.orderNos} />
  2710. <div>
  2711. <span style={{ marginLeft: "50px", fontSize: "18px" }}>
  2712. 项目业务
  2713. </span>
  2714. {this.state.processStatus == 0 ? (
  2715. <Button
  2716. type="primary"
  2717. onClick={this.addDetailed}
  2718. style={{
  2719. float: "right",
  2720. marginRight: "50px",
  2721. marginBottom: "15px",
  2722. }}
  2723. >
  2724. 添加项目明细
  2725. </Button>
  2726. ) : (
  2727. ""
  2728. )}
  2729. </div>
  2730. <div className="patent-table">
  2731. <Spin spinning={this.state.loading}>
  2732. <Table
  2733. columns={this.state.columnsX}
  2734. dataSource={this.state.dataSourceX}
  2735. pagination={this.state.paginations}
  2736. onRowClick={this.tableRowClickX}
  2737. expandedRowRender={expandedRowRenderVip}
  2738. rowClassName={this.addRowColor}
  2739. bordered
  2740. size="small"
  2741. />
  2742. </Spin>
  2743. </div>
  2744. <div style={{ marginTop: 10 }}>
  2745. <span style={{ marginLeft: 50, fontSize: "18px" }}>
  2746. 催款节点
  2747. </span>
  2748. <span
  2749. style={{
  2750. display: cuiDataList.length ? "none" : "inline-block",
  2751. marginLeft: 10,
  2752. color: "red",
  2753. }}
  2754. >
  2755. 金额总计(万元): {this.state.totalCui}
  2756. </span>
  2757. </div>
  2758. <div className="clearfix">
  2759. <Spin spinning={this.state.loading}>
  2760. <Form layout="horizontal" id="demand-form">
  2761. <Table
  2762. pagination={false}
  2763. bordered
  2764. size="small"
  2765. columns={
  2766. cuiDataList.length
  2767. ? this.state.ContactsLists
  2768. : this.state.ContactsListsNew
  2769. }
  2770. dataSource={
  2771. cuiDataList.length
  2772. ? this.state.contactList
  2773. : this.state.contactListNew
  2774. }
  2775. />
  2776. <Col
  2777. span={24}
  2778. offset={9}
  2779. style={{ marginTop: "15px" }}
  2780. />
  2781. </Form>
  2782. </Spin>
  2783. </div>
  2784. {(this.state.approval === 1 || this.state.approval === 4 || this.state.approval === 7) &&
  2785. <div className="addSave" style={{ display: "flex", justifyContent: "center" }}>
  2786. <Button
  2787. className="cancel"
  2788. type="primary"
  2789. onClick={this.pass}
  2790. style={{ margin: 25 }}
  2791. htmlType="submit"
  2792. >
  2793. 通过
  2794. </Button>
  2795. <Button
  2796. className="cancel"
  2797. type="primary"
  2798. onClick={this.examNo}
  2799. style={{ margin: 25 }}
  2800. htmlType="submit"
  2801. >
  2802. 驳回
  2803. </Button>
  2804. <Button
  2805. className="cancel"
  2806. type="ghost"
  2807. onClick={this.visitCancel}
  2808. style={{ margin: 25 }}
  2809. >
  2810. 取消
  2811. </Button>
  2812. </div>}
  2813. </div>
  2814. </Spin>
  2815. </Form>
  2816. </Modal> : <div />}
  2817. {this.state.noVisible ? <Modal
  2818. maskClosable={false}
  2819. visible={this.state.noVisible}
  2820. onOk={this.noCancel}
  2821. onCancel={this.noCancel}
  2822. width="400px"
  2823. title={"拒绝理由"}
  2824. footer=""
  2825. className="admin-desc-content"
  2826. >
  2827. <Form layout="horizontal" id="demand-form">
  2828. <Spin spinning={this.state.loading}>
  2829. <div className="clearfix">
  2830. <FormItem
  2831. labelCol={{ span: 4 }}
  2832. wrapperCol={{ span: 16 }}
  2833. label="拒绝理由"
  2834. >
  2835. <Input
  2836. type="textarea"
  2837. placeholder="请输入拒绝理由"
  2838. rows={4}
  2839. value={this.state.reason}
  2840. onChange={(e) => {
  2841. this.setState({ reason: e.target.value });
  2842. }}
  2843. />
  2844. </FormItem>
  2845. </div>
  2846. <div className="clearfix">
  2847. <Button
  2848. className="cancel"
  2849. type="primary"
  2850. onClick={this.examOks}
  2851. style={{ marginLeft: "50px" }}
  2852. htmlType="submit"
  2853. >
  2854. 确定
  2855. </Button>
  2856. <Button
  2857. className="cancel"
  2858. type="ghost"
  2859. onClick={this.noCancel}
  2860. style={{ marginLeft: "50px" }}
  2861. >
  2862. 取消
  2863. </Button>
  2864. </div>
  2865. </Spin>
  2866. </Form>
  2867. </Modal> : <div />}
  2868. {this.state.passVisible ? <Modal
  2869. maskClosable={false}
  2870. visible={this.state.passVisible}
  2871. onOk={this.passCancel}
  2872. onCancel={this.passCancel}
  2873. width="400px"
  2874. title={"同意理由"}
  2875. footer=""
  2876. className="admin-desc-content"
  2877. >
  2878. <Form layout="horizontal">
  2879. <Spin spinning={this.state.loading}>
  2880. <div className="clearfix">
  2881. <FormItem
  2882. labelCol={{ span: 4 }}
  2883. wrapperCol={{ span: 16 }}
  2884. label="同意备注"
  2885. >
  2886. <Input
  2887. type="textarea"
  2888. placeholder="请输入备注"
  2889. rows={4}
  2890. value={this.state.reason}
  2891. onChange={(e) => {
  2892. this.setState({ reason: e.target.value });
  2893. }}
  2894. />
  2895. </FormItem>
  2896. </div>
  2897. <div className="clearfix">
  2898. <Button
  2899. className="cancel"
  2900. type="primary"
  2901. onClick={this.examOk}
  2902. style={{ marginLeft: "50px" }}
  2903. htmlType="submit"
  2904. >
  2905. 确定
  2906. </Button>
  2907. <Button
  2908. className="cancel"
  2909. type="ghost"
  2910. onClick={this.passCancel}
  2911. style={{ marginLeft: "50px" }}
  2912. >
  2913. 取消
  2914. </Button>
  2915. </div>
  2916. </Spin>
  2917. </Form>
  2918. </Modal> : <div />}
  2919. {this.state.rizhivisible ? <Modal
  2920. visible={this.state.rizhivisible}
  2921. className="admin-desc-content"
  2922. width="800px"
  2923. maskClosable={false}
  2924. title="订单日志"
  2925. footer={null}
  2926. onCancel={this.closeOrderLog}
  2927. >
  2928. <div className="patent-table">
  2929. <Spin spinning={this.state.loading}>
  2930. <Table
  2931. columns={this.state.columnsrizhi}
  2932. dataSource={this.state.dataSourcerizhi}
  2933. pagination={false}
  2934. bordered
  2935. size="small"
  2936. />
  2937. </Spin>
  2938. </div>
  2939. </Modal> : <div />}
  2940. {this.state.dvisible ? <Modal
  2941. maskClosable={false}
  2942. visible={this.state.dvisible}
  2943. footer=""
  2944. title="所有列表信息"
  2945. className="admin-desc-content"
  2946. width="1400px"
  2947. onCancel={() => {
  2948. // this.loadData();
  2949. this.setState({
  2950. dvisible: false,
  2951. });
  2952. }}
  2953. >
  2954. <Spin spinning={this.state.loading}>
  2955. <div
  2956. className="patent-table"
  2957. style={{
  2958. // width: 900,
  2959. // position: "relative",
  2960. // left: "50%",
  2961. // transform: "translate(-50%)",
  2962. padding: "25px 0 30px 30px",
  2963. }}
  2964. ref={(e) => {
  2965. this.refs.all = e;
  2966. }}
  2967. >
  2968. <Table
  2969. columns={this.state.columns}
  2970. dataSource={this.state.dataSource}
  2971. pagination={false}
  2972. bordered
  2973. size="small"
  2974. />
  2975. </div>
  2976. </Spin>
  2977. <ReactToPrint
  2978. trigger={() => (
  2979. <Button
  2980. type="primary"
  2981. style={{
  2982. float: "right",
  2983. marginTop: 10,
  2984. position: "absolute",
  2985. top: 0,
  2986. right: 30,
  2987. }}
  2988. >
  2989. 打印
  2990. </Button>
  2991. )}
  2992. content={() => this.refs.all}
  2993. />
  2994. </Modal> : <div />}
  2995. {this.state.bvisible ? <Modal
  2996. maskClosable={false}
  2997. visible={this.state.bvisible}
  2998. footer=""
  2999. title="开票历史记录"
  3000. className="admin-desc-content"
  3001. width="1200px"
  3002. onCancel={this.inRecordCanl}
  3003. >
  3004. <Spin spinning={this.state.loading}>
  3005. <div
  3006. className="patent-table"
  3007. ref={(e) => {
  3008. this.refs.kaiPiao = e;
  3009. }}
  3010. >
  3011. <Table
  3012. columns={this.state.columnsDate}
  3013. dataSource={this.state.recordData}
  3014. pagination={false}
  3015. bordered
  3016. size="small"
  3017. />
  3018. <div className="clearfix" style={{ marginTop: "20px" }}>
  3019. <FormItem
  3020. className="half-item"
  3021. {...formItemLayout}
  3022. label={<span style={{ fontSize: "14px" }}>开票总计</span>}
  3023. >
  3024. <span>{this.state.sum + "(万元)"}</span>
  3025. </FormItem>
  3026. </div>
  3027. <ReactToPrint
  3028. trigger={() => (
  3029. <Button
  3030. type="primary"
  3031. style={{
  3032. float: "right",
  3033. // marginTop: 10,
  3034. position: "absolute",
  3035. top: -54,
  3036. right: 30,
  3037. }}
  3038. >
  3039. 打印
  3040. </Button>
  3041. )}
  3042. content={() => this.refs.kaiPiao}
  3043. />
  3044. </div>
  3045. </Spin>
  3046. </Modal> : <div />}
  3047. {this.state.cvisible ? <Modal
  3048. maskClosable={false}
  3049. visible={this.state.cvisible}
  3050. footer=""
  3051. title="详细收款流水"
  3052. className="admin-desc-content"
  3053. width="1300px"
  3054. onCancel={this.waterCanl}
  3055. >
  3056. <Spin spinning={this.state.loading}>
  3057. <div
  3058. className="patent-table"
  3059. ref={(e) => {
  3060. this.refs.shouKuan = e;
  3061. }}
  3062. >
  3063. <Table
  3064. columns={this.state.waterlistDate}
  3065. dataSource={this.state.waterData}
  3066. pagination={false}
  3067. bordered
  3068. size="small"
  3069. />
  3070. <div className="clearfix" style={{ marginTop: "20px" }}>
  3071. <FormItem
  3072. className="half-item"
  3073. {...formItemLayout}
  3074. label={<span style={{ fontSize: "14px" }}>总计金额</span>}
  3075. >
  3076. <span>{this.state.waterSum + "(万元)"}</span>
  3077. </FormItem>
  3078. </div>
  3079. <ReactToPrint
  3080. trigger={() => (
  3081. <Button
  3082. type="primary"
  3083. style={{
  3084. float: "right",
  3085. position: "absolute",
  3086. top: -54,
  3087. right: 30,
  3088. }}
  3089. >
  3090. 打印
  3091. </Button>
  3092. )}
  3093. content={() => this.refs.shouKuan}
  3094. />
  3095. </div>
  3096. </Spin>
  3097. </Modal> : <div />}
  3098. {this.state.timeVisible ? <Modal
  3099. maskClosable={false}
  3100. visible={this.state.timeVisible}
  3101. footer=""
  3102. title="工时详情"
  3103. className="admin-desc-content"
  3104. width="1300px"
  3105. pagination={false}
  3106. onCancel={() => {
  3107. // this.loadData();
  3108. this.setState({
  3109. timeVisible: false,
  3110. });
  3111. }}
  3112. >
  3113. <Spin spinning={this.state.loading}>
  3114. <div
  3115. className="patent-table"
  3116. style={
  3117. {
  3118. // width: 900,
  3119. // position: "relative",
  3120. // left: "50%",
  3121. // transform: "translate(-50%)",
  3122. // padding: "25px 0 30px 30px"
  3123. }
  3124. }
  3125. ref={(e) => {
  3126. this.refs.all = e;
  3127. }}
  3128. >
  3129. <Table
  3130. columns={this.state.timeColumns}
  3131. dataSource={this.state.timeDataList}
  3132. scroll={{ x: "max-content", y: 0 }}
  3133. pagination={false}
  3134. bordered
  3135. size="small"
  3136. />
  3137. </div>
  3138. </Spin>
  3139. <ReactToPrint
  3140. trigger={() => (
  3141. <Button
  3142. type="primary"
  3143. style={{
  3144. float: "right",
  3145. marginTop: 10,
  3146. position: "absolute",
  3147. top: 0,
  3148. right: 30,
  3149. }}
  3150. >
  3151. 打印
  3152. </Button>
  3153. )}
  3154. content={() => this.refs.all}
  3155. />
  3156. </Modal> : <div />}
  3157. {this.state.cuiVisible ? <Modal
  3158. maskClosable={false}
  3159. visible={this.state.cuiVisible}
  3160. footer=""
  3161. title="催款详情"
  3162. className="admin-desc-content"
  3163. width="1300px"
  3164. pagination={false}
  3165. onCancel={() => {
  3166. // this.loadData();
  3167. this.setState({
  3168. cuiVisible: false,
  3169. });
  3170. }}
  3171. >
  3172. <Spin spinning={this.state.loading}>
  3173. <div
  3174. className="patent-table"
  3175. style={
  3176. {
  3177. // width: 900,
  3178. // position: "relative",
  3179. // left: "50%",
  3180. // transform: "translate(-50%)",
  3181. // padding: "25px 0 30px 30px"
  3182. }
  3183. }
  3184. ref={(e) => {
  3185. this.refs.all = e;
  3186. }}
  3187. >
  3188. <Table
  3189. columns={this.state.cuiColumns}
  3190. dataSource={this.state.cuiDataList}
  3191. scroll={{ x: "max-content", y: 0 }}
  3192. pagination={false}
  3193. bordered
  3194. size="small"
  3195. />
  3196. </div>
  3197. </Spin>
  3198. <ReactToPrint
  3199. trigger={() => (
  3200. <Button
  3201. type="primary"
  3202. style={{
  3203. float: "right",
  3204. marginTop: 10,
  3205. position: "absolute",
  3206. top: 0,
  3207. right: 30,
  3208. }}
  3209. >
  3210. 打印
  3211. </Button>
  3212. )}
  3213. content={() => this.refs.all}
  3214. />
  3215. </Modal> : <div />}
  3216. {this.state.proVisible ? <Modal
  3217. maskClosable={false}
  3218. visible={this.state.proVisible}
  3219. footer=""
  3220. title="项目详情"
  3221. className="admin-desc-content"
  3222. width="1300px"
  3223. pagination={false}
  3224. onCancel={() => {
  3225. // this.loadData();
  3226. this.setState({
  3227. proVisible: false,
  3228. });
  3229. }}
  3230. >
  3231. <Spin spinning={this.state.loading}>
  3232. <Project
  3233. record={this.state.record}
  3234. visible={this.state.pvisible}
  3235. cancel={() => {
  3236. this.setState({ pvisible: false });
  3237. }}
  3238. />
  3239. <div
  3240. className="patent-table"
  3241. style={
  3242. {
  3243. // width: 900,
  3244. // position: "relative",
  3245. // left: "50%",
  3246. // transform: "translate(-50%)",
  3247. // padding: "25px 0 30px 30px"
  3248. }
  3249. }
  3250. ref={(e) => {
  3251. this.refs.all = e;
  3252. }}
  3253. >
  3254. <Table
  3255. columns={this.state.proColumns}
  3256. dataSource={this.state.proDataList}
  3257. // onRowClick={this.tableRowClickPro}
  3258. pagination={false}
  3259. bordered
  3260. size="small"
  3261. />
  3262. </div>
  3263. <span style={{ display: "block", marginTop: 10, color: "red" }}>
  3264. 外包(内部)价格总计(万元):{this.state.totalWaibao}
  3265. </span>
  3266. </Spin>
  3267. <ReactToPrint
  3268. trigger={() => (
  3269. <Button
  3270. type="primary"
  3271. style={{
  3272. float: "right",
  3273. marginTop: 10,
  3274. position: "absolute",
  3275. top: 0,
  3276. right: 30,
  3277. }}
  3278. >
  3279. 打印
  3280. </Button>
  3281. )}
  3282. content={() => this.refs.all}
  3283. />
  3284. </Modal> : <div />}
  3285. </div>
  3286. {/* {this.state.addnextVisible &&
  3287. <ProjectDetailsReadOnly
  3288. infor={this.state.dataInfor}
  3289. visible={this.state.addnextVisible}
  3290. onCancel={this.nextCancel}
  3291. />} */}
  3292. {
  3293. // 项目业务详情
  3294. this.state.addnextVisible &&
  3295. <NewEditProject
  3296. readOnly={
  3297. this.state.dataInfor &&
  3298. Object.keys(this.state.dataInfor).length > 0 &&
  3299. this.state.processStatus !== 0
  3300. }
  3301. visible={this.state.addnextVisible}
  3302. dataInfor={this.state.dataInfor}
  3303. onCancel={this.nextCancel}
  3304. />
  3305. }
  3306. </div>
  3307. );
  3308. },
  3309. })
  3310. );
  3311. export default IntentionCustomer;