删除frappe-gantt
This commit is contained in:
@@ -112,6 +112,12 @@ import { listPurchasePlanDetail, getPurchasePlanDetail, delPurchasePlanDetail, a
|
||||
|
||||
export default {
|
||||
name: "PurchasePlanDetail",
|
||||
props: {
|
||||
planId: {
|
||||
type: [String, Number],
|
||||
default: null
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
// 按钮loading
|
||||
@@ -169,6 +175,17 @@ export default {
|
||||
created() {
|
||||
this.getList();
|
||||
},
|
||||
watch: {
|
||||
planId: {
|
||||
handler(newVal) {
|
||||
if (newVal) {
|
||||
this.queryParams.planId = newVal;
|
||||
this.getList();
|
||||
}
|
||||
},
|
||||
immediate: true
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
/** 查询采购计划明细列表 */
|
||||
getList() {
|
||||
@@ -221,6 +238,9 @@ export default {
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
this.reset();
|
||||
if (this.planId) {
|
||||
this.form.planId = this.planId;
|
||||
}
|
||||
this.open = true;
|
||||
this.title = "添加采购计划明细";
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user