taskQuery.jsx 89 KB

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