|
@@ -78,6 +78,10 @@
|
|
<a-icon type="upload"/>
|
|
<a-icon type="upload"/>
|
|
新增导入
|
|
新增导入
|
|
</a-button>
|
|
</a-button>
|
|
|
|
+ <a-button style="margin-left:8px;" type="primary" @click="doImportForUpdate">
|
|
|
|
+ <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-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-dropdown v-action:edit v-if="selectedRowKeys.length > 0 && $auth('sb-infos-del')">
|
|
<a-menu slot="overlay">
|
|
<a-menu slot="overlay">
|
|
@@ -156,6 +160,7 @@
|
|
<download-modal ref="downloadModal"/>
|
|
<download-modal ref="downloadModal"/>
|
|
<preview-modal ref="previewModal"/>
|
|
<preview-modal ref="previewModal"/>
|
|
<import-form-add ref="importModal" @ok="handleOk"/>
|
|
<import-form-add ref="importModal" @ok="handleOk"/>
|
|
|
|
+ <import-form-update ref="importModalUpdate" @ok="handleOk"/>
|
|
<print-sb-code ref="printSbCode"/>
|
|
<print-sb-code ref="printSbCode"/>
|
|
</a-card>
|
|
</a-card>
|
|
|
|
|
|
@@ -171,6 +176,7 @@ import { updateSbInfo, getSbInfoPage, deleteSbInfos, fetchSbInfo, exportSbInfo }
|
|
import { queryDept } from '@/api/upms/dept'
|
|
import { queryDept } from '@/api/upms/dept'
|
|
import { fetchSbTypeTree } from '@/api/sb/type'
|
|
import { fetchSbTypeTree } from '@/api/sb/type'
|
|
import ImportFormAdd from './modules/ImportFormAdd'
|
|
import ImportFormAdd from './modules/ImportFormAdd'
|
|
|
|
+import ImportFormUpdate from './modules/ImportFormUpdate'
|
|
import PrintSbCode from '@/views/sb/info/modules/PrintSbCode'
|
|
import PrintSbCode from '@/views/sb/info/modules/PrintSbCode'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -183,7 +189,8 @@ export default {
|
|
DownloadModal,
|
|
DownloadModal,
|
|
PreviewModal,
|
|
PreviewModal,
|
|
PrintSbCode,
|
|
PrintSbCode,
|
|
- ImportFormAdd
|
|
|
|
|
|
+ ImportFormAdd,
|
|
|
|
+ ImportFormUpdate
|
|
},
|
|
},
|
|
props: {
|
|
props: {
|
|
filter: {
|
|
filter: {
|
|
@@ -209,6 +216,8 @@ export default {
|
|
areaList: {},
|
|
areaList: {},
|
|
companyList: {},
|
|
companyList: {},
|
|
projectList: {},
|
|
projectList: {},
|
|
|
|
+ isChildMap: {},
|
|
|
|
+ isShowMap: {},
|
|
deptList: {},
|
|
deptList: {},
|
|
useTypeMap: {},
|
|
useTypeMap: {},
|
|
statusMap: {},
|
|
statusMap: {},
|
|
@@ -372,6 +381,8 @@ export default {
|
|
this.unitMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.SBINFO_UNIT)
|
|
this.unitMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.SBINFO_UNIT)
|
|
this.sourceTypeMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.SBTYPE_SOURCETYPE)
|
|
this.sourceTypeMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.SBTYPE_SOURCETYPE)
|
|
this.useTypeMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.SB_USE_TYPE)
|
|
this.useTypeMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.SB_USE_TYPE)
|
|
|
|
+ this.isChildMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.SB_IS_CHILD)
|
|
|
|
+ this.isShowMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.SB_IS_SHOW)
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
tableOption () {
|
|
tableOption () {
|
|
@@ -534,10 +545,8 @@ export default {
|
|
doImport () {
|
|
doImport () {
|
|
this.$refs.importModal.base(null, null)
|
|
this.$refs.importModal.base(null, null)
|
|
},
|
|
},
|
|
- doImportDe () {
|
|
|
|
- this.queryParam.useCompany = null
|
|
|
|
- this.queryParam.useProject = null
|
|
|
|
- this.$refs.importModal.base()
|
|
|
|
|
|
+ doImportForUpdate () {
|
|
|
|
+ this.$refs.importModalUpdate.base(null, null)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|