提交 c26d8142 authored 作者: 350505825@qq.com's avatar 350505825@qq.com

提交代码

上级 372c99bf
......@@ -21,14 +21,6 @@
</el-form-item>
</div>
</el-form>
<pagination
v-show="total>0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
</div>
</template>
......@@ -68,6 +60,7 @@
statusOptions: [],
// 部门列表
departmentOptions: [],
disableSave:true,
// 查询参数
queryParams: {
pageNum: 1,
......@@ -78,9 +71,6 @@
},
created() {
this.getData();
this.getDicts("t_formal_dishes_apply.status").then(response => {
this.statusOptions = response.data;
});
},
methods: {
/** 查询挂餐管理数据*/
......@@ -90,7 +80,9 @@
this.resData = response.data;
this.total = response.total;
this.loading = false;
this.disableSave=false;
});
},
// 表单重置
reset() {
......@@ -100,6 +92,13 @@
},
/** 保存按钮操作 */
handleAdd() {
if(this.disableSave){
console.log(666)
this.msgError("非用餐时段禁止添加挂餐");
return
}
addPullRecipeCount({count:this.queryParams.count}).then(response => {
if (response.code === 200) {
this.msgSuccess("保存成功");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论