|
@@ -8,14 +8,14 @@
|
|
|
:label-position="labelPosition" @submit.native.prevent>
|
|
:label-position="labelPosition" @submit.native.prevent>
|
|
|
<FormItem label="订单状态:">
|
|
<FormItem label="订单状态:">
|
|
|
<Select v-model="pagination.refund_status" class="input-add">
|
|
<Select v-model="pagination.refund_status" class="input-add">
|
|
|
- <Option v-for="(item, index) in num" :value="index" :key="index">{{ item.name }}</Option>
|
|
|
|
|
|
|
+ <Option v-for="(item, index) in num" :value="item.value" :key="index">{{ item.name }}</Option>
|
|
|
</Select>
|
|
</Select>
|
|
|
</FormItem>
|
|
</FormItem>
|
|
|
- <FormItem label="退款时间:">
|
|
|
|
|
|
|
+ <!-- <FormItem label="退款时间:">
|
|
|
<DatePicker :editable="false" @on-change="onchangeTime" :value="timeVal" format="yyyy/MM/dd"
|
|
<DatePicker :editable="false" @on-change="onchangeTime" :value="timeVal" format="yyyy/MM/dd"
|
|
|
type="daterange" placement="bottom-start" placeholder="自定义时间" class="input-add"
|
|
type="daterange" placement="bottom-start" placeholder="自定义时间" class="input-add"
|
|
|
:options="options"></DatePicker>
|
|
:options="options"></DatePicker>
|
|
|
- </FormItem>
|
|
|
|
|
|
|
+ </FormItem> -->
|
|
|
<FormItem label="订单搜索:" label-for="title">
|
|
<FormItem label="订单搜索:" label-for="title">
|
|
|
<Input v-model="pagination.order_id" placeholder="请输入订单号" class="input-add mr14" />
|
|
<Input v-model="pagination.order_id" placeholder="请输入订单号" class="input-add mr14" />
|
|
|
<Button type="primary" @click="orderSearch()">查询</Button>
|
|
<Button type="primary" @click="orderSearch()">查询</Button>
|
|
@@ -39,69 +39,37 @@
|
|
|
<div>用户名:{{ row.nickname }}</div>
|
|
<div>用户名:{{ row.nickname }}</div>
|
|
|
<div>用户ID:{{ row.uid }}</div>
|
|
<div>用户ID:{{ row.uid }}</div>
|
|
|
</template>
|
|
</template>
|
|
|
- <template slot-scope="{ row }" slot="refund_type">
|
|
|
|
|
- <Tag color="blue" size="medium" v-if="row.refund_status == 0">未退款</Tag>
|
|
|
|
|
- <Tag color="blue" size="medium" v-if="row.refund_status == -1">拒绝退款</Tag>
|
|
|
|
|
- <Tag color="blue" size="medium" v-if="row.refund_status == 1">申请中</Tag>
|
|
|
|
|
- <Tag color="blue" size="medium" v-if="row.refund_status == 2">一次审核通过</Tag>
|
|
|
|
|
- <Tag color="red" size="medium" v-if="row.refund_status == 3">二次审核通过</Tag>
|
|
|
|
|
- <Tag color="blue" size="medium" v-if="row.refund_status == 4">已退款</Tag>
|
|
|
|
|
- <Tag color="blue" size="medium" v-if="row.refund_status == 5">部分退款</Tag>
|
|
|
|
|
- </template>
|
|
|
|
|
- <template slot-scope="{ row }" slot="info">
|
|
|
|
|
- <Tooltip theme="dark" max-width="300" :delay="600">
|
|
|
|
|
- <div class="tabBox" v-for="(val, i) in row._info" :key="i">
|
|
|
|
|
- <div class="tabBox_img" v-viewer>
|
|
|
|
|
- <img v-lazy="
|
|
|
|
|
- val.cart_info.productInfo.attrInfo
|
|
|
|
|
- ? val.cart_info.productInfo.attrInfo.image
|
|
|
|
|
- : val.cart_info.productInfo.image
|
|
|
|
|
- " />
|
|
|
|
|
- </div>
|
|
|
|
|
- <span class="tabBox_tit line1">
|
|
|
|
|
- <span class="font-color-red" v-if="val.cart_info.is_gift">赠品</span>
|
|
|
|
|
- {{ val.cart_info.productInfo.store_name + " | "}}
|
|
|
|
|
- {{val.cart_info.productInfo.attrInfo ? val.cart_info.productInfo.attrInfo.suk: ""}}
|
|
|
|
|
- </span>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div slot="content">
|
|
|
|
|
- <div v-for="(val, i) in row._info" :key="i">
|
|
|
|
|
- <p class="font-color-red" v-if="val.cart_info.is_gift">赠品</p>
|
|
|
|
|
- <p>{{ val.cart_info.productInfo.store_name }}</p>
|
|
|
|
|
- <p> {{val.cart_info.productInfo.attrInfo ? val.cart_info.productInfo.attrInfo.suk: ""}}
|
|
|
|
|
- </p>
|
|
|
|
|
- <p class="tabBox_pice">
|
|
|
|
|
- {{ "¥" + val.cart_info.truePrice + " x " + val.cart_info.cart_num }}</p>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <template slot-scope="{ row, index }" slot="info">
|
|
|
|
|
+ <div class="tabBox" v-for="(val, i) in row.info" :key="i">
|
|
|
|
|
+ <div class="tabBox_img" v-viewer>
|
|
|
|
|
+ <img v-lazy="val.slider_image" />
|
|
|
</div>
|
|
</div>
|
|
|
- </Tooltip>
|
|
|
|
|
|
|
+ <span class="tabBox_tit">{{ val.store_name }}</span>
|
|
|
|
|
+ <span class="tabBox_pice">{{'¥' + val.pay_price}}</span>
|
|
|
|
|
+ </div>
|
|
|
</template>
|
|
</template>
|
|
|
- <template slot-scope="{ row }" slot="statusName">
|
|
|
|
|
- <Tooltip theme="dark" max-width="300" :delay="600">
|
|
|
|
|
- <div v-html="row.refund_reason" class="pt5"></div>
|
|
|
|
|
- <div slot="content">
|
|
|
|
|
- <div class="pt5">退款原因:{{row.refund_explain}}</div>
|
|
|
|
|
- <div v-if="row.refund_goods_explain" class="pt5">退货原因:{{row.refund_goods_explain}}</div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </Tooltip>
|
|
|
|
|
- <div class="pictrue-box" v-if="row.refund_img">
|
|
|
|
|
- <div v-viewer v-for="(item, index) in row.refund_img || []" :key="index">
|
|
|
|
|
- <img class="pictrue mr10" v-lazy="item" :src="item" />
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <template slot-scope="{ row, index }" slot="pay_price">
|
|
|
|
|
+ <span class="tabBox_pice">{{'¥' + showPrice(row.info)}}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template slot-scope="{ row, index }" slot="refund_status">
|
|
|
|
|
+ <div v-if="row.refund_status == 1">待审核</div>
|
|
|
|
|
+ <div v-else-if="row.refund_status == 2">第一次审核通过</div>
|
|
|
|
|
+ <div v-else-if="row.refund_status == 3">第二次审核通过</div>
|
|
|
|
|
+ <div v-else-if="row.refund_status == 4">已全部退款</div>
|
|
|
|
|
+ <div v-else-if="row.refund_status == 5">已部分退款</div>
|
|
|
|
|
+ <div v-else-if="row.refund_status == -1">
|
|
|
|
|
+ <div>拒绝退款</div>
|
|
|
|
|
+ <div>第一次审核意见:{{ row.first_remarks }}</div>
|
|
|
|
|
+ <div>第二次审核意见:{{ row.second_remarks }}</div>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
- <template slot-scope="{ row }" slot="action">
|
|
|
|
|
- <a @click="changeMenu(row, '5')" :disabled="openErp" v-show="
|
|
|
|
|
- [1, 2, 5].includes(row.refund_type) &&
|
|
|
|
|
- (parseFloat(row.pay_price) > parseFloat(row.refunded_price) ||
|
|
|
|
|
- row.pay_price == 0)
|
|
|
|
|
- ">{{ row.refund_type == 2 ? "同意退货" : "立即退款" }}</a>
|
|
|
|
|
- <Divider type="vertical" v-show="
|
|
|
|
|
- [1, 2, 5].includes(row.refund_type) &&
|
|
|
|
|
- (parseFloat(row.pay_price) > parseFloat(row.refunded_price) ||
|
|
|
|
|
- row.pay_price == 0)
|
|
|
|
|
- " />
|
|
|
|
|
- <a @click="changeMenu(row, '2')">订单详情</a>
|
|
|
|
|
|
|
+ <template slot-scope="{ row, index }" slot="add_time">
|
|
|
|
|
+ <span class="tabBox_pice">{{showTime(row.add_time)}}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template slot-scope="{ row, index }" slot="action">
|
|
|
|
|
+ <a @click="changeMenu(row, 1)" v-show="[2].includes(row.refund_status)">通过</a>
|
|
|
|
|
+ <Divider type="vertical" v-show="[2].includes(row.refund_status)" />
|
|
|
|
|
+ <a @click="changeMenu(row, 0)" v-show="[2].includes(row.refund_status)">拒绝</a>
|
|
|
</template>
|
|
</template>
|
|
|
</Table>
|
|
</Table>
|
|
|
<div class="acea-row row-right page">
|
|
<div class="acea-row row-right page">
|
|
@@ -118,6 +86,18 @@
|
|
|
<order-remark ref="remarks" remarkType="refund" :orderId="orderId" @submitFail="submitFail"></order-remark>
|
|
<order-remark ref="remarks" remarkType="refund" :orderId="orderId" @submitFail="submitFail"></order-remark>
|
|
|
<!-- 记录 -->
|
|
<!-- 记录 -->
|
|
|
<order-record ref="record"></order-record>
|
|
<order-record ref="record"></order-record>
|
|
|
|
|
+ <Modal v-model="modals" scrollable title="拒绝原因" class="order_box" :closable="false">
|
|
|
|
|
+ <Form :label-width="80" @submit.native.prevent>
|
|
|
|
|
+ <FormItem label="原因:" prop="remark">
|
|
|
|
|
+ <Input v-model="remark" maxlength="200" show-word-limit type="textarea" placeholder="拒绝原因"
|
|
|
|
|
+ style="width: 100%" />
|
|
|
|
|
+ </FormItem>
|
|
|
|
|
+ </Form>
|
|
|
|
|
+ <div slot="footer">
|
|
|
|
|
+ <Button type="primary" @click="goCancal">提交</Button>
|
|
|
|
|
+ <Button @click="cancal">取消</Button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </Modal>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -136,10 +116,8 @@
|
|
|
refundIntegral,
|
|
refundIntegral,
|
|
|
getDistribution,
|
|
getDistribution,
|
|
|
writeUpdate,
|
|
writeUpdate,
|
|
|
|
|
+ serveRefund
|
|
|
} from "@/api/order";
|
|
} from "@/api/order";
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
import {
|
|
import {
|
|
|
erpConfig
|
|
erpConfig
|
|
|
} from "@/api/erp";
|
|
} from "@/api/erp";
|
|
@@ -157,6 +135,8 @@
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ remark: '',
|
|
|
|
|
+ modals: false,
|
|
|
openErp: false,
|
|
openErp: false,
|
|
|
thead: [{
|
|
thead: [{
|
|
|
title: "订单号",
|
|
title: "订单号",
|
|
@@ -176,33 +156,24 @@
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
title: "实际支付",
|
|
title: "实际支付",
|
|
|
- key: "pay_price",
|
|
|
|
|
|
|
+ slot: "pay_price",
|
|
|
minWidth: 70,
|
|
minWidth: 70,
|
|
|
},
|
|
},
|
|
|
|
|
+
|
|
|
{
|
|
{
|
|
|
- title: "发起退款时间",
|
|
|
|
|
- key: "add_time",
|
|
|
|
|
- minWidth: 110,
|
|
|
|
|
|
|
+ title: "退款原因",
|
|
|
|
|
+ key: "refund_reason",
|
|
|
|
|
+ minWidth: 100,
|
|
|
},
|
|
},
|
|
|
- // {
|
|
|
|
|
- // title: "订单类型",
|
|
|
|
|
- // key: "type",
|
|
|
|
|
- // minWidth: 100,
|
|
|
|
|
- // },
|
|
|
|
|
{
|
|
{
|
|
|
title: "退款状态",
|
|
title: "退款状态",
|
|
|
- slot: "refund_type",
|
|
|
|
|
- minWidth: 100,
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- title: "退款信息",
|
|
|
|
|
- slot: "statusName",
|
|
|
|
|
|
|
+ slot: "refund_status",
|
|
|
minWidth: 100,
|
|
minWidth: 100,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- title: "售后备注",
|
|
|
|
|
- key: "remark",
|
|
|
|
|
- minWidth: 80,
|
|
|
|
|
|
|
+ title: "下单时间",
|
|
|
|
|
+ slot: "add_time",
|
|
|
|
|
+ minWidth: 110,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
title: "操作",
|
|
title: "操作",
|
|
@@ -213,7 +184,18 @@
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|
|
|
tbody: [],
|
|
tbody: [],
|
|
|
- num: [],
|
|
|
|
|
|
|
+ num: [{
|
|
|
|
|
+ name: '待审核',
|
|
|
|
|
+ value: 2
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: '已通过',
|
|
|
|
|
+ value: 3
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: '拒绝',
|
|
|
|
|
+ value: -1
|
|
|
|
|
+ }],
|
|
|
orderDatalist: null,
|
|
orderDatalist: null,
|
|
|
loading: false,
|
|
loading: false,
|
|
|
FromData: null,
|
|
FromData: null,
|
|
@@ -225,7 +207,7 @@
|
|
|
limit: 15,
|
|
limit: 15,
|
|
|
order_id: "",
|
|
order_id: "",
|
|
|
time: "",
|
|
time: "",
|
|
|
- refund_status: 0,
|
|
|
|
|
|
|
+ refund_status: 2,
|
|
|
},
|
|
},
|
|
|
options: timeOptions,
|
|
options: timeOptions,
|
|
|
timeVal: [],
|
|
timeVal: [],
|
|
@@ -234,6 +216,7 @@
|
|
|
name: "",
|
|
name: "",
|
|
|
spin: false,
|
|
spin: false,
|
|
|
rowActive: {},
|
|
rowActive: {},
|
|
|
|
|
+ delfromData: {}
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
@@ -251,6 +234,87 @@
|
|
|
this.getOrderList();
|
|
this.getOrderList();
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ cancal() {
|
|
|
|
|
+ this.modals = false
|
|
|
|
|
+ this.remark = ''
|
|
|
|
|
+ },
|
|
|
|
|
+ //goCancal
|
|
|
|
|
+ goCancal() {
|
|
|
|
|
+ if (this.remark == '') {
|
|
|
|
|
+ return this.$Message.error('请输入拒绝理由')
|
|
|
|
|
+ }
|
|
|
|
|
+ serveRefund({
|
|
|
|
|
+ id: this.delfromData.ids.id,
|
|
|
|
|
+ status: 0,
|
|
|
|
|
+ remarks: this.remark,
|
|
|
|
|
+ refund_status: this.delfromData.ids.refund_status
|
|
|
|
|
+ }).then(res => {
|
|
|
|
|
+ this.getOrderList()
|
|
|
|
|
+ this.$Message.success(res.msg)
|
|
|
|
|
+ this.remark = ''
|
|
|
|
|
+ }).catch((res) => {
|
|
|
|
|
+ this.$Message.error(res.msg)
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
|
|
+ this.modals = false
|
|
|
|
|
+ },
|
|
|
|
|
+ changeMenu(row, name) {
|
|
|
|
|
+ let titile;
|
|
|
|
|
+ let that = this
|
|
|
|
|
+ if (name == 1) {
|
|
|
|
|
+ titile = '通过该退款审核?'
|
|
|
|
|
+ this.delfromData = {
|
|
|
|
|
+ title: titile,
|
|
|
|
|
+ url: `/service/refund_order_examine`,
|
|
|
|
|
+ method: 'post',
|
|
|
|
|
+ ids: {
|
|
|
|
|
+ id: row.id,
|
|
|
|
|
+ status: 1,
|
|
|
|
|
+ remakes: '通过',
|
|
|
|
|
+ refund_status: row.refund_status
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ this.$modalSure(this.delfromData)
|
|
|
|
|
+ .then((res) => {
|
|
|
|
|
+ this.$Message.success(res.msg)
|
|
|
|
|
+ this.getOrderList()
|
|
|
|
|
+ })
|
|
|
|
|
+ .catch((res) => {
|
|
|
|
|
+ this.$Message.error(res.msg)
|
|
|
|
|
+ })
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.delfromData = {
|
|
|
|
|
+ title: titile,
|
|
|
|
|
+ url: `/service/refund_order_examine`,
|
|
|
|
|
+ method: 'post',
|
|
|
|
|
+ ids: {
|
|
|
|
|
+ id: row.id,
|
|
|
|
|
+ status: 0,
|
|
|
|
|
+ refund_status: row.refund_status
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ this.modals = true
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ },
|
|
|
|
|
+ showTime(time) {
|
|
|
|
|
+ var date = new Date(time * 1000);
|
|
|
|
|
+ var year = date.getFullYear(); // 获取年份
|
|
|
|
|
+ var month = ("0" + (date.getMonth() + 1)).slice(-2); // 获取月份(注意月份从 0 开始,需要加 1)
|
|
|
|
|
+ var day = ("0" + date.getDate()).slice(-2); // 获取日期
|
|
|
|
|
+ var hours = ("0" + date.getHours()).slice(-2); // 获取小时
|
|
|
|
|
+ var minutes = ("0" + date.getMinutes()).slice(-2); // 获取分钟
|
|
|
|
|
+ var seconds = ("0" + date.getSeconds()).slice(-2); // 获取秒钟
|
|
|
|
|
+ var dateString = year + "-" + month + "-" + day + " " + hours + ":" + minutes + ":" + seconds; // 自定义时间格式
|
|
|
|
|
+ return dateString
|
|
|
|
|
+ },
|
|
|
|
|
+ showPrice(list) {
|
|
|
|
|
+ let price = 0;
|
|
|
|
|
+ list.forEach(item => {
|
|
|
|
|
+ price += item.pay_price * 1
|
|
|
|
|
+ })
|
|
|
|
|
+ return price
|
|
|
|
|
+ },
|
|
|
//erp配置
|
|
//erp配置
|
|
|
getErpConfig() {
|
|
getErpConfig() {
|
|
|
erpConfig().then(res => {
|
|
erpConfig().then(res => {
|
|
@@ -292,111 +356,6 @@
|
|
|
this.$Message.error(res.msg);
|
|
this.$Message.error(res.msg);
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
- // 操作
|
|
|
|
|
- changeMenu(row, name) {
|
|
|
|
|
- this.orderId = row.id;
|
|
|
|
|
- switch (name) {
|
|
|
|
|
- case "1":
|
|
|
|
|
- this.delfromData = {
|
|
|
|
|
- title: "修改立即支付",
|
|
|
|
|
- url: `/order/pay_offline/${row.id}`,
|
|
|
|
|
- method: "post",
|
|
|
|
|
- ids: "",
|
|
|
|
|
- };
|
|
|
|
|
- this.$modalSure(this.delfromData)
|
|
|
|
|
- .then((res) => {
|
|
|
|
|
- this.$Message.success(res.msg);
|
|
|
|
|
- this.getOrderList();
|
|
|
|
|
- })
|
|
|
|
|
- .catch((res) => {
|
|
|
|
|
- this.$Message.error(res.msg);
|
|
|
|
|
- });
|
|
|
|
|
- // this.modalTitleSs = '修改立即支付';
|
|
|
|
|
- break;
|
|
|
|
|
- case "2":
|
|
|
|
|
- this.rowActive = row;
|
|
|
|
|
- this.getData(row.id);
|
|
|
|
|
- break;
|
|
|
|
|
- case "3":
|
|
|
|
|
- this.$refs.record.modals = true;
|
|
|
|
|
- this.$refs.record.getList(row.store_order_id);
|
|
|
|
|
- break;
|
|
|
|
|
- case "4":
|
|
|
|
|
- this.$refs.remarks.modals = true;
|
|
|
|
|
- this.$refs.remarks.formValidate.remark = row.remark;
|
|
|
|
|
- break;
|
|
|
|
|
- case "5":
|
|
|
|
|
- this.getRefundData(row.id, row.refund_status);
|
|
|
|
|
- break;
|
|
|
|
|
- case "6":
|
|
|
|
|
- this.getRefundIntegral(row.id);
|
|
|
|
|
- break;
|
|
|
|
|
- case "7":
|
|
|
|
|
- this.getNoRefundData(row.id);
|
|
|
|
|
- break;
|
|
|
|
|
- case "8":
|
|
|
|
|
- this.delfromData = {
|
|
|
|
|
- title: "修改确认收货",
|
|
|
|
|
- url: `/order/take/${row.id}`,
|
|
|
|
|
- method: "put",
|
|
|
|
|
- ids: "",
|
|
|
|
|
- };
|
|
|
|
|
- this.$modalSure(this.delfromData)
|
|
|
|
|
- .then((res) => {
|
|
|
|
|
- this.$Message.success(res.msg);
|
|
|
|
|
- this.getOrderList();
|
|
|
|
|
- })
|
|
|
|
|
- .catch((res) => {
|
|
|
|
|
- this.$Message.error(res.msg);
|
|
|
|
|
- });
|
|
|
|
|
- // this.modalTitleSs = '修改确认收货';
|
|
|
|
|
- break;
|
|
|
|
|
- case "10":
|
|
|
|
|
- this.delfromData = {
|
|
|
|
|
- title: "立即打印订单",
|
|
|
|
|
- info: "您确认打印此订单吗?",
|
|
|
|
|
- url: `/order/print/${row.id}`,
|
|
|
|
|
- method: "get",
|
|
|
|
|
- ids: "",
|
|
|
|
|
- };
|
|
|
|
|
- this.$modalSure(this.delfromData)
|
|
|
|
|
- .then((res) => {
|
|
|
|
|
- this.$Message.success(res.msg);
|
|
|
|
|
- this.$emit("changeGetTabs");
|
|
|
|
|
- this.getOrderList();
|
|
|
|
|
- })
|
|
|
|
|
- .catch((res) => {
|
|
|
|
|
- this.$Message.error(res.msg);
|
|
|
|
|
- });
|
|
|
|
|
- break;
|
|
|
|
|
- case "11":
|
|
|
|
|
- this.delfromData = {
|
|
|
|
|
- title: "立即打印电子面单",
|
|
|
|
|
- info: "您确认打印此电子面单吗?",
|
|
|
|
|
- url: `/order/order_dump/${row.id}`,
|
|
|
|
|
- method: "get",
|
|
|
|
|
- ids: "",
|
|
|
|
|
- };
|
|
|
|
|
- this.$modalSure(this.delfromData)
|
|
|
|
|
- .then((res) => {
|
|
|
|
|
- this.$Message.success(res.msg);
|
|
|
|
|
- this.getOrderList();
|
|
|
|
|
- })
|
|
|
|
|
- .catch((res) => {
|
|
|
|
|
- this.$Message.error(res.msg);
|
|
|
|
|
- });
|
|
|
|
|
- break;
|
|
|
|
|
- default:
|
|
|
|
|
- this.delfromData = {
|
|
|
|
|
- title: "删除订单",
|
|
|
|
|
- url: `/order/del/${row.id}`,
|
|
|
|
|
- method: "DELETE",
|
|
|
|
|
- ids: "",
|
|
|
|
|
- };
|
|
|
|
|
- // this.modalTitleSs = '删除订单';
|
|
|
|
|
- this.delOrder(row, this.delfromData);
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
// 获取退款表单数据
|
|
// 获取退款表单数据
|
|
|
getRefundData(id, refund_type) {
|
|
getRefundData(id, refund_type) {
|
|
|
if (refund_type == 2) {
|
|
if (refund_type == 2) {
|
|
@@ -486,7 +445,7 @@
|
|
|
} = res.data;
|
|
} = res.data;
|
|
|
this.total = count;
|
|
this.total = count;
|
|
|
this.tbody = list;
|
|
this.tbody = list;
|
|
|
- this.num = num;
|
|
|
|
|
|
|
+ // this.num = num;
|
|
|
list.forEach((item) => {
|
|
list.forEach((item) => {
|
|
|
if (item.id == this.orderId) {
|
|
if (item.id == this.orderId) {
|
|
|
this.rowActive = item;
|
|
this.rowActive = item;
|