|
@@ -508,7 +508,6 @@ export default {
|
|
|
getProjectSourceOptions().then(res =>{
|
|
|
if(res.code == 200){
|
|
|
this.projectSourceOptions=res.data
|
|
|
- console.log("this.projectSourceOptions",this.projectSourceOptions)
|
|
|
}
|
|
|
}),
|
|
|
getRoomInformation().then(res => {
|
|
@@ -527,7 +526,6 @@ export default {
|
|
|
handleTemDownload(){
|
|
|
},
|
|
|
changeBtn(param){
|
|
|
- console.log("param",param)
|
|
|
this.form.processor=''
|
|
|
if(param){
|
|
|
getProcessorOptions(param).then(res =>{
|
|
@@ -583,7 +581,6 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
handleWorkOrder(data){
|
|
|
- console.log("data1",data)
|
|
|
getProcessorOptions(data.hospitalId).then(res =>{
|
|
|
if(res.code == 200){
|
|
|
this.workOrderProcessorOptions=res.data
|
|
@@ -591,7 +588,6 @@ export default {
|
|
|
})
|
|
|
this.dialogWorkOrder=true
|
|
|
this.form=data
|
|
|
- console.log("this.form",this.form)
|
|
|
},
|
|
|
handleSolve(data){
|
|
|
this.dialogSolve=true
|
|
@@ -600,25 +596,19 @@ export default {
|
|
|
handleEdit(data){
|
|
|
this.dialogTitle='编辑'
|
|
|
this.dialogVisible = true
|
|
|
- console.log('data',data)
|
|
|
this.form=data
|
|
|
- console.log('this.form',data)
|
|
|
this.form.problemPicture.map((item) =>{
|
|
|
- console.log("item",item)
|
|
|
item.name=item.id
|
|
|
item.url=item.filepath
|
|
|
})
|
|
|
- console.log('this.form',this.form)
|
|
|
getProjectSourceOptions().then(res =>{
|
|
|
if(res.code==200){
|
|
|
this.projectSourceOptions=res.data
|
|
|
}
|
|
|
})
|
|
|
- console.log("projectSourceOptions",this.projectSourceOptions)
|
|
|
getProcessorOptions(data.hospitalId).then(res =>{
|
|
|
if(res.code ==200){
|
|
|
this.processorOptions=res.data
|
|
|
- console.log("this.processorOptions",this.processorOptions)
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -674,7 +664,6 @@ export default {
|
|
|
this.queryParams.problemStateConvert=''
|
|
|
}
|
|
|
if(this.dateRange.length >0){
|
|
|
- console.log(this.dateRange.length)
|
|
|
this.queryParams.creatStart=this.dateRange[0]
|
|
|
this.queryParams.creatEnd=this.dateRange[1]
|
|
|
}
|
|
@@ -807,7 +796,6 @@ export default {
|
|
|
},
|
|
|
submitForm(){
|
|
|
this.$refs["form"].validate(async valid => {
|
|
|
- console.log("this.form",this.form)
|
|
|
if (valid) {
|
|
|
if (this.form.id == undefined) {
|
|
|
//新增售后问题
|
|
@@ -820,15 +808,9 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
if(this.form){
|
|
|
- console.log("AAAAAAA",this.projectSourceOptions)
|
|
|
this.projectSourceOptions.forEach((item) =>{
|
|
|
if(item.id == this.form.hospitalId){
|
|
|
- console.log("BBBBBB",item.id)
|
|
|
- console.log("CCCCCC",this.form.hospitalId)
|
|
|
- console.log("DDDDDD",item.projectSource)
|
|
|
-
|
|
|
this.form.projectSource=item.projectSource
|
|
|
- console.log("EEEEE",this.form.projectSource)
|
|
|
}
|
|
|
})
|
|
|
this.processorOptions.forEach((item) =>{
|
|
@@ -847,15 +829,9 @@ export default {
|
|
|
} else {
|
|
|
//修改售后问题
|
|
|
if(this.form){
|
|
|
- console.log("AAAAAAA",this.projectSourceOptions)
|
|
|
this.projectSourceOptions.forEach((item) =>{
|
|
|
if(item.id == this.form.hospitalId){
|
|
|
- console.log("BBBBBB",item.id)
|
|
|
- console.log("CCCCCC",this.form.hospitalId)
|
|
|
- console.log("DDDDDD",item.projectSource)
|
|
|
-
|
|
|
this.form.projectSource=item.projectSource
|
|
|
- console.log("EEEEE",this.form.projectSource)
|
|
|
}
|
|
|
})
|
|
|
this.processorOptions.forEach((item) =>{
|
|
@@ -915,7 +891,7 @@ export default {
|
|
|
}
|
|
|
return await axios({
|
|
|
method: "POST",
|
|
|
- url: process.env.VUE_APP_BASE_API + '/mk/as/problem/editSolve',
|
|
|
+ url: process.env.VUE_APP_BASE_API + '/mk/as/problem/editSolve1',
|
|
|
headers: {
|
|
|
'Content-Type': 'multipart/form-data',
|
|
|
'Authorization': 'Bearer ' + getToken()
|