diff --git a/src/components/customerOrg/customerOrgEdit.vue b/src/components/customerOrg/customerOrgEdit.vue
index f70cde0..9ebd95e 100644
--- a/src/components/customerOrg/customerOrgEdit.vue
+++ b/src/components/customerOrg/customerOrgEdit.vue
@@ -180,6 +180,9 @@
新增子单位
+
+ 复制新增
+
保存
@@ -458,7 +461,8 @@ export default {
//id为空则新增
postapi(`/api/app/customerorg/create`, body).then(async (res) => {
if (res.code == 1) {
- console.log("创健 操作成功");
+ this.$message.success({showClose:true,message:'操作成功!'})
+ //console.log("创健 操作成功");
//this.setData({ key: "customerOrg.customerOrgRd", value: res });
this.form = res.data
this.dataTransOpts.tableS.customer_org = res.data
@@ -477,7 +481,7 @@ export default {
putapi(`/api/app/customer-org/${this.form.id}`, body).then(
(res) => {
if (res.code == 1) {
- console.log("更新 操作成功");
+ this.$message.success({showClose:true,message:'操作成功!'})
let lbody = { ...deepCopy(body), id: this.form.id };
this.getCustomerOrgTree("update", lbody);
this.customerOrg.oprStatus = 'edit'
@@ -511,25 +515,40 @@ export default {
//新增弹框
async btnAdd(formName, child) {
- await this.$refs[formName].resetFields();
- //console.log('this.peisid',this.peisid)
- if (!this.peisid || this.peisid == 'null') {
- this.$message.warning({ showClose: true, message: "该用户未选归属体检中心,不能执行此操作!" });
- return
+ switch (child) {
+ case 'newCopy':
+ if(!this.form.id) return
+ //let copyForm = deepCopy(this.form)
+ //this.from = deepCopy(copyForm)
+ this.form.displayName = ''
+ this.form.shortName = ''
+ this.form.id = ''
+ this.$message.warning({showClose:true,message:'复制新增,请记得要点击【保存】!'})
+ break;
+ default:
+ let formPre = deepCopy(this.form)
+ await this.$refs[formName].resetFields();
+ //console.log('this.peisid',this.peisid)
+ if (!this.peisid || this.peisid == 'null') {
+ this.$message.warning({ showClose: true, message: "该用户未选归属体检中心,不能执行此操作!" });
+ return
+ }
+ this.form = deepCopy(this.formInit)
+ if (child) {
+ if (!this.dataTransOpts.tableS.customer_org.id) {
+ this.$message.warning({ showClose: true, message: "请先选择上级单位" });
+ this.customerOrg.oprStatus = ''
+ return;
+ }
+ this.form.parentId = this.dataTransOpts.tableS.customer_org.id
+ this.form.orgTypeId = formPre.orgTypeId
+ } else {
+ // 新增一级单位时,清除 vuex 一级单位ID
+ this.dataTransOpts.tableS.customer_org.parent_id = ''
+ }
+ break;
}
- this.form = deepCopy(this.formInit)
- if (child) {
- if (!this.dataTransOpts.tableS.customer_org.id) {
- this.$message.warning({ showClose: true, message: "请先选择上级单位" });
- this.customerOrg.oprStatus = ''
- return;
- }
- this.form.parentId = this.dataTransOpts.tableS.customer_org.id
- } else {
- // 新增一级单位时,清除 vuex 一级单位ID
- this.dataTransOpts.tableS.customer_org.parent_id = ''
- }
this.customerOrg.oprStatus = 'add'
// this.customerOrg.customerOrgId = "";
@@ -559,7 +578,7 @@ export default {
return deletapi(`/api/app/customer-org/${this.dataTransOpts.tableS.customer_org.id}`);
}).then((res) => {
if (res.code != -1) {
- console.log("删除 操作成功");
+ //console.log("删除 操作成功");
this.getCustomerOrgTree("delete", this.dataTransOpts.tableS.customer_org.id);
this.customerOrg.customerOrgRegisterList = []
this.customerOrg.contactPersonList = []
diff --git a/src/views/fee-settings/SysParmSet.vue b/src/views/fee-settings/SysParmSet.vue
index 05311e0..35abab5 100644
--- a/src/views/fee-settings/SysParmSet.vue
+++ b/src/views/fee-settings/SysParmSet.vue
@@ -59,7 +59,7 @@
+ maxlength="500" size="small" />