瀏覽代碼

承诺书调整

y595705120 3 年之前
父節點
當前提交
0f4919fd50
共有 2 個文件被更改,包括 26 次插入6 次删除
  1. 5 1
      src/components/upload/index.vue
  2. 21 5
      src/containers/center/market/index.vue

+ 5 - 1
src/components/upload/index.vue

@@ -11,7 +11,7 @@
       name="avatar"
       :on-success="handleImageSuccess"
       :before-upload="beforeImageUpload">
-      <el-button type="primary" style="width: 200px;" class="mt20">
+      <el-button type="primary" :style="{'width': width}" class="mt20">
         {{placeholder}}
       </el-button>
     </el-upload>
@@ -32,6 +32,10 @@
         type: Boolean,
         default: false,
       },
+      width:{
+        type: String,
+        default: "200px",
+      },
       mins:{
         type: Number,
         default: 20,

+ 21 - 5
src/containers/center/market/index.vue

@@ -12,9 +12,16 @@
       </ul>
 
       <div class="mt10" v-if="type=='施工现场专业人员'">
-        <p class="tc" style="color: red;font-size: 18px;">
+        <p style="color: red;font-size: 16px;">
           报名对象为:2020年度及以后由培训单位核发的和2021年度换发的“电子培训合格证”且每年度需参加继续教育人员
         </p>
+        <p style="color: red;font-size: 16px;">
+          注意:继续教育学员请先下载
+          <a style="color: blue;cursor: hand;" href="https://sm.hqedust.com/cdn/%E7%BB%A7%E7%BB%AD%E6%95%99%E8%82%B2%E5%A7%94%E6%89%98%E5%9F%B9%E8%AE%AD%E3%80%81%E6%89%BF%E8%AF%BA%E5%87%BD.doc">
+            《继续教育委托培训、承诺函》
+          </a>
+            ,填写并加盖单位公章后,在申请开通课程界面上传扫描件、并缴费
+        </p>
       </div>
 
       <ul class="m-course-list clear mt10 classlist" v-if="total>0">
@@ -123,7 +130,10 @@
               <el-input v-model="buyForm.marks" type="textarea" placeholder="姓名+工种名称,例:张三+土建施工员" style="width: 220px;"></el-input>
             </el-form-item>
           </el-col>
-
+        </el-row>
+        <el-row v-if="type=='施工现场专业人员'">
+           <img :src="buyForm.buyImg" :onerror="errorImg" style="width: 160px;text-align: center;">
+           <do-upload @onFinish="(url)=>{buyForm.buyImg=url}" placeholder="上传承诺书" width="160px"> </do-upload>
         </el-row>
         <el-row>
           <h2 class="tc"> 本课程费用: <strong style="color: red;"> {{buyForm.fee/100}} 元 </strong> </h2>
@@ -249,6 +259,7 @@
           payNo:'',
           email:'',
           company:'',
+          buyImg:'',
           courseName: ''
         },
         promise,
@@ -403,15 +414,16 @@
         this.buyForm = Object.assign({}, item)
         this.buyForm.company = this.userInfo.company;
         this.buyForm.temp = item;
+        let isEdu = this.type == '施工现场专业人员';
 
         // 绕开检查
         // this.stage = 2;
-        // this.isCompanyPay = 0;
+        // this.isCompanyPay = 1;
         // this.isCommitment=''
         // this.buyForm.rzCode = item.rzCode;
         // this.buyForm.company = 'ssss';
         // this.buyForm.courseName = item.courseName;
-        // this.commitmentDialog = true;
+        // this.buyCourseDialog = true;
         // 检查
         httpServer("weixin.docheckpay", {
           courseId: item.course_id
@@ -421,7 +433,11 @@
             this.isCompanyPay = 0;
             this.isCommitment=''
             Object.assign( this.buyForm, res.data);
-            this.commitmentDialog = true;
+            if( isEdu){
+              this.buyCourseDialog = true;
+            }else{
+              this.commitmentDialog = true;
+            }
           }
         });
       },