From 321b1fc341a3556860f7306e3789fc2172c5fc9b Mon Sep 17 00:00:00 2001 From: fanfan Date: Fri, 9 Aug 2024 21:24:36 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/order/event.js | 20 ++- src/components/Table/STable.js | 1 + src/views/goods/category/modules/AddForm.vue | 1 - src/views/order/Detail.vue | 29 +++- .../{RemarkForm.vue => RemarkFormAdd.vue} | 42 ++---- src/views/order/modules/RemarkFormDetails.vue | 93 +++++++++++++ src/views/order/modules/RemarkFormEdit.vue | 128 ++++++++++++++++++ src/views/order/modules/index.js | 5 +- 8 files changed, 281 insertions(+), 38 deletions(-) rename src/views/order/modules/{RemarkForm.vue => RemarkFormAdd.vue} (73%) create mode 100644 src/views/order/modules/RemarkFormDetails.vue create mode 100644 src/views/order/modules/RemarkFormEdit.vue diff --git a/src/api/order/event.js b/src/api/order/event.js index 266af5b..50a2493 100644 --- a/src/api/order/event.js +++ b/src/api/order/event.js @@ -9,7 +9,25 @@ const api = { extract: '/order.event/extract', printer: '/order.event/printer' } - +// 修改商家备注c查看 +export function getRemark (params) { + return axios({ + url: '/order.event/getRemark', + method: 'get', + params + }) +} +/** + * 修改商家备注新增 + * @param {*} data + */ + export function addRemark (data) { + return axios({ + url: '/order.event/addRemark', + method: 'post', + data + }) +} /** * 修改订单价格 * @param {*} data diff --git a/src/components/Table/STable.js b/src/components/Table/STable.js index 6047ec5..3059413 100644 --- a/src/components/Table/STable.js +++ b/src/components/Table/STable.js @@ -158,6 +158,7 @@ export default { ...filters } ) + console.log(this.data,'KKKKKK') // console.log('params', params) const result = this.data(params) // 对接自己的通用数据接口需要修改下方代码中的 r.page, r.totalCount, r.data diff --git a/src/views/goods/category/modules/AddForm.vue b/src/views/goods/category/modules/AddForm.vue index bbd5145..4529bba 100644 --- a/src/views/goods/category/modules/AddForm.vue +++ b/src/views/goods/category/modules/AddForm.vue @@ -111,7 +111,6 @@ export default { confirmLoading: false, // 当前表单元素 form: this.$form.createForm(this), - // 上级分类列表 categoryListTree: [] } diff --git a/src/views/order/Detail.vue b/src/views/order/Detail.vue index f314fae..0ba6daf 100644 --- a/src/views/order/Detail.vue +++ b/src/views/order/Detail.vue @@ -135,7 +135,7 @@ - 查看备注 + 查看备注 {{ record.trade ? record.trade.out_trade_no : '-' }} @@ -278,8 +278,8 @@
- - 商品图片 + + 商品图片
共{{ goods.delivery_num }}件
@@ -370,7 +370,8 @@ - + +
@@ -379,7 +380,16 @@ import { inArray } from '@/utils/util' import * as Api from '@/api/order' import { GoodsItem, UserItem } from '@/components/Table' -import { DeliveryForm, ExtractForm, CancelForm, PrinterForm, PriceForm, RemarkForm, JingDong } from './modules' +import { + DeliveryForm, + ExtractForm, + CancelForm, + PrinterForm, + PriceForm, + RemarkFormEdit, + JingDong, + RemarkFormAdd, +} from './modules' import { Ueditor } from '@/components' import { OrderTypeEnum, @@ -435,9 +445,10 @@ export default { CancelForm, PrinterForm, PriceForm, - RemarkForm, Ueditor, JingDong, + RemarkFormAdd, + RemarkFormEdit, }, data() { return { @@ -584,7 +595,11 @@ export default { // 商家备注 handleMerchantRemark() { const { record } = this - this.$refs.RemarkForm.show(record) + this.$refs.RemarkFormAdd.show(record) + }, + handleLookRemark() { + const { record } = this + this.$refs.RemarkFormEdit.show(record) }, // 京东链接 onClickJongDongLink() { diff --git a/src/views/order/modules/RemarkForm.vue b/src/views/order/modules/RemarkFormAdd.vue similarity index 73% rename from src/views/order/modules/RemarkForm.vue rename to src/views/order/modules/RemarkFormAdd.vue index 0ccc6b2..909fbc3 100644 --- a/src/views/order/modules/RemarkForm.vue +++ b/src/views/order/modules/RemarkFormAdd.vue @@ -11,13 +11,17 @@ > - - + + + + + + + @@ -27,10 +31,10 @@ diff --git a/src/views/order/modules/RemarkFormEdit.vue b/src/views/order/modules/RemarkFormEdit.vue new file mode 100644 index 0000000..c78984f --- /dev/null +++ b/src/views/order/modules/RemarkFormEdit.vue @@ -0,0 +1,128 @@ + + + diff --git a/src/views/order/modules/index.js b/src/views/order/modules/index.js index 25edbe2..dbd038c 100644 --- a/src/views/order/modules/index.js +++ b/src/views/order/modules/index.js @@ -3,7 +3,8 @@ import ExtractForm from './ExtractForm' import CancelForm from './CancelForm' import PrinterForm from './PrinterForm' import PriceForm from './PriceForm' -import RemarkForm from './RemarkForm' +import RemarkFormAdd from './RemarkFormAdd' +import RemarkFormEdit from './RemarkFormEdit' import JingDong from './JingDong' -export { DeliveryForm, ExtractForm, CancelForm, PrinterForm, PriceForm, RemarkForm,JingDong } +export { DeliveryForm, ExtractForm, CancelForm, PrinterForm, PriceForm,RemarkFormEdit, RemarkFormAdd,JingDong }