diff --git a/src/components/customerOrg/ContactPerson.vue b/src/components/customerOrg/ContactPerson.vue
index 9e90086..b8d33fa 100644
--- a/src/components/customerOrg/ContactPerson.vue
+++ b/src/components/customerOrg/ContactPerson.vue
@@ -53,7 +53,7 @@
-
+
-
+
@@ -92,26 +92,25 @@
-
-
+
+
-
+
-
-
+
+
-
-
+ highlight-current-row ref="contactMethod" style="margin-top: 20px;">
+
@@ -123,7 +122,7 @@
-
+
@@ -364,4 +363,42 @@ export default {
.btnClass {
width: 110px;
}
+::v-deep .el-form-item {
+ margin-bottom: 2px;
+}
+::v-deep .el-input__inner {
+ /*text-align: center;*/
+ padding-left: 2px;
+ padding-right: 15px;
+}
+::v-deep .el-input__icon{
+ width: 15px; /* 输入框下拉箭头或清除图标 默认 25 */
+}
+
+/* 表格 表头 列间距控制 */
+::v-deep .el-table th.el-table__cell>.cell{
+ text-align: center; /* 表格 表头 对齐方式,默认 left */
+ padding-right: 2px; /* 表格 表头 列间距控制,默认 10px */
+ padding-left: 2px; /* 表格 表头 列间距控制,默认 10px */
+}
+
+/* 表格 表体 首列左间距控制 */
+::v-deep .el-table--border .el-table__cell:first-child .cell {
+ padding-left: 2px; /* 表格 表体 首列左间距控制,默认 10px */
+}
+
+/* 表格 行列间距控制 ,默认 10 px*/
+::v-deep .el-table__cell {
+ padding: 2px 2px 2px 2px; /* 上,右,下,左 */
+}
+
+/* 表格单元格 .el-table .cell ,默认 10 px*/
+::v-deep .cell {
+ padding-left: 2px;
+ padding-right: 2px;
+}
+
+::v-deep .el-icon-date:before {
+ content: ""
+}
diff --git a/src/components/customerOrg/customerOrgEdit.vue b/src/components/customerOrg/customerOrgEdit.vue
index 2fdbf32..cd3fb9a 100644
--- a/src/components/customerOrg/customerOrgEdit.vue
+++ b/src/components/customerOrg/customerOrgEdit.vue
@@ -373,10 +373,10 @@ export default {
this.customerOrg.customerOrgRd.id = '';
this.customerOrg.customerOrgRd = { id: "", isLock: "N", isActive: "Y", parentId: this.customerOrg.customerOrgId };
} else {
-
this.customerOrg.customerOrgRd = { id: "", isLock: "N", isActive: "Y", parentId: null };
}
+ objCopy(this.customerOrg.customerOrgRd,this.form)
this.customerOrg.customerOrgId = "";
},
diff --git a/src/components/customerOrg/customerOrgRegister.vue b/src/components/customerOrg/customerOrgRegister.vue
index 1b12be3..857cdba 100644
--- a/src/components/customerOrg/customerOrgRegister.vue
+++ b/src/components/customerOrg/customerOrgRegister.vue
@@ -37,7 +37,7 @@
-
+
增加次数
@@ -45,7 +45,10 @@
体检完成
- 取消完成
+ 取消完成
+
+
+ 删除次数
@@ -54,6 +57,7 @@
import moment from "moment";
import { mapState, mapMutations } from "vuex";
import { getapi, postapi, putapi, deletapi } from "@/api/api";
+import { tcdate, objCopy, deepCopy,arrayExistObj } from "../../utlis/proFunc";
export default {
components: {},
@@ -108,21 +112,24 @@ export default {
},
//体检次数 相关操作
- add() {
+ async add() {
//this.$message.success("增加次数 addTimes");
- let customerOrgId = this.customerOrg.customerOrgRegisterList[0].customerOrgId
- if (!customerOrgId) {
- alert("单位信息未保存!");
+ if (!this.customerOrg.customerOrgId){
+ this.$message.warning("单位信息未保存!");
return;
}
- postapi(
- `/api/customerorgregister/createcustomerorgregister?CustomerOrgId=${customerOrgId}`
- ).then((res) => {
- if (res.Code != -1) {
- this.getCustomerOrgRegisterList(customerOrgId);
- this.$message.success("操作成功!");
- }
- });
+
+ try {
+ let result = await getapi(`/api/app/customer-org/parent/${this.customerOrg.customerOrgId}`)
+ postapi(`/api/customerorgregister/createcustomerorgregister?CustomerOrgId=${result.data}`).then((res) => {
+ if (res.Code != -1) {
+ this.getCustomerOrgRegisterList(result.data);
+ this.$message.success("操作成功!");
+ }
+ })
+ } catch (error) {
+ this.$message.error("操作失败!"+err);
+ }
},
edit() {
@@ -134,6 +141,33 @@ export default {
//this.$message.success("体检完成 editCustomerOrgRegister");
this.setOrgRegisterState("N");
},
+
+ btnDel(){
+ if (!this.customerOrg.customerOrgId || !this.customerOrgRegisterId) {
+ //console.log(this.customerOrg.customerOrgId, this.customerOrgRegisterId);
+ this.$message.warning('请选中要操作的体检次数')
+ return;
+ }
+
+ this.$confirm("此操作将永久删除该记录, 是否继续?", "提示", {
+ confirmButtonText: "是",
+ cancelButtonText: "否",
+ type: "warning",
+ }).then(() => {
+ //console.log('{patientRegisterIds}',{patientRegisterIds})
+ return deletapi(`/api/app/customer-org-register/${this.customerOrgRegisterId}`);
+ }).then((res) => {
+ if(res.code != -1) {
+ this.$message.success("删除 操作成功");
+ let lfind = arrayExistObj(this.customerOrg.customerOrgRegisterList, 'id', this.customerOrgRegisterId)
+ if(lfind > - 1) this.customerOrg.customerOrgRegisterList.splice(lfind,1)
+ this.customerOrgRegisterId = ''
+ }
+ }).catch((err) => {
+ //
+ });
+ }
+
},
};