|
|
@@ -101,14 +101,12 @@
|
|
|
<el-button size="small" v-if="scope.row.status == 5 || scope.row.status == 1">打小票({{ scope.row.printNum }})</el-button>
|
|
|
<el-button @click.stop="printOrder(scope.row)" size="small" type="primary" v-else>打小票({{ scope.row.printNum }})</el-button>
|
|
|
|
|
|
-
|
|
|
- <el-dropdown @command="doMore($event,scope.row)" style="margin-left:10px;">
|
|
|
- <el-button type="primary" size="small">
|
|
|
- 更多<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
- </el-button>
|
|
|
+ <el-dropdown @command="doMore($event,scope.row)" style="margin-left:10px;" trigger="click">
|
|
|
+ <el-button size="small" v-if="scope.row.status == 5 || scope.row.status == 1">更多<i class="el-icon-arrow-down el-icon--right"></i></el-button>
|
|
|
+ <el-button type="primary" size="small" v-else>更多<i class="el-icon-arrow-down el-icon--right"></i></el-button>
|
|
|
<el-dropdown-menu slot="dropdown">
|
|
|
- <el-dropdown-item command="cancel">取消</el-dropdown-item>
|
|
|
<el-dropdown-item command="refundRecord">售后记录</el-dropdown-item>
|
|
|
+ <el-dropdown-item command="cancel">取消</el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
|
</el-dropdown>
|
|
|
|
|
|
@@ -139,6 +137,7 @@
|
|
|
|
|
|
<order-detail ref="orderDetail" :orderOperate="optionData" />
|
|
|
<begin-refund ref="beginRefundRef" :currentRefundData="currentRefundData" />
|
|
|
+ <refund-record ref="refundRecordRef" :currentData="refundRecordData" />
|
|
|
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -146,11 +145,13 @@
|
|
|
<script>
|
|
|
import OrderDetail from './components/order-detail';
|
|
|
import beginRefund from './components/begin-refund';
|
|
|
+import refundRecord from './components/refund-record';
|
|
|
import {hiprint, defaultElementTypeProvider} from 'vue-plugin-hiprint'
|
|
|
export default {
|
|
|
components: {
|
|
|
OrderDetail,
|
|
|
- beginRefund
|
|
|
+ beginRefund,
|
|
|
+ refundRecord
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -180,6 +181,7 @@ export default {
|
|
|
],
|
|
|
optionData: {},
|
|
|
currentRefundData:{},
|
|
|
+ refundRecordData:{},
|
|
|
orderData:'',
|
|
|
addPop:false,
|
|
|
location:0,
|
|
|
@@ -247,12 +249,15 @@ export default {
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
- doMore(cmd,info){
|
|
|
+ doMore(cmd,data){
|
|
|
if(cmd == 'cancel'){
|
|
|
- this.cancelOrder(info)
|
|
|
+ this.cancelOrder(data)
|
|
|
}
|
|
|
if(cmd == 'refundRecord'){
|
|
|
-
|
|
|
+ this.refundRecordData = data
|
|
|
+ setTimeout(() => {
|
|
|
+ this.$refs.refundRecordRef.init()
|
|
|
+ })
|
|
|
}
|
|
|
},
|
|
|
goRefund(data){
|
|
|
@@ -534,7 +539,7 @@ export default {
|
|
|
op: {
|
|
|
visible: true,
|
|
|
props: {
|
|
|
- width: 540,
|
|
|
+ width: 560,
|
|
|
align: 'center',
|
|
|
fixed: 'right',
|
|
|
label: '操作'
|