diff --git a/java-mall-app-shop-admin/pages/forgetPassword/forgetPassword.vue b/java-mall-app-shop-admin/pages/forgetPassword/forgetPassword.vue index 27d0ee1..7a26974 100644 --- a/java-mall-app-shop-admin/pages/forgetPassword/forgetPassword.vue +++ b/java-mall-app-shop-admin/pages/forgetPassword/forgetPassword.vue @@ -339,7 +339,7 @@ export default { } .input_icon { - /deep/ .u-icon__icon { + ::v-deep .u-icon__icon { font-size: 36rpx !important; } } diff --git a/java-mall-app-shop-admin/pages/login/login.vue b/java-mall-app-shop-admin/pages/login/login.vue index 9f595d8..d9a8f0a 100644 --- a/java-mall-app-shop-admin/pages/login/login.vue +++ b/java-mall-app-shop-admin/pages/login/login.vue @@ -496,7 +496,7 @@ export default { } .input_icon { - /deep/ .u-icon__icon { + ::v-deep .u-icon__icon { font-size: 36rpx !important; } } diff --git a/java-mall-app-shop-admin/pages/register/register.vue b/java-mall-app-shop-admin/pages/register/register.vue index 50057f4..8de9ade 100644 --- a/java-mall-app-shop-admin/pages/register/register.vue +++ b/java-mall-app-shop-admin/pages/register/register.vue @@ -270,7 +270,7 @@ export default { } .input_icon { - /deep/ .u-icon__icon { + ::v-deep.u-icon__icon { font-size: 36rpx !important; } } diff --git a/java-mall-app-shop-admin/pages/warehouse/manage/specification.vue b/java-mall-app-shop-admin/pages/warehouse/manage/specification.vue index 9582115..a454c45 100644 --- a/java-mall-app-shop-admin/pages/warehouse/manage/specification.vue +++ b/java-mall-app-shop-admin/pages/warehouse/manage/specification.vue @@ -108,9 +108,9 @@ > - + --> + + + + 确认删除"{{ currDelectItem.spec_name }}"规格? + + + + 取消 + + + 确认 + + + + + @@ -276,7 +309,6 @@ export default { pageSize: 20, specificationList: [], currDelectItem: {}, - currEidtItem: {}, showDelectPopup: false, showAddAndEditPopup: false, form: { @@ -315,7 +347,6 @@ export default { let res = await GetCommodityClassify(); if (res && res.status == 200) { const classifyList = res.data; - if (classifyList.length > 0) { this.baTreePickerList = classifyList.map((item) => { // 创建父节点,并保留所有原始字段 @@ -357,11 +388,50 @@ export default { this.currDelectItem = item; this.showDelectPopup = true; }, + handerShowEeditPopup(item){ + this.isAdd = false + item = { + spec_category_name: "", + ...item + } + this.form = item; + + const findCategory = (categories, targetId) => { + for (const category of categories) { + // Check current category + if (category.category_id === targetId) { + return category; + } + + // Check subcategories if they exist + if (category.children && category.children.length > 0) { + const foundInSub = findCategory(category.children, targetId); + if (foundInSub) return foundInSub; + } + } + return null; + } + + if(this.baTreePickerList.length > 0){ + const matchedCategory = findCategory(this.baTreePickerList, item.spec_category_id); + if (matchedCategory) { + this.form.spec_category_name = matchedCategory.category_name + } + } + this.showAddAndEditPopup = true + }, hadnerShowClassifyListPopup() { this.$refs.tkitree._show(); }, handerAddAndEditPopup(isAdd) { this.isAdd = isAdd; + this.form = { + spec_name: "", + spec_order: "", + spec_category_id: "", + spec_format: "text", + spec_category_name: "", + } this.showAddAndEditPopup = true; }, async handerAffirmAddAndEdit() { @@ -374,10 +444,48 @@ export default { type: "succeed", duration: 1000, }); - + this.showAddAndEditPopup = false this.getSpecificationList(true); + this.form = { + spec_name: "", + spec_order: "", + spec_category_id: "", + spec_format: "text", + spec_category_name: "", + } } }, + async handerDelectClassify(){ + let params = { + spec_ids:this.currDelectItem.spec_id + } + + let res = await DelectSpecification(params) + if(res && res.status == 200){ + this.$refs.uToast.show({ + message: "删除成功", + type: "succeed", + duration: 1000, + }); + this.showDelectPopup = false + this.getSpecificationList() + } + }, + treeCancel(){ + this.$refs.tkitree._hide(); + + }, + treeConfirm(list){ + console.log(this.form) + if(list.length > 1){ + this.form.spec_category_name = list[1].category_name; + this.form.spec_category_id = list[1].category_id; + }else{ + this.form.spec_category_name = list[0].category_name; + this.form.spec_category_id = list[0].category_id; + } + + } }, }; @@ -456,6 +564,53 @@ export default { } } + .affirm-popup { + ::v-deep.u-popup__content { + border-radius: 16rpx; + } + + ::v-deep.u-fade-enter-to { + z-index: 10076 !important; + } + + .affirm-popup-content { + width: 600rpx; + + .affirm-popup-title { + padding: 40rpx; + text-align: center; + font-weight: 500; + } + + .affirm-popup-tips { + padding: 0 60rpx; + font-size: 28rpx; + text-align: center; + } + + .popup-btn-list { + display: flex; + margin: 50rpx; + + .btn-item { + width: 46%; + height: 80rpx; + border-color: #909193; + + &::after { + border: none; + } + } + + .btn-item-2 { + background: $base-color; + color: #fff; + border: none; + } + } + } + } + .add-popup { ::v-deep.u-popup__content { border-radius: 16rpx;