瀏覽代碼

修改了备件申购

duanxiaoduan 1 年之前
父節點
當前提交
69f98481c6
共有 1 個文件被更改,包括 43 次插入6 次删除
  1. 43 6
      src/views/custom/subscribe/index.vue

+ 43 - 6
src/views/custom/subscribe/index.vue

@@ -93,11 +93,12 @@
       <el-table-column label="操作" align="center" width="250" class-name="small-padding fixed-width" fixed="right">
       <el-table-column label="操作" align="center" width="250" class-name="small-padding fixed-width" fixed="right">
         <template slot-scope="{row}">
         <template slot-scope="{row}">
           <el-button v-if="isSubscribeSee" type="primary" size="mini" @click="form_see(row)">查看</el-button>
           <el-button v-if="isSubscribeSee" type="primary" size="mini" @click="form_see(row)">查看</el-button>
-          <el-button  style="display:inline-block" type="success" size="mini" @click="form_edit1(row)">合单</el-button>
+          <el-button  v-if="isSubscribeExamineKG && row.statue == 2" style="display:inline-block" type="success" size="mini" @click="form_edit1(row)">合单</el-button>
           <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-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-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)">审核1</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)">审核2</el-button>
@@ -734,7 +735,7 @@
             <el-col>
             <el-col>
               <el-form-item label="操作:">
               <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)">审核1</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)">审核2</el-button>
                 <!-- 供应商主管 -->
                 <!-- 供应商主管 -->
@@ -1038,7 +1039,7 @@
             <el-col>
             <el-col>
               <el-form-item label="操作:">
               <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)">审核1</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)">审核2</el-button>
                 <!-- 供应商主管 -->
                 <!-- 供应商主管 -->
@@ -1983,7 +1984,7 @@ export default {
         this.textMap.see = '查看'
         this.textMap.see = '查看'
       }
       }
       this.dialogStatus = 'see'
       this.dialogStatus = 'see'
-      this.dialogFormVisibleSee = true
+      // this.dialogFormVisibleSee = true
       this.dialogFormVisibleSee1 = true
       this.dialogFormVisibleSee1 = true
       this.seeTemp = Object.assign({}, row)
       this.seeTemp = Object.assign({}, row)
       this.seeTemp.purchaseType = String(row.purchase_type)
       this.seeTemp.purchaseType = String(row.purchase_type)
@@ -3099,7 +3100,7 @@ export default {
       this.requestParam = {}
       this.requestParam = {}
       this.requestParam.name = 'partpurchaseCharge'
       this.requestParam.name = 'partpurchaseCharge'
       this.requestParam.parammaps = {}
       this.requestParam.parammaps = {}
-      this.requestParam.parammaps.id = this.examineTemp.id
+      this.requestParam.parammaps.id = this.modifyTemp.id
       this.requestParam.parammaps.statue = 3
       this.requestParam.parammaps.statue = 3
       this.requestParam.parammaps.empId	 = Cookies.get('employeid')
       this.requestParam.parammaps.empId	 = Cookies.get('employeid')
       PostDataByName(this.requestParam).then(response => {
       PostDataByName(this.requestParam).then(response => {
@@ -3114,6 +3115,42 @@ export default {
         }
         }
       })
       })
     },
     },
+    form_modify1(row){
+      // 提交
+      this.$confirm('确认提交吗?', '', {
+        confirmButtonText: '确定',
+        cancelButtonText: '取消',
+        type: 'warning'
+      }).then(() => {
+        console.log('点击了库管审核')
+        this.isokDisable = true
+        setTimeout(() => {
+          this.isokDisable = false
+        }, 1000)
+        this.requestParam = {}
+        this.requestParam.name = 'partpurchaseCharge'
+        this.requestParam.parammaps = {}
+        this.requestParam.parammaps.id = row.id
+        this.requestParam.parammaps.statue = 3
+        this.requestParam.parammaps.empId	 = Cookies.get('employeid')
+        PostDataByName(this.requestParam).then(response => {
+          console.log('提交确认发送参数', this.requestParam)
+          this.isokDisable = false
+          if (response.msg !== 'fail') {
+            this.get_table_data()
+            this.dialogFormVisible_modify = false
+            this.$notify({ title: '成功', message: '成功', type: 'success', duration: 2000 })
+          } else {
+            failproccess(response, this.$notify)
+          }
+        })
+      }).catch(() => {
+        this.$message({
+          type: 'info',
+          message: '已取消删除'
+        });
+      });
+    },
     handle_milkSubscription(){
     handle_milkSubscription(){
       // 奶厅申购
       // 奶厅申购
       this.textMap.create = '奶厅申购'
       this.textMap.create = '奶厅申购'