| | |
| | | <!-- 修订--> |
| | | <FormTemplateDialog :codeClassifyOid="this.codeClassifyOid" :codeRuleOid="this.codeRuleOid" |
| | | :disabledProp="disabledProp" :templateOid="templateOid" :title="'数据修订'" |
| | | :visible.sync="amendvisible" status="amend" |
| | | :visible.sync="amendvisible" status="amend" :selectRow="selectRow" |
| | | type="add" @submit="amendSumbit"></FormTemplateDialog> |
| | | <!-- 新增--> |
| | | <FormTemplateDialog :TreeValue="TreeValue" :codeClassifyOid="this.codeClassifyOid" |
| | |
| | | this.LinkObject = row; |
| | | this.LinkVisible = true; |
| | | this.LinkList = Object.keys(row).map(property => property) |
| | | // console.log(result); |
| | | // console.log(this.LinkObject) |
| | | |
| | | }, |
| | | //状态搜索 |
| | | cellSelectHandler(row) { |
| | |
| | | //标准修订 |
| | | codeAMENDHandler() { |
| | | let foundItem = false; |
| | | |
| | | this.tableHeadFindData.forEach(item => { |
| | | if (item.field === "oldcode" && Object.keys(item.referConfig).length >= 1) { |
| | | foundItem = true; |
| | | } |
| | | }); |
| | | |
| | | if (foundItem) { |
| | | if(this.selectRow.length >= 1){ |
| | | this.$confirm('已有参照是否取消勾选继续执行?', '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | type: 'warning' |
| | | }).then(() => { |
| | | this.selectRow = []; |
| | | //取消勾选状态 |
| | | this.$refs.dataTable.clearSelection(); |
| | | this.amendvisible = true; |
| | | }).catch(() => { |
| | | this.$message({ |
| | | type: 'info', |
| | | message: '已取消当前操作' |
| | | }); |
| | | }); |
| | | }else { |
| | | this.amendvisible = true; |
| | | } |
| | | } else { |
| | | if (this.selectRow.length <= 0) { |
| | | this.$message.warning("请至少选择一条数据"); |
| | | } else { |
| | | console.log(this.selectRow) |
| | | this.amendvisible = true; |
| | | |
| | | } |