|
@@ -74,7 +74,7 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="处理负责人">
|
|
|
- <el-select v-model="queryParams.processor" filterable placeholder="请选择" clearable>
|
|
|
+ <el-select v-model="queryParams.processor" filterable placeholder="请选择" clearable @visible-change="changeBtn2">
|
|
|
<el-option
|
|
|
v-for="item in processorOptions"
|
|
|
:key="item.userName"
|
|
@@ -340,7 +340,7 @@
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="处理负责人" prop="processor">
|
|
|
- <el-select v-model="form.processor" placeholder="请选择" clearable>
|
|
|
+ <el-select v-model="form.processor" placeholder="请选择" clearable @change="changeBtn1">
|
|
|
<el-option
|
|
|
v-for="item in processorOptions"
|
|
|
:key="item.userName"
|
|
@@ -490,13 +490,13 @@ import {
|
|
|
remove,
|
|
|
updateStage,
|
|
|
pushWorkOrder,
|
|
|
- downloadExcel,
|
|
|
getRoomInformation,
|
|
|
getQuestionerList,
|
|
|
updateStageProblem,
|
|
|
getProcessorOptions,
|
|
|
addProblem,
|
|
|
getProjectSourceOptions,
|
|
|
+ getAllProcessorDataList,
|
|
|
fileImport
|
|
|
} from "@/api/business/as/problemInfo"
|
|
|
import {getToken} from "@/utils/auth";
|
|
@@ -508,25 +508,34 @@ export default {
|
|
|
created() {
|
|
|
this.getTableHeight()
|
|
|
this.handleClick()
|
|
|
- getProjectSourceOptions().then(res =>{
|
|
|
- if(res.code == 200){
|
|
|
- this.projectSourceOptions=res.data
|
|
|
- }
|
|
|
- }),
|
|
|
- getRoomInformation().then(res => {
|
|
|
- if(res.code == 200){
|
|
|
- if(res.data!=null&&res.data.length()>0){
|
|
|
- this.roomInformationList=res.data
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
- getQuestionerList().then(res => {
|
|
|
- if(res.code == 200){
|
|
|
- this.questionerList=res.data
|
|
|
- }
|
|
|
- })
|
|
|
+ this.getProjectSourceDataList()
|
|
|
+ this.getRoomInformationDataList()
|
|
|
+ this.getQuestionerDataList()
|
|
|
},
|
|
|
methods: {
|
|
|
+ changeBtn2(param){
|
|
|
+ console.log(param)
|
|
|
+ if(param==true){
|
|
|
+ console.log(this.processorOptions)
|
|
|
+ if(this.processorOptions.length==0){
|
|
|
+ getAllProcessorDataList().then(res =>{
|
|
|
+ if(res.code == 200){
|
|
|
+ this.processorOptions=res.data
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }else {
|
|
|
+ this.processorOptions=[]
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
+ changeBtn1(param){
|
|
|
+ this.processorOptions.forEach((item) =>{
|
|
|
+ if(param==item.userName){
|
|
|
+ this.form.processorWay=item.phoneNumber
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
//计算table高度(动态设置table高度)
|
|
|
getTableHeight() {
|
|
|
let tableH = 275; //距离页面下方的高度
|
|
@@ -683,9 +692,14 @@ export default {
|
|
|
this.queryParams.problemStateSolve=''
|
|
|
this.queryParams.problemStateConvert=''
|
|
|
}
|
|
|
- if(this.dateRange.length >0){
|
|
|
- this.queryParams.creatStart=this.dateRange[0]
|
|
|
- this.queryParams.creatEnd=this.dateRange[1]
|
|
|
+ if(this.dateRange){
|
|
|
+ if(this.dateRange.length >0){
|
|
|
+ this.queryParams.creatStart=this.dateRange[0]
|
|
|
+ this.queryParams.creatEnd=this.dateRange[1]
|
|
|
+ }
|
|
|
+ }else {
|
|
|
+ this.queryParams.creatStart=''
|
|
|
+ this.queryParams.creatEnd=''
|
|
|
}
|
|
|
if(this.activeName){
|
|
|
if(this.activeName=='1'){
|
|
@@ -796,6 +810,7 @@ export default {
|
|
|
this.dialogVisible = false
|
|
|
this.dialogSolve = false
|
|
|
this.dialogWorkOrder = false
|
|
|
+ this.pictureList=[]
|
|
|
},
|
|
|
submitFormWorkOrder(){
|
|
|
pushWorkOrder(this.form).then(res =>{
|
|
@@ -814,6 +829,29 @@ export default {
|
|
|
this.dialogWorkOrder=false
|
|
|
|
|
|
},
|
|
|
+ getProjectSourceDataList(){
|
|
|
+ getProjectSourceOptions().then(res =>{
|
|
|
+ if(res.code == 200){
|
|
|
+ this.projectSourceOptions=res.data
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ getRoomInformationDataList(){
|
|
|
+ getRoomInformation().then(res => {
|
|
|
+ if(res.code == 200){
|
|
|
+ if(res.data!=null){
|
|
|
+ this.roomInformationList=res.data
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ getQuestionerDataList(){
|
|
|
+ getQuestionerList().then(res => {
|
|
|
+ if(res.code == 200){
|
|
|
+ this.questionerList=res.data
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
submitForm(){
|
|
|
this.$refs["form"].validate(async valid => {
|
|
|
if (valid) {
|
|
@@ -843,7 +881,11 @@ export default {
|
|
|
if(res.code == 200){
|
|
|
this.$modal.msgSuccess("新增成功");
|
|
|
this.dialogVisible = false
|
|
|
+ this.cancel()
|
|
|
this.handleClick()
|
|
|
+ this.getProjectSourceDataList()
|
|
|
+ this.getRoomInformationDataList()
|
|
|
+ this.getQuestionerDataList()
|
|
|
}
|
|
|
})
|
|
|
} else {
|
|
@@ -883,6 +925,9 @@ export default {
|
|
|
this.dialogVisible = false
|
|
|
this.cancel()
|
|
|
this.handleClick()
|
|
|
+ this.getProjectSourceDataList()
|
|
|
+ this.getRoomInformationDataList()
|
|
|
+ this.getQuestionerDataList()
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -990,6 +1035,12 @@ export default {
|
|
|
],
|
|
|
questionerWay: [
|
|
|
{ required: true, message: '请输入提问人联系方式', trigger: 'blur' },
|
|
|
+ {
|
|
|
+ min: 11, max: 11,
|
|
|
+ pattern: /^1[3-9]\d{9}$/,
|
|
|
+ message: "手机号格式错误",
|
|
|
+ trigger: "blur",
|
|
|
+ },
|
|
|
],
|
|
|
problemType: [
|
|
|
{ required: true, message: '请选择问题类型', trigger: 'change' }
|
|
@@ -1002,6 +1053,12 @@ export default {
|
|
|
],
|
|
|
processorWay: [
|
|
|
{ required: true, message: '请输入负责处理人联系方式', trigger: 'blur' },
|
|
|
+ {
|
|
|
+ min: 11, max: 11,
|
|
|
+ pattern: /^1[3-9]\d{9}$/,
|
|
|
+ message: "手机号格式错误",
|
|
|
+ trigger: "blur",
|
|
|
+ },
|
|
|
]
|
|
|
},
|
|
|
rules1: {
|