select s.price_set_id, s.price_set_code, s.price_set_name, s.price_set_note,
s.set_type, s.default_discount, s.default_type, s.calculate_sign,
- s.effective_date, s.expire_date, s.status, s.tms_id,
+ s.status, s.tms_id,
s.created_by, s.create_time, s.updated_by, s.update_time,
(select count(distinct d.product_code) from prc_price_set_detail d where d.price_set_id = s.price_set_id) as product_count,
(select count(1) from prc_customer_price_set c where c.price_set_id = s.price_set_id) as customer_count
@@ -93,8 +91,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
default_discount,
default_type,
calculate_sign,
- effective_date,
- expire_date,
status,
tms_id,
created_by,
@@ -107,8 +103,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{defaultDiscount},
#{defaultType},
#{calculateSign},
- #{effectiveDate},
- #{expireDate},
#{status},
#{tmsId},
#{createBy},
@@ -126,8 +120,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
default_discount = #{defaultDiscount},
default_type = #{defaultType},
calculate_sign = #{calculateSign},
- effective_date = #{effectiveDate},
- expire_date = #{expireDate},
status = #{status},
tms_id = #{tmsId},
updated_by = #{updateBy},
@@ -140,7 +132,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
update prc_price_set
status = #{status},
- effective_date = #{effectiveDate},
updated_by = #{updateBy},
update_time = sysdate()
diff --git a/bms-front/src/api/price/set.js b/bms-front/src/api/price/set.js
index 007c693d..80699aee 100644
--- a/bms-front/src/api/price/set.js
+++ b/bms-front/src/api/price/set.js
@@ -142,6 +142,13 @@ export function disablePriceSet(priceSetId) {
})
}
+export function enablePriceSet(priceSetId) {
+ return request({
+ url: '/price/set/enable/' + priceSetId,
+ method: 'put'
+ })
+}
+
export function copyPriceSet(priceSetId) {
return request({
url: '/price/set/copy/' + priceSetId,
diff --git a/bms-front/src/views/customersuppliermanagement/customerinfo/customeredit/index.vue b/bms-front/src/views/customersuppliermanagement/customerinfo/customeredit/index.vue
index f1cf57f3..7843e3cb 100644
--- a/bms-front/src/views/customersuppliermanagement/customerinfo/customeredit/index.vue
+++ b/bms-front/src/views/customersuppliermanagement/customerinfo/customeredit/index.vue
@@ -800,8 +800,8 @@ function removeProduct(productId) {
/* ---------------- 套餐绑定(prc_customer_price_set,一客户一套餐) ---------------- */
const setTypeMap = { FIXED: '固定价', DISCOUNT: '折扣' }
-const priceSetStatusMap = { D: '草稿', A: '审核中', E: '生效', R: '驳回', S: '停用' }
-const priceSetStatusTagType = { D: 'info', A: 'warning', E: 'success', R: 'danger', S: 'info' }
+const priceSetStatusMap = { D: '待启用', A: '审核中', E: '生效', R: '驳回', S: '停用' }
+const priceSetStatusTagType = { D: 'warning', A: 'warning', E: 'success', R: 'danger', S: 'info' }
const boundPriceSets = ref([])
const priceSetOptions = ref([])
diff --git a/bms-front/src/views/price/set/components/detail/SetDetailHeader.vue b/bms-front/src/views/price/set/components/detail/SetDetailHeader.vue
index 56063bae..3aa2cd58 100644
--- a/bms-front/src/views/price/set/components/detail/SetDetailHeader.vue
+++ b/bms-front/src/views/price/set/components/detail/SetDetailHeader.vue
@@ -4,6 +4,7 @@
{{ set.priceSetName || '套餐详情' }}
{{ set.priceSetCode }}
+ {{ setStatusLabel(set) }}