myTaskOutsource.jsx 103 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052
  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. Tabs,
  20. notification
  21. } from "antd";
  22. import Assign from "@/manageCenter/publicComponent/assign";
  23. import { areaSelect } from "@/NewDicProvinceList";
  24. import "./table.less";
  25. import {
  26. getProcessStatus,
  27. getApproval,
  28. getTaskStatus,
  29. getLiquidationStatus,
  30. getProjectStatus,
  31. splitUrl,
  32. getboutique,
  33. getprovince
  34. } from "@/tools";
  35. import { taskStatus, projectStatus } from "@/dataDic.js";
  36. const FormItem = Form.Item;
  37. const MyTaskOutsource = React.createClass({
  38. loadData(pageNo) {
  39. this.state.data = [];
  40. this.setState({
  41. page: pageNo,
  42. loading: true
  43. });
  44. $.ajax({
  45. method: "get",
  46. dataType: "json",
  47. crossDomain: false,
  48. url: globalConfig.context + "/api/admin/orderProject/orderTaskList",
  49. data: {
  50. pageNo: pageNo || 1,
  51. pageSize: this.state.pagination.pageSize,
  52. specially: 0, //个人
  53. name: this.state.nameSearch, //客户名称
  54. depId: this.state.departmenttSearch, //订单部门
  55. orderNo: this.state.orderNoSearch, //订单编号
  56. taskId: this.state.taskNoSearch, //任务编号
  57. taskStatus: this.state.taskStatus, //任务状态
  58. adminName: this.state.adminName, //任务受理人
  59. outsource: 1
  60. },
  61. success: function(data) {
  62. let theArr = [];
  63. if (!data.data || !data.data.list) {
  64. if (data.error && data.error.length) {
  65. message.warning(data.error[0].message);
  66. }
  67. } else {
  68. for (let i = 0; i < data.data.list.length; i++) {
  69. let thisdata = data.data.list[i];
  70. theArr.push({
  71. key: i,
  72. orderNo: thisdata.orderNo, //订单编号
  73. id: thisdata.id, //任务ID
  74. taskName: thisdata.taskName, //名称
  75. cname: thisdata.cname, //项目品类
  76. receiverName: thisdata.receiverName, //受理人
  77. projectStatus: thisdata.projectStatus, //项目状态
  78. taskStatus: thisdata.taskStatus, //任务状态
  79. taskDate: thisdata.taskDate, //分配时间
  80. userName:
  81. thisdata.taskName.substring(0, 5) === "软件著作权"
  82. ? thisdata.userName +
  83. "(" +
  84. thisdata.commodityQuantity.toString() +
  85. "/" +
  86. thisdata.alreadyNumber +
  87. ")"
  88. : thisdata.userName, //用户名
  89. depName: thisdata.depName, //部门名称
  90. commodityQuantity: thisdata.commodityQuantity, //任务数量
  91. outsourceName: thisdata.outsourceName
  92. });
  93. }
  94. }
  95. if (data.data && data.data.list && !data.data.list.length) {
  96. this.state.pagination.current = 0;
  97. this.state.pagination.total = 0;
  98. }
  99. this.setState({
  100. dataSource: theArr,
  101. pagination: this.state.pagination
  102. });
  103. }.bind(this)
  104. }).always(
  105. function() {
  106. this.setState({
  107. loading: false
  108. });
  109. }.bind(this)
  110. );
  111. },
  112. getInitialState() {
  113. return {
  114. searchMore: true,
  115. assignVisible: false,
  116. releaseDate: [],
  117. roleName: "",
  118. modKey: "1",
  119. testFlag: true,
  120. boHuivisible: false,
  121. companyProvinceArr: [],
  122. selectedRowKeys: [],
  123. departmentArr: [],
  124. selectedRows: [],
  125. attachmentUrl: [],
  126. contactList: [],
  127. paginations: false,
  128. loading: false,
  129. pagination: {
  130. defaultCurrent: 1,
  131. defaultPageSize: 10,
  132. showQuickJumper: true,
  133. pageSize: 10,
  134. onChange: function(page) {
  135. this.loadData(page);
  136. }.bind(this),
  137. showTotal: function(total) {
  138. return "共" + total + "条数据";
  139. }
  140. },
  141. columns: [
  142. {
  143. title: "任务编号",
  144. dataIndex: "id",
  145. key: "id"
  146. },
  147. {
  148. title: "任务名称",
  149. dataIndex: "taskName",
  150. key: "taskName",
  151. render: text => {
  152. return text && text.length > 8 ? text.substr(0, 8) + "…" : text;
  153. }
  154. },
  155. {
  156. title: "订单编号",
  157. dataIndex: "orderNo",
  158. key: "orderNo"
  159. },
  160. {
  161. title: "业务类别",
  162. dataIndex: "cname",
  163. key: "cname"
  164. },
  165. {
  166. title: "客户名称",
  167. dataIndex: "userName",
  168. key: "userName",
  169. className: "userName"
  170. },
  171. {
  172. title: "外包公司",
  173. dataIndex: "outsourceName",
  174. key: "outsourceName"
  175. },
  176. {
  177. title: "任务状态",
  178. dataIndex: "taskStatus",
  179. key: "taskStatus",
  180. render: text => {
  181. return getTaskStatus(text);
  182. }
  183. },
  184. {
  185. title: "项目状态",
  186. dataIndex: "projectStatus",
  187. key: "projectStatus",
  188. render: text => {
  189. return getProjectStatus(text);
  190. }
  191. },
  192. {
  193. title: "分配时间",
  194. dataIndex: "taskDate",
  195. key: "taskDate"
  196. },
  197. {
  198. title: "订单部门",
  199. dataIndex: "depName",
  200. key: "depName"
  201. },
  202. {
  203. title: "操作",
  204. dataIndex: "caozuo",
  205. key: "caozuo",
  206. render: (text, record) => {
  207. return (
  208. <div>
  209. <Button
  210. type="primary"
  211. onClick={e => {
  212. e.stopPropagation(), this.evaluate(record, "咨询师");
  213. }}
  214. >
  215. 转交
  216. </Button>
  217. <Button
  218. type="primary"
  219. style={{ margin: "0 10px" }}
  220. onClick={e => {
  221. e.stopPropagation(), this.okCancel(record);
  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. companys: [],
  304. ContactsLists: [
  305. {
  306. title: "批次",
  307. dataIndex: "num",
  308. key: "num"
  309. },
  310. {
  311. title: "下证时间",
  312. dataIndex: "licenceTimes",
  313. key: "licenceTimes",
  314. render: (text, record) => {
  315. return (
  316. <div>
  317. <DatePicker
  318. style={{ marginTop: "5px" }}
  319. showTime
  320. format="YYYY-MM-DD"
  321. onOk={() => {}}
  322. value={
  323. record.licenceTimes ? moment(record.licenceTimes) : null
  324. }
  325. onChange={(data, dataString) => {
  326. record.licenceTimes = dataString;
  327. this.setState({ contactList: this.state.contactList });
  328. }}
  329. />
  330. </div>
  331. );
  332. }
  333. },
  334. {
  335. title: "下证数量",
  336. dataIndex: "alreadyNumber",
  337. key: "alreadyNumber",
  338. render: (text, record) => {
  339. return (
  340. <div>
  341. {
  342. <Input
  343. value={record.alreadyNumber}
  344. placeholder="请输入下证数量"
  345. key={record.id}
  346. required="required"
  347. onChange={e => {
  348. record.alreadyNumber = e.target.value;
  349. this.setState({ contactList: this.state.contactList });
  350. }}
  351. style={{ width: "120px" }}
  352. />
  353. }
  354. </div>
  355. );
  356. }
  357. },
  358. {
  359. title: "未下证数量",
  360. dataIndex: "notCount",
  361. key: "notCount"
  362. },
  363. {
  364. title: "操作",
  365. dataIndex: "dels",
  366. key: "dels",
  367. render: (text, record, index) => {
  368. return (
  369. <div>
  370. {
  371. <Popconfirm
  372. title="是否删除?"
  373. onConfirm={() => {
  374. this.confirmDelet(record);
  375. }}
  376. okText="删除"
  377. cancelText="不删除"
  378. >
  379. <Button
  380. style={{
  381. marginRight: "10px",
  382. color: "#ffffff",
  383. background: "#f00",
  384. border: "none"
  385. }}
  386. >
  387. 删除
  388. </Button>
  389. </Popconfirm>
  390. }
  391. {record.flag ? (
  392. ""
  393. ) : (
  394. <Button
  395. type="primary"
  396. onClick={e => {
  397. e.stopPropagation(), this.contactSave(record, index);
  398. }}
  399. >
  400. 保存
  401. </Button>
  402. )}
  403. </div>
  404. );
  405. }
  406. }
  407. ],
  408. companyColumns: [
  409. {
  410. title: "公司",
  411. dataIndex: "name",
  412. key: "name",
  413. //fixed:'left',
  414. width: 160
  415. },
  416. {
  417. title: "联系人",
  418. dataIndex: "contacts",
  419. key: "contacts"
  420. },
  421. {
  422. title: "联系人电话",
  423. dataIndex: "contactsMobile",
  424. key: "contactsMobile"
  425. },
  426. {
  427. title: "地址",
  428. dataIndex: "companyProvinceArr",
  429. key: "companyProvinceArr",
  430. width: 140,
  431. render: test => {
  432. return test[0] === null
  433. ? ""
  434. : getprovince(test[0]) +
  435. "/" +
  436. getprovince(test[1]) +
  437. "/" +
  438. getprovince(test[2]);
  439. }
  440. },
  441. {
  442. title: "详细地址",
  443. dataIndex: "address",
  444. key: "address"
  445. },
  446. {
  447. title: "操作",
  448. width: 160,
  449. render: (text, record) => {
  450. return (
  451. <div>
  452. <Button
  453. type="primary"
  454. onClick={() => {
  455. this.setState({
  456. companyId: record.id,
  457. updataSwicth: true,
  458. cName: record.name,
  459. companyContacts: record.contacts,
  460. companyContactsMobile: record.contactsMobile,
  461. companyProvinceArr: record.companyProvinceArr,
  462. companyAddress: record.address,
  463. companyRemarks: record.remarks
  464. });
  465. this.openNotification();
  466. }}
  467. >
  468. 修改
  469. </Button>
  470. <Popconfirm
  471. title="是否确认删除?"
  472. okText="确定"
  473. onConfirm={() => {
  474. this.deleteCompany(record.id);
  475. }}
  476. cancelText="取消"
  477. >
  478. <Button type="danger" style={{ marginLeft: "10px" }}>
  479. 删除
  480. </Button>
  481. </Popconfirm>
  482. </div>
  483. );
  484. }
  485. }
  486. ]
  487. };
  488. },
  489. /* 分派 */
  490. evaluate(record, nub) {
  491. this.state.assignData = record;
  492. this.setState(
  493. {
  494. nub
  495. },
  496. () => {
  497. this.setState({
  498. assignVisible: true
  499. });
  500. }
  501. );
  502. },
  503. componentWillMount() {
  504. this.departmentList();
  505. this.loadData();
  506. },
  507. componentDidMount() {
  508. this.setColor();
  509. },
  510. setColor() {
  511. $(".userName span").after(
  512. "(<span class='ruanzhu'>软著数</span>/<span class='xiazheng'>下证数</span>)"
  513. );
  514. },
  515. tableRowClick(record) {
  516. this.state.RowData = record;
  517. if (record.taskName.substring(0, 5) === "软件著作权") {
  518. this.setState({
  519. speVisible: true,
  520. id: record.id,
  521. dataArr: record,
  522. commodityQuantity: record.commodityQuantity
  523. });
  524. } else {
  525. this.setState({
  526. visible: true
  527. });
  528. }
  529. this.xiangqing(record.id, record.taskName);
  530. this.xiangqings(record.orderNo);
  531. this.xiangmu(record.orderNo);
  532. this.loaduserss(record);
  533. },
  534. //点击修改任务详情
  535. tijiaoOk() {
  536. let attachmentUrls = [];
  537. if (this.state.attachmentUrl.length) {
  538. let picArr = [];
  539. this.state.attachmentUrl.map(function(item) {
  540. if (item.response && item.response.data && item.response.data.length) {
  541. picArr.push(item.response.data);
  542. }
  543. });
  544. attachmentUrls = picArr.join(",");
  545. }
  546. $.ajax({
  547. method: "POST",
  548. dataType: "json",
  549. crossDomain: false,
  550. url: globalConfig.context + "/api/admin/orderProject/updateOrderTask",
  551. data: {
  552. id: this.state.id, //任务编号
  553. orderNo: this.state.orderNo, //订单编号
  554. projectStatus: this.state.projectStatus, //项目状态
  555. taskStatus: this.state.taskStatus, //任务状态
  556. taskComment: this.state.taskComment, //说明
  557. startDate: this.state.startDate, //启动日期
  558. endDate: this.state.endDate, //结束日期
  559. acceptDate: this.state.acceptDate, //受理日期
  560. reviewDate: this.state.reviewDate, //评审日期
  561. publicityDate: this.state.publicityDate, //公示日期
  562. licenceDate: this.state.licenceDate, //发证日期
  563. attachmentUrl: attachmentUrls.length ? attachmentUrls : "", //附件
  564. contacts: this.state.contacts, //联系人
  565. contactMobile: this.state.contactMobile, //联系人电话
  566. legalPerson: this.state.legalPerson, //法人
  567. legalPersonTel: this.state.legalPersonTel, //法人电话
  568. certificateNumber: this.state.certificateNumber, //证书编号
  569. status: this.state.status, //状态
  570. formRetrieve: this.state.formRetrieve, //满意度表格
  571. taskRefund: this.state.taskRefund, //退单
  572. refundContent: this.state.refundContent, //退单信息
  573. retrieveContent: this.state.retrieveContent, //回收信息
  574. locationProvince: this.state.ProvinceCity[0],
  575. locationCity: this.state.ProvinceCity[1],
  576. locationArea: this.state.ProvinceCity[2],
  577. postalAddress: this.state.postalAddress, //详细地址
  578. arrivalMoney: this.state.arrivalMoney, //是否到款
  579. setUpAmount: this.state.setUpAmount, //立项金额
  580. declareUser: this.state.declareUser, //账号
  581. declarePwd: this.state.declarePwd, //密码
  582. outsourceName: this.state.outsourceName, //外包公司名称
  583. outsourcePrice: this.state.outsourcePrice //外包价格
  584. }
  585. }).done(
  586. function(data) {
  587. this.setState({
  588. loading: false
  589. });
  590. if (!data.error.length) {
  591. message.success("保存成功!");
  592. this.visitCancel();
  593. } else {
  594. message.warning(data.error[0].message);
  595. }
  596. }.bind(this)
  597. );
  598. },
  599. //点击修改任务详情
  600. tianjiaOk() {
  601. if (this.state.attachmentUrl.length) {
  602. let picArr = [];
  603. this.state.attachmentUrl.map(function(item) {
  604. if (item.response && item.response.data && item.response.data.length) {
  605. picArr.push(item.response.data);
  606. }
  607. });
  608. }
  609. $.ajax({
  610. method: "POST",
  611. dataType: "json",
  612. crossDomain: false,
  613. url: globalConfig.context + "/api/admin/orderProject/addTaskHours",
  614. data: {
  615. taskId: this.state.taskId, //任务编号
  616. hours: this.state.hours, //工时
  617. remarks: this.state.remarks, //说明
  618. taskDate: this.state.taskDate, //日期
  619. taskComment: this.state.taskComment //说明
  620. }
  621. }).done(
  622. function(data) {
  623. this.setState({
  624. loading: false
  625. });
  626. if (!data.error.length) {
  627. message.success("保存成功!");
  628. this.noCancel();
  629. } else {
  630. message.warning(data.error[0].message);
  631. }
  632. }.bind(this)
  633. );
  634. },
  635. //订单详情
  636. xiangqing(id) {
  637. $.ajax({
  638. method: "get",
  639. dataType: "json",
  640. crossDomain: false,
  641. url: globalConfig.context + "/api/admin/orderProject/orderTaskDetail",
  642. data: {
  643. id: id
  644. },
  645. success: function(data) {
  646. let thisdata = data.data;
  647. if (data.error.length || data.data.list == "") {
  648. if (data.error && data.error.length) {
  649. message.warning(data.error[0].message);
  650. }
  651. } else {
  652. this.setState({
  653. id: thisdata.id, //ID
  654. orderNo: thisdata.orderNo, //订单编号
  655. userName: thisdata.userName, //客户名称
  656. taskName: thisdata.taskName, //任务名称
  657. cname: thisdata.cname, //项目品类
  658. contractNo: thisdata.contractNo, //合同编号
  659. projectStatus: thisdata.projectStatus.toString(), //项目状态
  660. taskStatus: thisdata.taskStatus.toString(), //任务状态
  661. taskDate: thisdata.taskDate, //分配时间
  662. taskComment: thisdata.taskComment, //说明
  663. attachmentUrl: thisdata.attachmentUrl
  664. ? splitUrl(
  665. thisdata.attachmentUrl,
  666. ",",
  667. globalConfig.avatarHost + "/upload"
  668. )
  669. : [], //图片地址
  670. salesmanName: thisdata.salesmanName, //订单负责人
  671. startDate: thisdata.startDate, //启动日期
  672. endDate: thisdata.endDate, //结束日期
  673. acceptDate: thisdata.acceptDate, //受理日期
  674. reviewDate: thisdata.reviewDate, //评审日期
  675. publicityDate: thisdata.publicityDate, //公示日期
  676. licenceDate: thisdata.licenceDate, //发证日期
  677. contacts: thisdata.contacts, //联系人
  678. contactMobile: thisdata.contactMobile, //联系人电话
  679. legalPerson: thisdata.legalPerson, //法人
  680. legalPersonTel: thisdata.legalPersonTel, //法人电话
  681. certificateNumber: thisdata.certificateNumber, //证书编号
  682. status: thisdata.status, //状态
  683. formRetrieve: thisdata.formRetrieve, //满意度表格
  684. taskRefund: thisdata.taskRefund, //退单
  685. refundContent: thisdata.refundContent, //退单信息
  686. retrieveContent: thisdata.retrieveContent, //回收信息
  687. arrivalMoney: thisdata.arrivalMoney, //是否到款
  688. setUpAmount: thisdata.setUpAmount, //立项金额
  689. declareUser: thisdata.declareUser, //账号
  690. declarePwd: thisdata.declarePwd, //密码
  691. outsourceName: thisdata.outsourceName, //外包公司名称
  692. outsourcePrice: thisdata.outsourcePrice //外包价格
  693. });
  694. }
  695. }.bind(this)
  696. }).always(
  697. function() {
  698. this.setState({
  699. loading: false
  700. });
  701. }.bind(this)
  702. );
  703. },
  704. //订单详情
  705. xiangqings(orderNos) {
  706. $.ajax({
  707. method: "get",
  708. dataType: "json",
  709. crossDomain: false,
  710. url: globalConfig.context + "/api/admin/newOrder/getOrderNewDetail",
  711. data: {
  712. orderNo: orderNos
  713. },
  714. success: function(data) {
  715. let thisdata = data.data;
  716. let ProvinceCityArr = [];
  717. let ProvinceS = thisdata.locationProvince; //省
  718. let citys = thisdata.locationCity; //市
  719. let Areas = thisdata.locationArea; //区
  720. ProvinceCityArr.push(ProvinceS, citys, Areas);
  721. if (data.error.length || data.data.list == "") {
  722. if (data.error && data.error.length) {
  723. message.warning(data.error[0].message);
  724. }
  725. } else {
  726. this.setState({
  727. processStatus: thisdata.processStatus, //流程状态
  728. liquidationStatus: thisdata.liquidationStatus, //结算状态
  729. approval: thisdata.approval, //特批状态
  730. orderRemarks: thisdata.orderRemarks, //订单留言
  731. salesmanName: thisdata.salesmanName, //营销员名称
  732. salesmanMobile: thisdata.salesmanMobile, //营销员电话
  733. financeName: thisdata.financeName, //财务名称
  734. financeMobile: thisdata.financeMobile, //财务电话
  735. depName: thisdata.depName, //订单部门
  736. ProvinceCity: ProvinceCityArr[0] === null ? [] : ProvinceCityArr,
  737. postalAddress: thisdata.postalAddress //详细地址
  738. });
  739. }
  740. }.bind(this)
  741. }).always(
  742. function() {
  743. this.setState({
  744. loading: false
  745. });
  746. }.bind(this)
  747. );
  748. },
  749. //项目列表
  750. xiangmu(orderNos) {
  751. $.ajax({
  752. method: "get",
  753. dataType: "json",
  754. crossDomain: false,
  755. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  756. data: {
  757. orderNo: orderNos
  758. },
  759. success: function(data) {
  760. let theArr = [];
  761. if (data.error.length || data.data.list == "") {
  762. if (data.error && data.error.length) {
  763. message.warning(data.error[0].message);
  764. }
  765. } else {
  766. for (let i = 0; i < data.data.length; i++) {
  767. let thisdata = data.data[i];
  768. theArr.push({
  769. key: i,
  770. id: thisdata.id,
  771. orderNo: thisdata.orderNo, //订单编号
  772. commodityId: thisdata.commodityId, //项目ID
  773. commodityName: thisdata.commodityName, //项目名称
  774. cname: thisdata.cname, //项目类别
  775. commodityPrice: thisdata.commodityPrice, //项目价格
  776. commodityQuantity: thisdata.commodityQuantity, //项目数量
  777. main: thisdata.main, //是否为主要任务
  778. taskComment: thisdata.taskComment, //任务说明
  779. contacts: thisdata.contacts, //联系人
  780. contactsMobile: thisdata.contactsMobile, //联系人电话
  781. taskStatus: thisdata.taskStatus, //是否分配
  782. contractNo: thisdata.contractNo, //合同编号
  783. certificateNumber: thisdata.certificateNumber
  784. });
  785. }
  786. }
  787. this.setState({
  788. dataSourceX: theArr
  789. });
  790. }.bind(this)
  791. }).always(
  792. function() {
  793. this.setState({
  794. loading: false
  795. });
  796. }.bind(this)
  797. );
  798. },
  799. //导出
  800. exportExec() {
  801. let departmentName = "",
  802. depart = this.state.departmentArr || [];
  803. depart.map(item => {
  804. if (this.state.departmentId == item.id) {
  805. departmentName = item.name;
  806. return;
  807. }
  808. });
  809. let data = {
  810. departmentId: this.state.departmentId,
  811. departmentName: departmentName,
  812. salesName: this.state.orderRefundSearch, //订单负责人
  813. startTime: this.state.releaseDate[0],
  814. endTime: this.state.releaseDate[1],
  815. grantStatus: this.state.grantStatus
  816. };
  817. window.location.href =
  818. globalConfig.context +
  819. "/api/admin/orderProject/exportMyTaskList?" +
  820. $.param(data);
  821. },
  822. //关闭详情
  823. visitCancel() {
  824. this.setState({
  825. visible: false,
  826. speVisible: false,
  827. modKey: "1"
  828. });
  829. this.companyReset();
  830. this.reset();
  831. },
  832. visitOk() {
  833. this.setState({
  834. visible: false,
  835. speVisible: false
  836. });
  837. this.reset();
  838. },
  839. closeDesc(e, s) {
  840. this.state.showDesc = e;
  841. if (s) {
  842. this.loadData(this.state.page);
  843. }
  844. },
  845. closeAssign(e, s) {
  846. this.state.roleName = "";
  847. this.state.assignVisible = e;
  848. if (s) {
  849. this.loadData(this.state.page);
  850. }
  851. },
  852. //添加工时
  853. okCancel(record) {
  854. this.setState({
  855. lookVisible: true,
  856. taskId: record.id
  857. });
  858. },
  859. //测试
  860. getOrgCodeUrl(e) {
  861. this.setState({ orgCodeUrl: e });
  862. },
  863. //查看下证信息
  864. loaduserss(record) {
  865. $.ajax({
  866. method: "get",
  867. dataType: "json",
  868. crossDomain: false,
  869. url: globalConfig.context + "/api/admin/orderProject/selectTaskProgress",
  870. data: {
  871. tid: record.id
  872. },
  873. success: function(data) {
  874. let theArr = [];
  875. let thisData = [];
  876. if (!thisData) {
  877. if (data.error && data.error.length) {
  878. message.warning(data.error[0].message);
  879. }
  880. thisData = {};
  881. } else {
  882. for (let i = 0; i < data.data.length; i++) {
  883. thisData = data.data[i];
  884. theArr.push({
  885. num: i + 1,
  886. key: i,
  887. id: thisData.id, //编号
  888. alreadyNumber: thisData.alreadyNumber, //下证数
  889. licenceTimes: thisData.licenceTimes, //下证时间
  890. notCount: thisData.notCount, //未下证数
  891. flag: true
  892. });
  893. }
  894. this.setState({
  895. contactList: theArr
  896. });
  897. }
  898. }.bind(this)
  899. }).always(
  900. function() {
  901. this.setState({
  902. loading: false
  903. });
  904. }.bind(this)
  905. );
  906. },
  907. //下证信息保存
  908. contactSave(record) {
  909. if (!record.licenceTimes) {
  910. message.warning("下证日期不能为空");
  911. return;
  912. }
  913. if (!record.alreadyNumber) {
  914. message.warning("下证数量不能为空");
  915. return;
  916. }
  917. this.setState({
  918. loading: true
  919. });
  920. $.ajax({
  921. url: globalConfig.context + "/api/admin/orderProject/createTaskProgress",
  922. method: "post",
  923. data: {
  924. taskId: this.state.id,
  925. licenceTimes: record.licenceTimes,
  926. alreadyNumber: record.alreadyNumber
  927. }
  928. }).done(
  929. function(data) {
  930. this.setState({
  931. loading: false
  932. });
  933. if (!data.error.length) {
  934. message.success("保存成功!");
  935. record.flag = true;
  936. this.loaduserss(this.state.dataArr);
  937. } else {
  938. message.warning(data.error[0].message);
  939. }
  940. }.bind(this)
  941. );
  942. },
  943. //下证信息删除
  944. contactDele(record) {
  945. this.setState({
  946. loading: true
  947. });
  948. $.ajax({
  949. url: globalConfig.context + "/api/admin/orderProject/delectTaskProgress",
  950. method: "post",
  951. data: {
  952. id: record.id
  953. }
  954. }).done(
  955. function(data) {
  956. this.setState({
  957. loading: false
  958. });
  959. if (!data.error.length) {
  960. this.loaduserss(this.state.dataArr);
  961. } else {
  962. message.warning(data.error[0].message);
  963. }
  964. }.bind(this)
  965. );
  966. },
  967. //点击新增下证信息
  968. addcontact() {
  969. this.state.contactList.push({
  970. num: this.state.contactList.length + 1,
  971. key: this.state.contactList.length,
  972. licenceTimes: "",
  973. alreadyNumber: "",
  974. notCount: "",
  975. dels: "",
  976. flag: false,
  977. aflag: false
  978. });
  979. this.setState({
  980. contactList: this.state.contactList
  981. });
  982. },
  983. //删除下证信息
  984. confirmDelet(record) {
  985. this.state.contactList.splice(record.key, 1);
  986. this.setState({
  987. contactList: this.state.contactList
  988. });
  989. if (record.id) {
  990. this.contactDele(record);
  991. }
  992. },
  993. caozuorizhi() {
  994. this.setState({
  995. visibleA: true
  996. });
  997. $.ajax({
  998. method: "get",
  999. dataType: "json",
  1000. crossDomain: false,
  1001. url: globalConfig.context + "/api/admin/orderProject/TaskLogList",
  1002. data: {
  1003. id: this.state.id
  1004. },
  1005. success: function(data) {
  1006. let theArr = [];
  1007. if (data.error.length || data.data.list == "") {
  1008. if (data.error && data.error.length) {
  1009. message.warning(data.error[0].message);
  1010. }
  1011. } else {
  1012. for (let i = 0; i < data.data.length; i++) {
  1013. let thisdata = data.data[i];
  1014. theArr.push({
  1015. key: i,
  1016. id: thisdata.id, //日志ID
  1017. content: thisdata.content, //流程
  1018. taskId: thisdata.taskId, //任务ID
  1019. aName: thisdata.aName, //负责人
  1020. createTimes: thisdata.createTimes //时间
  1021. });
  1022. }
  1023. }
  1024. this.setState({
  1025. dataSourceA: theArr
  1026. });
  1027. }.bind(this)
  1028. }).always(
  1029. function() {
  1030. this.setState({
  1031. loading: false
  1032. });
  1033. }.bind(this)
  1034. );
  1035. },
  1036. //通知提醒
  1037. openNotification() {
  1038. notification.open({
  1039. message: "提醒",
  1040. description: "请在输入框中重新输入需要修改的选项!"
  1041. });
  1042. },
  1043. //关闭操作工时
  1044. visitCancelA() {
  1045. this.setState({
  1046. visibleA: false
  1047. });
  1048. },
  1049. callBack(e) {
  1050. this.setState({
  1051. modKey: e
  1052. });
  1053. this.loadCompany();
  1054. },
  1055. //添加公司
  1056. addCompany() {
  1057. this.setState({
  1058. switch: true
  1059. });
  1060. },
  1061. //保存和修改公司
  1062. saveCompany(id) {
  1063. if (this.companyJugle()) {
  1064. let upAndde = this.state.updataSwicth
  1065. ? {
  1066. api: "/api/admin/outsourceOrg/updateOutsourceOrg",
  1067. warn: "修改成功",
  1068. data: {
  1069. id: id,
  1070. name: this.state.cName,
  1071. contacts: this.state.companyContacts,
  1072. contactsMobile: this.state.companyContactsMobile,
  1073. province: this.state.companyProvinceArr[0],
  1074. city: this.state.companyProvinceArr[1],
  1075. area: this.state.companyProvinceArr[2],
  1076. address: this.state.companyAddress,
  1077. remarks: this.state.companyRemarks
  1078. }
  1079. }
  1080. : {
  1081. api: "/api/admin/outsourceOrg/addOutsourceOrg",
  1082. warn: "保存成功",
  1083. data: {
  1084. name: this.state.cName,
  1085. tid: this.state.RowData.id,
  1086. contacts: this.state.companyContacts,
  1087. contactsMobile: this.state.companyContactsMobile,
  1088. orderNo: this.state.orderNo,
  1089. province: this.state.companyProvinceArr[0],
  1090. city: this.state.companyProvinceArr[1],
  1091. area: this.state.companyProvinceArr[2],
  1092. address: this.state.companyAddress,
  1093. remarks: this.state.companyRemarks
  1094. }
  1095. };
  1096. $.ajax({
  1097. method: "post",
  1098. dataType: "json",
  1099. crossDomain: false,
  1100. url: globalConfig.context + upAndde.api,
  1101. data: upAndde.data,
  1102. success: function(data) {
  1103. if (data.error.length || data.data.list == "") {
  1104. if (data.error && data.error.length) {
  1105. message.warning(data.error[0].message);
  1106. }
  1107. }
  1108. }.bind(this)
  1109. }).done(
  1110. function() {
  1111. this.setState({
  1112. loading: false,
  1113. updataSwicth: false
  1114. });
  1115. this.companyReset();
  1116. message.warning(upAndde.warn);
  1117. this.loadCompany();
  1118. }.bind(this)
  1119. );
  1120. }
  1121. },
  1122. //判断
  1123. companyJugle() {
  1124. if (this.state.cName === undefined) {
  1125. console.log(2345);
  1126. message.warning("公司名称不能为空!");
  1127. return;
  1128. }
  1129. if (this.state.companyContacts === undefined) {
  1130. message.warning("联系人不能为空!");
  1131. return;
  1132. }
  1133. if (this.state.companyContactsMobile === undefined) {
  1134. message.warning("联系人电话不能为空!");
  1135. return;
  1136. }
  1137. return true;
  1138. },
  1139. //删除外包
  1140. deleteCompany(id) {
  1141. $.ajax({
  1142. method: "post",
  1143. dataType: "json",
  1144. crossDomain: false,
  1145. url: globalConfig.context + "/api/admin/outsourceOrg/deleteOutsourceOrg",
  1146. data: {
  1147. id: id
  1148. },
  1149. success: function() {}.bind(this)
  1150. }).done(
  1151. function() {
  1152. this.setState({
  1153. loading: false
  1154. });
  1155. message.warning("删除成功");
  1156. this.loadCompany();
  1157. }.bind(this)
  1158. );
  1159. },
  1160. //重置外包
  1161. companyReset() {
  1162. this.setState({
  1163. cName: undefined,
  1164. companyContacts: undefined,
  1165. companyContactsMobile: undefined,
  1166. companyProvinceArr: [],
  1167. companyAddress: undefined,
  1168. companyRemarks: undefined
  1169. });
  1170. },
  1171. //加载外包
  1172. loadCompany() {
  1173. this.setState({
  1174. loading: true
  1175. });
  1176. $.ajax({
  1177. method: "get",
  1178. dataType: "json",
  1179. crossDomain: false,
  1180. url: globalConfig.context + "/api/admin/outsourceOrg/selectOutsourceOrg",
  1181. data: {
  1182. orderNo: this.state.RowData.orderNo,
  1183. tid: this.state.RowData.id
  1184. },
  1185. success: function(data) {
  1186. let theArr = [];
  1187. if (data.error.length || data.data.list == "") {
  1188. if (data.error && data.error.length) {
  1189. message.warning(data.error[0].message);
  1190. }
  1191. } else {
  1192. for (let i = 0; i < data.data.length; i++) {
  1193. let thisdata = data.data[i];
  1194. let ProvinceCityArr = [];
  1195. let ProvinceS = thisdata.province; //省
  1196. let citys = thisdata.city; //市
  1197. let Areas = thisdata.area; //区
  1198. ProvinceCityArr.push(ProvinceS, citys, Areas);
  1199. theArr.push({
  1200. key: i,
  1201. id: thisdata.id, //外包Id
  1202. name: thisdata.name, //名称
  1203. contacts: thisdata.contacts, //联系人
  1204. contactsMobile: thisdata.contactsMobile, //联系人电话
  1205. companyProvinceArr: ProvinceCityArr,
  1206. address: thisdata.address,
  1207. remarks: thisdata.remarks
  1208. });
  1209. }
  1210. }
  1211. this.setState({
  1212. companys: theArr
  1213. });
  1214. }.bind(this)
  1215. }).always(
  1216. function() {
  1217. this.setState({
  1218. loading: false
  1219. });
  1220. }.bind(this)
  1221. );
  1222. },
  1223. foo2() {
  1224. this.setState({
  1225. testFlag1: false
  1226. });
  1227. },
  1228. foo1() {
  1229. this.setState({
  1230. testFlag1: true
  1231. });
  1232. },
  1233. foo() {
  1234. this.setState({
  1235. testFlag: false
  1236. });
  1237. },
  1238. nextCancel() {
  1239. this.setState({
  1240. addnextVisible: false
  1241. });
  1242. },
  1243. //点击打卡项目详情
  1244. tableRowClickX(record) {
  1245. this.setState({
  1246. jid: record.id, //项目ID
  1247. kid: record.commodityId, //商品ID
  1248. commodityName: record.commodityName, //金额
  1249. commodityPrice: record.commodityPrice, //金额
  1250. commodityQuantity: record.commodityQuantity, //数量
  1251. taskComment: record.taskComment, //备注
  1252. main: record.main.toString(), //是否为主要
  1253. addnextVisible: true,
  1254. addState: 0
  1255. });
  1256. },
  1257. //关闭添加工时
  1258. noCancel() {
  1259. this.setState({
  1260. lookVisible: false
  1261. });
  1262. this.reset();
  1263. },
  1264. search() {
  1265. this.loadData();
  1266. },
  1267. reset() {
  1268. this.state.id = ""; //任务编号
  1269. this.state.orderNo = ""; //订单编号
  1270. this.state.projectStatus = undefined; //项目状态
  1271. this.state.taskStatus = undefined; //任务状态
  1272. this.state.taskComment = ""; //说明
  1273. this.state.startDate = ""; //启动日期
  1274. this.state.endDate = ""; //结束日期
  1275. this.state.acceptDate = ""; //受理日期
  1276. this.state.reviewDate = ""; //评审日期
  1277. this.state.publicityDate = ""; //公示日期
  1278. this.state.licenceDate = ""; //发证日期
  1279. attachmentUrl: []; //附件
  1280. this.state.contacts = ""; //联系人
  1281. this.state.contactMobile = ""; //联系人电话
  1282. this.state.legalPerson = ""; //法人
  1283. this.state.legalPersonTel = ""; //法人电话
  1284. this.state.taskId = ""; //任务编号
  1285. this.state.hours = ""; //工时
  1286. this.state.remarks = ""; //说明
  1287. this.state.taskDate = ""; //日期
  1288. this.state.taskComment = ""; //说明
  1289. this.state.nameSearch = "";
  1290. this.state.releaseDate = [];
  1291. this.state.orderNoSearch = "";
  1292. this.state.taskNoSearch = "";
  1293. this.state.distribution = undefined;
  1294. this.state.departmenttSearch = undefined;
  1295. this.state.outsourceName = ""; //外包公司名称
  1296. this.state.outsourcePrice = ""; //外包价格
  1297. this.loadData(this.state.page);
  1298. },
  1299. searchSwitch() {
  1300. this.setState({
  1301. searchMore: !this.state.searchMore
  1302. });
  1303. },
  1304. //部门
  1305. departmentList() {
  1306. this.setState({
  1307. loading: true
  1308. });
  1309. $.ajax({
  1310. method: "get",
  1311. dataType: "json",
  1312. crossDomain: false,
  1313. url: globalConfig.context + "/api/admin/organization/selectSuperId",
  1314. data: {},
  1315. success: function(data) {
  1316. let thedata = data.data;
  1317. let theArr = [];
  1318. if (!thedata) {
  1319. if (data.error && data.error.length) {
  1320. message.warning(data.error[0].message);
  1321. }
  1322. thedata = {};
  1323. } else {
  1324. thedata.map(function(item, index) {
  1325. theArr.push({
  1326. key: index,
  1327. name: item.name,
  1328. id: item.id
  1329. });
  1330. });
  1331. }
  1332. this.setState({
  1333. departmentArr: theArr
  1334. });
  1335. }.bind(this)
  1336. }).always(
  1337. function() {
  1338. this.setState({
  1339. loading: false
  1340. });
  1341. }.bind(this)
  1342. );
  1343. },
  1344. render() {
  1345. const { TabPane } = Tabs;
  1346. const formItemLayout = {
  1347. labelCol: { span: 8 },
  1348. wrapperCol: { span: 14 }
  1349. };
  1350. let departmentArr = this.state.departmentArr || [];
  1351. return (
  1352. <div className="user-content">
  1353. <div className="content-title">
  1354. <span>我的外包任务</span>
  1355. </div>
  1356. <div className="user-search">
  1357. <Input
  1358. placeholder="客户名称"
  1359. value={this.state.nameSearch}
  1360. onChange={e => {
  1361. this.setState({ nameSearch: e.target.value });
  1362. }}
  1363. />
  1364. <Input
  1365. placeholder="订单编号"
  1366. value={this.state.orderNoSearch}
  1367. onChange={e => {
  1368. this.setState({ orderNoSearch: e.target.value });
  1369. }}
  1370. />
  1371. <Input
  1372. placeholder="任务编号"
  1373. value={this.state.taskNoSearch}
  1374. onChange={e => {
  1375. this.setState({ taskNoSearch: e.target.value });
  1376. }}
  1377. />
  1378. <Select
  1379. placeholder="选择部门"
  1380. style={{ width: 150, marginRight: "10px" }}
  1381. value={this.state.departmenttSearch}
  1382. onChange={e => {
  1383. this.setState({ departmenttSearch: e });
  1384. }}
  1385. >
  1386. {departmentArr.map(function(item) {
  1387. return <Select.Option key={item.id}>{item.name}</Select.Option>;
  1388. })}
  1389. </Select>
  1390. <Button type="primary" onClick={this.search}>
  1391. 搜索
  1392. </Button>
  1393. <Button onClick={this.reset}>重置</Button>
  1394. {/*<Button type='primary' style={{marginLeft:'10px'}} onClick={this.exportExec}>导出Excel</Button>*/}
  1395. {/* <span>更多搜索<Switch defaultChecked={false} onChange={this.searchSwitch.bind(this)} /></span>
  1396. <div className="search-more" style={this.state.searchMore ? { display: 'none' } : {}}>
  1397. <span>订单时间 :</span>
  1398. <RangePicker
  1399. value={[this.state.releaseDate[0] ? moment(this.state.releaseDate[0]) : null,
  1400. this.state.releaseDate[1] ? moment(this.state.releaseDate[1]) : null]}
  1401. onChange={(data, dataString) => { this.setState({ releaseDate: dataString }); }} />
  1402. </div> */}
  1403. </div>
  1404. <div className="patent-table">
  1405. <Spin spinning={this.state.loading}>
  1406. <Table
  1407. columns={this.state.columns}
  1408. dataSource={this.state.dataSource}
  1409. pagination={this.state.pagination}
  1410. onRowClick={this.tableRowClick.bind(this)}
  1411. />
  1412. </Spin>
  1413. </div>
  1414. <Assign
  1415. title="任务"
  1416. selApi={"/api/admin/orderProject/projectDistribution"}
  1417. data={this.state.assignData}
  1418. showDesc={this.state.assignVisible}
  1419. closeDesc={this.closeAssign.bind(this)}
  1420. fenpaiData={8}
  1421. specially={0}
  1422. roleName={this.state.nub}
  1423. requestMethod={"post"}
  1424. />
  1425. <Modal
  1426. className="customeDetails"
  1427. footer=""
  1428. title=""
  1429. width="900px"
  1430. visible={this.state.visible}
  1431. onOk={this.visitOk}
  1432. onCancel={this.visitCancel}
  1433. >
  1434. <Tabs
  1435. onChange={this.callBack}
  1436. type="card"
  1437. activeKey={this.state.modKey}
  1438. >
  1439. <TabPane tab="项目概况" key="1">
  1440. <Form
  1441. layout="horizontal"
  1442. onSubmit={this.handleSubmit}
  1443. id="demand-form"
  1444. style={{ paddingBottom: "00px" }}
  1445. >
  1446. <Spin spinning={this.state.loading}>
  1447. <div className="clearfix">
  1448. <div className="clearfix">
  1449. <FormItem
  1450. className="half-item"
  1451. {...formItemLayout}
  1452. label="当前项目情况"
  1453. >
  1454. <Radio.Group
  1455. value={this.state.status}
  1456. onChange={e => {
  1457. this.setState({ status: e.target.value });
  1458. }}
  1459. >
  1460. <Radio value={0}>开启</Radio>
  1461. <Radio value={1}>暂停</Radio>
  1462. </Radio.Group>
  1463. <Button
  1464. type="primary"
  1465. size="small"
  1466. style={{ marginTop: "5px", position: "absolute" }}
  1467. onClick={this.caozuorizhi}
  1468. >
  1469. 操作日志
  1470. </Button>
  1471. </FormItem>
  1472. <FormItem
  1473. className="half-item"
  1474. {...formItemLayout}
  1475. label="合同编号"
  1476. >
  1477. <span>{this.state.contractNo}</span>
  1478. </FormItem>
  1479. </div>
  1480. <div className="clearfix">
  1481. <FormItem
  1482. className="half-item"
  1483. {...formItemLayout}
  1484. label="项目状态"
  1485. >
  1486. <Select
  1487. placeholder="选择项目状态"
  1488. style={{ width: "200px" }}
  1489. value={this.state.projectStatus}
  1490. onChange={e => {
  1491. this.setState({ projectStatus: e });
  1492. }}
  1493. >
  1494. {projectStatus.map(function(item) {
  1495. return (
  1496. <Select.Option key={item.value}>
  1497. {item.key}
  1498. </Select.Option>
  1499. );
  1500. })}
  1501. </Select>
  1502. </FormItem>
  1503. <FormItem
  1504. className="half-item"
  1505. {...formItemLayout}
  1506. label="是否特批"
  1507. >
  1508. <span>{getApproval(this.state.approval)}</span>
  1509. </FormItem>
  1510. <FormItem
  1511. className="half-item"
  1512. {...formItemLayout}
  1513. label="结算状态"
  1514. >
  1515. <span>
  1516. {getLiquidationStatus(this.state.liquidationStatus)}
  1517. </span>
  1518. </FormItem>
  1519. <FormItem
  1520. className="half-item"
  1521. {...formItemLayout}
  1522. label="流程状态"
  1523. >
  1524. <span>
  1525. {getProcessStatus(this.state.processStatus)}
  1526. </span>
  1527. </FormItem>
  1528. <FormItem
  1529. className="half-item"
  1530. {...formItemLayout}
  1531. label="订单编号"
  1532. >
  1533. <span>{this.state.orderNo}</span>
  1534. </FormItem>
  1535. </div>
  1536. <div className="clearfix">
  1537. <FormItem
  1538. className="half-item"
  1539. {...formItemLayout}
  1540. label="满意度表格"
  1541. >
  1542. <Radio.Group
  1543. value={this.state.formRetrieve}
  1544. onChange={e => {
  1545. this.setState({ formRetrieve: e.target.value });
  1546. }}
  1547. >
  1548. <Radio value={0}>未收回</Radio>
  1549. <Radio value={1}>已收回</Radio>
  1550. <Radio value={2}>其他</Radio>
  1551. </Radio.Group>
  1552. </FormItem>
  1553. <FormItem
  1554. className="half-item"
  1555. {...formItemLayout}
  1556. label="退单"
  1557. >
  1558. <Radio.Group
  1559. value={this.state.taskRefund}
  1560. onChange={e => {
  1561. this.setState({ taskRefund: e.target.value });
  1562. }}
  1563. >
  1564. <Radio value={0}>已完成</Radio>
  1565. <Radio value={1}>未完成</Radio>
  1566. <Radio value={2}>其他</Radio>
  1567. </Radio.Group>
  1568. </FormItem>
  1569. </div>
  1570. <div className="clearfix">
  1571. {
  1572. <FormItem
  1573. className="half-item"
  1574. {...formItemLayout}
  1575. label="(满意度)备注"
  1576. >
  1577. <Input
  1578. type="textarea"
  1579. placeholder="请输入备注"
  1580. rows={2}
  1581. value={this.state.retrieveContent}
  1582. onChange={e => {
  1583. this.setState({
  1584. retrieveContent: e.target.value
  1585. });
  1586. }}
  1587. />
  1588. </FormItem>
  1589. }
  1590. {
  1591. <FormItem
  1592. className="half-item"
  1593. {...formItemLayout}
  1594. label="(退单)备注"
  1595. >
  1596. <Input
  1597. type="textarea"
  1598. placeholder="请输入备注"
  1599. rows={2}
  1600. value={this.state.refundContent}
  1601. onChange={e => {
  1602. this.setState({ refundContent: e.target.value });
  1603. }}
  1604. />
  1605. </FormItem>
  1606. }
  1607. </div>
  1608. <div className="clearfix">
  1609. <h3 className="sub-title">订单负责人信息</h3>
  1610. <FormItem
  1611. className="half-item"
  1612. {...formItemLayout}
  1613. label="负责人"
  1614. >
  1615. <span>
  1616. {this.state.salesmanName +
  1617. "(" +
  1618. this.state.depName +
  1619. ")"}
  1620. </span>
  1621. </FormItem>
  1622. <FormItem
  1623. className="half-item"
  1624. {...formItemLayout}
  1625. label="负责人电话"
  1626. >
  1627. <span>{this.state.salesmanMobile}</span>
  1628. </FormItem>
  1629. <FormItem
  1630. className="half-item"
  1631. {...formItemLayout}
  1632. label="财务负责人"
  1633. >
  1634. <span>{this.state.financeName}</span>
  1635. </FormItem>
  1636. <FormItem
  1637. className="half-item"
  1638. {...formItemLayout}
  1639. label="财务负责人电话"
  1640. >
  1641. <span>{this.state.financeMobile}</span>
  1642. </FormItem>
  1643. </div>
  1644. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  1645. <div className="clearfix">
  1646. <h3 className="sub-title">联系信息</h3>
  1647. <FormItem
  1648. className="half-item"
  1649. {...formItemLayout}
  1650. label="客户名称"
  1651. >
  1652. <span>{this.state.userName}</span>
  1653. </FormItem>
  1654. <FormItem
  1655. className="half-item"
  1656. {...formItemLayout}
  1657. label="企业法人"
  1658. >
  1659. <Input
  1660. placeholder="请输入法人名称"
  1661. value={this.state.legalPerson}
  1662. style={{ width: "200px" }}
  1663. onChange={e => {
  1664. this.setState({ legalPerson: e.target.value });
  1665. }}
  1666. ref="commodityQuantity"
  1667. />
  1668. </FormItem>
  1669. <FormItem
  1670. className="half-item"
  1671. {...formItemLayout}
  1672. label="法人电话"
  1673. >
  1674. <Input
  1675. placeholder="请输入法人电话"
  1676. value={this.state.legalPersonTel}
  1677. style={{ width: "200px" }}
  1678. onChange={e => {
  1679. this.setState({ legalPersonTel: e.target.value });
  1680. }}
  1681. ref="commodityQuantity"
  1682. />
  1683. </FormItem>
  1684. <FormItem
  1685. className="half-item"
  1686. {...formItemLayout}
  1687. label="客户联系人"
  1688. >
  1689. <Input
  1690. placeholder="请输入联系人名称"
  1691. value={this.state.contacts}
  1692. style={{ width: "200px" }}
  1693. onChange={e => {
  1694. this.setState({ contacts: e.target.value });
  1695. }}
  1696. ref="commodityQuantity"
  1697. />
  1698. </FormItem>
  1699. <FormItem
  1700. className="half-item"
  1701. {...formItemLayout}
  1702. label="联系人电话"
  1703. >
  1704. <Input
  1705. placeholder="请输入联系人电话"
  1706. value={this.state.contactMobile}
  1707. style={{ width: "200px" }}
  1708. onChange={e => {
  1709. this.setState({ contactMobile: e.target.value });
  1710. }}
  1711. ref="commodityQuantity"
  1712. />
  1713. </FormItem>
  1714. <FormItem
  1715. className="half-item"
  1716. {...formItemLayout}
  1717. label="企业地址"
  1718. >
  1719. <Cascader
  1720. options={areaSelect()}
  1721. value={this.state.ProvinceCity}
  1722. placeholder="选择城市"
  1723. style={{ width: "200px" }}
  1724. onChange={e => {
  1725. this.setState({ ProvinceCity: e });
  1726. }}
  1727. />
  1728. </FormItem>
  1729. <FormItem
  1730. className="half-item"
  1731. {...formItemLayout}
  1732. label=""
  1733. ></FormItem>
  1734. <FormItem
  1735. className="half-item"
  1736. {...formItemLayout}
  1737. label=""
  1738. >
  1739. <Input
  1740. placeholder="请输入详细地址"
  1741. value={this.state.postalAddress}
  1742. style={{ width: "200px", marginLeft: "12em" }}
  1743. onChange={e => {
  1744. this.setState({ postalAddress: e.target.value });
  1745. }}
  1746. ref="commodityQuantity"
  1747. />
  1748. </FormItem>
  1749. </div>
  1750. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  1751. <div className="clearfix">
  1752. <h3 className="sub-title">任务信息</h3>
  1753. <FormItem
  1754. className="half-item"
  1755. {...formItemLayout}
  1756. label="任务编号"
  1757. >
  1758. <span>{this.state.id}</span>
  1759. </FormItem>
  1760. <FormItem
  1761. className="half-item"
  1762. {...formItemLayout}
  1763. label="任务名称"
  1764. >
  1765. <span>{this.state.taskName}</span>
  1766. </FormItem>
  1767. <FormItem
  1768. className="half-item"
  1769. {...formItemLayout}
  1770. label="任务状态"
  1771. >
  1772. <Select
  1773. placeholder="选择任务状态"
  1774. style={{ width: "200px" }}
  1775. value={this.state.taskStatus}
  1776. onChange={e => {
  1777. this.setState({ taskStatus: e });
  1778. }}
  1779. >
  1780. {taskStatus.map(function(item) {
  1781. return (
  1782. <Select.Option key={item.value}>
  1783. {item.key}
  1784. </Select.Option>
  1785. );
  1786. })}
  1787. </Select>
  1788. </FormItem>
  1789. <FormItem
  1790. className="half-item"
  1791. {...formItemLayout}
  1792. label="任务类别"
  1793. >
  1794. <span>{this.state.cname}</span>
  1795. </FormItem>
  1796. <FormItem
  1797. className="half-item"
  1798. {...formItemLayout}
  1799. label="证书编号"
  1800. >
  1801. <Input
  1802. placeholder="请输入证书编号"
  1803. value={this.state.certificateNumber}
  1804. style={{ width: "200px" }}
  1805. onChange={e => {
  1806. this.setState({
  1807. certificateNumber: e.target.value
  1808. });
  1809. }}
  1810. ref="commodityQuantity"
  1811. />
  1812. </FormItem>
  1813. </div>
  1814. <div className="clearfix">
  1815. <h3 className="sub-title">申报系统账户信息</h3>
  1816. {/*<span style={{color:'red'}}>注:仅技术部可见</span>*/}
  1817. <FormItem
  1818. className="half-item"
  1819. {...formItemLayout}
  1820. label="用户名"
  1821. >
  1822. <Input
  1823. placeholder="请输入用户名"
  1824. value={this.state.declareUser}
  1825. style={{ width: "200px" }}
  1826. onChange={e => {
  1827. this.setState({ declareUser: e.target.value });
  1828. }}
  1829. />
  1830. </FormItem>
  1831. <FormItem
  1832. className="half-item"
  1833. {...formItemLayout}
  1834. label="密码"
  1835. >
  1836. <Input
  1837. placeholder="请输入密码"
  1838. value={this.state.declarePwd}
  1839. style={{ width: "200px" }}
  1840. onChange={e => {
  1841. this.setState({ declarePwd: e.target.value });
  1842. }}
  1843. />
  1844. </FormItem>
  1845. </div>
  1846. <div className="clearfix">
  1847. <h3 className="sub-title">项目申报进度</h3>
  1848. <FormItem
  1849. className="half-item"
  1850. {...formItemLayout}
  1851. label="启动时间"
  1852. >
  1853. <DatePicker
  1854. style={{
  1855. marginTop: "2px",
  1856. width: "200px",
  1857. height: "32px"
  1858. }}
  1859. showTime
  1860. format="YYYY-MM-DD"
  1861. onOk={() => {}}
  1862. value={
  1863. this.state.startDate
  1864. ? moment(this.state.startDate)
  1865. : null
  1866. }
  1867. onChange={(data, dataString) => {
  1868. this.setState({ startDate: dataString });
  1869. }}
  1870. />
  1871. </FormItem>
  1872. <FormItem
  1873. className="half-item"
  1874. {...formItemLayout}
  1875. label="完成时间"
  1876. >
  1877. <DatePicker
  1878. style={{
  1879. marginTop: "2px",
  1880. width: "200px",
  1881. height: "32px"
  1882. }}
  1883. showTime
  1884. format="YYYY-MM-DD"
  1885. onOk={() => {}}
  1886. value={
  1887. this.state.endDate
  1888. ? moment(this.state.endDate)
  1889. : null
  1890. }
  1891. onChange={(data, dataString) => {
  1892. this.setState({ endDate: dataString });
  1893. }}
  1894. />
  1895. </FormItem>
  1896. <FormItem
  1897. className="half-item"
  1898. {...formItemLayout}
  1899. label="受理时间"
  1900. >
  1901. <DatePicker
  1902. style={{
  1903. marginTop: "2px",
  1904. width: "200px",
  1905. height: "32px"
  1906. }}
  1907. showTime
  1908. format="YYYY-MM-DD"
  1909. onOk={() => {}}
  1910. value={
  1911. this.state.acceptDate
  1912. ? moment(this.state.acceptDate)
  1913. : null
  1914. }
  1915. onChange={(data, dataString) => {
  1916. this.setState({ acceptDate: dataString });
  1917. }}
  1918. />
  1919. </FormItem>
  1920. <FormItem
  1921. className="half-item"
  1922. {...formItemLayout}
  1923. label="评审时间"
  1924. >
  1925. <DatePicker
  1926. style={{
  1927. marginTop: "2px",
  1928. width: "200px",
  1929. height: "32px"
  1930. }}
  1931. showTime
  1932. format="YYYY-MM-DD"
  1933. onOk={() => {}}
  1934. value={
  1935. this.state.reviewDate
  1936. ? moment(this.state.reviewDate)
  1937. : null
  1938. }
  1939. onChange={(data, dataString) => {
  1940. this.setState({ reviewDate: dataString });
  1941. }}
  1942. />
  1943. </FormItem>
  1944. <FormItem
  1945. className="half-item"
  1946. {...formItemLayout}
  1947. label="公示时间"
  1948. >
  1949. <DatePicker
  1950. style={{
  1951. marginTop: "2px",
  1952. width: "200px",
  1953. height: "32px"
  1954. }}
  1955. showTime
  1956. format="YYYY-MM-DD"
  1957. onOk={() => {}}
  1958. value={
  1959. this.state.publicityDate
  1960. ? moment(this.state.publicityDate)
  1961. : null
  1962. }
  1963. onChange={(data, dataString) => {
  1964. this.setState({ publicityDate: dataString });
  1965. }}
  1966. />
  1967. </FormItem>
  1968. <FormItem
  1969. className="half-item"
  1970. {...formItemLayout}
  1971. label="发证时间"
  1972. >
  1973. <DatePicker
  1974. style={{
  1975. marginTop: "2px",
  1976. width: "200px",
  1977. height: "32px"
  1978. }}
  1979. showTime
  1980. format="YYYY-MM-DD"
  1981. onOk={() => {}}
  1982. value={
  1983. this.state.licenceDate
  1984. ? moment(this.state.licenceDate)
  1985. : null
  1986. }
  1987. onChange={(data, dataString) => {
  1988. this.setState({ licenceDate: dataString });
  1989. }}
  1990. />
  1991. </FormItem>
  1992. <FormItem
  1993. className="half-item"
  1994. {...formItemLayout}
  1995. label="立项金额(万元)"
  1996. >
  1997. <Input
  1998. placeholder="请输入立项金额"
  1999. value={this.state.setUpAmount}
  2000. style={{ width: "200px" }}
  2001. onChange={e => {
  2002. this.setState({ setUpAmount: e.target.value });
  2003. }}
  2004. ref="commodityQuantity"
  2005. />
  2006. </FormItem>
  2007. <FormItem
  2008. className="half-item"
  2009. {...formItemLayout}
  2010. label="是否到款"
  2011. >
  2012. <Radio.Group
  2013. value={this.state.arrivalMoney}
  2014. onChange={e => {
  2015. this.setState({ arrivalMoney: e.target.value });
  2016. }}
  2017. >
  2018. <Radio value={0}>未到企业</Radio>
  2019. <Radio value={1}>已到企业</Radio>
  2020. </Radio.Group>
  2021. </FormItem>
  2022. </div>
  2023. <div className="clearfix">
  2024. <FormItem
  2025. labelCol={{ span: 3 }}
  2026. wrapperCol={{ span: 16 }}
  2027. label="附件"
  2028. >
  2029. <Picture
  2030. fileList={e => {
  2031. this.setState({ attachmentUrl: e });
  2032. }}
  2033. pictureUrl={this.state.attachmentUrl}
  2034. visible={this.props.visible}
  2035. data={{
  2036. sign: "order_task_file",
  2037. url: "/api/admin/orderProject/uploadOrderTaskFile",
  2038. number: 8
  2039. }}
  2040. />
  2041. </FormItem>
  2042. </div>
  2043. <div className="clearfix">
  2044. <FormItem
  2045. labelCol={{ span: 3 }}
  2046. wrapperCol={{ span: 16 }}
  2047. label="备注"
  2048. >
  2049. <Input
  2050. type="textarea"
  2051. placeholder="请输入备注"
  2052. rows={4}
  2053. value={this.state.taskComment}
  2054. onChange={e => {
  2055. this.setState({ taskComment: e.target.value });
  2056. }}
  2057. />
  2058. </FormItem>
  2059. </div>
  2060. <div>
  2061. <h3 className="sub-title">项目业务</h3>
  2062. {this.state.processStatus == 0 ? (
  2063. <Button
  2064. type="primary"
  2065. onClick={this.addDetailed}
  2066. style={{
  2067. float: "right",
  2068. marginRight: "50px",
  2069. marginBottom: "15px"
  2070. }}
  2071. >
  2072. 添加项目明细
  2073. </Button>
  2074. ) : (
  2075. ""
  2076. )}
  2077. </div>
  2078. <div className="patent-table">
  2079. <Spin spinning={this.state.loading}>
  2080. <Table
  2081. columns={this.state.columnsX}
  2082. dataSource={this.state.dataSourceX}
  2083. pagination={this.state.paginations}
  2084. onRowClick={this.tableRowClickX}
  2085. />
  2086. </Spin>
  2087. </div>
  2088. <div className="clearfix">
  2089. <Button
  2090. className="cancel"
  2091. type="primary"
  2092. onClick={this.tijiaoOk}
  2093. style={{ marginLeft: "200px", marginTop: "10px" }}
  2094. htmlType="submit"
  2095. >
  2096. 保存
  2097. </Button>
  2098. <Button
  2099. className="cancel"
  2100. type="ghost"
  2101. onClick={this.visitCancel}
  2102. style={{ marginLeft: "50px", marginTop: "10px" }}
  2103. >
  2104. 取消
  2105. </Button>
  2106. </div>
  2107. </div>
  2108. </Spin>
  2109. </Form>
  2110. </TabPane>
  2111. <TabPane tab="外包接单公司信息" key="2">
  2112. {/*<Button type="primary" onClick={this.addCompany} style={{float:'right',marginBottom:'10px'}}>+新增接单公司</Button>*/}
  2113. {
  2114. <div className="clearfix">
  2115. <h3 className="sub-title" style={{ marginBottom: "10px" }}>
  2116. 新增(编辑)接单公司
  2117. </h3>
  2118. <FormItem
  2119. className="three-item"
  2120. {...formItemLayout}
  2121. label={
  2122. <span>
  2123. <strong style={{ color: "#f00" }}>*</strong>公司名称
  2124. </span>
  2125. }
  2126. >
  2127. <Input
  2128. placeholder="请输入公司名称"
  2129. value={this.state.cName}
  2130. style={{ width: "200px" }}
  2131. onChange={e => {
  2132. this.setState({ cName: e.target.value });
  2133. }}
  2134. className="height-input"
  2135. />
  2136. </FormItem>
  2137. <FormItem
  2138. className="three-item"
  2139. {...formItemLayout}
  2140. label={
  2141. <span>
  2142. <strong style={{ color: "#f00" }}>*</strong>联系人
  2143. </span>
  2144. }
  2145. >
  2146. <Input
  2147. placeholder="请输入联系人名称"
  2148. value={this.state.companyContacts}
  2149. style={{ width: "200px" }}
  2150. onChange={e => {
  2151. this.setState({ companyContacts: e.target.value });
  2152. }}
  2153. className="height-input"
  2154. />
  2155. </FormItem>
  2156. <FormItem
  2157. className="three-item"
  2158. {...formItemLayout}
  2159. label={
  2160. <span>
  2161. <strong style={{ color: "#f00" }}>*</strong>联系人电话
  2162. </span>
  2163. }
  2164. >
  2165. <Input
  2166. placeholder="请输入联系人电话"
  2167. value={this.state.companyContactsMobile}
  2168. style={{ width: "200px" }}
  2169. onChange={e => {
  2170. this.setState({
  2171. companyContactsMobile: e.target.value
  2172. });
  2173. }}
  2174. className="height-input"
  2175. />
  2176. </FormItem>
  2177. <FormItem
  2178. className="three-item"
  2179. {...formItemLayout}
  2180. label="企业地址"
  2181. >
  2182. <Cascader
  2183. options={areaSelect()}
  2184. value={this.state.companyProvinceArr}
  2185. placeholder="选择城市"
  2186. style={{ width: "200px" }}
  2187. onChange={e => {
  2188. this.setState({ companyProvinceArr: e });
  2189. }}
  2190. />
  2191. </FormItem>
  2192. <FormItem className="three-item" {...formItemLayout} label="">
  2193. <Input
  2194. placeholder="请输入详细地址"
  2195. value={this.state.companyAddress}
  2196. style={{ width: "200px", marginLeft: "12em" }}
  2197. onChange={e => {
  2198. this.setState({ companyAddress: e.target.value });
  2199. }}
  2200. className="height-input"
  2201. />
  2202. </FormItem>
  2203. <FormItem
  2204. className="three-item"
  2205. {...formItemLayout}
  2206. label=""
  2207. ></FormItem>
  2208. <div className="clearfix">
  2209. <FormItem
  2210. labelCol={{ span: 3 }}
  2211. wrapperCol={{ span: 16 }}
  2212. label="备注"
  2213. >
  2214. <Input
  2215. type="textarea"
  2216. placeholder="请输入备注"
  2217. rows={4}
  2218. value={this.state.companyRemarks}
  2219. onChange={e => {
  2220. this.setState({ companyRemarks: e.target.value });
  2221. }}
  2222. />
  2223. </FormItem>
  2224. </div>
  2225. <Button
  2226. type="primary"
  2227. style={{
  2228. float: "right",
  2229. marginTop: "10px",
  2230. marginRight: "50px"
  2231. }}
  2232. onClick={() => {
  2233. this.saveCompany(this.state.companyId);
  2234. }}
  2235. >
  2236. 保存
  2237. </Button>
  2238. </div>
  2239. }
  2240. <p style={{ color: "red" }}>
  2241. 提示:查看备注请点击表格左侧加号按钮~
  2242. </p>
  2243. <div className="patent-table" style={{ marginTop: "10px" }}>
  2244. <Spin spinning={this.state.loading}>
  2245. <Table
  2246. columns={this.state.companyColumns}
  2247. dataSource={this.state.companys}
  2248. scroll={{ x: 300, y: 0 }}
  2249. expandedRowRender={record => {
  2250. return <p>{record.remarks}</p>;
  2251. }}
  2252. pagination={false}
  2253. />
  2254. </Spin>
  2255. </div>
  2256. </TabPane>
  2257. </Tabs>
  2258. </Modal>
  2259. <Modal
  2260. maskClosable={false}
  2261. visible={this.state.lookVisible}
  2262. onOk={this.noCancel}
  2263. onCancel={this.noCancel}
  2264. width="500px"
  2265. title={"添加工时"}
  2266. footer=""
  2267. className="admin-desc-content"
  2268. >
  2269. <Form layout="horizontal" id="demand-form">
  2270. <Spin spinning={this.state.loading}>
  2271. <div className="clearfix">
  2272. <FormItem {...formItemLayout} label="工作日期">
  2273. <DatePicker
  2274. style={{ marginTop: "2px", width: "200px", height: "32px" }}
  2275. showTime
  2276. format="YYYY-MM-DD"
  2277. onOk={() => {}}
  2278. value={
  2279. this.state.taskDate ? moment(this.state.taskDate) : null
  2280. }
  2281. onChange={(data, dataString) => {
  2282. this.setState({ taskDate: dataString });
  2283. }}
  2284. />
  2285. </FormItem>
  2286. </div>
  2287. <div className="clearfix">
  2288. <FormItem {...formItemLayout} label="工作时长">
  2289. <Input
  2290. placeholder="请输入工作时长"
  2291. value={this.state.hours}
  2292. style={{ width: "200px" }}
  2293. onChange={e => {
  2294. this.setState({ hours: e.target.value });
  2295. }}
  2296. ref="commodityQuantity"
  2297. />
  2298. </FormItem>
  2299. </div>
  2300. <div className="clearfix">
  2301. <FormItem {...formItemLayout} label="工作内容">
  2302. <Input
  2303. type="textarea"
  2304. placeholder="请输入备注"
  2305. rows={4}
  2306. value={this.state.remarks}
  2307. onChange={e => {
  2308. this.setState({ remarks: e.target.value });
  2309. }}
  2310. />
  2311. </FormItem>
  2312. </div>
  2313. <div className="clearfix">
  2314. <Button
  2315. className="cancel"
  2316. type="primary"
  2317. onClick={this.tianjiaOk}
  2318. style={{ marginLeft: "100px", marginTop: "10px" }}
  2319. htmlType="submit"
  2320. >
  2321. 确定
  2322. </Button>
  2323. <Button
  2324. className="cancel"
  2325. type="ghost"
  2326. onClick={this.noCancel}
  2327. style={{ marginLeft: "50px" }}
  2328. >
  2329. 取消
  2330. </Button>
  2331. </div>
  2332. </Spin>
  2333. </Form>
  2334. </Modal>
  2335. <Modal
  2336. maskClosable={false}
  2337. visible={this.state.addnextVisible}
  2338. onOk={this.nextCancel}
  2339. onCancel={this.nextCancel}
  2340. width="800px"
  2341. title="项目任务详情"
  2342. footer=""
  2343. className="admin-desc-content"
  2344. >
  2345. <Form layout="horizontal" onSubmit={this.nextSubmit} id="demand-form">
  2346. <Spin spinning={this.state.loading}>
  2347. <div className="clearfix">
  2348. <FormItem
  2349. className="half-item"
  2350. {...formItemLayout}
  2351. label="项目名称"
  2352. >
  2353. <span>{this.state.commodityName}</span>
  2354. </FormItem>
  2355. <FormItem
  2356. className="half-item"
  2357. {...formItemLayout}
  2358. label="项目数量"
  2359. >
  2360. <span>{this.state.commodityQuantity}</span>
  2361. </FormItem>
  2362. <FormItem
  2363. className="half-item"
  2364. {...formItemLayout}
  2365. label="金额(万元)"
  2366. >
  2367. <span>{this.state.commodityPrice}</span>
  2368. </FormItem>
  2369. <FormItem
  2370. className="half-item"
  2371. {...formItemLayout}
  2372. label="主要项目"
  2373. >
  2374. <span>{getboutique(this.state.main)}</span>
  2375. </FormItem>
  2376. <div className="clearfix">
  2377. <FormItem
  2378. labelCol={{ span: 3 }}
  2379. wrapperCol={{ span: 18 }}
  2380. label="服务说明"
  2381. >
  2382. <span>{this.state.taskComment}</span>
  2383. </FormItem>
  2384. </div>
  2385. </div>
  2386. </Spin>
  2387. </Form>
  2388. </Modal>
  2389. <Modal
  2390. maskClosable={false}
  2391. visible={this.state.speVisible}
  2392. onOk={this.visitOk}
  2393. onCancel={this.visitCancel}
  2394. width="900px"
  2395. title=""
  2396. footer=""
  2397. className="admin-desc-content"
  2398. >
  2399. <Tabs
  2400. activeKey={this.state.modKey}
  2401. onChange={this.callBack}
  2402. type="card"
  2403. >
  2404. <TabPane tab="项目概况" key="1">
  2405. <div className="clearfix">
  2406. <FormItem
  2407. className="half-item"
  2408. {...formItemLayout}
  2409. label="当前项目情况"
  2410. >
  2411. <Radio.Group
  2412. value={this.state.status}
  2413. onChange={e => {
  2414. this.setState({ status: e.target.value });
  2415. }}
  2416. >
  2417. <Radio value={0}>开启</Radio>
  2418. <Radio value={1}>暂停</Radio>
  2419. </Radio.Group>
  2420. <Button
  2421. type="primary"
  2422. size="small"
  2423. style={{ marginTop: "5px", position: "absolute" }}
  2424. onClick={this.caozuorizhi}
  2425. >
  2426. 操作日志
  2427. </Button>
  2428. </FormItem>
  2429. <FormItem
  2430. className="half-item"
  2431. {...formItemLayout}
  2432. label="合同编号"
  2433. >
  2434. <span>{this.state.contractNo}</span>
  2435. </FormItem>
  2436. </div>
  2437. <div className="clearfix">
  2438. <FormItem
  2439. className="half-item"
  2440. {...formItemLayout}
  2441. label="项目状态"
  2442. >
  2443. <Select
  2444. placeholder="选择项目状态"
  2445. style={{ width: "200px" }}
  2446. value={this.state.projectStatus}
  2447. onChange={e => {
  2448. this.setState({ projectStatus: e });
  2449. }}
  2450. >
  2451. {projectStatus.map(function(item) {
  2452. return (
  2453. <Select.Option key={item.value}>
  2454. {item.key}
  2455. </Select.Option>
  2456. );
  2457. })}
  2458. </Select>
  2459. </FormItem>
  2460. <FormItem
  2461. className="half-item"
  2462. {...formItemLayout}
  2463. label="是否特批"
  2464. >
  2465. <span>{getApproval(this.state.approval)}</span>
  2466. </FormItem>
  2467. <FormItem
  2468. className="half-item"
  2469. {...formItemLayout}
  2470. label="结算状态"
  2471. >
  2472. <span>
  2473. {getLiquidationStatus(this.state.liquidationStatus)}
  2474. </span>
  2475. </FormItem>
  2476. <FormItem
  2477. className="half-item"
  2478. {...formItemLayout}
  2479. label="流程状态"
  2480. >
  2481. <span>{getProcessStatus(this.state.processStatus)}</span>
  2482. </FormItem>
  2483. <FormItem
  2484. className="half-item"
  2485. {...formItemLayout}
  2486. label="订单编号"
  2487. >
  2488. <span>{this.state.orderNo}</span>
  2489. </FormItem>
  2490. </div>
  2491. <div className="clearfix">
  2492. <FormItem
  2493. className="half-item"
  2494. {...formItemLayout}
  2495. label="满意度表格"
  2496. >
  2497. <Radio.Group
  2498. value={this.state.formRetrieve}
  2499. onChange={e => {
  2500. this.setState({ formRetrieve: e.target.value });
  2501. }}
  2502. >
  2503. <Radio value={0}>未收回</Radio>
  2504. <Radio value={1}>已收回</Radio>
  2505. <Radio value={2}>其他</Radio>
  2506. </Radio.Group>
  2507. </FormItem>
  2508. <FormItem
  2509. className="half-item"
  2510. {...formItemLayout}
  2511. label="退单"
  2512. >
  2513. <Radio.Group
  2514. value={this.state.taskRefund}
  2515. onChange={e => {
  2516. this.setState({ taskRefund: e.target.value });
  2517. }}
  2518. >
  2519. <Radio value={0}>已完成</Radio>
  2520. <Radio value={1}>未完成</Radio>
  2521. <Radio value={2}>其他</Radio>
  2522. </Radio.Group>
  2523. </FormItem>
  2524. </div>
  2525. <div className="clearfix">
  2526. {
  2527. <FormItem
  2528. className="half-item"
  2529. {...formItemLayout}
  2530. label="(满意度)备注"
  2531. >
  2532. <Input
  2533. type="textarea"
  2534. placeholder="请输入备注"
  2535. rows={2}
  2536. value={this.state.retrieveContent}
  2537. onChange={e => {
  2538. this.setState({ retrieveContent: e.target.value });
  2539. }}
  2540. />
  2541. </FormItem>
  2542. }
  2543. {
  2544. <FormItem
  2545. className="half-item"
  2546. {...formItemLayout}
  2547. label="(退单)备注"
  2548. >
  2549. <Input
  2550. type="textarea"
  2551. placeholder="请输入备注"
  2552. rows={2}
  2553. value={this.state.refundContent}
  2554. onChange={e => {
  2555. this.setState({ refundContent: e.target.value });
  2556. }}
  2557. />
  2558. </FormItem>
  2559. }
  2560. </div>
  2561. <div className="clearfix">
  2562. <h3 className="sub-title">订单负责人信息</h3>
  2563. <FormItem
  2564. className="half-item"
  2565. {...formItemLayout}
  2566. label="负责人"
  2567. >
  2568. <span>
  2569. {this.state.salesmanName + "(" + this.state.depName + ")"}
  2570. </span>
  2571. </FormItem>
  2572. <FormItem
  2573. className="half-item"
  2574. {...formItemLayout}
  2575. label="负责人电话"
  2576. >
  2577. <span>{this.state.salesmanMobile}</span>
  2578. </FormItem>
  2579. <FormItem
  2580. className="half-item"
  2581. {...formItemLayout}
  2582. label="财务负责人"
  2583. >
  2584. <span>{this.state.financeName}</span>
  2585. </FormItem>
  2586. <FormItem
  2587. className="half-item"
  2588. {...formItemLayout}
  2589. label="财务负责人电话"
  2590. >
  2591. <span>{this.state.financeMobile}</span>
  2592. </FormItem>
  2593. </div>
  2594. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  2595. <div className="clearfix">
  2596. <h3 className="sub-title">联系信息</h3>
  2597. <FormItem
  2598. className="half-item"
  2599. {...formItemLayout}
  2600. label="客户名称"
  2601. >
  2602. <span>{this.state.userName}</span>
  2603. </FormItem>
  2604. <FormItem
  2605. className="half-item"
  2606. {...formItemLayout}
  2607. label="企业法人"
  2608. >
  2609. <Input
  2610. placeholder="请输入法人名称"
  2611. value={this.state.legalPerson}
  2612. style={{ width: "200px" }}
  2613. onChange={e => {
  2614. this.setState({ legalPerson: e.target.value });
  2615. }}
  2616. ref="commodityQuantity"
  2617. />
  2618. </FormItem>
  2619. <FormItem
  2620. className="half-item"
  2621. {...formItemLayout}
  2622. label="法人电话"
  2623. >
  2624. <Input
  2625. placeholder="请输入法人电话"
  2626. value={this.state.legalPersonTel}
  2627. style={{ width: "200px" }}
  2628. onChange={e => {
  2629. this.setState({ legalPersonTel: e.target.value });
  2630. }}
  2631. ref="commodityQuantity"
  2632. />
  2633. </FormItem>
  2634. <FormItem
  2635. className="half-item"
  2636. {...formItemLayout}
  2637. label="客户联系人"
  2638. >
  2639. <Input
  2640. placeholder="请输入联系人名称"
  2641. value={this.state.contacts}
  2642. style={{ width: "200px" }}
  2643. onChange={e => {
  2644. this.setState({ contacts: e.target.value });
  2645. }}
  2646. ref="commodityQuantity"
  2647. />
  2648. </FormItem>
  2649. <FormItem
  2650. className="half-item"
  2651. {...formItemLayout}
  2652. label="联系人电话"
  2653. >
  2654. <Input
  2655. placeholder="请输入联系人电话"
  2656. value={this.state.contactMobile}
  2657. style={{ width: "200px" }}
  2658. onChange={e => {
  2659. this.setState({ contactMobile: e.target.value });
  2660. }}
  2661. ref="commodityQuantity"
  2662. />
  2663. </FormItem>
  2664. <FormItem
  2665. className="half-item"
  2666. {...formItemLayout}
  2667. label="企业地址"
  2668. >
  2669. <Cascader
  2670. options={areaSelect()}
  2671. value={this.state.ProvinceCity}
  2672. placeholder="选择城市"
  2673. style={{ width: "200px" }}
  2674. onChange={e => {
  2675. this.setState({ ProvinceCity: e });
  2676. }}
  2677. />
  2678. </FormItem>
  2679. <FormItem
  2680. className="half-item"
  2681. {...formItemLayout}
  2682. label=""
  2683. ></FormItem>
  2684. <FormItem className="half-item" {...formItemLayout} label="">
  2685. <Input
  2686. placeholder="请输入详细地址"
  2687. value={this.state.postalAddress}
  2688. style={{ width: "200px", marginLeft: "12em" }}
  2689. onChange={e => {
  2690. this.setState({ postalAddress: e.target.value });
  2691. }}
  2692. ref="commodityQuantity"
  2693. />
  2694. </FormItem>
  2695. </div>
  2696. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  2697. <div className="clearfix">
  2698. <h3 className="sub-title">任务信息</h3>
  2699. <FormItem
  2700. className="half-item"
  2701. {...formItemLayout}
  2702. label="任务编号"
  2703. >
  2704. <span>{this.state.id}</span>
  2705. </FormItem>
  2706. <FormItem
  2707. className="half-item"
  2708. {...formItemLayout}
  2709. label="任务名称"
  2710. >
  2711. <span>{this.state.taskName}</span>
  2712. </FormItem>
  2713. <FormItem
  2714. className="half-item"
  2715. {...formItemLayout}
  2716. label="任务状态"
  2717. >
  2718. <Select
  2719. placeholder="选择任务状态"
  2720. style={{ width: "200px" }}
  2721. value={this.state.taskStatus}
  2722. onChange={e => {
  2723. this.setState({ taskStatus: e });
  2724. }}
  2725. >
  2726. {taskStatus.map(function(item) {
  2727. return (
  2728. <Select.Option key={item.value}>
  2729. {item.key}
  2730. </Select.Option>
  2731. );
  2732. })}
  2733. </Select>
  2734. </FormItem>
  2735. <FormItem
  2736. className="half-item"
  2737. {...formItemLayout}
  2738. label="任务类别"
  2739. >
  2740. <span>{this.state.cname}</span>
  2741. </FormItem>
  2742. <FormItem
  2743. className="half-item"
  2744. {...formItemLayout}
  2745. label="证书编号"
  2746. >
  2747. <Input
  2748. placeholder="请输入证书编号"
  2749. value={this.state.certificateNumber}
  2750. style={{ width: "200px" }}
  2751. onChange={e => {
  2752. this.setState({ certificateNumber: e.target.value });
  2753. }}
  2754. ref="commodityQuantity"
  2755. />
  2756. </FormItem>
  2757. </div>
  2758. <div className="clearfix" style={{ marginTop: "10px" }}>
  2759. <FormItem
  2760. labelCol={{ span: 3 }}
  2761. wrapperCol={{ span: 14 }}
  2762. label="附件"
  2763. >
  2764. <Picture
  2765. fileList={e => {
  2766. this.setState({ attachmentUrl: e });
  2767. }}
  2768. pictureUrl={this.state.attachmentUrl}
  2769. visible={this.props.visible}
  2770. data={{
  2771. sign: "order_task_file",
  2772. url: "/api/admin/orderProject/uploadOrderTaskFile",
  2773. number: 8
  2774. }}
  2775. />
  2776. </FormItem>
  2777. </div>
  2778. <div className="clearfix">
  2779. <FormItem
  2780. labelCol={{ span: 3 }}
  2781. wrapperCol={{ span: 16 }}
  2782. label="备注"
  2783. >
  2784. <Input
  2785. type="textarea"
  2786. placeholder="请输入备注"
  2787. rows={4}
  2788. value={this.state.taskComment}
  2789. onChange={e => {
  2790. this.setState({ taskComment: e.target.value });
  2791. }}
  2792. />
  2793. </FormItem>
  2794. </div>
  2795. <div className="clearfix">
  2796. <h3 className="sub-title">项目申报进度</h3>
  2797. <FormItem
  2798. className="half-item"
  2799. {...formItemLayout}
  2800. label="启动时间"
  2801. >
  2802. <DatePicker
  2803. style={{ marginTop: "5px" }}
  2804. showTime
  2805. format="YYYY-MM-DD"
  2806. onOk={() => {}}
  2807. value={
  2808. this.state.startDate ? moment(this.state.startDate) : null
  2809. }
  2810. onChange={(data, dataString) => {
  2811. this.setState({ startDate: dataString });
  2812. }}
  2813. />
  2814. </FormItem>
  2815. <FormItem
  2816. className="half-item"
  2817. {...formItemLayout}
  2818. label="软著派单数量"
  2819. >
  2820. <span>{this.state.commodityQuantity}</span>
  2821. <Button
  2822. type="primary"
  2823. size="small"
  2824. style={{ marginLeft: "45px" }}
  2825. onClick={this.addcontact}
  2826. >
  2827. +增加下证信息
  2828. </Button>
  2829. </FormItem>
  2830. <div className="patent-table">
  2831. <Spin spinning={this.state.loading}>
  2832. <Table
  2833. columns={this.state.ContactsLists}
  2834. dataSource={this.state.contactList}
  2835. pagination={false}
  2836. />
  2837. </Spin>
  2838. </div>
  2839. </div>
  2840. <div className="clearfix">
  2841. <h3 className="sub-title">项目业务</h3>
  2842. <div className="patent-table">
  2843. <Spin spinning={this.state.loading}>
  2844. <Table
  2845. columns={this.state.columnsX}
  2846. dataSource={this.state.dataSourceX}
  2847. pagination={this.state.paginations}
  2848. onRowClick={this.tableRowClickX}
  2849. />
  2850. </Spin>
  2851. </div>
  2852. </div>
  2853. <div className="clearfix">
  2854. <Button
  2855. className="cancel"
  2856. type="primary"
  2857. onClick={this.tijiaoOk}
  2858. style={{ marginLeft: "200px", marginTop: "10px" }}
  2859. htmlType="submit"
  2860. >
  2861. 保存
  2862. </Button>
  2863. <Button
  2864. className="cancel"
  2865. type="ghost"
  2866. onClick={this.visitCancel}
  2867. style={{ marginLeft: "50px", marginTop: "10px" }}
  2868. >
  2869. 取消
  2870. </Button>
  2871. </div>
  2872. </TabPane>
  2873. <TabPane tab="外包接单公司信息" key="2">
  2874. {/*<Button type="primary" onClick={this.addCompany} style={{float:'right',marginBottom:'10px'}}>+新增接单公司</Button>*/}
  2875. {
  2876. <div className="clearfix">
  2877. <h3 className="sub-title" style={{ marginBottom: "10px" }}>
  2878. 新增(编辑)接单公司
  2879. </h3>
  2880. <FormItem
  2881. className="three-item"
  2882. {...formItemLayout}
  2883. label={
  2884. <span>
  2885. <strong style={{ color: "#f00" }}>*</strong>公司名称
  2886. </span>
  2887. }
  2888. >
  2889. <Input
  2890. placeholder="请输入公司名称"
  2891. value={this.state.cName}
  2892. style={{ width: "200px" }}
  2893. onChange={e => {
  2894. this.setState({ cName: e.target.value });
  2895. }}
  2896. className="height-input"
  2897. />
  2898. </FormItem>
  2899. <FormItem
  2900. className="three-item"
  2901. {...formItemLayout}
  2902. label={
  2903. <span>
  2904. <strong style={{ color: "#f00" }}>*</strong>联系人
  2905. </span>
  2906. }
  2907. >
  2908. <Input
  2909. placeholder="请输入联系人名称"
  2910. value={this.state.companyContacts}
  2911. style={{ width: "200px" }}
  2912. onChange={e => {
  2913. this.setState({ companyContacts: e.target.value });
  2914. }}
  2915. className="height-input"
  2916. />
  2917. </FormItem>
  2918. <FormItem
  2919. className="three-item"
  2920. {...formItemLayout}
  2921. label={
  2922. <span>
  2923. <strong style={{ color: "#f00" }}>*</strong>联系人电话
  2924. </span>
  2925. }
  2926. >
  2927. <Input
  2928. placeholder="请输入联系人电话"
  2929. value={this.state.companyContactsMobile}
  2930. style={{ width: "200px" }}
  2931. onChange={e => {
  2932. this.setState({
  2933. companyContactsMobile: e.target.value
  2934. });
  2935. }}
  2936. className="height-input"
  2937. />
  2938. </FormItem>
  2939. <FormItem
  2940. className="three-item"
  2941. {...formItemLayout}
  2942. label="企业地址"
  2943. >
  2944. <Cascader
  2945. options={areaSelect()}
  2946. value={this.state.companyProvinceArr}
  2947. placeholder="选择城市"
  2948. style={{ width: "200px" }}
  2949. onChange={e => {
  2950. this.setState({ companyProvinceArr: e });
  2951. }}
  2952. />
  2953. </FormItem>
  2954. <FormItem className="three-item" {...formItemLayout} label="">
  2955. <Input
  2956. placeholder="请输入详细地址"
  2957. value={this.state.companyAddress}
  2958. style={{ width: "200px", marginLeft: "12em" }}
  2959. onChange={e => {
  2960. this.setState({ companyAddress: e.target.value });
  2961. }}
  2962. className="height-input"
  2963. />
  2964. </FormItem>
  2965. <FormItem
  2966. className="three-item"
  2967. {...formItemLayout}
  2968. label=""
  2969. ></FormItem>
  2970. <div className="clearfix">
  2971. <FormItem
  2972. labelCol={{ span: 3 }}
  2973. wrapperCol={{ span: 16 }}
  2974. label="备注"
  2975. >
  2976. <Input
  2977. type="textarea"
  2978. placeholder="请输入备注"
  2979. rows={4}
  2980. value={this.state.companyRemarks}
  2981. onChange={e => {
  2982. this.setState({ companyRemarks: e.target.value });
  2983. }}
  2984. />
  2985. </FormItem>
  2986. </div>
  2987. <Button
  2988. type="primary"
  2989. style={{
  2990. float: "right",
  2991. marginTop: "10px",
  2992. marginRight: "50px"
  2993. }}
  2994. onClick={() => {
  2995. this.saveCompany(this.state.companyId);
  2996. }}
  2997. >
  2998. 保存
  2999. </Button>
  3000. </div>
  3001. }
  3002. <p style={{ color: "red" }}>
  3003. 提示:查看备注请点击表格左侧加号按钮~
  3004. </p>
  3005. <div className="patent-table" style={{ marginTop: "10px" }}>
  3006. <Spin spinning={this.state.loading}>
  3007. <Table
  3008. columns={this.state.companyColumns}
  3009. dataSource={this.state.companys}
  3010. scroll={{ x: 300, y: 0 }}
  3011. expandedRowRender={record => {
  3012. return <p>{record.remarks}</p>;
  3013. }}
  3014. pagination={false}
  3015. />
  3016. </Spin>
  3017. </div>
  3018. </TabPane>
  3019. </Tabs>
  3020. </Modal>
  3021. <Modal
  3022. width="800px"
  3023. visible={this.state.visibleA}
  3024. onCancel={this.visitCancelA}
  3025. title="操作日志"
  3026. footer=""
  3027. className="admin-desc-content"
  3028. >
  3029. <div className="patent-table patent-table-center">
  3030. <Spin spinning={this.state.loading}>
  3031. <Table
  3032. columns={this.state.columnsA}
  3033. dataSource={this.state.dataSourceA}
  3034. pagination={false}
  3035. />
  3036. </Spin>
  3037. </div>
  3038. </Modal>
  3039. </div>
  3040. );
  3041. }
  3042. });
  3043. export default MyTaskOutsource;