zh hace 2 años
padre
commit
bef7020622

+ 2 - 2
src/views/sales_control/sales_management/components/return_sales_details.vue

@@ -23,7 +23,7 @@
         <div v-if="!detailsId">
           <el-button type="primary" :disabled="!dis" size="mini" @click="handelSubmit(1)">提交</el-button>
           <el-button v-if="dis" size="mini" @click="onReset">重置</el-button>
-          <el-button v-if="!isFront" size="mini" :disabled="dis" @click="handleInform(2)">退货通知</el-button>
+          <el-button v-if="details.stockType ===1" size="mini" :disabled="dis" @click="handleInform(2)">退货通知</el-button>
         </div>
         <div v-else>
           <el-button type="primary" size="mini" @click="handelSubmit(2)">保存</el-button>
@@ -340,7 +340,7 @@ export default {
               type: 'text'
             }
           ]
-          if (this.isFront === false) {
+          if (this.details.stockType === 2) {
             this.handleBack()
           }
 

+ 1 - 1
src/views/sales_control/sales_management/components/return_sales_form.vue

@@ -340,7 +340,7 @@ export default {
               type: 'text'
             }
           ]
-          if (this.isFront === false) {
+          if (this.details.stockType === 2) {
             this.handleBack()
           }