myTaskOutsource.jsx 104 KB

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