1.添加业务单据类型增加校验

fencang
x_z 3 years ago
parent 51ba4490c5
commit 8ddaf41fef

@ -12,7 +12,7 @@
<el-form-item>
<el-button-group>
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="search" @click="getList"></el-button>
<el-button type="primary" icon="search" @click="search"></el-button>
<el-button type="primary" icon="search" @click="handleAddClick"
:disabled="!configParms.typeBus"
>新增
@ -114,6 +114,13 @@
>
</div>
</el-dialog>
<el-pagination
:page-size="filterQuery.limit"
@current-change="handleCurrentChange"
layout="prev, pager, next"
:total="total"
></el-pagination>
</el-card>
</div>
</template>
@ -122,6 +129,7 @@
import {getLocalBusType, addLocalBusType, updateLocalBusType, deleteLocalBusType} from "@/api/basic/busLocalType";
import modifyDialog from "./BussinessTypeLoclModify";
import {findConfig} from "@/api/thrsys/spsSyncStatus";
import {isBlank} from "@/utils/strUtil";
export default {
data() {
@ -181,7 +189,14 @@ export default {
this.modifyDialogVisible = false;
this.addDialogVisible = false;
},
handleCurrentChange(val) {
this.filterQuery.page = val;
this.getList();
},
search() {
this.filterQuery.page = 1;
this.getList();
},
getList() {
this.loading = true;
getLocalBusType(this.filterQuery)
@ -199,6 +214,10 @@ export default {
onAddSubmit() {
if (isBlank(this.inputQuery.name)) {
this.$message.warning("业务单据类型名称为空");
return;
}
addLocalBusType(this.inputQuery)
.then((response) => {
this.loading = false;

Loading…
Cancel
Save