myTaskOutsource.jsx 125 KB

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