From 845b4e285e146e96f5d7c148c8362c4e67afdae9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=97=AB=E6=99=93=E8=8C=B9?= <1935832701@qq.com> Date: Tue, 28 Feb 2023 17:10:56 +0800 Subject: [PATCH 1/9] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/goodsInfo/goodsInfojs.js | 30 +++++++++++++++++++ src/views/system/goodsInfo/index.vue | 36 +++++++++++++++++++++++ 2 files changed, 66 insertions(+) diff --git a/src/views/system/goodsInfo/goodsInfojs.js b/src/views/system/goodsInfo/goodsInfojs.js index c48f50e..91db956 100644 --- a/src/views/system/goodsInfo/goodsInfojs.js +++ b/src/views/system/goodsInfo/goodsInfojs.js @@ -73,6 +73,17 @@ export default { label: "是", }, ], + integraloption: [ + { + value: 0, + label: "否", + }, + { + value: 1, + label: "是", + }, + ], + value:"", // goodAttributeDetailsLists:[], goodDetailsLists: [], ids: [], @@ -217,6 +228,9 @@ export default { goodsPrice: "", goodsStock: "", sort: null, + integralExchangeCount:null, + integralExchangeFlag:null, + integralExchangeSill:null, idd: this.idd, }; this.goodDetailsLists.push(obj); @@ -317,6 +331,9 @@ export default { attributePitureUrl: "", goodsPrice: "", goodsStock: "", + integralExchangeCount:null, + integralExchangeFlag:null, + integralExchangeSill:null, sort: null, idd: 9999999, }, ]; @@ -360,6 +377,9 @@ export default { attributePitureUrl: "", goodsPrice: "", goodsStock: "", + integralExchangeCount:null, + integralExchangeFlag:null, + integralExchangeSill:null, sort: null, idd: 9999999, }, ]; @@ -387,6 +407,16 @@ export default { console.log(this.goodDetailsLists); this.form.goodAttributeDetailsLists = []; this.form.goodDetailsLists = this.goodDetailsLists; + if (!this.form.goodDetailsLists.integralExchangeFlag) { + this.form.goodDetailsLists.integralExchangeFlag = null + } + if (this.form.goodDetailsLists.integralExchangeSill=="") { + this.form.goodDetailsLists.integralExchangeSill = null + + } + if (this.form.goodDetailsLists.integralExchangeCount == "") { + this.form.goodDetailsLists.integralExchangeCount = null + } console.log(this.form); this.$refs["form"].validate((valid) => { if (valid) { diff --git a/src/views/system/goodsInfo/index.vue b/src/views/system/goodsInfo/index.vue index 5d8199a..e684542 100644 --- a/src/views/system/goodsInfo/index.vue +++ b/src/views/system/goodsInfo/index.vue @@ -260,6 +260,42 @@ > + + + + + + + + + + + + + + + + + Date: Wed, 1 Mar 2023 10:06:01 +0800 Subject: [PATCH 2/9] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/goodsInfo/index.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/views/system/goodsInfo/index.vue b/src/views/system/goodsInfo/index.vue index e684542..37ba556 100644 --- a/src/views/system/goodsInfo/index.vue +++ b/src/views/system/goodsInfo/index.vue @@ -279,6 +279,7 @@ Date: Fri, 3 Mar 2023 11:57:42 +0800 Subject: [PATCH 3/9] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/goodsOrder/index.vue | 117 +++++++++++++++++++++++++- 1 file changed, 113 insertions(+), 4 deletions(-) diff --git a/src/views/system/goodsOrder/index.vue b/src/views/system/goodsOrder/index.vue index 8ded831..9ae6a7c 100644 --- a/src/views/system/goodsOrder/index.vue +++ b/src/views/system/goodsOrder/index.vue @@ -132,6 +132,13 @@ > + + + {{ scope.row.orderType == "INTEGRAL_EXCHANGE" ? "积分兑换" : "" }} + {{ scope.row.orderType == "DIRECT_BUY" ? "直接购买" : "" }} + {{ scope.row.orderType == "HEALTH_CONSULTATION" ? "健康咨询" : "" }} + + - + + + + + + + + + + + + + + + + + + + + + + + + + @@ -460,6 +539,21 @@ style="width: 205px" /> + + + + + + Date: Fri, 3 Mar 2023 17:24:30 +0800 Subject: [PATCH 4/9] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/goodsInfo/goodsInfojs.js | 6 ++++++ src/views/system/goodsInfo/index.vue | 1 + 2 files changed, 7 insertions(+) diff --git a/src/views/system/goodsInfo/goodsInfojs.js b/src/views/system/goodsInfo/goodsInfojs.js index 91db956..54e3523 100644 --- a/src/views/system/goodsInfo/goodsInfojs.js +++ b/src/views/system/goodsInfo/goodsInfojs.js @@ -173,6 +173,12 @@ export default { this.infos(); }, methods: { + changeExchangeFlag(item) { + if (item.integralExchangeFlag == 0) { + item.integralExchangeCount = '' + item.integralExchangeSill = '' + } + }, imgs(item) { this.imgsurl.pictureUrlList.push(item); }, diff --git a/src/views/system/goodsInfo/index.vue b/src/views/system/goodsInfo/index.vue index 37ba556..67df2ea 100644 --- a/src/views/system/goodsInfo/index.vue +++ b/src/views/system/goodsInfo/index.vue @@ -266,6 +266,7 @@ v-model.number="scope.row.integralExchangeFlag" placeholder="请选择积分兑换标识" clearable + @change="changeExchangeFlag(scope.row)" > Date: Mon, 6 Mar 2023 10:13:33 +0800 Subject: [PATCH 5/9] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/goodsInfo/goodsInfojs.js | 8 ++++---- src/views/system/goodsInfo/index.vue | 8 ++++---- src/views/system/goodsOrder/index.vue | 1 - 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/views/system/goodsInfo/goodsInfojs.js b/src/views/system/goodsInfo/goodsInfojs.js index 54e3523..ceb0587 100644 --- a/src/views/system/goodsInfo/goodsInfojs.js +++ b/src/views/system/goodsInfo/goodsInfojs.js @@ -59,10 +59,10 @@ export default { value: "BUSINESS", label: "买卖", }, - { - value: "LEASE", - label: "租赁", - }, + // { + // value: "LEASE", + // label: "租赁", + // }, ], options: [{ value: 0, diff --git a/src/views/system/goodsInfo/index.vue b/src/views/system/goodsInfo/index.vue index 67df2ea..13698a9 100644 --- a/src/views/system/goodsInfo/index.vue +++ b/src/views/system/goodsInfo/index.vue @@ -277,24 +277,24 @@ - + - + diff --git a/src/views/system/goodsOrder/index.vue b/src/views/system/goodsOrder/index.vue index 9ae6a7c..69e91d3 100644 --- a/src/views/system/goodsOrder/index.vue +++ b/src/views/system/goodsOrder/index.vue @@ -324,7 +324,6 @@ Date: Mon, 6 Mar 2023 11:17:15 +0800 Subject: [PATCH 6/9] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/goodsInfo/index.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/system/goodsInfo/index.vue b/src/views/system/goodsInfo/index.vue index 13698a9..6ca0ab5 100644 --- a/src/views/system/goodsInfo/index.vue +++ b/src/views/system/goodsInfo/index.vue @@ -277,24 +277,24 @@ - + - + From 5b45809f961d96d0b8c2f9078c6ba506e1423022 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=97=AB=E6=99=93=E8=8C=B9?= <1935832701@qq.com> Date: Mon, 6 Mar 2023 14:53:17 +0800 Subject: [PATCH 7/9] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/goodsInfo/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/system/goodsInfo/index.vue b/src/views/system/goodsInfo/index.vue index 6ca0ab5..bac0029 100644 --- a/src/views/system/goodsInfo/index.vue +++ b/src/views/system/goodsInfo/index.vue @@ -299,7 +299,7 @@ > - + Date: Mon, 6 Mar 2023 16:54:27 +0800 Subject: [PATCH 8/9] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/goodsOrder/index.vue | 380 +++++++------------------- 1 file changed, 106 insertions(+), 274 deletions(-) diff --git a/src/views/system/goodsOrder/index.vue b/src/views/system/goodsOrder/index.vue index 69e91d3..87aa707 100644 --- a/src/views/system/goodsOrder/index.vue +++ b/src/views/system/goodsOrder/index.vue @@ -9,18 +9,13 @@ label-width="90px" > - + - + > @@ -32,17 +27,13 @@ /> - + - + > @@ -54,82 +45,31 @@ /> - 搜索 - 重置 + 搜索 + 重置 - + - - + + - 待付款 - 待发货 - 已取消 - 待收货 - 待评价 - 交易完成 - 退款中 - 待退货 - 退款成功 - 已退货 + 待付款 + 待发货 + 已取消 + 待收货 + 待评价 + 交易完成 + 退款中 + 待退货 + 退款成功 + 已退货 @@ -139,18 +79,8 @@ {{ scope.row.orderType == "HEALTH_CONSULTATION" ? "健康咨询" : "" }} - - + + {{ scope.row.orderChannel == "MOBILE_APP" ? "手机APP" : "" }} @@ -171,8 +101,7 @@ icon="el-icon-edit" @click="seelogistics(scope.row)" v-hasPermi="['system:goodsOrder:editExpressNo']" - >修改物流单号 + >修改物流单号 录入物流单号 + >录入物流单号 录入物流单号 + >录入物流单号 - + 订单详情 + >订单详情 确认退款 + >确认退款 + >--> @@ -243,25 +164,10 @@ @pagination="getList" /> - - + + - + - + > - + - + - - + + - - + + - + - + - + - + @@ -412,15 +278,8 @@ show-score text-color="#ff9900" score-template="{value}" - > - - + > + @@ -443,7 +302,7 @@ style="width: 23%; height: 100%; margin: 1%" v-for="(item, index) in ratelist" :src="baseurl + item.evaluatePictureUrl" - alt="" + alt :key="index" /> @@ -451,12 +310,7 @@ - + @@ -478,7 +332,7 @@ @@ -489,7 +343,7 @@ style="width: 230px" type="textarea" :rows="5" - placeholder="" + placeholder disabled clearable /> @@ -509,12 +363,7 @@ - + - + - + - + - + > - + - + + + + - + @@ -654,7 +486,7 @@ import { editExpressNo, goodsOrderrefund, weChatRefundOrderApply, - selectOrderEvaluate, + selectOrderEvaluate } from "@/api/system/goodsOrder"; import { getListByUser } from "@/api/system/userlist.js"; import baseurl from "@/api/baseurl.js"; @@ -677,58 +509,58 @@ export default { orderStatuslist: [ { value: "WAIT_PAY", - label: "待付款", + label: "待付款" }, { value: "PAY", - label: "待发货", + label: "待发货" }, { value: "WAIT_RECEIVED_GOODS", - label: "待收货", + label: "待收货" }, { value: "RECEIVED_GOODS", - label: "待评价", + label: "待评价" }, { value: "EVALUATED", - label: "交易完成", + label: "交易完成" }, { value: "CANCEL", - label: "已取消", + label: "已取消" }, { value: "WAIT_RETURNED_GOODS", - label: "待退货", + label: "待退货" }, { value: "RETURNED_GOODS", - label: "已退货", + label: "已退货" }, { value: "WAIT_REFUND", - label: "退款中", + label: "退款中" }, { value: "REFUNDED", - label: "退款成功", - }, + label: "退款成功" + } ], orderTypelist: [ { value: "INTEGRAL_EXCHANGE", - label: "积分兑换", + label: "积分兑换" }, { value: "DIRECT_BUY", - label: "直接购买", + label: "直接购买" }, { value: "HEALTH_CONSULTATION", - label: "健康咨询", - }, + label: "健康咨询" + } ], // 遮罩层 loading: true, @@ -762,24 +594,24 @@ export default { receiveAddress: null, phone: null, orderTime: null, - orderChannel: null, + orderChannel: null }, queryexpressNo: { id: "", - expressNo: null, + expressNo: null }, //权限查询 getListByUserquery: { pageNum: 1, - pageSize: 10, + pageSize: 10 }, refundinfo: { - id: "", + id: "" }, // 表单参数 form: {}, // 表单校验 - rules: {}, + rules: {} }; }, created() { @@ -854,7 +686,7 @@ export default { /** 查询商品订单列表 */ getList() { this.loading = true; - listGoodsOrder(this.queryParams).then((response) => { + listGoodsOrder(this.queryParams).then(response => { this.goodsOrderList = response.rows; this.total = response.total; this.loading = false; @@ -863,7 +695,7 @@ export default { // 查看商品信息 seeOrder(row) { const id = row.orderNo; - getGoodsOrderlist(id).then((res) => { + getGoodsOrderlist(id).then(res => { this.orderList = res.data; this.innerorder = true; this.ratelist = {}; @@ -883,7 +715,7 @@ export default { // 确定按钮 searchlogistics() { console.log(this.queryexpressNo); - editExpressNo(this.queryexpressNo).then((res) => { + editExpressNo(this.queryexpressNo).then(res => { if (res.code == 200) { this.$modal.msgSuccess("录入成功"); } @@ -900,7 +732,7 @@ export default { // 确认退款 refund(id) { console.log(id); - goodsOrderRefundinfo(id).then((res) => { + goodsOrderRefundinfo(id).then(res => { this.refundlist = res.data; console.log(this.refundlist); this.innerrefund = true; @@ -916,7 +748,7 @@ export default { obj.refundPrice = this.refundlist.godTotalPrice; obj.remark = this.refundlist.refundReasonRemark; obj.goodsStatus = this.refundlist.orderStatus; - weChatRefundOrderApply(obj).then((res) => { + weChatRefundOrderApply(obj).then(res => { if (res.code == 200) { this.$modal.msgSuccess("退款有延迟,请耐心等待"); } @@ -971,7 +803,7 @@ export default { receiveAddress: null, phone: null, orderTime: null, - orderChannel: null, + orderChannel: null }; this.form = { pageNum: 1, @@ -992,7 +824,7 @@ export default { createTime: null, updateBy: null, updateTime: null, - orderStatus: "", + orderStatus: "" }; this.resetForm("queryParams"); }, @@ -1024,7 +856,7 @@ export default { // 多选框选中数据 handleSelectionChange(selection) { - this.ids = selection.map((item) => item.id); + this.ids = selection.map(item => item.id); this.single = selection.length !== 1; this.multiple = !selection.length; }, @@ -1038,7 +870,7 @@ export default { handleUpdate(row) { this.reset(); const id = row.id || this.ids; - getGoodsOrder(id).then((response) => { + getGoodsOrder(id).then(response => { this.form = response.data; this.open = true; this.title = "修改商品订单"; @@ -1046,16 +878,16 @@ export default { }, /** 提交按钮 */ submitForm() { - this.$refs["form"].validate((valid) => { + this.$refs["form"].validate(valid => { if (valid) { if (this.form.id != null) { - updateGoodsOrder(this.form).then((response) => { + updateGoodsOrder(this.form).then(response => { this.$modal.msgSuccess("修改成功"); this.open = false; this.getList(); }); } else { - addGoodsOrder(this.form).then((response) => { + addGoodsOrder(this.form).then(response => { this.$modal.msgSuccess("新增成功"); this.open = false; this.getList(); @@ -1069,7 +901,7 @@ export default { const ids = row.id || this.ids; this.$modal .confirm('是否确认删除商品订单编号为"' + ids + '"的数据项?') - .then(function () { + .then(function() { return delGoodsOrder(ids); }) .then(() => { @@ -1083,14 +915,14 @@ export default { this.download( "system/goodsOrder/export", { - ...this.getListByUserquery, + ...this.getListByUserquery }, `goodsOrder_${new Date().getTime()}.xlsx` ); }, //权限列表 info() { - getListByUser(this.getListByUserquery).then((res) => { + getListByUser(this.getListByUserquery).then(res => { this.total2 = res.total; this.nurseStationlist = res.rows; this.queryParams.nurseStationId = res.rows[0].id; @@ -1101,13 +933,13 @@ export default { infos() { var queryFor = { pageNum: 1, - pageSize: 9999, + pageSize: 9999 }; - getListByUser(queryFor).then((res) => { + getListByUser(queryFor).then(res => { console.log(res); this.handstationlist = res.rows; }); - }, - }, + } + } }; From 906e621a126b2848d891ff83563d9f5a220fe72a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com> Date: Mon, 6 Mar 2023 17:22:48 +0800 Subject: [PATCH 9/9] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/goodsOrder/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/system/goodsOrder/index.vue b/src/views/system/goodsOrder/index.vue index 87aa707..284fea7 100644 --- a/src/views/system/goodsOrder/index.vue +++ b/src/views/system/goodsOrder/index.vue @@ -68,7 +68,7 @@ 交易完成 退款中 待退货 - 退款成功 + 已退款 已退货