|
|
@ -162,7 +162,7 @@ |
|
|
class="el-icon-check"></i>保存</el-button> |
|
|
class="el-icon-check"></i>保存</el-button> |
|
|
</div> |
|
|
</div> |
|
|
<div v-show="checkPagePriv(pagePriv.privs, '删除')" class="btnList"> |
|
|
<div v-show="checkPagePriv(pagePriv.privs, '删除')" class="btnList"> |
|
|
<el-button type="danger" @click="del('form')" class="commonbutton"> |
|
|
|
|
|
|
|
|
<el-button type="danger" @click="btnDel('form')" class="commonbutton"> |
|
|
<i class="el-icon-delete"></i>删除 |
|
|
<i class="el-icon-delete"></i>删除 |
|
|
</el-button> |
|
|
</el-button> |
|
|
</div> |
|
|
</div> |
|
|
@ -269,7 +269,7 @@ export default { |
|
|
|
|
|
|
|
|
//获取单位信息 |
|
|
//获取单位信息 |
|
|
getCustomerOrgRd(id) { |
|
|
getCustomerOrgRd(id) { |
|
|
if (!id){ |
|
|
|
|
|
|
|
|
if (!id) { |
|
|
this.form = deepCopy(this.formInit) |
|
|
this.form = deepCopy(this.formInit) |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
@ -300,7 +300,7 @@ export default { |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
//获取单位类别列表 |
|
|
//获取单位类别列表 |
|
|
getapi("/api/app/customer-org-type/in-filter").then((res) => { |
|
|
|
|
|
|
|
|
getapi("/api/app/customer-org-type/get-all").then((res) => { |
|
|
this.data.customerOrgType = res.data.items; |
|
|
this.data.customerOrgType = res.data.items; |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
@ -428,7 +428,9 @@ export default { |
|
|
if (res.code == 1) { |
|
|
if (res.code == 1) { |
|
|
console.log("创健 操作成功"); |
|
|
console.log("创健 操作成功"); |
|
|
//this.setData({ key: "customerOrg.customerOrgRd", value: res }); |
|
|
//this.setData({ key: "customerOrg.customerOrgRd", value: res }); |
|
|
this.customerOrg.customerOrgId = res.data.id; |
|
|
|
|
|
|
|
|
this.form = res.data |
|
|
|
|
|
this.dataTransOpts.tableS.customer_org.id = res.data.id |
|
|
|
|
|
// this.customerOrg.customerOrgId = res.data.id; |
|
|
this.customerOrg.customerOrgRd = res.data; |
|
|
this.customerOrg.customerOrgRd = res.data; |
|
|
this.getCustomerOrgTree("insert", res.data); |
|
|
this.getCustomerOrgTree("insert", res.data); |
|
|
this.customerOrg.oprStatus = 'edit' |
|
|
this.customerOrg.oprStatus = 'edit' |
|
|
@ -476,15 +478,15 @@ export default { |
|
|
|
|
|
|
|
|
this.dataTransOpts.tableS.customer_org.id = '' |
|
|
this.dataTransOpts.tableS.customer_org.id = '' |
|
|
setTimeout(() => { |
|
|
setTimeout(() => { |
|
|
this.dataTransOpts.refresh.customer_org_register.M++ |
|
|
|
|
|
this.dataTransOpts.refresh.contact_person.M++ |
|
|
|
|
|
}, 20); |
|
|
|
|
|
|
|
|
this.dataTransOpts.refresh.customer_org_register.M++ |
|
|
|
|
|
this.dataTransOpts.refresh.contact_person.M++ |
|
|
|
|
|
}, 20); |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
//删除 |
|
|
//删除 |
|
|
del(formName) { |
|
|
|
|
|
if (!this.customerOrg.customerOrgRd.id) { |
|
|
|
|
|
|
|
|
btnDel(formName) { |
|
|
|
|
|
if (!this.dataTransOpts.tableS.customer_org.id) { |
|
|
this.$message.warning("请先选中要删除的节点") |
|
|
this.$message.warning("请先选中要删除的节点") |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
@ -508,7 +510,8 @@ export default { |
|
|
this.setData({ key: "customerOrg.customerOrgRd", value: { id: "" } }); |
|
|
this.setData({ key: "customerOrg.customerOrgRd", value: { id: "" } }); |
|
|
this.$refs[formName].resetFields(); |
|
|
this.$refs[formName].resetFields(); |
|
|
this.customerOrg.oprStatus = '' |
|
|
this.customerOrg.oprStatus = '' |
|
|
this.customerOrg.customerOrgId = '' |
|
|
|
|
|
|
|
|
// this.customerOrg.customerOrgId = '' |
|
|
|
|
|
this.dataTransOpts.tableS.customer_org.id = '' |
|
|
} |
|
|
} |
|
|
}).catch((err) => { |
|
|
}).catch((err) => { |
|
|
if (err == "cancel") { |
|
|
if (err == "cancel") { |
|
|
|