taskQuery.jsx 84 KB

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