index.vue 52 KB

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