taskQuery.jsx 80 KB

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