浏览代码

【修改】bug

莫绍宝 3 年之前
父节点
当前提交
494edb5594
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. 7 1
      src/views/supply/engin/components/home_examine.vue

+ 7 - 1
src/views/supply/engin/components/home_examine.vue

@@ -326,7 +326,7 @@
       <div class="footer">
         <el-button type="primary" @click="clickSubmitForm(1)" :loading="formLoading">审批通过</el-button>
         <el-button type="warning" @click="clickSubmitForm(0)" :loading="formLoading">审批驳回</el-button>
-        <el-popconfirm title="确定关闭吗?" @onConfirm="goBack" style="margin-left: 10px;" v-if=" !isDealer">
+        <el-popconfirm title="确定关闭吗?" @onConfirm="goBack" style="margin-left: 10px;" v-if="!isCustomer">
           <el-button slot="reference">关 闭</el-button>
         </el-popconfirm>
       </div>
@@ -338,6 +338,7 @@
 <script>
 import { getOrderDetail, examineHome } from "@/api/supply/engin";
 import { getTypeList, getSalesmanList } from '@/api/common'
+import { mapGetters } from "vuex";
 
 export default {
   name: 'HomeExamine',
@@ -373,6 +374,10 @@ export default {
     }
   },
 
+  computed:{
+    ...mapGetters(['isCustomer']),
+  },
+
   watch: {
     goodsList: {
       handler(newValue, oldValue) {
@@ -517,6 +522,7 @@ export default {
             }).then(() => {
               this.$successMsg('进入下一张待审批订单');
               this.detailData = res.data;
+              this.goodsList = res.data.items;
               this.examineForm.remark = '';
             }).catch(() => {
               this.goBack();