| | |
| | | item.indexOf('保养部位要求')!==-1|| |
| | | item.indexOf('保养项目要求')!==-1|| |
| | | item.indexOf('点检部位要求')!==-1|| |
| | | item.indexOf('点检项目要求')!==-1 |
| | | item.indexOf('点检项目要求')!==-1|| |
| | | |
| | | item.indexOf('仓库编码')!==-1|| |
| | | item.indexOf('库位编码')!==-1 |
| | | " |
| | | > |
| | | <el-input v-model="row[item]" placeholder="请输入" /> |
| | |
| | | this.tableData[0].forEach(j => { |
| | | j['*状态'] = j['*状态'] ? this.statusArr.find(e => e.name === j['*状态']).code : '' |
| | | j['*库位管理'] = j['*库位管理'] ? this.isYesOrNo.find(e => e.name === j['*库位管理']).code : '' |
| | | j.uuid = nanoid() |
| | | }) |
| | | } |
| | | |
| | | if (this.sheetName.indexOf('库位设置') !== -1) { |
| | | this.statusArr = [ |
| | | { code: '0', name: '正常' }, |
| | | { code: '1', name: '停用' } |
| | | ] |
| | | this.tableData[0].forEach(j => { |
| | | j['*状态'] = j['*状态'] ? this.statusArr.find(e => e.name === j['*状态']).code : '' |
| | | j.uuid = nanoid() |
| | | }) |
| | | } |
| | |
| | | flag = false |
| | | msg = '*状态不能为空!' |
| | | } |
| | | if (!j['*仓库编码']) { |
| | | flag = false |
| | | msg = '*仓库编码不能为空!' |
| | | } |
| | | if (!j['*库位编码']) { |
| | | flag = false |
| | | msg = '*库位编码不能为空!' |
| | | } |
| | | }) |
| | | this.tableData[1].forEach(j => { |
| | | if (!j['模具编码'] && j['产品编码']) { |
| | |
| | | '*模具名称': '', |
| | | '规格型号': '', |
| | | '*状态': 'Y', |
| | | '*仓库编码': '', |
| | | '*库位编码': '', |
| | | '预计寿命(次)': '', |
| | | '剩余寿命(次)': '' |
| | | |
| | | }) |
| | | } |
| | | if (this.sheetName.indexOf('模具关联产品') !== -1 && this.activeName === '1') { |