Withdrawdetail.vue 52 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698
  1. <!-- 委员会申请列表 -->
  2. <template>
  3. <div class="autoBox box1" style="position: relative; background: #f5f5f5">
  4. <div class="center" style="margin-top: 20px; height: 1026px">
  5. <div class="left">
  6. <div class="centerLeft1">
  7. <div class="top">
  8. <div class="top1"></div>
  9. <div class="top2"></div>
  10. <div class="allApplication">
  11. <span>{{ $t("common.Withdrawdetail") }}</span>
  12. </div>
  13. <div @click="back" class="more">
  14. <span>{{ "<" }}{{ $t("common.return") }}</span>
  15. </div>
  16. </div>
  17. <div class="content">
  18. <div class="content2" style="overflow-y: auto; overflow-x: hidden">
  19. <div
  20. style="
  21. margin-top: 39px;
  22. width: 93%;
  23. height: auto;
  24. display: flex;
  25. flex-wrap: wrap;
  26. align-items: center;
  27. background-clip: content-box;
  28. "
  29. >
  30. <div class="tableTr">
  31. <div class="tableTd20">
  32. {{ $i18n.locale == "en" ? "Apply Name " : "申请人" }}
  33. </div>
  34. <div class="tableTd30">
  35. <span style="margin-left: 20px">{{ applyname }}</span>
  36. </div>
  37. <div class="tableTd20">
  38. {{ $i18n.locale == "en" ? "Apply Num " : "申请编号" }}
  39. </div>
  40. <div class="tableTd30">
  41. <span style="margin-left: 20px">{{ applynumber }}</span>
  42. </div>
  43. </div>
  44. <div class="tableTr">
  45. <div class="tableTd20">
  46. {{ $i18n.locale == "en" ? "Apply Time " : "申请时间" }}
  47. </div>
  48. <div class="tableTd30">
  49. <span style="margin-left: 20px">{{ applytime }}</span>
  50. </div>
  51. <div class="tableTd20">
  52. {{
  53. $i18n.locale == "en" ? "Belong Committe " : "所属委员会"
  54. }}
  55. </div>
  56. <div class="tableTd30">
  57. <el-select
  58. v-model="commact_committee"
  59. :placeholder="this.$i18n.locale == 'en' ? 'Please Choose' :'请选择'"
  60. style="width: 300px; margin-left: 20px"
  61. >
  62. <el-option
  63. style="width: 300px"
  64. v-for="item in committeeoptions"
  65. :key="item.value"
  66. :label="$i18n.locale == 'en' ?item.label2:item.label"
  67. :value="item.value"
  68. >
  69. </el-option>
  70. </el-select>
  71. </div>
  72. </div>
  73. <div class="tableTr">
  74. <div class="tableTd20">
  75. {{ $i18n.locale == "en" ? "Application Type " : "申请类型" }}
  76. </div>
  77. <div class="tableTd30">
  78. <el-select
  79. v-model="applytype"
  80. :placeholder="this.$i18n.locale == 'en' ? 'Please Choose' :'请选择'"
  81. style="width: 300px; margin-left: 20px"
  82. >
  83. <el-option
  84. style="width: 300px"
  85. v-for="item in options"
  86. :key="item.value"
  87. :label="$i18n.locale == 'en' ?item.label2:item.label"
  88. :value="item.value"
  89. >
  90. </el-option>
  91. </el-select>
  92. </div>
  93. <div class="tableTd20">
  94. {{ $i18n.locale == "en" ? "Title " : "标题" }}
  95. </div>
  96. <div class="tableTd30">
  97. <!-- <span style="margin-left: 20px">{{ commact_title }}</span>-->
  98. <el-input v-model="commact_title" :placeholder="this.$i18n.locale == 'en' ? 'Please The Input' :'请输入'"></el-input>
  99. </div>
  100. </div>
  101. <div class="tableTr" v-if="applytype == '4'">
  102. <div class="tableTd20">
  103. {{ $i18n.locale == "en" ? "Work Plans " : "工作计划" }}
  104. </div>
  105. <div class="tableTd120">
  106. <el-date-picker
  107. style="width: 80%; margin-left: 20px"
  108. v-model="workPlanSummaryYear"
  109. type="date"
  110. placeholder="选择日期"
  111. >
  112. </el-date-picker>
  113. </div>
  114. </div>
  115. <div class="tableTr" v-if="applytype == '6'">
  116. <div class="tableTd20">
  117. {{ $i18n.locale == "en" ? "Release Range " : "发布范围" }}
  118. </div>
  119. <div class="tableTd120">
  120. <el-select
  121. v-model="releaseScope"
  122. :placeholder="this.$i18n.locale == 'en' ? 'Please Choose' :'请选择'"
  123. style="width: 300px; margin-left: 20px"
  124. >
  125. <el-option
  126. style="width: 300px"
  127. v-for="item in options4"
  128. :key="item.value"
  129. :label="$i18n.locale == 'en' ?item.label2:item.label"
  130. :value="item.value"
  131. >
  132. </el-option>
  133. </el-select>
  134. </div>
  135. </div>
  136. <div class="tableTr" v-if="applytype == '2'">
  137. <div class="tableTd20">
  138. {{
  139. $i18n.locale == "en" ? "Receive Committe " : "接收委员会"
  140. }}
  141. </div>
  142. <div class="tableTd30" style="overflow-y: auto">
  143. <el-select
  144. multiple
  145. v-model="acceptCommittee"
  146. :placeholder="this.$i18n.locale == 'en' ? 'Please Choose' :'请选择'"
  147. style="width: 300px; margin-left: 20px"
  148. >
  149. <el-option
  150. style="width: 300px"
  151. v-for="item in committeeoptions"
  152. :key="item.value"
  153. :label="$i18n.locale == 'en' ?item.label2:item.label"
  154. :value="item.value"
  155. >
  156. </el-option>
  157. </el-select>
  158. </div>
  159. <div class="tableTd20">
  160. {{ $i18n.locale == "en" ? "Receiver " : " 接收人" }}
  161. </div>
  162. <div class="tableTd30">
  163. <el-select
  164. multiple
  165. v-model="accepter"
  166. :placeholder="this.$i18n.locale == 'en' ? 'Please Choose' :'请选择'"
  167. style="width: 300px; margin-left: 20px"
  168. >
  169. <el-option
  170. style="width: 300px"
  171. v-for="item in advice_personoption"
  172. :key="item.value"
  173. :label="item.label"
  174. :value="item.value"
  175. >
  176. </el-option>
  177. </el-select>
  178. </div>
  179. </div>
  180. <div class="tableTr">
  181. <!-- <span>{{ $i18n.locale == "en" ? "Content " : " 摘要" }}</span>-->
  182. <div class="tableTd20" style="margin-top: 20px;height: 60px;"> {{ $i18n.locale == 'en' ? 'Content ' : '摘要' }}</div>
  183. <div class="tableTd120" style="padding-top:0px;margin-top: 20px;height: 60px;">
  184. <div class="inputDeep">
  185. <el-input
  186. type="textarea"
  187. :rows="1"
  188. :placeholder="this.$i18n.locale == 'en' ? 'Please The Input' :'请输入'"
  189. style="resize: none"
  190. :maxlength="200"
  191. v-model="content">
  192. </el-input>
  193. <div style="float:right"><span>{{zititotal}}</span>/200</div>
  194. </div>
  195. </div>
  196. </div>
  197. </div>
  198. <!-- <div style="height: auto; width: 100%">-->
  199. <!-- <div class="content_title">{{content_title}}</div>-->
  200. <!-- <div class="content_content">{{ content }}</div>-->
  201. <!-- </div>-->
  202. <div style="display: flex; margin-top: 31px; margin-left: -20px" v-if="applytype!='6'">
  203. <div style="width: 7%; margin-top: 4px">
  204. {{ $i18n.locale == "en" ? "Body " : " 正文" }}:
  205. </div>
  206. <div style="width: 93%">
  207. <el-upload
  208. class="upload-demo"
  209. action="/api/nationregioncomittee-service/nrc/nrcApplys/uploadFile"
  210. :on-preview="handlePreview"
  211. :on-remove="handleRemove"
  212. :before-remove="beforeRemove"
  213. :before-upload="beforeUpload"
  214. :on-success="handleAvatarSuccessAnnex"
  215. multiple
  216. :on-exceed="handleExceed"
  217. :file-list="fileList"
  218. >
  219. <el-button size="small"><i class="el-icon-upload2"></i>{{ $i18n.locale == 'en' ? 'Uploadfile ' : ' 上传文件' }}</el-button>
  220. <div slot="tip" class="el-upload__tip">{{ $i18n.locale == 'en' ? 'Supported file name extension :doc :docx: PDF. The size of a single file cannot exceed 4MB ' : ' 支持扩展名:doc :docx :pdf,单个文件大小不超过4MB' }}</div>
  221. </el-upload>
  222. </div>
  223. </div>
  224. <div style="display: flex; margin-top: 98px; margin-left: -20px" v-if="applytype!='6'">
  225. <div :style="$i18n.locale =='en'? 'width:9%;margin-top:4px':'width:7%;margin-top:4px'">
  226. {{ $i18n.locale == "en" ? "Attachment " : "附件" }}:
  227. </div>
  228. <div style="width: 91%">
  229. <el-upload
  230. class="upload-demo"
  231. action="/api/nationregioncomittee-service/nrc/nrcApplys/uploadFile"
  232. :on-preview="handlePreview1"
  233. :on-remove="handleRemove1"
  234. :before-remove="beforeRemove1"
  235. :before-upload="beforeUpload1"
  236. :on-success="handleAvatarSuccessAnnex1"
  237. multiple
  238. :on-exceed="handleExceed1"
  239. :file-list="fileList1"
  240. >
  241. <el-button size="small"><i class="el-icon-upload2"></i>{{ $i18n.locale == 'en' ? 'Uploadfile ' : ' 上传文件' }}</el-button>
  242. <div slot="tip" class="el-upload__tip">{{ $i18n.locale == 'en' ? 'Supported file name extension :.rar.zip.doc.docx.pdf .jpg.png. The size of a single file cannot exceed 4MB ' : ' 支持扩展名:.rar.zip.doc.docx.pdf .jpg.png,单个文件大小不超过4MB' }}</div>
  243. </el-upload>
  244. </div>
  245. </div>
  246. <div style="display:flex;margin-top:31px;padding-left:20px" v-if="applytype=='6'">
  247. <div style="width:7%;margin-top:4px"><span style="color:red">*</span>{{ $i18n.locale == 'en' ? 'Body ' : ' 正文' }}:</div>
  248. <div style="width:93%">
  249. <el-upload
  250. class="upload-demo"
  251. action="/api/nationregioncomittee-service/nrc/nrcApplys/uploadFile"
  252. :on-remove="handleRemove2"
  253. :before-remove="beforeRemove2"
  254. :before-upload="beforeUpload2"
  255. :limit="1"
  256. :on-success="handleAvatarSuccessAnnex2"
  257. multiple
  258. :on-exceed="handleExceed2"
  259. :file-list="fileList2">
  260. <el-button size="small"><i class="el-icon-upload2"></i>{{ $i18n.locale == 'en' ? 'Upload File ' : ' 上传文件' }}</el-button>
  261. <div slot="tip" class="el-upload__tip">{{ $i18n.locale == 'en' ? 'Upload JPG / PNG format file. The file cannot exceed 10m, and up to 1 piece can be uploaded' : ' 上传jpg/png格式文件,文件不能超过10M,最多可上传1张' }}</div>
  262. </el-upload>
  263. </div>
  264. </div>
  265. <div style="display:flex;margin-top:98px;padding-left:20px" v-if="applytype=='6'">
  266. <div style="width:7%;margin-top:4px" :style="$i18n.locale =='en'? 'width:10%;margin-top:4px':'width:7%;margin-top:4px'"><span style="color:red">*</span>{{ $i18n.locale == 'en' ? 'Attachment ' : ' 附件' }}:</div>
  267. <div :style="$i18n.locale =='en'? 'width:91%':'width:93%'">
  268. <el-upload
  269. class="upload-demo"
  270. action="/api/nationregioncomittee-service/nrc/nrcApplys/uploadFile"
  271. :on-remove="handleRemove3"
  272. :before-remove="beforeRemove3"
  273. :before-upload="beforeUpload3"
  274. :limit="1"
  275. :on-success="handleAvatarSuccessAnnex3"
  276. multiple
  277. :on-exceed="handleExceed3"
  278. :file-list="fileList3">
  279. <el-button size="small"><i class="el-icon-upload2"></i>{{ $i18n.locale == 'en' ? 'Upload File ' : ' 上传文件' }}</el-button>
  280. <div slot="tip" class="el-upload__tip">{{ $i18n.locale == 'en' ? 'Upload PDF format file. The file cannot exceed 50m' : '上传Pdf格式文件,文件不能超过50M' }}</div>
  281. </el-upload>
  282. </div>
  283. </div>
  284. <div
  285. style="margin-top: 107px; margin-bottom: 30px; display: flex"
  286. >
  287. <div @click="submit" class="submit">
  288. {{ $i18n.locale == "en" ? "ToSubmit " : " 再次提交" }}
  289. </div>
  290. <div @click="close" class="cancel">
  291. {{ $i18n.locale == "en" ? "Close " : " 关闭" }}
  292. </div>
  293. </div>
  294. </div>
  295. </div>
  296. </div>
  297. </div>
  298. </div>
  299. </div>
  300. </template>
  301. <script>
  302. import Screen from "@/components/screen";
  303. import {
  304. getwaitdetail,
  305. getcommittee1,
  306. getwaitacceser,
  307. editwaitapply,
  308. editwaittijiao,
  309. uploadfile,
  310. } from "@/api/committee/nrc";
  311. export default {
  312. name: "Withdrawdetail",
  313. props: ["detailids", "reserveone_s", "flag","logo"],
  314. components: {
  315. Screen,
  316. },
  317. data() {
  318. return {
  319. options4: [
  320. {
  321. label: "网站公开",
  322. label2: "Site Public",
  323. value: "网站公开"},
  324. {
  325. label: "委员会内部",
  326. label2: "Committee Internal",
  327. value: "委员会内部"},
  328. ],
  329. committeeoptions: [],
  330. content_title: "研讨会",
  331. content_content:
  332. "贝克莱主席指出,为了实现预期的目标,非洲国家需要动员能源,扩大合作,促进电力连接和整合,提升能源领域的全球竞争力,并遵守2030年联合国和非盟的2063年议程。作为一个成员国,埃塞俄比亚正在推动跨境基础设施的发展,建立电力互联设施,并开发可再生能源,推动区域合作与一体化。",
  333. options: [
  334. {
  335. label: "活动方案",
  336. label2: "Programme Of Committee Activities",
  337. value: "1"},
  338. {
  339. label: "公文",
  340. label2: "Document",
  341. value: "5"},
  342. {
  343. label: "工作计划/总结",
  344. label2: "Work Plan/Summary",
  345. value: "4"},
  346. {
  347. label: "资料发布",
  348. label2: "Data Release",
  349. value: "6"},
  350. {
  351. label: "意见建议",
  352. label2: "Opinion Suggestion",
  353. value: "2"}
  354. ],
  355. finished: false,
  356. areadeal1: false,
  357. areadeal2: false,
  358. activeName: "first",
  359. accepter: undefined, //接收人
  360. acceptCommittee: undefined, //接收委员会
  361. applytype: undefined, //4.工作计划
  362. applytype1: undefined,
  363. releaseScope: undefined, //发布范围
  364. workPlanSummaryYear: undefined, //工作计划
  365. handleNode: undefined,
  366. files: [],
  367. id: undefined,
  368. zititotal:0,
  369. applyStatus: undefined,
  370. frontOrBack: undefined, //前台还是后台
  371. filename: [],
  372. filename1: [],
  373. filename2: [],
  374. filename3: [],
  375. status: undefined, //状态
  376. fileList: [],
  377. fileList1: [],
  378. fileList2: [],
  379. fileList3: [],
  380. filepath: undefined,
  381. filepath1: undefined,
  382. globalReadonly: true,
  383. applyname: undefined,
  384. applynumber: undefined, //申请编号
  385. applytime: undefined, //申请时间
  386. commact_committee: undefined, //委员会
  387. content: undefined, //内容
  388. commact_title: undefined, //标题
  389. advice_personoption: [],
  390. defaultProps: {
  391. children: "param",
  392. label: "name",
  393. },
  394. defaultShowNodes: [],
  395. refresh: 1,
  396. search: "",
  397. screen1s: {
  398. value: "common.type",
  399. item: [],
  400. },
  401. screen1def: null,
  402. screen2Item: null,
  403. };
  404. },
  405. watch: {
  406. "$i18n.locale"() {
  407. console.log("aaa")
  408. },
  409. content(){
  410. console.log(this.content.length)
  411. if(this.content.length>200){
  412. this.$message.error('不能超过200个字')
  413. }
  414. this.zititotal=this.content.length
  415. },
  416. CountryId() {},
  417. acceptCommittee(newVal, oldVal) {
  418. if (this.acceptCommittee.length != 0) {
  419. let aa = "";
  420. this.acceptCommittee.forEach((item) => {
  421. aa += item + ",";
  422. });
  423. aa = aa.substr(0, aa.length - 1);
  424. let params = {
  425. committeeId: aa,
  426. };
  427. this.advice_personoption = [];
  428. getwaitacceser(params).then((res) => {
  429. for (let i = 0; i < res.data.page.length; i++) {
  430. let obj = {};
  431. obj.data = [];
  432. obj.label = res.data.page[i].name;
  433. obj.value = res.data.page[i].id;
  434. this.advice_personoption.push(obj);
  435. }
  436. });
  437. } else {
  438. this.advice_personoption = [];
  439. }
  440. },
  441. },
  442. updated() {},
  443. mounted() {
  444. getcommittee1().then((res) => {
  445. /* this.commiteeoptions=res.data.page*/
  446. for(let i=0;i<res.data.page.length;i++){
  447. let obj={}
  448. obj.data=[];
  449. obj.label=res.data.page[i].committeeName
  450. obj.label2=res.data.page[i].committeeNameEn
  451. obj.value=res.data.page[i].id
  452. this.committeeoptions.push(obj)
  453. }
  454. });
  455. getwaitdetail(this.detailids).then((res) => {
  456. this.applyname = res.data.nrcApply.applyPeopleName;
  457. this.applynumber = res.data.nrcApply.applyNumber;
  458. this.applytime = res.data.nrcApply.createDate;
  459. this.content = res.data.nrcApply.abstractInfo;
  460. this.applytype = res.data.nrcApply.applyType;
  461. this.applyStatus = res.data.nrcApply.applyStatus;
  462. this.reserveOne = res.data.nrcApply.reserveOne;
  463. this.commact_title = res.data.nrcApply.title;
  464. this.commact_committee = res.data.nrcApply.belongCommittee;
  465. this.releaseScope = res.data.nrcApply.releaseScope;
  466. if(res.data.nrcApply.workPlanSummaryYear){
  467. this.workPlanSummaryYear=res.data.nrcApply.workPlanSummaryYear
  468. }
  469. let arr = res.data.nrcApply.acceptCommittee
  470. let arr2 = res.data.nrcApply.accepter
  471. let arry = undefined;
  472. if(arr != null && arr != undefined){
  473. arry = arr.split(" ");
  474. }
  475. let arry1 = [];
  476. // 获取接收委员会
  477. if(arry != undefined && arry != null && arry != "" && arry.length > 0){
  478. for (let i = 0; i < this.committeeoptions.length; i++) {
  479. for (let j = 0; j < arry.length; j++) {
  480. if(arry[j] == this.committeeoptions[i].label){
  481. arry1.push(this.committeeoptions[i].value);
  482. }
  483. }
  484. }
  485. this.acceptCommittee = arry1;
  486. let aa=''
  487. this.acceptCommittee.forEach(item=>{
  488. aa+=item+','
  489. })
  490. aa = aa.substr(0, aa.length - 1);
  491. let params={
  492. committeeId:aa,
  493. }
  494. this.advice_personoption=[]
  495. // 获取接收人
  496. getwaitacceser(params).then(res=>{
  497. for(let i=0;i<res.data.page.length;i++){
  498. let obj={}
  499. obj.data=[];
  500. obj.label=res.data.page[i].name
  501. obj.value=res.data.page[i].id
  502. this.advice_personoption.push(obj)
  503. }
  504. let arry2 = arr2.split(" ");
  505. let arry3 = [];
  506. if(arry2 != undefined && arry2 != null && arry2 != "" && arry2.length > 0){
  507. for (let i = 0; i < this.advice_personoption.length; i++) {
  508. for (let j = 0; j < arry2.length; j++) {
  509. if(arry2[j] == this.advice_personoption[i].label){
  510. arry3.push(this.advice_personoption[i].value);
  511. }
  512. }
  513. }
  514. this.accepter = arry3;
  515. }
  516. })
  517. }
  518. if(this.applytype == 6){
  519. if (res.data.files) {
  520. res.data.files.forEach((item) => {
  521. if (item.type == "2") {
  522. let obj = {};
  523. obj.name = item.fileNameDisplay;
  524. obj.url = item.filePath;
  525. obj.type = item.type;
  526. this.fileList2.push(obj);
  527. }
  528. if (item.type == "5") {
  529. let obj = {};
  530. obj.name = item.fileNameDisplay;
  531. obj.url = item.filePath;
  532. obj.type = item.type;
  533. this.fileList3.push(obj);
  534. }
  535. });
  536. }
  537. }else {
  538. if (res.data.files) {
  539. res.data.files.forEach((item) => {
  540. if (item.type == "2") {
  541. let obj = {};
  542. obj.name = item.fileNameDisplay;
  543. obj.url = item.filePath;
  544. obj.type = item.type;
  545. this.fileList.push(obj);
  546. }
  547. if (item.type == "3") {
  548. let obj = {};
  549. obj.name = item.fileNameDisplay;
  550. obj.url = item.filePath;
  551. obj.type = item.type;
  552. this.fileList1.push(obj);
  553. }
  554. });
  555. }
  556. }
  557. });
  558. /*this.applyname=this.$store.state.user.user.realName
  559. this.applytime=this.getNowFormatDate()*/
  560. },
  561. destroyed() {},
  562. methods: {
  563. handleCurrentChange() {},
  564. back() {
  565. if(this.flag==1){
  566. var params = {
  567. name: "workspace",
  568. type: false,
  569. };
  570. this.$emit("applicationType", params);
  571. }
  572. if(this.flag==2){
  573. if(this.logo == "my"){
  574. var params = {
  575. name: "application",
  576. type: true,
  577. };
  578. this.$emit("applicationType", params);
  579. }else {
  580. var params = {
  581. name: "application",
  582. type: false,
  583. };
  584. this.$emit("applicationType", params);
  585. }
  586. }
  587. },
  588. submit() {
  589. let aa = "";
  590. let newArr = [];
  591. if (this.reserveone_s) {
  592. var arrays = this.reserveone_s.split(",");
  593. arrays.forEach((item) => {
  594. if (item) {
  595. newArr.push(item);
  596. }
  597. });
  598. newArr.forEach((item) => {
  599. aa += item + ",";
  600. });
  601. }
  602. aa = aa.substr(0, aa.length - 1);
  603. if (this.applyStatus == 8) {
  604. this.applyStatus = 10;
  605. }
  606. if (this.applyStatus == 9) {
  607. this.applyStatus = 11;
  608. }
  609. if (this.applyStatus == 5) {
  610. this.applyStatus = 6;
  611. }
  612. let file = [];
  613. if (this.filename) {
  614. this.filename.forEach((item) => {
  615. let obj = {};
  616. obj.fileNameDisplay = item.fileNameDisplay;
  617. obj.filePath = item.filePath;
  618. obj.type = item.type;
  619. file.push(obj);
  620. });
  621. }
  622. if (this.filename1) {
  623. this.filename1.forEach((item) => {
  624. let obj = {};
  625. obj.fileNameDisplay = item.fileNameDisplay;
  626. obj.filePath = item.filePath;
  627. obj.type = item.type;
  628. file.push(obj);
  629. });
  630. }
  631. if (this.filename2) {
  632. this.filename2.forEach((item) => {
  633. let obj = {};
  634. obj.fileNameDisplay = item.fileNameDisplay;
  635. obj.filePath = item.filePath;
  636. obj.type = item.type;
  637. file.push(obj);
  638. });
  639. }
  640. if (this.filename3) {
  641. this.filename3.forEach((item) => {
  642. let obj = {};
  643. obj.fileNameDisplay = item.fileNameDisplay;
  644. obj.filePath = item.filePath;
  645. obj.type = item.type;
  646. file.push(obj);
  647. });
  648. }
  649. if (this.fileList) {
  650. this.fileList.forEach((item) => {
  651. let obj = {};
  652. obj.fileNameDisplay = item.name;
  653. obj.filePath = item.url;
  654. obj.type = item.type;
  655. file.push(obj);
  656. });
  657. }
  658. if (this.fileList1) {
  659. this.fileList1.forEach((item) => {
  660. let obj = {};
  661. obj.fileNameDisplay = item.name;
  662. obj.filePath = item.url;
  663. obj.type = item.type;
  664. file.push(obj);
  665. });
  666. }
  667. if (this.fileList2) {
  668. this.fileList2.forEach((item) => {
  669. let obj = {};
  670. obj.fileNameDisplay = item.name;
  671. obj.filePath = item.url;
  672. obj.type = item.type;
  673. file.push(obj);
  674. });
  675. }
  676. if (this.fileList3) {
  677. this.fileList3.forEach((item) => {
  678. let obj = {};
  679. obj.fileNameDisplay = item.name;
  680. obj.filePath = item.url;
  681. obj.type = item.type;
  682. file.push(obj);
  683. });
  684. }
  685. if (this.applytype == 1) {
  686. if (this.commact_title == "" || this.commact_title == undefined) {
  687. this.$message.error("请输入标题");
  688. }
  689. let params = {
  690. id: this.detailids,
  691. applyType: this.applytype,
  692. applyPeople: this.applyname,
  693. applyNumber: this.applynumber,
  694. applyTime: this.applytime,
  695. title: this.commact_title,
  696. abstractInfo: this.content,
  697. belongCommittee: this.commact_committee,
  698. statusDict: 7,
  699. applyStatus: this.applyStatus,
  700. approver: aa,
  701. frontOrBack: 2,
  702. /* approver:this.reserveOne,*/
  703. files: file,
  704. };
  705. this.editwaitapplys(params);
  706. }
  707. if (this.applytype == 5) {
  708. let params = {
  709. id: this.detailids,
  710. applyType: this.applytype,
  711. applyPeople: this.applyname,
  712. applyNumber: this.applynumber,
  713. applyTime: this.applytime,
  714. title: this.commact_title,
  715. abstractInfo: this.content,
  716. belongCommittee: this.commact_committee,
  717. statusDict: 7,
  718. frontOrBack: 2,
  719. // approver:this.reserveOne,
  720. applyStatus: this.applyStatus,
  721. files: file,
  722. approver: aa,
  723. };
  724. this.editwaitapplys(params);
  725. }
  726. if (this.applytype == 4) {
  727. let params = {
  728. approver: aa,
  729. id: this.detailids,
  730. applyType: this.applytype,
  731. applyPeople: this.applyname,
  732. applyNumber: this.applynumber,
  733. applyTime: this.applytime,
  734. title: this.commact_title,
  735. abstractInfo: this.content,
  736. // approver:this.reserveOne,
  737. belongCommittee: this.commact_committee,
  738. workPlanSummaryYear: this.workPlanSummaryYear
  739. ? this.getNowFormatDate1(this.workPlanSummaryYear)
  740. : this.workPlanSummaryYear,
  741. statusDict: 7,
  742. frontOrBack: 2,
  743. applyStatus: this.applyStatus,
  744. files: file,
  745. };
  746. this.editwaitapplys(params);
  747. }
  748. if (this.applytype == 6) {
  749. if(file.length <= 1){
  750. if(this.$i18n.locale == "en"){
  751. this.$message.error('Please select a Text and Annexes');
  752. }else {
  753. this.$message.error('请选择正文和附件');
  754. }
  755. return;
  756. }
  757. let params = {
  758. approver: aa,
  759. id: this.detailids,
  760. applyType: this.applytype,
  761. applyPeople: this.applyname,
  762. applyNumber: this.applynumber,
  763. applyTime: this.applytime,
  764. title: this.commact_title,
  765. abstractInfo: this.content,
  766. belongCommittee: this.commact_committee,
  767. statusDict: 7,
  768. frontOrBack: 2,
  769. // approver:this.reserveOne,
  770. applyStatus: this.applyStatus,
  771. releaseScope: this.releaseScope,
  772. files: file,
  773. };
  774. this.editwaitapplys(params);
  775. }
  776. if (this.applytype == 2) {
  777. let adviceperson = "";
  778. if (this.accepter) {
  779. this.accepter.forEach((item) => {
  780. adviceperson += "," + item + ",";
  781. });
  782. }
  783. let adviceacceptcommittee = "";
  784. if (this.acceptCommittee) {
  785. this.acceptCommittee.forEach((item) => {
  786. adviceacceptcommittee += "," + item + ",";
  787. });
  788. }
  789. let params = {
  790. approver: aa,
  791. id: this.detailids,
  792. applyType: this.applytype,
  793. applyPeople: this.applyname,
  794. applyNumber: this.applynumber,
  795. applyTime: this.applytime,
  796. title: this.commact_title,
  797. abstractInfo: this.content,
  798. // approver:this.reserveOne,
  799. acceptCommittee: adviceacceptcommittee,
  800. belongCommittee: this.commact_committee,
  801. applyStatus: this.applyStatus,
  802. accepter: adviceperson,
  803. statusDict: 7,
  804. frontOrBack: 2,
  805. files: file,
  806. };
  807. this.editwaitapplys(params);
  808. }
  809. },
  810. editwaitapplys(data, aa) {
  811. editwaitapply(data).then((res) => {
  812. if (res.status == "200") {
  813. if (this.$i18n.locale.toUpperCase() == 'ZH') {
  814. alert('提交成功')
  815. }else{
  816. alert('Submitted successfully')
  817. }
  818. if (this.flag == 1) {
  819. var params = {
  820. name: "workspace",
  821. type: false,
  822. };
  823. this.$emit("applicationType", params);
  824. }
  825. if(this.flag==2){
  826. if(this.logo == "my"){
  827. var params = {
  828. name: "application",
  829. type: true,
  830. };
  831. this.$emit("applicationType", params);
  832. }else {
  833. var params = {
  834. name: "application",
  835. type: false,
  836. };
  837. this.$emit("applicationType", params);
  838. }
  839. }
  840. }
  841. });
  842. },
  843. close() {
  844. if (this.flag == 1) {
  845. var params = {
  846. name: "workspace",
  847. type: false,
  848. };
  849. this.$emit("applicationType", params);
  850. }
  851. if(this.flag==2){
  852. if(this.logo == "my"){
  853. var params = {
  854. name: "application",
  855. type: true,
  856. };
  857. this.$emit("applicationType", params);
  858. }else {
  859. var params = {
  860. name: "application",
  861. type: false,
  862. };
  863. this.$emit("applicationType", params);
  864. }
  865. }
  866. },
  867. screenBack() {},
  868. handleAvatarSuccessAnnex(res, file) {
  869. let obj = {};
  870. obj.fileNameDisplay = file.name;
  871. obj.filePath = res.data.filePath;
  872. obj.type = 2;
  873. this.filename.push(obj);
  874. console.log(this.filename);
  875. },
  876. handleAvatarSuccessAnnex1(res, file) {
  877. let obj = {};
  878. obj.fileNameDisplay = file.name;
  879. obj.filePath = res.data.filePath;
  880. obj.type = 3;
  881. this.filename1.push(obj);
  882. },
  883. handleAvatarSuccessAnnex2(res, file) {
  884. if (res.status==500){
  885. if (this.$i18n.locale.toUpperCase() == 'EN') {
  886. this.$message.error("Upload Failed");
  887. }else {
  888. this.$message.error(res.msg);
  889. }
  890. this.fileList2.splice(this.fileList2.indexOf(file), 1)
  891. return
  892. }
  893. let obj={}
  894. obj.fileNameDisplay=file.name
  895. obj.filePath=res.data.filePath
  896. obj.type=2
  897. this.filename2.push(obj)
  898. },
  899. handleAvatarSuccessAnnex3(res, file) {
  900. if (res.status==500){
  901. if (this.$i18n.locale.toUpperCase() == 'EN') {
  902. this.$message.error("Upload Failed");
  903. }else {
  904. this.$message.error(res.msg);
  905. }
  906. this.fileList3.splice(this.fileList3.indexOf(file), 1)
  907. return
  908. }
  909. let obj={}
  910. obj.fileNameDisplay=file.name
  911. obj.filePath=res.data.filePath
  912. obj.type=5
  913. this.filename3.push(obj)
  914. },
  915. beforeUpload(file) {
  916. var FileExt = file.name.replace(/.+\./, "");
  917. if (
  918. ["zip", "pdf", "doc", "docx", "excel", "xls", "xlsx"].indexOf(
  919. FileExt.toLowerCase()
  920. ) === -1
  921. ) {
  922. if (this.$i18n.locale.toUpperCase() == 'EN') {
  923. this.$message({
  924. type: 'warning',
  925. message: 'Please upload zip,pdf,word,excel The attachment!'
  926. });
  927. }else {
  928. this.$message({
  929. type: 'warning',
  930. message: '请上传zip,pdf,word,excel的附件!'
  931. });
  932. }
  933. this.fileList.splice(this.fileList.indexOf(file), 1);
  934. abort();
  935. return false;
  936. }
  937. this.isLt2k = file.size / 1024 / 1024 < 10 ? "1" : "0";
  938. if (this.isLt2k === "0") {
  939. if (this.$i18n.locale.toUpperCase() == "ZH") {
  940. this.$message({
  941. message: "上传文件大小不能超过10M!",
  942. type: "error",
  943. });
  944. } else {
  945. this.$message({
  946. message: "Upload file size cannot exceed 10m!",
  947. type: "error",
  948. });
  949. }
  950. return false;
  951. }
  952. },
  953. beforeUpload1(file) {
  954. var FileExt = file.name.replace(/.+\./, "");
  955. if (['rar', 'zip', 'doc', 'docx', 'pdf', 'jpg', 'png'].indexOf(FileExt.toLowerCase()) === -1) {
  956. if (this.$i18n.locale.toUpperCase() == 'EN') {
  957. this.$message({
  958. type: 'warning',
  959. message: 'Please upload pictures!'
  960. });
  961. }else {
  962. this.$message({
  963. type: 'warning',
  964. message: '请上传图片!'
  965. });
  966. }
  967. this.fileList1.splice(this.fileList1.indexOf(file), 1);
  968. abort();
  969. return false;
  970. }
  971. this.isLt2k = file.size / 1024 / 1024 < 10 ? "1" : "0";
  972. if (this.isLt2k === "0") {
  973. if (this.$i18n.locale.toUpperCase() == "ZH") {
  974. this.$message({
  975. message: "上传文件大小不能超过10M!",
  976. type: "error",
  977. });
  978. } else {
  979. this.$message({
  980. message: "Upload file size cannot exceed 10m!",
  981. type: "error",
  982. });
  983. }
  984. return false;
  985. }
  986. },
  987. beforeUpload2(file) {
  988. var FileExt = file.name.replace(/.+\./, "");
  989. if (["jpg", "png"].indexOf(FileExt.toLowerCase()) === -1) {
  990. if (this.$i18n.locale.toUpperCase() == 'EN') {
  991. this.$message({
  992. type: "warning",
  993. message: "Please upload JPG, PNG files!",
  994. });
  995. }else {
  996. this.$message({
  997. type: "warning",
  998. message: "请上传jpg,png的文件!",
  999. });
  1000. }
  1001. this.fileList2.splice(this.fileList2.indexOf(file), 1)
  1002. abort();
  1003. return false;
  1004. }
  1005. this.isLt2k = file.size / 1024 / 1024 < 10 ? '1' : '0';
  1006. if (this.isLt2k === '0') {
  1007. if (this.$i18n.locale.toUpperCase() == 'zh') {
  1008. this.$message({
  1009. message: '上传文件大小不能超过10M!',
  1010. type: 'error'
  1011. });
  1012. } else {
  1013. this.$message({
  1014. message: 'Upload file size cannot exceed 10m!',
  1015. type: 'error'
  1016. });
  1017. }
  1018. this.fileList2.splice(this.fileList2.indexOf(file), 1)
  1019. abort();
  1020. return false;
  1021. }
  1022. },
  1023. beforeUpload3(file) {
  1024. var FileExt = file.name.replace(/.+\./, "");
  1025. if (['pdf'].indexOf(FileExt.toLowerCase()) === -1) {
  1026. if (this.$i18n.locale.toUpperCase() == 'EN') {
  1027. this.$message({
  1028. type: 'warning',
  1029. message: 'Please Upload PDF File!!'
  1030. });
  1031. }else {
  1032. this.$message({
  1033. type: 'warning',
  1034. message: '请上传pdf的文件!!'
  1035. });
  1036. }
  1037. this.fileList3.splice(this.fileList3.indexOf(file), 1)
  1038. abort();
  1039. return false;
  1040. }
  1041. this.isLt2k = file.size / 1024 / 1024 < 10 ? '1' : '0';
  1042. if (this.isLt2k === '0') {
  1043. if (this.$i18n.locale.toUpperCase() == 'zh') {
  1044. this.$message({
  1045. message: '上传文件大小不能超过10M!',
  1046. type: 'error'
  1047. });
  1048. } else {
  1049. this.$message({
  1050. message: 'Upload file size cannot exceed 10m!',
  1051. type: 'error'
  1052. });
  1053. }
  1054. this.fileList3.splice(this.fileList3.indexOf(file), 1)
  1055. abort();
  1056. return false;
  1057. }
  1058. },
  1059. handlePreview(file, fileList) {
  1060. console.log(file, fileList);
  1061. let param = {
  1062. fileName: file.name,
  1063. filePath: file.url,
  1064. };
  1065. uploadfile(param).then((res) => {
  1066. const content = res;
  1067. if (content) {
  1068. const blob = new Blob([content]); //构造一个blob对象来处理数据
  1069. const fileName = decodeURIComponent(res.fileName);
  1070. //对于<a>标签,只有 Firefox 和 Chrome(内核) 支持 download 属性
  1071. //IE10以上支持blob但是依然不支持download
  1072. if ("download" in document.createElement("a")) {
  1073. //支持a标签download的浏览器
  1074. const link = document.createElement("a"); //创建a标签
  1075. link.download = file.name; //a标签添加属性
  1076. link.style.display = "none";
  1077. link.href = URL.createObjectURL(blob);
  1078. document.body.appendChild(link);
  1079. link.click(); //执行下载
  1080. URL.revokeObjectURL(link.href); //释放url
  1081. document.body.removeChild(link); //释放标签
  1082. } else {
  1083. //其他浏览器
  1084. navigator.msSaveBlob(blob, fileName);
  1085. }
  1086. } else {
  1087. this.$message.error("服务器繁忙");
  1088. }
  1089. });
  1090. },
  1091. handlePreview1(file, fileList) {
  1092. console.log(file, fileList);
  1093. let param = {
  1094. fileName: file.name,
  1095. filePath: file.url,
  1096. };
  1097. uploadfile(param).then((res) => {
  1098. const content = res;
  1099. if (content) {
  1100. const blob = new Blob([content]); //构造一个blob对象来处理数据
  1101. const fileName = decodeURIComponent(res.fileName);
  1102. //对于<a>标签,只有 Firefox 和 Chrome(内核) 支持 download 属性
  1103. //IE10以上支持blob但是依然不支持download
  1104. if ("download" in document.createElement("a")) {
  1105. //支持a标签download的浏览器
  1106. const link = document.createElement("a"); //创建a标签
  1107. link.download = file.name; //a标签添加属性
  1108. link.style.display = "none";
  1109. link.href = URL.createObjectURL(blob);
  1110. document.body.appendChild(link);
  1111. link.click(); //执行下载
  1112. URL.revokeObjectURL(link.href); //释放url
  1113. document.body.removeChild(link); //释放标签
  1114. } else {
  1115. //其他浏览器
  1116. navigator.msSaveBlob(blob, fileName);
  1117. }
  1118. } else {
  1119. this.$message.error("服务器繁忙");
  1120. }
  1121. });
  1122. },
  1123. handleRemove(file, fileList) {
  1124. console.log(file, fileList);
  1125. this.filename.forEach((item, index) => {
  1126. if (file.name == item.fileNameDisplay) {
  1127. this.filename.splice(index, 1);
  1128. }
  1129. });
  1130. this.fileList.forEach((item,index)=>{
  1131. if(file.name==item.name){
  1132. this.fileList.splice(index,1)
  1133. }
  1134. });
  1135. console.log(this.filename);
  1136. },
  1137. handleRemove1(file, fileList) {
  1138. console.log(file, fileList);
  1139. this.filename1.forEach((item, index) => {
  1140. if (file.name == item.fileNameDisplay) {
  1141. this.filename1.splice(index, 1);
  1142. }
  1143. });
  1144. this.fileList1.forEach((item,index)=>{
  1145. if(file.name==item.name){
  1146. this.fileList1.splice(index,1)
  1147. }
  1148. });
  1149. console.log(this.filename1);
  1150. },
  1151. handleRemove2(file, fileList) {
  1152. this.filename2.forEach((item,index)=>{
  1153. if(file.name==item.fileNameDisplay){
  1154. this.filename2.splice(index,1)
  1155. }
  1156. });
  1157. this.fileList2.forEach((item,index)=>{
  1158. if(file.name==item.name){
  1159. this.fileList2.splice(index,1)
  1160. }
  1161. });
  1162. },
  1163. handleRemove3(file, fileList) {
  1164. this.filename3.forEach((item,index)=>{
  1165. if(file.name==item.fileNameDisplay){
  1166. this.filename3.splice(index,1)
  1167. }
  1168. });
  1169. this.fileList3.forEach((item,index)=>{
  1170. if(file.name==item.name){
  1171. this.fileList3.splice(index,1)
  1172. }
  1173. });
  1174. },
  1175. handleExceed(files, fileList) {
  1176. if (this.$i18n.locale.toUpperCase() == 'EN') {
  1177. this.$message.warning(`Limit the selection to 3 file,This time I have chosen ${files.length} file,A total chose ${files.length + fileList.length} file`);
  1178. }else {
  1179. this.$message.warning(`限制选择 3 个文件,本次选择了 ${files.length} 个文件,共选择了 ${files.length + fileList.length} 个文件`);
  1180. }
  1181. },
  1182. handleExceed1(files, fileList) {
  1183. if (this.$i18n.locale.toUpperCase() == 'EN') {
  1184. this.$message.warning(`Limit the selection to 3 file,This time I have chosen ${files.length} file,A total chose ${files.length + fileList.length} file`);
  1185. }else {
  1186. this.$message.warning(`限制选择 3 个文件,本次选择了 ${files.length} 个文件,共选择了 ${files.length + fileList.length} 个文件`);
  1187. }
  1188. },
  1189. handleExceed2(files, fileList) {
  1190. if (this.$i18n.locale.toUpperCase() == 'EN') {
  1191. this.$message.warning(`Limit the selection to 1 file,This time I have chosen ${files.length} file,A total chose ${files.length + fileList.length} file`);
  1192. }else {
  1193. this.$message.warning(`限制选择 1 个文件,本次选择了 ${files.length} 个文件,共选择了 ${files.length + fileList.length} 个文件`);
  1194. }
  1195. },
  1196. handleExceed3(files, fileList) {
  1197. if (this.$i18n.locale.toUpperCase() == 'EN') {
  1198. this.$message.warning(`Limit the selection to 1 file,This time I have chosen ${files.length} file,A total chose ${files.length + fileList.length} file`);
  1199. }else {
  1200. this.$message.warning(`限制选择 1 个文件,本次选择了 ${files.length} 个文件,共选择了 ${files.length + fileList.length} 个文件`);
  1201. }
  1202. },
  1203. beforeRemove(file, fileList) {
  1204. if (this.$i18n.locale.toUpperCase() == "ZH") {
  1205. return this.$confirm(`确定移除 ${file.name}?`);
  1206. }else{
  1207. return this.$confirm(`Are you sure you want to remove ${file.name}?`);
  1208. }
  1209. },
  1210. beforeRemove1(file, fileList) {
  1211. if (this.$i18n.locale.toUpperCase() == "ZH") {
  1212. return this.$confirm(`确定移除 ${file.name}?`);
  1213. }else{
  1214. return this.$confirm(`Are you sure you want to remove ${file.name}?`);
  1215. }
  1216. },
  1217. beforeRemove2(file, fileList) {
  1218. if (this.$i18n.locale.toUpperCase() == "ZH") {
  1219. return this.$confirm(`确定移除 ${file.name}?`);
  1220. }else{
  1221. return this.$confirm(`Are you sure you want to remove ${file.name}?`);
  1222. }
  1223. },
  1224. beforeRemove3(file, fileList) {
  1225. if (this.$i18n.locale.toUpperCase() == "ZH") {
  1226. return this.$confirm(`确定移除 ${file.name}?`);
  1227. }else{
  1228. return this.$confirm(`Are you sure you want to remove ${file.name}?`);
  1229. }
  1230. },
  1231. getNowFormatDate() {
  1232. let now = new Date();
  1233. let year = now.getFullYear(); //获取完整的年份(4位,1970-????)
  1234. let month = now.getMonth() + 1; //获取当前月份(0-11,0代表1月)
  1235. let today = now.getDate(); //获取当前日(1-31)
  1236. let hour = now.getHours(); //获取当前小时数(0-23)
  1237. let minute = now.getMinutes(); //获取当前分钟数(0-59)
  1238. let second = now.getSeconds(); //获取当前秒数(0-59)
  1239. let nowTime = "";
  1240. nowTime =
  1241. year +
  1242. "-" +
  1243. this.fillZero(month) +
  1244. "-" +
  1245. this.fillZero(today) +
  1246. " " +
  1247. this.fillZero(hour) +
  1248. ":" +
  1249. this.fillZero(minute) +
  1250. ":" +
  1251. this.fillZero(second);
  1252. return nowTime;
  1253. },
  1254. getNowFormatDate1(value) {
  1255. let now = new Date(value);
  1256. let year = now.getFullYear(); //获取完整的年份(4位,1970-????)
  1257. let month = now.getMonth() + 1; //获取当前月份(0-11,0代表1月)
  1258. let today = now.getDate(); //获取当前日(1-31)
  1259. let hour = now.getHours(); //获取当前小时数(0-23)
  1260. let minute = now.getMinutes(); //获取当前分钟数(0-59)
  1261. let second = now.getSeconds(); //获取当前秒数(0-59)
  1262. let nowTime = "";
  1263. nowTime = year + "-" + this.fillZero(month) + "-" + this.fillZero(today);
  1264. return nowTime;
  1265. },
  1266. fillZero(str) {
  1267. var realNum;
  1268. if (str < 10) {
  1269. realNum = "0" + str;
  1270. } else {
  1271. realNum = str;
  1272. }
  1273. return realNum;
  1274. },
  1275. },
  1276. };
  1277. </script>
  1278. <style scoped>
  1279. ::v-deep .el-upload-list__item-name {
  1280. color: #4790f7;
  1281. text-decoration: underline;
  1282. }
  1283. /deep/ .el-upload-list__item.is-success.focusing .el-icon-close-tip {
  1284. display: none !important;
  1285. }
  1286. /deep/ .el-upload-list__item {
  1287. width: 299px;
  1288. }
  1289. .content_title {
  1290. padding-left: 316px;
  1291. width: 1087px;
  1292. height: 26px;
  1293. font-family: "PingFang SC";
  1294. font-style: normal;
  1295. font-weight: 500;
  1296. font-size: 20px;
  1297. line-height: 22px;
  1298. /* or 110% */
  1299. display: flex;
  1300. align-items: center;
  1301. text-align: center;
  1302. text-indent: 30px;
  1303. font-feature-settings: "tnum" on, "lnum" on;
  1304. color: rgba(0, 0, 0, 0.85);
  1305. }
  1306. .content_content {
  1307. //margin-top:16px;
  1308. width: 1018px;
  1309. height: auto;
  1310. font-family: "PingFang SC";
  1311. font-style: normal;
  1312. font-weight: 400;
  1313. font-size: 14px;
  1314. line-height: 25px;
  1315. /* or 179% */
  1316. display: flex;
  1317. align-items: center;
  1318. text-indent: 30px;
  1319. font-feature-settings: "tnum" on, "lnum" on;
  1320. color: rgba(0, 0, 0, 0.65);
  1321. }
  1322. .neirong {
  1323. margin-top: 64px;
  1324. height: 26px;
  1325. margin-left: -50px;
  1326. font-family: "PingFang SC";
  1327. font-style: normal;
  1328. font-weight: 400;
  1329. font-size: 16px;
  1330. line-height: 0px;
  1331. /* or 0% */
  1332. display: flex;
  1333. align-items: center;
  1334. text-indent: 30px;
  1335. font-feature-settings: "tnum" on, "lnum" on;
  1336. color: rgba(0, 0, 0, 0.95);
  1337. }
  1338. .submit {
  1339. box-sizing: border-box;
  1340. width: 120px;
  1341. height: 40px;
  1342. margin-left: 339px;
  1343. width: 120px;
  1344. height: 40px;
  1345. padding-left: 32px;
  1346. background: #e6973a;
  1347. border: 1px solid #e6973a;
  1348. border-radius: 4px;
  1349. font-family: "Noto Sans SC";
  1350. font-style: normal;
  1351. font-weight: 500;
  1352. font-size: 14px;
  1353. line-height: 22px;
  1354. /* identical to box height, or 157% */
  1355. display: flex;
  1356. align-items: center;
  1357. text-align: center;
  1358. font-feature-settings: "tnum" on, "lnum" on;
  1359. /* Neutral Color/White */
  1360. color: #ffffff;
  1361. cursor: pointer;
  1362. /* Neutral Color/White */
  1363. color: #ffffff;
  1364. }
  1365. .cancel {
  1366. box-sizing: border-box;
  1367. width: 120px;
  1368. height: 40px;
  1369. margin-left: 30px;
  1370. padding-left: 44px;
  1371. background: white;
  1372. border: 1px solid #e9ebef;
  1373. border-radius: 4px;
  1374. cursor: pointer;
  1375. font-family: "Noto Sans SC";
  1376. font-style: normal;
  1377. font-weight: 500;
  1378. font-size: 14px;
  1379. line-height: 22px;
  1380. /* identical to box height, or 157% */
  1381. display: flex;
  1382. align-items: center;
  1383. text-align: center;
  1384. font-feature-settings: "tnum" on, "lnum" on;
  1385. color: rgba(17, 17, 17, 0.65);
  1386. }
  1387. /deep/ .applytype .el-select {
  1388. width: 415px !important;
  1389. }
  1390. /* 利用穿透,设置input边框隐藏 */
  1391. .inputDeep >>> .el-input__inner {
  1392. border: 0;
  1393. }
  1394. /* 如果你的 el-input type 设置成textarea ,就要用这个了 */
  1395. .inputDeep >>> .el-textarea__inner {
  1396. border: 0;
  1397. resize: none; /* 这个是去掉 textarea 下面拉伸的那个标志,如下图 */
  1398. }
  1399. .english {
  1400. box-sizing: border-box;
  1401. position: absolute;
  1402. width: 80px;
  1403. height: 40px;
  1404. left: 69px;
  1405. border: 1px solid rgba(0, 0, 0, 0.15);
  1406. border-radius: 2px;
  1407. font-family: "Noto Sans SC";
  1408. font-style: normal;
  1409. font-weight: 400;
  1410. font-size: 14px;
  1411. line-height: 22px;
  1412. /* identical to box height, or 157% */
  1413. display: flex;
  1414. align-items: center;
  1415. font-feature-settings: "tnum" on, "lnum" on;
  1416. color: rgba(0, 0, 0, 0.85);
  1417. padding-left: 13px;
  1418. }
  1419. .box1 {
  1420. padding: 0 0 20px 0;
  1421. position: absolute;
  1422. }
  1423. .center {
  1424. display: flex;
  1425. }
  1426. .topImg img {
  1427. display: inline-block;
  1428. width: 1200px;
  1429. height: 324px;
  1430. }
  1431. .centerLeft1 {
  1432. border-radius: 0px;
  1433. width: 1198px;
  1434. height: 877px;
  1435. left: 360px;
  1436. top: 317px;
  1437. background: #ffffff;
  1438. }
  1439. .left {
  1440. position: relative;
  1441. }
  1442. .top .top1 {
  1443. position: absolute;
  1444. width: 5.5px;
  1445. height: 10.5px;
  1446. left: 20px;
  1447. top: 35px;
  1448. background: #376ac7;
  1449. z-index: 1;
  1450. }
  1451. .top .top2 {
  1452. position: absolute;
  1453. width: 5.5px;
  1454. height: 15px;
  1455. left: 20px;
  1456. top: 35px;
  1457. background: #83bd50;
  1458. }
  1459. .top .allApplication {
  1460. position: absolute;
  1461. height: 22px;
  1462. left: 34px;
  1463. top: 31px;
  1464. }
  1465. .top .allApplication span {
  1466. font-family: "PingFang SC";
  1467. font-style: normal;
  1468. font-weight: 600;
  1469. font-size: 16px;
  1470. line-height: 22px;
  1471. color: #375586;
  1472. }
  1473. .top .notice {
  1474. position: absolute;
  1475. height: 22px;
  1476. left: 160px;
  1477. top: 32px;
  1478. }
  1479. .top .notice span {
  1480. font-family: "PingFang SC";
  1481. font-style: normal;
  1482. font-weight: 600;
  1483. font-size: 16px;
  1484. line-height: 22px;
  1485. color: rgba(10, 10, 10, 0.85);
  1486. }
  1487. .top .more {
  1488. position: absolute;
  1489. height: 16px;
  1490. right: 21px;
  1491. top: 31px;
  1492. }
  1493. .top .more span {
  1494. font-family: "Roboto";
  1495. font-style: normal;
  1496. font-weight: 500;
  1497. font-size: 14px;
  1498. line-height: 16px;
  1499. color: #4790f7;
  1500. }
  1501. .content .content1 {
  1502. box-sizing: border-box;
  1503. position: absolute;
  1504. width: 100%;
  1505. height: 70px;
  1506. left: 0px;
  1507. top: 78px;
  1508. }
  1509. .content .content2 {
  1510. box-sizing: border-box;
  1511. position: absolute;
  1512. width: 100%;
  1513. height: 976px;
  1514. left: 0px;
  1515. top: 50px;
  1516. background: #ffffff;
  1517. padding-left: 125px;
  1518. }
  1519. .content .title {
  1520. font-family: "PingFang SC";
  1521. font-style: normal;
  1522. font-weight: 600;
  1523. font-size: 14px;
  1524. line-height: 20px;
  1525. color: rgba(0, 0, 0, 0.85);
  1526. position: absolute;
  1527. left: 16px;
  1528. top: 16px;
  1529. right: 14px;
  1530. bottom: 113px;
  1531. }
  1532. .content .time {
  1533. font-family: "Roboto";
  1534. font-style: normal;
  1535. font-weight: 400;
  1536. font-size: 12px;
  1537. line-height: 14px;
  1538. color: rgba(0, 0, 0, 0.65);
  1539. position: absolute;
  1540. left: 16px;
  1541. top: 61px;
  1542. }
  1543. .content .type {
  1544. font-family: "PingFang SC";
  1545. font-style: normal;
  1546. font-weight: 400;
  1547. font-size: 14px;
  1548. line-height: 20px;
  1549. color: rgba(0, 0, 0, 0.85);
  1550. position: absolute;
  1551. left: 16px;
  1552. top: 89px;
  1553. }
  1554. .content .toView {
  1555. margin-left: 100px;
  1556. font-family: "Roboto";
  1557. font-style: normal;
  1558. font-weight: 400;
  1559. font-size: 14px;
  1560. line-height: 16px;
  1561. color: #274e92;
  1562. }
  1563. .content .toProgress {
  1564. font-family: "Roboto";
  1565. font-style: normal;
  1566. font-weight: 400;
  1567. font-size: 14px;
  1568. line-height: 16px;
  1569. color: #274e92;
  1570. }
  1571. .centerLeft2 {
  1572. position: relative;
  1573. margin-top: 20px;
  1574. height: 177px;
  1575. width: 850px;
  1576. border-radius: 0px;
  1577. background: #fff;
  1578. }
  1579. .content .audit {
  1580. position: absolute;
  1581. right: 5%;
  1582. }
  1583. .area {
  1584. position: absolute;
  1585. top: 100px;
  1586. }
  1587. .pag {
  1588. position: absolute;
  1589. bottom: 0;
  1590. right: 0;
  1591. }
  1592. .tableTr {
  1593. height: 40px;
  1594. width: 98%;
  1595. display: flex;
  1596. align-items: center;
  1597. color: #a0a4aa;
  1598. }
  1599. .tableTd20 {
  1600. box-sizing: border-box;
  1601. display: flex;
  1602. flex-direction: row;
  1603. justify-content: center;
  1604. align-items: center;
  1605. padding: 9px 20px;
  1606. gap: 4px;
  1607. width: 13%;
  1608. height: 40px;
  1609. background: #f5f7fa;
  1610. border: 1px solid #dcdfe6;
  1611. border-radius: 0px;
  1612. font-family: "PingFang SC";
  1613. font-style: normal;
  1614. font-weight: 600;
  1615. font-size: 14px;
  1616. line-height: 22px;
  1617. /* identical to box height, or 157% */
  1618. display: flex;
  1619. align-items: center;
  1620. text-align: center;
  1621. font-feature-settings: "tnum" on, "lnum" on;
  1622. color: rgba(0, 0, 0, 0.85);
  1623. }
  1624. .tableTd30 {
  1625. background: #ffffff;
  1626. border: 1px solid #dcdfe6;
  1627. mix-blend-mode: normal;
  1628. width: 37%;
  1629. text-align: left;
  1630. height: 40px;
  1631. font-family: "Noto Sans SC";
  1632. font-style: normal;
  1633. font-weight: 400;
  1634. font-size: 14px;
  1635. line-height: 22px;
  1636. display: flex;
  1637. align-items: center;
  1638. font-feature-settings: "tnum" on, "lnum" on;
  1639. color: rgba(0, 0, 0, 0.45);
  1640. }
  1641. .tableTd120 {
  1642. border: 1px solid #dcdfe6;
  1643. width: 87%;
  1644. text-align: left;
  1645. height: 40px;
  1646. font-size: 15px;
  1647. }
  1648. .tableTd50 {
  1649. width: 50%;
  1650. height: 40px;
  1651. text-align: center;
  1652. display: flex;
  1653. flex-wrap: nowrap;
  1654. justify-content: space-around;
  1655. }
  1656. </style>