Commit f65252d5 by lixiaomin

修改规格提示

parent 0e0cebea
......@@ -244,9 +244,13 @@ export default {
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate((valid) => {
this.form.turn = this.form.turn || this.total + 1;
//this.form.turn = this.form.turn || this.total + 1;
if (valid) {
if (this.form.id != null) {
if(this.form.state == "1"){
this.$message.error("停用之后才可以修改");
return;
}
updateClass(this.form).then((response) => {
this.$modal.msgSuccess("修改成功");
this.open = false;
......@@ -264,6 +268,10 @@ export default {
},
/** 删除按钮操作 */
handleDelete(row) {
if(row.state=="1"){
this.$message.error("停用状态才能删除!");
return;
}
const ids = row.id || this.ids;
this.$modal
.confirm('是否确认删除分类编码为' + row.code + '的数据项?')
......
......@@ -227,8 +227,6 @@ export default {
mess="停用";
sta="2";
}
//let obj = JSON.parse(JSON.stringify(row));
//obj.state=sta;
this.$modal
.confirm('是否确认' + mess + '该数据项?')
.then(function () {
......@@ -267,6 +265,10 @@ export default {
}
this.form.specRules = specsSelectList;
if (this.form.id != null) {
if(this.form.state == 1){
this.$message.error("停用之后才可以修改");
return;
}
updateSpecs(this.form).then((response) => {
if(response.code=="200"){
this.$modal.msgSuccess("修改成功");
......@@ -288,6 +290,10 @@ export default {
},
/** 删除按钮操作 */
handleDelete(row) {
if(row.state==1){
this.$message.error("停用状态才能删除!");
return;
}
const ids = row.id || this.ids;
this.$modal
.confirm('是否确认删除规格编码为' + row.code + '的数据项?')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment