禅道bug修改
parent
e3bf58b980
commit
a192f62a36
@ -1,156 +1,159 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<el-row :gutter="20" class="el-row" type="flex">
|
<el-row :gutter="20" class="el-row" type="flex">
|
||||||
<el-col :span="10" class="el-col">
|
<el-col :span="10" class="el-col">
|
||||||
<div class="text item">
|
<div class="text item">
|
||||||
<div class="itemTag">
|
<div class="itemTag">
|
||||||
<span>单据类型名称: </span>
|
<span>单据类型名称: </span>
|
||||||
</div>
|
</div>
|
||||||
<el-input
|
<el-input
|
||||||
style="width: 200px"
|
style="width: 200px"
|
||||||
size="small"
|
size="small"
|
||||||
splaceholder="请输入内容"
|
clearable
|
||||||
:disabled="!isAdd"
|
splaceholder="请输入内容"
|
||||||
v-model="inputQuery.name"
|
:disabled="!isAdd"
|
||||||
></el-input>
|
v-model.trim="inputQuery.name"
|
||||||
</div>
|
></el-input>
|
||||||
</el-col>
|
</div>
|
||||||
<el-col :span="10" class="el-col">
|
</el-col>
|
||||||
<div class="text item">
|
<el-col :span="10" class="el-col">
|
||||||
<div class="itemTag">
|
<div class="text item">
|
||||||
<span>单据类型代码: </span>
|
<div class="itemTag">
|
||||||
</div>
|
<span>单据类型代码: </span>
|
||||||
<el-input
|
</div>
|
||||||
style="width: 200px"
|
<el-input
|
||||||
:disabled="!isAdd"
|
style="width: 200px"
|
||||||
size="small"
|
:disabled="!isAdd"
|
||||||
splaceholder="请输入内容"
|
clearable
|
||||||
v-model="inputQuery.action"
|
size="small"
|
||||||
></el-input>
|
splaceholder="请输入内容"
|
||||||
</div>
|
v-model.trim="inputQuery.action"
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
|
|
||||||
<el-row :gutter="20" class="el-row" type="flex">
|
></el-input>
|
||||||
<el-col :span="10" class="el-col">
|
</div>
|
||||||
<div class="text item">
|
</el-col>
|
||||||
<div class="itemTag">
|
</el-row>
|
||||||
<span>第三方系统: </span>
|
|
||||||
</div>
|
|
||||||
<el-select v-model="inputQuery.thirdSys" placeholder="请选择" clearable="true">
|
|
||||||
<el-option
|
|
||||||
v-for="item in thirdSys"
|
|
||||||
:key="item.value"
|
|
||||||
:label="item.thirdName"
|
|
||||||
:value="item.thirdId">
|
|
||||||
<span style="float: left">{{ item.thirdName }}</span>
|
|
||||||
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.thirdId }}</span>
|
|
||||||
</el-option>
|
|
||||||
</el-select>
|
|
||||||
</div>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="10" class="el-col">
|
|
||||||
<div class="text item">
|
|
||||||
<div class="itemTag">
|
|
||||||
<span>备注: </span>
|
|
||||||
</div>
|
|
||||||
<el-input
|
|
||||||
style="width: 200px"
|
|
||||||
size="small"
|
|
||||||
splaceholder="请输入内容"
|
|
||||||
v-model="inputQuery.remark"
|
|
||||||
></el-input>
|
|
||||||
</div>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
|
|
||||||
<el-divider></el-divider>
|
<el-row :gutter="20" class="el-row" type="flex">
|
||||||
</div>
|
<el-col :span="10" class="el-col">
|
||||||
|
<div class="text item">
|
||||||
|
<div class="itemTag">
|
||||||
|
<span>第三方系统: </span>
|
||||||
|
</div>
|
||||||
|
<el-select v-model="inputQuery.thirdSys" placeholder="请选择" clearable="true">
|
||||||
|
<el-option
|
||||||
|
v-for="item in thirdSys"
|
||||||
|
:key="item.value"
|
||||||
|
:label="item.thirdName"
|
||||||
|
:value="item.thirdId">
|
||||||
|
<span style="float: left">{{ item.thirdName }}</span>
|
||||||
|
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.thirdId }}</span>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</div>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="10" class="el-col">
|
||||||
|
<div class="text item">
|
||||||
|
<div class="itemTag">
|
||||||
|
<span>备注: </span>
|
||||||
|
</div>
|
||||||
|
<el-input
|
||||||
|
style="width: 200px"
|
||||||
|
size="small"
|
||||||
|
splaceholder="请输入内容"
|
||||||
|
v-model="inputQuery.remark"
|
||||||
|
></el-input>
|
||||||
|
</div>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-divider></el-divider>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
import {
|
import {
|
||||||
getBasicThirdSys,
|
getBasicThirdSys,
|
||||||
} from "../../api/basic/basicThirdSys";
|
} from "../../api/basic/basicThirdSys";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
getLocalBusType,
|
getLocalBusType,
|
||||||
} from "../../api/basic/busLocalType";
|
} from "../../api/basic/busLocalType";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "inputQuery",
|
name: "inputQuery",
|
||||||
props: {
|
props: {
|
||||||
inputQuery: {
|
inputQuery: {
|
||||||
type: Object,
|
type: Object,
|
||||||
required: true,
|
required: true,
|
||||||
},
|
|
||||||
},
|
},
|
||||||
|
},
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
filterQuery: {
|
filterQuery: {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
isBuType: true,
|
isBuType: true,
|
||||||
},
|
},
|
||||||
thirdSys: [],
|
thirdSys: [],
|
||||||
localTypes: [],
|
localTypes: [],
|
||||||
isAdd: false,
|
isAdd: false,
|
||||||
value: "",
|
value: "",
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
getList() {
|
||||||
|
getBasicThirdSys(this.filterQuery)
|
||||||
|
.then((response) => {
|
||||||
|
this.thirdSys = response.data.list || [];
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
this.loading = false;
|
||||||
|
this.list = [];
|
||||||
|
});
|
||||||
|
getLocalBusType(this.filterQuery)
|
||||||
|
.then((response) => {
|
||||||
|
this.localTypes = response.data.list || [];
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
this.loading = false;
|
||||||
|
this.localTypes = [];
|
||||||
|
});
|
||||||
},
|
},
|
||||||
methods: {
|
|
||||||
getList() {
|
|
||||||
getBasicThirdSys(this.filterQuery)
|
|
||||||
.then((response) => {
|
|
||||||
this.thirdSys = response.data.list || [];
|
|
||||||
})
|
|
||||||
.catch(() => {
|
|
||||||
this.loading = false;
|
|
||||||
this.list = [];
|
|
||||||
});
|
|
||||||
getLocalBusType(this.filterQuery)
|
|
||||||
.then((response) => {
|
|
||||||
this.localTypes = response.data.list || [];
|
|
||||||
})
|
|
||||||
.catch(() => {
|
|
||||||
this.loading = false;
|
|
||||||
this.localTypes = [];
|
|
||||||
});
|
|
||||||
},
|
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
created() {
|
created() {
|
||||||
if (this.inputQuery.action == "") {
|
if (this.inputQuery.action == "") {
|
||||||
this.isAdd = true;
|
this.isAdd = true;
|
||||||
}
|
}
|
||||||
this.getList();
|
this.getList();
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.itemTag {
|
.itemTag {
|
||||||
float: left;
|
float: left;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
width: 100px;
|
width: 100px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.text {
|
.text {
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
font-family: "Microsoft YaHei";
|
font-family: "Microsoft YaHei";
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-row {
|
.el-row {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-col {
|
.el-col {
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
Loading…
Reference in New Issue