新增字典

main
mo 1 year ago
parent edee434e6c
commit 1055227fdb

@ -141,6 +141,8 @@ export const DICT_TYPE = {
CONTRACT_STATUS: 'contract_status',
//处理结果
HANDLE_RESULT: 'handle_result',
//资产状态
ASSET_STATUS: 'asset_status',
//借阅状态
BORROW_STATUS: 'borrow_status',
//会计凭证类型

@ -153,7 +153,14 @@
<span>{{ parseTime(scope.row.disposalDate) }}</span>
</template>
</el-table-column>
<el-table-column label="资产状态" align="center" prop="assetStatus" />
<el-table-column label="资产状态" align="center" prop="assetStatus">
<template v-slot="scope">
<dict-tag
:type="DICT_TYPE.ASSET_STATUS"
:value="scope.row.assetStatus"
/>
</template>
</el-table-column>
<el-table-column label="资产价格" align="center" prop="purchasePrice" />
<el-table-column label="资产数量" align="center" prop="assetQuantity" />
<el-table-column label="购买渠道" align="center" prop="purchaseChannel" />
@ -305,10 +312,18 @@
<el-row>
<el-col :span="8">
<el-form-item label="资产状态" prop="assetStatus">
<el-input
<el-select
v-model="form.assetStatus"
placeholder="请输入资产状态"
/>
placeholder="请选择资产状态"
>
<el-option
v-for="item in typeOptions"
:key="item.id"
:value="item.value"
:label="item.label"
>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="8">
@ -382,18 +397,13 @@
</el-form-item>
</el-col>
</el-row>
<el-row>
<!-- <el-row>
<el-col :span="8">
<el-form-item label="完整性" prop="cherks">
<el-input v-model="form.cherks" placeholder="请输入完整性" />
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="制单人" prop="createBy">
<el-input v-model="form.createBy" placeholder="请输入制单人" />
</el-form-item>
</el-col>
</el-row>
</el-row> -->
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
@ -415,6 +425,7 @@ import {
import Editor from "@/components/Editor";
import { getOrganizationPage } from "@/api/setting/organization";
import { getSiteTree } from "@/api/setting/organization";
import { listData } from "@/api/system/dict/data";
export default {
name: "ElectronicAssets",
@ -478,12 +489,14 @@ export default {
organizationList: [],
siteOptions: [], //
siteArray: [], //
typeOptions: [], //
};
},
created() {
this.getList();
this.getSiteList();
this.getOrganizationList();
this.handleInitList();
},
methods: {
/** 查询列表 */
@ -496,6 +509,17 @@ export default {
this.loading = false;
});
},
//
handleInitList() {
//
listData({
pageNo: 1,
pageSize: 100,
dictType: "asset_status",
}).then((res) => {
this.typeOptions = res.data.list || [];
});
},
//
getSiteList() {
getSiteTree().then((response) => {

Loading…
Cancel
Save