| | |
| | | |
| | | <el-form-item label="现价" prop="xianprice"> |
| | | <el-input v-model="form.xianprice" placeholder="现价" clearable style="width: 140px" @input="changeXianjia" |
| | | @blur="numberChangeXianPrice(youhui, youhui)" type="number" :debounce="3000"/> |
| | | @blur="numberChangeXianPrice(youhui, youhui)" type="number" :debounce="3000" min="0"/> |
| | | </el-form-item> |
| | | <el-form-item label="关键字" prop="keywords"> |
| | | <el-select multiple v-model="form.keywords" placeholder="请选择关键字" style="width: 160px" @change="sel" filterable |
| | |
| | | youhui: 10, |
| | | debounceTimer: null, |
| | | rules: {}, |
| | | initializing: true, // 初始化标志 |
| | | }; |
| | | }, |
| | | created() { |
| | |
| | | counterPrice: null, |
| | | limits: 10, |
| | | }; |
| | | this.initializing = true; |
| | | this.resetForm("form"); |
| | | }, |
| | | handleQuery() { |
| | |
| | | this.pics = this.DataList.reduce((total, item) => total + item.priceOrd, 0); |
| | | this.$nextTick(() => { |
| | | this.$refs.tree.setCheckedKeys(this.checkedNodes); |
| | | this.initializing = false; |
| | | }); |
| | | }); |
| | | this.loading = false; |
| | |
| | | }); |
| | | }, |
| | | handleCurrentChecked(data, checked, indeterminate) { |
| | | if (this.initializing) { |
| | | return; // 初始化时不处理 |
| | | } |
| | | if (checked) { |
| | | if (!this.DataList.some((item) => item.proId === data.proId)) { |
| | | this.DataList.push({ |