| | |
| | | </el-link> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column v-for="item in this.tableHeadFindData" v-if="!item.hidden && item.prop !== 'id' && item.prop !== 'lcstatus'" |
| | | <el-table-column v-for="item in this.tableHeadFindData" v-if="!item.hidden && item.prop !== 'id' && item.prop !== 'lcstatus' && Object.keys(item.referConfig).length <= 0" |
| | | :key="item.id" |
| | | :formatter="item.formatter" |
| | | :label="item.label" :prop="item.prop" |
| | |
| | | :width="item.width" |
| | | align="center"> |
| | | </el-table-column> |
| | | |
| | | <!-- 参照数据--> |
| | | <el-table-column v-for="(item,index) in referArray" key="index" v-if="Object.keys(item.referConfig).length > 0 && !item.hidden" :label="item.title" prop="jiliangdw" |
| | | :show-overflow-tooltip="true" :sortable="item.sortable" :width="item.width" |
| | | align="center"> |
| | | <template slot-scope="scope"> |
| | | <span>{{ scope.row.jiliangdwname }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </div> |
| | | </el-row> |
| | |
| | | :disabledProp="disabledProp" :rowOid="rowOid" :templateOid="templateOid" :title="'修改编码信息'" |
| | | :visible.sync="editvisible" |
| | | type="edit" @submit="EditSumbit"></FormTemplateDialog> |
| | | <!-- 批量编辑--> |
| | | <!-- <MasterEditBulk :visible.sync="bulkeditvisible" ></MasterEditBulk>--> |
| | | <!-- 数据详情--> |
| | | <FormTemplateDialog :codeClassifyOid="this.codeClassifyOid" :codeRuleOid="this.codeRuleOid" |
| | | :rowOid="this.LinkObject.oid" :templateOid="templateOid" |
| | |
| | | :tableData="tableData" |
| | | :tableHeadData="tableHeadFindData" :templateOid="templateOid" |
| | | :visible.sync="dialogPush"></MasterTransfer> |
| | | <!-- 导入--> |
| | | <BatchImport v-if="batchImportData.visible" v-bind="batchImportData" :resetTable="CrudRend" |
| | | :visible.sync="batchImportData.visible" :tableHeadData="tableHeadFindData" :selectRow="selectRow"> |
| | | </BatchImport> |
| | | <!-- 相似项--> |
| | | <ResembleQueryDialog :codeClassifyOid="codeClassifyOid" :codeRuleOid="this.codeRuleOid" :rowOid="rowOid" |
| | | :templateOid="templateOid" :visible.sync="similarVisible"></ResembleQueryDialog> |
| | |
| | | </el-pagination> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <BatchImport v-if="batchImportData.visible" v-bind="batchImportData" :resetTable="CrudRend" |
| | | :visible.sync="batchImportData.visible"> |
| | | </BatchImport> |
| | | </div> |
| | | <div class="bottom"> |
| | | <el-collapse v-model="visibleNames" @change="handleCollapse"> |
| | |
| | | import SetPersonnel from "@/components/template/SetPersonnel"; |
| | | import ResembleQueryDialog from "@/components/FormTemplate/ResembleQueryDialog.vue"; |
| | | import BatchImport from '@/components/BatchImport' |
| | | import MasterEditBulk from '@/components/Master/MasterEditBulk' |
| | | import {validatenull} from "@/util/validate"; |
| | | import fileInHtml from "@/components/file/inHtml.vue"; |
| | | import {getUserInfo} from "@/api/system/user"; |
| | |
| | | SetPersonnel, |
| | | ResembleQueryDialog, |
| | | BatchImport, |
| | | fileInHtml |
| | | fileInHtml, |
| | | MasterEditBulk |
| | | }, |
| | | name: "Crud.vue", |
| | | props: { |
| | |
| | | Treedata: { |
| | | type: Array |
| | | }, |
| | | |
| | | nodeClickList:{ |
| | | type:Array, |
| | | default:[] |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | | //批量编辑对话框 |
| | | bulkeditvisible:false, |
| | | LinkVisible: false, |
| | | LinkObject: {}, // 编码数据 |
| | | LinkList: [], |
| | | isCodeArrayPushed: false, // 编码数组添加标识变量 |
| | | CodeArray: [], |
| | | //生命周期数组 |
| | | lcstatusArray:[], |
| | | //参照数据数组 |
| | | referArray:[], |
| | | islcstatusPushed:false, |
| | | isReferPushed:false, |
| | | // 状态搜索 |
| | | statusSelect: "all", |
| | | // 关键字查询 |
| | |
| | | // console.log('lcstatusArray', this.lcstatusArray); |
| | | this.islcstatusPushed = true; |
| | | } |
| | | // console.log('new',newval) |
| | | if(!this.isReferPushed){ |
| | | if (newval.find(item => Object.keys(item.referConfig).length > 0)) { |
| | | this.referArray.push(newval.find(item => Object.keys(item.referConfig).length > 0)); |
| | | }else { |
| | | this.referArray.push([]) |
| | | } |
| | | } |
| | | this.isReferPushed=true; |
| | | console.log('new',this.referArray) |
| | | console.log('ss',newval.find(item => Object.keys(item.referConfig).length > 0)) |
| | | this.WupinFindValue = '' |
| | | }, |
| | | }, |
| | |
| | | if (uniqueFlag === 'CODEAPPLY') return this.codeApplyHandler() |
| | | // 标准修订 |
| | | if (uniqueFlag === 'CODEAMEND') return this.codeAMENDHandler() |
| | | //批量编辑 |
| | | if (uniqueFlag === 'bulkEdit') return this.bulkEditHandler("bulkEdit") |
| | | }); |
| | | }, |
| | | //标准申请 |
| | |
| | | this.rowOid = this.selectRow[0].oid; |
| | | } |
| | | }, |
| | | //批量编辑 |
| | | bulkEditHandler(type){ |
| | | console.log(this.nodeClickList) |
| | | if(this.nodeClickList.children.length >= 1){ |
| | | this.$message.warning('当前选择的分类不是叶子节点,不允许批量编辑!') |
| | | return; |
| | | } |
| | | if(this.selectRow.length <= 0){ |
| | | this.$message.warning('请选择至少一条数据!') |
| | | return; |
| | | } |
| | | const Editing = this.selectRow.every(item => item.lcstatus === 'Editing'); |
| | | |
| | | if (Editing) { |
| | | this.batchImportData.visible = true |
| | | this.batchImportData.type = type |
| | | this.batchImportData.codeClassifyOid = this.codeClassifyOid |
| | | } else { |
| | | this.$message.warning('选择的数据中有编码状态不是“编辑中”,不可编辑!'); |
| | | } |
| | | }, |
| | | addSaveHandler(){ |
| | | this.$nextTick(() => { |
| | | this.addvisible = true; |
| | |
| | | // const requestData = this.selectRow.forEach(item => { |
| | | // return { oids: item.oid, btmName: item.btmname }; |
| | | // }); |
| | | |
| | | const oids = this.selectRow.map(item => item.oid).join(','); |
| | | applyGroupCode({oids, btmName: this.selectRow[0].btmname}).then(res => { |
| | | if (res.data.code == 200) { |