Commit ef1a0f24 by 张立顺

财务规则去除品类限制

1 parent a0ce1e46
...@@ -136,7 +136,7 @@ export default { ...@@ -136,7 +136,7 @@ export default {
return new Promise(async (resolve) => { return new Promise(async (resolve) => {
try { try {
// debugger // debugger
console.log(state, dispatch) // console.log(state, dispatch)
// 设置数据 // 设置数据
dispatch( dispatch(
"d2admin/db/set", "d2admin/db/set",
......
...@@ -650,10 +650,10 @@ export default { ...@@ -650,10 +650,10 @@ export default {
// } // }
}, },
goodsTypeGroupDivisionId() { goodsTypeGroupDivisionId() {
console.log( // console.log(
this.tabItem.groupDivisionRuleId, // this.tabItem.groupDivisionRuleId,
"this.tabItem.groupDivisionRuleId" // "this.tabItem.groupDivisionRuleId"
) // )
const id = const id =
this.tabItem.testFlag != "Y" ? this.tabItem.groupDivisionRuleId : false this.tabItem.testFlag != "Y" ? this.tabItem.groupDivisionRuleId : false
return id || false return id || false
...@@ -826,10 +826,10 @@ export default { ...@@ -826,10 +826,10 @@ export default {
// ...mapMutations('FinancialRules', ['toggle', 'set']), // ...mapMutations('FinancialRules', ['toggle', 'set']),
resetGoodsTypeGroupDivisionId() { resetGoodsTypeGroupDivisionId() {
// goodsTypeGroupDivisionId() { // goodsTypeGroupDivisionId() {
console.log( // console.log(
this.tabItem.groupDivisionRuleId, // this.tabItem.groupDivisionRuleId,
"this.tabItem.groupDivisionRuleId" // "this.tabItem.groupDivisionRuleId"
) // )
// const id = this.tabItem.testFlag != 'Y' ? this.tabItem.groupDivisionRuleId : false // const id = this.tabItem.testFlag != 'Y' ? this.tabItem.groupDivisionRuleId : false
// this.goodsTypeGroupDivisionId = id || false // this.goodsTypeGroupDivisionId = id || false
// } // }
......
...@@ -210,6 +210,8 @@ export default { ...@@ -210,6 +210,8 @@ export default {
const length1 = this.goodsTypeGroupRelations.length const length1 = this.goodsTypeGroupRelations.length
const length2 = this.editableTabs.length - 1 const length2 = this.editableTabs.length - 1
const length3 = this.goodsSelectList.length const length3 = this.goodsSelectList.length
console.log(length1, length2, length3, 'addVisible')
console.log((length1 - length3) > 0 && length1 > length2, 'addVisible')
return (length1 - length3) > 0 && length1 > length2 return (length1 - length3) > 0 && length1 > length2
}, },
// //
...@@ -291,8 +293,9 @@ export default { ...@@ -291,8 +293,9 @@ export default {
this.settleTimeObj[settleTimeType == 1 ? 'first' : 'second'] = settleTime this.settleTimeObj[settleTimeType == 1 ? 'first' : 'second'] = settleTime
}, },
getGoodsCategoryConfiguration() { getGoodsCategoryConfiguration() {
const { scene: sceneType } = this.routerInfo // const { scene: sceneType } = this.routerInfo
getGoodsCategoryConfiguration({ sceneType }).then((result) => { // sceneType
getGoodsCategoryConfiguration({}).then((result) => {
const { list } = result const { list } = result
if (list.length) { if (list.length) {
this.productType = list.map(({ categoryType, categoryName }) => { this.productType = list.map(({ categoryType, categoryName }) => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!