|
@@ -30,9 +30,11 @@
|
|
|
fit="cover"></el-image>
|
|
fit="cover"></el-image>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="name">
|
|
<div class="name">
|
|
|
- <span v-if="scope.row.product.is_new == 1">{{ scope.row.product?scope.row.product.product_name:'-' }}</span>
|
|
|
|
|
- <span v-else>{{ scope.row.product?scope.row.product.product_name:'-' }}</span>
|
|
|
|
|
- <span class="dec">商品编码:{{ scope.row.product?scope.row.product.product_id:'-' }}</span>
|
|
|
|
|
|
|
+ <template v-if="scope.row.product">
|
|
|
|
|
+ <span v-if="scope.row.product.is_new == 1">{{scope.row.product.price}}元代{{scope.row.product.line_price}}元商场权益券{{ scope.row.product.product_name }}</span>
|
|
|
|
|
+ <span v-else>{{ scope.row.product?scope.row.product.product_name:'-' }}</span>
|
|
|
|
|
+ <span class="dec">商品编码:{{ scope.row.product?scope.row.product.product_id:'-' }}</span>
|
|
|
|
|
+ </template>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
@@ -161,6 +163,7 @@
|
|
|
<el-button-group>
|
|
<el-button-group>
|
|
|
<el-button size="small" text @click="table_view(scope.row)">详情</el-button>
|
|
<el-button size="small" text @click="table_view(scope.row)">详情</el-button>
|
|
|
<el-button type="danger" size="small" text @click="table_refund(scope.row)" v-if="scope.row.status==1">退款</el-button>
|
|
<el-button type="danger" size="small" text @click="table_refund(scope.row)" v-if="scope.row.status==1">退款</el-button>
|
|
|
|
|
+ <el-button type="danger" size="small" text @click="table_done(scope.row)" v-if="scope.row.status==7 && scope.row.is_new==1">核销</el-button>
|
|
|
</el-button-group>
|
|
</el-button-group>
|
|
|
<el-button-group>
|
|
<el-button-group>
|
|
|
<el-button type="danger" size="small" text @click="table_black(scope.row)">拉黑</el-button>
|
|
<el-button type="danger" size="small" text @click="table_black(scope.row)">拉黑</el-button>
|
|
@@ -241,6 +244,20 @@ export default {
|
|
|
},
|
|
},
|
|
|
table_del(data){
|
|
table_del(data){
|
|
|
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ table_done(data){
|
|
|
|
|
+ this.$confirm(`核销后,订单不再支持退款,确定要执行吗`, '提示', {
|
|
|
|
|
+ type: 'warning'
|
|
|
|
|
+ }).then(async () => {
|
|
|
|
|
+ var resp = await this.$API.merOrder.doneMini.post({"order":data.out_order_no});
|
|
|
|
|
+ if (resp.code == 0) {
|
|
|
|
|
+ return this.$message.error(resp.msg);
|
|
|
|
|
+ }
|
|
|
|
|
+ this.$message.success(resp.msg);
|
|
|
|
|
+ this.$refs.table.refresh()
|
|
|
|
|
+ }).catch(() => {
|
|
|
|
|
+
|
|
|
|
|
+ })
|
|
|
},
|
|
},
|
|
|
table_cancel(data){
|
|
table_cancel(data){
|
|
|
this.$confirm(`取消该笔订单的核销,并非是直接退款,订单状态将恢复到【待使用】状态`, '提示', {
|
|
this.$confirm(`取消该笔订单的核销,并非是直接退款,订单状态将恢复到【待使用】状态`, '提示', {
|