| | |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-col v-if="showOperationType" :span="12"> |
| | | <el-form-item label="入库类型" prop="operationTypeId"> |
| | | <el-select |
| | | v-if="showOperationType" |
| | | v-model="editConfig.infomation.operationTypeId" |
| | | placeholder="请选择" |
| | | size="mini" |
| | |
| | | <el-option v-for="item in operationTypeOptions" :key="item.id" :label="item.name" :value="item.id"> |
| | | </el-option> |
| | | </el-select> |
| | | <el-input v-else v-model="receiptType" disabled style="width: 90%"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col v-else :span="12"> |
| | | <el-form-item label="入库类型"> |
| | | <el-input v-model="receiptType" disabled style="width: 90%"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | |
| | | }, |
| | | // 设置删除/打印/编辑是否显示 |
| | | setBottonView() { |
| | | console.log(this.editConfig.infomation.status) |
| | | if (this.editConfig.title === "新建") { |
| | | this.showButton = false |
| | | this.showEdit = false |
| | | this.showFooter = true |
| | | this.isValidateClick = false |
| | | } else if (this.editConfig.infomation.status === 4||this.editConfig.infomation.status === "完成") { |
| | | } else if (this.editConfig.title === "查看" && this.editConfig.infomation.status !== 4) { |
| | | this.showButton = true |
| | | this.showEdit = false |
| | | this.isDelClick = true |
| | | this.showFooter = false |
| | | if (this.editConfig.infomation.status === "完成") { |
| | | this.isValidateClick = false |
| | | } else { |
| | | this.isValidateClick = true |
| | | } |
| | | } else if (this.editConfig.infomation.status === 4 || this.editConfig.infomation.status === "完成") { |
| | | this.showButton = true |
| | | this.showEdit = false |
| | | this.isDelClick = true |
| | |
| | | this.list[0].status = "active" |
| | | } else { |
| | | this.list.map((item) => { |
| | | console.log(item,this.editConfig.infomation.status,"打印信息") |
| | | if (item.value === this.editConfig.infomation.status||item.label===this.editConfig.infomation.status) { |
| | | console.log(item, this.editConfig.infomation.status, "打印信息") |
| | | if (item.value === this.editConfig.infomation.status || item.label === this.editConfig.infomation.status) { |
| | | item.status = "active" |
| | | } else { |
| | | item.status = "todo" |
| | |
| | | }, |
| | | // 操作列表 |
| | | setTableForm() { |
| | | if (this.editConfig.title !== "新建") { |
| | | if ( |
| | | this.editConfig.title !== "新建" && |
| | | this.editConfig.infomation.details && |
| | | this.editConfig.infomation.details.length > 0 |
| | | ) { |
| | | const list = this.editConfig.infomation.details.map((item) => { |
| | | return { |
| | | ...item, |