|
@@ -158,7 +158,7 @@
|
|
|
label="操作">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button v-if="isAuth('order:deliver:info') && Number(scope.row.state) <= 3" type="text" size="small" @click="detailHandle(scope.row)">查看</el-button>
|
|
|
- <el-button v-if="isAuth('order:deliver:send') && Number(scope.row.state) === 2" type="text" size="small" @click="sendHandle(scope.row.deliverId)">发货</el-button>
|
|
|
+ <el-button v-if="isAuth('order:deliver:send') && Number(scope.row.state) === 2" type="text" size="small" @click="sendHandle(scope.row.deliverId, scope.row.cnt)">发货</el-button>
|
|
|
<el-button v-if="isAuth('order:deliver:arrive') && Number(scope.row.state) === 3" type="text" size="small" @click="arriveHandle(scope.row.deliverId)">送达</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -326,10 +326,10 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
// 发货
|
|
|
- sendHandle (deliverId) {
|
|
|
+ sendHandle (deliverId, cnt) {
|
|
|
this.dispatchVisible = true
|
|
|
this.$nextTick(() => {
|
|
|
- this.$refs.dispatching.init(deliverId)
|
|
|
+ this.$refs.dispatching.init(deliverId, cnt)
|
|
|
})
|
|
|
},
|
|
|
// 转换属性“状态”
|