From 01eeccaecfafad2257a4b1e18bdc56f5e9c6dd38 Mon Sep 17 00:00:00 2001 From: GaoHao <1210693421@qq.com> Date: Fri, 25 Oct 2024 09:55:57 +0800 Subject: [PATCH 01/16] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BC=98=E6=83=A0?= =?UTF-8?q?=E5=88=B8=E7=9B=B8=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components copy/wine/addModal.vue | 388 ++++++++++++++++++ .../components copy/wine/record.vue | 145 +++++++ .../components copy/winestorage/addModal.vue | 188 +++++++++ .../winestorage/historyModal.vue | 38 ++ .../components copy/winestorage/record.vue | 166 ++++++++ .../components copy/winetotal/winetotal.vue | 82 ++++ .../addCoupon.vue => add_coupon.vue} | 255 +++++++----- .../components/coupon_details.vue | 204 +++++++++ src/views/coupon_manage/couponEnum.js | 25 +- src/views/coupon_manage/coupon_list.vue | 51 +-- 10 files changed, 1413 insertions(+), 129 deletions(-) create mode 100644 src/views/application/components copy/wine/addModal.vue create mode 100644 src/views/application/components copy/wine/record.vue create mode 100644 src/views/application/components copy/winestorage/addModal.vue create mode 100644 src/views/application/components copy/winestorage/historyModal.vue create mode 100644 src/views/application/components copy/winestorage/record.vue create mode 100644 src/views/application/components copy/winetotal/winetotal.vue rename src/views/coupon_manage/{components/addCoupon.vue => add_coupon.vue} (53%) create mode 100644 src/views/coupon_manage/components/coupon_details.vue diff --git a/src/views/application/components copy/wine/addModal.vue b/src/views/application/components copy/wine/addModal.vue new file mode 100644 index 0000000..a52be43 --- /dev/null +++ b/src/views/application/components copy/wine/addModal.vue @@ -0,0 +1,388 @@ + + + + + \ No newline at end of file diff --git a/src/views/application/components copy/wine/record.vue b/src/views/application/components copy/wine/record.vue new file mode 100644 index 0000000..7e4ada5 --- /dev/null +++ b/src/views/application/components copy/wine/record.vue @@ -0,0 +1,145 @@ + + + \ No newline at end of file diff --git a/src/views/application/components copy/winestorage/addModal.vue b/src/views/application/components copy/winestorage/addModal.vue new file mode 100644 index 0000000..c7c0b84 --- /dev/null +++ b/src/views/application/components copy/winestorage/addModal.vue @@ -0,0 +1,188 @@ + + + + + \ No newline at end of file diff --git a/src/views/application/components copy/winestorage/historyModal.vue b/src/views/application/components copy/winestorage/historyModal.vue new file mode 100644 index 0000000..41961be --- /dev/null +++ b/src/views/application/components copy/winestorage/historyModal.vue @@ -0,0 +1,38 @@ + + + \ No newline at end of file diff --git a/src/views/application/components copy/winestorage/record.vue b/src/views/application/components copy/winestorage/record.vue new file mode 100644 index 0000000..4837e0b --- /dev/null +++ b/src/views/application/components copy/winestorage/record.vue @@ -0,0 +1,166 @@ + + + \ No newline at end of file diff --git a/src/views/application/components copy/winetotal/winetotal.vue b/src/views/application/components copy/winetotal/winetotal.vue new file mode 100644 index 0000000..5a57a65 --- /dev/null +++ b/src/views/application/components copy/winetotal/winetotal.vue @@ -0,0 +1,82 @@ + + + + + \ No newline at end of file diff --git a/src/views/coupon_manage/components/addCoupon.vue b/src/views/coupon_manage/add_coupon.vue similarity index 53% rename from src/views/coupon_manage/components/addCoupon.vue rename to src/views/coupon_manage/add_coupon.vue index fa12b7a..25d5dea 100644 --- a/src/views/coupon_manage/components/addCoupon.vue +++ b/src/views/coupon_manage/add_coupon.vue @@ -1,83 +1,111 @@ \ No newline at end of file diff --git a/src/views/coupon_manage/components/coupon_details.vue b/src/views/coupon_manage/components/coupon_details.vue new file mode 100644 index 0000000..b0fb115 --- /dev/null +++ b/src/views/coupon_manage/components/coupon_details.vue @@ -0,0 +1,204 @@ + + + + + diff --git a/src/views/coupon_manage/couponEnum.js b/src/views/coupon_manage/couponEnum.js index 9bf81ab..94a6b6e 100644 --- a/src/views/coupon_manage/couponEnum.js +++ b/src/views/coupon_manage/couponEnum.js @@ -19,14 +19,33 @@ export default { label: '折扣' } ], - effectType: [ + cycle: [ + { label: '周一'}, + { label: '周二'}, + { label: '周三'}, + { label: '周四'}, + { label: '周五'}, + { label: '周六'}, + { label: '周七'}, + ], + validityType: [ { value: '0', - label: '一直有效' + label: '领券后有效期内可用' }, { value: '1', - label: '时限有效' + label: '固定有效期范围内可用' + } + ], + effectType: [ + { + value: '0', + label: '全时段可用' + }, + { + value: '1', + label: '指定时间段' } ] } \ No newline at end of file diff --git a/src/views/coupon_manage/coupon_list.vue b/src/views/coupon_manage/coupon_list.vue index 9c9b65a..ec307f0 100644 --- a/src/views/coupon_manage/coupon_list.vue +++ b/src/views/coupon_manage/coupon_list.vue @@ -1,42 +1,43 @@ \ No newline at end of file + From c3cd0e704ed76a9fe1ac7b88fc5b1b2b6eaf9950 Mon Sep 17 00:00:00 2001 From: duan <1004387497@qq.com> Date: Tue, 29 Oct 2024 13:33:33 +0800 Subject: [PATCH 06/16] =?UTF-8?q?=E5=95=86=E5=93=81=E5=88=86=E7=B1=BB?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E9=9C=80=E8=A6=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/product/category.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/product/category.vue b/src/views/product/category.vue index 650c31f..7d44ce2 100644 --- a/src/views/product/category.vue +++ b/src/views/product/category.vue @@ -25,18 +25,18 @@ @change="showChange($event, scope.row)"> - + @@ -352,7 +352,6 @@ - + + + + +
@@ -592,7 +624,7 @@ import { tbConsInfoFlowstock } from "@/api/consumable"; import AddConsTakin from "../components/addConsTakin"; -import { tbConsInfodownload, tbConsInfoinputStock } from '@/api/invoicing' +import { tbConsInfodownload, tbConsInfoinputStock, unittbConsInfo } from '@/api/invoicing' import { downloadFile } from "@/utils"; import UploadExcel from '@/components/UploadExcel' import consRecordDetail from "../components/cons_record_detail"; @@ -676,6 +708,9 @@ export default { total: 0 }, ruleFormLoading: false, + dialogtitleunit: false, + unitItem: { switchs: 2 }, + switchs: 2, ruleForms: [], ruleForm: { conCode: "", @@ -768,6 +803,15 @@ export default { } }) }, + async submitUnit() { + const res = await unittbConsInfo([{ + conUnitTwoConvert: this.unitItem.conUnitTwoConvert * 1, + conUnitTwo: this.unitItem.conUnitTwo, + id: this.unitItem.id + }]) + this.unitItem = {} + this.dialogtitleunit = false + }, //跳转订单列表 toGoodslist(orderNo) { this.$router.push({ @@ -842,13 +886,18 @@ export default { console.log(error); } }, + // 单位编辑 + editorHandles(row) { + this.unitItem = row; + this.dialogtitleunit = true; + }, + // 编辑 editorHandle(row) { this.dialogtitle = "编辑"; for (let key in this.ruleForm) { this.ruleForm[key] = row[key]; } - console.log(row, '调试1') this.ruleForm.id = row.id; this.dialogshow = true; }, @@ -1305,4 +1354,70 @@ export default { } } } + +.unitStyle { + display: flex; + align-items: center; + border-radius: 2px 2px 2px 2px; + + >div:first-child { + width: 95px; + height: 42px; + line-height: 42px; + text-align: center; + border-right: 1px solid #DDDFE6; + font-family: Source Han Sans CN, Source Han Sans CN; + font-weight: 400; + font-size: 14px; + color: #999999; + } + + >div:nth-child(2) { + width: 120px; + height: 42px; + line-height: 42px; + text-align: center; + border-right: 1px solid #DDDFE6; + font-family: Source Han Sans CN, Source Han Sans CN; + font-weight: 400; + font-size: 14px; + color: #3F9EFF; + } + + >div:last-child { + font-family: Source Han Sans CN, Source Han Sans CN; + font-weight: 400; + font-size: 14px; + color: #999999; + + >input { + width: 39px; + height: 28px; + background: #FFFFFF; + border-radius: 2px 2px 2px 2px; + border: 1px solid #DDDFE6; + margin: 0 16px; + } + + } +} + +.unitStyleBottom { + margin-top: 30px; + line-height: 42px; + text-align: center; + font-family: Source Han Sans CN, Source Han Sans CN; + font-weight: 400; + font-size: 14px; + color: #3F9EFF; + + +} + +.unitWidth { + // width: 418px; + height: 42px; + border-radius: 2px 2px 2px 2px; + border: 1px solid #DDDFE6; +} diff --git a/src/views/invoicing/operation_in.vue b/src/views/invoicing/operation_in.vue index 612add2..5339e28 100644 --- a/src/views/invoicing/operation_in.vue +++ b/src/views/invoicing/operation_in.vue @@ -122,6 +122,15 @@
原价¥{{ scope.row.costPrice }}/{{ scope.row.conUnit }}
+ + + + + + + + + + \ No newline at end of file From 909760e9bf6ec2b48af232c80624745623232fe2 Mon Sep 17 00:00:00 2001 From: duan <1004387497@qq.com> Date: Wed, 30 Oct 2024 16:50:32 +0800 Subject: [PATCH 10/16] =?UTF-8?q?=E8=80=97=E6=9D=90=E5=89=AF=E5=8D=95?= =?UTF-8?q?=E4=BD=8D=E5=9B=9E=E6=98=BE=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/invoicing/consumable/information.vue | 4 ++++ src/views/invoicing/operation_in.vue | 2 +- src/views/invoicing/operation_out.vue | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/views/invoicing/consumable/information.vue b/src/views/invoicing/consumable/information.vue index c29c018..cc1b31f 100644 --- a/src/views/invoicing/consumable/information.vue +++ b/src/views/invoicing/consumable/information.vue @@ -889,6 +889,10 @@ export default { // 单位编辑 editorHandles(row) { this.unitItem = row; + this.switchs = 2 + if (row.conUnitTwo) { + this.switchs = 1 + } this.dialogtitleunit = true; }, diff --git a/src/views/invoicing/operation_in.vue b/src/views/invoicing/operation_in.vue index 5339e28..97bd84d 100644 --- a/src/views/invoicing/operation_in.vue +++ b/src/views/invoicing/operation_in.vue @@ -124,7 +124,7 @@ - +
-
- +
+ +
删除
-
+
+ + + + + + + + + + + + + + + + + + + + + + + + 取 消 + 确 定 + - +
@@ -39,4 +116,10 @@ export default { .head-container { margin-top: 20px; } + +.goods_info { + display: flex; + align-items: center; + gap: 10px; +} \ No newline at end of file diff --git a/src/views/application/member_points.vue b/src/views/application/member_points.vue index ffed912..3894dd0 100644 --- a/src/views/application/member_points.vue +++ b/src/views/application/member_points.vue @@ -16,6 +16,7 @@ import Setting from './components/member_points/setting.vue' import ShopList from './components/member_points/shop_list.vue' import Record from './components/member_points/record.vue' export default { + name: "member_points", components: { Setting, ShopList, @@ -23,7 +24,7 @@ export default { }, data() { return { - activeName: '3' + activeName: '1' } } } diff --git a/src/views/product/index.vue b/src/views/product/index.vue index 7362af3..5fbc199 100644 --- a/src/views/product/index.vue +++ b/src/views/product/index.vue @@ -21,7 +21,7 @@
- 添加商品 + 添加商品 @@ -139,7 +139,7 @@
- {{ scope.row.conInfos | conInfosFilter }} + {{ scope.row.conInfos | conInfosFilter }}
@@ -189,7 +189,7 @@ style="margin-left: 20px !important;"> 编辑 --> - 编辑 + 编辑 删除 @@ -244,6 +244,7 @@ import { tbProductListV2, tbShopCategoryGet, tbProductDelete, tbProductIsHot, up import { hasPermission } from '@/utils/limits.js' export default { + name: 'product', components: { BindCons, StockHistory @@ -315,14 +316,14 @@ export default { }, methods: { // 是否允许修改商品 - async toPath ( path , row) { + async toPath(path, row) { let res = await hasPermission('允许修改商品'); - if ( !res) { return; } + if (!res) { return; } let query = {}; - if ( row ) { + if (row) { query.goods_id = row.id; } - this.$router.push({path: path, query: query}) + this.$router.push({ path: path, query: query }) }, // 显示修改商品警告线 showStockWarningHandle() { @@ -383,13 +384,13 @@ export default { }, async changeGrounding(event, row, key) { let text; - if (key == 'grounding') { text = "允许上下架商品"} - if (key == 'pauseSale') { text = "允许售罄商品"} + if (key == 'grounding') { text = "允许上下架商品" } + if (key == 'pauseSale') { text = "允许售罄商品" } let res = await hasPermission(text); - if ( !res) { - if (key == 'grounding') { row.isGrounding = (event == 0 ? 1 : 0);} - if (key == 'pauseSale') { row.isPauseSale = (event == 0 ? 1 : 0);} - return; + if (!res) { + if (key == 'grounding') { row.isGrounding = (event == 0 ? 1 : 0); } + if (key == 'pauseSale') { row.isPauseSale = (event == 0 ? 1 : 0); } + return; } this.editorForm.key = key this.editorForm.id = row.id @@ -415,7 +416,7 @@ export default { // 修改库存 async changePrice(type, row) { let res = await hasPermission('允许修改商品库存'); - if ( !res) { return; } + if (!res) { return; } this.editorVisable = true this.editorForm.key = type this.editorForm.id = row.id @@ -437,7 +438,7 @@ export default { // 显示绑定耗材 async showBindCons(item) { let res = await hasPermission('允许修改商品'); - if ( !res) { return; } + if (!res) { return; } // console.log(item); this.$refs.bindCons.show(item) }, @@ -562,7 +563,7 @@ export default { // 删除商品 async delTableHandle(ids) { let res = await hasPermission('允许修改商品'); - if ( !res) { return; } + if (!res) { return; } try { await tbProductDelete(ids) this.getTableData() @@ -575,6 +576,10 @@ export default {