daiqisheng пре 3 година
родитељ
комит
cfc476c271
1 измењених фајлова са 28 додато и 87 уклоњено
  1. 28 87
      src/pages/main/demandDevelop/index.vue

+ 28 - 87
src/pages/main/demandDevelop/index.vue

@@ -343,85 +343,33 @@
             >
             <el-button @click="handleApprove('取消')">取消</el-button>
           </div>
-
-          <div v-if="titname === '审批' && step === '1'">
-            <el-button type="primary" @click="handleApprove('送申请人编号发送')"
-              >送申请人编号发送</el-button
-            >
-            <el-button type="primary" @click="handleApprove('送领导审核')"
-              >送领导审核</el-button
+          <div v-else>
+            <el-button
+              v-for="(item, index) in buttonList"
+              :key="index"
+              type="primary"
+              @click="handleApprove(item)"
+              >item</el-button
             >
-            <el-button type="primary" @click="handleApprove('打回')"
-              >打回</el-button
-            >
-            <el-button @click="handleApprove('取消')">取消</el-button>
           </div>
-          <div v-if="titname === '审批' && step === '2'">
-            <el-button type="primary" @click="handleApprove('送申请人编号发送')"
-              >送申请人编号发送</el-button
-            >
-            <el-button type="primary" @click="handleApprove('打回')"
-              >打回</el-button
-            >
-            <el-button @click="handleApprove('取消')">取消</el-button>
-          </div>
-          <div v-if="titname === '审批' && step === '3'">
-            <el-button type="primary" @click="handleApprove('确认编号')"
-              >确认编号</el-button
-            >
-            <el-button type="primary" @click="handleApprove('送领导审核')"
-              >送领导审核</el-button
-            >
-            <el-button @click="handleApprove('取消')">取消</el-button>
-          </div>
-          <el-button @click="handleApprove('取消')">取消</el-button>
-          <!-- <el-button
-            v-if="titname != '查看' && vision == '流程发起'"
-            type="primary"
-            @click="checkexa = true"
-            >确 定
-          </el-button>
-          <el-button
-            v-if="titname != '查看' && visionsts == '3'"
-            type="primary"
-            @click="checkexa = true"
-            >确 定
-          </el-button>
-          <el-button
-            v-if="titname != '查看' && visionsts == '4'"
-            type="primary"
-            @click="dialogCli(2)"
-            >确 定
-          </el-button>
-          <el-button
-            v-if="titname != '查看' && visionsts == '2'"
-            type="primary"
-            @click="checkexa = true"
-            >通 过
-          </el-button>
-          <el-button
-            v-if="titname != '查看' && visionsts == '2'"
-            type="primary"
-            @click="dialogCli(1)"
-            >打 回
-          </el-button>
-          <el-button v-if="titname == '添加'" type="primary" @click="temp"
-            >保 存</el-button
-          >
-          <el-button
-            v-if="titname == '添加'"
-            type="primary"
-            @click="checkexa = true"
-            >确 定</el-button
-          >
-          <el-button v-if="titname == '查看'" @click="dialogCli(3)"
-            >确 定</el-button
-          >
-          <el-button @click="dialogCli(3)">取 消</el-button> -->
         </div>
       </div>
     </el-dialog>
     <el-dialog
+      title="选择审批领导"
+      :visible.sync="checkLaeder"
+      width="500px"
+      :destroy-on-close="true"
+      :modal-append-to-body="false"
+      :close-on-click-modal="false"
+    >
+      <div class="check">aaa</div>
+      <div slot="footer">
+        <el-button type="primary" @click="formSubmit">确 定</el-button>
+        <el-button @click="checkLaeder = false">取 消</el-button>
+      </div>
+    </el-dialog>
+    <el-dialog
       title="选择审批人"
       :visible.sync="checkexa"
       width="50%"
@@ -459,9 +407,6 @@
         </div>
       </div>
     </el-dialog>
-    <el-dialog title="选择审批领导" :visible.sync="checkLaeder" width="500px">
-      <div>aaa</div>
-    </el-dialog>
     <myMessage
       :messTit="messTit"
       @closeMessage="closeMessage"
@@ -522,6 +467,7 @@ export default {
       infolist: {},
       // 用户信息
       userInfo: {},
+      buttonList:[],
       params: {},
       centerDialogVisible: false,
       messTit: "",
@@ -829,14 +775,15 @@ export default {
           this.woNo = mkOnlineChannel.woNo;
           this.step = mkOnlineChannel.step;
           this.infodatas = mkOnlineChannel.logList;
-          if (this.titname === "查看") {
-            this.disableStatus = true;
-            return;
-          }
+          // if (this.titname === "查看") {
+          //
+          //   return;
+          // }
           if (this.step === "0") {
             this.visionsts = "";
             this.disableStatus = false;
           } else {
+            // this.disableStatus = true;
             this.disableStatus = true;
             this.visionsts = "2";
           }
@@ -943,7 +890,6 @@ export default {
         this.titname = "审批";
         this.visionsts = "2";
         this.queryDetails(data.woNo);
-        this.disableStatus = true;
       } else if (type === 3) {
         this.titname = "添加";
         this.visionchonly = false;
@@ -1458,13 +1404,8 @@ export default {
 }
 .info {
   &-footer {
-    position: absolute;
-    clear: both;
-    border: 1px solid red;
-    bottom: 20px;
     display: flex;
-    left: 0;
-    right: 0;
+    margin-top: 100px;
     justify-content: flex-end;
   }
   &-upload {