| | |
| | | <el-row :gutter="20"> |
| | | <el-col :span="8"> |
| | | <el-form-item label="验收"> |
| | | <el-input v-model="form.HSecManagerName" placeholder="验收" style="width: calc(100% - 50px)" /> |
| | | <el-input v-model="form.HSecManagerName" placeholder="验收" style="width: calc(100% - 50px)" /> |
| | | <el-button type="primary" icon="el-icon-search" @click="showEmployeeDialog('inspector')"> |
| | | </el-button> |
| | | </el-form-item> |
| | |
| | | :dialog-type="currentDialogType" |
| | | :dialog-title="employeeDialogTitle" |
| | | @select="handleEmployeeSelect" |
| | | /> |
| | | /> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | } |
| | | ], |
| | | selectedRows: [], |
| | | baseURL: process.env.VUE_APP_BASE_URL || 'http://47.96.97.237/API/' |
| | | baseURL: process.env.VUE_APP_BASE_API || 'http://47.96.97.237/API/' |
| | | } |
| | | }, |
| | | computed: { |
| | |
| | | } |
| | | console.log(`选择的${type}:`, data) |
| | | }, |
| | | |
| | | |
| | | |
| | | handleSupplierSelect(data, type) { |
| | | this.form.HSupID = data.HItemID |
| | |
| | | console.log('选择的供应商:', data) |
| | | }, |
| | | |
| | | |
| | | |
| | | // 表格操作 |
| | | handleAddLine() { |
| | | this.tableData.push({ |
| | |
| | | } |
| | | |
| | | // 确保表格数据中的仓库ID也有值 |
| | | const hasValidTableData = this.tableData.every(row => |
| | | row.HMaterID && row.HMaterID !== 0 && |
| | | const hasValidTableData = this.tableData.every(row => |
| | | row.HMaterID && row.HMaterID !== 0 && |
| | | row.HUnitID && row.HUnitID !== 0 |
| | | ) |
| | | |
| | | |
| | | if (!hasValidTableData) { |
| | | // this.$message.error('请完善表格中的物料和单位信息') |
| | | // return |
| | |
| | | // }) |
| | | // } |
| | | //const formData=JSON.stringify(this.form)+';'+JSON.stringify(this.tableData)+';'+this.operationType+';'+(sessionStorage['HUserName'] || 'admin'); |
| | | const submitData = |
| | | JSON.stringify(this.form) + ';' + |
| | | JSON.stringify(this.tableData) + ';' + |
| | | this.operationType + ';' + |
| | | const submitData = |
| | | JSON.stringify(this.form) + ';' + |
| | | JSON.stringify(this.tableData) + ';' + |
| | | this.operationType + ';' + |
| | | (sessionStorage['HUserName'] || 'admin') + ';' + |
| | | JSON.stringify({ main: this.form, table: this.tableData }) |
| | | console.log('提交的完整数据:', submitData) |
| | | |
| | | |
| | | const response = await axios.post(`${this.baseURL}/Kf_StepFoldOutBill/Kf_StepFoldOutBillEdit`, { |
| | | sMainSub: submitData |
| | | }) |
| | |
| | | .el-input-number { |
| | | width: 100%; |
| | | } |
| | | </style> |
| | | </style> |