Commit 57e453dd by chenwq

秒杀,商品下架

1 parent 5bc087ec
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<el-date-picker v-model="editForm.activityTime" type="datetimerange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" value-format="yyyy-MM-dd HH:mm:ss" :picker-options="pickerOptions" :default-time="['00:00:00', '23:59:59']" :disabled="isDisabled" @change="e => handleTimeChange(e, scope.scope)"></el-date-picker> <el-date-picker v-model="editForm.activityTime" type="datetimerange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" value-format="yyyy-MM-dd HH:mm:ss" :picker-options="pickerOptions" :default-time="['00:00:00', '23:59:59']" :disabled="isDisabled" @change="e => handleTimeChange(e, scope.scope)"></el-date-picker>
</template> </template>
<div slot="goodsHtml"> <div slot="goodsHtml">
<el-button type="default" class="default-blue-btn el-icon-plus" v-if="apear != 'see'" @click="handleRelateProClose">选择商品</el-button> <el-button type="default" class="default-blue-btn el-icon-plus" v-if="!isDisabled" :disabled="apear == 'see'" @click="handleRelateProClose">选择商品</el-button>
<div v-if="selectedProInfo.id && !specificationDetailList.length" style="margin-top: 10px"> <div v-if="selectedProInfo.id && !specificationDetailList.length" style="margin-top: 10px">
<p> <p>
<img class="img-60" :src="selectedProInfo.goodsImage" /> <img class="img-60" :src="selectedProInfo.goodsImage" />
...@@ -371,18 +371,22 @@ export default { ...@@ -371,18 +371,22 @@ export default {
}, },
getGoodInfo(id) { getGoodInfo(id) {
this.$apis.proManage.getProInfoApi({ id: id }).then(res => { if (!id) {
this.selectedProInfo = this.$common.utils.deepClone(res) this.isDisabled = false
if (this.selectedProInfo.specificationDetailList.length) { } else {
this.changeFormAttr('editFormData', 'isHide', ['规格明细'], false) this.$apis.proManage.getProInfoApi({ id: id }).then(res => {
this.specificationDetailList = this.selectedProInfo.specificationList this.selectedProInfo = this.$common.utils.deepClone(res)
this.recoverySpec() if (this.selectedProInfo.specificationDetailList.length) {
} else { this.changeFormAttr('editFormData', 'isHide', ['规格明细'], false)
this.changeFormAttr('editFormData', 'isHide', ['规格明细'], true) this.specificationDetailList = this.selectedProInfo.specificationList
this.nameToValSpecsList = [] this.recoverySpec()
this.specificationDetailList = [] } else {
} this.changeFormAttr('editFormData', 'isHide', ['规格明细'], true)
}) this.nameToValSpecsList = []
this.specificationDetailList = []
}
})
}
}, },
// 规格值解构 // 规格值解构
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!