| | |
| | | v-model="editConfig.infomation.purchaseTypeId" |
| | | clearable |
| | | style="width: calc(100% - 30px)" |
| | | @visible-change="selPurchaseChange" |
| | | > |
| | | <el-option |
| | | v-for="ele in plcBrandList" |
| | |
| | | }, |
| | | created() { |
| | | console.log(this.editConfig, "参数") |
| | | if (this.editConfig.title == "新建") { |
| | | this.handleGetBomKindDictList() |
| | | } |
| | | this.getWarehouseInfo() |
| | | this.$store.dispatch("getSupplier") |
| | | this.formInfo() |
| | |
| | | "editCommonConfig.visible": { |
| | | immediate: true, |
| | | handler: function () { |
| | | if (this.editConfig.title == "新建") { |
| | | this.handleGetBomKindDictList(true) |
| | | } |
| | | } |
| | | } |
| | | }, |
| | |
| | | this.plcBrandList = res.data |
| | | this.setTableForm() |
| | | if (val) { |
| | | // this.plcBrandList.map((item)=>{ |
| | | // item.purchaseTypeId=item.id |
| | | // }) |
| | | for (let i in this.plcBrandList) { |
| | | if (this.plcBrandList[i][this.editRow.isDefault]) { |
| | | this.editConfig.infomation.purchaseTypeId = this.editConfig.infomation.purchaseTypeId |
| | |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | // 选择采购类型下拉方法 |
| | | selPurchaseChange(val) { |
| | | if (val) { |
| | | this.handleGetBomKindDictList() |
| | | } |
| | | }, |
| | | handleConfirmSave(data) { |
| | | console.log(data, "data") |
| | |
| | | this.editConfig.infomation = { |
| | | productList: res.data.productList, |
| | | supplierName: res.data.purchase.supplier.name, |
| | | ...res.data.purchase, |
| | | purchaseTypeId: res.data.purchase.purchaseTypeId == "0" ? "" : res.data.purchase.purchaseTypeId |
| | | ...res.data.purchase |
| | | } |
| | | } else { |
| | | this.$message.error(res.msg ? res.msg + "," : "" + "获取信息失败!") |
| | |
| | | setTimeout(() => { |
| | | this.tableLoading = false |
| | | }, 3000) |
| | | // this.editRow = row; |
| | | // this.$refs.add.islook = true; |
| | | }, |
| | | |
| | | // 确认发货 |
| | | btnConfirm(row) { |
| | | let string = "是否提交?" |
| | |
| | | this.editConfig.infomation = { |
| | | productList: res.data.productList, |
| | | supplierName: res.data.purchase.supplier.name, |
| | | ...res.data.purchase, |
| | | purchaseTypeId: res.data.purchase.purchaseTypeId == "0" ? "" : res.data.purchase.purchaseTypeId |
| | | ...res.data.purchase |
| | | } |
| | | } else { |
| | | this.$message.error(res.msg ? res.msg + "," : "" + "获取信息失败!") |