Commit a0c57de3 by 前端

测试BUG修复

1 parent c3bb5c4c
...@@ -100,7 +100,8 @@ ...@@ -100,7 +100,8 @@
</el-form-item> </el-form-item>
</template> </template>
<el-form-item label="上架类型:"> <el-form-item label="上架类型:">
<el-radio-group v-model="infoForm.shelfType"> <el-radio-group v-model="infoForm.shelfType"
:disabled="shelfTypeDisabled">
<el-radio v-for="(item, index) in shelfTypeList" <el-radio v-for="(item, index) in shelfTypeList"
:label="item.confId" :label="item.confId"
:key="index">{{ :key="index">{{
...@@ -268,7 +269,8 @@ export default { ...@@ -268,7 +269,8 @@ export default {
updatePercentage: 0, updatePercentage: 0,
succNum: 0, succNum: 0,
failNum: 0, failNum: 0,
shelfTypeList: deepClone(shelfTypeOpt) shelfTypeList: deepClone(shelfTypeOpt),
shelfTypeDisabled: false
} }
}, },
computed: { computed: {
...@@ -379,6 +381,8 @@ export default { ...@@ -379,6 +381,8 @@ export default {
this.itemList = deepClone(this.itemList) this.itemList = deepClone(this.itemList)
this.infoForm = deepClone(this.infoForm) this.infoForm = deepClone(this.infoForm)
this.itemRuleAdd(this.itemList) this.itemRuleAdd(this.itemList)
this.infoForm.shelfType = basicInfo.shelfType
this.shelfTypeDisabled = true
console.log("this.itemList", this.itemList) console.log("this.itemList", this.itemList)
} }
this.loading = false this.loading = false
......
...@@ -405,13 +405,13 @@ export default { ...@@ -405,13 +405,13 @@ export default {
} }
let _flag = true let _flag = true
selectedData.forEach(item => { selectedData.forEach(item => {
if (item.cancelStatus == 'Y') { // 包含已作废的二维码 if (item.cancelStatus == 'Y' || item.useStatus == 'Y') { // 包含已作废或已使用的二维码
_flag = false _flag = false
} }
}) })
if (!_flag) { if (!_flag) {
this.$message({ this.$message({
message: "包含已作废的二维码,请重新选择", message: "包含已作废或已使用的二维码,请重新选择",
type: "warning", type: "warning",
showClose: true showClose: true
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!