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

提交代码

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