myTaskOutsource.jsx 113 KB

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