myTaskOutsource.jsx 105 KB

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