Ver código fonte

【修改】商用工程订单 非计划单限制直调

howie 2 anos atrás
pai
commit
c7cd9f156a

+ 5 - 2
src/views/supply/engin/components/commerce_detail.vue

@@ -233,8 +233,11 @@
           <el-button type="success" @click="toCheckOrder">联查单据</el-button>
           <el-button v-if="detailData.examineStatus === 'SAVE' || detailData.examineStatus === 'WAIT'" type="danger" @click="closeData">关闭订单</el-button>
           <!-- <el-button type="primary" @click="openDirectDialog" v-if="!isDealer">提前开票</el-button> -->
-          <el-button v-if="!isDealer" type="primary" @click="overData">直调完结</el-button>
-          <el-button v-if="!isDealer" type="primary" :disabled="detailData.directTransferStatus" @click="openDeliverDialog">直调发货</el-button>
+
+          <template v-if="detailData.isPlanOrder">
+            <el-button v-if="!isDealer" type="primary" @click="overData">直调完结</el-button>
+            <el-button v-if="!isDealer" type="primary" :disabled="detailData.directTransferStatus" @click="openDeliverDialog">直调发货</el-button>
+          </template>
           <el-button @click="goBack">返回列表</el-button>
         </div>
       </div>