taskQuery.jsx 89 KB

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