Ver Fonte

fix: bug

zh há 2 anos atrás
pai
commit
d36b11ae98

+ 5 - 6
src/views/sales_control/sales_management/components/customer_sales_details.vue

@@ -5,13 +5,13 @@
     <sales-table :data-list="dataList" :column="column" @handleSelection="handleSelection">
       <template #events>
         <el-button
-          v-if="details.stockType == 1 || (details.status == 1 &&details.stockType == 1 )"
+          v-if="(details.status == 1 &&details.stockType == 1 )"
           type="primary"
           size="mini"
           @click="handleInform(2)"
         >通知发货</el-button>
-        <el-button v-if="details.stockType == 1 || (details.status == 2 && details.stockType == 1 )" size="mini" @click="handleSendRevoke(1)">撤销发货</el-button>
-        <el-button v-if="details.stockType == 2 || (details.status == 1 && details.stockType == 2)" type="primary" size="mini" @click="handleSignIn(4)">
+        <el-button v-if="(details.status == 2 && details.stockType == 1)" size="mini" @click="handleSendRevoke(1)">撤销发货</el-button>
+        <el-button v-if="(details.status == 1 && details.stockType == 2)" type="primary" size="mini" @click="handleSignIn(4)">
           签收
         </el-button>
       </template>
@@ -113,16 +113,15 @@ export default {
     this.isFront = JSON.parse(localStorage.getItem('supply_user')).isFront
     if (this.detailsId) {
       getFrontOrderDetail({ id: this.detailsId }).then(res => {
-        this.dataList = res.data.orders
         this.details = res.data
+        this.dataList = res.data.orders
         this.$refs.header.screenForm = res.data
         this.$refs.header.screenForm.disabled = true
-
         this.$refs.header.screenForm.provinceId = res.data.province
         this.$refs.header.screenForm.cityId = res.data.city
         this.$refs.header.screenForm.areaId = res.data.area
         this.$refs.header.screenForm.streetId = res.data.street
-        this.$refs.header.screenForm.stockType = res.data.stockType == 1 ? '前置仓' : '商家仓'
+        this.$refs.header.screenForm.stockType = res.data.stockType 
       })
 
     }