|
@@ -2,7 +2,7 @@
|
|
<div>
|
|
<div>
|
|
<el-page-header @back="$parent.pageType=0" content="详情" style=" padding: 20px 20px 0 20px;"></el-page-header>
|
|
<el-page-header @back="$parent.pageType=0" content="详情" style=" padding: 20px 20px 0 20px;"></el-page-header>
|
|
<sales-header ref="header" />
|
|
<sales-header ref="header" />
|
|
- <sales-table :dataList="dataList" :column="column" @handleSelection="handleSelection">
|
|
|
|
|
|
+ <sales-table :dataList="dataList" :column="column" @handleSelection="handleSelection">
|
|
<!-- <template #bts>-->
|
|
<!-- <template #bts>-->
|
|
<!-- <div>-->
|
|
<!-- <div>-->
|
|
<!-- <el-button type="primary" size="mini" @click="dialogVisible=true">添加</el-button>-->
|
|
<!-- <el-button type="primary" size="mini" @click="dialogVisible=true">添加</el-button>-->
|
|
@@ -10,16 +10,17 @@
|
|
<!-- </div>-->
|
|
<!-- </div>-->
|
|
<!-- </template>-->
|
|
<!-- </template>-->
|
|
<template #events>
|
|
<template #events>
|
|
- <div v-if="details.status==1 || details.status==2">
|
|
|
|
|
|
+ <div v-if="details.status==1">
|
|
<el-button type="primary" size="mini" @click="handleInform(2)">通知发货</el-button>
|
|
<el-button type="primary" size="mini" @click="handleInform(2)">通知发货</el-button>
|
|
-<!-- <el-button size="mini" v-if="">撤销发货</el-button>-->
|
|
|
|
</div>
|
|
</div>
|
|
- <div v-if="details.status==3">
|
|
|
|
|
|
+ <div v-if=" details.status==2">
|
|
<el-button type="primary" size="mini" @click="handleInform(3)">发货</el-button>
|
|
<el-button type="primary" size="mini" @click="handleInform(3)">发货</el-button>
|
|
|
|
+ </div>
|
|
|
|
+ <div v-if="details.status==3">
|
|
<el-button size="mini">撤销发货</el-button>
|
|
<el-button size="mini">撤销发货</el-button>
|
|
</div>
|
|
</div>
|
|
- <div v-if="details.status==4">
|
|
|
|
- <el-button type="primary" size="mini" @click="handleInform(4)">签收</el-button>
|
|
|
|
|
|
+ <div v-if="isFront===false && details.status==2">
|
|
|
|
+ <el-button type="primary" size="mini" @click="handleSignIn(4)">签收</el-button>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<template v-slot:custom="{item:{row,$index}}">
|
|
<template v-slot:custom="{item:{row,$index}}">
|
|
@@ -83,7 +84,7 @@
|
|
import SalesDialog from '@/components/SalesDialog/SalesDialog'
|
|
import SalesDialog from '@/components/SalesDialog/SalesDialog'
|
|
import SalesHeader from '@/components/SalesHeader/SalesHeader'
|
|
import SalesHeader from '@/components/SalesHeader/SalesHeader'
|
|
import SalesTable from '@/components/SalesTable/SalesTable'
|
|
import SalesTable from '@/components/SalesTable/SalesTable'
|
|
-import { addFrontOrder, getFrontOrderDetail, sbumitFrontOrder } from '@/api/sales'
|
|
|
|
|
|
+import { addFrontOrder, getFrontOrderDetail, sbumitFrontOrder, signIn } from '@/api/sales'
|
|
import { getcustomerFrontList } from '@/api/stock'
|
|
import { getcustomerFrontList } from '@/api/stock'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -126,7 +127,7 @@ export default {
|
|
{
|
|
{
|
|
prop: 'qty',
|
|
prop: 'qty',
|
|
label: '数量',
|
|
label: '数量',
|
|
- width: '180',
|
|
|
|
|
|
+ width: '180'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
prop: 'volume',
|
|
prop: 'volume',
|
|
@@ -141,7 +142,7 @@ export default {
|
|
{
|
|
{
|
|
prop: 'notes',
|
|
prop: 'notes',
|
|
label: '备注',
|
|
label: '备注',
|
|
- width: '180',
|
|
|
|
|
|
+ width: '180'
|
|
|
|
|
|
}
|
|
}
|
|
],
|
|
],
|
|
@@ -155,7 +156,8 @@ export default {
|
|
}, {
|
|
}, {
|
|
content: '创建成功',
|
|
content: '创建成功',
|
|
timestamp: '2018-04-11'
|
|
timestamp: '2018-04-11'
|
|
- }]
|
|
|
|
|
|
+ }],
|
|
|
|
+ isFront: JSON.parse(localStorage.getItem('supply_user')).isFront,
|
|
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -237,6 +239,13 @@ export default {
|
|
this.$parent.pageType = 0
|
|
this.$parent.pageType = 0
|
|
|
|
|
|
})
|
|
})
|
|
|
|
+ },
|
|
|
|
+ handleSignIn(status){
|
|
|
|
+ signIn({id: this.$refs.header.screenForm.id, status }).then(res=>{
|
|
|
|
+ this.$successMsg('签收')
|
|
|
|
+ this.$parent.pageType = 0
|
|
|
|
+
|
|
|
|
+ })
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|