|
@@ -51,7 +51,11 @@
|
|
|
<div class="table-operator">
|
|
|
<a-button v-if="$auth('sb-infos-add')" type="primary" icon="plus" @click="handleAdd">新增</a-button>
|
|
|
<a-button style="margin-left: 8px" v-if="$auth('sb-infos-export')" type="primary" icon="download" @click="doExport">导出</a-button>
|
|
|
- <a-button style="margin-left: 8px" v-if="$auth('sb-infos-export')" type="primary" icon="upload" @click="printQcode()">打印</a-button>
|
|
|
+ <a-button style="margin-left:8px;" type="primary" @click="doImport">
|
|
|
+ <a-icon type="upload"/>
|
|
|
+ 新增导入
|
|
|
+ </a-button>
|
|
|
+ <a-button style="margin-left: 8px" v-if="$auth('sb-infos-export')" type="primary" icon="print" @click="printQcode()">打印</a-button>
|
|
|
<a-dropdown v-action:edit v-if="selectedRowKeys.length > 0 && $auth('sb-infos-del')">
|
|
|
<a-menu slot="overlay">
|
|
|
<a-popconfirm title="是否要删除所选数据?" @confirm="batchDelete()">
|
|
@@ -389,26 +393,7 @@ export default {
|
|
|
modal.base(res.data)
|
|
|
})
|
|
|
},
|
|
|
- handleAreaChange (value) {
|
|
|
- getDeptsAllByParentId({ deptId: value, nature: this.DictCache.VALUE.SYS_DEPT_NATURE.FEN_GONG_SI }).then(res => {
|
|
|
- this.companyList = res.data
|
|
|
- })
|
|
|
- },
|
|
|
- handleCompanyChange (value) {
|
|
|
- getDeptsAllByParentId({ deptId: value, nature: this.DictCache.VALUE.SYS_DEPT_NATURE.XIANG_MU_BU }).then(res => {
|
|
|
- this.projectList = res.data
|
|
|
- })
|
|
|
- },
|
|
|
- handleProjectChange (value) {
|
|
|
- getDeptsAllByParentId({ deptId: value, nature: this.DictCache.VALUE.SYS_DEPT_NATURE.BU_MEN }).then(res => {
|
|
|
- this.deptList = res.data
|
|
|
- })
|
|
|
- },
|
|
|
- handleDeptChange (value) {
|
|
|
- getDeptsAllByParentId({ deptId: value, nature: this.DictCache.VALUE.SYS_DEPT_NATURE.BAN_ZU }).then(res => {
|
|
|
- this.groupList = res.data
|
|
|
- })
|
|
|
- },
|
|
|
+
|
|
|
handleCopy (record) {
|
|
|
this.visible = false
|
|
|
fetchSbInfo({ id: record.id }).then(res => {
|
|
@@ -477,15 +462,7 @@ export default {
|
|
|
// this.$refs.downloadModal.base(record.id, this.DictCache.VALUE.FILE_MODULE.SBINFO_RECHECKFILE, getDownloadUrl(record.id))
|
|
|
},
|
|
|
doImport () {
|
|
|
- if (this.queryParam.useCompany == null) {
|
|
|
- this.$message.error('请先选择公司')
|
|
|
- return
|
|
|
- }
|
|
|
- if (this.queryParam.useProject == null) {
|
|
|
- this.$message.error('请先选择项目部')
|
|
|
- return
|
|
|
- }
|
|
|
- this.$refs.importModal.base(this.queryParam.useCompany, this.queryParam.useProject)
|
|
|
+ this.$refs.importModal.base(null, null)
|
|
|
},
|
|
|
doImportDe () {
|
|
|
this.queryParam.useCompany = null
|