Pārlūkot izejas kodu

备件申购审核对接

duanxiaoduan 1 gadu atpakaļ
vecāks
revīzija
e371f780a8
2 mainītis faili ar 247 papildinājumiem un 60 dzēšanām
  1. 2 2
      .env.development
  2. 245 58
      src/views/custom/subscribe/index.vue

+ 2 - 2
.env.development

@@ -7,9 +7,9 @@ ENV = 'development'
 #  VUE_APP_BASE_API = 'http://eam.modernfarming.cn:8000/'
 #  白少后台本地
 # 白少后台本地
-# VUE_APP_BASE_API = 'http://192.168.1.77:8082/'
+VUE_APP_BASE_API = 'http://192.168.1.77:8082/'
 # 线上测试
-VUE_APP_BASE_API = 'http://tmrwatch.cn:8082/'
+# VUE_APP_BASE_API = 'http://tmrwatch.cn:8082/'
 # VUE_APP_BASE_API = 'http://127.0.0.1:8082/'
 
 # VUE_APP_BASE_API = 'http://36.155.144.182:18090/'

+ 245 - 58
src/views/custom/subscribe/index.vue

@@ -84,8 +84,8 @@
       <el-table-column label="申购日期" sortable prop="inputTime" min-width="80px" align="center" />
       <el-table-column label="申购状态" min-width="80px" align="center">
         <template slot-scope="scope">
-          <!-- <span v-if="scope.row.purchase_type == 1">暂估</span> -->
-          <span v-if="scope.row.purchase_type == 3">赠品</span>
+          <span v-if="scope.row.purchase_type == 1">暂估</span>
+          <span v-else-if="scope.row.purchase_type == 3">赠品</span>
           <span v-else>正常</span>
         </template>
       </el-table-column>
@@ -97,31 +97,28 @@
           <el-button v-if="row.statue == 4||row.statue == 6||row.statue == 8||row.statue == 10||row.statue == 12 ||row.statue == 14" style="display:inline-block" type="success" size="mini" @click="form_edit(row)">编辑</el-button>
           <el-button v-else style="display:none" type="success" size="mini" @click="form_edit(row)">编辑</el-button>
           <!-- 库管 -->
-          <!-- <el-button v-if="isSubscribeExamineKG && row.statue == 2" style="display:inline-block" type="success" size="mini" @click="handleExamine1(row)">审核1</el-button> -->
+          <!-- <el-button v-if="isSubscribeExamineKG && row.statue == 2" style="display:inline-block" type="success" size="mini" @click="handleExamine1(row)">库管</el-button> -->
           <el-button v-if="isSubscribeExamineKG && row.statue == 2" style="display:inline-block" type="success" size="mini" @click="form_modify1(row)">提交</el-button>
 
           <!-- 设备 -->
-          <el-button v-if="isSubscribeExamineSBZG && row.statue == 3" style="display:inline-block" type="success" size="mini" @click="handleExamine2(row)">审核2</el-button>
+          <el-button v-if="isSubscribeExamineSBZG && row.statue == 3" style="display:inline-block" type="success" size="mini" @click="handleExamine2(row)">设备</el-button>
 
           <!-- 供应商主管 -->
-          <el-button v-if="isSubscribeExamineZG && row.statue == 9" style="display:inline-block" type="success" size="mini" @click="handleExamine3(row)">审核3</el-button>
+          <el-button v-if="isSubscribeExamineZG && row.statue == 9" style="display:inline-block" type="success" size="mini" @click="handleExamine3(row)">供应商主管</el-button>
 
 
 
 
           <!-- 场长 -->
-          <el-button v-if="sdchangzhangshenhe  && (row.purchase_type < 0 || row.purchase_type == 0) &&  row.statue == 5" style="display:inline-block" type="success" size="mini" @click="handleExamine4(row)">审核4</el-button>
-
-          <el-button v-if="sdchangzhangshenhe  && row.purchase_type > 0 &&  row.statue == 13" style="display:inline-block" type="success" size="mini" @click="handleExamine4(row)">审核4</el-button>
-
-
-
+          <el-button v-if="sdchangzhangshenhe  && row.statue == 5" style="display:inline-block" type="success" size="mini" @click="handleExamine4(row)">场长</el-button>
 
           <!-- 采购 -->
-          <el-button v-if="isSubscribeExamineCG && row.statue == 11 " style="display:inline-block" type="success" size="mini" @click="handleExamine5(row)">审核5</el-button>
+          <el-button v-if="isSubscribeExamineCG && row.statue == 11 " style="display:inline-block" type="success" size="mini" @click="handleExamine5(row)">采购</el-button>
 
           <!-- 财务 -->
-          <el-button v-if="isSubscribeExamineCW && row.purchase_type > 0 && row.statue == 5 " style="display:inline-block" type="success" size="mini" @click="handleExamine6(row)">审核6</el-button>
+          <el-button v-if="isSubscribeExamineCW && row.purchase_type > 0 && row.statue == 7" style="display:inline-block" type="success" size="mini" @click="handleExamine6(row)">财务</el-button>
+          <!-- 奶厅 -->
+          <el-button v-if="isSubscribeExamineNT && row.departmentName == '挤奶处' && row.statue == 11 " style="display:inline-block" type="success" size="mini" @click="handleExamine7(row)">奶厅</el-button>
 
           <el-button v-if="isSubscribeDelete && (row.statue == 4||row.statue == 6||row.statue == 8||row.statue == 12)" style="display:inline-block" type="danger" size="mini" @click="form_delete(row)">删除</el-button>
 
@@ -764,22 +761,23 @@
             <el-col>
               <el-form-item label="操作:">
                 <!-- 库管 -->
-                <!-- <el-button v-if="isSubscribeExamineKG && seeTemp.statue == 2" type="success" style="display:inline-block" @click="handleExamine1(row)">审核1</el-button> -->
+                <!-- <el-button v-if="isSubscribeExamineKG && seeTemp.statue == 2" type="success" style="display:inline-block" @click="handleExamine1(row)">库管</el-button> -->
                <!-- 设备 -->
-               <el-button v-if="isSubscribeExamineSBZG && seeTemp.statue == 3" type="success" style="display:inline-block" @click="handleExamine2(row)">审核2</el-button>
+               <el-button v-if="isSubscribeExamineSBZG && seeTemp.statue == 3" type="success" style="display:inline-block" @click="handleExamine2(row)">设备</el-button>
                 <!-- 供应商主管 -->
-                <el-button v-if="isSubscribeExamineZG && seeTemp.statue == 9" type="success" style="display:inline-block" @click="handleExamine3(row)">审核3</el-button>
+                <el-button v-if="isSubscribeExamineZG && seeTemp.statue == 9" type="success" style="display:inline-block" @click="handleExamine3(row)">供应商</el-button>
 
                 <!-- 场长 -->
-                <el-button v-if=" sdchangzhangshenhe  && (seeTemp.purchase_type < 0 || seeTemp.purchase_type == 0) && seeTemp.statue == 5" type="success" style="display:inline-block" @click="handleExamine4(row)">审核4</el-button>
-                <el-button v-if=" sdchangzhangshenhe  &&  seeTemp.statue == 13" type="success" style="display:inline-block" @click="handleExamine4(row)">审核4</el-button>
+                <el-button v-if=" sdchangzhangshenhe  &&  seeTemp.statue == 5" type="success" style="display:inline-block" @click="handleExamine4(row)">场长</el-button>
 
 
                 <!-- 采购 -->
-                <el-button v-if="isSubscribeExamineCG && seeTemp.statue == 11 " type="success" style="display:inline-block" @click="handleExamine5(row)">审核5</el-button>
+                <el-button v-if="isSubscribeExamineCG && seeTemp.statue == 11 " type="success" style="display:inline-block" @click="handleExamine5(row)">采购</el-button>
 
-
-                <el-button v-if="isSubscribeExamineCW && seeTemp.purchase_type > 0 && seeTemp.statue == 5 " style="display:inline-block" type="success" size="mini" @click="handleExamine6(row)">审核6</el-button>
+                <!-- 财务 -->
+                <el-button v-if="isSubscribeExamineCW && seeTemp.purchase_type > 0 && seeTemp.statue == 7 " style="display:inline-block" type="success" size="mini" @click="handleExamine6(row)">财务</el-button>
+                <!-- 奶厅 -->
+                <el-button v-if="isSubscribeExamineNT && seeTemp.departmentName == '挤奶处' && seeTemp.statue == 11 " style="display:inline-block" type="success" size="mini" @click="handleExamine7(row)">奶厅</el-button>
 
 
               </el-form-item>
@@ -819,6 +817,7 @@
         <el-button v-if="dialogStatus==='examine4'" type="primary" :disabled="isokDisable" @click="createExamineData4()">确认</el-button>
         <el-button v-if="dialogStatus==='examine5'" type="primary" :disabled="isokDisable" @click="createExamineData5()">确认</el-button>
         <el-button v-if="dialogStatus==='examine6'" type="primary" :disabled="isokDisable" @click="createExamineData6()">确认</el-button>
+        <el-button v-if="dialogStatus==='examine7'" type="primary" :disabled="isokDisable" @click="createExamineData7()">确认</el-button>
         <el-button @click="dialogFormVisible_Examine = false;">关闭</el-button>
       </div>
     </el-dialog>
@@ -1068,20 +1067,22 @@
             <el-col>
               <el-form-item label="操作:">
                 <!-- 库管 -->
-                <!-- <el-button v-if="isSubscribeExamineKG && seeTemp.statue == 2" type="success" style="display:inline-block" @click="handleExamine1(row)">审核1</el-button> -->
+                <!-- <el-button v-if="isSubscribeExamineKG && seeTemp.statue == 2" type="success" style="display:inline-block" @click="handleExamine1(row)">库管</el-button> -->
                <!-- 设备 -->
-               <el-button v-if="isSubscribeExamineSBZG && seeTemp.statue == 3" type="success" style="display:inline-block" @click="handleExamine2(row)">审核2</el-button>
+               <el-button v-if="isSubscribeExamineSBZG && seeTemp.statue == 3" type="success" style="display:inline-block" @click="handleExamine2(row)">设备</el-button>
                 <!-- 供应商主管 -->
-                <el-button v-if="isSubscribeExamineZG && seeTemp.statue == 9" type="success" style="display:inline-block" @click="handleExamine3(row)">审核3</el-button>
+                <el-button v-if="isSubscribeExamineZG && seeTemp.statue == 9" type="success" style="display:inline-block" @click="handleExamine3(row)">供应</el-button>
 
                 <!-- 场长 -->
-                <el-button v-if=" sdchangzhangshenhe  && (seeTemp.purchase_type < 0 || seeTemp.purchase_type == 0) && seeTemp.statue == 5" type="success" style="display:inline-block" @click="handleExamine4(row)">审核4</el-button>
-                <el-button v-if=" sdchangzhangshenhe  &&  seeTemp.statue == 13" type="success" style="display:inline-block" @click="handleExamine4(row)">审核4</el-button>
+                <el-button v-if=" sdchangzhangshenhe  && seeTemp.statue == 5" type="success" style="display:inline-block" @click="handleExamine4(row)">场长</el-button>
 
 
                 <!-- 采购 -->
-                <el-button v-if="isSubscribeExamineCG && seeTemp.statue == 11 " type="success" style="display:inline-block" @click="handleExamine5(row)">审核5</el-button>
-                <el-button v-if="isSubscribeExamineCW && seeTemp.purchase_type > 0 && seeTemp.statue == 5 " style="display:inline-block" type="success" size="mini" @click="handleExamine6(row)">审核6</el-button>
+                <el-button v-if="isSubscribeExamineCG && seeTemp.statue == 11 " type="success" style="display:inline-block" @click="handleExamine5(row)">采购</el-button>
+                <!-- 财务 -->
+                <el-button v-if="isSubscribeExamineCW && seeTemp.purchase_type > 0 && seeTemp.statue == 7 " style="display:inline-block" type="success" size="mini" @click="handleExamine6(row)">财务</el-button>
+                <!-- 奶厅 -->
+                <el-button v-if="isSubscribeExamineNT && seeTemp.departmentName == '挤奶处' && seeTemp.statue == 11 " style="display:inline-block" type="success" size="mini" @click="handleExamine7(row)">奶厅</el-button>
               </el-form-item>
             </el-col>
           </el-row>
@@ -1113,7 +1114,7 @@ export default {
   directives: { waves },
   data() {
     return {
-      isSubscribeAdd: [],isSubscribeSpecial:[], isSubscribeExamineSBZG:[],isSubscribeTemplate: [], isSubscribeImport: [], isSubscribeExport: [], isSubscribeSee: [], isSubscribeDelete: [], isSubscribeExamineKG: [], isSubscribeExamineCG: [],isSubscribeExamineCW:[], isSubscribeExamineZG: [],sdchangzhangshenhe: [],
+      isSubscribeAdd: [],isSubscribeSpecial:[], isSubscribeExamineSBZG:[],isSubscribeTemplate: [], isSubscribeImport: [], isSubscribeExport: [], isSubscribeSee: [], isSubscribeDelete: [], isSubscribeExamineKG: [], isSubscribeExamineCG: [],isSubscribeExamineCW:[], isSubscribeExamineZG: [],isSubscribeExamineNT: [],sdchangzhangshenhe: [],
       isSubscribeMilk:[],
       isokDisable: false,
       findAllProvider: [],
@@ -1122,7 +1123,7 @@ export default {
       findAllEmploye: [],
       subscriptionStatusList:[
         {id:0,name:'正常'},
-      // {id:1,name:'暂估'},
+        {id:1,name:'暂估'},
         {id:3,name:'赠品'}],//申购状态
       onlineSubscriptionList: [], createDepartList: [], edit: 0,
       requestParams: [
@@ -1148,7 +1149,9 @@ export default {
         examine2: '审核2',
         examine3: '审核3',
         examine4: '审核4',
-        examine5: '审核5',
+        examine5: '审核5',
+        examine6: '审核6',
+        examine7: '审核7',
         special: '特殊申购',
         seepart:'备件申购'
       },
@@ -1378,7 +1381,12 @@ export default {
       // 财务审核
       const SubscribeExamineCW = 'customs:subscribe:examineCW'
       const isSubscribeExamineCW = checkButtons(this.$store.state.user.buttons, SubscribeExamineCW)
-      this.isSubscribeExamineCW = isSubscribeExamineCW
+      this.isSubscribeExamineCW = isSubscribeExamineCW
+      
+      // 财务审核
+      const SubscribeExamineNT = 'customs:subscribe:examineNT'
+      const isSubscribeExamineNT = checkButtons(this.$store.state.user.buttons, SubscribeExamineNT)
+      this.isSubscribeExamineNT = isSubscribeExamineNT
     },
     getPendingList() {
       this.pending.getdataListParm.parammaps.pastureName = this.getdataListParm.parammaps.pastureName
@@ -2052,11 +2060,133 @@ export default {
     getFlowPath(){
       // 流程图
       var reason = '未通过原因:' + this.seeTemp.workflowNote
-      // if(this.seeTemp.purchase_type == 1){
-      //   // 特殊申购 
-      // }else if(){
-        
-      // }
+      if(this.seeTemp.purchase_type == 1){
+        // 特殊申购-暂估
+        if (this.seeTemp.statue === 2) {
+          this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核' },{ title: '设备主管审核' }, { title: '供应主管审核' }, { title: '场长审核' },{ title: '采购审核' },{ title: '财务审核' },]
+          this.active = 1
+        }else if (this.seeTemp.statue === 3) {
+          this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核', date: this.seeTemp.KGChargedate, name: this.seeTemp.KGChargePerson },{ title: '设备主管审核' }, { title: '供应主管审核' }, { title: '场长审核' }, { title: '采购审核' },{ title: '财务审核' }, ]
+          this.active = 2
+        }else if (this.seeTemp.statue === 4) {
+          this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核', date: this.seeTemp.KGChargedate, name: this.seeTemp.KGChargePerson, status: 'error', reason: reason },{ title: '设备主管审核' }, { title: '供应主管审核' },  { title: '场长审核' },{ title: '采购审核' },{ title: '财务审核' }]
+          this.active = 2
+        }else if (this.seeTemp.statue === 9) {
+          this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核', date: this.seeTemp.KGChargedate, name: this.seeTemp.KGChargePerson },  { title: '设备主管审核', date: this.seeTemp.equipmentdate, name: this.seeTemp.equipmentPerson },{ title: '供应主管审核' }, { title: '场长审核' },{ title: '采购审核' },{ title: '财务审核' }]
+          this.active = 3
+        } else if (this.seeTemp.statue === 10) {
+          this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核', date: this.seeTemp.KGChargedate, name: this.seeTemp.KGChargePerson },  { title: '设备主管审核', date: this.seeTemp.equipmentdate, name: this.seeTemp.equipmentPerson, status: 'error', reason: reason  }, { title: '供应主管审核' }, { title: '场长审核' },{ title: '采购审核' }, { title: '财务审核' }]
+          this.active = 3
+        } else if (this.seeTemp.statue === 5) {
+          this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核', date: this.seeTemp.KGChargedate, name: this.seeTemp.KGChargePerson }, { title: '设备主管审核', date: this.seeTemp.equipmentdate, name: this.seeTemp.equipmentPerson   }, { title: '供应主管审核', date: this.seeTemp.chargeDate, name: this.seeTemp.chargePerson },{ title: '场长审核' }, { title: '采购审核' },  { title: '财务审核' }]
+          this.active = 4
+        } else if (this.seeTemp.statue === 6) {
+          this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核', date: this.seeTemp.KGChargedate, name: this.seeTemp.KGChargePerson },  { title: '设备主管审核', date: this.seeTemp.equipmentdate, name: this.seeTemp.equipmentPerson }, { title: '供应主管审核', date: this.seeTemp.chargeDate, name: this.seeTemp.chargePerson, status: 'error', reason: reason },{ title: '场长审核' }, { title: '采购审核' },  { title: '财务审核' }]
+          this.active = 4
+        } else if (this.seeTemp.statue === 11) {
+          this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核', date: this.seeTemp.KGChargedate, name: this.seeTemp.KGChargePerson }, { title: '设备主管审核', date: this.seeTemp.equipmentdate, name: this.seeTemp.equipmentPerson   }, { title: '供应主管审核', date: this.seeTemp.chargeDate, name: this.seeTemp.chargePerson },{ title: '场长审核', date: this.seeTemp.fielddate, name: this.seeTemp.fieldPerson }, { title: '采购审核' },  { title: '财务审核' }]
+          this.active = 5
+        } else if (this.seeTemp.statue === 12) {
+          this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核', date: this.seeTemp.KGChargedate, name: this.seeTemp.KGChargePerson },  { title: '设备主管审核', date: this.seeTemp.equipmentdate, name: this.seeTemp.equipmentPerson }, { title: '供应主管审核', date: this.seeTemp.chargeDate, name: this.seeTemp.chargePerson},{ title: '场长审核' ,date: this.seeTemp.fielddate, name: this.seeTemp.fieldPerson, status: 'error', reason: reason }, { title: '采购审核' },  { title: '财务审核' }]
+          this.active = 5
+        } else if (this.seeTemp.statue === 7) {
+          this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核', date: this.seeTemp.KGChargedate, name: this.seeTemp.KGChargePerson }, { title: '设备主管审核', date: this.seeTemp.equipmentdate, name: this.seeTemp.equipmentPerson   }, { title: '供应主管审核', date: this.seeTemp.chargeDate, name: this.seeTemp.chargePerson },{ title: '场长审核', date: this.seeTemp.fielddate, name: this.seeTemp.fieldPerson }, { title: '采购审核',date: this.seeTemp.CGChargedate, name: this.seeTemp.CGChargePerson },  { title: '财务审核' }]
+          this.active = 6
+        } else if (this.seeTemp.statue === 8) {
+          this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核', date: this.seeTemp.KGChargedate, name: this.seeTemp.KGChargePerson },  { title: '设备主管审核', date: this.seeTemp.equipmentdate, name: this.seeTemp.equipmentPerson }, { title: '供应主管审核', date: this.seeTemp.chargeDate, name: this.seeTemp.chargePerson},{ title: '场长审核' ,date: this.seeTemp.fielddate, name: this.seeTemp.fieldPerson}, { title: '采购审核',date: this.seeTemp.CGChargedate, name: this.seeTemp.CGChargePerson, status: 'error', reason: reason },  { title: '财务审核' }]
+          this.active = 6
+        } else if (this.seeTemp.statue === 13) {
+          this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核', date: this.seeTemp.KGChargedate, name: this.seeTemp.KGChargePerson }, { title: '设备主管审核', date: this.seeTemp.equipmentdate, name: this.seeTemp.equipmentPerson   }, { title: '供应主管审核', date: this.seeTemp.chargeDate, name: this.seeTemp.chargePerson },{ title: '场长审核', date: this.seeTemp.fielddate, name: this.seeTemp.fieldPerson }, { title: '采购审核',date: this.seeTemp.CGChargedate, name: this.seeTemp.CGChargePerson },  { title: '财务审核',date: this.seeTemp.financedate, name: this.seeTemp.financeName }]
+          this.active = 7
+        } else if (this.seeTemp.statue === 14) {
+          this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核', date: this.seeTemp.KGChargedate, name: this.seeTemp.KGChargePerson },  { title: '设备主管审核', date: this.seeTemp.equipmentdate, name: this.seeTemp.equipmentPerson }, { title: '供应主管审核', date: this.seeTemp.chargeDate, name: this.seeTemp.chargePerson},{ title: '场长审核' ,date: this.seeTemp.fielddate, name: this.seeTemp.fieldPerson}, { title: '采购审核',date: this.seeTemp.CGChargedate, name: this.seeTemp.CGChargePerson},  { title: '财务审核',date: this.seeTemp.financedate, name: this.seeTemp.financeName, status: 'error', reason: reason }]
+          this.active = 7
+        }
+      }else if(this.seeTemp.purchase_type == 3){
+        // 赠品
+        this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }]
+        this.active = 1
+      } else if(this.seeTemp.purchase_type < 0 || this.seeTemp.purchase_type == 0){
+        if(this.seeTemp.departmentName == '挤奶处'){
+          // 奶厅申购审核流程
+          if (this.seeTemp.statue === 2) {
+            this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核' },{ title: '设备主管审核' }, { title: '供应主管审核' },{ title: '场长审核' },{ title: '职能中心审核' },{ title: '采购审核' }]
+            this.active = 1
+          }else if (this.seeTemp.statue === 3) {
+            this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核', date: this.seeTemp.KGChargedate, name: this.seeTemp.KGChargePerson },{ title: '设备主管审核' }, { title: '供应主管审核' },{ title: '场长审核' },{ title: '职能中心审核' }, { title: '采购审核' }]
+            this.active = 2
+          } else if (this.seeTemp.statue === 4) {
+            this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核', date: this.seeTemp.KGChargedate, name: this.seeTemp.KGChargePerson, status: 'error', reason: reason },{ title: '设备主管审核' }, { title: '供应主管审核' },{ title: '场长审核' },{ title: '职能中心审核' }, { title: '采购审核' }]
+            this.active = 2
+          } else if (this.seeTemp.statue === 9) {
+            this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核', date: this.seeTemp.KGChargedate, name: this.seeTemp.KGChargePerson },  { title: '设备主管审核', date: this.seeTemp.equipmentdate, name: this.seeTemp.equipmentPerson },{ title: '供应主管审核' },{ title: '场长审核' },{ title: '职能中心审核' }, { title: '采购审核' }]
+            this.active = 3
+          } else if (this.seeTemp.statue === 10) {
+            this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核', date: this.seeTemp.KGChargedate, name: this.seeTemp.KGChargePerson },  { title: '设备主管审核', date: this.seeTemp.equipmentdate, name: this.seeTemp.equipmentPerson, status: 'error', reason: reason  }, { title: '供应主管审核' },{ title: '场长审核' },{ title: '职能中心审核' }, { title: '采购审核' }]
+            this.active = 3
+          } else if (this.seeTemp.statue === 5) {
+            this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核', date: this.seeTemp.KGChargedate, name: this.seeTemp.KGChargePerson },  { title: '设备主管审核', date: this.seeTemp.equipmentdate, name: this.seeTemp.equipmentPerson },{ title: '供应主管审核', date: this.seeTemp.chargeDate, name: this.seeTemp.chargePerson },{ title: '场长审核' },{ title: '职能中心审核' }, { title: '采购审核' }]
+            this.active = 4
+          } else if (this.seeTemp.statue === 6) {
+            this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核', date: this.seeTemp.KGChargedate, name: this.seeTemp.KGChargePerson },  { title: '设备主管审核', date: this.seeTemp.equipmentdate, name: this.seeTemp.equipmentPerson  }, { title: '供应主管审核', date: this.seeTemp.chargeDate, name: this.seeTemp.chargePerson, status: 'error', reason: reason },{ title: '场长审核' },{ title: '职能中心审核' },{ title: '采购审核' }]
+            this.active = 4
+          } else if (this.seeTemp.statue === 11) {
+            this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核', date: this.seeTemp.KGChargedate, name: this.seeTemp.KGChargePerson },  { title: '设备主管审核', date: this.seeTemp.equipmentdate, name: this.seeTemp.equipmentPerson },{ title: '供应主管审核', date: this.seeTemp.chargeDate, name: this.seeTemp.chargePerson },{ title: '场长审核', date: this.seeTemp.fielddate, name: this.seeTemp.fieldPerson },{ title: '职能中心审核' }, { title: '采购审核' }]
+            this.active = 5
+          } else if (this.seeTemp.statue === 12) {
+            this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核', date: this.seeTemp.KGChargedate, name: this.seeTemp.KGChargePerson },  { title: '设备主管审核', date: this.seeTemp.equipmentdate, name: this.seeTemp.equipmentPerson  }, { title: '供应主管审核', date: this.seeTemp.chargeDate, name: this.seeTemp.chargePerson },{ title: '场长审核', date: this.seeTemp.fielddate, name: this.seeTemp.fieldPerson, status: 'error', reason: reason  },{ title: '职能中心审核' },{ title: '采购审核' }]
+            this.active = 5
+          } else if (this.seeTemp.statue === 15) {
+            this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核', date: this.seeTemp.KGChargedate, name: this.seeTemp.KGChargePerson },  { title: '设备主管审核', date: this.seeTemp.equipmentdate, name: this.seeTemp.equipmentPerson },{ title: '供应主管审核', date: this.seeTemp.chargeDate, name: this.seeTemp.chargePerson },{ title: '场长审核', date: this.seeTemp.fielddate, name: this.seeTemp.fieldPerson },{ title: '职能中心审核', date: this.seeTemp.positionName, name: this.seeTemp.positiondate }, { title: '采购审核' }]
+            this.active = 6
+          } else if (this.seeTemp.statue === 16) {
+            this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核', date: this.seeTemp.KGChargedate, name: this.seeTemp.KGChargePerson },  { title: '设备主管审核', date: this.seeTemp.equipmentdate, name: this.seeTemp.equipmentPerson },{ title: '供应主管审核', date: this.seeTemp.chargeDate, name: this.seeTemp.chargePerson },{ title: '场长审核', date: this.seeTemp.fielddate, name: this.seeTemp.fieldPerson },{ title: '职能中心审核', date: this.seeTemp.positionName, name: this.seeTemp.positiondate, status: 'error', reason: reason  }, { title: '采购审核' }]
+            this.active = 6
+          } else if (this.seeTemp.statue === 7) {
+            this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核', date: this.seeTemp.KGChargedate, name: this.seeTemp.KGChargePerson },  { title: '设备主管审核', date: this.seeTemp.equipmentdate, name: this.seeTemp.equipmentPerson },{ title: '供应主管审核', date: this.seeTemp.chargeDate, name: this.seeTemp.chargePerson },{ title: '场长审核', date: this.seeTemp.fielddate, name: this.seeTemp.fieldPerson },{ title: '职能中心审核', date: this.seeTemp.positionName, name: this.seeTemp.positiondate }, { title: '采购审核', date: this.seeTemp.CGChargedate, name: this.seeTemp.CGChargePerson }]
+            this.active = 7
+          } else if (this.seeTemp.statue === 8) {
+            this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核', date: this.seeTemp.KGChargedate, name: this.seeTemp.KGChargePerson },  { title: '设备主管审核', date: this.seeTemp.equipmentdate, name: this.seeTemp.equipmentPerson },{ title: '供应主管审核', date: this.seeTemp.chargeDate, name: this.seeTemp.chargePerson },{ title: '场长审核', date: this.seeTemp.fielddate, name: this.seeTemp.fieldPerson },{ title: '职能中心审核', date: this.seeTemp.positionName, name: this.seeTemp.positiondate }, { title: '采购审核', date: this.seeTemp.CGChargedate, name: this.seeTemp.CGChargePerson, status: 'error', reason: reason }]
+            this.active = 7
+          }
+        }else{
+          // 申购合单审核流程
+          if (this.seeTemp.statue === 2) {
+            this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核' },{ title: '设备主管审核' }, { title: '供应主管审核' },{ title: '场长审核' },{ title: '采购审核' }]
+            this.active = 1
+          }else if (this.seeTemp.statue === 3) {
+            this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核', date: this.seeTemp.KGChargedate, name: this.seeTemp.KGChargePerson },{ title: '设备主管审核' }, { title: '供应主管审核' },{ title: '场长审核' }, { title: '采购审核' }]
+            this.active = 2
+          } else if (this.seeTemp.statue === 4) {
+            this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核', date: this.seeTemp.KGChargedate, name: this.seeTemp.KGChargePerson, status: 'error', reason: reason },{ title: '设备主管审核' }, { title: '供应主管审核' },{ title: '场长审核' }, { title: '采购审核' }]
+            this.active = 2
+          } else if (this.seeTemp.statue === 9) {
+            this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核', date: this.seeTemp.KGChargedate, name: this.seeTemp.KGChargePerson },  { title: '设备主管审核', date: this.seeTemp.equipmentdate, name: this.seeTemp.equipmentPerson },{ title: '供应主管审核' },{ title: '场长审核' }, { title: '采购审核' }]
+            this.active = 3
+          } else if (this.seeTemp.statue === 10) {
+            this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核', date: this.seeTemp.KGChargedate, name: this.seeTemp.KGChargePerson },  { title: '设备主管审核', date: this.seeTemp.equipmentdate, name: this.seeTemp.equipmentPerson, status: 'error', reason: reason  }, { title: '供应主管审核' },{ title: '场长审核' }, { title: '采购审核' }]
+            this.active = 3
+          } else if (this.seeTemp.statue === 5) {
+            this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核', date: this.seeTemp.KGChargedate, name: this.seeTemp.KGChargePerson },  { title: '设备主管审核', date: this.seeTemp.equipmentdate, name: this.seeTemp.equipmentPerson },{ title: '供应主管审核', date: this.seeTemp.chargeDate, name: this.seeTemp.chargePerson },{ title: '场长审核' }, { title: '采购审核' }]
+            this.active = 4
+          } else if (this.seeTemp.statue === 6) {
+            this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核', date: this.seeTemp.KGChargedate, name: this.seeTemp.KGChargePerson },  { title: '设备主管审核', date: this.seeTemp.equipmentdate, name: this.seeTemp.equipmentPerson  }, { title: '供应主管审核', date: this.seeTemp.chargeDate, name: this.seeTemp.chargePerson, status: 'error', reason: reason },{ title: '场长审核' },{ title: '采购审核' }]
+            this.active = 4
+          } else if (this.seeTemp.statue === 11) {
+            this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核', date: this.seeTemp.KGChargedate, name: this.seeTemp.KGChargePerson },  { title: '设备主管审核', date: this.seeTemp.equipmentdate, name: this.seeTemp.equipmentPerson },{ title: '供应主管审核', date: this.seeTemp.chargeDate, name: this.seeTemp.chargePerson },{ title: '场长审核', date: this.seeTemp.fielddate, name: this.seeTemp.fieldPerson }, { title: '采购审核' }]
+            this.active = 5
+          } else if (this.seeTemp.statue === 12) {
+            this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核', date: this.seeTemp.KGChargedate, name: this.seeTemp.KGChargePerson },  { title: '设备主管审核', date: this.seeTemp.equipmentdate, name: this.seeTemp.equipmentPerson  }, { title: '供应主管审核', date: this.seeTemp.chargeDate, name: this.seeTemp.chargePerson },{ title: '场长审核', date: this.seeTemp.fielddate, name: this.seeTemp.fieldPerson, status: 'error', reason: reason  },{ title: '采购审核' }]
+            this.active = 5
+          } else if (this.seeTemp.statue === 7) {
+            this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核', date: this.seeTemp.KGChargedate, name: this.seeTemp.KGChargePerson },  { title: '设备主管审核', date: this.seeTemp.equipmentdate, name: this.seeTemp.equipmentPerson },{ title: '供应主管审核', date: this.seeTemp.chargeDate, name: this.seeTemp.chargePerson },{ title: '场长审核', date: this.seeTemp.fielddate, name: this.seeTemp.fieldPerson }, { title: '采购审核', date: this.seeTemp.CGChargedate, name: this.seeTemp.CGChargePerson  }]
+            this.active = 6
+          } else if (this.seeTemp.statue === 8) {
+            this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核', date: this.seeTemp.KGChargedate, name: this.seeTemp.KGChargePerson },  { title: '设备主管审核', date: this.seeTemp.equipmentdate, name: this.seeTemp.equipmentPerson  }, { title: '供应主管审核', date: this.seeTemp.chargeDate, name: this.seeTemp.chargePerson },{ title: '场长审核', date: this.seeTemp.fielddate, name: this.seeTemp.fieldPerson,  },{ title: '采购审核', date: this.seeTemp.CGChargedate, name: this.seeTemp.CGChargePerson, status: 'error', reason: reason }]
+            this.active = 6
+          }
+        }
+      }
     },
     getSeeList() {
       this.listLoadingSee = true
@@ -2526,27 +2656,29 @@ export default {
           this.requestParam.name = 'partpurchaseCharge3'
           this.requestParam.parammaps = {}
           this.requestParam.parammaps.id = this.examineTemp.id
-          if (this.examineTemp.statue == 1) {
-            if(this.examineTemp.purchase_type !== 1 && this.examineTemp.purchase_type !== 3){
-              console.log(this.isApplyEx4,'=====')
-              if(this.isApplyEx4 == true){
-                this.requestParam.parammaps.statue = 5
-              }else{
-                this.requestParam.parammaps.statue = 11
-              }
-            }else{
-              this.requestParam.parammaps.statue = 5
-            }
+          if (this.examineTemp.statue == 1) {
+             this.requestParam.parammaps.statue = 5
+            // if(this.examineTemp.purchase_type !== 1 && this.examineTemp.purchase_type !== 3){
+            //   console.log(this.isApplyEx4,'=====')
+            //   if(this.isApplyEx4 == true){
+            //     this.requestParam.parammaps.statue = 5
+            //   }else{
+            //     this.requestParam.parammaps.statue = 11
+            //   }
+            // }else{
+            //   this.requestParam.parammaps.statue = 5
+            // }
           } else if (this.examineTemp.statue == 2) {
-            if(this.examineTemp.purchase_type !== 1 && this.examineTemp.purchase_type !== 3){
-              if(this.isApplyEx4 == true){
-                this.requestParam.parammaps.statue = 6
-              }else{
-                this.requestParam.parammaps.statue = 12
-              }
-            }else{
-              this.requestParam.parammaps.statue = 6
-            }
+            // if(this.examineTemp.purchase_type !== 1 && this.examineTemp.purchase_type !== 3){
+            //   if(this.isApplyEx4 == true){
+            //     this.requestParam.parammaps.statue = 6
+            //   }else{
+            //     this.requestParam.parammaps.statue = 12
+            //   }
+            // }else{
+            //   this.requestParam.parammaps.statue = 6
+            // }
+            this.requestParam.parammaps.statue = 6
           }
           this.requestParam.parammaps.empId	 = Cookies.get('employeid')
           this.requestParam.parammaps.workflowNote = this.examineTemp.workflowNote
@@ -2750,6 +2882,61 @@ export default {
           })
         }
       })
+    },
+    handleExamine7(row) {
+      console.log('点击了奶厅职能中心审核')
+      if (row == undefined) {
+        this.examineTemp = this.seeTemp
+        this.$set(this.seeTemp, 'statue', 1)
+        this.$set(this.seeTemp, 'workflowNote', '')
+      } else {
+        this.examineTemp = Object.assign({}, row)
+        this.$set(this.examineTemp, 'workflowNote', '')
+        this.$set(this.examineTemp, 'statue', 1)
+      }
+      this.dialogStatus = 'examine7'
+      this.dialogFormVisible_Examine = true
+      this.statueReason = false
+    },
+    createExamineData7() {
+      console.log('点击了奶厅职能中心审核')
+      this.isokDisable = true
+      setTimeout(() => {
+        this.isokDisable = false
+      }, 10000)
+      this.$refs['examineTemp'].validate(valid => {
+        if (valid) {
+          this.requestParam = {}
+          this.requestParam.name = 'partpurchaseFinanceId'
+          this.requestParam.parammaps = {}
+          this.requestParam.parammaps.id = this.examineTemp.id
+          if (this.examineTemp.statue == 1) {
+            this.requestParam.parammaps.statue = 15
+          } else if (this.examineTemp.statue == 2) {
+            this.requestParam.parammaps.statue = 16
+          }
+          this.requestParam.parammaps.financeId	 = Cookies.get('employeid')
+          this.requestParam.parammaps.workflowNote = this.examineTemp.workflowNote
+          PostDataByName(this.requestParam).then(response => {
+            console.log('审核确认发送参数', this.requestParam)
+            this.isokDisable = false
+            if (response.msg !== 'fail') {
+              this.get_table_data()
+              this.dialogFormVisible_Examine = false
+              this.dialogFormVisible_See = false
+              this.statueReason = false
+              this.$notify({
+                title: '成功',
+                message: '审核成功',
+                type: 'success',
+                duration: 2000
+              })
+            } else {
+              failproccess(response, this.$notify)
+            }
+          })
+        }
+      })
     },
     handle_specialSubscription(){
       this.resetCreateTemp()
@@ -3093,7 +3280,7 @@ export default {
       }).catch(() => {
         this.$message({
           type: 'info',
-          message: '已取消删除'
+          message: '已取消'
         });
       });
     },