From 559e061e3da594b52681e806a5d7983fa5b714f5 Mon Sep 17 00:00:00 2001 From: fanfan Date: Sat, 26 Oct 2024 19:24:11 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E5=8D=95=E7=BA=A0=E7=BA=B7=20?= =?UTF-8?q?=E6=98=AF=E5=90=A6=E5=85=A5=E6=B1=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/order/event.js | 12 ++++- src/views/goods/Index.vue | 31 +++++++++--- src/views/order/Index.vue | 46 ++++++++++++++++-- src/views/setting/modules/CreateForm.vue | 30 +++++++++++- src/views/setting/modules/EditForm.vue | 60 +++++++++++++++++++++++- 5 files changed, 164 insertions(+), 15 deletions(-) diff --git a/src/api/order/event.js b/src/api/order/event.js index 266af5b..0b60121 100644 --- a/src/api/order/event.js +++ b/src/api/order/event.js @@ -9,7 +9,17 @@ const api = { extract: '/order.event/extract', printer: '/order.event/printer' } - +/** + * 设置纠纷订单 + * @param {*} data + */ + export function disputeStatus(data) { + return axios({ + url: '/order/disputeStatus', + method: 'post', + data + }) +} /** * 修改订单价格 * @param {*} data diff --git a/src/views/goods/Index.vue b/src/views/goods/Index.vue index 2137231..01b1b44 100644 --- a/src/views/goods/Index.vue +++ b/src/views/goods/Index.vue @@ -100,6 +100,13 @@ + + + + {{ item.name }} + + + 搜索 @@ -111,14 +118,17 @@
- - {{generateItem.goods_price_min}} + {{ + generateItem.goods_price_min + }} 原价¥{{ generateItem.line_price_min }}出售中 已下架 已售罄 - 已入池 - 未入池 +
modal.destroy()) }, - searchChange() { + searchChange() { this.$message.success('修改完成', 1.5) this.trimShow = 1 }, diff --git a/src/views/order/Index.vue b/src/views/order/Index.vue index aa3aec1..7d22788 100644 --- a/src/views/order/Index.vue +++ b/src/views/order/Index.vue @@ -51,6 +51,13 @@ }} + + + {{ + item.name + }} + + 搜索 重置 @@ -85,6 +92,7 @@ {{ item.create_time }} 订单号:{{ item.order_no }} + 纠纷订单
删除 复制 - 审单 + 审单 审单 - 再次审单 + 再次审单 再次审单 审单记录 + 设置纠纷订单
@@ -378,6 +395,11 @@ export default { showTotal: (total) => `共 ${total} 条记录`, // 显示总数 // 自提门店列表 shopList: [], + disputeList: [ + { name: '全部', val: 0 }, + { name: '正常', val: 10 }, + { name: '纠纷', val: 20 }, + ], } }, beforeCreate() { @@ -562,7 +584,21 @@ export default { }, }) }, - + documentDispute(item) { + const app = this + const modal = app.$confirm({ + title: '您确定要该订单记录设置为纠纷订单吗?', + content: '设置纠纷订单后不可恢复,请谨慎操作', + onOk() { + return EventApi.disputeStatus({orderId:item.order_id,form:{disputeStatus:20}}) + .then((result) => { + app.$message.success(result.message, 1.5) + app.handleRefresh() + }) + .finally((result) => modal.destroy()) + }, + }) + }, // 订单发货 handleDelivery(record) { this.$refs.DeliveryForm.show(record) diff --git a/src/views/setting/modules/CreateForm.vue b/src/views/setting/modules/CreateForm.vue index 7245a40..913f844 100644 --- a/src/views/setting/modules/CreateForm.vue +++ b/src/views/setting/modules/CreateForm.vue @@ -23,7 +23,25 @@ v-decorator="['store_name', { rules: [{ required: true, min: 3, message: '请输入至少3个字符' }] }]" />
- + + + + + + + + + + + + + + + + + + + import * as Api from '@/api/shop' - +import { SelectImage } from '@/components' export default { + components: { + SelectImage + }, data() { return { // 标签布局属性 @@ -141,3 +162,8 @@ export default { }, } + diff --git a/src/views/setting/modules/EditForm.vue b/src/views/setting/modules/EditForm.vue index 9d788f1..3bf068d 100644 --- a/src/views/setting/modules/EditForm.vue +++ b/src/views/setting/modules/EditForm.vue @@ -10,9 +10,45 @@ > + + + + + + + + + + + + + + + + + +

可输入小数,比如0.5

@@ -27,7 +63,11 @@ import pick from 'lodash.pick' import * as Api from '@/api/shop' import moment from 'moment' +import { SelectImage } from '@/components' export default { + components: { + SelectImage, + }, props: {}, data() { return { @@ -65,6 +105,13 @@ export default { // 设置默认值 record.effective_time = this.formatDate(record.effective_time) this.record = record + if (record) { + this.record.id_card_face_image_url = [ {preview_url: record.id_card_face_image_url} ] + this.record.id_card_back_image_url = [{ preview_url: record.id_card_back_image_url} ] + this.record.license_image_url = [{preview_url: record.license_image_url }] + this.record.legal_person_license_image_url = [{preview_url: record.legal_person_license_image_url} ] + } + console.log(record) this.setFieldsValue() }, @@ -76,6 +123,12 @@ export default { this.form.setFieldsValue( pick(this.record, [ 'markup_rate', + 'legal_person', + 'legal_person_phone', + 'id_card_face_image', + 'id_card_back_image', + 'license_image', + 'legal_person_license_image', ]) ) }) @@ -131,3 +184,8 @@ export default { }, } + \ No newline at end of file