|
|
@@ -187,7 +187,7 @@
|
|
|
</el-tabs>
|
|
|
</el-form>
|
|
|
</el-tab-pane>
|
|
|
- <el-tab-pane label="检验信息" name="checking">
|
|
|
+ <!-- <el-tab-pane label="检验信息" name="checking">
|
|
|
<el-card class="box-card infocard addcustomorinfocard">
|
|
|
<div slot="header">
|
|
|
<legend style="color:#436EEE"></legend>
|
|
|
@@ -216,7 +216,7 @@
|
|
|
header-align="center"></el-table-column>
|
|
|
</el-table>
|
|
|
</el-card>
|
|
|
- </el-tab-pane>
|
|
|
+ </el-tab-pane>
|
|
|
<el-tab-pane label="病理信息" name="pathological">
|
|
|
<el-form :model="pathologyForm" label-width="90px">
|
|
|
<el-card class="box-card infocard addcustomorinfocard">
|
|
|
@@ -226,7 +226,7 @@
|
|
|
<span style="float: right;">
|
|
|
<el-button type="primary" class="el-button--mini" :disabled="path_flag" @click="addpathology">添加
|
|
|
</el-button>
|
|
|
- <!-- <el-button type="primary" class="el-button--mini" @click="addpathology">添加</el-button> -->
|
|
|
+ <el-button type="primary" class="el-button--mini" @click="addpathology">添加</el-button>
|
|
|
</span>
|
|
|
</div>
|
|
|
<el-table :data="pathologylist" border stripe style="width: 100%">
|
|
|
@@ -356,7 +356,7 @@
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
</el-card>
|
|
|
- </el-tab-pane>
|
|
|
+ </el-tab-pane>-->
|
|
|
</el-tabs>
|
|
|
</el-card>
|
|
|
|
|
|
@@ -644,9 +644,9 @@
|
|
|
computed: {
|
|
|
...mapGetters({
|
|
|
authUser: 'authUser'
|
|
|
- }),
|
|
|
+ })
|
|
|
},
|
|
|
- data() {
|
|
|
+ data () {
|
|
|
var checktelephone = (rule, value, callback) => {
|
|
|
if (!value) {
|
|
|
callback(new Error('请输入手机号'))
|
|
|
@@ -661,7 +661,7 @@
|
|
|
}
|
|
|
return {
|
|
|
Tabs: 'basic',
|
|
|
- pagetitle: '', //界面标题
|
|
|
+ pagetitle: '', // 界面标题
|
|
|
protocol_flag: '',
|
|
|
samplesForm: {
|
|
|
IdCard: '',
|
|
|
@@ -681,10 +681,10 @@
|
|
|
IllnessName: '',
|
|
|
// CreateUserId: '', //操作人ID
|
|
|
// CreateBy: '', //操作人
|
|
|
- Remark: '',
|
|
|
+ Remark: ''
|
|
|
},
|
|
|
Diseases: '',
|
|
|
- diseaseinfolist: [], //疾病
|
|
|
+ diseaseinfolist: [], // 疾病
|
|
|
extendTabs: '',
|
|
|
groupnameList: [],
|
|
|
samplesrules: {
|
|
|
@@ -707,7 +707,7 @@
|
|
|
required: true,
|
|
|
message: '请填写出生日期',
|
|
|
trigger: 'blur'
|
|
|
- }],
|
|
|
+ }]
|
|
|
},
|
|
|
userextends: [], // 扩展字段
|
|
|
basic_flag: false,
|
|
|
@@ -763,39 +763,39 @@
|
|
|
},
|
|
|
screen_flag: true,
|
|
|
sampletestShow: false,
|
|
|
- sampletestlist: [], //检测信息列表
|
|
|
- sampletestdetaillist: [], //检测详情列表
|
|
|
+ sampletestlist: [], // 检测信息列表
|
|
|
+ sampletestdetaillist: [], // 检测详情列表
|
|
|
Pathology: '',
|
|
|
- pathologylist: [], //病理信息列表
|
|
|
- pathShow: false, //病理弹窗
|
|
|
+ pathologylist: [], // 病理信息列表
|
|
|
+ pathShow: false, // 病理弹窗
|
|
|
Operation: '',
|
|
|
operationlist: [],
|
|
|
- operationShow: false, //手术弹窗
|
|
|
+ operationShow: false, // 手术弹窗
|
|
|
Image: '',
|
|
|
imagelist: [],
|
|
|
- imageShow: false, //影像弹窗
|
|
|
+ imageShow: false, // 影像弹窗
|
|
|
Screening: '',
|
|
|
- screeninglist: [], //筛查信息列表
|
|
|
- screeningShow: false, //筛查弹窗
|
|
|
+ screeninglist: [], // 筛查信息列表
|
|
|
+ screeningShow: false, // 筛查弹窗
|
|
|
ID: '',
|
|
|
maintainlogattrlist: [],
|
|
|
waituploads: [], // 等待上传的附件列表
|
|
|
pid: 0,
|
|
|
- addCommunicationShow: false, //添加交流记录弹窗
|
|
|
- loginDialogVisible: false, //登陆验证弹窗
|
|
|
+ addCommunicationShow: false, // 添加交流记录弹窗
|
|
|
+ loginDialogVisible: false, // 登陆验证弹窗
|
|
|
isLoginSucceed: false,
|
|
|
acceptUsers: [],
|
|
|
userlist: [],
|
|
|
username: '',
|
|
|
password: '',
|
|
|
- AuthorUser: '', //编辑人
|
|
|
+ AuthorUser: '', // 编辑人
|
|
|
AuthorUserName: '',
|
|
|
dialogImageUrl: '',
|
|
|
dialogVisible: false,
|
|
|
- acc: '',
|
|
|
+ acc: ''
|
|
|
}
|
|
|
},
|
|
|
- created() {
|
|
|
+ created () {
|
|
|
let _this = this
|
|
|
this.pid = this.$route.params.opera
|
|
|
this.acc = this.authUser.Profile.AccCode
|
|
|
@@ -805,7 +805,7 @@
|
|
|
} else if (this.pid != '0') {
|
|
|
this.pagetitle = '编辑样本来源'
|
|
|
this.service_flag = 'editsource'
|
|
|
- //this.getbasicinfo()
|
|
|
+ // this.getbasicinfo()
|
|
|
this.check_falg = false
|
|
|
this.path_flag = false
|
|
|
this.image_flag = false
|
|
|
@@ -819,17 +819,17 @@
|
|
|
this.getimage()
|
|
|
this.getoperation()
|
|
|
this.getscreening()
|
|
|
- //this.getuserlist()
|
|
|
+ // this.getuserlist()
|
|
|
},
|
|
|
methods: {
|
|
|
- getbasicinfo() {
|
|
|
+ getbasicinfo () {
|
|
|
let _this = this // request
|
|
|
let params = {
|
|
|
Id: this.pid
|
|
|
}
|
|
|
_this.$axios.get('/samplessource/getbasicinfo', {
|
|
|
- params
|
|
|
- })
|
|
|
+ params
|
|
|
+ })
|
|
|
.then(res => {
|
|
|
_this.samplesForm = res.data.items
|
|
|
if (res.data.items.Age == 0) {
|
|
|
@@ -854,30 +854,30 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- //根据身份证号获取出生日期
|
|
|
- getBirthday(idCard) {
|
|
|
- var birthday = "";
|
|
|
- if (idCard != null && idCard != "") {
|
|
|
+ // 根据身份证号获取出生日期
|
|
|
+ getBirthday (idCard) {
|
|
|
+ var birthday = '';
|
|
|
+ if (idCard != null && idCard != '') {
|
|
|
if (idCard.length == 15) {
|
|
|
- birthday = "19" + idCard.substr(6, 6);
|
|
|
- } else if (idCard.length == 18) {
|
|
|
- birthday = idCard.substr(6, 8);
|
|
|
- }
|
|
|
- birthday = birthday.replace(/(.{4})(.{2})/, "$1-$2-");
|
|
|
+ birthday = '19' + idCard.substr(6, 6)
|
|
|
+ } else if (idCard.length == 18) {
|
|
|
+ birthday = idCard.substr(6, 8)
|
|
|
}
|
|
|
+ birthday = birthday.replace(/(.{4})(.{2})/, '$1-$2-')
|
|
|
+ }
|
|
|
birthday += ' 00:00:00'
|
|
|
this.samplesForm.Birthday = new Date(birthday)
|
|
|
this.getAge()
|
|
|
},
|
|
|
- //根据出生日期获取年龄
|
|
|
- getAge() {
|
|
|
+ // 根据出生日期获取年龄
|
|
|
+ getAge () {
|
|
|
let time = new Date()
|
|
|
if (this.samplesForm.Birthday) {
|
|
|
this.samplesForm.Age = parseInt(time.getFullYear()) - parseInt(this.samplesForm.Birthday.getFullYear())
|
|
|
}
|
|
|
},
|
|
|
- savebasic() {
|
|
|
- this.$refs["samplesForm"].validate((valid) => {
|
|
|
+ savebasic () {
|
|
|
+ this.$refs['samplesForm'].validate((valid) => {
|
|
|
if (valid) {
|
|
|
let _this = this
|
|
|
_this.samplesForm.PathologicalNum = _this.Diseases + ''
|
|
|
@@ -924,13 +924,13 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
} else {
|
|
|
- console.log('error submit!!');
|
|
|
- return false;
|
|
|
- }
|
|
|
+ console.log('error submit!!')
|
|
|
+ return false
|
|
|
+ }
|
|
|
})
|
|
|
},
|
|
|
- editbasic() {
|
|
|
- this.$refs["samplesForm"].validate((valid) => {
|
|
|
+ editbasic () {
|
|
|
+ this.$refs['samplesForm'].validate((valid) => {
|
|
|
if (valid) {
|
|
|
let _this = this
|
|
|
// this.samplesForm.CreateUserId = parseInt(_this.AuthorUser)
|
|
|
@@ -971,15 +971,15 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
} else {
|
|
|
- console.log('error submit!!');
|
|
|
- return false;
|
|
|
- }
|
|
|
+ console.log('error submit!!')
|
|
|
+ return false
|
|
|
+ }
|
|
|
})
|
|
|
},
|
|
|
- getsampletest() {
|
|
|
+ getsampletest () {
|
|
|
let _this = this
|
|
|
// request
|
|
|
- this.$axios.get("/samplessource/getsampletestlist/" + this.pid, {})
|
|
|
+ this.$axios.get('/samplessource/getsampletestlist/' + this.pid, {})
|
|
|
.then(res => {
|
|
|
_this.sampletestlist = res.data.items
|
|
|
})
|
|
|
@@ -988,11 +988,11 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- getsampletestdetail(row) {
|
|
|
+ getsampletestdetail (row) {
|
|
|
let _this = this
|
|
|
_this.sampletestShow = true
|
|
|
// request
|
|
|
- this.$axios.get("/samplessource/getsampletestdetaillist/" + row.InspectionNum, {})
|
|
|
+ this.$axios.get('/samplessource/getsampletestdetaillist/' + row.InspectionNum, {})
|
|
|
.then(res => {
|
|
|
_this.sampletestdetaillist = res.data.items
|
|
|
})
|
|
|
@@ -1001,10 +1001,10 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- getpathology() {
|
|
|
+ getpathology () {
|
|
|
let _this = this
|
|
|
// request
|
|
|
- _this.$axios.get("/samplessource/pathologylist/" + _this.pid, {})
|
|
|
+ _this.$axios.get('/samplessource/pathologylist/' + _this.pid, {})
|
|
|
.then(res => {
|
|
|
_this.pathologylist = res.data.items
|
|
|
})
|
|
|
@@ -1013,9 +1013,9 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- addpathology() {
|
|
|
+ addpathology () {
|
|
|
this.pathShow = true
|
|
|
- this.Pathology = "添加病理信息"
|
|
|
+ this.Pathology = '添加病理信息'
|
|
|
this.pathologyForm.Id = ''
|
|
|
this.pathologyForm.PathologicalNum = ''
|
|
|
this.pathologyForm.CheckPoint = ''
|
|
|
@@ -1027,20 +1027,20 @@
|
|
|
this.pathologyForm.ClinicalDiagnosis = ''
|
|
|
this.pathologyForm.IllnessName = ''
|
|
|
},
|
|
|
- savePathology() {
|
|
|
- console.log("???????????????", this.pid)
|
|
|
+ savePathology () {
|
|
|
+ console.log('???????????????', this.pid)
|
|
|
if (this.pid > 0) {
|
|
|
this.addPathology()
|
|
|
} else if (this.pid == 'addsource') {
|
|
|
this.Pathologyadd()
|
|
|
}
|
|
|
},
|
|
|
- addPathology(pathologyForm) {
|
|
|
+ addPathology (pathologyForm) {
|
|
|
let _this = this
|
|
|
_this.pathologyForm.CheckNum = parseInt(_this.pathologyForm.CheckNum)
|
|
|
_this.pathologyForm.Type = 3
|
|
|
_this.$axios.post('/samplessource/addpathology?ParentId=' + _this.pid + '&IdCard=' + _this.samplesForm.IdCard,
|
|
|
- _this.pathologyForm)
|
|
|
+ _this.pathologyForm)
|
|
|
.then(res => {
|
|
|
// response
|
|
|
if (res.data.code === 0) {
|
|
|
@@ -1062,14 +1062,14 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- Pathologyadd() {
|
|
|
+ Pathologyadd () {
|
|
|
let _this = this
|
|
|
_this.pathologyForm.CheckNum = parseInt(_this.pathologyForm.CheckNum)
|
|
|
_this.pathologyForm.Type = 3
|
|
|
_this.$axios.post('/samplessource/pathologyadd?Name=' + _this.samplesForm.Name + '&Sex=' + _this.samplesForm
|
|
|
- .Sex +
|
|
|
+ .Sex +
|
|
|
'&Age=' + _this.samplesForm.Age,
|
|
|
- _this.pathologyForm)
|
|
|
+ _this.pathologyForm)
|
|
|
.then(res => {
|
|
|
// response
|
|
|
if (res.data.code === 0) {
|
|
|
@@ -1093,10 +1093,10 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- pathdetail(val) {
|
|
|
+ pathdetail (val) {
|
|
|
let _this = this
|
|
|
this.pathShow = true
|
|
|
- _this.Pathology = "病理信息详情"
|
|
|
+ _this.Pathology = '病理信息详情'
|
|
|
_this.pathologyForm.Id = val.Id
|
|
|
_this.pathologyForm.PathologicalNum = val.PathologicalNum
|
|
|
_this.pathologyForm.CheckPoint = val.CheckPoint
|
|
|
@@ -1108,7 +1108,7 @@
|
|
|
_this.pathologyForm.IllnessName = val.IllnessName
|
|
|
_this.pathologyForm.Department = val.Department
|
|
|
},
|
|
|
- editPathology() {
|
|
|
+ editPathology () {
|
|
|
let _this = this
|
|
|
_this.$axios.put('/samplessource/editpathology/' + _this.pathologyForm.Id, _this.pathologyForm)
|
|
|
.then(res => {
|
|
|
@@ -1132,40 +1132,39 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- getHIS() {
|
|
|
+ getHIS () {
|
|
|
axios({
|
|
|
- method: 'get',
|
|
|
- url: 'http://188.188.30.89:10092/hisapi/pathology/gethis/' + this.pathologyForm.PathologicalNum
|
|
|
- }).then(res => {
|
|
|
- if (res.data.items && res.data.items != '') {
|
|
|
- this.pathologyForm.AdmissionNumber = res.data.items.F_ZYH
|
|
|
- this.pathologyForm.Department = res.data.items.F_SJKS
|
|
|
- this.pathologyForm.BedNum = res.data.items.F_MZH
|
|
|
- this.pathologyForm.IllnessName = res.data.items.F_BLZD
|
|
|
- this.samplesForm.Name = res.data.items.F_XM
|
|
|
- this.samplesForm.Age = parseInt(res.data.items.F_NL)
|
|
|
- if (res.data.items.F_XB == '男') {
|
|
|
- this.samplesForm.Sex = 0
|
|
|
- } else if (res.data.items.F_XB == '女') {
|
|
|
- this.samplesForm.Sex = 1
|
|
|
- }
|
|
|
- } else {
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: '没有对应结果!'
|
|
|
- })
|
|
|
+ method: 'get',
|
|
|
+ url: 'http://188.188.30.89:10092/hisapi/pathology/gethis/' + this.pathologyForm.PathologicalNum
|
|
|
+ }).then(res => {
|
|
|
+ if (res.data.items && res.data.items != '') {
|
|
|
+ this.pathologyForm.AdmissionNumber = res.data.items.F_ZYH
|
|
|
+ this.pathologyForm.Department = res.data.items.F_SJKS
|
|
|
+ this.pathologyForm.BedNum = res.data.items.F_MZH
|
|
|
+ this.pathologyForm.IllnessName = res.data.items.F_BLZD
|
|
|
+ this.samplesForm.Name = res.data.items.F_XM
|
|
|
+ this.samplesForm.Age = parseInt(res.data.items.F_NL)
|
|
|
+ if (res.data.items.F_XB == '男') {
|
|
|
+ this.samplesForm.Sex = 0
|
|
|
+ } else if (res.data.items.F_XB == '女') {
|
|
|
+ this.samplesForm.Sex = 1
|
|
|
}
|
|
|
-
|
|
|
- })
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '没有对应结果!'
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
.catch(err => {
|
|
|
// handle error
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- getimage() {
|
|
|
+ getimage () {
|
|
|
let _this = this
|
|
|
// request
|
|
|
- _this.$axios.get("/samplessource/imagelist/" + _this.pid, {})
|
|
|
+ _this.$axios.get('/samplessource/imagelist/' + _this.pid, {})
|
|
|
.then(res => {
|
|
|
_this.imagelist = res.data.items
|
|
|
})
|
|
|
@@ -1174,9 +1173,9 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- addimage() {
|
|
|
+ addimage () {
|
|
|
this.imageShow = true
|
|
|
- this.Image = "添加影像信息"
|
|
|
+ this.Image = '添加影像信息'
|
|
|
this.imageForm.Id = ''
|
|
|
this.imageForm.ImageSite = ''
|
|
|
this.imageForm.ImageType = ''
|
|
|
@@ -1189,11 +1188,11 @@
|
|
|
this.$refs.refuploadattach.clearFiles()
|
|
|
}
|
|
|
},
|
|
|
- addImage(imageForm) {
|
|
|
+ addImage (imageForm) {
|
|
|
let _this = this
|
|
|
_this.imageForm.Type = 0
|
|
|
_this.$axios.post('/samplessource/addimage?ParentId=' + _this.pid + '&IdCard=' + _this.samplesForm.IdCard,
|
|
|
- _this.imageForm)
|
|
|
+ _this.imageForm)
|
|
|
.then(res => {
|
|
|
// response
|
|
|
if (res.data.code === 0) {
|
|
|
@@ -1215,14 +1214,14 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- imagedetail(val) {
|
|
|
+ imagedetail (val) {
|
|
|
let _this = this
|
|
|
this.imageShow = true
|
|
|
_this.imageUrl = []
|
|
|
if (this.$refs.refuploadattach) {
|
|
|
this.$refs.refuploadattach.clearFiles()
|
|
|
}
|
|
|
- _this.Image = "影像信息详情"
|
|
|
+ _this.Image = '影像信息详情'
|
|
|
_this.imageForm.Id = val.Id
|
|
|
_this.imageForm.ImageSite = val.ImageSite
|
|
|
_this.imageForm.ImageType = val.ImageType
|
|
|
@@ -1240,7 +1239,7 @@
|
|
|
_this.imageForm.FileUrl = val.FileUrl
|
|
|
}
|
|
|
},
|
|
|
- editImage() {
|
|
|
+ editImage () {
|
|
|
let _this = this
|
|
|
// _this.imageForm.FileUrl = `${this.uploadimg.url}/${this.uploadimg.fid}`
|
|
|
_this.$axios.put('/samplessource/editimage/' + _this.imageForm.Id, _this.imageForm)
|
|
|
@@ -1265,17 +1264,17 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- handleRemove(file, fileList) {
|
|
|
- console.log(file, fileList);
|
|
|
- },
|
|
|
- handlePictureCardPreview(file) {
|
|
|
- this.dialogImageUrl = file.url;
|
|
|
- this.dialogVisible = true;
|
|
|
- },
|
|
|
- getoperation() {
|
|
|
+ handleRemove (file, fileList) {
|
|
|
+ console.log(file, fileList)
|
|
|
+ },
|
|
|
+ handlePictureCardPreview (file) {
|
|
|
+ this.dialogImageUrl = file.url
|
|
|
+ this.dialogVisible = true
|
|
|
+ },
|
|
|
+ getoperation () {
|
|
|
let _this = this
|
|
|
// request
|
|
|
- _this.$axios.get("/samplessource/operationlist/" + _this.pid, {})
|
|
|
+ _this.$axios.get('/samplessource/operationlist/' + _this.pid, {})
|
|
|
.then(res => {
|
|
|
_this.operationlist = res.data.items
|
|
|
})
|
|
|
@@ -1284,15 +1283,15 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- addoperation() {
|
|
|
+ addoperation () {
|
|
|
this.operationShow = true
|
|
|
- this.Operation = "添加手术信息"
|
|
|
+ this.Operation = '添加手术信息'
|
|
|
},
|
|
|
- addOperation(operationForm) {
|
|
|
+ addOperation (operationForm) {
|
|
|
let _this = this
|
|
|
_this.operationForm.Type = 1
|
|
|
_this.$axios.post('/samplessource/addoperation?ParentId=' + _this.pid + '&IdCard=' + _this.samplesForm.IdCard,
|
|
|
- _this.operationForm)
|
|
|
+ _this.operationForm)
|
|
|
.then(res => {
|
|
|
// response
|
|
|
if (res.data.code === 0) {
|
|
|
@@ -1314,10 +1313,10 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- operationdetail(val) {
|
|
|
+ operationdetail (val) {
|
|
|
let _this = this
|
|
|
this.operationShow = true
|
|
|
- _this.Operation = "手术信息详情"
|
|
|
+ _this.Operation = '手术信息详情'
|
|
|
_this.operationForm.Id = val.Id
|
|
|
_this.operationForm.OperationName = val.OperationName
|
|
|
_this.operationForm.OperativeSite = val.OperativeSite
|
|
|
@@ -1330,7 +1329,7 @@
|
|
|
_this.operationForm.BedNum = val.BedNum
|
|
|
_this.operationForm.Detail = val.Detail
|
|
|
},
|
|
|
- editoperation() {
|
|
|
+ editoperation () {
|
|
|
let _this = this
|
|
|
_this.$axios.put('/samplessource/editoperation/' + _this.operationForm.Id, _this.operationForm)
|
|
|
.then(res => {
|
|
|
@@ -1354,10 +1353,10 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- getscreening() {
|
|
|
+ getscreening () {
|
|
|
let _this = this
|
|
|
// request
|
|
|
- _this.$axios.get("/samplessource/screeninglist/" + _this.pid, {})
|
|
|
+ _this.$axios.get('/samplessource/screeninglist/' + _this.pid, {})
|
|
|
.then(res => {
|
|
|
_this.screeninglist = res.data.items
|
|
|
})
|
|
|
@@ -1366,9 +1365,9 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- addscreening() {
|
|
|
+ addscreening () {
|
|
|
this.screeningShow = true
|
|
|
- this.Screening = "添加筛查信息"
|
|
|
+ this.Screening = '添加筛查信息'
|
|
|
this.screeningForm.ScreeningSite = ''
|
|
|
this.screeningForm.ScreeningType = ''
|
|
|
this.screeningForm.ScreeningTime = new Date()
|
|
|
@@ -1378,12 +1377,12 @@
|
|
|
this.screeningForm.Record = ''
|
|
|
this.screeningForm.Description = ''
|
|
|
},
|
|
|
- addScreening(screeningForm) {
|
|
|
+ addScreening (screeningForm) {
|
|
|
let _this = this
|
|
|
_this.screeningForm.Type = 2
|
|
|
_this.$axios.post('/samplessource/addscreening' + '?ParentId=' + _this.pid + '&IdCard=' + _this.samplesForm
|
|
|
- .IdCard,
|
|
|
- _this.screeningForm)
|
|
|
+ .IdCard,
|
|
|
+ _this.screeningForm)
|
|
|
.then(res => {
|
|
|
// response
|
|
|
if (res.data.code === 0) {
|
|
|
@@ -1405,10 +1404,10 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- screeningdetail(val) {
|
|
|
+ screeningdetail (val) {
|
|
|
let _this = this
|
|
|
_this.screeningShow = true
|
|
|
- _this.Screening = "筛查信息详情"
|
|
|
+ _this.Screening = '筛查信息详情'
|
|
|
_this.screeningForm.Id = val.Id
|
|
|
_this.screeningForm.ScreeningSite = val.ScreeningSite
|
|
|
_this.screeningForm.ScreeningType = val.ScreeningType
|
|
|
@@ -1419,7 +1418,7 @@
|
|
|
_this.screeningForm.Record = val.Record
|
|
|
_this.screeningForm.Description = val.Description
|
|
|
},
|
|
|
- editscreening() {
|
|
|
+ editscreening () {
|
|
|
let _this = this
|
|
|
_this.$axios.put('/samplessource/editscreening/' + _this.screeningForm.Id, _this.screeningForm)
|
|
|
.then(res => {
|
|
|
@@ -1443,41 +1442,41 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- delopescr(val) {
|
|
|
- let _this = this;
|
|
|
- _this.$confirm("此操作将永久删除该数据, 是否继续?", "提示", {
|
|
|
- confirmButtonText: "确定",
|
|
|
- cancelButtonText: "取消",
|
|
|
- type: "warning"
|
|
|
- })
|
|
|
+ delopescr (val) {
|
|
|
+ let _this = this
|
|
|
+ _this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
.then(() => {
|
|
|
- _this.$axios.delete("samplessource/delopescr/" + val.Id, {})
|
|
|
+ _this.$axios.delete('samplessource/delopescr/' + val.Id, {})
|
|
|
.then(function (response) {
|
|
|
if (response.data.code === 0) {
|
|
|
_this.$message({
|
|
|
- type: "success",
|
|
|
+ type: 'success',
|
|
|
message: response.data.message
|
|
|
- });
|
|
|
- // 更新界面
|
|
|
- _this.getimage()
|
|
|
+ })
|
|
|
+ // 更新界面
|
|
|
+ _this.getimage()
|
|
|
_this.getoperation()
|
|
|
_this.getscreening()
|
|
|
_this.getpathology()
|
|
|
} else {
|
|
|
_this.$message({
|
|
|
- type: "warning",
|
|
|
+ type: 'warning',
|
|
|
message: response.data.message
|
|
|
- });
|
|
|
- }
|
|
|
+ })
|
|
|
+ }
|
|
|
})
|
|
|
.catch(function (error) {
|
|
|
- console.log(error);
|
|
|
- });
|
|
|
- })
|
|
|
- .catch(() => {});
|
|
|
- },
|
|
|
+ console.log(error)
|
|
|
+ })
|
|
|
+ })
|
|
|
+ .catch(() => {})
|
|
|
+ },
|
|
|
|
|
|
- beforeAvatarUpload(file) {
|
|
|
+ beforeAvatarUpload (file) {
|
|
|
const isJPG = (file.type.indexOf('image/') === 0)
|
|
|
const isLt2M = file.size / 1024 / 1024 < 1
|
|
|
if (!isJPG) {
|
|
|
@@ -1490,11 +1489,11 @@
|
|
|
}
|
|
|
return true
|
|
|
},
|
|
|
- handleAvatarSuccess(res, file) {
|
|
|
+ handleAvatarSuccess (res, file) {
|
|
|
this.imageForm.FileUrl = this.imageForm.FileUrl + `${this.uploadimg.url}/${this.uploadimg.fid}|`
|
|
|
// this.imageUrl = URL.createObjectURL(file.raw)
|
|
|
},
|
|
|
- uploadrequest(option) {
|
|
|
+ uploadrequest (option) {
|
|
|
let _this = this
|
|
|
axios.post(process.env.upfilehost, {})
|
|
|
.then(function (res) {
|
|
|
@@ -1521,7 +1520,7 @@
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
- getGroupName() {
|
|
|
+ getGroupName () {
|
|
|
this.$axios.get('extends/listbyloginwithgroup', {})
|
|
|
.then(res => {
|
|
|
for (var i = 0; i < res.data.length; i++) {
|
|
|
@@ -1533,7 +1532,7 @@
|
|
|
this.getextends()
|
|
|
})
|
|
|
},
|
|
|
- getextends() {
|
|
|
+ getextends () {
|
|
|
this.$axios.get('extends/listbylogin', {})
|
|
|
.then(res => {
|
|
|
this.userextends = res.data
|
|
|
@@ -1545,8 +1544,8 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- //获取编码规则疾病类型
|
|
|
- getdiseaseslist() {
|
|
|
+ // 获取编码规则疾病类型
|
|
|
+ getdiseaseslist () {
|
|
|
// 获取疾病类型
|
|
|
let _this = this
|
|
|
_this.$axios.get('/sampletype/diseaseslist', {})
|
|
|
@@ -1554,7 +1553,7 @@
|
|
|
_this.diseaseinfolist = res.data
|
|
|
})
|
|
|
},
|
|
|
- getuserlist() {
|
|
|
+ getuserlist () {
|
|
|
let _this = this
|
|
|
_this.$axios.get('users/list', {})
|
|
|
.then(res => {
|
|
|
@@ -1575,8 +1574,8 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- //选择编辑人信息
|
|
|
- selectAuthorUser() {
|
|
|
+ // 选择编辑人信息
|
|
|
+ selectAuthorUser () {
|
|
|
if (this.AuthorUser != this.authUser.Profile.Id) {
|
|
|
this.loginDialogVisible = true
|
|
|
}
|
|
|
@@ -1586,8 +1585,8 @@
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- //取消验证
|
|
|
- cancelLogin() {
|
|
|
+ // 取消验证
|
|
|
+ cancelLogin () {
|
|
|
if (this.isLoginSucceed) {
|
|
|
this.isLoginSucceed = false
|
|
|
} else {
|
|
|
@@ -1595,14 +1594,14 @@
|
|
|
}
|
|
|
this.loginDialogVisible = false
|
|
|
},
|
|
|
- //密码验证
|
|
|
- confirmLogin() {
|
|
|
+ // 密码验证
|
|
|
+ confirmLogin () {
|
|
|
let _this = this
|
|
|
let fields = {
|
|
|
username: this.username,
|
|
|
- password: this.password,
|
|
|
+ password: this.password
|
|
|
}
|
|
|
- this.$axios.post("/users/checkUserPwd?RealName=" + this.AuthorUserName, fields)
|
|
|
+ this.$axios.post('/users/checkUserPwd?RealName=' + this.AuthorUserName, fields)
|
|
|
.then(res => {
|
|
|
if (res.data.code == 0) {
|
|
|
_this.loginDialogVisible = false
|
|
|
@@ -1620,7 +1619,7 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- jstimehandle(val) {
|
|
|
+ jstimehandle (val) {
|
|
|
if (val === '') {
|
|
|
return '----'
|
|
|
} else if (val === '0001-01-01T08:00:00+08:00') {
|
|
|
@@ -1631,11 +1630,10 @@
|
|
|
val = val.replace('T', ' ')
|
|
|
return val.substring(0, 10)
|
|
|
}
|
|
|
- },
|
|
|
- },
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
-
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss">
|