myTask.jsx 122 KB

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