myTaskOutsource.jsx 112 KB

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