| | |
| | | size="mini" |
| | | @select=" |
| | | (val) => { |
| | | handleSelectClient(val, item.prop, scope.row) |
| | | handleSelectClient(val, item.prop, scope.row,scope) |
| | | } |
| | | " |
| | | ></el-autocomplete> |
| | |
| | | :controls="false" |
| | | size="mini" |
| | | style="width: 100%; margin-right: 5px" |
| | | :min="item.prop === 'minInventory' ? 0 : 1" |
| | | :min="item.prop === 'minInventory' ? 0 : 0" |
| | | @change=" |
| | | (val) => { |
| | | commonInputChange(val, item.prop, scope.row) |
| | |
| | | style="width: 80%" |
| | | @change=" |
| | | (val) => { |
| | | selSonLocationClick(val, item.prop) |
| | | selSonLocationClick(val, item.prop,scope.row,scope) |
| | | } |
| | | " |
| | | > |
| | |
| | | computed: {}, |
| | | watch: { |
| | | productTableList() { |
| | | this.tableList = this.productTableList |
| | | // this.showcol = this.productTableList.showcol |
| | | this.getTableInfo() |
| | | } |
| | | }, |
| | | methods: { |
| | | getTableInfo(){ |
| | | this.tableList = this.productTableList |
| | | if (this.tableList.tableData.length === 1 && this.tableList.tableData[0].name === "") { |
| | | this.isRecalculate = false |
| | | } else { |
| | | this.isRecalculate = true |
| | | } |
| | | }, |
| | | // 产品名称 |
| | | async getProductList() { |
| | | await getProductList({ |
| | |
| | | }) |
| | | }, |
| | | // 下拉搜索 |
| | | 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 = [] |
| | |
| | | this.$emit("selLocationClick", item, prop) |
| | | }, |
| | | // 选择子位置 |
| | | selSonLocationClick(item) { |
| | | this.$emit("selSonLocationClick", item) |
| | | selSonLocationClick(item,prop,row,scope) { |
| | | this.$emit("selSonLocationClick", item,prop,row,scope) |
| | | }, |
| | | // 获取在库与预测数量 |
| | | getAmountAndPrediction(item, val, ite) { |