diff --git a/src/api/order/index.js b/src/api/order/index.js index 61272b7..fabdcb9 100644 --- a/src/api/order/index.js +++ b/src/api/order/index.js @@ -1,5 +1,34 @@ import { axios } from '@/utils/request' - +/** + * 审单 + * @param {*} data + */ + export function updateStandard(data) { + return axios({ + url: '/order/updateStandard', + method: 'post', + data + }) +} +/** + * 审单 + * @param {*} data + */ + export function standard(data) { + return axios({ + url: '/order/standard', + method: 'post', + data + }) +} +// 列表记录 +export function getStandardList (params) { + return axios({ + url: 'order/getStandard', + method: 'get', + params + }) +} // api接口列表 const api = { list: '/order/list', diff --git a/src/views/goods/Index.vue b/src/views/goods/Index.vue index f1e7c80..c9b6193 100644 --- a/src/views/goods/Index.vue +++ b/src/views/goods/Index.vue @@ -111,21 +111,22 @@
- + {{generateItem.goods_price_min}} 原价¥{{ generateItem.line_price_min }}
-
大牌正品
-
现货秒发
+
大牌正品
+
现货秒发
{{ generateItem.goods_name }}
@@ -619,6 +620,7 @@ export default { generateVisible: false, generateItem: '', is_jingpin: 1, + trimShow:1, categoryIds: [], } }, @@ -1017,6 +1019,10 @@ export default { }, searchChange() { this.$message.success('修改完成', 1.5) + this.trimShow = 1 + }, + handleInputChange() { + this.trimShow = 2 }, // 编辑记录 async handleEdit(id) { diff --git a/src/views/order/Index.vue b/src/views/order/Index.vue index ffbd17d..0f8adf3 100644 --- a/src/views/order/Index.vue +++ b/src/views/order/Index.vue @@ -220,6 +220,18 @@ >删除 复制 + @@ -403,6 +415,46 @@ export default { this.getShopList() }, methods: { + reviewDocuments(item, type) { + if (type == 1) { + const app = this + const modal = app.$confirm({ + title: '是否确定审单?', + onOk() { + return Api.standard({ + orderId: item.order_id, + form: { + type: 10, + }, + }) + .then((result) => { + app.$message.success(result.message, 1.5) + app.handleRefresh() + }) + .finally((result) => modal.destroy()) + }, + }) + } + if (type == 2) { + const app = this + const modal = app.$confirm({ + title: '是否确定再次审单?', + onOk() { + return Api.standard({ + orderId: item.order_id, + form: { + type: 20, + }, + }) + .then((result) => { + app.$message.success(result.message, 1.5) + app.handleRefresh() + }) + .finally((result) => modal.destroy()) + }, + }) + } + }, // 初始化页面 init() { this.dataType = this.getDataType()