Commit 439d1842 by 宋毅

tj

parent b039d8c1
......@@ -14,6 +14,10 @@ module.exports = (db, DataTypes) => {
type: DataTypes.BOOLEAN,
defaultValue: false,
},
is_show: { //是否显示
type: DataTypes.BOOLEAN,
defaultValue: true,
},
price_type: { //类型mj:每件,mc:每次,mt:每天,my:每月,mn:每年,qj:区间
type: DataTypes.ENUM,
values: Object.keys(uiconfig.config.pdict.price_type),
......
......@@ -33,7 +33,7 @@ class ProductService extends ServiceBase {
}
var pList = await this.productpriceDao.model.findAll({
where: { product_id: item.id },
attributes: ["id", "pay_code", "price", "supply_price", "service_charge", "public_expense", "is_default", "price_type", "price_type_name",
attributes: ["id", "pay_code", "price", "supply_price", "service_charge", "public_expense", "is_default", "is_show", "price_type", "price_type_name",
"sort", "price_desc", "min_qty", "max_qty", "service_code"
],
raw: true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment