myTaskOutsource.jsx 125 KB

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