From 21a9548e450d1059e3b73e065696bdc3b38ce383 Mon Sep 17 00:00:00 2001
From: duan <1004387497@qq.com>
Date: Fri, 16 Aug 2024 15:23:14 +0800
Subject: [PATCH 1/6] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=B5=A0=E9=80=81?=
=?UTF-8?q?=E5=95=86=E5=93=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/home/data_forms.vue | 4 +-
.../user_manage/components/addActive.vue | 112 +++++++++++++++++-
.../user_manage/components/downloadQR.vue | 2 +-
3 files changed, 115 insertions(+), 3 deletions(-)
diff --git a/src/views/home/data_forms.vue b/src/views/home/data_forms.vue
index f7fd002..8453278 100644
--- a/src/views/home/data_forms.vue
+++ b/src/views/home/data_forms.vue
@@ -216,7 +216,9 @@ export default {
startTime: this.query.createdAt[0],
endTime: this.query.createdAt[1],
cateId: this.query.cateId,
- proName: this.query.proName
+ proName: this.query.proName,
+
+ type: this.orderType,
});
this.payCountList = res;
} catch (error) {
diff --git a/src/views/user_manage/components/addActive.vue b/src/views/user_manage/components/addActive.vue
index 7846a95..61fc1ae 100644
--- a/src/views/user_manage/components/addActive.vue
+++ b/src/views/user_manage/components/addActive.vue
@@ -20,20 +20,40 @@
+
+
+
+ 添加商品
+
+
+
+
+
+
+
+
{{ item.name }}
+
+
+
+
+
\ No newline at end of file
+
+
\ No newline at end of file
diff --git a/src/views/user_manage/components/downloadQR.vue b/src/views/user_manage/components/downloadQR.vue
index 5e4bd36..e616290 100644
--- a/src/views/user_manage/components/downloadQR.vue
+++ b/src/views/user_manage/components/downloadQR.vue
@@ -22,11 +22,11 @@ export default {
}
},
mounted() {
- this.getlist()
},
methods: {
show() {
this.isshow = true
+ this.getlist()
},
async getlist() {
let res = await getwxacode({
From c51d5cd064044df965788431500afd2e65567e1f Mon Sep 17 00:00:00 2001
From: duan <1004387497@qq.com>
Date: Mon, 19 Aug 2024 17:54:21 +0800
Subject: [PATCH 2/6] =?UTF-8?q?=E5=B9=BF=E5=91=8A=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/application.js | 47 ++++++
src/api/goxcx.js | 47 ++++++
src/views/application/advertisement.vue | 155 ++++++++++++++++++
.../invoicing/components/addConsTakin.vue | 32 +++-
.../invoicing/components/addStockTakin.vue | 2 +
.../invoicing/consumable/information.vue | 102 +++++++-----
.../invoicing/consumable/specifications.vue | 4 +-
src/views/product/components/addGroup.vue | 2 +
src/views/product/index.vue | 6 +-
src/views/shop/components/goxcx.vue | 123 ++++++++++++++
src/views/shop/shop_configuration.vue | 5 +-
src/views/user_manage/user_list.vue | 56 ++++++-
12 files changed, 517 insertions(+), 64 deletions(-)
create mode 100644 src/api/goxcx.js
create mode 100644 src/views/application/advertisement.vue
create mode 100644 src/views/shop/components/goxcx.vue
diff --git a/src/api/application.js b/src/api/application.js
index 6d90106..c25328e 100644
--- a/src/api/application.js
+++ b/src/api/application.js
@@ -124,3 +124,50 @@ export function countRecord(data) {
}
});
}
+
+
+/**
+ * 广告列表
+ * @returns
+ */
+export function adget(params) {
+ return request({
+ url: "/api/ad",
+ method: "get",
+ params
+ });
+}
+
+/**
+* 广告新增单位
+* @returns
+*/
+export function adpost(data) {
+ return request({
+ url: `/api/miniAppPages`,
+ method: "post",
+ data
+ });
+}
+/**
+* 广告编辑详情
+* @returns
+*/
+export function adput(data) {
+ return request({
+ url: '/api/miniAppPages',
+ method: 'put',
+ data
+ })
+}
+
+/**
+* 广告删除商品
+* @returns
+*/
+export function addelete(params) {
+ return request({
+ url: "/api/miniAppPages/" + params,
+ method: "put",
+ });
+}
diff --git a/src/api/goxcx.js b/src/api/goxcx.js
new file mode 100644
index 0000000..4922962
--- /dev/null
+++ b/src/api/goxcx.js
@@ -0,0 +1,47 @@
+import request from "@/utils/request";
+
+/**
+ * 列表
+ * @returns
+ */
+export function miniAppPagesget(params) {
+ return request({
+ url: "/api/miniAppPages",
+ method: "get",
+ params
+ });
+}
+
+/**
+ * 新增单位
+ * @returns
+ */
+export function miniAppPagespost(data) {
+ return request({
+ url: `/api/miniAppPages`,
+ method: "post",
+ data
+ });
+}
+/**
+* 编辑详情
+* @returns
+*/
+export function miniAppPagesput(data) {
+ return request({
+ url: '/api/miniAppPages',
+ method: 'put',
+ data
+ })
+}
+
+/**
+ * 删除商品
+ * @returns
+ */
+export function miniAppPagesdelete(params) {
+ return request({
+ url: "/api/miniAppPages/" + params,
+ method: "delete",
+ });
+}
diff --git a/src/views/application/advertisement.vue b/src/views/application/advertisement.vue
new file mode 100644
index 0000000..5e9e97c
--- /dev/null
+++ b/src/views/application/advertisement.vue
@@ -0,0 +1,155 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 新增
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.showPosition == 'home' ? '首页' : "点餐页" }}
+
+
+
+
+
+
+
+
+
+
+
+ 编辑
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 可见
+ 不可见
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/invoicing/components/addConsTakin.vue b/src/views/invoicing/components/addConsTakin.vue
index ed09d4f..c0bde07 100644
--- a/src/views/invoicing/components/addConsTakin.vue
+++ b/src/views/invoicing/components/addConsTakin.vue
@@ -1,12 +1,12 @@
-
+
-
@@ -78,7 +78,8 @@ export default {
productId: '', // 必传
stocktakinNum: '', // 必传
price: '', // 商品价格 非必传 为空盘点价格为商品价格
- note: "" // 盘点备注 非必传
+ remark: "", // 盘点备注 非必传
+ stockNumber: 0
},
rules: {
stocktakinNum: [
@@ -109,20 +110,29 @@ export default {
},
computed: {
profitNumber() {
- return this.form.stocktakinNum - this.form.balance
+ console.log(this.form, '盈亏数量')
+ if (this.form.balance == undefined) {
+ return this.form.stockNumber - 0
+ } else {
+ return this.form.stockNumber - this.form.balance
+ }
},
profitPrice() {
- return formatDecimal(this.profitNumber * this.form.price && 0)
+ console.log(this.form, '盈亏金额')
+ return formatDecimal((this.form.stockNumber - this.form.balance) * this.form.price)
}
},
methods: {
+
onSubmitHandle() {
this.$refs.form.validate(async valid => {
if (valid) {
try {
this.form.lpNum = this.profitNumber
+ // this.form.stockNumber = this.form.stocktakinNum
this.loading = true
let res = await tbConCheck(this.form)
+ console.log(this.form);
this.$emit('success', res)
// this.dialogVisible = false
this.loading = false
@@ -140,10 +150,16 @@ export default {
})
},
show(obj) {
+ this.form.remark = ''
+ this.form.stocktakinNum = 0
+ this.form.lpNum = 0
+ // this.form.stockNumber = 0
+
this.form = Object.assign(this.form, obj)
this.dialogVisible = true
this.form.conInfoId = obj.consId
- this.form.stockNumber = obj.balance
+ this.form.stockNumber = obj.balance * 1
+ this.form.price == null ? 0 : this.form.price
this.searhForm.skuId = obj.productId
this.searhForm.productId = obj.consId
@@ -166,9 +182,7 @@ export default {
const res = await tbConCheckGet({
page: this.tableData.page,
size: this.tableData.size,
- name: this.searhForm.name,
- skuId: this.searhForm.category,
- productId: this.searhForm.productId,
+ conInfoId: this.searhForm.productId,
sort: 'id,desc',
})
this.tableData.list = res.content
diff --git a/src/views/invoicing/components/addStockTakin.vue b/src/views/invoicing/components/addStockTakin.vue
index b419a4b..1f12ef7 100644
--- a/src/views/invoicing/components/addStockTakin.vue
+++ b/src/views/invoicing/components/addStockTakin.vue
@@ -110,9 +110,11 @@ export default {
},
computed: {
profitNumber() {
+ // 盈亏数量
return this.form.stocktakinNum - this.detail.stockNumber
},
profitPrice() {
+ // 盈亏金额
return formatDecimal((this.form.stocktakinNum - this.detail.stockNumber) * this.detail.salePrice)
}
},
diff --git a/src/views/invoicing/consumable/information.vue b/src/views/invoicing/consumable/information.vue
index 8c22add..090d457 100644
--- a/src/views/invoicing/consumable/information.vue
+++ b/src/views/invoicing/consumable/information.vue
@@ -52,70 +52,75 @@
-
-
-
-
-
+
+
+
+
+
+
+ {{ scope.row.conName }}
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.conUnit }}
+
+
+
-
+
+
{{ scope.row.balance }}
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
- {{
- item.productName }}
-
-
-
+
{{ (scope.row.balance).toFixed(2) }}
+
+
+
+
+
+
+ {{ scope.row.conWarning }}
+
+
+
+
-
-
-
-
+
-
-
-
编辑
@@ -506,7 +511,7 @@ export default {
downloadLoading: false,
uploadLoading: false,
dialogVisible: false,
- consRecordItem: ''
+ consRecordItem: '',
};
},
mounted() {
@@ -541,7 +546,7 @@ export default {
}
},
toGoods(data) {
-
+
this.$router.push({
path: '/product/product',
query: {
@@ -569,6 +574,15 @@ export default {
console.log(error);
}
},
+ async conNameClick(row) {
+ await postapitbConsInfo([{
+ id: row.consId,
+ ...row,
+ shopId: localStorage.getItem('shopId')
+ }])
+ row.editNYD = 0
+ this.$message.success('修改成功')
+ },
computedClass(num) {
if (num > 0) {
return 'green'
@@ -639,8 +653,9 @@ export default {
this.tableData.data = res.content.map(v => {
const productIds = v.productId ? v.productId.split(',') : []
return {
- ...v,
- product: productIds.map((str, index) => {
+ ...v,
+ editNYD: 0,
+ product: productIds.map((str, index) => {
const startIndex = str.indexOf('_')
const productId = str.slice(0, startIndex)
const productName = str.slice(startIndex + 1, str.length)
@@ -815,6 +830,7 @@ export default {
},
// 显示耗材记录
async clicksee(item) {
+ console.log(item, '耗材记录')
this.consRecordItem = item
this.clickseetypedialogshow = true;
this.getConsRecord()
@@ -826,7 +842,7 @@ export default {
const res = await gettbConsInfoFlow({
page: this.clickseetableData.page,
size: this.clickseetableData.size,
- consId: this.consRecordItem.id,
+ consId: this.consRecordItem.consId,
conName: this.consRecordItem.conName,
shopId: localStorage.getItem("shopId")
});
diff --git a/src/views/invoicing/consumable/specifications.vue b/src/views/invoicing/consumable/specifications.vue
index bc8d843..38ae521 100644
--- a/src/views/invoicing/consumable/specifications.vue
+++ b/src/views/invoicing/consumable/specifications.vue
@@ -962,10 +962,8 @@ export default {
},
async submitForm(formName) {
if (this.dialogtitle == "编辑") {
- let { id, surplusStock } = this.surplusStocks;
await puttbProskuCon({
- id,
- surplusStock,
+ ...this.surplusStocks
});
this.$message({
message: "修改成功",
diff --git a/src/views/product/components/addGroup.vue b/src/views/product/components/addGroup.vue
index 01fc3b9..0529fde 100644
--- a/src/views/product/components/addGroup.vue
+++ b/src/views/product/components/addGroup.vue
@@ -163,6 +163,8 @@ export default {
type: 'success'
});
} catch (error) {
+ this.$emit('success', null)
+ this.loading = false
console.log(error)
}
}
diff --git a/src/views/product/index.vue b/src/views/product/index.vue
index 0edffff..b476b85 100644
--- a/src/views/product/index.vue
+++ b/src/views/product/index.vue
@@ -97,7 +97,7 @@
-
@@ -228,6 +228,10 @@ export default {
console.log(error)
}
},
+ handleSizeChange(val) {
+ this.tableData.size = val
+ this.getTableData()
+ },
// 获取商品分类列表
async tbShopCategoryGet() {
try {
diff --git a/src/views/shop/components/goxcx.vue b/src/views/shop/components/goxcx.vue
new file mode 100644
index 0000000..c7b296b
--- /dev/null
+++ b/src/views/shop/components/goxcx.vue
@@ -0,0 +1,123 @@
+
+
+
+ 新增
+
+
+
+
+
+
+
+ {{ scope.row.status == 1 ? "可见" : "不可见" }}
+
+
+
+
+
+ 编辑
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 可见
+ 不可见
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/shop/shop_configuration.vue b/src/views/shop/shop_configuration.vue
index 7e53fb1..9c55bec 100644
--- a/src/views/shop/shop_configuration.vue
+++ b/src/views/shop/shop_configuration.vue
@@ -6,6 +6,7 @@
+
@@ -13,6 +14,7 @@
+
@@ -23,11 +25,12 @@ import shopSetting from './components/shopSetting'
import notice from './components/notice'
import securitySetting from './components/securitySetting'
import extend from './components/extend'
+import goxcx from './components/goxcx'
export default {
components: {
shopInfo,
shopSetting,
- notice,securitySetting,extend
+ notice,securitySetting,extend,goxcx
},
data() {
return {
diff --git a/src/views/user_manage/user_list.vue b/src/views/user_manage/user_list.vue
index 9b87ba9..b785859 100644
--- a/src/views/user_manage/user_list.vue
+++ b/src/views/user_manage/user_list.vue
@@ -88,18 +88,19 @@
{{ scope.row.lastLoginAt | timeFilter }}
-
-
+
+
+ 编辑
+ 增减余额
+
-
-
+
+
@@ -107,6 +108,34 @@
@size-change="sizeChange" @current-change="paginationChange"
layout="total, sizes, prev, pager, next, jumper">
+
+
+
+
+
+ {{ userinfo.nickName }}
+
+
+
+ 增加
+ 备选项
+
+
+
+
+
+
+
+ 消费
+ 充值退款
+
+
+
+
+
@@ -132,6 +161,12 @@ export default {
size: 10,
loading: false,
total: 0
+ },
+ dialogVisible: false,
+ userinfo: {
+ nickName: '',
+ IncreaseDeduction: 1,
+ type: 1
}
};
},
@@ -146,6 +181,13 @@ export default {
this.getShopInfo();
},
methods: {
+ handleClose() {
+ this.userinfo = {}
+ },
+ editPop(d) {
+ this.dialogVisible = true
+ this.userinfo.nickName = d.nickName
+ },
toPage(type) {
const pages = {
charge: "charge_list",
From 1fde054290e9a76bfc8a012abc09986d288dde2b Mon Sep 17 00:00:00 2001
From: duan <1004387497@qq.com>
Date: Tue, 20 Aug 2024 16:57:26 +0800
Subject: [PATCH 3/6] =?UTF-8?q?=E7=94=A8=E6=88=B7=E7=BC=96=E8=BE=91?=
=?UTF-8?q?=E5=92=8C=E4=BD=99=E9=A2=9D=E5=A2=9E=E5=8A=A0=E5=87=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/application.js | 8 +-
src/api/shop.js | 25 ++++
src/views/application/advertisement.vue | 141 ++++++++++++++----
.../invoicing/components/addConsTakin.vue | 2 +-
src/views/invoicing/goods_stoks.vue | 9 +-
src/views/product/components/addGroup.vue | 2 +
.../user_manage/components/addActive.vue | 39 +++--
src/views/user_manage/user_list.vue | 103 +++++++++++--
8 files changed, 273 insertions(+), 56 deletions(-)
diff --git a/src/api/application.js b/src/api/application.js
index c25328e..8aa460c 100644
--- a/src/api/application.js
+++ b/src/api/application.js
@@ -144,7 +144,7 @@ export function adget(params) {
*/
export function adpost(data) {
return request({
- url: `/api/miniAppPages`,
+ url: `/api/ad`,
method: "post",
data
});
@@ -155,7 +155,7 @@ export function adpost(data) {
*/
export function adput(data) {
return request({
- url: '/api/miniAppPages',
+ url: '/api/ad',
method: 'put',
data
})
@@ -167,7 +167,7 @@ export function adput(data) {
*/
export function addelete(params) {
return request({
- url: "/api/miniAppPages/" + params,
- method: "put",
+ url: "/api/ad/" + params,
+ method: "DELETE",
});
}
diff --git a/src/api/shop.js b/src/api/shop.js
index ee36c3f..ce3fdc9 100644
--- a/src/api/shop.js
+++ b/src/api/shop.js
@@ -607,3 +607,28 @@ export function shopStaffDelete(data) {
data
});
}
+
+//增减余额
+export function midfiyAccount(data) {
+ return request({
+ url: `/api/tbShopUser/midfiyAccount`,
+ method: "post",
+ data
+ });
+}
+// 编辑用户
+export function tbShopUseredit(data) {
+ return request({
+ url: `/api/tbShopUser`,
+ method: "put",
+ data
+ });
+}
+// 通过活动id获取赠送商品列表
+
+export function activate(id) {
+ return request({
+ url: `shop/storage/activate/${id}`,
+ method: "get"
+ });
+}
\ No newline at end of file
diff --git a/src/views/application/advertisement.vue b/src/views/application/advertisement.vue
index 5e9e97c..3fac8dc 100644
--- a/src/views/application/advertisement.vue
+++ b/src/views/application/advertisement.vue
@@ -10,7 +10,7 @@
-
+
@@ -20,7 +20,7 @@
-
+
@@ -36,7 +36,11 @@
@change="showChange($event, scope.row)">
-
+
+
+ {{ scope.row.frequency | frequencyFilter }}
+
+
@@ -53,19 +57,40 @@
-->
-
-
-
-
-
-
+
+
+
+
+ 点击上传
+ 建议尺寸:520px*680px
+
-
-
- 可见
- 不可见
+
+
+
+
+
+ 首页
+ 点餐页
+
+
+ 仅首次打开显示
+ 每次打开显示一次
+ 每30天显示一次
+ 每7天显示一次
+ 每3天显示一次
+ 每1天显示一次
+
+
+
+
+
+
+
+