| | |
| | | <div class="custom-name"> |
| | | <el-autocomplete |
| | | v-model="scope.row[item.prop]" |
| | | :fetch-suggestions="querySearchAsync" |
| | | :fetch-suggestions=" |
| | | (queryString, callback) => { |
| | | querySearchAsync(queryString, callback, 'product') |
| | | } |
| | | " |
| | | value-key="name" |
| | | :disabled="!isOperate" |
| | | size="mini" |
| | | @select=" |
| | | (val) => { |
| | | handleSelectClient(val, item.prop, scope.row) |
| | | handleSelectClient(val, item.prop, scope.row,scope) |
| | | } |
| | | " |
| | | ></el-autocomplete> |
| | |
| | | </div> |
| | | </el-form-item> |
| | | <el-form-item |
| | | v-else-if="item.inputFloat" |
| | | v-else-if="item.inputFloat||item.inputFloatValue" |
| | | label=" " |
| | | :prop="'tableData.' + scope.$index + '.' + item.prop" |
| | | :rules="[{ required: item.isRequird ? true : false, message: '输入不能为空' }]" |
| | | > |
| | | <span v-if="scope.row.isEdit">{{ scope.row[item.prop] }}</span> |
| | | <span v-if="scope.row.isEdit||(item.inputFloatValue&&!scope.row[item.isInputFloat])">{{ scope.row[item.prop] }}</span> |
| | | <div v-else @click.stop="commoInput"> |
| | | <el-input-number |
| | | v-model="scope.row[item.prop]" |
| | |
| | | }) |
| | | }, |
| | | // 下拉搜索 |
| | | async handleSelectClient(value, item) { |
| | | this.$emit("selProductClick", value, item) |
| | | async handleSelectClient(value, item,row,scope) { |
| | | this.$emit("selProductClick", value, item,row,scope) |
| | | if (value === "product") { |
| | | if (item.categoryId === 0 || item.categoryName === "") { |
| | | this.productTypeNameOptions = [] |
| | |
| | | } else if (value === "formLocation") { |
| | | restaurants = this.selLocationOptions |
| | | } |
| | | var results = queryString ? restaurants.filter(this.createStateFilter(queryString, value)) : restaurants |
| | | var results = (queryString&&restaurants) ? restaurants.filter(this.createStateFilter(queryString, value)) : restaurants |
| | | cb(results) |
| | | if (results.length === 0) { |
| | | this.productTypeNameOptions = [] |
| | |
| | | this.locacionName = "" |
| | | await getLocationList({ |
| | | // keyword: "", |
| | | type:3, |
| | | jointName: this.initialPosition ? this.initialPosition : null, |
| | | productId: this.queryProductId ? this.queryProductId : null, |
| | | productCategoryId: this.categoryId ? this.categoryId : null, |