完善工单和配置
This commit is contained in:
@@ -42,11 +42,11 @@ export default {
|
||||
seting: defineAsyncComponent(() => import('./setup/computerRoom')),
|
||||
pushSettings: defineAsyncComponent(() => import('./setup/computerRoom')),
|
||||
password: defineAsyncComponent(() => import('./setup/computerRoom')),
|
||||
space: defineAsyncComponent(() => import('./setup/computerRoom')),
|
||||
upToEnterprise: defineAsyncComponent(() => import('./setup/computerRoom')),
|
||||
bind: defineAsyncComponent(() => import('./setup/computerRoom')),
|
||||
mail: defineAsyncComponent(() => import('./setup/mail')),
|
||||
interface: defineAsyncComponent(() => import('./setup/interface')),
|
||||
cost: defineAsyncComponent(() => import('./setup/cost')),
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@@ -80,10 +80,16 @@ export default {
|
||||
actions:'mailConfigSet'
|
||||
},
|
||||
{
|
||||
icon: "sc-icon-AgentMaintenance",
|
||||
icon: "sc-icon-K3Api",
|
||||
title: "K3接口配置",
|
||||
component: "interface",
|
||||
actions:'k3ApiConfigSet'
|
||||
},
|
||||
{
|
||||
icon: "sc-icon-CostSetup",
|
||||
title: "费用类别配置",
|
||||
component: "cost",
|
||||
actions:'costCategoryAdd'
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
@@ -0,0 +1,99 @@
|
||||
<template>
|
||||
<el-container>
|
||||
<el-main>
|
||||
<div class="mailView">
|
||||
<div class="headerBox ">
|
||||
<div class="title">费用类别配置</div>
|
||||
<div class="item">
|
||||
<span class="name">上架费</span>
|
||||
<el-input type="text" v-model="cost.name" :size="size" placeholder="上架费"></el-input>
|
||||
</div>
|
||||
<div class="item">
|
||||
<span class="name">服务费</span>
|
||||
<el-input type="text" v-model="cost.price" :size="size" placeholder="服务费"></el-input>
|
||||
</div>
|
||||
<div class="item">
|
||||
<span class="name">物料厂商费</span>
|
||||
<el-input type="text" v-model="cost.company_id" :size="size" placeholder="物料厂商费"></el-input>
|
||||
</div>
|
||||
<div class="item">
|
||||
<span class="name">备件费</span>
|
||||
<el-input type="text" v-model="cost.description" :size="size" placeholder="备件费"></el-input>
|
||||
</div>
|
||||
</div>
|
||||
<div class="btnView">
|
||||
<el-button type="primary" :size="size" @click="save" :loading="loading">保存配置</el-button>
|
||||
</div>
|
||||
</div>
|
||||
</el-main>
|
||||
</el-container>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "cost",
|
||||
data(){
|
||||
return{
|
||||
size:'small',
|
||||
loading:false,
|
||||
cost:{
|
||||
code:'',
|
||||
description:'',
|
||||
price:''
|
||||
}
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.getCost();
|
||||
},
|
||||
methods:{
|
||||
async getCost() {
|
||||
const res = await this.$API.setup.cost.get.post();
|
||||
if(res.code == 200){
|
||||
if(res.data && res.data.length>0){
|
||||
this.cost = res.data[0];
|
||||
}
|
||||
}
|
||||
},
|
||||
async save() {
|
||||
this.loading = true;
|
||||
let params = {
|
||||
cost:[this.cost]
|
||||
}
|
||||
const res = await this.$API.setup.cost.set.post(params);
|
||||
this.loading = false;
|
||||
if (res.code == 200) {
|
||||
this.$message.success('保存成功');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.mailView{
|
||||
.headerBox{
|
||||
border-bottom: 1px solid #e8e8e8;
|
||||
padding-bottom: 5px;
|
||||
.title{
|
||||
font-weight: 500;
|
||||
padding: 10px 0;
|
||||
}
|
||||
.item{
|
||||
margin-bottom: 15px;
|
||||
.name{
|
||||
width: 90px;
|
||||
display: inline-block;
|
||||
text-align: left;
|
||||
margin-right: 10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
.btnView{
|
||||
padding: 15px 0;
|
||||
}
|
||||
::v-deep .el-input{
|
||||
width: 480px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user