|
@@ -88,7 +88,7 @@
|
|
<a-form-item label="设备状态">
|
|
<a-form-item label="设备状态">
|
|
<a-select v-model="queryParam.status" placeholder="请选择">
|
|
<a-select v-model="queryParam.status" placeholder="请选择">
|
|
<a-select-option
|
|
<a-select-option
|
|
- v-for="(label,value) in statusMap"
|
|
|
|
|
|
+ v-for="{label,value} in statusList"
|
|
:key="value"
|
|
:key="value"
|
|
:defaultValue="DictCache.VALUE.SB_INFO_STATUS.IN_USE"
|
|
:defaultValue="DictCache.VALUE.SB_INFO_STATUS.IN_USE"
|
|
:label="label"
|
|
:label="label"
|
|
@@ -186,8 +186,12 @@
|
|
检定导入
|
|
检定导入
|
|
</a-button>
|
|
</a-button>
|
|
<a-button style="margin-left: 8px" type="primary" icon="printer" @click="handlePrintBatch()">批量打印</a-button>
|
|
<a-button style="margin-left: 8px" type="primary" icon="printer" @click="handlePrintBatch()">批量打印</a-button>
|
|
- <a-button style="margin-left: 8px" type="primary" @click="handleBackBatch(13)">批量退库</a-button>
|
|
|
|
- <a-button style="margin-left: 8px" type="primary" @click="handleBackBatch(4)">批量报废</a-button>
|
|
|
|
|
|
+ <a-button style="margin-left: 8px" type="primary" @click="handleBackBatch(1,1)">批量在库</a-button>
|
|
|
|
+ <a-button style="margin-left: 8px" type="primary" @click="handleBackBatch(4,1)">批量报废</a-button>
|
|
|
|
+ <a-button style="margin-left: 8px" type="primary" @click="handleBackBatch(2,2)">批量出库</a-button>
|
|
|
|
+ <a-button style="margin-left: 8px" type="primary" @click="handleBackBatch(45,2)">批量调拨</a-button>
|
|
|
|
+ <a-button style="margin-left: 8px" type="primary" @click="handleBackBatch(46,2)">批量外销</a-button>
|
|
|
|
+
|
|
<a-button style="margin-left: 8px" v-if="isMeasure===1" type="primary" icon="reload" @click="batchIncorrect()">批量检定</a-button>
|
|
<a-button style="margin-left: 8px" v-if="isMeasure===1" type="primary" icon="reload" @click="batchIncorrect()">批量检定</a-button>
|
|
<a-button style="margin-left: 8px" v-if="$auth('sb-infos-generate-code-all')" :loading="confirmLoading" type="primary" @click="batchGenerate()">重新生成二维码</a-button>
|
|
<a-button style="margin-left: 8px" v-if="$auth('sb-infos-generate-code-all')" :loading="confirmLoading" type="primary" @click="batchGenerate()">重新生成二维码</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')">
|
|
@@ -312,7 +316,7 @@
|
|
</a-col>
|
|
</a-col>
|
|
</a-row>
|
|
</a-row>
|
|
</a-card>
|
|
</a-card>
|
|
- <base-form ref="baseModal" :parent-id="queryParam.parentId" :parent-name="queryParam.parentName" @ok="handleOk" />
|
|
|
|
|
|
+ <base-form ref="baseModal" :isMeter="true" :parent-id="queryParam.parentId" :parent-name="queryParam.parentName" @ok="handleOk" />
|
|
<base-form-status-log ref="baseModalStatusLog" @ok="handleOk" />
|
|
<base-form-status-log ref="baseModalStatusLog" @ok="handleOk" />
|
|
<detail ref="detailModal" @ok="handleOk" />
|
|
<detail ref="detailModal" @ok="handleOk" />
|
|
<download-modal ref="downloadModal" />
|
|
<download-modal ref="downloadModal" />
|
|
@@ -463,6 +467,7 @@ export default {
|
|
confirmLoading: false,
|
|
confirmLoading: false,
|
|
useTypeMap: {},
|
|
useTypeMap: {},
|
|
statusMap: {},
|
|
statusMap: {},
|
|
|
|
+ statusList: [],
|
|
yesNoMap: {},
|
|
yesNoMap: {},
|
|
createdUserName: '',
|
|
createdUserName: '',
|
|
expandedKeys: [],
|
|
expandedKeys: [],
|
|
@@ -847,12 +852,13 @@ export default {
|
|
this.queryParam.parentName = this.$route.query.parentName
|
|
this.queryParam.parentName = this.$route.query.parentName
|
|
this.tableOption()
|
|
this.tableOption()
|
|
this.otherTypeMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.SB_MEASURE_OTHER_TYPE)
|
|
this.otherTypeMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.SB_MEASURE_OTHER_TYPE)
|
|
- console.log(11)
|
|
|
|
- console.log(this.otherTypeMap)
|
|
|
|
this.checkTypeMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.CHECK_TYPE)
|
|
this.checkTypeMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.CHECK_TYPE)
|
|
this.depreciationTypeMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.SBINFO_DEPRECIATIONTYPE)
|
|
this.depreciationTypeMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.SBINFO_DEPRECIATIONTYPE)
|
|
this.levelMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.SBINFO_LEVEL)
|
|
this.levelMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.SBINFO_LEVEL)
|
|
this.statusMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.SB_INFO_STATUS)
|
|
this.statusMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.SB_INFO_STATUS)
|
|
|
|
+ this.statusList = this.DictCache.getChildrenList(this.DictCache.TYPE.SB_INFO_STATUS).filter(item => {
|
|
|
|
+ return !['置换中', '已置换', '维修中', '调拨中', '校准中', '丢失', '备用', '已退库', '报废驳回'].includes(item.label)
|
|
|
|
+ })
|
|
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)
|
|
@@ -860,9 +866,9 @@ export default {
|
|
this.isShowMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.SB_IS_SHOW)
|
|
this.isShowMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.SB_IS_SHOW)
|
|
this.lineMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.REMOTE_LINE)
|
|
this.lineMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.REMOTE_LINE)
|
|
this.yesNoMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.YES_NO)
|
|
this.yesNoMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.YES_NO)
|
|
- querySbPosition().then((res) => {
|
|
|
|
- this.sbPositionData = res.data
|
|
|
|
- })
|
|
|
|
|
|
+ // querySbPosition().then((res) => {
|
|
|
|
+ // this.sbPositionData = res.data
|
|
|
|
+ // })
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
tableOption () {
|
|
tableOption () {
|
|
@@ -993,9 +999,9 @@ export default {
|
|
modal.base(res.data)
|
|
modal.base(res.data)
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- handleBackBatch (status) {
|
|
|
|
|
|
+ handleBackBatch (status, type) {
|
|
const modal = this.$refs.backForm
|
|
const modal = this.$refs.backForm
|
|
- modal.base(status)
|
|
|
|
|
|
+ modal.base(status, type)
|
|
},
|
|
},
|
|
handleStart (record) {
|
|
handleStart (record) {
|
|
const modal = this.$refs.baseModalStatusLog
|
|
const modal = this.$refs.baseModalStatusLog
|