| | |
| | | v-model="queryParams.name" |
| | | placeholder="请输入姓名" |
| | | @keyup.enter.native="handleQuery" |
| | | @input="queryParams.name = $event.replace(/\s/g, '')" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="体检号" prop="tjNum"> |
| | |
| | | @blur="hb" |
| | | style="width: 170px" |
| | | clearable |
| | | @input="queryParams.tjNum = $event.replace(/\s/g, '')" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="登记时间" prop="createTimeList"> |
| | |
| | | :show-overflow-tooltip="true" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <span v-if="scope.row.tjCustomerSex == '0'">男</span> |
| | | <span v-if="scope.row.tjCustomerSex == '1'">女</span> |
| | | <span v-if="scope.row.tjCustomerSex == '2'">未知</span> |
| | | <dict-tag |
| | | :options="dict.type.sys_user_sex" |
| | | :value="scope.row.tjCustomerSex" |
| | | /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | </el-dialog> |
| | | |
| | | <!-- 添加或修改体检记录对话框 --> |
| | | <el-dialog :title="title" :visible.sync="open" width="660px"> |
| | | <el-dialog |
| | | :title="title" |
| | | :visible.sync="open" |
| | | width="660px" |
| | | :close-on-click-modal="false" |
| | | > |
| | | <el-form |
| | | :model="formIn" |
| | | ref="queryForm" |
| | |
| | | style="width: 116px" |
| | | ref="inputName" |
| | | v-model="formIn.tjCustomerSex" |
| | | /> |
| | | > |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item label="年龄" prop="tjCustomerAge"> |
| | | <el-input |
| | |
| | | </el-table-column> |
| | | <el-table-column label="完成" prop="type" width="86" align="center"> |
| | | <template slot-scope="scope"> |
| | | <el-checkbox v-model="scope.row.type" disabled></el-checkbox> |
| | | <el-checkbox |
| | | @change="handelcheckbox1(scope.row)" |
| | | v-model="scope.row.type" |
| | | :disabled="scope.row.leave" |
| | | ></el-checkbox> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="弃检" prop="type2" width="86" align="center"> |
| | | <template slot-scope="scope"> |
| | | <el-checkbox |
| | | @change="handelcheckbox" |
| | | @change="handelcheckbox(scope.row)" |
| | | v-model="scope.row.type2" |
| | | :disabled="leave" |
| | | :disabled="scope.row.leave" |
| | | > |
| | | <!-- <el-checkbox v-model="scope.row.type2"></el-checkbox> --> |
| | | </el-checkbox> |
| | |
| | | <el-table-column label="延期" prop="type3" width="86" align="center"> |
| | | <template slot-scope="scope"> |
| | | <el-checkbox |
| | | @change="handelcheck" |
| | | @change="handelcheck(scope.row)" |
| | | v-model="scope.row.type3" |
| | | :disabled="leave" |
| | | :disabled="scope.row.leave" |
| | | > |
| | | </el-checkbox> |
| | | </template> |
| | |
| | | <!-- 弃检2,延期3 --> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <!-- <el-button @click="cancel">延期</el-button> --> |
| | | <el-button @click="canaffirm">确认签离</el-button> |
| | | <el-button :loading = isLoading @click="canaffirm">确认签离</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | </div> |
| | |
| | | components: { |
| | | ViewPdf, |
| | | }, |
| | | dicts: ["dict_pay_type"], |
| | | dicts: ["dict_pay_type","sys_user_sex"], |
| | | name: "Order", |
| | | data() { |
| | | return { |
| | |
| | | leave: false, |
| | | checked: false, |
| | | radioId1: false, |
| | | isLoading:false, |
| | | createTimeList: [], |
| | | cusId: "", |
| | | payType: "0", |
| | |
| | | // remarkId1: "", |
| | | type: null, |
| | | type1: null, |
| | | types: null, |
| | | // 套餐提交按钮 |
| | | confirm: false, |
| | | list1: true, |
| | |
| | | }, |
| | | created() { |
| | | // this.getNowTime(); |
| | | |
| | | |
| | | this.getdate(); |
| | | }, |
| | | mounted() { |
| | |
| | | if (this.startTime) { |
| | | this.queryParams.djbeginTime = this.startTime[0]; |
| | | this.queryParams.djendTime = this.startTime[1]; |
| | | } else { |
| | | } else if (this.createTimeList) { |
| | | this.queryParams.djbeginTime = this.createTimeList[0]; |
| | | this.queryParams.djendTime = this.createTimeList[1]; |
| | | } else if (this.createTimeList == null) { |
| | | this.queryParams.djbeginTime = null; |
| | | this.queryParams.djendTime = null; |
| | | } |
| | | |
| | | this.loading = true; |
| | |
| | | }, |
| | | /** 重置按钮操作 */ |
| | | resetQuery() { |
| | | this.createTimeList = [] |
| | | this.startTime= [] |
| | | this.createTimeList = []; |
| | | this.startTime = []; |
| | | this.resetForm("queryForm"); |
| | | this.handleQuery(); |
| | | }, |
| | |
| | | }); |
| | | }, |
| | | |
| | | handelcheckbox(val) { |
| | | handelcheckbox1(val) { |
| | | // this.numberList.forEach(item => { |
| | | // if(item.type2 === true){ |
| | | // item.type3 = false |
| | | // } |
| | | // }) |
| | | for (let i = 0; i <= this.numberList.length; i++) { |
| | | if (this.numberList[i].type2 === true) { |
| | | this.numberList[i].type3 = false; |
| | | this.tcShow = false; |
| | | return; |
| | | if (val.proId == this.numberList[i].proId) { |
| | | if (this.numberList[i].type === true) { |
| | | this.numberList[i].type3 = false; |
| | | this.numberList[i].type2 = false; |
| | | this.tcShow = false; |
| | | return; |
| | | } else { |
| | | return; |
| | | } |
| | | } |
| | | } |
| | | // this.type2 = val |
| | | // this.numberList.forEach(item => { |
| | | // if (item.type === true) { |
| | | // item.type2 = false; |
| | | // item.type3 = false; |
| | | // } else{ |
| | | // this.type2 = val |
| | | // if (this.type2 === true) { |
| | | // item.type = false |
| | | // item.type3 = false |
| | | // } |
| | | // } |
| | | // }) |
| | | }, |
| | | |
| | | handelcheckbox(val) { |
| | | // this.numberList.forEach(item => { |
| | | // if(item.type2 === true){ |
| | | // item.type3 = false |
| | | // } |
| | | // }) |
| | | |
| | | for (let i = 0; i <= this.numberList.length; i++) { |
| | | if (val.proId == this.numberList[i].proId) { |
| | | if (this.numberList[i].type2 === true) { |
| | | this.numberList[i].type3 = false; |
| | | this.numberList[i].type = false; |
| | | this.tcShow = false; |
| | | return; |
| | | } else { |
| | | return; |
| | | } |
| | | } |
| | | } |
| | | // this.type2 = val |
| | |
| | | // } |
| | | // }) |
| | | for (let i = 0; i <= this.numberList.length; i++) { |
| | | if (this.numberList[i].type3 === true) { |
| | | this.numberList[i].type2 = false; |
| | | this.tcShow = true; |
| | | return; |
| | | if (val.proId == this.numberList[i].proId) { |
| | | if (this.numberList[i].type3) { |
| | | if (this.numberList[i].type3 === true) { |
| | | this.numberList[i].type2 = false; |
| | | this.numberList[i].type = false; |
| | | this.tcShow = true; |
| | | return; |
| | | } |
| | | } else { |
| | | return; |
| | | } |
| | | } |
| | | } |
| | | // this.numberList.forEach(item => { |
| | |
| | | /** 签离按钮操作 */ |
| | | handleDelete() { |
| | | this.title = "签离登记"; |
| | | this.List.forEach((item) => { |
| | | this.numberList = []; |
| | | let list = JSON.parse(JSON.stringify(this.List)) |
| | | list.forEach((item) => { |
| | | this.formIn = item; |
| | | if (this.formIn.tjCustomerSex === 0) { |
| | | this.formIn.tjCustomerSex = "男"; |
| | |
| | | item.type = true; |
| | | item.type2 = false; |
| | | item.type3 = false; |
| | | this.leave = true; |
| | | item.leave = true; |
| | | } else { |
| | | this.leave = false; |
| | | item.leave = false; |
| | | } |
| | | item = { |
| | | type2: false, |
| | | type3: false, |
| | | leave: false, |
| | | }; |
| | | }); |
| | | this.open = true; |
| | |
| | | } |
| | | }); |
| | | }, |
| | | |
| | | // 确认弃检 |
| | | canaffirm() { |
| | | this.List.forEach((item) => { |
| | | this.tjNumber = item.tjNumber; |
| | | }); |
| | | this.numberList.forEach((element) => { |
| | | if (element.type2 === true) { |
| | | if (element.type === true) { |
| | | this.types = 1; |
| | | this.DataList.push({ |
| | | tjNumber: this.tjNumber, |
| | | type: this.types, |
| | | remarkId: element.remarkId, |
| | | }); |
| | | } else if (element.type2 === true) { |
| | | this.type = 2; |
| | | this.DataList.push({ |
| | | tjNumber: this.tjNumber, |
| | |
| | | domainVos: this.DataList, |
| | | tjNumber: this.tjNumber, |
| | | }; |
| | | this.isLoading = true |
| | | gettjGoOut(data).then((res) => { |
| | | if (res.code === 200) { |
| | | this.$modal.msgSuccess("操作成功"); |
| | | this.open = false; |
| | | this.multiple = true; |
| | | this.isLoading = false |
| | | this.getList(); |
| | | } |
| | | }); |