| | |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-form-item align="left" label="本人意愿 "> |
| | | <el-form-item align="left" label="本人意愿 " prop="selfwill"> |
| | | <el-checkbox-group v-model="form.selfwill"> |
| | | <el-checkbox |
| | | v-for="dict in dict.type.sys_SelfWill || []" |
| | |
| | | clearable |
| | | v-model="witnessform.coordinatorSignTime" |
| | | type="datetime" |
| | | value-format="yyyy-MM-dd" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | placeholder="选择手术结束时间" |
| | | > |
| | | </el-date-picker> |
| | |
| | | border |
| | | :key="tableKey" |
| | | :data="procureddata" |
| | | lazy |
| | | :load="loadRowData" |
| | | :row-key="row => row.organno" |
| | | > |
| | | <el-table-column |
| | | label="器官名称" |
| | |
| | | </template> |
| | | </el-table-column> --> |
| | | <el-table-column |
| | | label="获取开始时间" |
| | | label="器官离体时间" |
| | | align="center" |
| | | width="200" |
| | | prop="organgettime" |
| | |
| | | size="small" |
| | | style="width: 100%" |
| | | v-model="scope.row.organgettime" |
| | | type="datetime" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | placeholder="请输入器官离体时间" |
| | | > |
| | | </el-date-picker> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="获取开始时间" |
| | | align="center" |
| | | width="200" |
| | | prop="organStartTime" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-date-picker |
| | | clearable |
| | | size="small" |
| | | style="width: 100%" |
| | | v-model="scope.row.organStartTime" |
| | | type="datetime" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | placeholder="请输入获取开始时间" |
| | |
| | | majorrelatives: [ |
| | | { required: true, message: "请输入主要亲属", trigger: "blur" } |
| | | ], |
| | | selfwill: [ |
| | | { required: true, message: "请选择本人意愿", trigger: "blur" } |
| | | ], |
| | | registerAddresss: [ |
| | | { required: true, message: "请输入现所在地", trigger: "blur" } |
| | | ], |
| | | familyrelations: [ |
| | | { required: true, message: "请选择亲属与捐献者关系", trigger: "blur" } |
| | | ], |
| | |
| | | return; |
| | | } |
| | | this.customOrganSort(); |
| | | }, |
| | | deep: true // 深度监听,因为数组内容可能变化 |
| | | } |
| | | // deep: true // 深度监听,因为数组内容可能变化 |
| | | }, |
| | | allocateddata: { |
| | | handler(newVal) { |
| | |
| | | return; |
| | | } |
| | | this.allocateddataSort(); |
| | | }, |
| | | deep: true // 深度监听,因为数组内容可能变化 |
| | | } |
| | | // deep: true // 深度监听,因为数组内容可能变化 |
| | | } |
| | | }, |
| | | |
| | | methods: { |
| | | loadRowData(row, treeNode, resolve) { |
| | | // 只有当行展开或需要时才完整渲染内部组件 |
| | | this.$set(row, "loaded", true); |
| | | resolve(); |
| | | }, |
| | | // 获取主表及附属数据 |
| | | Getbasicinformation() { |
| | | // 左侧流程数据 |
| | |
| | | if (response.code == 200 && response.rows[0]) { |
| | | this.affirmform = response.rows[0]; |
| | | if (this.affirmform.organdecision) { |
| | | this.organdecision = this.affirmform.organdecision.split(","); |
| | | this.organdecision = this.affirmform.organdecision |
| | | .split(",") |
| | | .flatMap(item => (item === "双肾脏" ? ["左肾", "右肾"] : item)); |
| | | } |
| | | if (this.affirmform.kinship) { |
| | | this.kinship = this.affirmform.kinship.split(","); |
| | |
| | | this.$refs["form"].validate(valid => { |
| | | console.log("提交的数据们:", this.form); |
| | | if (valid) { |
| | | console.log(112); |
| | | |
| | | this.form.birthday = this.$moment(this.form.birthday).format( |
| | | "YYYY-MM-DD HH:mm:ss" |
| | | ); |
| | |
| | | } |
| | | }); |
| | | } |
| | | } else { |
| | | this.$modal.msgError("前部潜在捐献表单信息有缺漏请排查后重新保存"); |
| | | } |
| | | }); |
| | | }, |
| | |
| | | |
| | | // 1. 加锁,阻止监听器执行 |
| | | this.isSorting = true; |
| | | this.loading = true; |
| | | // 自定义排序函数 |
| | | this.procureddata.sort((a, b) => { |
| | | const indexA = this.organOrder.indexOf(a.organname); |
| | |
| | | this.procureddata = [...this.procureddata]; |
| | | this.$nextTick(() => { |
| | | this.isSorting = false; |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | allocateddataSort() { |