taskQuery.jsx 86 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433
  1. import React from 'react';
  2. import $ from 'jquery';
  3. import '@/manageCenter/financialManage/distribute/public.less';
  4. import {
  5. Button,
  6. Form,
  7. Input,
  8. Select,
  9. Radio,
  10. Spin,
  11. Table,
  12. message,
  13. Modal,
  14. Tabs,
  15. Tag, DatePicker, Tooltip
  16. } from "antd";
  17. import ResolutionDetail from "@/resolutionDetail";
  18. import OrderDetail from "../../order/orderNew/changeComponent/orderDetail";
  19. import OrderRiZi from "@/orderRiZi.jsx";
  20. import PatentSchedule from './patentSchedule';
  21. import './table.less';
  22. import {
  23. getProcessStatus,
  24. getApproval,
  25. getTaskStatus,
  26. getLiquidationStatus,
  27. splitUrl,
  28. getProjectStatus,
  29. getboutique,
  30. getprovince,
  31. ShowModal,
  32. getProjectName
  33. } from "@/tools";
  34. const FormItem = Form.Item;
  35. const { TabPane } = Tabs
  36. import ShowModalDiv from "@/showModal.jsx";
  37. import ImgList from "../../../common/imgList";
  38. import { ChooseList } from "../../order/orderNew/chooseList";
  39. import moment from "moment";
  40. import DeclarationProgress from "../../../common/declarationProgress";
  41. import ProjectDetailsReadOnly from "../../../common/projectDetailsReadOnly";
  42. import OrderItemStatus from "../../../common/orderItemStatus";
  43. import EnterpriseNameChange from "../../../common/enterpriseNameChange";
  44. const Task = React.createClass({
  45. loadData(pageNo) {
  46. this.state.data = [];
  47. this.setState({
  48. loading: true,
  49. });
  50. $.ajax({
  51. method: "get",
  52. dataType: "json",
  53. crossDomain: false,
  54. url: globalConfig.context + "/api/admin/orderProject/selectTaskList",
  55. data: {
  56. pageNo: pageNo || 1,
  57. pageSize: this.state.pagination.pageSize,
  58. specially: 1, //经理
  59. name: this.state.nameSearch, //客户名称
  60. orderNo: this.state.orderNoSearch, //订单编号
  61. depId: this.state.departmenttSearch, //订单部门
  62. taskId: this.state.taskNoSearch, //任务编号
  63. adminName: this.state.adminName, //任务受理人
  64. },
  65. success: function (data) {
  66. ShowModal(this);
  67. let theArr = [];
  68. if (!data.data || !data.data.list) {
  69. if (data.error && data.error.length) {
  70. message.warning(data.error[0].message);
  71. }
  72. } else {
  73. for (let i = 0; i < data.data.list.length; i++) {
  74. let thisdata = data.data.list[i];
  75. theArr.push({
  76. key: i,
  77. orderNo: thisdata.orderNo, //订单编号
  78. id: thisdata.id, //任务ID
  79. taskName: thisdata.taskName, //名称
  80. cname: thisdata.cname, //项目品类
  81. projectStatus: thisdata.projectStatus, //项目状态
  82. taskStatus: thisdata.taskStatus, //任务状态
  83. taskDate: thisdata.taskDate, //分配时间
  84. commodityQuantity: thisdata.commodityQuantity, //软著数量
  85. alreadyNumber: thisdata.alreadyNumber, //下证数量
  86. userName:
  87. thisdata.taskName.substring(0, 5) === "软件著作权"
  88. ? thisdata.userName +
  89. "(" +
  90. thisdata.commodityQuantity.toString() +
  91. "/" +
  92. thisdata.alreadyNumber +
  93. ")"
  94. : thisdata.userName, //用户名
  95. depName: thisdata.depName, //部门名称
  96. receiverName: thisdata.receiverName, //任务责任人
  97. splitStatus: thisdata.splitStatus, //是否为子项目 2是 1主项目
  98. splitSuper: thisdata.splitSuper,
  99. splitId: thisdata.splitId,
  100. });
  101. }
  102. }
  103. this.state.pagination.current = data.data.pageNo;
  104. this.state.pagination.total = data.data.totalCount;
  105. if (data.data && data.data.list && !data.data.list.length) {
  106. this.state.pagination.current = 0;
  107. this.state.pagination.total = 0;
  108. }
  109. this.setState({
  110. dataSource: theArr,
  111. page: data.data.pageNo,
  112. pagination: this.state.pagination,
  113. });
  114. }.bind(this),
  115. }).always(
  116. function () {
  117. this.setState({
  118. loading: false,
  119. });
  120. }.bind(this)
  121. );
  122. },
  123. getInitialState() {
  124. return {
  125. orderData: [],
  126. orderNo: "",
  127. jiedian: [],
  128. declarationBatch: 1,
  129. dataInfor: {},
  130. jiedianNew: [],
  131. timeRecordparse: {},
  132. activeKey: "1",
  133. searchMore: true,
  134. releaseDate: [],
  135. roleName: "",
  136. testFlag: true,
  137. departmentArr: [],
  138. boHuivisible: false,
  139. selectedRowKeys: [],
  140. selectedRows: [],
  141. paginations: false,
  142. loading: false,
  143. pagination: {
  144. defaultCurrent: 1,
  145. defaultPageSize: 10,
  146. showQuickJumper: true,
  147. pageSize: 10,
  148. onChange: function (page) {
  149. this.loadData(page);
  150. }.bind(this),
  151. showTotal: function (total) {
  152. return "共" + total + "条数据";
  153. },
  154. },
  155. columns: [
  156. {
  157. title: "项目编号",
  158. dataIndex: "id",
  159. key: "id",
  160. render: (text, record) => {
  161. if (record.splitStatus == 2) {
  162. return <span>{record.splitSuper + "-" + record.splitId}</span>;
  163. } else {
  164. return text;
  165. }
  166. },
  167. },
  168. {
  169. title: "项目名称",
  170. dataIndex: "taskName",
  171. key: "taskName",
  172. className: "taskName",
  173. render: (text, record) => {
  174. return <span>{text}<span style={{ color: "red" }}>{record.patentTypeName}</span></span>
  175. }
  176. },
  177. {
  178. title: "订单编号",
  179. dataIndex: "orderNo",
  180. key: "orderNo",
  181. },
  182. {
  183. title: "业务类别",
  184. dataIndex: "cname",
  185. key: "cname",
  186. },
  187. {
  188. title: "客户名称",
  189. dataIndex: "userName",
  190. key: "userName",
  191. className: "userName",
  192. render: text => {
  193. return (
  194. <Tooltip title={text}>
  195. <div style={{
  196. maxWidth: '150px',
  197. overflow: 'hidden',
  198. textOverflow: "ellipsis",
  199. whiteSpace: 'nowrap',
  200. }}>{text}</div>
  201. </Tooltip>
  202. )
  203. }
  204. },
  205. {
  206. title: "任务状态",
  207. dataIndex: "taskStatus",
  208. key: "taskStatus",
  209. render: (text) => {
  210. return getTaskStatus(text);
  211. },
  212. },
  213. {
  214. title: "项目状态",
  215. dataIndex: "projectStatus",
  216. key: "projectStatus",
  217. render: (text) => {
  218. return getProjectStatus(text);
  219. },
  220. },
  221. {
  222. title: "分配时间",
  223. dataIndex: "taskDate",
  224. key: "taskDate",
  225. },
  226. {
  227. title: "任务数量",
  228. dataIndex: "commodityQuantity",
  229. key: "commodityQuantity",
  230. },
  231. {
  232. title: "任务责任人",
  233. dataIndex: "receiverName",
  234. key: "receiverName",
  235. },
  236. {
  237. title: "订单部门",
  238. dataIndex: "depName",
  239. key: "depName",
  240. },
  241. ],
  242. dataSource: [],
  243. searchTime: [],
  244. columnsX: [
  245. {
  246. title: "业务项目名称",
  247. dataIndex: "commodityName",
  248. key: "commodityName",
  249. render: (text, record) => {
  250. return (
  251. <span>{text}<span style={{ color: "red" }}>{record.patentTypeName}</span></span>
  252. )
  253. }
  254. },
  255. {
  256. title: "项目类别",
  257. dataIndex: "cname",
  258. key: "cname",
  259. },
  260. {
  261. title: "项目数量",
  262. dataIndex: "commodityQuantity",
  263. key: "commodityQuantity",
  264. render: (text, record) => {
  265. if (record.splitStatus == 1) {
  266. return (
  267. <span>
  268. {text}{" "}
  269. {/* <Tag
  270. color="#108ee9"
  271. onClick={(e) => {
  272. e.stopPropagation();
  273. this.showRes(record);
  274. }}
  275. >
  276. 已拆
  277. </Tag> */}
  278. </span>
  279. );
  280. } else {
  281. return text;
  282. }
  283. },
  284. },
  285. {
  286. title: "金额(万元)",
  287. dataIndex: "commodityPrice",
  288. key: "commodityPrice",
  289. render: (text, record) => {
  290. return (
  291. <span>
  292. {this.props.isZxs || text === -1 ? '***' : text}
  293. </span>
  294. )
  295. }
  296. },
  297. {
  298. title: "负责人",
  299. dataIndex: "contacts",
  300. key: "contacts",
  301. },
  302. {
  303. title: "负责人电话",
  304. dataIndex: "contactsMobile",
  305. key: "contactsMobile",
  306. },
  307. {
  308. title: "主要项目",
  309. dataIndex: "main",
  310. key: "main",
  311. render: (text) => {
  312. return text ? "是" : "否";
  313. },
  314. },
  315. {
  316. title: "总年限",
  317. dataIndex: "yearSum",
  318. key: "yearSum",
  319. render: (text, record) => {
  320. return (
  321. <div>{["", "一年", "二年", "三年", "四年", "五年"][text]}</div>
  322. );
  323. }
  324. },
  325. {
  326. title: "年限",
  327. dataIndex: "serviceLife",
  328. key: "serviceLife",
  329. render: (text, record) => {
  330. return (
  331. <div>{!!text && JSON.parse(text).toString()}</div>
  332. );
  333. }
  334. },
  335. {
  336. title: "本次派单",
  337. dataIndex: "serviceYear",
  338. key: "serviceYear",
  339. render: (text, record) => {
  340. return (
  341. <div>{!text ? "" : text}</div>
  342. );
  343. }
  344. },
  345. {
  346. title: "项目说明",
  347. dataIndex: "taskComment",
  348. key: "taskComment",
  349. render: (text) => {
  350. return (
  351. <Tooltip title={text}>
  352. <div
  353. style={{
  354. width: 100,
  355. overflow: "hidden",
  356. whiteSpace: "nowrap",
  357. textOverflow: "ellipsis",
  358. }}
  359. >{text}</div>
  360. </Tooltip>
  361. )
  362. },
  363. },
  364. ],
  365. columnsA: [
  366. {
  367. title: "流程",
  368. dataIndex: "content",
  369. key: "content",
  370. align: "center",
  371. },
  372. {
  373. title: "操作人",
  374. dataIndex: "aName",
  375. key: "aName",
  376. align: "center",
  377. },
  378. {
  379. title: "时间",
  380. dataIndex: "createTimes",
  381. key: "createTimes",
  382. align: "center",
  383. },
  384. ],
  385. dataSourceX: [],
  386. dataSourceA: [],
  387. ContactsLists: [
  388. {
  389. title: "批次",
  390. dataIndex: "num",
  391. key: "num",
  392. },
  393. {
  394. title: "下证时间",
  395. dataIndex: "licenceTimes",
  396. key: "licenceTimes",
  397. },
  398. {
  399. title: "下证数量",
  400. dataIndex: "alreadyNumber",
  401. key: "alreadyNumber",
  402. },
  403. {
  404. title: "未下证数量",
  405. dataIndex: "notCount",
  406. key: "notCount",
  407. },
  408. ],
  409. displayFees: "none",
  410. costReduction: '',
  411. officialCost: '',
  412. };
  413. },
  414. componentDidMount() {
  415. this.setColor();
  416. },
  417. componentWillMount() {
  418. this.departmentList();
  419. this.loadData(1);
  420. },
  421. tableRowClick(record) {
  422. let str = record.taskName;
  423. let test = str.indexOf("会员")
  424. if (test == -1) {
  425. this.setState({
  426. isHuiyuan: false
  427. })
  428. } else {
  429. this.setState({
  430. isHuiyuan: true
  431. })
  432. }
  433. this.state.RowData = record;
  434. if (record.taskName.substring(0, 5) === "软件著作权") {
  435. this.setState({
  436. speVisible: true,
  437. id: record.id,
  438. splitStatus: record.splitStatus,
  439. splitSuper: record.splitSuper,
  440. splitId: record.splitId,
  441. dataArr: record,
  442. commodityQuantity: record.commodityQuantity,
  443. });
  444. } else {
  445. this.setState({
  446. visible: true,
  447. splitStatus: record.splitStatus,
  448. splitSuper: record.splitSuper,
  449. splitId: record.splitId,
  450. });
  451. }
  452. this.setState({
  453. isIso: record.taskName.indexOf("贯标") !== -1,
  454. })
  455. this.xiangqing(record.id, record.taskName);
  456. this.xiangqings(record.orderNo);
  457. this.xiangmu(record.orderNo);
  458. this.loaduserss(record);
  459. },
  460. // 拆分详细
  461. showRes(record) {
  462. this.setState({
  463. resVisible: true,
  464. resRecord: record,
  465. });
  466. },
  467. resCancel() {
  468. this.setState({
  469. resVisible: false,
  470. });
  471. },
  472. //订单详情
  473. xiangqing(id) {
  474. $.ajax({
  475. method: "get",
  476. dataType: "json",
  477. crossDomain: false,
  478. url: globalConfig.context + "/api/admin/orderProject/orderTaskDetail",
  479. data: {
  480. id: id,
  481. },
  482. success: function (data) {
  483. if (data.error.length || data.data.list == "") {
  484. if (data.error && data.error.length) {
  485. message.warning(data.error[0].message);
  486. }
  487. } else {
  488. let thisdata = data.data;
  489. this.setState({
  490. certificationCorporate: thisdata.certificationCorporate,//认证费公司
  491. certificationFee: thisdata.certificationFee,//认证费
  492. ifCertificationFee: thisdata.ifCertificationFee,//是否包含认证费
  493. id: thisdata.id, //ID
  494. orderNo: thisdata.orderNo, //订单编号
  495. userName: thisdata.userName, //客户名称
  496. taskName: thisdata.taskName, //任务名称
  497. cname: thisdata.cname, //项目品类
  498. contractNo: thisdata.contractNo, //合同编号
  499. projectStatus: thisdata.projectStatus, //项目状态
  500. taskStatus: thisdata.taskStatus, //任务状态
  501. taskDate: thisdata.taskDate, //分配时间
  502. taskComment: thisdata.taskComment, //说明
  503. attachmentUrl: thisdata.attachmentUrl
  504. ? splitUrl(
  505. thisdata.attachmentUrl,
  506. ",",
  507. globalConfig.avatarHost + "/upload"
  508. )
  509. : [], //图片地址
  510. salesmanName: thisdata.salesmanName, //订单负责人
  511. startDate: thisdata.startDate, //启动日期
  512. endDate: thisdata.endDate, //结束日期
  513. acceptDate: thisdata.acceptDate, //受理日期
  514. reviewDate: thisdata.reviewDate, //评审日期
  515. publicityDate: thisdata.publicityDate, //公示日期
  516. licenceDate: thisdata.licenceDate, //发证日期
  517. contacts: thisdata.contacts, //联系人
  518. contactMobile: thisdata.contactMobile, //联系人电话
  519. legalPerson: thisdata.legalPerson, //法人
  520. legalPersonTel: thisdata.legalPersonTel, //法人电话
  521. certificateNumber: thisdata.certificateNumber, //证书编号
  522. status: thisdata.status, //状态
  523. formRetrieve: thisdata.formRetrieve, //满意度表格
  524. taskRefund: thisdata.taskRefund, //退单
  525. refundContent: thisdata.refundContent, //退单信息
  526. retrieveContent: thisdata.retrieveContent, //回收信息
  527. arrivalMoney: thisdata.arrivalMoney, //是否到款
  528. setUpAmount: thisdata.setUpAmount, //立项金额
  529. declareUser: thisdata.declareUser, //账号
  530. declarePwd: thisdata.declarePwd, //密码
  531. depName: thisdata.depName, //订单部门
  532. outsourceName: thisdata.outsourceName, //外包公司名称
  533. outsourcePrice: thisdata.outsourcePrice, //外包价格
  534. declarationBatch: thisdata.declarationBatch,
  535. bpType: thisdata.bpType,//0 正常 1专利 2软著 3审计 4双软 5高新 6商标
  536. cSort: thisdata.sort,
  537. specialComment: thisdata.specialComment,
  538. urgentDay: thisdata.urgentDay, //有无材料
  539. ifMaterial: thisdata.ifMaterial, //加急情况
  540. spotCheckStatus: thisdata.spotCheckStatus,
  541. setUpStatus: thisdata.setUpStatus,
  542. setUpTime: thisdata.setUpTime,
  543. highTechStatus: thisdata.highTechStatus,
  544. acceptCount: thisdata.acceptCount, //受理数
  545. certificatesCount: thisdata.certificatesCount, //授权数
  546. rejectCount: thisdata.rejectCount, //驳回数
  547. commodityQuantity: thisdata.commodityQuantity, //派单项目数
  548. timeRecordparse: thisdata.timeRecord ? JSON.parse(thisdata.timeRecord) : {},
  549. });
  550. }
  551. }.bind(this),
  552. }).always(
  553. function () {
  554. this.setState({
  555. loading: false,
  556. });
  557. }.bind(this)
  558. );
  559. },
  560. //订单详情
  561. xiangqings(orderNos) {
  562. $.ajax({
  563. method: "get",
  564. dataType: "json",
  565. crossDomain: false,
  566. url: globalConfig.context + "/api/admin/newOrder/getOrderNewDetail",
  567. data: {
  568. orderNo: orderNos,
  569. },
  570. success: function (data) {
  571. let thisdata = data.data;
  572. let ProvinceCityArr = [];
  573. let ProvinceS = thisdata.locationProvince; //省
  574. let citys = thisdata.locationCity; //市
  575. let Areas = thisdata.locationArea; //区
  576. ProvinceCityArr.push(ProvinceS, citys, Areas);
  577. if (data.error.length || data.data.list == "") {
  578. if (data.error && data.error.length) {
  579. message.warning(data.error[0].message);
  580. }
  581. } else {
  582. this.setState({
  583. orderUid: thisdata.uid,
  584. processStatus: thisdata.processStatus, //流程状态
  585. liquidationStatus: thisdata.liquidationStatus, //结算状态
  586. approval: thisdata.approval, //特批状态
  587. orderRemarks: thisdata.orderRemarks, //订单留言
  588. salesmanName: thisdata.salesmanName, //营销员名称
  589. salesmanMobile: thisdata.salesmanMobile, //营销员电话
  590. oldSalesmanName: thisdata.oldSalesmanName, //营销员名称
  591. oldSalesmanMobile: thisdata.oldSalesmanMobile, //营销员电话
  592. financeName: thisdata.financeName, //财务名称
  593. financeMobile: thisdata.financeMobile, //财务电话
  594. nowFinance: thisdata.nowFinance, //财务名称
  595. nowFinanceMobile: thisdata.nowFinanceMobile, //财务电话
  596. depName: thisdata.depName, //订单部门
  597. locationProvince: thisdata.locationProvince,
  598. locationCity: thisdata.locationCity,
  599. locationArea: thisdata.locationArea,
  600. ProvinceCity: ProvinceCityArr,
  601. postalAddress: thisdata.postalAddress, //详细地址
  602. outsource: thisdata.outsource,
  603. deleteSign: thisdata.deleteSign,
  604. });
  605. }
  606. }.bind(this),
  607. }).always(
  608. function () {
  609. this.setState({
  610. loading: false,
  611. });
  612. }.bind(this)
  613. );
  614. },
  615. //查看下证信息
  616. loaduserss(record) {
  617. $.ajax({
  618. method: "get",
  619. dataType: "json",
  620. crossDomain: false,
  621. url: globalConfig.context + "/api/admin/orderProject/selectTaskProgress",
  622. data: {
  623. tid: record.id,
  624. },
  625. success: function (data) {
  626. let theArr = [];
  627. let thisData = [];
  628. if (!thisData) {
  629. if (data.error && data.error.length) {
  630. message.warning(data.error[0].message);
  631. }
  632. thisData = {};
  633. } else {
  634. for (let i = 0; i < data.data.length; i++) {
  635. thisData = data.data[i];
  636. theArr.push({
  637. num: i + 1,
  638. key: i,
  639. id: thisData.id, //编号
  640. alreadyNumber: thisData.alreadyNumber, //下证数
  641. licenceTimes: thisData.licenceTimes, //下证时间
  642. notCount: thisData.notCount, //未下证数
  643. flag: true,
  644. });
  645. }
  646. this.setState({
  647. contactList: theArr,
  648. });
  649. }
  650. }.bind(this),
  651. }).always(
  652. function () {
  653. this.setState({
  654. loading: false,
  655. });
  656. }.bind(this)
  657. );
  658. },
  659. //项目列表
  660. xiangmu(orderNos) {
  661. this.setState({
  662. loading: true,
  663. });
  664. $.ajax({
  665. method: "get",
  666. dataType: "json",
  667. crossDomain: false,
  668. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  669. data: {
  670. orderNo: orderNos,
  671. },
  672. success: function (data) {
  673. let theArr = [];
  674. if (data.error.length || data.data.list == "") {
  675. if (data.error && data.error.length) {
  676. message.warning(data.error[0].message);
  677. }
  678. } else {
  679. for (let i = 0; i < data.data.length; i++) {
  680. let thisdata = data.data[i];
  681. thisdata.key = i;
  682. theArr.push(thisdata);
  683. }
  684. }
  685. this.setState({
  686. dataSourceX: theArr,
  687. });
  688. }.bind(this),
  689. }).always(
  690. function () {
  691. this.setState({
  692. loading: false,
  693. });
  694. }.bind(this)
  695. );
  696. },
  697. caozuorizhi() {
  698. this.setState({
  699. visibleA: true,
  700. });
  701. $.ajax({
  702. method: "get",
  703. dataType: "json",
  704. crossDomain: false,
  705. url: globalConfig.context + "/api/admin/orderProject/TaskLogList",
  706. data: {
  707. id: this.state.id,
  708. },
  709. success: function (data) {
  710. let theArr = [];
  711. if (data.error.length || data.data.list == "") {
  712. if (data.error && data.error.length) {
  713. message.warning(data.error[0].message);
  714. }
  715. } else {
  716. for (let i = 0; i < data.data.length; i++) {
  717. let thisdata = data.data[i];
  718. theArr.push({
  719. key: i,
  720. id: thisdata.id, //日志ID
  721. content: thisdata.content, //流程
  722. taskId: thisdata.taskId, //任务ID
  723. aName: thisdata.aName, //负责人
  724. createTimes: thisdata.createTimes, //时间
  725. });
  726. }
  727. }
  728. this.setState({
  729. dataSourceA: theArr,
  730. });
  731. }.bind(this),
  732. }).always(
  733. function () {
  734. this.setState({
  735. loading: false,
  736. });
  737. }.bind(this)
  738. );
  739. },
  740. //关闭操作工时
  741. visitCancelA() {
  742. this.setState({
  743. visibleA: false,
  744. });
  745. },
  746. //关闭详情
  747. visitCancel() {
  748. this.setState({
  749. visible: false,
  750. speVisible: false,
  751. activeKey: "1",
  752. });
  753. this.loadData(this.state.page);
  754. },
  755. visitOk() {
  756. this.setState({
  757. visible: false,
  758. });
  759. this.loadData(this.state.page);
  760. },
  761. setColor() {
  762. $(".userName span").after(
  763. "(<span class='ruanzhu'>软著数</span>/<span class='xiazheng'>下证数</span>)"
  764. );
  765. },
  766. closeDesc(e, s) {
  767. this.state.showDesc = e;
  768. if (s) {
  769. this.loadData(this.state.page);
  770. }
  771. },
  772. nextCancel() {
  773. this.setState({
  774. addnextVisible: false,
  775. displayFees: "none",
  776. costReduction: '',
  777. officialCost: '',
  778. });
  779. },
  780. //点击打卡项目详情
  781. tableRowClickX(record) {
  782. if (record.type == "1") {
  783. this.setState({
  784. displayFees: "block",
  785. costReduction: record.costReduction,
  786. officialCost: record.officialCost,
  787. });
  788. } else {
  789. this.setState({
  790. displayFees: "none",
  791. });
  792. }
  793. this.setState({
  794. jid: record.id, //项目ID
  795. kid: record.commodityId, //商品ID
  796. commodityName: record.commodityName, //金额
  797. commodityPrice: record.commodityPrice, //金额
  798. commodityQuantity: record.commodityQuantity, //数量
  799. taskComment: record.taskComment, //备注
  800. main: record.main.toString(), //是否为主要
  801. addnextVisible: true,
  802. dataInfor: record,
  803. addState: 0,
  804. });
  805. },
  806. search() {
  807. this.loadData(1);
  808. },
  809. orderChange(key) {
  810. this.setState({
  811. activeKey: key,
  812. });
  813. if (key == 2) {
  814. this.orderDetailData(this.state.orderNo);
  815. this.xiangmu(this.state.orderNo);
  816. this.jiedian(this.state.orderNo);
  817. this.jiedianNew(this.state.orderNo);
  818. }
  819. },
  820. //节点列表
  821. jiedian(orderNos) {
  822. $.ajax({
  823. method: "get",
  824. dataType: "json",
  825. crossDomain: false,
  826. url: globalConfig.context + "/api/admin/newOrder/selectOrderDun",
  827. data: {
  828. orderNo: orderNos,
  829. },
  830. success: function (data) {
  831. let theArr = [];
  832. let thisData = [];
  833. if (data.error.length || data.data.list == "") {
  834. if (data.error && data.error.length) {
  835. message.warning(data.error[0].message);
  836. }
  837. } else {
  838. for (let i = 0; i < data.data.length; i++) {
  839. thisData = data.data[i];
  840. theArr.push({
  841. key: i,
  842. dunSubject: thisData.dunSubject
  843. ? thisData.dunSubject.toString()
  844. : "", //催款科目
  845. id: thisData.id, //节点Id
  846. money: thisData.money, //催款金额
  847. dunStatus: thisData.dunStatus, //催款状态
  848. });
  849. }
  850. this.setState({
  851. jiedian: theArr,
  852. });
  853. }
  854. }.bind(this),
  855. });
  856. },
  857. jiedianNew(orderNos) {
  858. $.ajax({
  859. method: "get",
  860. dataType: "json",
  861. crossDomain: false,
  862. url:
  863. globalConfig.context + "/api/admin/newOrderDun/selectListNewOrderDun",
  864. data: {
  865. orderNo: orderNos,
  866. },
  867. success: function (data) {
  868. if (data.error && data.error.length) {
  869. message.warning(data.error[0].message);
  870. } else {
  871. let theArr = [];
  872. let thisData = [];
  873. let arr = data.data || [];
  874. let totalCui = 0;
  875. for (let i = 0; i < arr.length; i++) {
  876. thisData = arr[i];
  877. totalCui += +thisData.money;
  878. thisData.key = i;
  879. thisData.dunSubject = thisData.dunSubject
  880. ? thisData.dunSubject.toString()
  881. : "", //催款科目
  882. theArr.push(thisData);
  883. }
  884. if (!totalCui) {
  885. totalCui = 0;
  886. }
  887. totalCui = (Math.round(totalCui * 1000000) / 1000000).toFixed(6);
  888. this.setState({
  889. jiedianNew: theArr,
  890. totalCui,
  891. });
  892. }
  893. }.bind(this),
  894. }).always(
  895. function () {
  896. this.setState({
  897. loading: false,
  898. });
  899. }.bind(this)
  900. );
  901. },
  902. orderDetailData(orderNos) {
  903. this.setState({
  904. loading: true,
  905. });
  906. $.ajax({
  907. method: "get",
  908. dataType: "json",
  909. crossDomain: false,
  910. url: globalConfig.context + "/api/admin/newOrder/getOrderNewDetail",
  911. data: {
  912. orderNo: orderNos,
  913. },
  914. success: function (data) {
  915. if (data.error.length || data.data.list == "") {
  916. if (data.error && data.error.length) {
  917. message.warning(data.error[0].message);
  918. this.setState({
  919. loading: false,
  920. });
  921. }
  922. } else {
  923. let thisdata = data.data;
  924. this.setState({
  925. loading: false,
  926. orderUid: thisdata.uid,
  927. userName: thisdata.userName,
  928. primaryOrderNo: thisdata.primaryOrder,
  929. additionalOrder: thisdata.additionalOrder,
  930. contractNo: thisdata.contractNo,
  931. orderData: thisdata,
  932. isAddition: thisdata.additionalOrder ? true : false,
  933. deleteSign: thisdata.deleteSign,
  934. contractPictureUrl: thisdata.contractPictureUrl
  935. ? splitUrl(
  936. thisdata.contractPictureUrl,
  937. ",",
  938. globalConfig.avatarHost + "/upload"
  939. )
  940. : [],
  941. });
  942. }
  943. }.bind(this),
  944. });
  945. },
  946. reset() {
  947. this.state.nameSearch = "";
  948. this.state.releaseDate = [];
  949. this.state.orderNoSearch = "";
  950. this.state.taskNoSearch = "";
  951. this.state.departmenttSearch = undefined;
  952. this.setState({
  953. urgentDay: '', //有无材料
  954. ifMaterial: '', //加急情况
  955. specialComment: '', //特别说明
  956. spotCheckStatus: '',
  957. setUpStatus: '',
  958. setUpTime: '',
  959. highTechStatus: '',
  960. })
  961. this.loadData();
  962. },
  963. searchSwitch() {
  964. this.setState({
  965. searchMore: !this.state.searchMore,
  966. });
  967. },
  968. //部门
  969. departmentList() {
  970. this.setState({
  971. loading: true,
  972. });
  973. $.ajax({
  974. method: "get",
  975. dataType: "json",
  976. crossDomain: false,
  977. url: globalConfig.context + "/api/admin/organization/selectSuperId",
  978. data: {},
  979. success: function (data) {
  980. let thedata = data.data;
  981. let theArr = [];
  982. if (!thedata) {
  983. if (data.error && data.error.length) {
  984. message.warning(data.error[0].message);
  985. }
  986. thedata = {};
  987. } else {
  988. thedata.map(function (item, index) {
  989. theArr.push({
  990. key: index,
  991. name: item.name,
  992. id: item.id,
  993. });
  994. });
  995. }
  996. this.setState({
  997. departmentArr: theArr,
  998. });
  999. }.bind(this),
  1000. }).always(
  1001. function () {
  1002. this.setState({
  1003. loading: false,
  1004. });
  1005. }.bind(this)
  1006. );
  1007. },
  1008. rizhi() {
  1009. this.setState({
  1010. loading: true,
  1011. });
  1012. $.ajax({
  1013. method: "get",
  1014. dataType: "json",
  1015. crossDomain: false,
  1016. url: "/api/admin/newOrder/selectOrderLog",
  1017. data: {
  1018. orderNo: this.state.orderNo,
  1019. },
  1020. success: function (data) {
  1021. let theArr = [];
  1022. let thisData = data.data;
  1023. if (!thisData.length) {
  1024. if (data.error && data.error.length) {
  1025. message.warning(data.error[0].message);
  1026. }
  1027. thisData = {};
  1028. } else {
  1029. for (let i = 0; i < data.data.length; i++) {
  1030. let thisdata = data.data[i];
  1031. theArr.push({
  1032. processName: thisdata.processName,
  1033. adminName: thisdata.adminName,
  1034. createDate: thisdata.createDate,
  1035. remarks: thisdata.remarks,
  1036. });
  1037. }
  1038. }
  1039. this.setState({
  1040. dataSourceY: theArr,
  1041. });
  1042. }.bind(this),
  1043. }).always(
  1044. function () {
  1045. this.setState({
  1046. loading: false,
  1047. });
  1048. }.bind(this)
  1049. );
  1050. },
  1051. closeOrderLog() {
  1052. this.setState({
  1053. avisible: false,
  1054. });
  1055. },
  1056. getOrderLog() {
  1057. this.setState({
  1058. avisible: true,
  1059. });
  1060. this.rizhi();
  1061. },
  1062. changeList(arr) {
  1063. const newArr = [];
  1064. this.state.columns.forEach(item => {
  1065. arr.forEach(val => {
  1066. if (val === item.title) {
  1067. newArr.push(item);
  1068. }
  1069. });
  1070. });
  1071. this.setState({
  1072. changeList: newArr
  1073. });
  1074. },
  1075. // 可展开颜色不同
  1076. addRowColor(record) {
  1077. if (!!record.splitList && record.splitList.length > 0) {
  1078. return 'light'
  1079. } else {
  1080. return 'dark'
  1081. }
  1082. },
  1083. render() {
  1084. const expandedRowRenderVip = (e) => {
  1085. const data = e.splitList;
  1086. let columns = [];
  1087. if (data instanceof Array && data.length) {
  1088. if (e.cSort == 6) {
  1089. columns = [
  1090. {
  1091. title: "负责人",
  1092. dataIndex: "receiverName",
  1093. key: "receiverName",
  1094. },
  1095. {
  1096. title: "负责人电话",
  1097. dataIndex: "receiverMobile",
  1098. key: "receiverMobile",
  1099. },
  1100. {
  1101. title: "项目状态",
  1102. dataIndex: "projectStatus",
  1103. key: "projectStatus",
  1104. render: (text) => {
  1105. return getProjectName(text);
  1106. },
  1107. },
  1108. {
  1109. title: "本次派单",
  1110. dataIndex: "serviceYear",
  1111. key: "serviceYear",
  1112. },
  1113. {
  1114. title: "项目说明",
  1115. dataIndex: "taskComment",
  1116. key: "taskComment",
  1117. render: (text) => {
  1118. return (
  1119. <Tooltip title={text}>
  1120. <div
  1121. // style={{
  1122. // width: 100,
  1123. // overflow: "hidden",
  1124. // whiteSpace: "nowrap",
  1125. // textOverflow: "ellipsis",
  1126. // }}
  1127. >{text}</div>
  1128. </Tooltip>
  1129. )
  1130. },
  1131. },
  1132. ];
  1133. } else {
  1134. columns = [
  1135. {
  1136. title: "子项目名称",
  1137. dataIndex: "taskName",
  1138. key: "taskName"
  1139. },
  1140. {
  1141. title: "子项目数量",
  1142. dataIndex: "commodityQuantity",
  1143. key: "commodityQuantity"
  1144. },
  1145. {
  1146. title: "拆分操作人",
  1147. dataIndex: "splitAname",
  1148. key: "splitAname"
  1149. },
  1150. {
  1151. title: "项目负责人",
  1152. dataIndex: "receiverName",
  1153. key: "receiverName"
  1154. },
  1155. {
  1156. title: "拆分时间",
  1157. dataIndex: "splitTimes",
  1158. key: "splitTimes"
  1159. }
  1160. ]
  1161. }
  1162. return (
  1163. <Table
  1164. columns={columns}
  1165. dataSource={data}
  1166. pagination={false}
  1167. />
  1168. );
  1169. } else {
  1170. columns = [];
  1171. return (
  1172. <p
  1173. style={{ fontWeight: "bold", color: "red", textAlign: "center" }}
  1174. >
  1175. {e.cSort == 6 ? "暂无派单" : "此项目暂未拆分"}
  1176. </p>
  1177. );
  1178. }
  1179. };
  1180. const utils = {
  1181. getSatisfaction: function (num) {
  1182. switch (num) {
  1183. case 0:
  1184. return "未收回";
  1185. case 1:
  1186. return "已收回";
  1187. default:
  1188. return "其它";
  1189. }
  1190. },
  1191. getChargeback: function (num) {
  1192. switch (num) {
  1193. case 0:
  1194. return "已完成";
  1195. case 1:
  1196. return "未完成";
  1197. default:
  1198. return "其它";
  1199. }
  1200. },
  1201. };
  1202. const formItemLayout = {
  1203. labelCol: { span: 8 },
  1204. wrapperCol: { span: 14 },
  1205. };
  1206. let departmentArr = this.state.departmentArr || [];
  1207. return (
  1208. <div className="user-content">
  1209. <ShowModalDiv ShowModal={this.state.showModal} />
  1210. <div className="content-title" style={{ marginBottom: 10 }}>
  1211. <span style={{ fontWeight: 900, fontSize: 16 }}>任务查询</span>
  1212. </div>
  1213. <Tabs defaultActiveKey="1" onChange={this.callback} className="test">
  1214. <TabPane tab="搜索" key="1">
  1215. <div className="user-search" style={{ marginLeft: 10 }}>
  1216. <Input
  1217. placeholder="客户名称"
  1218. style={{ width: 150 }}
  1219. value={this.state.nameSearch}
  1220. onChange={(e) => {
  1221. this.setState({ nameSearch: e.target.value });
  1222. }}
  1223. />
  1224. <Input
  1225. placeholder="订单编号"
  1226. value={this.state.orderNoSearch}
  1227. onChange={(e) => {
  1228. this.setState({ orderNoSearch: e.target.value });
  1229. }}
  1230. />
  1231. <Input
  1232. placeholder="任务编号"
  1233. value={this.state.taskNoSearch}
  1234. onChange={(e) => {
  1235. this.setState({ taskNoSearch: e.target.value });
  1236. }}
  1237. />
  1238. <Select
  1239. placeholder="选择部门"
  1240. style={{ width: 200, marginRight: "10px" }}
  1241. value={this.state.departmenttSearch}
  1242. onChange={(e) => {
  1243. this.setState({ departmenttSearch: e });
  1244. }}
  1245. >
  1246. {departmentArr.map(function (item) {
  1247. return (
  1248. <Select.Option key={item.id}>{item.name}</Select.Option>
  1249. );
  1250. })}
  1251. </Select>
  1252. <Button type="primary" onClick={this.search}>
  1253. 搜索
  1254. </Button>
  1255. <Button onClick={this.reset}>重置</Button>
  1256. {/* <span>更多搜索<Switch defaultChecked={false} onChange={this.searchSwitch.bind(this)} /></span>
  1257. <div className="search-more" style={this.state.searchMore ? { display: 'none' } : {}}>
  1258. <span>订单时间 :</span>
  1259. <RangePicker
  1260. value={[this.state.releaseDate[0] ? moment(this.state.releaseDate[0]) : null,
  1261. this.state.releaseDate[1] ? moment(this.state.releaseDate[1]) : null]}
  1262. onChange={(data, dataString) => { this.setState({ releaseDate: dataString }); }} />
  1263. </div> */}
  1264. </div>
  1265. </TabPane>
  1266. <TabPane tab="更改表格显示数据" key="2">
  1267. <div style={{ marginLeft: 10 }}>
  1268. <ChooseList
  1269. columns={this.state.columns}
  1270. changeFn={this.changeList}
  1271. changeList={this.state.changeList}
  1272. top={55}
  1273. margin={11}
  1274. />
  1275. </div>
  1276. </TabPane>
  1277. </Tabs>
  1278. <div className="patent-table">
  1279. <Spin spinning={this.state.loading}>
  1280. <Table
  1281. bordered
  1282. size="small"
  1283. columns={
  1284. this.state.changeList
  1285. ? this.state.changeList
  1286. : this.state.columns
  1287. }
  1288. dataSource={this.state.dataSource}
  1289. onHeaderRow={(column) => {
  1290. // console.log(column.index);
  1291. }}
  1292. pagination={this.state.pagination}
  1293. onRowClick={this.tableRowClick.bind(this)}
  1294. />
  1295. </Spin>
  1296. </div>
  1297. {this.state.visible ? <Modal
  1298. className="customeDetails"
  1299. footer=""
  1300. title=""
  1301. width="1200px"
  1302. maskClosable={false}
  1303. visible={this.state.visible}
  1304. onOk={this.visitOk}
  1305. onCancel={this.visitCancel}
  1306. >
  1307. <Tabs activeKey={this.state.activeKey} onChange={this.orderChange} tabBarExtraContent={
  1308. <div style={{ fontWeight: 'bold', paddingRight: '15px' }}>
  1309. <OrderItemStatus deleteSign={this.state.deleteSign} />
  1310. </div>
  1311. }>
  1312. <TabPane tab="项目概况" key="1">
  1313. {this.state.activeKey === "1" ? <Form
  1314. layout="horizontal"
  1315. onSubmit={this.handleSubmit}
  1316. id="demand-form"
  1317. style={{ paddingBottom: "00px" }}
  1318. >
  1319. <Spin spinning={this.state.loading}>
  1320. <div className="clearfix">
  1321. <div className="clearfix">
  1322. <FormItem
  1323. className="half-item"
  1324. {...formItemLayout}
  1325. label="项目状态"
  1326. >
  1327. <span>{getProjectName(parseInt(this.state.projectStatus))}</span>
  1328. <Button
  1329. type="primary"
  1330. size="small"
  1331. style={{ marginTop: '5px', position: 'absolute' }}
  1332. onClick={this.caozuorizhi}
  1333. >
  1334. 操作日志
  1335. </Button>
  1336. </FormItem>
  1337. <FormItem
  1338. className="half-item"
  1339. {...formItemLayout}
  1340. label="合同编号"
  1341. >
  1342. <span>{this.state.contractNo}</span>
  1343. </FormItem>
  1344. </div>
  1345. <div className="clearfix">
  1346. <FormItem
  1347. className="half-item"
  1348. {...formItemLayout}
  1349. label="是否特批"
  1350. >
  1351. <span>{getApproval(this.state.approval)}</span>
  1352. </FormItem>
  1353. <FormItem
  1354. className="half-item"
  1355. {...formItemLayout}
  1356. label="结算状态"
  1357. >
  1358. <span>
  1359. {getLiquidationStatus(this.state.liquidationStatus)}
  1360. </span>
  1361. </FormItem>
  1362. <FormItem
  1363. className="half-item"
  1364. {...formItemLayout}
  1365. label="流程状态"
  1366. >
  1367. <span>
  1368. {getProcessStatus(this.state.processStatus)}
  1369. </span>
  1370. </FormItem>
  1371. <FormItem
  1372. className="half-item"
  1373. {...formItemLayout}
  1374. label="订单编号"
  1375. >
  1376. <span>{this.state.orderNo}</span>
  1377. </FormItem>
  1378. <FormItem
  1379. className="half-item"
  1380. {...formItemLayout}
  1381. label="是否外包"
  1382. >
  1383. <span>{this.state.outsource == 0 ? "否" : "是"}</span>
  1384. </FormItem>
  1385. </div>
  1386. <div className="clearfix">
  1387. <FormItem
  1388. className="half-item"
  1389. {...formItemLayout}
  1390. label="满意度表格"
  1391. >
  1392. <span>
  1393. {utils.getSatisfaction(this.state.formRetrieve)}
  1394. </span>
  1395. </FormItem>
  1396. {
  1397. <FormItem
  1398. className="half-item"
  1399. {...formItemLayout}
  1400. label="(满意度)备注"
  1401. >
  1402. <span>{this.state.retrieveContent}</span>
  1403. </FormItem>
  1404. }
  1405. {/*<FormItem*/}
  1406. {/* className="half-item"*/}
  1407. {/* {...formItemLayout}*/}
  1408. {/* label="退单"*/}
  1409. {/*>*/}
  1410. {/* <span>*/}
  1411. {/* {utils.getChargeback(this.state.taskRefund)}*/}
  1412. {/* </span>*/}
  1413. {/*</FormItem>*/}
  1414. </div>
  1415. <div className="clearfix">
  1416. <div style={{
  1417. paddingLeft: '8%',
  1418. }}>
  1419. <div style={{ color: '#000', fontWeight: 500 }}>
  1420. 特别说明
  1421. <span style={{ color: '#58a3ff', }}>(针对项目的特殊情况说明)</span>
  1422. </div>
  1423. <div style={{
  1424. display: 'flex',
  1425. }}>
  1426. <span style={{ paddingRight: '10px', whiteSpace: "nowrap" }}>备注:</span>
  1427. <span style={{
  1428. flex: 1,
  1429. wordBreak: 'break-all',
  1430. }}>{this.state.specialComment}</span>
  1431. </div>
  1432. </div>
  1433. {
  1434. // <FormItem
  1435. // className="half-item"
  1436. // {...formItemLayout}
  1437. // label="(退单)备注"
  1438. // >
  1439. // <span>{this.state.refundContent}</span>
  1440. // </FormItem>
  1441. }
  1442. </div>
  1443. <div className="clearfix">
  1444. <h3 className="sub-title">任务信息</h3>
  1445. {/*0通用 1专利 2软著 3审计 4双软 5高新 6商标*/}
  1446. {/*贯标需要显示*/}
  1447. {
  1448. this.state.isIso ?
  1449. <div>
  1450. <FormItem
  1451. className="half-item"
  1452. {...formItemLayout}
  1453. label="认证费"
  1454. >
  1455. <span>
  1456. {
  1457. this.state.ifCertificationFee === 1 ? '包含' : '不包含'
  1458. }
  1459. </span>
  1460. </FormItem>
  1461. {this.state.ifCertificationFee === 1 ? <FormItem
  1462. className="half-item"
  1463. {...formItemLayout}
  1464. label="认证费(万元)"
  1465. >
  1466. <span>
  1467. {
  1468. this.state.certificationFee
  1469. }
  1470. </span>
  1471. </FormItem> : null}
  1472. {this.state.ifCertificationFee === 1 ? <FormItem
  1473. className="half-item"
  1474. {...formItemLayout}
  1475. label=""
  1476. /> : null}
  1477. {this.state.ifCertificationFee === 1 ? <FormItem
  1478. className="half-item"
  1479. {...formItemLayout}
  1480. label="付款公司名称"
  1481. >
  1482. <span>
  1483. {this.state.certificationCorporate}
  1484. </span>
  1485. </FormItem> : null}
  1486. </div> : null
  1487. }
  1488. <FormItem
  1489. className="half-item"
  1490. {...formItemLayout}
  1491. label="任务编号"
  1492. >
  1493. <span>
  1494. {this.state.splitStatus == 2
  1495. ? this.state.splitSuper + "-" + this.state.splitId
  1496. : this.state.id}
  1497. </span>
  1498. </FormItem>
  1499. <FormItem
  1500. className="half-item"
  1501. {...formItemLayout}
  1502. label="任务名称"
  1503. >
  1504. <span>{this.state.taskName}</span>
  1505. </FormItem>
  1506. <FormItem
  1507. className="half-item"
  1508. {...formItemLayout}
  1509. label="任务状态"
  1510. >
  1511. <span>{getTaskStatus(this.state.taskStatus)}</span>
  1512. </FormItem>
  1513. <FormItem
  1514. className="half-item"
  1515. {...formItemLayout}
  1516. label="任务类别"
  1517. >
  1518. <span>{this.state.cname}</span>
  1519. </FormItem>
  1520. <FormItem
  1521. className="half-item"
  1522. {...formItemLayout}
  1523. label="证书编号"
  1524. >
  1525. <span>{this.state.certificateNumber}</span>
  1526. </FormItem>
  1527. </div>
  1528. {/*{this.state.outsource === 1 ? (*/}
  1529. {/* <div className="clearfix">*/}
  1530. {/* <h3 className="sub-title">外包信息</h3>*/}
  1531. {/* <FormItem*/}
  1532. {/* className="half-item"*/}
  1533. {/* {...formItemLayout}*/}
  1534. {/* label="外包公司"*/}
  1535. {/* >*/}
  1536. {/* <span>{this.state.outsourceName}</span>*/}
  1537. {/* </FormItem>*/}
  1538. {/* <FormItem*/}
  1539. {/* className="half-item"*/}
  1540. {/* {...formItemLayout}*/}
  1541. {/* label="外包成本(万元)"*/}
  1542. {/* >*/}
  1543. {/* <span>{this.state.outsourcePrice}</span>*/}
  1544. {/* </FormItem>*/}
  1545. {/* </div>*/}
  1546. {/*) : (*/}
  1547. {/* ""*/}
  1548. {/*)}*/}
  1549. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  1550. <div className="clearfix">
  1551. <h3 className="sub-title">联系信息</h3>
  1552. <FormItem
  1553. className="half-item"
  1554. {...formItemLayout}
  1555. label="客户名称"
  1556. >
  1557. <span>{this.state.userName}</span>
  1558. <EnterpriseNameChange
  1559. type='journal'
  1560. style={{ marginLeft: 10 }}
  1561. enterpriseId={this.state.orderUid} />
  1562. </FormItem>
  1563. <FormItem
  1564. className="half-item"
  1565. {...formItemLayout}
  1566. label="企业法人"
  1567. >
  1568. <span>{this.state.legalPerson}</span>
  1569. </FormItem>
  1570. <FormItem
  1571. className="half-item"
  1572. {...formItemLayout}
  1573. label="法人电话"
  1574. >
  1575. <span>{this.state.legalPersonTel}</span>
  1576. </FormItem>
  1577. <FormItem
  1578. className="half-item"
  1579. {...formItemLayout}
  1580. label="客户联系人"
  1581. >
  1582. <span>{this.state.contacts}</span>
  1583. </FormItem>
  1584. <FormItem
  1585. className="half-item"
  1586. {...formItemLayout}
  1587. label="联系人电话"
  1588. >
  1589. <span>{this.state.contactMobile}</span>
  1590. </FormItem>
  1591. <FormItem
  1592. className="half-item"
  1593. {...formItemLayout}
  1594. label="企业地址"
  1595. >
  1596. <span>
  1597. {getprovince(this.state.locationProvince)}/
  1598. {getprovince(this.state.locationCity)}/
  1599. {getprovince(this.state.locationArea)}
  1600. </span>
  1601. </FormItem>
  1602. <FormItem
  1603. className="half-item"
  1604. {...formItemLayout}
  1605. label=""
  1606. />
  1607. <FormItem className="half-item" {...formItemLayout}>
  1608. <span style={{ paddingLeft: "12em" }}>
  1609. {this.state.postalAddress}
  1610. </span>
  1611. </FormItem>
  1612. </div>
  1613. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  1614. <div className="clearfix">
  1615. <h3 className="sub-title">订单负责人信息</h3>
  1616. <FormItem
  1617. className="half-item"
  1618. {...formItemLayout}
  1619. label="负责人"
  1620. >
  1621. <span>
  1622. {this.state.salesmanName +
  1623. "(" +
  1624. this.state.depName +
  1625. ")"}
  1626. </span>
  1627. </FormItem>
  1628. <FormItem
  1629. className="half-item"
  1630. {...formItemLayout}
  1631. label="负责人电话"
  1632. >
  1633. <span>{this.state.salesmanMobile}</span>
  1634. </FormItem>
  1635. <FormItem
  1636. className="half-item"
  1637. {...formItemLayout}
  1638. label="当前财务负责人"
  1639. >
  1640. <span>{this.state.nowFinance}</span>
  1641. </FormItem>
  1642. <FormItem
  1643. className="half-item"
  1644. {...formItemLayout}
  1645. label="当前财务负责人电话"
  1646. >
  1647. <span>{this.state.nowFinanceMobile}</span>
  1648. </FormItem>
  1649. <FormItem
  1650. className="half-item"
  1651. {...formItemLayout}
  1652. style={{ opacity: ".5" }}
  1653. label="原负责人"
  1654. >
  1655. <span>{this.state.oldSalesmanName}</span>
  1656. </FormItem>
  1657. <FormItem
  1658. className="half-item"
  1659. {...formItemLayout}
  1660. style={{ opacity: ".5" }}
  1661. label="原负责人电话"
  1662. >
  1663. <span>{this.state.oldSalesmanMobile}</span>
  1664. </FormItem>
  1665. <FormItem
  1666. className="half-item"
  1667. {...formItemLayout}
  1668. style={{ opacity: ".5" }}
  1669. label="实际财务操作人"
  1670. >
  1671. <span>{this.state.financeName}</span>
  1672. </FormItem>
  1673. <FormItem
  1674. className="half-item"
  1675. {...formItemLayout}
  1676. style={{ opacity: ".5" }}
  1677. label="实际财务操作人电话"
  1678. >
  1679. <span>{this.state.financeMobile}</span>
  1680. </FormItem>
  1681. <FormItem
  1682. className="half-item"
  1683. {...formItemLayout}
  1684. label="订单留言"
  1685. >
  1686. <span>{this.state.orderRemarks}</span>
  1687. </FormItem>
  1688. <FormItem
  1689. className="half-item"
  1690. {...formItemLayout}
  1691. label=""
  1692. >
  1693. <Button onClick={this.getOrderLog}>查看订单日志</Button>
  1694. </FormItem>
  1695. <OrderRiZi
  1696. dataSourcerizhi={this.state.dataSourceY}
  1697. closeOrderLog={this.closeOrderLog}
  1698. visible={this.state.avisible}
  1699. loading={this.state.loading}
  1700. />
  1701. </div>
  1702. <div className="clearfix">
  1703. <h3 className="sub-title">申报系统账户信息</h3>
  1704. {/*<span style={{color:'red'}}>注:仅技术部可见</span>*/}
  1705. <FormItem
  1706. className="half-item"
  1707. {...formItemLayout}
  1708. label="用户名"
  1709. >
  1710. <span>{this.state.declareUser}</span>
  1711. </FormItem>
  1712. <FormItem
  1713. className="half-item"
  1714. {...formItemLayout}
  1715. label="密码"
  1716. >
  1717. <span>{this.state.declarePwd}</span>
  1718. </FormItem>
  1719. </div>
  1720. <div className="clearfix">
  1721. <h3 className="sub-title">项目申报进度</h3>
  1722. <DeclarationProgress
  1723. timeRecordparse={this.state.timeRecordparse}
  1724. startDate={this.state.startDate}
  1725. taskDate={this.state.taskDate}
  1726. list={[
  1727. { id: 4, name: '完成时间', value: this.state.endDate },
  1728. { id: 6, name: '受理时间', value: this.state.acceptDate },
  1729. { id: 8, name: '公示时间', value: this.state.publicityDate },
  1730. { id: 10, name: '发证时间', value: this.state.licenceDate },
  1731. { id: 15, name: '立项金额', value: this.state.setUpAmount }
  1732. ]} />
  1733. {/*专利显示 bpType: 0 正常 1专利 2软著 3审计 4双软 5高新 6商标*/}
  1734. {
  1735. this.state.bpType === 1 || this.state.bpType === 6 ?
  1736. <div>
  1737. <FormItem
  1738. labelCol={{ span: 3 }}
  1739. wrapperCol={{ span: 16 }}
  1740. label="是否高新企业"
  1741. >
  1742. <span>
  1743. {
  1744. this.state.highTechStatus === 1 ? '是' :
  1745. this.state.highTechStatus === 0 ? '否' : ''
  1746. }
  1747. </span>
  1748. </FormItem>
  1749. <FormItem />
  1750. <PatentSchedule
  1751. readOnly
  1752. bpType={this.state.bpType}
  1753. taskId={this.state.id}
  1754. acceptCount={this.state.acceptCount}
  1755. certificatesCount={this.state.certificatesCount}
  1756. rejectCount={this.state.rejectCount}
  1757. commodityQuantity={this.state.commodityQuantity}
  1758. refresh={() => { this.xiangqing(this.state.id) }}
  1759. />
  1760. </div> :
  1761. <div>
  1762. {/*高新显示 bpType: 0 正常 1专利 2软著 3审计 4双软 5高新 6商标*/}
  1763. {this.state.bpType === 5 ? <FormItem
  1764. className="half-item"
  1765. {...formItemLayout}
  1766. label="是否抽查">
  1767. {
  1768. this.state.spotCheckStatus === 0 ? '否' :
  1769. this.state.spotCheckStatus === 1 ? '是,未通过' :
  1770. this.state.spotCheckStatus === 2 ? '是,通过' : ''
  1771. }
  1772. </FormItem> : null}
  1773. <FormItem />
  1774. {this.state.bpType === 5 ? <FormItem
  1775. className="half-item"
  1776. {...formItemLayout}
  1777. label="是否立项"
  1778. >
  1779. {
  1780. this.state.setUpStatus === 1 ? '是' :
  1781. this.state.setUpStatus === 0 ? '否' : ''
  1782. }
  1783. </FormItem> : null}
  1784. {this.state.bpType === 5 ? <FormItem
  1785. className="half-item"
  1786. {...formItemLayout}
  1787. label={this.state.setUpStatus === 1 ? "立项时间" : ''}
  1788. >
  1789. {this.state.setUpStatus === 1 ? this.state.setUpTime : null}
  1790. </FormItem> : null}
  1791. {/*高新和科技项目显示 bpType: 0 正常 1专利 2软著 3审计 4双软 5高新 6商标*/}
  1792. {/*cSort: 3 科技项目 6: 会员*/}
  1793. {(this.state.bpType === 5 || this.state.cSort === 3) && <FormItem
  1794. className="half-item"
  1795. {...formItemLayout}
  1796. label="申报批次"
  1797. >
  1798. <span>{this.state.declarationBatch}</span>
  1799. </FormItem>}
  1800. {/*只有科技项目才有是否到款*/}
  1801. {/*cSort: 3 科技项目 6: 会员*/}
  1802. {this.state.cSort === 3 && <FormItem
  1803. className="half-item"
  1804. {...formItemLayout}
  1805. label="是否到款"
  1806. >
  1807. <span>
  1808. {this.state.arrivalMoney ? "已到企业" : "未到企业"}
  1809. </span>
  1810. </FormItem>}
  1811. </div>}
  1812. </div>
  1813. {this.state.bpType !== 1 && this.state.bpType !== 6 ? <div className="clearfix">
  1814. <FormItem
  1815. labelCol={{ span: 3 }}
  1816. wrapperCol={{ span: 18 }}
  1817. label="附件"
  1818. >
  1819. {/*<Upload*/}
  1820. {/* className="demandDetailShow-upload"*/}
  1821. {/* listType="picture-card"*/}
  1822. {/* fileList={this.state.attachmentUrl}*/}
  1823. {/* onPreview={(file) => {*/}
  1824. {/* this.setState({*/}
  1825. {/* previewImage: file.url || file.thumbUrl,*/}
  1826. {/* previewVisible: true,*/}
  1827. {/* });*/}
  1828. {/* }}*/}
  1829. {/*/>*/}
  1830. {this.state.visible && this.state.attachmentUrl && this.state.activeKey === "1" ? <div style={{ paddingTop: '10px', paddingBottom: '10px' }}>
  1831. <ImgList fileList={this.state.attachmentUrl} domId={'taskQuery1'} />
  1832. </div> : <div />}
  1833. {this.state.previewVisible ? <Modal
  1834. maskClosable={false}
  1835. footer={null}
  1836. visible={this.state.previewVisible}
  1837. onCancel={() => {
  1838. this.setState({ previewVisible: false });
  1839. }}
  1840. >
  1841. <img
  1842. alt=""
  1843. style={{ width: "100%" }}
  1844. src={this.state.previewImage || ""}
  1845. />
  1846. </Modal> : null}
  1847. </FormItem>
  1848. </div> : null}
  1849. {this.state.bpType !== 1 && this.state.bpType !== 6 ? <div className="clearfix">
  1850. <FormItem
  1851. labelCol={{ span: 3 }}
  1852. wrapperCol={{ span: 16 }}
  1853. label="项目说明"
  1854. >
  1855. <span>{this.state.taskComment}</span>
  1856. </FormItem>
  1857. </div> : null}
  1858. <div>
  1859. <h3 className="sub-title">项目业务</h3>
  1860. {this.state.processStatus == 0 ? (
  1861. <Button
  1862. type="primary"
  1863. onClick={this.addDetailed}
  1864. style={{
  1865. float: "right",
  1866. marginRight: "50px",
  1867. marginBottom: "15px",
  1868. }}
  1869. >
  1870. 添加项目明细
  1871. </Button>
  1872. ) : (
  1873. ""
  1874. )}
  1875. </div>
  1876. <div className="patent-table">
  1877. <Spin spinning={this.state.loading}>
  1878. <Table
  1879. columns={this.state.columnsX}
  1880. dataSource={this.state.dataSourceX}
  1881. pagination={this.state.paginations}
  1882. onRowClick={this.tableRowClickX}
  1883. expandedRowRender={expandedRowRenderVip}
  1884. rowClassName={this.addRowColor}
  1885. bordered
  1886. size="small"
  1887. />
  1888. </Spin>
  1889. </div>
  1890. </div>
  1891. </Spin>
  1892. </Form> : <div />}
  1893. </TabPane>
  1894. {!this.props.isZxs || (this.state.isHuiyuan && this.props.isZxs) ? (
  1895. <TabPane tab="订单详情" key="2">
  1896. {this.state.activeKey === "2" ? <Spin spinning={this.state.loading}>
  1897. <OrderDetail
  1898. orderUid={this.state.orderUid}
  1899. orderData={this.state.orderData}
  1900. getOrderLog={this.getOrderLog}
  1901. dataSourceX={this.state.dataSourceX}
  1902. contactList={this.state.jiedian}
  1903. orderNo={this.state.orderNo}
  1904. totalCui={this.state.totalCui}
  1905. contactListNew={this.state.jiedianNew}
  1906. pictureUrl={this.state.contractPictureUrl}
  1907. />
  1908. </Spin> : <div />}
  1909. <OrderRiZi
  1910. dataSourcerizhi={this.state.dataSourceY}
  1911. closeOrderLog={this.closeOrderLog}
  1912. visible={this.state.avisible}
  1913. loading={this.state.loading}
  1914. />
  1915. </TabPane>
  1916. ) : (
  1917. ""
  1918. )}
  1919. </Tabs>
  1920. </Modal> : <div />}
  1921. <Modal
  1922. width="800px"
  1923. title="操作日志"
  1924. footer=""
  1925. maskClosable={false}
  1926. className="admin-desc-content"
  1927. >
  1928. <div className="patent-table patent-table-center">
  1929. <Spin spinning={this.state.loading}>
  1930. <Table columns={this.state.columnsY} bordered size="small" />
  1931. </Spin>
  1932. </div>
  1933. </Modal>
  1934. {this.state.speVisible ? <Modal
  1935. maskClosable={false}
  1936. visible={this.state.speVisible}
  1937. onOk={this.visitOk}
  1938. onCancel={this.visitCancel}
  1939. width="1200px"
  1940. title=""
  1941. footer=""
  1942. className="admin-desc-content"
  1943. >
  1944. <Tabs activeKey={this.state.activeKey} onChange={this.orderChange} tabBarExtraContent={
  1945. <div style={{ fontWeight: 'bold', paddingRight: '15px' }}>
  1946. <OrderItemStatus deleteSign={this.state.deleteSign} />
  1947. </div>
  1948. }>
  1949. <TabPane tab="项目概况" key="1">
  1950. {this.state.activeKey === "1" ?
  1951. <div>
  1952. <div className="clearfix">
  1953. <FormItem
  1954. className="half-item"
  1955. {...formItemLayout}
  1956. label="项目状态"
  1957. >
  1958. <span>{getProjectName(parseInt(this.state.projectStatus))}</span>
  1959. <Button
  1960. type="primary"
  1961. size="small"
  1962. style={{ marginTop: '5px', position: 'absolute' }}
  1963. onClick={this.caozuorizhi}
  1964. >
  1965. 操作日志
  1966. </Button>
  1967. </FormItem>
  1968. <FormItem
  1969. className="half-item"
  1970. {...formItemLayout}
  1971. label="合同编号"
  1972. >
  1973. <span>{this.state.contractNo}</span>
  1974. </FormItem>
  1975. </div>
  1976. <div className="clearfix">
  1977. <FormItem
  1978. className="half-item"
  1979. {...formItemLayout}
  1980. label="是否特批"
  1981. >
  1982. <span>{getApproval(this.state.approval)}</span>
  1983. </FormItem>
  1984. <FormItem
  1985. className="half-item"
  1986. {...formItemLayout}
  1987. label="结算状态"
  1988. >
  1989. <span>
  1990. {getLiquidationStatus(this.state.liquidationStatus)}
  1991. </span>
  1992. </FormItem>
  1993. <FormItem
  1994. className="half-item"
  1995. {...formItemLayout}
  1996. label="流程状态"
  1997. >
  1998. <span>{getProcessStatus(this.state.processStatus)}</span>
  1999. </FormItem>
  2000. <FormItem
  2001. className="half-item"
  2002. {...formItemLayout}
  2003. label="订单编号"
  2004. >
  2005. <span>{this.state.orderNo}</span>
  2006. </FormItem>
  2007. </div>
  2008. <div className="clearfix">
  2009. <FormItem
  2010. className="half-item"
  2011. {...formItemLayout}
  2012. label="满意度表格"
  2013. >
  2014. <span>{utils.getSatisfaction(this.state.formRetrieve)}</span>
  2015. </FormItem>
  2016. {
  2017. <FormItem
  2018. className="half-item"
  2019. {...formItemLayout}
  2020. label="(满意度)备注"
  2021. >
  2022. <span>{this.state.retrieveContent}</span>
  2023. </FormItem>
  2024. }
  2025. {/*<FormItem*/}
  2026. {/* className="half-item"*/}
  2027. {/* {...formItemLayout}*/}
  2028. {/* label="退单"*/}
  2029. {/*>*/}
  2030. {/* <span>{utils.getChargeback(this.state.taskRefund)}</span>*/}
  2031. {/*</FormItem>*/}
  2032. </div>
  2033. {/*软著显示 bpType: 0 正常 1专利 2软著 3审计 4双软 5高新 6商标*/}
  2034. {this.state.bpType === 2 ? <div className="clearfix">
  2035. <FormItem
  2036. className="half-item"
  2037. {...formItemLayout}
  2038. label="加急天数"
  2039. >
  2040. {
  2041. this.state.urgentDay === 1 ? '是' :
  2042. this.state.urgentDay === 0 ? '否' : ''
  2043. }
  2044. </FormItem>
  2045. <FormItem
  2046. className="half-item"
  2047. {...formItemLayout}
  2048. label="有无材料"
  2049. >
  2050. {
  2051. this.state.ifMaterial === 1 ? '是' :
  2052. this.state.ifMaterial === 0 ? '否' : ''
  2053. }
  2054. </FormItem>
  2055. </div> : null}
  2056. <div className="clearfix">
  2057. <div style={{
  2058. paddingLeft: '8%',
  2059. }}>
  2060. <div style={{ color: '#000', fontWeight: 500 }}>
  2061. 特别说明
  2062. <span style={{ color: '#58a3ff', }}>(针对项目的特殊情况说明)</span>
  2063. </div>
  2064. <div style={{
  2065. display: 'flex',
  2066. }}>
  2067. <span style={{ paddingRight: '10px', whiteSpace: "nowrap" }}>备注:</span>
  2068. <span style={{
  2069. flex: 1,
  2070. wordBreak: 'break-all',
  2071. }}>{this.state.specialComment}</span>
  2072. </div>
  2073. </div>
  2074. {
  2075. // <FormItem
  2076. // className="half-item"
  2077. // {...formItemLayout}
  2078. // label="(退单)备注"
  2079. // >
  2080. // <span>{this.state.refundContent}</span>
  2081. // </FormItem>
  2082. }
  2083. </div>
  2084. <div className="clearfix">
  2085. <h3 className="sub-title">任务信息</h3>
  2086. <FormItem
  2087. className="half-item"
  2088. {...formItemLayout}
  2089. label="任务编号"
  2090. >
  2091. <span>
  2092. {this.state.splitStatus == 2
  2093. ? this.state.splitSuper + "-" + this.state.splitId
  2094. : this.state.id}
  2095. </span>
  2096. </FormItem>
  2097. <FormItem
  2098. className="half-item"
  2099. {...formItemLayout}
  2100. label="任务名称"
  2101. >
  2102. <span>{this.state.taskName}</span>
  2103. </FormItem>
  2104. <FormItem
  2105. className="half-item"
  2106. {...formItemLayout}
  2107. label="任务状态"
  2108. >
  2109. <span>{getTaskStatus(this.state.taskStatus)}</span>
  2110. </FormItem>
  2111. <FormItem
  2112. className="half-item"
  2113. {...formItemLayout}
  2114. label="任务类别"
  2115. >
  2116. <span>{this.state.cname}</span>
  2117. </FormItem>
  2118. <FormItem
  2119. className="half-item"
  2120. {...formItemLayout}
  2121. label="证书编号"
  2122. >
  2123. <span>{this.state.certificateNumber}</span>
  2124. </FormItem>
  2125. </div>
  2126. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  2127. <div className="clearfix">
  2128. <h3 className="sub-title">联系信息</h3>
  2129. <FormItem
  2130. className="half-item"
  2131. {...formItemLayout}
  2132. label="客户名称"
  2133. >
  2134. <span>{this.state.userName}</span>
  2135. <EnterpriseNameChange
  2136. type='journal'
  2137. style={{ marginLeft: 10 }}
  2138. enterpriseId={this.state.orderUid} />
  2139. </FormItem>
  2140. <FormItem
  2141. className="half-item"
  2142. {...formItemLayout}
  2143. label="企业法人"
  2144. >
  2145. <span>{this.state.legalPerson}</span>
  2146. </FormItem>
  2147. <FormItem
  2148. className="half-item"
  2149. {...formItemLayout}
  2150. label="法人电话"
  2151. >
  2152. <span>{this.state.legalPersonTel}</span>
  2153. </FormItem>
  2154. <FormItem
  2155. className="half-item"
  2156. {...formItemLayout}
  2157. label="客户联系人"
  2158. >
  2159. <span>{this.state.contacts}</span>
  2160. </FormItem>
  2161. <FormItem
  2162. className="half-item"
  2163. {...formItemLayout}
  2164. label="联系人电话"
  2165. >
  2166. <span>{this.state.contactMobile}</span>
  2167. </FormItem>
  2168. <FormItem
  2169. className="half-item"
  2170. {...formItemLayout}
  2171. label="企业地址"
  2172. >
  2173. <span>
  2174. {getprovince(this.state.locationProvince)}/
  2175. {getprovince(this.state.locationCity)}/
  2176. {getprovince(this.state.locationArea)}
  2177. </span>
  2178. </FormItem>
  2179. <FormItem
  2180. className="half-item"
  2181. {...formItemLayout}
  2182. label=""
  2183. />
  2184. <FormItem className="half-item" {...formItemLayout} label="">
  2185. <span style={{ paddingLeft: "12em" }}>
  2186. {this.state.postalAddress}
  2187. </span>
  2188. </FormItem>
  2189. </div>
  2190. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  2191. <div className="clearfix">
  2192. <h3 className="sub-title">订单负责人信息</h3>
  2193. <FormItem
  2194. className="half-item"
  2195. {...formItemLayout}
  2196. label="负责人"
  2197. >
  2198. <span>
  2199. {this.state.salesmanName + "(" + this.state.depName + ")"}
  2200. </span>
  2201. </FormItem>
  2202. <FormItem
  2203. className="half-item"
  2204. {...formItemLayout}
  2205. label="负责人电话"
  2206. >
  2207. <span>{this.state.salesmanMobile}</span>
  2208. </FormItem>
  2209. <FormItem
  2210. className="half-item"
  2211. {...formItemLayout}
  2212. label="财务负责人"
  2213. >
  2214. <span>{this.state.financeName}</span>
  2215. </FormItem>
  2216. <FormItem
  2217. className="half-item"
  2218. {...formItemLayout}
  2219. label="财务负责人电话"
  2220. >
  2221. <span>{this.state.financeMobile}</span>
  2222. </FormItem>
  2223. </div>
  2224. <div className="clearfix" style={{ marginTop: "10px" }}>
  2225. <FormItem
  2226. labelCol={{ span: 3 }}
  2227. wrapperCol={{ span: 18 }}
  2228. label="附件"
  2229. >
  2230. {/*<Upload*/}
  2231. {/* className="demandDetailShow-upload"*/}
  2232. {/* listType="picture-card"*/}
  2233. {/* fileList={this.state.attachmentUrl}*/}
  2234. {/* onPreview={(file) => {*/}
  2235. {/* this.setState({*/}
  2236. {/* previewImage: file.url || file.thumbUrl,*/}
  2237. {/* previewVisible: true,*/}
  2238. {/* });*/}
  2239. {/* }}*/}
  2240. {/*/>*/}
  2241. {this.state.speVisible && this.state.attachmentUrl && this.state.activeKey === "1" ? <div style={{ paddingTop: '10px', paddingBottom: '10px' }}>
  2242. <ImgList fileList={this.state.attachmentUrl} domId={'taskQuery1'} />
  2243. </div> : <div />}
  2244. {this.state.previewVisible ? <Modal
  2245. maskClosable={false}
  2246. footer={null}
  2247. visible={this.state.previewVisible}
  2248. onCancel={() => {
  2249. this.setState({ previewVisible: false });
  2250. }}
  2251. >
  2252. <img
  2253. alt=""
  2254. style={{ width: "100%" }}
  2255. src={this.state.previewImage || ""}
  2256. />
  2257. </Modal> : null}
  2258. </FormItem>
  2259. </div>
  2260. <div className="clearfix">
  2261. <FormItem
  2262. labelCol={{ span: 3 }}
  2263. wrapperCol={{ span: 16 }}
  2264. label="备注"
  2265. >
  2266. <span>{this.state.taskComment}</span>
  2267. </FormItem>
  2268. </div>
  2269. <div className="clearfix">
  2270. <FormItem
  2271. labelCol={{ span: 3 }}
  2272. wrapperCol={{ span: 16 }}
  2273. label="订单留言"
  2274. >
  2275. <span>{this.state.orderRemarks}</span>
  2276. </FormItem>
  2277. </div>
  2278. <div className="clearfix">
  2279. <FormItem
  2280. labelCol={{ span: 3 }}
  2281. wrapperCol={{ span: 16 }}
  2282. label=""
  2283. >
  2284. <Button
  2285. style={{ marginLeft: 500 }}
  2286. onClick={this.getOrderLog}
  2287. >
  2288. 查看订单日志
  2289. </Button>
  2290. </FormItem>
  2291. </div>
  2292. <OrderRiZi
  2293. dataSourcerizhi={this.state.dataSourceY}
  2294. closeOrderLog={this.closeOrderLog}
  2295. visible={this.state.avisible}
  2296. loading={this.state.loading}
  2297. />
  2298. <div className="clearfix">
  2299. <h3 className="sub-title">项目申报进度</h3>
  2300. <DeclarationProgress
  2301. timeRecordparse={this.state.timeRecordparse}
  2302. startDate={this.state.startDate}
  2303. taskDate={this.state.taskDate}
  2304. list={[
  2305. { id: 4, name: '完成时间', value: this.state.endDate },
  2306. { id: 6, name: '受理时间', value: this.state.acceptDate },
  2307. { id: 8, name: '公示时间', value: this.state.publicityDate },
  2308. { id: 10, name: '发证时间', value: this.state.licenceDate },
  2309. { id: 15, name: '立项金额', value: this.state.setUpAmount }
  2310. ]} />
  2311. {/*高新和科技项目显示 bpType: 0 正常 1专利 2软著 3审计 4双软 5高新 6商标*/}
  2312. {/*cSort: 3 科技项目 6: 会员*/}
  2313. {(this.state.bpType === 5 || this.state.cSort === 3) && <FormItem
  2314. className="half-item"
  2315. {...formItemLayout}
  2316. label="申报批次"
  2317. >
  2318. <span>{this.state.declarationBatch}</span>
  2319. </FormItem>}
  2320. <FormItem
  2321. className="half-item"
  2322. {...formItemLayout}
  2323. label="软著派单数量"
  2324. >
  2325. <span>{this.state.commodityQuantity}</span>
  2326. </FormItem>
  2327. <div className="patent-table patent-table-center">
  2328. <Spin spinning={this.state.loading}>
  2329. <Table
  2330. columns={this.state.ContactsLists}
  2331. dataSource={this.state.contactList}
  2332. pagination={false}
  2333. bordered
  2334. size="small"
  2335. />
  2336. </Spin>
  2337. </div>
  2338. </div>
  2339. <div className="clearfix">
  2340. <h3 className="sub-title">项目业务</h3>
  2341. <div className="patent-table">
  2342. <Spin spinning={this.state.loading}>
  2343. <Table
  2344. columns={this.state.columnsX}
  2345. dataSource={this.state.dataSourceX}
  2346. pagination={this.state.paginations}
  2347. onRowClick={this.tableRowClickX}
  2348. bordered
  2349. size="small"
  2350. />
  2351. </Spin>
  2352. </div>
  2353. </div>
  2354. </div> : <div />}
  2355. </TabPane>
  2356. {!this.props.isZxs || (this.state.isHuiyuan && this.props.isZxs) ? (
  2357. <TabPane tab="订单详情" key="2">
  2358. {this.state.activeKey === "2" ? <Spin spinning={this.state.loading}>
  2359. <OrderDetail
  2360. orderUid={this.state.orderUid}
  2361. orderData={this.state.orderData}
  2362. getOrderLog={this.getOrderLog}
  2363. dataSourceX={this.state.dataSourceX}
  2364. contactList={this.state.jiedian}
  2365. orderNo={this.state.orderNo}
  2366. totalCui={this.state.totalCui}
  2367. contactListNew={this.state.jiedianNew}
  2368. pictureUrl={this.state.contractPictureUrl}
  2369. />
  2370. </Spin> : <div />}
  2371. <OrderRiZi
  2372. dataSourcerizhi={this.state.dataSourceY}
  2373. closeOrderLog={this.closeOrderLog}
  2374. visible={this.state.avisible}
  2375. loading={this.state.loading}
  2376. />
  2377. </TabPane>
  2378. ) : (
  2379. ""
  2380. )}
  2381. </Tabs>
  2382. </Modal> : <div />}
  2383. {this.state.visibleA ? <Modal
  2384. width="800px"
  2385. maskClosable={false}
  2386. visible={this.state.visibleA}
  2387. onCancel={this.visitCancelA}
  2388. title="操作日志"
  2389. footer=""
  2390. className="admin-desc-content"
  2391. >
  2392. <div className="patent-table patent-table-center">
  2393. <Spin spinning={this.state.loading}>
  2394. <Table
  2395. columns={this.state.columnsA}
  2396. dataSource={this.state.dataSourceA}
  2397. pagination={false}
  2398. bordered
  2399. size="small"
  2400. />
  2401. </Spin>
  2402. </div>
  2403. </Modal> : null}
  2404. {this.state.resVisible ? (
  2405. <ResolutionDetail
  2406. cancel={this.resCancel}
  2407. detail={this.state.resRecord}
  2408. visible={this.state.resVisible}
  2409. id={this.state.resRecord.orderNo}
  2410. />
  2411. ) : (
  2412. ""
  2413. )}
  2414. {this.state.addnextVisible && <ProjectDetailsReadOnly
  2415. infor={this.state.dataInfor}
  2416. visible={this.state.addnextVisible}
  2417. onCancel={this.nextCancel}
  2418. />}
  2419. </div>
  2420. );
  2421. },
  2422. });
  2423. export default Task;