|
|
@@ -162,7 +162,7 @@
|
|
|
@click="begEdit"
|
|
|
>申请编辑</el-button
|
|
|
>
|
|
|
- <el-button type="primary" size="small" @click="applyMove" v-if="myObj.storageId" v-show="userLimits.move"
|
|
|
+ <el-button type="primary" size="small" @click="applyMove" v-if="myObj.storageId&&myObj.status!=='已出库'" v-show="userLimits.move"
|
|
|
>申请移库</el-button
|
|
|
>
|
|
|
<el-button size="small" @click="record">操作记录</el-button>
|
|
|
@@ -549,6 +549,7 @@ export default {
|
|
|
},
|
|
|
async moveOk () {
|
|
|
if (this.tempIds === '') return this.$message.warning('还未选择移库位置!')
|
|
|
+ if (this.myObj.storageId === this.tempIds) return this.$message.warning('不能与之前入库位置相同!')
|
|
|
const res = await applyMove(this.myObj.id, this.tempIds)
|
|
|
if (res.code === 0) {
|
|
|
this.moveDialog = false
|
|
|
@@ -567,8 +568,13 @@ export default {
|
|
|
else if (v.moduleType === 'storageIn') v.tempType = '藏品入库'
|
|
|
else if (v.moduleType === 'storageOut') v.tempType = '藏品出库'
|
|
|
// else if (v.moduleType === 'collectOut') v.tempType = '征集品提用'
|
|
|
- else if (v.moduleType === 'ledgerEdit') v.tempType = '藏品修改'
|
|
|
- else if (v.moduleType === 'ledgerMove') v.tempType = '藏品移库'
|
|
|
+ else if (v.moduleType === 'ledgerEdit') {
|
|
|
+ v.tempType = '藏品修改'
|
|
|
+ v.moduleNum = '-'
|
|
|
+ } else if (v.moduleType === 'ledgerMove') {
|
|
|
+ v.tempType = '藏品移库'
|
|
|
+ v.moduleNum = '-'
|
|
|
+ }
|
|
|
// else if (v.moduleType === 'collectEdit') v.tempType = '征集品修改'
|
|
|
})
|
|
|
},
|