index.vue 48 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211
  1. <template>
  2. <div style="overflow-y: auto">
  3. <el-card class="box-card">
  4. <span>
  5. <i class="icon icon-table2"></i> 待办/已办
  6. </span>
  7. <el-form ref="form" :inline="true" style="float: right;">
  8. <el-form-item label="提交时间">
  9. <el-date-picker size="mini" style="width: 220px" v-model="CreateOn" type="daterange" range-separator="至"
  10. start-placeholder="提交日期" end-placeholder="提交日期"></el-date-picker>
  11. </el-form-item>
  12. <el-form-item label="类型">
  13. <el-select size="mini" style="width:100px" v-model="searchForm.Type" placeholder="准入类别">
  14. <el-option label="全部" value=""></el-option>
  15. <el-option label="准入" value="1"></el-option>
  16. <el-option label="增项" value="2"></el-option>
  17. <el-option label="年审" value="3"></el-option>
  18. <el-option label="信息变更" value="4"></el-option>
  19. <el-option label="注册审核" value="5"></el-option>
  20. <el-option label="待入库" value="7"></el-option>
  21. <el-option label="收入业务" value="9"></el-option>
  22. </el-select>
  23. </el-form-item>
  24. <el-form-item label="类别">
  25. <el-select size="mini" style="width:100px" v-model="searchForm.SupplierTypeCode" placeholder="准入类别">
  26. <el-option label="全部" value=""></el-option>
  27. <el-option label="物资类" value="01"></el-option>
  28. <el-option label="基建类" value="02"></el-option>
  29. <el-option label="服务类" value="03"></el-option>
  30. </el-select>
  31. </el-form-item>
  32. <el-form-item label="公司名称">
  33. <el-input size="mini" v-model="searchForm.SupplierName" placeholder="请输入" style="width: 100%"></el-input>
  34. </el-form-item>
  35. <el-form-item>
  36. <el-button size="mini" type="primary" @click="handleSearch">查 询</el-button>
  37. </el-form-item>
  38. </el-form>
  39. </el-card>
  40. <el-tabs v-model="activeName" type="border-card" @tab-click="handleClick">
  41. <el-tab-pane name="first">
  42. <span slot="label">待办任务</span>
  43. <el-table
  44. :data="entityListtode"
  45. size="mini"
  46. border
  47. :stripe="true"
  48. style="width: 100%"
  49. highlight-current-row v-loading="loading">
  50. <!--<el-table-column type="index" label="序号"></el-table-column>-->
  51. <el-table-column label="待办类型" prop="Type" align="center">
  52. <template slot-scope="scope">
  53. <span v-if="scope.row.Type=='1'" style="color:#E6A23C">准入-{{scope.row.TaskName}}</span>
  54. <span v-if="scope.row.Type=='2'" style="color:#E6A23C">增项-{{scope.row.TaskName}}</span>
  55. <span v-if="scope.row.Type=='3'" style="color:#E6A23C">年审-{{scope.row.TaskName}}</span>
  56. <span v-if="scope.row.Type=='4'" style="color:#E6A23C">信息变更-{{scope.row.TaskName}}</span>
  57. <span v-if="scope.row.Type=='5'" style="color:#E6A23C">企业注册-待审批</span>
  58. <!-- <span v-if="scope.row.Type=='7'" style="color:#E6A23C">准入-{{scope.row.TaskName}}</span> -->
  59. <span v-if="scope.row.Type=='8'" style="color:#E6A23C">发票</span>
  60. <span v-if="scope.row.Type=='9'" style="color:#E6A23C">目录申请-{{scope.row.TaskName}}</span>
  61. <span v-if="scope.row.Type=='10'" style="color:#E6A23C">合同日常评审</span>
  62. <span v-if="scope.row.Type=='11'" style="color:#E6A23C">合同年度评审</span>
  63. </template>
  64. </el-table-column>
  65. <!--<el-table-column label="当前状态" prop="Status" align="center">-->
  66. <!--&lt;!&ndash;<template slot-scope="scope">&ndash;&gt;-->
  67. <!--&lt;!&ndash;{{statusStr(scope.row.Status, scope.row.Type)}}&ndash;&gt;-->
  68. <!--&lt;!&ndash;</template>&ndash;&gt;-->
  69. <!--</el-table-column>-->
  70. <el-table-column label="类别" prop="SupplierTypeCode" align="center">
  71. <!-- <template slot-scope="scope" v-if="scope.row.Type=='10'">
  72. <span v-if="scope.row.SupplierTypeCode=='01'">供应商</span>
  73. <span v-if="scope.row.SupplierTypeCode=='02'">承包商</span>
  74. <span v-if="scope.row.SupplierTypeCode=='03'">服务商</span>
  75. </template> -->
  76. <template slot-scope="scope" >
  77. <span v-if="scope.row.SupplierTypeCode=='01' && scope.row.Type!='10'&&scope.row.Type!='11'">物资类</span>
  78. <span v-if="scope.row.SupplierTypeCode=='02' && scope.row.Type!='10'&&scope.row.Type!='11'">基建类</span>
  79. <span v-if="scope.row.SupplierTypeCode=='03' && scope.row.Type!='10'&&scope.row.Type!='11'">服务类</span>
  80. <span v-if="scope.row.SupplierTypeCode=='4'">信息变更</span>
  81. <span v-if="scope.row.SupplierTypeCode=='5'">企业注册</span>
  82. <span v-if="scope.row.SupplierTypeCode=='8'">待开发票</span>
  83. <span v-if="scope.row.SupplierTypeCode=='9-6'">外部市场</span>
  84. <span v-if="scope.row.SupplierTypeCode=='9-7'">收入业务</span>
  85. <span v-if="scope.row.SupplierTypeCode=='01' && (scope.row.Type=='10'||scope.row.Type=='11')">供应商</span>
  86. <span v-if="scope.row.SupplierTypeCode=='02' && (scope.row.Type=='10'||scope.row.Type=='11')">承包商</span>
  87. <span v-if="scope.row.SupplierTypeCode=='03' && (scope.row.Type=='10'||scope.row.Type=='11')">服务商</span>
  88. </template>
  89. </el-table-column>
  90. <el-table-column label="公司名称" prop="SupplierName" align="center"></el-table-column>
  91. <el-table-column label="执行人" prop="UserName" align="center"></el-table-column>
  92. <el-table-column label="提交时间" prop="CreateTime" align="center">
  93. <template slot-scope="scope">
  94. {{ jstimehandle(timestampToTime(scope.row.CreateTime)) }}
  95. </template>
  96. </el-table-column>
  97. <el-table-column label="当前状态" prop="Status" align="center">
  98. <template slot-scope="scope">
  99. <span>{{statusStr(scope.row.Status, scope.row.Type)}}</span>
  100. </template>
  101. </el-table-column>
  102. <el-table-column label="操作" width="130" align="center" fixed="right">
  103. <template slot-scope="scope">
  104. <el-button type="text" title="办理" icon="el-icon-edit" size="mini" @click="rowClick(scope.row)">办理</el-button>
  105. <!--<el-button type="text" title="编辑" icon="el-icon-s-promotion" size="mini">跟踪</el-button>-->
  106. </template>
  107. </el-table-column>
  108. </el-table>
  109. <el-pagination @size-change="handleSizeChange"
  110. @current-change="handleCurrentChange"
  111. :current-page="currentPage"
  112. :page-sizes="[10, 15, 20, 25]"
  113. :page-size="size"
  114. layout="total, sizes, prev, pager, next, jumper"
  115. :total="currentItemCount">
  116. </el-pagination>
  117. </el-tab-pane>
  118. <el-tab-pane label="已办任务" name="second">
  119. <el-table
  120. :data="entityListdone"
  121. size="mini"
  122. border
  123. :stripe="true"
  124. style="width: 100%"
  125. highlight-current-row v-loading="loading">
  126. <el-table-column label="已办类型" prop="Type" align="center">
  127. <template slot-scope="scope">
  128. <span v-if="scope.row.Type=='1'" style="color:#E6A23C">准入-{{scope.row.TaskName}}</span>
  129. <span v-if="scope.row.Type=='2'" style="color:#E6A23C">增项-{{scope.row.TaskName}}</span>
  130. <span v-if="scope.row.Type=='3'" style="color:#E6A23C">年审-{{scope.row.TaskName}}</span>
  131. <span v-if="scope.row.Type=='4'" style="color:#E6A23C">信息变更-{{scope.row.TaskName}}</span>
  132. <span v-if="scope.row.Type=='5'" style="color:#E6A23C">企业注册-待审批</span>
  133. <span v-if="scope.row.Type=='8'" style="color:#E6A23C">发票</span>
  134. <span v-if="scope.row.Type=='9'" style="color:#E6A23C">目录申请-{{scope.row.TaskName}}</span>
  135. <span v-if="scope.row.Type=='10'" style="color:#E6A23C">合同日常评审</span>
  136. <span v-if="scope.row.Type=='11'" style="color:#E6A23C">合同年度评审</span>
  137. </template>
  138. </el-table-column>
  139. <el-table-column label="类别" prop="SupplierTypeCode" align="center">
  140. <template slot-scope="scope">
  141. <span v-if="scope.row.SupplierTypeCode=='01' && scope.row.Type!='10'&&scope.row.Type!='11'">物资类</span>
  142. <span v-if="scope.row.SupplierTypeCode=='02' && scope.row.Type!='10'&&scope.row.Type!='11'">基建类</span>
  143. <span v-if="scope.row.SupplierTypeCode=='03' && scope.row.Type!='10'&&scope.row.Type!='11'">服务类</span>
  144. <span v-if="scope.row.SupplierTypeCode=='4'">信息变更</span>
  145. <span v-if="scope.row.SupplierTypeCode=='5'">企业注册</span>
  146. <span v-if="scope.row.SupplierTypeCode=='8'">待开发票</span>
  147. <span v-if="scope.row.SupplierTypeCode=='9-6'">外部市场</span>
  148. <span v-if="scope.row.SupplierTypeCode=='9-7'">收入业务</span>
  149. <span v-if="scope.row.SupplierTypeCode=='01' && (scope.row.Type=='10'||scope.row.Type=='11')">供应商</span>
  150. <span v-if="scope.row.SupplierTypeCode=='02' && (scope.row.Type=='10'||scope.row.Type=='11')">承包商</span>
  151. <span v-if="scope.row.SupplierTypeCode=='03' && (scope.row.Type=='10'||scope.row.Type=='11')">服务商</span>
  152. </template>
  153. </el-table-column>
  154. <el-table-column label="公司名称" prop="SupplierName" align="center"></el-table-column>
  155. <el-table-column label="执行人" prop="UserName" align="center"></el-table-column>
  156. <el-table-column label="完成时间" prop="CreateTime" align="center">
  157. <template slot-scope="scope">
  158. {{ jstimehandle(timestampToTime(scope.row.CreateTime)) }}
  159. </template>
  160. </el-table-column>
  161. <el-table-column label="当前状态" prop="Status" align="center">
  162. <template slot-scope="scope">
  163. <span>{{statusStr(scope.row.Status, scope.row.Type)}}</span>
  164. </template>
  165. </el-table-column>
  166. <el-table-column label="操作" width="130" align="center" fixed="right">
  167. <template slot-scope="scope">
  168. <el-button type="text" title="打开" icon="el-icon-edit" size="mini" @click="rowFinishedClick(scope.row)">打开</el-button>
  169. <!--<el-button type="text" title="编辑" icon="el-icon-s-promotion" size="mini">跟踪</el-button>-->
  170. </template>
  171. </el-table-column>
  172. </el-table>
  173. <el-pagination @size-change="handleSizeChangeFinished"
  174. @current-change="handleCurrentChangeFinished"
  175. :current-page="currentPageFinished"
  176. :page-sizes="[10, 15, 20, 25]"
  177. :page-size="sizeFinished"
  178. layout="total, sizes, prev, pager, next, jumper"
  179. :total="currentItemCountFinished">
  180. </el-pagination>
  181. </el-tab-pane>
  182. </el-tabs>
  183. <!-- 公司审核信息 -->
  184. <el-dialog title="企业注册信息" :visible.sync="dialogVisible">
  185. <el-form label-width="135px" ref="formData" :model="formData" size="small">
  186. <el-row>
  187. <el-col :span="24">
  188. <el-form-item label="公司名称" label-width="150px" style="width: 100%" prop="SupplierName">
  189. <el-input v-model="formData.SupplierName" readonly></el-input>
  190. </el-form-item>
  191. </el-col>
  192. <el-col :span="24">
  193. <el-form-item label="统一社会信用代码" label-width="150px" style="width: 100%" prop="CommercialNo">
  194. <el-input v-model="formData.CommercialNo" readonly></el-input>
  195. </el-form-item>
  196. </el-col>
  197. <el-col :span="24">
  198. <el-form-item label="有效证件类型" label-width="150px" style="width: 100%;">
  199. <el-select v-model="formData.CardNoType1" disabled placeholder="请选择有效证件类型" label-width="150px" style="width: 100%">
  200. <el-option :key=0 label="身份证" :value=0 ></el-option>
  201. <el-option :key=1 label="护照" :value=1 ></el-option>
  202. </el-select>
  203. </el-form-item>
  204. </el-col>
  205. <el-col :span="24">
  206. <el-form-item v-if="formData.CardNoType1" label="联系人护照编号" label-width="150px" style="width: 100%" prop="LegalPersonId">
  207. <el-input v-model="formData.LegalPersonId" readonly></el-input>
  208. </el-form-item>
  209. <el-form-item v-else label="法定代表人身份证号" label-width="150px" style="width: 100%" prop="LegalPersonId">
  210. <el-input v-model="formData.LegalPersonId" readonly></el-input>
  211. </el-form-item>
  212. </el-col>
  213. <el-col :span="24">
  214. <el-form-item label="有效证件扫描件"
  215. label-width="170px"
  216. prop="LegalPersonImg">
  217. <div class="block"
  218. style="overflow: auto;">
  219. <template>
  220. <el-row>
  221. <el-col :span="12"
  222. v-for="(url, index) in urlList"
  223. :key="index">
  224. <span @click="bigImg(url)">
  225. <el-image style="width: 170px; height: 100px; cursor: pointer"
  226. :src="url"></el-image>
  227. </span>
  228. </el-col>
  229. </el-row>
  230. </template>
  231. </div>
  232. </el-form-item>
  233. </el-col>
  234. <el-col :span="24">
  235. <el-form-item label="联系人姓名" label-width="150px" style="width: 100%" prop="ContactName">
  236. <el-input v-model="formData.ContactName" readonly></el-input>
  237. </el-form-item>
  238. </el-col>
  239. <el-col :span="24">
  240. <el-form-item label="有效证件类型" label-width="150px" style="width: 100%;">
  241. <el-select v-model="formData.CardNoType2" disabled placeholder="请选择有效证件类型" label-width="150px" style="width: 100%">
  242. <el-option :key=0 label="身份证" :value=0 ></el-option>
  243. <el-option :key=1 label="护照" :value=1 ></el-option>
  244. </el-select>
  245. </el-form-item>
  246. </el-col>
  247. <el-col :span="24">
  248. <el-form-item v-if="formData.CardNoType2" label="联系人护照编号" label-width="150px" style="width: 100%" prop="ContactId">
  249. <el-input v-model="formData.ContactId" readonly></el-input>
  250. </el-form-item>
  251. <el-form-item v-else label="联系人身份证号" label-width="150px" style="width: 100%" prop="ContactId">
  252. <el-input v-model="formData.ContactId" readonly></el-input>
  253. </el-form-item>
  254. </el-col>
  255. <el-col :span="24">
  256. <el-form-item label="有效证件扫描件" label-width="170px" prop="ContactImg">
  257. <div class="block" style="overflow: auto;">
  258. <template>
  259. <el-row>
  260. <el-col :span="12" v-for="(url, index) in urlList2" :key="index">
  261. <span @click="bigImg1(url)">
  262. <el-image style="width: 170px; height: 100px; cursor: pointer" :src="url"></el-image>
  263. </span>
  264. </el-col>
  265. </el-row>
  266. </template>
  267. </div>
  268. </el-form-item>
  269. </el-col>
  270. </el-row>
  271. <el-row>
  272. <el-col :span="12">
  273. <el-form-item label="邮箱" label-width="150px" style="width: 100%" prop="EMail">
  274. <el-input v-model="formData.EMail" readonly></el-input>
  275. </el-form-item>
  276. </el-col>
  277. <el-col :span="12">
  278. <el-form-item label="手机号" style="width: 100%" prop="UserTelephone">
  279. <el-input v-model="formData.UserTelephone" readonly></el-input>
  280. </el-form-item>
  281. </el-col>
  282. <el-col :span="12">
  283. <el-form-item label="用户名" label-width="150px" style="width: 100%" prop="UserName">
  284. <el-input v-model="formData.UserName" readonly></el-input>
  285. </el-form-item>
  286. </el-col>
  287. </el-row>
  288. <!--<el-row style="margin-left: 35%; margin-top: 10px; margin-bottom: 20px;">-->
  289. <!--<el-button size="mini" @click="cancelOption" v-if="formData.CheckStatus==0">审核未通过</el-button>-->
  290. <!--<el-button size="mini" type="primary" @click="ensureOption" style="margin-left: 20%;" v-if="formData.CheckStatus==0">审核通过</el-button>-->
  291. <!--</el-row>-->
  292. </el-form>
  293. <div slot="footer" class="dialog-footer" style="margin-top: -25px">
  294. <el-button type="primary" size="mini" @click="ComAudit" v-if="formData.CheckStatus == 0">审核</el-button>
  295. </div>
  296. </el-dialog>
  297. <el-dialog :title="invoicetitle" :visible.sync="invoiceVisible" width="70%">
  298. <el-card class="box-card">
  299. <div slot="header">
  300. <span>
  301. <i class="icon icon-table2"></i> {{this.invoicetitle}}
  302. </span>
  303. <span style="float: right;">
  304. <el-form ref="form" :inline="true" style="margin-top: -10px">
  305. <el-form-item>
  306. <el-button type="primary" size="mini" style="margin-right: 15px" @click="confirmIsInvoice()" v-if="this.formDataInvoice.IsInvoice == '0'" :loading="invoiceLoading">确认</el-button>
  307. </el-form-item>
  308. </el-form>
  309. </span>
  310. </div>
  311. <div class="table-layout" style="margin-top: 0px">
  312. <el-row>
  313. <el-col :span="9" class="table-cell-title">单位名称</el-col>
  314. <el-col :span="10" class="table-cell-title">注册地址</el-col>
  315. <el-col :span="5" class="table-cell-title">税号</el-col>
  316. </el-row>
  317. <el-row>
  318. <el-col :span="9" class="table-cell">{{this.formDataInvoice.SupplierName}}</el-col>
  319. <el-col :span="10" class="table-cell">{{this.formDataInvoice.Address}}</el-col>
  320. <el-col :span="5" class="table-cell">{{this.formDataInvoice.CommercialNo}}</el-col>
  321. </el-row>
  322. <el-row>
  323. <el-col :span="9" class="table-cell-title">开户银行</el-col>
  324. <el-col :span="10" class="table-cell-title">银行账号</el-col>
  325. <el-col :span="5" class="table-cell-title">邮箱</el-col>
  326. </el-row>
  327. <el-row>
  328. <el-col :span="9" class="table-cell">{{this.formDataInvoice.DepositBank}}</el-col>
  329. <el-col :span="10" class="table-cell">{{this.formDataInvoice.BankAccount}}</el-col>
  330. <el-col :span="5" class="table-cell">{{this.formDataInvoice.Email}}</el-col>
  331. </el-row>
  332. </div>
  333. </el-card>
  334. <el-card class="box-card" style="margin-top: 5px"> <!--v-if="entityList && entityList.length > 0"-->
  335. <div slot="header">
  336. <span>
  337. <span style="font-weight: bold;">
  338. 金额合计: <font color="red">{{this.formDataInvoice.Amount}} 元</font>
  339. </span>
  340. </span>
  341. </div>
  342. <el-table :data="paymentinfoList" size="mini" border style="width: 100%">
  343. <!--<el-table-column sortable min-width="120" align="center" show-overflow-tooltip prop="SupplierName" label="企业名称"></el-table-column>-->
  344. <el-table-column sortable min-width="120" align="center" show-overflow-tooltip prop="SupplierTypeName" label="项目类型"></el-table-column>
  345. <el-table-column sortable min-width="120" align="center" show-overflow-tooltip prop="PayType" label="交费类型">
  346. <template slot-scope="scope">
  347. {{ transferStr(scope.row.PayType) }}
  348. </template>
  349. </el-table-column>
  350. <el-table-column sortable min-width="120" align="center" show-overflow-tooltip prop="Amount" label="交费金额">
  351. </el-table-column>
  352. <el-table-column prop="CreateOn" sortable min-width="150" label="交费时间" align="center" show-overflow-tooltip>
  353. <template slot-scope="scope">
  354. {{ jstimehandle(scope.row.PayDate) }}
  355. </template>
  356. </el-table-column>
  357. </el-table>
  358. </el-card>
  359. </el-dialog>
  360. <el-dialog title="审核" :visible.sync="Auditshow">
  361. <el-form :model="shenheForm" label-width="100px" ref="shenheForm">
  362. <el-form-item label="审核状态">
  363. <template>
  364. <el-radio class="radio" v-model="shenheForm.SuccessStatus" :label="1">通过</el-radio>
  365. <el-radio class="radio" v-model="shenheForm.SuccessStatus" :label="2">未通过</el-radio>
  366. </template>
  367. </el-form-item>
  368. <el-form-item label="意见" :rules="[{ required: true, message: '请输入审批意见', trigger: 'blur' }]">
  369. <el-input type="textarea" v-model="shenheForm.AuditorRemark" placeholder="请输入审核意见"></el-input>
  370. </el-form-item>
  371. </el-form>
  372. <div slot="footer" class="dialog-footer" style="margin-top: -25px">
  373. <el-button size="small" @click="Auditshow = false">取 消</el-button>
  374. <el-button type="primary" size="small" @click="makeSure()" :loading="btnLoading">确 定</el-button>
  375. </div>
  376. </el-dialog>
  377. <!--点击图片放大区域-->
  378. <el-dialog
  379. title="法定代表人有效证件扫描件"
  380. :visible.sync="legalPersonImgVisible"
  381. width="40%">
  382. <el-image :src="bigUrl"></el-image>
  383. </el-dialog>
  384. <el-dialog
  385. title="联系人有效证件扫描件"
  386. :visible.sync="legalPersonImg1Visible"
  387. width="40%">
  388. <el-image :src="bigUrl"></el-image>
  389. </el-dialog>
  390. </div>
  391. </template>
  392. <script>
  393. import api from '@/api/oilsupplier/supplier'
  394. import {
  395. mapGetters
  396. } from 'vuex'
  397. export default {
  398. name: 'index',
  399. computed: mapGetters({
  400. authUser: 'authUser'
  401. }),
  402. data () {
  403. return {
  404. urlList: [], // 照片地址数组
  405. urlList2: [], // 照片地址数组2
  406. bigUrl: '',
  407. invoicetitle: '待开发票',
  408. Auditshow: false,
  409. btnLoading: false,
  410. dialogVisible: false,
  411. invoiceVisible: false,
  412. legalPersonImgVisible: false,
  413. legalPersonImg1Visible: false,
  414. tabindex: '',
  415. activeName: 'first',
  416. currentDate: new Date(),
  417. // 查询时间
  418. CreateOn: null,
  419. // 分页参数
  420. size: 10,
  421. currentPage: 1,
  422. currentItemCount: 0,
  423. // finished
  424. // 分页参数
  425. sizeFinished: 10,
  426. currentPageFinished: 1,
  427. currentItemCountFinished: 0,
  428. shenheForm: {
  429. SuccessStatus: 1,
  430. AuditorRemark: ''
  431. },
  432. // 列表排序
  433. Column: {
  434. Order: '',
  435. Prop: ''
  436. },
  437. ColumnFinished: {
  438. Order: '',
  439. Prop: ''
  440. },
  441. // 查询项
  442. searchForm: {
  443. Id: '',
  444. Type: '',
  445. SupplierTypeCode: '',
  446. SupplierName: '',
  447. IsPay: '1',
  448. CreateUserId: '',
  449. CreateBy: '',
  450. ModifiedOn: '',
  451. ModifiedUserId: '',
  452. ModifiedBy: ''
  453. },
  454. formData: {
  455. Id: '', // int
  456. UserId: '', // int
  457. UserName: '', // 账号/Email
  458. UserRealName: '', // 用户真实姓名
  459. UserTelephone: '', // 用户手机号
  460. UserPass: '',
  461. UserPass2: '',
  462. SupplierName: '',
  463. OilCertificateNo: '',
  464. Grade: '',
  465. MgrUnit: '',
  466. OperType: '',
  467. Country: '',
  468. CommercialNo: '',
  469. OrganCode: '',
  470. CountryTaxNo: '',
  471. LocalTaxNo: '',
  472. Address: '',
  473. DetailAddress: '',
  474. Province: '',
  475. City: '',
  476. Street: '',
  477. HouseNo: '',
  478. ZipCode: '',
  479. BusinessScope: '',
  480. LegalPerson: '',
  481. LegalPersonId: '',
  482. LegalPersonURL: '',
  483. CategoryCode: '',
  484. CategoryName: '',
  485. RegCapital: 0, //float32
  486. Currency: '',
  487. ContactName: '',
  488. ContactId: '',
  489. ContactURL: '',
  490. CompanyType: '',
  491. SetupTime: '', //time
  492. DepositBank: '',
  493. BankAccount: '',
  494. EMail: '',
  495. BankCreditRating: '',
  496. Mobile: '',
  497. Telphone: '',
  498. Fax: '',
  499. CompanyTel: '',
  500. QQ: '',
  501. CompanyUrl: '',
  502. Remark: '',
  503. CheckStatus: 0, // 二级单位审核状态,0:未通过,1:通过 默认0
  504. IsDelete: 0, // 删除状态,0正常,1已删除
  505. LinkAddress: '',
  506. LinkProvince: '',
  507. LinkCity: '',
  508. LinkStreet: '',
  509. LinkHouseNo: '',
  510. LinkZipCode: '',
  511. HseTraining: '',
  512. CardNoType1: 0,
  513. CardNoType2: 0
  514. },
  515. formDataInvoice: {
  516. Id: '',
  517. SrcIds: '',
  518. IsInvoice: '',
  519. SupplierName: '',
  520. CommercialNo: '',
  521. Address: '',
  522. DepositBank: '',
  523. BankAccount: '',
  524. Email: '',
  525. Amount: ''
  526. },
  527. paymentinfoList: [],
  528. entityListtode: [],
  529. entityListdone: [],
  530. invoiceLoading: false,
  531. loading: false
  532. }
  533. },
  534. created () {
  535. if (this.authUser.Profile.IsCompanyUser == 1) {
  536. this.$router.push('/oilsupplier/supplier') // 跳转到登录页
  537. }
  538. this.initDatas()
  539. },
  540. methods: {
  541. confirmIsInvoice () {
  542. this.invoiceLoading = true
  543. let params = {
  544. Id: this.formDataInvoice.Id,
  545. SrcIds: this.formDataInvoice.SrcIds
  546. }
  547. api.updateIsInvoice(params, this.$axios).then(res => {
  548. if (res.data.code === 0) {
  549. this.$message({
  550. type: 'success',
  551. message: res.data.message
  552. })
  553. // 关闭dialog
  554. this.invoiceVisible = false
  555. // 更新列表
  556. this.initDatas()
  557. } else {
  558. this.$message({
  559. type: 'warning',
  560. message: res.data.message
  561. })
  562. }
  563. this.invoiceLoading = false
  564. })
  565. },
  566. initDatas () {
  567. this.loading = true
  568. // 分页及列表条件
  569. let myCreateOn = []
  570. // 解析时间
  571. if (this.CreateOn != null && this.CreateOn.length === 2) {
  572. this.CreateOn[1].setHours(23)
  573. this.CreateOn[1].setMinutes(59)
  574. this.CreateOn[1].setSeconds(59)
  575. myCreateOn.push(this.formatDateTime(this.CreateOn[0]))
  576. myCreateOn.push(this.formatDateTime(this.CreateOn[1]))
  577. }
  578. let params = {
  579. _currentPage: this.currentPage,
  580. _size: this.size,
  581. Order: this.Column.Order,
  582. Prop: this.Column.Prop,
  583. CreateOn: myCreateOn.join(',')
  584. }
  585. // 查询条件
  586. Object.assign(params, this.searchForm)
  587. // 访问接口
  588. api.getTodoList(params, this.$axios).then(res => {
  589. this.entityListtode = res.data.items
  590. this.currentItemCount = res.data.currentItemCount
  591. this.loading = false
  592. }).catch(err => {
  593. console.error(err)
  594. })
  595. },
  596. handleSearch () {
  597. this.currentPage = 1
  598. if (this.tabindex === '0') {
  599. this.initDatas()
  600. } else {
  601. this.finishedData()
  602. }
  603. this.initDatas()
  604. },
  605. handleClick (tab) {
  606. this.tabindex = tab.index
  607. if (tab.index === '0') {
  608. this.initDatas()
  609. } else {
  610. this.finishedData()
  611. }
  612. },
  613. rowClick (val) {
  614. // alert(JSON.stringify(val))
  615. // return
  616. console.log('待办-分流路由',val)
  617. let SupplierType = ''
  618. if (val.Type == '1') { // 准入
  619. if (val.Status === '7') {
  620. // 待入库状态时直接跳转单独的入库审批页面,.信息变更入库不需要区分类型, 直接审批。
  621. if (val.SupplierTypeCode === '01') {
  622. SupplierType = 'goodsedit'
  623. } else if (val.SupplierTypeCode === '02') {
  624. SupplierType = 'basisedit'
  625. } else {
  626. SupplierType = 'techedit'
  627. }
  628. this.$router.push('oilsupplier/supplierstorage/' + val.Id + '/' + SupplierType + '?certid=' + val.CertId + '&applytype=' + val.Type)
  629. } else {
  630. // 到详情页面
  631. if (val.SupplierTypeCode === '01') {
  632. SupplierType = 'goodsedit'
  633. } else if (val.SupplierTypeCode === '02') {
  634. SupplierType = 'basisedit'
  635. } else {
  636. SupplierType = 'techedit'
  637. }
  638. // 准入 且审批未通过之后 创建人中的待办按钮
  639. if (Number(val.Status) <= 0) {
  640. this.$router.push('oilsupplier/supplier/' + val.Id + '/' + SupplierType + '?certid=' + val.CertId)
  641. } else {
  642. this.$router.push('oilsupplier/supplieraudit/' + val.Id + '/' + SupplierType + '?certid=' + val.CertId)
  643. }
  644. }
  645. } else if (val.Type == '2') { // 增项
  646. let appendId = ''
  647. if (val.SupplierTypeCode === '01') {
  648. SupplierType = 'goodsdataopera'
  649. appendId = '1'
  650. } else if (val.SupplierTypeCode === '02') {
  651. appendId = '2'
  652. SupplierType = 'basisdataopera'
  653. } else {
  654. appendId = '3'
  655. SupplierType = 'techdataopera'
  656. }
  657. if (Number(val.Status) <= 0) {
  658. this.$router.push('oilsupplier/supplierappend/' + appendId + '/' + SupplierType + '?Id=' + val.Id + '&editFlag=1&sId=' + val.SupplierId)
  659. }
  660. this.$router.push('oilsupplier/addtionaudit/' + val.Id + '/' + SupplierType)
  661. } else if (val.Type == '3') { // 年审
  662. if (val.SupplierTypeCode === '01') {
  663. SupplierType = 'auditoperation'
  664. } else if (val.SupplierTypeCode === '02') {
  665. SupplierType = 'basicauditoperation'
  666. } else {
  667. SupplierType = 'techoperation'
  668. }
  669. if (Number(val.Status) <= 0) {
  670. this.$router.push('oilsupplier/annualaudit/' + val.SupplierId + '/' + SupplierType + '?certid=' + val.CertId + '&WorkflowId=' + val.WorkflowId + '&Status=' + val.Status + '&Step=' + val.Step + '&annualId=' + val.Id)
  671. } else {
  672. this.$router.push('oilsupplier/annualaudit/' + val.SupplierId + '/' + SupplierType + '?certid=' + val.CertId + '&WorkflowId=' + val.WorkflowId + '&AnnualStatus=' + val.Status + '&annualId=' + val.Id + '&Step=' + val.Step)
  673. }
  674. } else if (val.Type == '4') { // 信息变更
  675. this.$router.push('/oilsupplier/infochangech/' + val.Id + '/auditoperation?InfoStatus=' + val.Status + '&SupId=' + val.SupplierId)
  676. } else if (val.Type == '5') { // 企业注册
  677. this.initDataregister(val.Id)
  678. } else if (val.Type == '8') { // 发票
  679. if (val.Status === '未开') {
  680. this.invoicetitle = '待开发票'
  681. } else {
  682. this.invoicetitle = '已开发票'
  683. }
  684. this.initInvoiceDatas(val.Id)
  685. this.invoiceVisible = true
  686. } else if (val.Type == '9') { // 目录申请
  687. this.$router.push('/oilsupplier/oilcatalogsub/' + val.Id + '/incomeedit')
  688. } else if (val.Type == '10') { //日常评价 评价呀
  689. if(val.SupplierTypeCode=='01'){
  690. this.$router.push({
  691. path:'/oilcontract/contract-goods/' + val.Id + '/evaluate',
  692. })
  693. }else if(val.SupplierTypeCode=='02'){
  694. this.$router.push({
  695. path:'/oilcontract/contract-basis/' + val.Id + '/evaluate',
  696. })
  697. }else if(val.SupplierTypeCode=='03'){
  698. this.$router.push({
  699. path:'/oilcontract/contract-service/' + val.Id + '/evaluate',
  700. })
  701. }
  702. }else if (val.Type == '11') { //年度评价 评价呀
  703. if(val.SupplierTypeCode=='01'){
  704. this.$router.push({
  705. path:'/oilcontract/contract-goods-year/' + val.Id + '/operation',
  706. })
  707. }else if(val.SupplierTypeCode=='02'){
  708. this.$router.push({
  709. path:'/oilcontract/contract-basis-year/' + val.Id + '/operation',
  710. })
  711. }else if(val.SupplierTypeCode=='03'){
  712. this.$router.push({
  713. path:'/oilcontract/contract-service-year/' + val.Id + '/operation',
  714. })
  715. }
  716. }
  717. },
  718. rowFinishedClick (val) {
  719. console.log('已办-分流路由')
  720. let SupplierType = ''
  721. if (val.Type == '1') { // 准入
  722. if (val.TaskName == '企管法规处编号、入库') {
  723. // 待入库状态时直接跳转单独的入库审批页面,.信息变更入库不需要区分类型, 直接审批。
  724. if (val.SupplierTypeCode === '01') {
  725. SupplierType = 'goodsedit'
  726. } else if (val.SupplierTypeCode === '02') {
  727. SupplierType = 'basisedit'
  728. } else {
  729. SupplierType = 'techedit'
  730. }
  731. this.$router.push('oilsupplier/supplierstorage/' + val.Id + '/' + SupplierType + '?certid=' + val.CertId + '&applytype=' + val.Type)
  732. } else {
  733. // 到详情页面
  734. if (val.SupplierTypeCode === '01') {
  735. SupplierType = 'goodsedit'
  736. } else if (val.SupplierTypeCode === '02') {
  737. SupplierType = 'basisedit'
  738. } else {
  739. SupplierType = 'techedit'
  740. }
  741. // 准入 且审批未通过之后 创建人中的待办按钮
  742. this.$router.push('oilsupplier/supplieraudit/' + val.Id + '/' + SupplierType + '?certid=' + val.CertId)
  743. }
  744. } else if (val.Type == '2') { // 增项
  745. let appendId = ''
  746. if (val.SupplierTypeCode === '01') {
  747. SupplierType = 'goodsdataopera'
  748. appendId = '1'
  749. } else if (val.SupplierTypeCode === '02') {
  750. appendId = '2'
  751. SupplierType = 'basisdataopera'
  752. } else {
  753. appendId = '3'
  754. SupplierType = 'techdataopera'
  755. }
  756. this.$router.push('oilsupplier/addtionaudit/' + val.Id + '/' + SupplierType)
  757. } else if (val.Type == '3') { // 年审
  758. if (val.SupplierTypeCode === '01') {
  759. SupplierType = 'auditoperation'
  760. } else if (val.SupplierTypeCode === '02') {
  761. SupplierType = 'basicauditoperation'
  762. } else {
  763. SupplierType = 'techoperation'
  764. }
  765. this.$router.push('oilsupplier/annualaudit/' + val.SupplierId + '/' + SupplierType + '?certid=' + val.CertId + '&WorkflowId=' + val.WorkflowId + '&AnnualStatus=' + val.Status + '&annualId=' + val.Id + '&Step=' + val.Step)
  766. } else if (val.Type == '4') { // 信息变更
  767. this.$router.push('/oilsupplier/infochangech/' + val.Id + '/auditoperation?InfoStatus=' + val.Status + '&SupId=' + val.SupplierId)
  768. } else if (val.Type == '5') { // 企业注册
  769. this.initDataregister(val.Id)
  770. } else if (val.Type == '8') { // 发票
  771. if (val.Status === '未开') {
  772. this.invoicetitle = '待开发票'
  773. } else {
  774. this.invoicetitle = '已开发票'
  775. }
  776. this.initInvoiceDatas(val.Id)
  777. this.invoiceVisible = true
  778. } else if (val.Type == '9') { // 目录申请
  779. this.$router.push('/oilsupplier/oilcatalogsub/' + val.Id + '/incomeedit')
  780. } else if (val.Type == '10') { //日常评价 评价呀
  781. if(val.SupplierTypeCode=='01'){
  782. this.$router.push({
  783. path:'/oilcontract/contract-goods/' + val.Id + '/evaluate',
  784. })
  785. }else if(val.SupplierTypeCode=='02'){
  786. this.$router.push({
  787. path:'/oilcontract/contract-basis/' + val.Id + '/evaluate',
  788. })
  789. }else if(val.SupplierTypeCode=='03'){
  790. this.$router.push({
  791. path:'/oilcontract/contract-service/' + val.Id + '/evaluate',
  792. })
  793. }
  794. }else if (val.Type == '11') { //年度评价 评价呀
  795. if(val.SupplierTypeCode=='01'){
  796. this.$router.push({
  797. path:'/oilcontract/contract-goods-year/' + val.Id + '/operation',
  798. })
  799. }else if(val.SupplierTypeCode=='02'){
  800. this.$router.push({
  801. path:'/oilcontract/contract-basis-year/' + val.Id + '/operation',
  802. })
  803. }else if(val.SupplierTypeCode=='03'){
  804. this.$router.push({
  805. path:'/oilcontract/contract-service-year/' + val.Id + '/operation',
  806. })
  807. }
  808. }
  809. },
  810. initInvoiceDatas (Id) {
  811. let params = {
  812. Id: Id
  813. }
  814. api.getInvoiceData(params, this.$axios).then(res => {
  815. this.formDataInvoice = res.data.items['invoiceinfo']
  816. this.paymentinfoList = res.data.items['paymentinfos']
  817. }).catch(err => {
  818. console.error(err)
  819. })
  820. },
  821. bigImg (url) {
  822. this.bigUrl = url
  823. this.legalPersonImgVisible = true
  824. },
  825. bigImg1 (url) {
  826. this.bigUrl = url
  827. this.legalPersonImg1Visible = true
  828. },
  829. initDataregister (Id) {
  830. let _this = this
  831. const params = {
  832. _currentPage: _this.currentPage,
  833. _size: _this.size,
  834. Name: _this.searchForm.SupplierName
  835. }
  836. this.$axios.get('/register/get/' + Id)
  837. .then(function (response) {
  838. _this.formData = response.data
  839. _this.dialogVisible = true
  840. // 处理URL
  841. _this.urlList = []
  842. let urlArr = _this.formData.LegalPersonURL.split('&')
  843. if (urlArr) {
  844. for (let i = 0; i < urlArr.length; i++) {
  845. let tempURL = urlArr[i].split('|')
  846. if (tempURL[0].indexOf('/upfile') === 0) {
  847. const myDomain = window.location.host
  848. _this.urlList.push('http://' + myDomain + tempURL[0])
  849. } else {
  850. _this.urlList.push('http://' + tempURL[0])
  851. }
  852. }
  853. }
  854. _this.urlList2 = []
  855. let urlArr2 = _this.formData.ContactURL.split('&')
  856. if (urlArr2) {
  857. for (let i = 0; i < urlArr2.length; i++) {
  858. let tempURL = urlArr2[i].split('|')
  859. if (tempURL[0].indexOf('/upfile') === 0) {
  860. const myDomain = window.location.host
  861. _this.urlList2.push('http://' + myDomain + tempURL[0])
  862. } else {
  863. _this.urlList2.push('http://' + tempURL[0])
  864. }
  865. }
  866. }
  867. })
  868. .catch(function (error) {
  869. console.log(error)
  870. })
  871. },
  872. ComAudit () {
  873. this.Auditshow = true
  874. },
  875. // 审核
  876. makeSure () {
  877. if (this.shenheForm.AuditorRemark.trim().length < 1) {
  878. this.$message({
  879. type: 'warning',
  880. message: '请填写审批意见!'
  881. })
  882. return
  883. }
  884. this.checkstatus()
  885. },
  886. // 审核未通过
  887. checkstatus () {
  888. let _this = this
  889. _this.btnLoading = true
  890. const params = _this.shenheForm
  891. _this.$axios.post('/register/comaudit/', _this.formData, {params})
  892. .then(res => {
  893. if (res.data.code === 0) {
  894. _this.$message({
  895. type: 'success',
  896. message: res.data.message,
  897. })
  898. // 关闭dialog
  899. _this.Auditshow = false
  900. _this.dialogVisible = false
  901. // 更新列表
  902. _this.initDatas()
  903. } else {
  904. _this.$message({
  905. type: 'warning',
  906. message: res.data.message
  907. })
  908. }
  909. this.btnLoading = false
  910. })
  911. .catch(err => {
  912. console.error(err)
  913. })
  914. },
  915. ensureOption () {
  916. let _this = this
  917. _this.$axios.post('/register/adduser/', _this.formData)
  918. .then(res => {
  919. if (res.data.code === 0) {
  920. _this.$message({
  921. type: 'success',
  922. message: res.data.message
  923. })
  924. // 关闭dialog
  925. _this.dialogVisible = false
  926. // 更新列表
  927. this.initDatas()
  928. } else {
  929. _this.$message({
  930. type: 'warning',
  931. message: res.data.message
  932. })
  933. }
  934. })
  935. .catch(err => {
  936. console.error(err)
  937. })
  938. },
  939. finishedData () {
  940. this.loading = true
  941. let myCreateOn = []
  942. // 解析时间
  943. if (this.CreateOn != null && this.CreateOn.length === 2) {
  944. this.CreateOn[1].setHours(23)
  945. this.CreateOn[1].setMinutes(59)
  946. this.CreateOn[1].setSeconds(59)
  947. myCreateOn.push(this.formatDateTime(this.CreateOn[0]))
  948. myCreateOn.push(this.formatDateTime(this.CreateOn[1]))
  949. }
  950. // 分页及列表条件
  951. let params = {
  952. _currentPage: this.currentPageFinished,
  953. _size: this.sizeFinished,
  954. Order: this.ColumnFinished.Order,
  955. Prop: this.ColumnFinished.Prop,
  956. CreateOn: myCreateOn.join(',')
  957. }
  958. // 查询条件
  959. Object.assign(params, this.searchForm)
  960. api.getMyTaskFinished(params, this.$axios).then(res => {
  961. this.entityListdone = res.data.items
  962. this.currentItemCountFinished = res.data.currentItemCount
  963. this.loading = false
  964. }).catch(err => {
  965. console.error(err)
  966. })
  967. },
  968. /** statusStr (val, type) {
  969. if (type == '1') { //准入
  970. this.statusApplyStr()
  971. } else if (type == '2') { //增项
  972. this.statusApplyStr()
  973. } else if (type == '3') { //年审
  974. } else if (type == '4') { //信息变更
  975. } else if (type == '5') { //企业注册
  976. } else if (type == '8') { //发票
  977. } else if (type == '9') { //目录申请
  978. }
  979. }, */
  980. statusStr (val, type) {
  981. switch (val) {
  982. case '':
  983. return '待提交'
  984. case '0':
  985. return '待提交'
  986. case '1':
  987. return '待初审'
  988. case '2':
  989. return '待复审'
  990. case '3':
  991. return '待专业处室分办'
  992. case '4':
  993. return '待专业处室审批'
  994. case '5':
  995. if (type == '3') { // 年审
  996. return '待企业法规处审批'
  997. } else if (type == '4') { // 信息变更
  998. return '待企业法规处审批'
  999. } else if (type == '9') { // 目录申请
  1000. return '待企业法规处审批'
  1001. } else {
  1002. return '待集中评审'
  1003. }
  1004. case '6':
  1005. return '待交费'
  1006. case '7':
  1007. if(type == '10' || type == '11'){
  1008. return '待企管法规处审批'
  1009. }else{
  1010. return '待入库'
  1011. }
  1012. case '8':
  1013. if(type == '10' || type == '11'){
  1014. return '已完成'
  1015. }else{
  1016. return '已入库'
  1017. }
  1018. case '9':
  1019. return '待企管法规处审批'
  1020. case '10':
  1021. return '分办'
  1022. case '11':
  1023. return '审核完成'
  1024. case '-1':
  1025. if (type == '5') {
  1026. return '审核未通过'
  1027. } else {
  1028. return '初审未通过'
  1029. }
  1030. case '-2':
  1031. return '复审未通过'
  1032. case '-3':
  1033. return '专业处室分办未通过'
  1034. case '-4':
  1035. return '专业处室审批未通过'
  1036. case '-5':
  1037. if (type == '4') { // 信息变更
  1038. return '企管法规处审批未通过'
  1039. } else if (type == '9') { // 目录申请
  1040. return '待企管法规处审批'
  1041. } else {
  1042. return '集中评审未通过'
  1043. }
  1044. case '-7':
  1045. return '入库未通过'
  1046. case '-9':
  1047. return '企管法规处审批未通过'
  1048. case '-10':
  1049. return '二级单位分办未通过'
  1050. default:
  1051. return val
  1052. }
  1053. },
  1054. transferStr (val) {
  1055. if (val === '1') {
  1056. return '准入交费'
  1057. } else if (val === '2') {
  1058. return '年审交费'
  1059. } else if (val === '3') {
  1060. return '增项交费'
  1061. } else if (val === '7') {
  1062. return '信息变更交费'
  1063. } else {
  1064. return val
  1065. }
  1066. },
  1067. timestampToTime (val) {
  1068. var date = new Date(val) // 时间戳为10位需*1000,时间戳为13位的话不需乘1000
  1069. var Y = date.getFullYear() + '-'
  1070. var M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-'
  1071. var D = (date.getDate() < 10 ? '0' + date.getDate() : date.getDate()) + ' '
  1072. var h = (date.getHours() < 10 ? '0' + date.getHours() : date.getHours()) + ':'
  1073. var m = (date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()) + ':'
  1074. var s = (date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds())
  1075. return Y + M + D + h + m + s
  1076. },
  1077. jstimehandle (val) {
  1078. if (val === '') {
  1079. return '----'
  1080. } else if (val === '0001-01-01T08:00:00+08:00') {
  1081. return '----'
  1082. } else if (val === '5000-01-01T23:59:59+08:00') {
  1083. return '永久'
  1084. } else if (val === '1970-01-01 8:0:0') {
  1085. return '----'
  1086. } else if (val === '1970-01-1 8:0:0') {
  1087. return '----'
  1088. } else {
  1089. val = val.replace('T', ' ')
  1090. return val.substring(0, 19)
  1091. }
  1092. },
  1093. formatDateTime (date) {
  1094. var y = date.getFullYear()
  1095. var m = date.getMonth() + 1
  1096. m = m < 10 ? ('0' + m) : m
  1097. var d = date.getDate()
  1098. d = d < 10 ? ('0' + d) : d
  1099. var h = date.getHours()
  1100. h = h < 10 ? ('0' + h) : h
  1101. var minute = date.getMinutes()
  1102. minute = minute < 10 ? ('0' + minute) : minute
  1103. return y + '-' + m + '-' + d + ' ' + h + ':' + minute
  1104. },
  1105. formatDateTimeymd (date) {
  1106. var y = date.getFullYear()
  1107. var m = date.getMonth() + 1
  1108. m = m < 10 ? ('0' + m) : m
  1109. var d = date.getDate()
  1110. d = d < 10 ? ('0' + d) : d
  1111. return y + '-' + m + '-' + d
  1112. },
  1113. handleCurrentChangeFinished (value) {
  1114. this.currentPageFinished = value
  1115. this.finishedData()
  1116. },
  1117. handleSizeChangeFinished (value) {
  1118. this.sizeFinished = value
  1119. this.currentPageFinished = 1
  1120. this.finishedData()
  1121. },
  1122. handleCurrentChange (value) {
  1123. this.currentPage = value
  1124. this.initDatas()
  1125. },
  1126. handleSizeChange (value) {
  1127. this.size = value
  1128. this.currentPage = 1
  1129. this.initDatas()
  1130. }
  1131. }
  1132. }
  1133. </script>
  1134. <style lang="scss">
  1135. .el-pagination {
  1136. margin: 1rem 0 2rem;
  1137. text-align: right;
  1138. }
  1139. .item {
  1140. margin-top: 10px;
  1141. margin-right: 40px;
  1142. }
  1143. .table-layout {
  1144. margin-top: 20px;
  1145. border-left: 1px solid #DCDFE6;
  1146. border-top: 1px solid #DCDFE6;
  1147. }
  1148. .table-cell {
  1149. height: 40px;
  1150. /*line-height: 20px;*/
  1151. border-right: 1px solid #DCDFE6;
  1152. border-bottom: 1px solid #DCDFE6;
  1153. padding: 10px;
  1154. font-size: 14px;
  1155. color: #606266;
  1156. text-align: center;
  1157. overflow: hidden;
  1158. }
  1159. .table-cell-title {
  1160. border-right: 1px solid #DCDFE6;
  1161. border-bottom: 1px solid #DCDFE6;
  1162. padding: 10px;
  1163. background: #F2F6FC;
  1164. text-align: center;
  1165. font-size: 14px;
  1166. color: #303133;
  1167. }
  1168. </style>