myTaskOutsource.jsx 129 KB

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