myTask.jsx 80 KB

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