| | |
| | | <template> |
| | | <basic-container> |
| | | <div class="testbox"> |
| | | <div style="margin-top: 10px;display: flex;flex-wrap: wrap;width: 100%;"> |
| | | <div> |
| | | <el-button plain size="small" type="primary" @click="addvisible=true">增加 |
| | | </el-button> |
| | | <FormTemplateDialog |
| | | :codeClassifyOid="this.codeClassifyOid" |
| | | :codeRuleOid="this.codeRuleOid" |
| | | :disabledProp="disabledProp" |
| | | :templateOid="templateOid" |
| | | type="add" |
| | | :visible.sync="addvisible" |
| | | @submit="AddSumbit" |
| | | > |
| | | </FormTemplateDialog> |
| | | <el-button plain size="small" type="primary" @click="editHandler">编辑 |
| | | </el-button> |
| | | <FormTemplateDialog |
| | | :codeClassifyOid="this.codeClassifyOid" |
| | | :codeRuleOid="this.codeRuleOid" |
| | | :disabledProp="disabledProp" |
| | | :rowOid="rowOid" |
| | | :templateOid="templateOid" |
| | | type="edit" |
| | | :title="'修改编码信息'" |
| | | :visible.sync="editvisible" |
| | | @submit="EditSumbit" |
| | | ></FormTemplateDialog> |
| | | <el-button plain size="small" type="primary">批量导入申请</el-button> |
| | | <el-button plain size="small" type="primary" @click="historyVisible = true">历史数据导入</el-button> |
| | | <el-button plain size="small" type="primary">历史数据导入</el-button> |
| | | <el-button plain size="small" type="primary">批量申请编码</el-button> |
| | | <el-button plain size="small" type="primary">批量发布</el-button> |
| | | <el-button plain size="small" type="primary">查看流程历史</el-button> |
| | | <el-button plain size="small" type="primary">删除</el-button> |
| | | <el-button plain size="small" type="primary" @click="setHandler">发布</el-button> |
| | | <set-personnel :visible.sync="visibleFlow" :parameter="parameter" |
| | | ></set-personnel> |
| | | <el-button plain size="small" type="primary" @click="DataChange">数据更改</el-button> |
| | | <FormTemplateDialog |
| | | :codeClassifyOid="this.codeClassifyOid" |
| | | :codeRuleOid="this.codeRuleOid" |
| | | :disabledProp="disabledProp" |
| | | :rowOid="rowOid" |
| | | :templateOid="templateOid" |
| | | :type="edit" |
| | | :title="'已发布数据更改'" |
| | | :visible.sync="DataVisible" |
| | | ></FormTemplateDialog> |
| | | <el-button plain size="small" type="primary" @click="huishouHandler">回收</el-button> |
| | | <el-button plain size="small" type="primary" @click="openD">导出 |
| | | <integration-transfer :data="transferData" :props="transferProps" |
| | | :visible.sync="dialogPush" @save="handelTransferSave"></integration-transfer> |
| | | </el-button> |
| | | <el-button plain size="small" type="primary" @click="findHandler">查询 |
| | | <advanced-query :options="this.options" :visible.sync="findvisible" |
| | | @echoContion="echoContion"></advanced-query> |
| | | </el-button> |
| | | <el-button plain size="small" type="primary" @click="similarHandler">相似项查询</el-button> |
| | | <ResembleQueryDialog |
| | | :visible.sync="similarVisible" |
| | | :templateOid="templateOid" |
| | | :codeClassifyOid="codeClassifyOid" |
| | | :rowOid="rowOid" |
| | | :codeRuleOid="this.codeRuleOid" |
| | | ></ResembleQueryDialog> |
| | | <el-button plain size="small" style="margin-left: 1px;margin-top:10px" type="primary">刷新</el-button> |
| | | <el-button plain size="small" type="primary">刷新</el-button> |
| | | <el-input placeholder="请输入关键字按回车查询" size="small" |
| | | style="width: 180px;margin-left: 5px;margin-top:10px"></el-input> |
| | | </div> |
| | |
| | | <!-- </div>--> |
| | | </el-table> |
| | | </el-row> |
| | | <FormTemplateDialog |
| | | :codeClassifyOid="this.codeClassifyOid" |
| | | :codeRuleOid="this.codeRuleOid" |
| | | :disabledProp="disabledProp" |
| | | :templateOid="templateOid" |
| | | type="add" |
| | | :visible.sync="addvisible" |
| | | @submit="AddSumbit" |
| | | > |
| | | </FormTemplateDialog> |
| | | <FormTemplateDialog |
| | | :codeClassifyOid="this.codeClassifyOid" |
| | | :codeRuleOid="this.codeRuleOid" |
| | | :disabledProp="disabledProp" |
| | | :rowOid="rowOid" |
| | | :templateOid="templateOid" |
| | | type="edit" |
| | | :title="'修改编码信息'" |
| | | :visible.sync="editvisible" |
| | | @submit="EditSumbit" |
| | | ></FormTemplateDialog> |
| | | <FormTemplateDialog |
| | | :codeClassifyOid="this.codeClassifyOid" |
| | | :codeRuleOid="this.codeRuleOid" |
| | | :disabledProp="disabledProp" |
| | | :rowOid="rowOid" |
| | | :templateOid="templateOid" |
| | | :type="edit" |
| | | :title="'已发布数据更改'" |
| | | :visible.sync="DataVisible" |
| | | ></FormTemplateDialog> |
| | | <set-personnel :visible.sync="visibleFlow" :parameter="this.parameter" |
| | | ></set-personnel> |
| | | <advanced-query :options="this.options" :visible.sync="findvisible" |
| | | @echoContion="echoContion"></advanced-query> |
| | | <integration-transfer :data="transferData" :props="transferProps" |
| | | :visible.sync="dialogPush" @save="handelTransferSave"></integration-transfer> |
| | | <ResembleQueryDialog |
| | | :visible.sync="similarVisible" |
| | | :templateOid="templateOid" |
| | | :codeClassifyOid="codeClassifyOid" |
| | | :rowOid="rowOid" |
| | | :codeRuleOid="this.codeRuleOid" |
| | | ></ResembleQueryDialog> |
| | | </div> |
| | | <div class="block" style="display: flex;justify-content: flex-end"> |
| | | <el-pagination |
| | |
| | | @current-change="handleCurrentChange"> |
| | | </el-pagination> |
| | | </div> |
| | | <historyImport :visible.sync="historyVisible" :codeClassifyOid="codeClassifyOid" type="historyImport"></historyImport> |
| | | </basic-container> |
| | | </template> |
| | | <script> |
| | |
| | | import integrationTransfer from '@/views/integration/integrationTransfer' |
| | | import SetPersonnel from '@/components/template/SetPersonnel' |
| | | import ResembleQueryDialog from "@/components/FormTemplate/ResembleQueryDialog.vue"; |
| | | import historyImport from '../BatchImport/index.vue' |
| | | export default { |
| | | components: { |
| | | integrationTransfer, |
| | | SetPersonnel, |
| | | ResembleQueryDialog, |
| | | historyImport |
| | | ResembleQueryDialog |
| | | }, |
| | | name: "Crud.vue", |
| | | props: { |
| | |
| | | }, |
| | | templateOid: { |
| | | type: String, |
| | | default:'' |
| | | }, |
| | | tableHeadDataFateher: { |
| | | type: Array, |
| | |
| | | similarVisible:false, |
| | | //发布 |
| | | parameter:{ |
| | | ids:['0000','22222222'], |
| | | code:this.templateOid, |
| | | ids:[], |
| | | code:'', |
| | | type:'PUBLIC', |
| | | template:'模板template' |
| | | template:'' |
| | | }, |
| | | visibleFlow: false, |
| | | transferData: [], |
| | |
| | | label: 'name' |
| | | }, |
| | | tableHeadFindDatas:[], |
| | | templateOid: "", |
| | | addvisible: false, |
| | | editvisible: false, |
| | | findvisible: false, |
| | |
| | | items: {}, |
| | | seniorQueryColumns: [], |
| | | selectRow: [], |
| | | historyVisible: false |
| | | userName:"" |
| | | } |
| | | }, |
| | | computed: {}, |
| | | created() { |
| | | // this.CrudHeaderRend(); |
| | | // this.tableHeadHandle() |
| | | |
| | | }, |
| | | mounted() { |
| | | |
| | | }, |
| | | activated() { |
| | | this.doLayout() |
| | | }, |
| | | watch: { |
| | | tableHeadDataFateher:{ |
| | | handler(newval,oldval){ |
| | | this.options=newval.tableDefineVO.seniorQueryColumns |
| | | } |
| | | }, |
| | | codeClassifyOid: { |
| | | handler(newval, oldval) { |
| | | this.codeClassifyOid = newval; |
| | |
| | | this.page.total = newval; |
| | | } |
| | | }, |
| | | templateOid:{ |
| | | handler(newval,oldval) { |
| | | this.parameter.code=newval; |
| | | }, |
| | | deep:true |
| | | } |
| | | }, |
| | | methods: { |
| | | setHandler() { |
| | | this.visibleFlow = true; |
| | | }, |
| | | huishouHandler() { |
| | | console.log('1111') |
| | | console.log('父',this.parameter) |
| | | |
| | | if (this.selectRow.length <= 0) { |
| | | this.$message.warning('请选择一条数据') |
| | | } else { |
| | | this.userName=localStorage.getItem('username') |
| | | this.parameter.template=this.userName+'-发布'+'[物品]' |
| | | this.visibleFlow = true; |
| | | } |
| | | }, |
| | | openD() { |
| | | this.dialogPush = true; |
| | | this.getListCodeByClassId() |
| | | }, |
| | | async getListCodeByClassId() { |
| | |
| | | }, |
| | | //分页刷新 |
| | | async onLoad(val) { |
| | | console.log('分页', this.templateOid) |
| | | await TableData({ |
| | | templateOid: this.templateOid, |
| | | codeClassifyOid: this.codeClassifyOid, |
| | |
| | | this.rowOid='' |
| | | } |
| | | this.selectRow = row; |
| | | console.log(row) |
| | | row.forEach(item=>{ |
| | | this.parameter.ids.push(item.oid) |
| | | }) |
| | | }, |
| | | //编辑 |
| | | editHandler() { |
| | | console.log('row',this.rowOid) |
| | | console.log('temp',this.templateOid) |
| | | console.log('code',this.codeClassifyOid) |
| | | console.log('rule',this.coderuleoid) |
| | | if (this.selectRow.length <= 0) { |
| | | this.$message.warning('请选择一条数据') |
| | | } else if (this.selectRow.length > 1) { |
| | |
| | | //高级查询按钮 |
| | | findHandler(){ |
| | | this.findvisible=true; |
| | | console.log(this.options) |
| | | }, |
| | | // 高级查询 |
| | | echoContion(val) { |
| | | console.log(val) |
| | | FindData({templateOid:this.templateOid, |
| | | codeClassifyOid: this.codeClassifyOid, |
| | | ...val |
| | | }).then(res=>{ |
| | | console.log(res) |
| | | }) |
| | | }, |
| | | //相似项查询 |
| | |
| | | }, |
| | | //增加保存 |
| | | AddSumbit(val){ |
| | | console.log(val) |
| | | this.addvisible=false |
| | | }, |
| | | EditSumbit(val){ |
| | | console.log(val) |
| | | this.editvisible=false |
| | | } |
| | | } |