|
|
@ -32,8 +32,29 @@ |
|
|
|
<span><span class="icon">*</span>客户名称:</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="3" class="trightb"> |
|
|
|
<el-form-item prop="custname"><el-input size="small" v-model="formobj.custname" placeholder="客户名称" class="addinputw" clearable /></el-form-item> |
|
|
|
<el-form-item prop="custname"> |
|
|
|
<el-select |
|
|
|
v-model="formobj.custid" |
|
|
|
class="addinputw" |
|
|
|
placeholder="客户名称" |
|
|
|
size="small" |
|
|
|
@change="custnamechangeValue($event)" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="(item, i) in custList" |
|
|
|
:key="i" |
|
|
|
:label="item.enterpriseName" |
|
|
|
:value="item.sid" |
|
|
|
/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="2" class="tleftb"> |
|
|
|
<span><span class="icon">*</span>计划编号:</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="3" class="trightb"> |
|
|
|
<el-form-item prop="planno"><el-input size="small" v-model="formobj.planno" placeholder="计划编号" class="addinputw" clearable /></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="2" class="tleftb"> |
|
|
|
<span><span class="icon">*</span>巡视类型:</span> |
|
|
|
</el-col> |
|
|
@ -70,14 +91,16 @@ |
|
|
|
/> |
|
|
|
</el-select> |
|
|
|
</el-col> |
|
|
|
<el-col :span="2" class="tleftb"> |
|
|
|
<span><span class="icon">*</span>用户联系人:</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="3" class="trightb"> |
|
|
|
<el-form-item prop="contactperson"><el-input size="small" v-model="formobj.contactperson" placeholder="联系人" class="addinputw" clearable /></el-form-item> |
|
|
|
</el-col> |
|
|
|
|
|
|
|
|
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="2" class="tleftb"> |
|
|
|
<span><span class="icon">*</span>用户联系人:</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="3" class="trightb"> |
|
|
|
<el-form-item prop="contactperson"><el-input size="small" v-model="formobj.contactperson" placeholder="联系人" class="addinputw" clearable /></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="3" class="tleftb"> |
|
|
|
<span><span class="icon">*</span>用户联系人电话:</span> |
|
|
|
</el-col> |
|
|
@ -113,12 +136,7 @@ |
|
|
|
<el-col :span="2" class="trightb"> |
|
|
|
<el-form-item prop="cyclevalue"><el-input size="small" v-model="formobj.cyclevalue" placeholder="周期值" class="addinputw" clearable /></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="2" class="tleftb"> |
|
|
|
<span><span class="icon">*</span>计划编号:</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="3" class="trightb"> |
|
|
|
<el-form-item prop="planno"><el-input size="small" v-model="formobj.planno" placeholder="计划编号" class="addinputw" clearable /></el-form-item> |
|
|
|
</el-col> |
|
|
|
|
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="3" class="tleftb"> |
|
|
@ -223,6 +241,7 @@ export default { |
|
|
|
dataList:[], |
|
|
|
TabList:[], |
|
|
|
list:[], |
|
|
|
custList:[], |
|
|
|
arr:[{value:'1',type:'计划巡视'},{value:'2',type:'专项巡视'},{value:'3',type:'告警巡视'}], |
|
|
|
arrList:[{value:'1',type:'一般'},{value:'2',type:'重要'},{value:'3',type:'紧急'},{value:'4',type:'督办'}], |
|
|
|
rules: { |
|
|
@ -264,17 +283,29 @@ export default { |
|
|
|
}, |
|
|
|
mounted(){ |
|
|
|
req2.listPage(this.queryParams).then(resp => { |
|
|
|
if (resp.success) { |
|
|
|
const data = resp.data |
|
|
|
this.dataList = data.records |
|
|
|
} |
|
|
|
if (resp.success) { |
|
|
|
const data = resp.data |
|
|
|
this.dataList = data.records |
|
|
|
} |
|
|
|
}) |
|
|
|
req.entlistPage().then(resp => { |
|
|
|
if (resp.success) { |
|
|
|
const data = resp.data |
|
|
|
this.custList = data |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
created() {}, |
|
|
|
methods: { |
|
|
|
changeValue(value){ |
|
|
|
this.queryParamsA.params.templateid= value; |
|
|
|
this.ShowList(); |
|
|
|
}, |
|
|
|
custnamechangeValue(value){ |
|
|
|
let enterpriseName = this.custList.find((item) => { |
|
|
|
return item.sid == value; |
|
|
|
}).enterpriseName; |
|
|
|
this.formobj.custname=enterpriseName; |
|
|
|
}, |
|
|
|
handleReturn(isreload) { |
|
|
|
if (isreload === 'true') this.$emit('reloadlist') |
|
|
|