|
@@ -11,10 +11,11 @@
|
|
|
</template>
|
|
|
<template #events>
|
|
|
<div>
|
|
|
- <el-button type="primary" size="mini" @click="handelSubmit">提交</el-button>
|
|
|
- <el-button size="mini">重置</el-button>
|
|
|
+ <el-button type="primary" size="mini" @click="handleInform(2)">通知发货</el-button>
|
|
|
+ <el-button size="mini">撤销发货</el-button>
|
|
|
</div>
|
|
|
</template>
|
|
|
+
|
|
|
<template v-slot:custom="{item:{row,$index}}">
|
|
|
<el-radio label="1" v-model="row.flag">增加</el-radio>
|
|
|
<el-radio label="-1" v-model="row.flag">减少</el-radio>
|
|
@@ -39,7 +40,7 @@
|
|
|
import SalesDialog from '@/components/SalesDialog/SalesDialog'
|
|
|
import ReturnSalesHeader from '@/components/ReturnSalesHeader/ReturnSalesHeader'
|
|
|
import SalesTable from '@/components/SalesTable/SalesTable'
|
|
|
-import { addFrontOrder, detailRefund } from '@/api/sales'
|
|
|
+import { addFrontOrder, detailRefund, sbumitFrontOrder, sendRefund } from '@/api/sales'
|
|
|
import { getcustomerFrontList } from '@/api/stock'
|
|
|
|
|
|
export default {
|
|
@@ -142,6 +143,13 @@ export default {
|
|
|
handleSelection(data) {
|
|
|
this.selection = data
|
|
|
},
|
|
|
+ handleInform(status = 2) {
|
|
|
+ console.log(33)
|
|
|
+ sendRefund({ id: this.$refs.header.screenForm.id, status }).then(res => {
|
|
|
+ this.$successMsg('退货通知')
|
|
|
+
|
|
|
+ })
|
|
|
+ },
|
|
|
handelSubmit() {
|
|
|
this.dataList.forEach(k => {
|
|
|
k.id = ''
|