2
3
Просмотр исходного кода

Merge branch 'develop' of http://code.dashoo.cn/dashoo/supplier_system into develop

dubch 5 лет назад
Родитель
Сommit
3f0c8b59f4

+ 17 - 17
src/dashoo.cn/backend/api/business/oilsupplier/oilcatalogsub/oilcatalogsub.go

@@ -29,21 +29,21 @@ type OilCatalogSub struct {
 }
 
 const (
-	DRAFT_STATUS        string = "0"  //草稿状态
-	FIRST_TRIAL_STATUS  string = "1"  //二级单位初审
-	SECOND_TRIAL_STATUS string = "2"  //二级单位复审
-	THIRD_TRIAL_STATUS  string = "3"  //专业处接收
-	PROF_AUDIT_STATUS   string = "4"  //专业科室审核
-	CENT_AUDIT_STATUS   string = "5"  // 集中审批
-	PAYING_AUDIT_STATUS string = "6"  //待交费
-	STOREING_STATUS     string = "7"  //待入库
-	STORE_STATUS        string = "8"  //已入库
-	FEN_TRIAL_STATUS    string = "10" //二级单位分办
+	DRAFT_STATUS           string = "0"   //草稿状态
+	FIRST_TRIAL_STATUS     string = "1"   //二级单位初审
+	SECOND_TRIAL_STATUS    string = "2"   //二级单位复审
+	THIRD_TRIAL_STATUS     string = "3"   //专业处接收
+	PROF_AUDIT_STATUS      string = "4"   //专业科室审核
+	CENT_AUDIT_STATUS      string = "5"   // 集中审批	(2021-0109 新流程企管法规处审批)
+	PAYING_AUDIT_STATUS    string = "6"   //待交费
+	STOREING_STATUS        string = "7"   //待入库
+	STORE_STATUS           string = "8"   //已入库
+	FEN_TRIAL_STATUS       string = "10"  //二级单位分办
 	NO_FEN_TRIAL_STATUS    string = "-10" //二级单位分办未通过
-	NOPASS_STATUS       string = "-1" // 初审未通过
-	NO_SECOND_TRIAL_STATUS   string = "-2" // 复审未通过
-	NO_THIRD_TRIAL_STATUS    string = "-3" // 专业处接收未通过
-	NO_PROF_AUDIT_STATUS     string = "-4" // 专业处室未通过
-	NO_CENT_AUDIT_STATUS    string = "-5" // 集中评审未通过
-	ALL_PASE_STATUS    string = "11" //审核完成
-)
+	NOPASS_STATUS          string = "-1"  // 初审未通过
+	NO_SECOND_TRIAL_STATUS string = "-2"  // 复审未通过
+	NO_THIRD_TRIAL_STATUS  string = "-3"  // 专业处接收未通过
+	NO_PROF_AUDIT_STATUS   string = "-4"  // 专业处室未通过
+	NO_CENT_AUDIT_STATUS   string = "-5"  // 集中评审未通过
+	ALL_PASE_STATUS        string = "11"  //审核完成
+)

+ 16 - 16
src/dashoo.cn/backend/api/controllers/oilsupplier/oilcatalogsub.go

@@ -464,10 +464,10 @@ func (this *OilCatalogSubController) AuditEntity() {
 	var jsonblob = this.Ctx.Input.RequestBody
 	json.Unmarshal(jsonblob, &dataOther)
 
-	var entity oilcatalogsub.OilCatalogSub
+	var subEntity oilcatalogsub.OilCatalogSub
 	var catalog oilcatalog.OilCatalog
 	svc := oilcatalogsub.GetOilCatalogSubService(utils.DBE)
-	svc.GetEntityById(Id, &entity)
+	svc.GetEntityById(Id, &subEntity)
 
 	var errInfo ErrorDataInfo
 	defer func() { //finally处理失败的异常
@@ -490,16 +490,16 @@ func (this *OilCatalogSubController) AuditEntity() {
 	backStatus := "0"
 	var userIds string
 
-	if entity.Status == oilcatalogsub.FIRST_TRIAL_STATUS {
-		userIds = utils.ToStr(entity.SecondAudit)
+	if subEntity.Status == oilcatalogsub.FIRST_TRIAL_STATUS {
+		userIds = utils.ToStr(subEntity.SecondAudit)
 		status = oilcatalogsub.SECOND_TRIAL_STATUS
 		backStatus = oilcatalogsub.NOPASS_STATUS
-	} else if entity.Status == oilcatalogsub.SECOND_TRIAL_STATUS {
+	} else if subEntity.Status == oilcatalogsub.SECOND_TRIAL_STATUS {
 		backStatus = oilcatalogsub.NO_SECOND_TRIAL_STATUS
 		status = oilcatalogsub.CENT_AUDIT_STATUS
 
 		paramSvc := baseparameter.GetBaseparameterService(utils.DBE)
-		topId := paramSvc.GetBaseparameterMessage("", "paramset", "CENT_AUDIT")
+		topId := paramSvc.GetBaseparameterMessage("", "paramset", "CENT_AUDIT") // 企管法规处审核
 
 		var userList []userRole.Base_User
 		var setting auditsetting.Base_OilAuditSetting
@@ -521,7 +521,7 @@ func (this *OilCatalogSubController) AuditEntity() {
 
 		userIds = strings.Trim(userIds, ",")
 
-	} else if entity.Status == oilcatalogsub.CENT_AUDIT_STATUS {
+	} else if subEntity.Status == oilcatalogsub.CENT_AUDIT_STATUS {
 		userIds = this.User.Id
 		status = oilcatalogsub.ALL_PASE_STATUS
 		backStatus = oilcatalogsub.NO_CENT_AUDIT_STATUS
@@ -529,8 +529,8 @@ func (this *OilCatalogSubController) AuditEntity() {
 
 	svcActiviti := workflow.GetActivitiService(utils.DBE)
 	var ActiComplete workflow.ActiCompleteVM
-	ActiComplete.ProcessKey = entity.ProcessKey
-	ActiComplete.BusinessKey = entity.BusinessKey
+	ActiComplete.ProcessKey = subEntity.ProcessKey
+	ActiComplete.BusinessKey = subEntity.BusinessKey
 	ActiComplete.UserNames = userIds
 	ActiComplete.UserId = this.User.Id
 	ActiComplete.Remarks = dataOther.AuditorRemark
@@ -543,19 +543,19 @@ func (this *OilCatalogSubController) AuditEntity() {
 		if receiveVal == "true" {
 			// 更新主表状态
 
-			if entity.Status == oilcatalogsub.CENT_AUDIT_STATUS {
+			if subEntity.Status == oilcatalogsub.CENT_AUDIT_STATUS {
 				catalog.Status = "2"
 			} else {
 				catalog.Status = "1"
 			}
-			entity.Status = status
+			subEntity.Status = status
 			cols := []string{
 				"Status",
 			}
-			svc.UpdateEntityByIdCols(Id, &entity, cols)
+			svc.UpdateEntityByIdCols(Id, &subEntity, cols)
 			// 从表状态
 
-			where := "SubId=" + Id + " and CatalogType=" + entity.Type
+			where := "SubId=" + Id + " and CatalogType=" + subEntity.Type
 			svc.UpdateEntityBywheretbl(OilCatalogName, &catalog, cols, where)
 			errInfo.Message = "提交成功!"
 			errInfo.Code = 0
@@ -575,14 +575,14 @@ func (this *OilCatalogSubController) AuditEntity() {
 
 		if receiveVal == "true" {
 			// 更新主表状态
-			entity.Status = backStatus
+			subEntity.Status = backStatus
 			cols := []string{
 				"Status",
 			}
-			svc.UpdateEntityByIdCols(Id, entity, cols)
+			svc.UpdateEntityByIdCols(Id, subEntity, cols)
 			// 从表状态
 			catalog.Status = "0"
-			where := "SubId=" + Id + " and CatalogType=" + entity.Type
+			where := "SubId=" + Id + " and CatalogType=" + subEntity.Type
 			svc.UpdateEntityBywheretbl(OilCatalogName, &catalog, cols, where)
 			errInfo.Message = "提交成功!"
 			errInfo.Code = 0

+ 4 - 4
src/dashoo.cn/frontend_web/src/pages/index.vue

@@ -1072,10 +1072,10 @@
         var date = new Date(val) // 时间戳为10位需*1000,时间戳为13位的话不需乘1000
         var Y = date.getFullYear() + '-'
         var M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-'
-        var D = date.getDate() + ' '
-        var h = date.getHours() + ':'
-        var m = date.getMinutes() + ':'
-        var s = date.getSeconds()
+        var D = (date.getDate() < 10 ? '0' + date.getDate() : date.getDate()) + ' '
+        var h = (date.getHours() < 10 ? '0' + date.getHours() : date.getHours()) + ':'
+        var m = (date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()) + ':'
+        var s = (date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds())
         return Y + M + D + h + m + s
       },
       jstimehandle (val) {

+ 3 - 2
src/dashoo.cn/frontend_web/src/pages/oilsupplier/oilcatalog/income.vue

@@ -52,7 +52,7 @@
             <el-button slot="reference" type="danger" title="删除" style="margin-left:10px" size="mini" @click="deleteClick(scope.row)" plain :disabled="!showBtn">删除</el-button>
           </template>
         </el-table-column>
-        <el-table-column label="序号" align="center" min-width="70">
+        <el-table-column label="序号" align="center" width="70">
           <template slot-scope="scope">
             <span>{{scope.$index+(currentPage - 1) * size + 1}} </span>
           </template>
@@ -64,12 +64,12 @@
             {{(jsTimeHandleForInCome(scope.row.ValidityTo))}}
           </template>
         </el-table-column>
+        <el-table-column sortable width="150" align="center" :key="Math.random()" v-if="formData.CatalogType == 6 || formData.CatalogType == 7" show-overflow-tooltip prop="Dept" label="申报单位"></el-table-column>
         <el-table-column sortable width="100" align="center" show-overflow-tooltip prop="LegalPerson" label="法人姓名"></el-table-column>
         <el-table-column sortable min-width="120" align="center" show-overflow-tooltip prop="IDCode" label="法人身份证号"></el-table-column>
         <!--<el-table-column sortable min-width="120" align="center" show-overflow-tooltip prop="Address" label="企业注册地址"></el-table-column>-->
         <el-table-column sortable min-width="150" align="center" show-overflow-tooltip prop="USCCode" label="全国统一信用代码"></el-table-column>
         <!--<el-table-column sortable min-width="120" align="center" show-overflow-tooltip prop="RegCapital" label="注册资本"></el-table-column>-->
-        <el-table-column sortable width="120" align="center" :key="Math.random()" v-if="formData.CatalogType == 6 || formData.CatalogType == 7" show-overflow-tooltip prop="Dept" label="申报单位"></el-table-column>
         <el-table-column sortable min-width="120" align="center" show-overflow-tooltip prop="Remark" label="备注"></el-table-column>
 
       </el-table>
@@ -525,6 +525,7 @@
           _size: this.size,
           Order: this.Column.Order,
           Prop: this.Column.Prop,
+          Status: '2',
           CatalogType: this.formData.CatalogType
         }
         let myCreateOn = []

+ 1 - 1
src/dashoo.cn/frontend_web/src/pages/oilsupplier/oilcatalog/index.vue

@@ -63,7 +63,7 @@
         <el-table-column sortable min-width="400" align="left" prop="Business" label="业务范围"></el-table-column>
         <el-table-column sortable width="100" align="center" show-overflow-tooltip label="有效期至">
           <template slot-scope="scope">
-            {{(jsTimeHandle(scope.row.ValidityTo))}}
+            {{jsTimeHandle(scope.row.ValidityTo)}}
           </template>
         </el-table-column>
         <el-table-column sortable min-width="90" align="center" :key="Math.random()" v-if="formData.CatalogType == 4 || formData.CatalogType == 5" show-overflow-tooltip prop="DutyDept" label="责任部室"></el-table-column>

+ 3 - 2
src/dashoo.cn/frontend_web/src/pages/oilsupplier/oilcatalogselect/income.vue

@@ -45,7 +45,7 @@
             <el-button type="primary" size="mini" @click="editOilCataLog(scope.row)" plain>查看</el-button>
           </template>
         </el-table-column>
-        <el-table-column label="序号" align="center" min-width="70">
+        <el-table-column label="序号" align="center" width="70">
           <template slot-scope="scope">
             <span>{{scope.$index+(currentPage - 1) * size + 1}} </span>
           </template>
@@ -57,12 +57,12 @@
             {{(jsTimeHandleForInCome(scope.row.ValidityTo))}}
           </template>
         </el-table-column>
+        <el-table-column sortable width="150" align="center" :key="Math.random()" v-if="formData.CatalogType == 6 || formData.CatalogType == 7" show-overflow-tooltip prop="Dept" label="申报单位"></el-table-column>
         <el-table-column sortable width="100" align="center" show-overflow-tooltip prop="LegalPerson" label="法人姓名"></el-table-column>
         <el-table-column sortable min-width="120" align="center" show-overflow-tooltip prop="IDCode" label="法人身份证号"></el-table-column>
         <!--<el-table-column sortable min-width="120" align="center" show-overflow-tooltip prop="Address" label="企业注册地址"></el-table-column>-->
         <el-table-column sortable min-width="150" align="center" show-overflow-tooltip prop="USCCode" label="全国统一信用代码"></el-table-column>
         <!--<el-table-column sortable min-width="120" align="center" show-overflow-tooltip prop="RegCapital" label="注册资本"></el-table-column>-->
-        <el-table-column sortable width="120" align="center" :key="Math.random()" v-if="formData.CatalogType == 6 || formData.CatalogType == 7" show-overflow-tooltip prop="Dept" label="申报单位"></el-table-column>
         <el-table-column sortable min-width="120" align="center" show-overflow-tooltip prop="Remark" label="备注"></el-table-column>
 
       </el-table>
@@ -303,6 +303,7 @@
           _size: this.size,
           Order: this.Column.Order,
           Prop: this.Column.Prop,
+          Status: '2',
           CatalogType: this.formData.CatalogType
         }
         let myCreateOn = []

+ 1 - 1
src/dashoo.cn/frontend_web/src/pages/oilsupplier/oilcatalogselect/index.vue

@@ -59,7 +59,7 @@
         <el-table-column sortable min-width="400" align="left" prop="Business" label="业务范围"></el-table-column>
         <el-table-column sortable width="125" align="center" show-overflow-tooltip label="有效期至">
           <template slot-scope="scope">
-            {{(jsTimeHandle(scope.row.ValidityTo))}}
+            {{jsTimeHandle(scope.row.ValidityTo)}}
           </template>
         </el-table-column>
         <el-table-column sortable min-width="90" align="center" :key="Math.random()" v-if="formData.CatalogType == 4 || formData.CatalogType == 5" show-overflow-tooltip prop="DutyDept" label="责任部室"></el-table-column>

+ 7 - 6
src/dashoo.cn/frontend_web/src/pages/oilsupplier/oilcatalogsub/_opera/incomeedit.vue

@@ -3,7 +3,7 @@
     <el-breadcrumb class="heading">
       <el-breadcrumb-item :to="{ path: '/' }">平台首页</el-breadcrumb-item>
       <el-breadcrumb-item :to="{ path: '/oilsupplier/oilcatalogsub' }">{{this.formDataType}}</el-breadcrumb-item>
-      <el-breadcrumb-item>添加</el-breadcrumb-item>
+      <el-breadcrumb-item><span v-if="formData.Status <= 0 && isEdit">编辑</span><span v-else>查看</span></el-breadcrumb-item>
     </el-breadcrumb>
     <el-card class="box-card">
       <div slot="header">
@@ -16,9 +16,10 @@
             <el-button type="primary" size="mini" style="margin-left:10px; margin-top: -4px;" @click="approvalEntity" v-if="auditBtn && formData.Status == 2">复审</el-button>
             <el-button type="primary" size="mini" style="margin-left:10px; margin-top: -4px;" @click="approvalEntity" v-if="auditBtn && formData.Status == 5">审批</el-button>
             <el-button type="primary" size="mini" style="margin-left:10px; margin-top: -4px;" @click="authHistory">审批流程</el-button>
-            <router-link :to="'/oilsupplier/oilcatalog?catalogType=7'">
-            <el-button type="warning" size="mini" style="margin-left:10px; margin-top: -4px;" v-if="isEdit && formData.Status <= 0">返回</el-button>
-          </router-link>
+            <!--<router-link :to="'/oilsupplier/oilcatalog?catalogType=7'">-->
+            <router-link :to="'/oilsupplier/oilcatalogsub'">
+              <el-button type="warning" size="mini" style="margin-left:10px; margin-top: -4px;" v-if="isEdit && formData.Status <= 0">返回</el-button>
+            </router-link>
           </span>
         </div>
       </div>
@@ -161,7 +162,7 @@
         <el-table-column sortable min-width="500" align="center" show-overflow-tooltip prop="Business" label="业务范围"></el-table-column>
         <el-table-column sortable width="100" align="center" show-overflow-tooltip label="有效期至">
           <template slot-scope="scope">
-            {{(jsTimeHandle(scope.row.ValidityTo))}}
+            {{jsTimeHandle(scope.row.ValidityTo)}}
           </template>
         </el-table-column>
         <el-table-column sortable min-width="120" align="center" show-overflow-tooltip prop="Remark" label="备注"></el-table-column>
@@ -553,7 +554,7 @@
       isAccess () {
         let params = {
           id: this.formData.Id,
-          auditStepCode: this.auditStepCode,
+          auditstepcode: this.auditStepCode,
           processkey: this.formData.ProcessKey
         }
         apiCert.isAccess(params, this.$axios).then(res => {

+ 1 - 1
src/dashoo.cn/frontend_web/src/pages/oilsupplier/oilcatalogsub/index.vue

@@ -2,7 +2,7 @@
   <div>
     <el-breadcrumb class="heading">
       <el-breadcrumb-item :to="{ path: '/' }">平台首页</el-breadcrumb-item>
-      <el-breadcrumb-item></el-breadcrumb-item>
+      <el-breadcrumb-item>目录申请表</el-breadcrumb-item>
     </el-breadcrumb>
     <el-card class="box-card" style="height: calc(100vh - 115px);">
       <div slot="header">