| | |
| | | v-if="!['PREVIEW', 'DELETEFILE', 'revisefile', 'DOWNLOADFILE', 'UPLOADFILE'].includes(item.uniqueFlag)" |
| | | :key="index" plain size="small" |
| | | type="primary" |
| | | @click="handelBtnClick(item)">{{ |
| | | @click="handleBtnClick(item)">{{ |
| | | item.name |
| | | }} |
| | | </el-button> |
| | |
| | | import {validatenull} from "@/util/validate"; |
| | | import fileInHtml from "@/components/file/inHtml.vue"; |
| | | import {getUserInfo} from "@/api/system/user"; |
| | | import func from "@/util/func"; |
| | | |
| | | export default { |
| | | components: { |
| | |
| | | oids.push(ele.oid); |
| | | }); |
| | | return oids; |
| | | } |
| | | }, |
| | | }, |
| | | created() { |
| | | // const index = this.$route.query.id.indexOf('@name=') + '@name='.length; |
| | |
| | | openVis(visible) { |
| | | this[visible] = true |
| | | }, |
| | | handelBtnClick(event) { |
| | | handleBtnClick(event) { |
| | | const {uniqueFlag} = event |
| | | this.$nextTick(() => { |
| | | if (uniqueFlag === 'CODEADD') return this.addvisible = true |
| | | if (uniqueFlag === 'CODEADD') return this.addSaveHandler() |
| | | if (uniqueFlag === 'CODEEDIT') return this.editHandler() |
| | | if (uniqueFlag === 'CODEBATCHADD') return this.openBatchImport('batchImportApply') |
| | | if (uniqueFlag === 'CODEIMPORTHISTORY') return this.openBatchImport('historyImport') |
| | |
| | | if (uniqueFlag === 'receiveEditApply') return this.receiveEditApply() |
| | | // 相似项查询 |
| | | // if(uniqueFlag === 'CODEEDIT') return this.similarHandler() |
| | | }); |
| | | }, |
| | | addSaveHandler(){ |
| | | |
| | | this.$nextTick(() => { |
| | | this.addvisible = true; |
| | | }); |
| | | }, |
| | | //申请集团码数据 |
| | |
| | | }, |
| | | //增加保存 |
| | | AddSumbit(val) { |
| | | console.log(val) |
| | | val.ts = val.ts.toISOString().replace("Z", ""); |
| | | //console.log(val) |
| | | if(func.notEmpty(val.ts)) { |
| | | val.ts = func.formattedDateTime(val.ts); |
| | | //console.log(val.ts); |
| | | } |
| | | addSaveCode(val).then(res => { |
| | | this.$nextTick(() => { |
| | | this.addvisible = false; |