Ver Fonte

Finish Hotfix-zh-244

howie há 3 anos atrás
pai
commit
9c66529ef6

+ 1 - 1
src/views/supply/engin/components/home_detail.vue

@@ -232,7 +232,7 @@
       <div class="page-footer">
       <div class="page-footer">
         <div class="footer">
         <div class="footer">
           <el-button type="success" @click="toCheckOrder">联查单据</el-button>
           <el-button type="success" @click="toCheckOrder">联查单据</el-button>
-          <el-button type="danger" @click="closeData" v-if=" (detailData.examineStatus === 'SAVE' || detailData.examineStatus === 'WAIT')">关闭订单</el-button>
+          <el-button type="danger" @click="closeData" v-if="!isDealer && (detailData.examineStatus === 'SAVE' || detailData.examineStatus === 'WAIT')">关闭订单</el-button>
           <el-button type="primary" @click="openDirectDialog" v-if="!isDealer">提前开票</el-button>
           <el-button type="primary" @click="openDirectDialog" v-if="!isDealer">提前开票</el-button>
           <el-button type="primary" @click="overData" v-if="!isDealer">直调完结</el-button>
           <el-button type="primary" @click="overData" v-if="!isDealer">直调完结</el-button>
           <el-button type="primary" @click="openDeliverDialog" :disabled="detailData.directTransferStatus" v-if="!isDealer">直调发货</el-button>
           <el-button type="primary" @click="openDeliverDialog" :disabled="detailData.directTransferStatus" v-if="!isDealer">直调发货</el-button>

+ 1 - 1
src/views/supply/engin/components/home_form.vue

@@ -134,7 +134,7 @@
         </el-col>
         </el-col>
         <el-col :xs="24" :sm="8" :lg="8">
         <el-col :xs="24" :sm="8" :lg="8">
           <el-form-item label="保证函" prop="refPromiseProvide">
           <el-form-item label="保证函" prop="refPromiseProvide">
-            <el-select v-model="mainForm.refPromiseProvide" placeholder="选择保证函状态" :disabled=" (listItem && isDealer)?true:false" size="small" clearable style="width: 100%">
+            <el-select v-model="mainForm.refPromiseProvide" placeholder="选择保证函状态" :disabled="isDealer?true:false" size="small" clearable style="width: 100%">
               <el-option label="未保证" value="未保证"></el-option>
               <el-option label="未保证" value="未保证"></el-option>
               <el-option label="已保证" value="已保证"></el-option>
               <el-option label="已保证" value="已保证"></el-option>
             </el-select>
             </el-select>

+ 6 - 2
src/views/supply/engin/components/home_return.vue

@@ -232,7 +232,7 @@
     <div class="page-footer">
     <div class="page-footer">
       <div class="footer">
       <div class="footer">
         <el-button type="primary" @click="clickSubmitForm()">确定退订</el-button>
         <el-button type="primary" @click="clickSubmitForm()">确定退订</el-button>
-        <el-popconfirm title="确定关闭吗?" @onConfirm="goBack" style="margin-left: 10px;">
+        <el-popconfirm title="确定关闭吗?" @onConfirm="goBack" style="margin-left: 10px;"  v-if="!isDealer">
           <el-button slot="reference">关 闭</el-button>
           <el-button slot="reference">关 闭</el-button>
         </el-popconfirm>
         </el-popconfirm>
       </div>
       </div>
@@ -272,7 +272,11 @@ export default {
       }
       }
     }
     }
   },
   },
-
+ computed: {
+    isDealer() {
+      return JSON.parse(localStorage.getItem("supply_user")).isCustomer
+    },
+ },
   created() {
   created() {
     this.getDetail();
     this.getDetail();
   },
   },