| | |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item label="中医处方" prop="cmedical" label-width="68px" style="background: #FAD1E0;border-radius: 7px 7px 7px 7px;opacity: 1;"> |
| | | <el-input v-model="formData.cmedical" placeholder="请输入中医处方" clearable :style="{width: '100%'}" :disabled="dsb" > |
| | | <el-input v-model="formData.cmedical" placeholder="请输入中医处方" clearable :style="{width: '100%'}" :disabled="dsb" type="textarea"> |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item label="西医处方" prop="wmedical" label-width="68px" style="background: #FAD1E0;border-radius: 7px 7px 7px 7px;opacity: 1;"> |
| | | <el-input v-if="!dsb" v-model="formData.wmedical" placeholder="请输入西医处方" clearable :style="{width: '100%'}" :disabled="dsb"></el-input> |
| | | <el-input v-if="dsb" v-model="formData.wmedical" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"></el-input> |
| | | <el-input v-if="!dsb" v-model="formData.wmedical" placeholder="请输入西医处方" clearable :style="{width: '100%'}" :disabled="dsb" type="textarea"></el-input> |
| | | <el-input v-if="dsb" v-model="formData.wmedical" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb" type="textarea"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="备注" prop="remark" label-width="45px" style="background: #FAD1E0;border-radius: 7px 7px 7px 7px;opacity: 1;"> |
| | | <el-input v-if="!dsb" v-model="formData.remark" placeholder="请输入备注" clearable :style="{width: '100%'}" :disabled="dsb" type="textarea"></el-input> |
| | |
| | | this.loading = true; |
| | | getDoctor(id).then((response) => { |
| | | this.formData = response.data; |
| | | console.log(response.data.url) |
| | | if(response.data.url!=null){ |
| | | let paths = response.data.url.split(","); |
| | | for(let i = 0; i < paths.length; i++) |
| | | { |
| | |
| | | } |
| | | } |
| | | } |
| | | } |
| | | else{ |
| | | this.formData.url = "" |
| | | } |
| | | this.loading = false; |
| | | }); |
| | | listType(this.queryParams).then(response => { |
| | |
| | | this.loading = true; |
| | | getDoctor(id).then((response) => { |
| | | this.formData = response.data; |
| | | console.log(response.data.url) |
| | | if(response.data.url!=null){ |
| | | let paths = response.data.url.split(","); |
| | | for(let i = 0; i < paths.length; i++) |
| | | { |
| | |
| | | } |
| | | } |
| | | } |
| | | } |
| | | _this.fileListOther = _this.fileListOther1 |
| | | this.loading = false; |
| | | }); |
| | |
| | | this.uploading = true; |
| | | uploadPic(formData).then(response => { |
| | | _this.uploadFileList1 = [] |
| | | // alert(response.fileNames) |
| | | // alert(_this.formData.url) |
| | | _this.formData.url = _this.formData.url+","+response.fileNames |
| | | updateDoctor(_this.formData).then(response => { |
| | | this.$modal.msgSuccess("文档上传成功"); |