|
@@ -24,14 +24,9 @@
|
|
|
<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 ==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>
|
|
|
-
|
|
|
+ <el-button v-if="$refs.header.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>
|
|
|
- <el-button v-if="!detailsId" size="mini" @click="onReset">重置</el-button>
|
|
|
- </div> -->
|
|
|
+
|
|
|
</template>
|
|
|
<template v-slot:custom="{ item: { row, $index } }">
|
|
|
<div>{{ diffQty(row) }}</div>
|
|
@@ -144,6 +139,7 @@ export default {
|
|
|
},
|
|
|
created() {
|
|
|
if (this.detailsId) {
|
|
|
+ this.dis = false
|
|
|
detailRefund({ id: this.detailsId }).then(res => {
|
|
|
this.dataList = res.data.orders
|
|
|
this.details = res.data
|
|
@@ -163,13 +159,6 @@ export default {
|
|
|
|
|
|
methods: {
|
|
|
getDialogList(p) {
|
|
|
- // let func = getcustomerFrontList
|
|
|
- // if (this.isFront===true){
|
|
|
- // func = getcustomerFrontList
|
|
|
- // }
|
|
|
- // if (this.isFront===false){
|
|
|
- // func = getFrontListCustomer
|
|
|
- // }
|
|
|
return listOrder(...p)
|
|
|
},
|
|
|
confirm(selected) {
|
|
@@ -201,7 +190,6 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- console.log(this.$refs.dia.$refs.pageRef.$refs.zjpage.$refs.tableEl.tableData)
|
|
|
selected.forEach(k => {
|
|
|
k.diffQty = Number(k.qty) - Number(k.refundQty)
|
|
|
k.qty = k.refundQty
|
|
@@ -212,6 +200,7 @@ export default {
|
|
|
if (!this.detailsId) {
|
|
|
this.details = this.dataList[0]
|
|
|
this.details.customerOrderNo = obj.id
|
|
|
+ this.details.stockType = this.details.stockType == '嘉贤前置仓' ? 1 : 2
|
|
|
}
|
|
|
|
|
|
this.returnId = obj.id
|
|
@@ -299,6 +288,7 @@ export default {
|
|
|
orders: list,
|
|
|
customerOrderNo: this.details.customerOrderNo,
|
|
|
status
|
|
|
+
|
|
|
}
|
|
|
if (type === 1) {
|
|
|
params.id = ''
|