index.vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688
  1. <template>
  2. <div style="overflow-y: auto">
  3. <el-card class="box-card">
  4. <div slot="header">
  5. <span>
  6. <i class="icon icon-table2"></i> 待办/已办
  7. </span>
  8. <el-form ref="form" :inline="true" style="float: right; margin-top: -10px">
  9. <el-form-item label="类型">
  10. <el-select size="mini" style="width:100px" v-model="searchForm.Type" placeholder="准入类别">
  11. <el-option label="全部" value=""></el-option>
  12. <el-option label="准入" value="1"></el-option>
  13. <el-option label="增项" value="2"></el-option>
  14. <el-option label="年审" value="3"></el-option>
  15. <el-option label="信息变更" value="4"></el-option>
  16. <el-option label="资质变更" value="5"></el-option>
  17. </el-select>
  18. </el-form-item>
  19. <el-form-item label="类别">
  20. <el-select size="mini" style="width:100px" v-model="searchForm.SupplierTypeCode" placeholder="准入类别">
  21. <el-option label="全部" value=""></el-option>
  22. <el-option label="物资类" value="01"></el-option>
  23. <el-option label="基建类" value="02"></el-option>
  24. <el-option label="技术服务类" value="03"></el-option>
  25. </el-select>
  26. </el-form-item>
  27. <el-form-item label="公司名称">
  28. <el-input size="mini" v-model="searchForm.SupplierName" placeholder="请输入" style="width: 100%"></el-input>
  29. </el-form-item>
  30. <el-form-item>
  31. <el-button size="mini" type="primary" @click="handleSearch">查 询</el-button>
  32. </el-form-item>
  33. </el-form>
  34. </div>
  35. <el-tabs v-model="activeName" type="border-card" @tab-click="handleClick">
  36. <el-tab-pane label="待办任务" name="first">
  37. <el-table
  38. :data="entityListtode"
  39. size="mini"
  40. border
  41. :stripe="true"
  42. style="width: 100%">
  43. <!--<el-table-column type="index" label="序号"></el-table-column>-->
  44. <el-table-column label="待办类型" prop="Type" align="center">
  45. <template slot-scope="scope">
  46. <span v-if="scope.row.Type=='1'" style="color:#E6A23C">准入-{{statusStr(scope.row.Status, scope.row.Type)}}</span>
  47. <span v-if="scope.row.Type=='2'" style="color:#E6A23C">增项-{{statusStr(scope.row.Status, scope.row.Type)}}</span>
  48. <span v-if="scope.row.Type=='3'" style="color:#E6A23C">年审-{{statusStr(scope.row.Status, scope.row.Type)}}</span>
  49. <span v-if="scope.row.Type=='4'" style="color:#E6A23C">信息变更-{{statusStr(scope.row.Status, scope.row.Type)}}</span>
  50. <span v-if="scope.row.Type=='5'" style="color:#E6A23C">资质变更-{{statusStr(scope.row.Status, scope.row.Type)}}</span>
  51. <span v-if="scope.row.Type=='6'" style="color:#E6A23C">企业注册-待审批</span>
  52. </template>
  53. </el-table-column>
  54. <!--<el-table-column label="当前状态" prop="Status" align="center">-->
  55. <!--&lt;!&ndash;<template slot-scope="scope">&ndash;&gt;-->
  56. <!--&lt;!&ndash;{{statusStr(scope.row.Status, scope.row.Type)}}&ndash;&gt;-->
  57. <!--&lt;!&ndash;</template>&ndash;&gt;-->
  58. <!--</el-table-column>-->
  59. <el-table-column label="类别" prop="SupplierTypeCode" align="center">
  60. <template slot-scope="scope">
  61. <span v-if="scope.row.SupplierTypeCode=='01'">物资类</span>
  62. <span v-if="scope.row.SupplierTypeCode=='02'">基建类</span>
  63. <span v-if="scope.row.SupplierTypeCode=='03'">技术服务类</span>
  64. </template>
  65. </el-table-column>
  66. <el-table-column label="公司名称" prop="SupplierName" align="center"></el-table-column>
  67. <el-table-column label="执行人" prop="UserName" align="center"></el-table-column>
  68. <!--<el-table-column label="提交" prop="CreateTime">-->
  69. <!--<template slot-scope="scope">-->
  70. <!--{{ jstimehandle(timestampToTime(scope.row.CreateTime)) }}-->
  71. <!--</template>-->
  72. <!--</el-table-column>-->
  73. <el-table-column label="操作" width="130" align="center" fixed="right">
  74. <template slot-scope="scope">
  75. <el-button type="text" title="办理" icon="el-icon-edit" size="mini" @click="rowClick(scope.row)">办理</el-button>
  76. <!--<el-button type="text" title="编辑" icon="el-icon-s-promotion" size="mini">跟踪</el-button>-->
  77. </template>
  78. </el-table-column>
  79. </el-table>
  80. </el-tab-pane>
  81. <el-tab-pane label="已办任务" name="second">
  82. <el-table
  83. :data="entityListdone"
  84. size="mini"
  85. border
  86. :stripe="true"
  87. style="width: 100%">
  88. <el-table-column label="已办类型" prop="Type">
  89. <template slot-scope="scope">
  90. <span v-if="scope.row.Type=='1'" style="color:#E6A23C">准入-{{statusStr(scope.row.Status, scope.row.Type)}}</span>
  91. <span v-if="scope.row.Type=='2'" style="color:#E6A23C">增项-{{statusStr(scope.row.Status, scope.row.Type)}}</span>
  92. <span v-if="scope.row.Type=='3'" style="color:#E6A23C">年审-{{statusStr(scope.row.Status, scope.row.Type)}}</span>
  93. <span v-if="scope.row.Type=='4'" style="color:#E6A23C">信息变更-{{statusStr(scope.row.Status, scope.row.Type)}}</span>
  94. <span v-if="scope.row.Type=='5'" style="color:#E6A23C">资质变更-{{statusStr(scope.row.Status, scope.row.Type)}}</span>
  95. <span v-if="scope.row.Type=='6'" style="color:#E6A23C">企业注册-{{statusStr(scope.row.Status, scope.row.Type)}}</span>
  96. </template>
  97. </el-table-column>
  98. <el-table-column label="类别" prop="SupplierTypeCode">
  99. <template slot-scope="scope">
  100. <span v-if="scope.row.SupplierTypeCode=='01'">物资类</span>
  101. <span v-if="scope.row.SupplierTypeCode=='02'">基建类</span>
  102. <span v-if="scope.row.SupplierTypeCode=='03'">技术服务类</span>
  103. </template>
  104. </el-table-column>
  105. <el-table-column label="公司名称" prop="SupplierName"></el-table-column>
  106. <el-table-column label="执行人" prop="UserName"></el-table-column>
  107. <!--<el-table-column label="提交" prop="CreateTime">-->
  108. <!--<template slot-scope="scope">-->
  109. <!--{{ jstimehandle(timestampToTime(scope.row.CreateTime)) }}-->
  110. <!--</template>-->
  111. <!--</el-table-column>-->
  112. <el-table-column label="操作" width="130" align="center" fixed="right">
  113. <template slot-scope="scope">
  114. <el-button type="text" title="打开" icon="el-icon-edit" size="mini" @click="rowClick(scope.row)">打开</el-button>
  115. <!--<el-button type="text" title="编辑" icon="el-icon-s-promotion" size="mini">跟踪</el-button>-->
  116. </template>
  117. </el-table-column>
  118. </el-table>
  119. </el-tab-pane>
  120. </el-tabs>
  121. </el-card>
  122. <!-- 公司审核信息 -->
  123. <el-dialog title="企业注册信息" :visible.sync="dialogVisible">
  124. <el-form label-width="135px" ref="formData" :model="formData" size="small">
  125. <el-row>
  126. <el-col :span="24">
  127. <el-form-item label="公司名称" label-width="150px" style="width: 100%" prop="SupplierName">
  128. <el-input v-model="formData.SupplierName" readonly></el-input>
  129. </el-form-item>
  130. </el-col>
  131. <el-col :span="24">
  132. <el-form-item label="统一社会信用代码" label-width="150px" style="width: 100%" prop="CommercialNo">
  133. <el-input v-model="formData.CommercialNo" readonly></el-input>
  134. </el-form-item>
  135. </el-col>
  136. <el-col :span="24">
  137. <el-form-item label="法定代表人姓名" label-width="150px" style="width: 100%" prop="LegalPerson">
  138. <el-input v-model="formData.LegalPerson" readonly></el-input>
  139. </el-form-item>
  140. </el-col>
  141. <el-col :span="24">
  142. <el-form-item label="法定代表人身份证号" label-width="150px" style="width: 100%" prop="LegalPersonId">
  143. <el-input v-model="formData.LegalPersonId" readonly></el-input>
  144. </el-form-item>
  145. </el-col>
  146. <el-col :span="24">
  147. <el-form-item label="法定代表人身份证扫描件" label-width="170px" prop="LegalPersonImg">
  148. <div class="block" style="overflow: auto;">
  149. <template>
  150. <el-row>
  151. <el-col :span="12" v-for="(url, index) in urlList" :key="index">
  152. <span @click="bigImg(url)">
  153. <el-image style="width: 170px; height: 100px; cursor: pointer" :src="url"></el-image>
  154. </span>
  155. </el-col>
  156. </el-row>
  157. </template>
  158. </div>
  159. </el-form-item>
  160. </el-col>
  161. <el-col :span="24">
  162. <el-form-item label="联系人姓名" label-width="150px" style="width: 100%" prop="ContactName">
  163. <el-input v-model="formData.ContactName" readonly></el-input>
  164. </el-form-item>
  165. </el-col>
  166. <el-col :span="24">
  167. <el-form-item label="联系人身份证号" label-width="150px" style="width: 100%" prop="ContactId">
  168. <el-input v-model="formData.ContactId" readonly></el-input>
  169. </el-form-item>
  170. </el-col>
  171. <el-col :span="24">
  172. <el-form-item label="联系人身份证扫描件" label-width="170px" prop="ContactImg">
  173. <div class="block" style="overflow: auto;">
  174. <template>
  175. <el-row>
  176. <el-col :span="12" v-for="(url, index) in urlList2" :key="index">
  177. <span @click="bigImg(url)">
  178. <el-image style="width: 170px; height: 100px; cursor: pointer" :src="url"></el-image>
  179. </span>
  180. </el-col>
  181. </el-row>
  182. </template>
  183. </div>
  184. </el-form-item>
  185. </el-col>
  186. </el-row>
  187. <el-row>
  188. <el-col :span="12">
  189. <el-form-item label="邮箱" label-width="150px" style="width: 100%" prop="EMail">
  190. <el-input v-model="formData.EMail" readonly></el-input>
  191. </el-form-item>
  192. </el-col>
  193. <el-col :span="12">
  194. <el-form-item label="手机号" style="width: 100%" prop="UserTelephone">
  195. <el-input v-model="formData.UserTelephone" readonly></el-input>
  196. </el-form-item>
  197. </el-col>
  198. <el-col :span="12">
  199. <el-form-item label="用户名" label-width="150px" style="width: 100%" prop="UserName">
  200. <el-input v-model="formData.UserName" readonly></el-input>
  201. </el-form-item>
  202. </el-col>
  203. </el-row>
  204. <!--<el-row style="margin-left: 35%; margin-top: 10px; margin-bottom: 20px;">-->
  205. <!--<el-button size="mini" @click="cancelOption" v-if="formData.CheckStatus==0">审核未通过</el-button>-->
  206. <!--<el-button size="mini" type="primary" @click="ensureOption" style="margin-left: 20%;" v-if="formData.CheckStatus==0">审核通过</el-button>-->
  207. <!--</el-row>-->
  208. </el-form>
  209. <div slot="footer" class="dialog-footer" style="margin-top: -25px">
  210. <el-button type="primary" size="mini" @click="ComAudit" v-if="formData.CheckStatus == 0">审核</el-button>
  211. </div>
  212. </el-dialog>
  213. <el-dialog title="审核" :visible.sync="Auditshow">
  214. <el-form :model="shenheForm" label-width="100px" ref="shenheForm">
  215. <el-form-item label="审核状态">
  216. <template>
  217. <el-radio class="radio" v-model="shenheForm.SuccessStatus" :label="1">通过</el-radio>
  218. <el-radio class="radio" v-model="shenheForm.SuccessStatus" :label="2">未通过</el-radio>
  219. </template>
  220. </el-form-item>
  221. <el-form-item label="意见" :rules="[{ required: true, message: '请输入审批意见', trigger: 'blur' }]">
  222. <el-input type="textarea" v-model="shenheForm.AuditorRemark" placeholder="请输入审核说明"></el-input>
  223. </el-form-item>
  224. </el-form>
  225. <div slot="footer" class="dialog-footer" style="margin-top: -25px">
  226. <el-button size="small" @click="Auditshow = false">取 消</el-button>
  227. <el-button type="primary" size="small" @click="makeSure()">确 定</el-button>
  228. </div>
  229. </el-dialog>
  230. <!--点击图片放大区域-->
  231. <el-dialog
  232. title="法定代表人身份证扫描件"
  233. :visible.sync="legalPersonImgVisible"
  234. width="40%">
  235. <el-image :src="bigUrl"></el-image>
  236. </el-dialog>
  237. </div>
  238. </template>
  239. <script>
  240. import api from '@/api/oilsupplier/supplier'
  241. import {
  242. mapGetters
  243. } from 'vuex'
  244. export default {
  245. name: 'index',
  246. computed: mapGetters({
  247. authUser: 'authUser'
  248. }),
  249. data () {
  250. return {
  251. urlList: [], // 照片地址数组
  252. urlList2: [], // 照片地址数组2
  253. bigUrl: '',
  254. Auditshow: false,
  255. dialogVisible: false,
  256. legalPersonImgVisible: false,
  257. tabindex: '',
  258. activeName: 'first',
  259. currentDate: new Date(),
  260. // 查询时间
  261. CreateOn: [],
  262. // 分页参数
  263. size: 10,
  264. currentPage: 1,
  265. currentItemCount: 0,
  266. shenheForm: {
  267. SuccessStatus: 1,
  268. AuditorRemark: ''
  269. },
  270. // 列表排序
  271. Column: {
  272. Order: '',
  273. Prop: ''
  274. },
  275. // 查询项
  276. searchForm: {
  277. Id: '',
  278. Type: '',
  279. SupplierTypeCode: '',
  280. SupplierName: '',
  281. IsPay: '1',
  282. CreateOn: '',
  283. CreateUserId: '',
  284. CreateBy: '',
  285. ModifiedOn: '',
  286. ModifiedUserId: '',
  287. ModifiedBy: ''
  288. },
  289. formData: {
  290. Id: '', // int
  291. UserId: '', // int
  292. UserName: '', // 账号/Email
  293. UserRealName: '', // 用户真实姓名
  294. UserTelephone: '', // 用户手机号
  295. UserPass: '',
  296. UserPass2: '',
  297. SupplierName: '',
  298. OilCertificateNo: '',
  299. Grade: '',
  300. MgrUnit: '',
  301. OperType: '',
  302. Country: '',
  303. CommercialNo: '',
  304. OrganCode: '',
  305. CountryTaxNo: '',
  306. LocalTaxNo: '',
  307. Address: '',
  308. DetailAddress: '',
  309. Province: '',
  310. City: '',
  311. Street: '',
  312. HouseNo: '',
  313. ZipCode: '',
  314. BusinessScope: '',
  315. LegalPerson: '',
  316. LegalPersonId: '',
  317. LegalPersonURL: '',
  318. CategoryCode: '',
  319. CategoryName: '',
  320. RegCapital: 0, //float32
  321. Currency: '',
  322. ContactName: '',
  323. ContactId: '',
  324. ContactURL: '',
  325. CompanyType: '',
  326. SetupTime: '', //time
  327. DepositBank: '',
  328. BankAccount: '',
  329. EMail: '',
  330. BankCreditRating: '',
  331. Mobile: '',
  332. Telphone: '',
  333. Fax: '',
  334. CompanyTel: '',
  335. QQ: '',
  336. CompanyUrl: '',
  337. Remark: '',
  338. CheckStatus: 0, // 二级单位审核状态,0:未通过,1:通过 默认0
  339. IsDelete: 0, // 删除状态,0正常,1已删除
  340. LinkAddress: '',
  341. LinkProvince: '',
  342. LinkCity: '',
  343. LinkStreet: '',
  344. LinkHouseNo: '',
  345. LinkZipCode: '',
  346. HseTraining: ''
  347. },
  348. entityListtode: [],
  349. entityListdone: []
  350. }
  351. },
  352. created () {
  353. if(this.authUser.Profile.IsCompanyUser==1){
  354. this.$router.push('/oilsupplier/supplier') //跳转到登录页
  355. }
  356. this.initDatas()
  357. },
  358. methods: {
  359. initDatas () {
  360. // 分页及列表条件
  361. let params = {
  362. _currentPage: this.currentPage,
  363. _size: this.size,
  364. Order: this.Column.Order,
  365. Prop: this.Column.Prop,
  366. Statustype: 2
  367. }
  368. let myCreateOn = []
  369. // 解析时间
  370. if (this.CreateOn.length === 2) {
  371. this.CreateOn[1].setHours(23)
  372. this.CreateOn[1].setMinutes(59)
  373. this.CreateOn[1].setSeconds(59)
  374. myCreateOn.push(this.formatDateTime(this.CreateOn[0]))
  375. myCreateOn.push(this.formatDateTime(this.CreateOn[1]))
  376. }
  377. // 查询条件
  378. Object.assign(params, this.searchForm)
  379. // 访问接口
  380. api.getTodoList(params, this.$axios).then(res => {
  381. this.entityListtode = res.data.items
  382. this.currentItemCount = res.data.currentItemCount
  383. }).catch(err => {
  384. console.error(err)
  385. })
  386. },
  387. handleSearch () {
  388. this.currentPage = 1
  389. if (this.tabindex === '0') {
  390. this.initDatas()
  391. } else {
  392. this.finishedData()
  393. }
  394. this.initDatas()
  395. },
  396. handleClick (tab) {
  397. this.tabindex = tab.index
  398. if (tab.index === '0') {
  399. this.initDatas()
  400. } else {
  401. this.finishedData()
  402. }
  403. },
  404. rowClick (val) {
  405. let SupplierType = ''
  406. if (val.Type === '1') {
  407. if (val.SupplierTypeCode === '01') {
  408. SupplierType = 'goodsedit'
  409. } else if (val.SupplierTypeCode === '02') {
  410. SupplierType = 'basisedit'
  411. } else {
  412. SupplierType = 'techedit'
  413. }
  414. this.$router.push('oilsupplier/supplieraudit/' + val.Id + '/' + SupplierType + '?certid=' + val.CertId)
  415. } else if (val.Type === '2') {
  416. if (val.SupplierTypeCode === '01') {
  417. SupplierType = 'goodsdataopera'
  418. } else if (val.SupplierTypeCode === '02') {
  419. SupplierType = 'basisdataopera'
  420. } else {
  421. SupplierType = 'techdataopera'
  422. }
  423. this.$router.push('oilsupplier/addtionaudit/' + val.Id + '/' + SupplierType)
  424. } else if (val.Type === '3') {
  425. this.$router.push('oilsupplier/annualaudit/' + val.SupplierId + '/auditoperation?certid=' + val.CertId + '&WorkflowId=' + val.WorkflowId + '&AnnualStatus=' + val.Status + '&annualId=' + val.Id + '&Step=' + val.Step)
  426. // /oilsupplier/annualaudit/' + scope.row.SupplierId + '/auditoperation?certid=' + scope.row.CerId +'&WorkflowId='+scope.row.WorkflowId+'&AnnualStatus='+scope.row.Status+'&annualId='+scope.row.Id+'&Step='+scope.row.Step
  427. } else if (val.Type === '4') {
  428. this.$router.push('/oilsupplier/infochangech/' + val.Id + '/auditoperation?InfoStatus='+ val.Status+'&SupId='+val.SupplierId)
  429. } else if (val.Type === '5') {
  430. this.$router.push('oilsupplier/qualchange/' + val.SupplierId + '/auditoperation?certid=' + val.CertId + '&QualId=' + val.Id + '&QualStatus=' + val.Status)
  431. } else if (val.Type === '6') {
  432. this.initDataregister(val.Id)
  433. }
  434. },
  435. bigImg (url) {
  436. this.bigUrl = url
  437. this.legalPersonImgVisible = true
  438. },
  439. initDataregister (Id) {
  440. let _this = this
  441. const params = {
  442. _currentPage: _this.currentPage,
  443. _size: _this.size,
  444. Name: _this.searchForm.SupplierName
  445. }
  446. this.$axios.get("/register/get/" + Id)
  447. .then(function (response) {
  448. _this.formData = response.data
  449. _this.dialogVisible = true
  450. // 处理URL
  451. _this.urlList = []
  452. let urlArr = _this.formData.LegalPersonURL.split('&')
  453. if (urlArr) {
  454. for (let i = 0; i < urlArr.length; i++) {
  455. let tempURL = urlArr[i].split('|')
  456. if (tempURL[0].indexOf('/upfile') === 0) {
  457. const myDomain = window.location.host
  458. _this.urlList.push('http://' + myDomain + tempURL[0])
  459. } else {
  460. _this.urlList.push('http://' + tempURL[0])
  461. }
  462. }
  463. }
  464. _this.urlList2 = []
  465. let urlArr2 = _this.formData.ContactURL.split('&')
  466. if (urlArr2) {
  467. for (let i = 0; i < urlArr2.length; i++) {
  468. let tempURL = urlArr2[i].split('|')
  469. if (tempURL[0].indexOf('/upfile') === 0) {
  470. const myDomain = window.location.host
  471. _this.urlList2.push('http://' + myDomain + tempURL[0])
  472. } else {
  473. _this.urlList2.push('http://' + tempURL[0])
  474. }
  475. }
  476. }
  477. })
  478. .catch(function (error) {
  479. console.log(error)
  480. })
  481. },
  482. ComAudit () {
  483. this.Auditshow = true
  484. },
  485. // 审核
  486. makeSure () {
  487. if (this.shenheForm.AuditorRemark.trim().length < 1) {
  488. this.$message({
  489. type: 'warning',
  490. message: '请填写审批意见!'
  491. })
  492. return
  493. }
  494. this.checkstatus()
  495. },
  496. // 审核未通过
  497. checkstatus () {
  498. let _this = this
  499. const params = _this.shenheForm
  500. _this.$axios.post('/register/comaudit/', _this.formData, {params})
  501. .then(res => {
  502. if (res.data.code === 0) {
  503. _this.$message({
  504. type: 'success',
  505. message: res.data.message,
  506. })
  507. // 关闭dialog
  508. _this.Auditshow = false
  509. _this.dialogVisible = false
  510. // 更新列表
  511. _this.initDatas()
  512. } else {
  513. _this.$message({
  514. type: 'warning',
  515. message: res.data.message
  516. })
  517. }
  518. })
  519. .catch(err => {
  520. console.error(err)
  521. })
  522. },
  523. ensureOption() {
  524. let _this = this
  525. _this.$axios.post('/register/adduser/', _this.formData)
  526. .then(res => {
  527. if (res.data.code === 0) {
  528. _this.$message({
  529. type: 'success',
  530. message: res.data.message,
  531. })
  532. // 关闭dialog
  533. _this.dialogVisible = false
  534. // 更新列表
  535. this.initDatas()
  536. } else {
  537. _this.$message({
  538. type: 'warning',
  539. message: res.data.message
  540. })
  541. }
  542. })
  543. .catch(err => {
  544. console.error(err)
  545. })
  546. },
  547. finishedData () {
  548. // 分页及列表条件
  549. let params = {
  550. _currentPage: this.currentPage,
  551. _size: this.size,
  552. Order: this.Column.Order,
  553. Prop: this.Column.Prop,
  554. Statustype: 2
  555. }
  556. let myCreateOn = []
  557. // 解析时间
  558. if (this.CreateOn.length === 2) {
  559. this.CreateOn[1].setHours(23)
  560. this.CreateOn[1].setMinutes(59)
  561. this.CreateOn[1].setSeconds(59)
  562. myCreateOn.push(this.formatDateTime(this.CreateOn[0]))
  563. myCreateOn.push(this.formatDateTime(this.CreateOn[1]))
  564. }
  565. // 查询条件
  566. Object.assign(params, this.searchForm)
  567. api.getMyTaskFinished(params, this.$axios).then(res => {
  568. this.entityListdone = res.data.items
  569. this.currentItemCount = res.data.currentItemCount
  570. }).catch(err => {
  571. console.error(err)
  572. })
  573. },
  574. statusStr (val, type) {
  575. switch (val) {
  576. case 1:
  577. return '审核通过'
  578. case 2:
  579. return '审核未通过'
  580. case '':
  581. return '待提交'
  582. case '0':
  583. return '待提交'
  584. case '1':
  585. if (type == '6') {
  586. return '审核通过'
  587. } else {
  588. return '待初审'
  589. }
  590. case '-1':
  591. return '初审未通过'
  592. case '2':
  593. if (type == '6') {
  594. return '审核未通过'
  595. } else {
  596. return '待复审'
  597. }
  598. case '-2':
  599. return '复审未通过'
  600. case '3':
  601. return '待专业处室分办'
  602. case '4':
  603. return '待专业处室审批'
  604. case '-4':
  605. return '专业处室审批未通过'
  606. case '5':
  607. if (type == '4' || type == '5') {
  608. return '待企业法规处审批'
  609. } else {
  610. return '待集中评审'
  611. }
  612. case '-5':
  613. if (type == '4' || type == '5') {
  614. return '企业法规处审批未通过'
  615. } else {
  616. return '集中评审未通过'
  617. }
  618. case '6':
  619. return '待缴费'
  620. case '7':
  621. return '待入库'
  622. case '8':
  623. return '已入库'
  624. case '9':
  625. return '未通过'
  626. case '10':
  627. return '分办'
  628. default:
  629. return val
  630. }
  631. },
  632. timestampToTime (val) {
  633. var date = new Date(val) // 时间戳为10位需*1000,时间戳为13位的话不需乘1000
  634. var Y = date.getFullYear() + '-'
  635. var M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-'
  636. var D = date.getDate() + ' '
  637. var h = date.getHours() + ':'
  638. var m = date.getMinutes() + ':'
  639. var s = date.getSeconds()
  640. return Y + M + D + h + m + s
  641. },
  642. jstimehandle (val) {
  643. if (val === '') {
  644. return '----'
  645. } else if (val === '0001-01-01T08:00:00+08:00') {
  646. return '----'
  647. } else if (val === '5000-01-01T23:59:59+08:00') {
  648. return '永久'
  649. } else if (val === '1970-01-01 8:0:0') {
  650. return '----'
  651. } else if (val === '1970-01-1 8:0:0') {
  652. return '----'
  653. } else {
  654. val = val.replace('T', ' ')
  655. return val.substring(0, 19)
  656. }
  657. },
  658. handleCurrentChange (value) {
  659. this.currentPage = value
  660. this.initData()
  661. },
  662. handleSizeChange (value) {
  663. this.size = value
  664. this.currentPage = 1
  665. this.initData()
  666. }
  667. }
  668. }
  669. </script>