myTaskOutsource.jsx 105 KB

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