| | |
| | | </el-select> |
| | | <i class="el-icon-circle-plus-outline" @click="handleAdd"></i> |
| | | </el-form-item> |
| | | <el-form-item label="部门" prop="dwDeptName"> |
| | | <!-- <el-form-item label="部门" prop="dwDeptName"> |
| | | <el-select |
| | | v-model="objs.dwDeptName" |
| | | placeholder="请选择部门" |
| | |
| | | /> |
| | | </el-select> |
| | | <i class="el-icon-circle-plus-outline" @click="handleAddbumen"></i> |
| | | </el-form-item> |
| | | </el-form-item> --> |
| | | <!-- <el-form-item label="分组" prop="payType"> |
| | | <el-select v-model="objs.payType" placeholder="请选择结算方式" style="width: 200px" clearable> |
| | | <el-option v-for="dict in groupingList" :key="dict.id" :label="dict.groupingName" :value="dict.id" /> |
| | |
| | | </el-form-item> |
| | | <el-form-item label="有效天数" prop="yxts"> |
| | | <el-input |
| | | style="width:100px" |
| | | style="width:100px" |
| | | v-model="objs.yxts" |
| | | placeholder="有效天数" |
| | | />天(可自定义) |
| | |
| | | |
| | | objs: { |
| | | drugManufacturerId: "", |
| | | dwDeptName: "", |
| | | reservationTime: "", |
| | | yxts:"30", |
| | | yxts: "30", |
| | | }, |
| | | DataList: [], |
| | | tjOrderList: [], //单个项目集合 |
| | |
| | | // 上传的地址 |
| | | url: |
| | | process.env.VUE_APP_BASE_API + |
| | | "/reservation/reservation/newExcelImport", |
| | | "/reservation/reservation/newExcelImportNotDwDeptId", |
| | | }, |
| | | // 查询参数 |
| | | queryParam: { |
| | |
| | | }, |
| | | // 文件上传成功处理 |
| | | handleFileSuccess(response, file, fileList) { |
| | | console.log(response,666666); |
| | | if (response.code == 500) { |
| | | console.log(22222222222); |
| | | // Message.warning(response.msg); |
| | | this.$modal.msgError(response.msg); |
| | | } |
| | | this.ListObj = response.data; |
| | | this.userList = response.data.list; |
| | | this.userList.forEach((item) => { |
| | |
| | | this.upload.isUploading = false; |
| | | this.$refs.upload.clearFiles(); |
| | | this.leftList = response.msg; |
| | | console.log(response.code); |
| | | |
| | | if (this.leftList == "操作失败") { |
| | | this.isdisabled = true; |
| | | this.$alert( |
| | |
| | | |
| | | /** 确认按钮 */ |
| | | submitForm() { |
| | | if (this.objs.reservationTime && this.data.dwDeptId) { |
| | | // if (this.objs.reservationTime && this.data.dwDeptId) { |
| | | if (this.objs.reservationTime) { |
| | | let data = { |
| | | copeWith: this.ListObj.hjMoney, |
| | | reservations: this.userList, |
| | | reservationTime: this.objs.reservationTime, |
| | | dwDeptId: this.data.dwDeptId, |
| | | yxts:this.objs.yxts, |
| | | yxts: this.objs.yxts, |
| | | dwId: this.data.dwId, |
| | | }; |
| | | newConfirm(data).then((res) => { |
| | | this.$modal.msgSuccess("提交成功"); |