myTaskOutsource.jsx 125 KB

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