|
|
@ -367,6 +367,9 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/**物料树点击 */
|
|
|
|
/**物料树点击 */
|
|
|
|
onNodeClick(obj) {
|
|
|
|
onNodeClick(obj) {
|
|
|
|
|
|
|
|
console.log("数据在这里")
|
|
|
|
|
|
|
|
console.log(obj)
|
|
|
|
|
|
|
|
console.log(12312312312321)
|
|
|
|
if(obj.level == 1) {
|
|
|
|
if(obj.level == 1) {
|
|
|
|
this.queryParams.groupId = obj.id;
|
|
|
|
this.queryParams.groupId = obj.id;
|
|
|
|
this.groupId = obj.id;
|
|
|
|
this.groupId = obj.id;
|
|
|
@ -422,7 +425,7 @@ export default {
|
|
|
|
/** 新增按钮操作 */
|
|
|
|
/** 新增按钮操作 */
|
|
|
|
handleAdd() {
|
|
|
|
handleAdd() {
|
|
|
|
|
|
|
|
|
|
|
|
if(this.groupId==null||this.materialCode){
|
|
|
|
if(this.groupId==null&&this.materialCode==null){
|
|
|
|
this.$modal.msgError("请点击左侧节点");
|
|
|
|
this.$modal.msgError("请点击左侧节点");
|
|
|
|
return
|
|
|
|
return
|
|
|
|
};
|
|
|
|
};
|
|
|
|