|
|
|
@ -112,6 +112,9 @@ |
|
|
|
></el-pagination> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<whyDialog v-if="editVisible" :isshow="editVisible" :dialogID="dialogID" |
|
|
|
:dialogType="dialogType" @MisShow="MisShow" :assets_type="1" @getData="getData"> |
|
|
|
</whyDialog> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
@ -121,6 +124,8 @@ import moment from 'moment' |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
dialogID:'', |
|
|
|
dialogType:2, |
|
|
|
query: { |
|
|
|
serial_number: '', |
|
|
|
account_name: '', |
|
|
|
@ -180,11 +185,17 @@ export default { |
|
|
|
}, |
|
|
|
}; |
|
|
|
}, |
|
|
|
components:{ |
|
|
|
whyDialog: () => import('../../common/dialog/insex.vue') |
|
|
|
}, |
|
|
|
created() { |
|
|
|
this.getData(); |
|
|
|
this.getAuditList() |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
MisShow(){ |
|
|
|
this.editVisible=false |
|
|
|
}, |
|
|
|
// 审核人员下拉数据 |
|
|
|
getAuditList(){ |
|
|
|
auditList().then(res => { |
|
|
|
@ -220,7 +231,8 @@ export default { |
|
|
|
addedAsset(data).then(res => { |
|
|
|
console.log(res); |
|
|
|
if (res.code==100) { |
|
|
|
|
|
|
|
this.$message.success('操作成功~'); |
|
|
|
this.getData() |
|
|
|
}else{ |
|
|
|
this.$message.error(res.msg); |
|
|
|
} |
|
|
|
@ -232,7 +244,8 @@ export default { |
|
|
|
outAsset(data).then(res => { |
|
|
|
console.log(res); |
|
|
|
if (res.code==100) { |
|
|
|
|
|
|
|
this.$message.success('操作成功~'); |
|
|
|
this.getData() |
|
|
|
}else{ |
|
|
|
this.$message.error(res.msg); |
|
|
|
} |
|
|
|
@ -268,8 +281,7 @@ export default { |
|
|
|
}, |
|
|
|
// 编辑操作 |
|
|
|
handleEdit(index, row) { |
|
|
|
this.idx = index; |
|
|
|
this.form = row; |
|
|
|
this.dialogID=row.id; |
|
|
|
this.editVisible = true; |
|
|
|
}, |
|
|
|
// 保存编辑 |
|
|
|
|