|
@@ -24,7 +24,7 @@
|
|
|
<el-button v-if="!detailsId" type="primary" :disabled="!dis" size="mini" @click="handelSubmit(1)">提交</el-button>
|
|
|
<el-button v-else type="primary" size="mini" @click="handelSubmit(2)">提交</el-button>
|
|
|
<el-button v-if="dis" size="mini" @click="onReset">重置</el-button>
|
|
|
- <el-button v-if="details.stockType !=2 && !detailsId" size="mini" :disabled="dis" @click="handleInform(2)">退货通知</el-button>
|
|
|
+ <el-button v-if="details.stockType ==1 && !detailsId" size="mini" :disabled="dis" @click="handleInform(2)">退货通知</el-button>
|
|
|
<el-button v-if="details.stockType ==2 && detailsId" size="mini" @click="handleInform(2)">退货通知</el-button>
|
|
|
|
|
|
</div>
|
|
@@ -213,7 +213,6 @@ export default {
|
|
|
this.details = this.dataList[0]
|
|
|
this.details.customerOrderNo = obj.id
|
|
|
}
|
|
|
- this.detailsId = this.detailsId
|
|
|
|
|
|
this.returnId = obj.id
|
|
|
this.itemId = this.dataList[0].itemId
|
|
@@ -354,7 +353,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
handleInform(status = 2) {
|
|
|
- sendRefund({ id: this.salesId || this.details.id, status }).then(res => {
|
|
|
+ sendRefund({ id: this.salesId || this.detailsId, status }).then(res => {
|
|
|
this.$successMsg('退货通知')
|
|
|
this.handleBack()
|
|
|
})
|