|
@@ -94,8 +94,8 @@
|
|
v-hasPermi="['groupBuyingMr:groupBuyingMr:details']"
|
|
v-hasPermi="['groupBuyingMr:groupBuyingMr:details']"
|
|
>详情</el-button>
|
|
>详情</el-button>
|
|
<el-button size="mini" type="text" v-if="scope.row.status === 0" @click="payOrder(scope.row)">代客下单</el-button>
|
|
<el-button size="mini" type="text" v-if="scope.row.status === 0" @click="payOrder(scope.row)">代客下单</el-button>
|
|
- <el-button size="mini" type="text" v-if="scope.row.status == 3 || scope.row.status == 7">打印小票</el-button>
|
|
|
|
- <el-button size="mini" type="text" v-if="scope.row.status == 3 || scope.row.status == 7">修改凭证</el-button>
|
|
|
|
|
|
+ <el-button size="mini" type="text" v-if="scope.row.status == 3 || scope.row.status == 7" @click="handleOpenPrint(scope.row)">打印小票</el-button>
|
|
|
|
+ <el-button size="mini" type="text" v-if="scope.row.status == 3 || scope.row.status == 7" @click="handlePayOrCredit(scope.row)">修改凭证</el-button>
|
|
<el-button size="mini" type="text" v-if="scope.row.status == 7" @click="handleInvoicing(scope.row)">开具发票</el-button>
|
|
<el-button size="mini" type="text" v-if="scope.row.status == 7" @click="handleInvoicing(scope.row)">开具发票</el-button>
|
|
<el-button size="mini" type="text" v-if="scope.row.status === 0" @click="closedOrder(scope.row)">关闭订单</el-button>
|
|
<el-button size="mini" type="text" v-if="scope.row.status === 0" @click="closedOrder(scope.row)">关闭订单</el-button>
|
|
</template>
|
|
</template>
|
|
@@ -154,7 +154,6 @@ export default {
|
|
};
|
|
};
|
|
pageList(params).then(response => {
|
|
pageList(params).then(response => {
|
|
this.orderList = response.data.rows;
|
|
this.orderList = response.data.rows;
|
|
- console.log(this.orderList,'response');
|
|
|
|
this.isLoading = false;
|
|
this.isLoading = false;
|
|
}).catch(()=>{
|
|
}).catch(()=>{
|
|
this.orderList = [];
|
|
this.orderList = [];
|
|
@@ -163,7 +162,6 @@ export default {
|
|
},
|
|
},
|
|
// 添加子订单
|
|
// 添加子订单
|
|
addChildOrder() {
|
|
addChildOrder() {
|
|
- // console.log(this.orderInfo,'111');
|
|
|
|
this.$emit('addChild', this.orderInfo)
|
|
this.$emit('addChild', this.orderInfo)
|
|
this.isShow = false;
|
|
this.isShow = false;
|
|
},
|
|
},
|
|
@@ -177,6 +175,16 @@ export default {
|
|
this.$emit('payOrder', row)
|
|
this.$emit('payOrder', row)
|
|
this.isShow = false;
|
|
this.isShow = false;
|
|
},
|
|
},
|
|
|
|
+ // 修改凭证
|
|
|
|
+ handlePayOrCredit(row) {
|
|
|
|
+ this.$emit('handPayOrCredit', row)
|
|
|
|
+ this.isShow = false;
|
|
|
|
+ },
|
|
|
|
+ // 打印小票
|
|
|
|
+ handleOpenPrint(row) {
|
|
|
|
+ this.$emit('handleOpen', row)
|
|
|
|
+ this.isShow = false;
|
|
|
|
+ },
|
|
// 开具发票
|
|
// 开具发票
|
|
handleInvoicing(row) {
|
|
handleInvoicing(row) {
|
|
this.$emit('handleInvoicing', row)
|
|
this.$emit('handleInvoicing', row)
|