Browse Source

修改dispatch ui的请求后端方式 工单增加企业的下拉框

master
djz8236 2 years ago
parent
commit
60899fdf2d
  1. 4
      yxt_supervise/supervise-dispatchcenter/supervise-dispatchcenter-ui/.env.development
  2. 2
      yxt_supervise/supervise-dispatchcenter/supervise-dispatchcenter-ui/.env.production
  3. 6
      yxt_supervise/supervise-dispatchcenter/supervise-dispatchcenter-ui/src/api/yxtdispatchcenter/dispatchpatrolplan.js
  4. 45
      yxt_supervise/supervise-dispatchcenter/supervise-dispatchcenter-ui/src/views/yxtdispatchcenter/dispatchorderinfo/dispatchorderinfoInfo.vue
  5. 65
      yxt_supervise/supervise-dispatchcenter/supervise-dispatchcenter-ui/src/views/yxtdispatchcenter/dispatchorderinfo/dispatchpatrolplanAdds.vue
  6. 18
      yxt_supervise/supervise-dispatchcenter/supervise-dispatchcenter-ui/src/views/yxtdispatchcenter/dispatchorderinfo/dispatchpatrolplanInfos.vue

4
yxt_supervise/supervise-dispatchcenter/supervise-dispatchcenter-ui/.env.development

@ -5,7 +5,7 @@ ENV = 'development'
VUE_APP_BASE_API = '/api'
## 配置测试和本地开发时的 接口地址
##VUE_APP_URL = "http://jianguan.yyundong.com"
VUE_APP_URL = "http://127.0.0.1:8112"
VUE_APP_URL = "http://jianguan.yyundong.com"
##VUE_APP_URL = "http://127.0.0.1:8112"
#VUE_APP_URL = "http://192.168.1.177:7109"
#VUE_APP_URL = "http://8.130.39.13:8112"

2
yxt_supervise/supervise-dispatchcenter/supervise-dispatchcenter-ui/.env.production

@ -5,4 +5,4 @@ ENV = 'production'
VUE_APP_BASE_API = '/api'
## 配置 正式接口地址
VUE_APP_URL = "http://120.46.131.15:8111"
VUE_APP_URL = "http://jianguan.yyundong.com"

6
yxt_supervise/supervise-dispatchcenter/supervise-dispatchcenter-ui/src/api/yxtdispatchcenter/dispatchpatrolplan.js

@ -10,6 +10,12 @@ export default {
data: params
})
},
entlistPage: function(){
return request({
url: '/crm/v1/enterpriseinformation/list',
method: 'post'
})
},
// 保存新增记录
saveOrUpdate: function(params) {
return request({

45
yxt_supervise/supervise-dispatchcenter/supervise-dispatchcenter-ui/src/views/yxtdispatchcenter/dispatchorderinfo/dispatchorderinfoInfo.vue

@ -19,21 +19,23 @@
<el-col :span="2" class="tleftb">
<span><span class="icon">*</span>客户名称</span>
</el-col>
<el-col :span="3" class="trightb">
<el-col :span="6" class="trightb">
<el-form-item prop="custname">{{formobj.custname}}</el-form-item>
</el-col>
<el-col :span="2" class="tleftb">
<span><span class="icon">*</span>工单编号</span>
<span><span class="icon">*</span>工单名称</span>
</el-col>
<el-col :span="3" class="trightb">
<el-form-item prop="orderno">{{formobj.orderno}}</el-form-item>
<el-col :span="6" class="trightb">
<el-form-item prop="ordername">{{formobj.ordername}}</el-form-item>
</el-col>
<el-col :span="2" class="tleftb">
<span><span class="icon">*</span>工单名称</span>
<span><span class="icon">*</span>工单编号</span>
</el-col>
<el-col :span="2" class="trightb">
<el-form-item prop="ordername">{{formobj.ordername}}</el-form-item>
<el-col :span="6" class="trightb">
<el-form-item prop="orderno">{{formobj.orderno}}</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="2" class="tleftb">
<span><span class="icon">*</span>工单内容</span>
</el-col>
@ -58,20 +60,6 @@
/>
</el-select>
</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="receiveperson">{{formobj.receiveperson}}</el-form-item>
</el-col>
<el-col :span="3" class="tleftb">
<span><span class="icon">*</span>现场联系人电话</span>
</el-col>
<el-col :span="3" class="trightb">
<el-form-item prop="receivetel">{{formobj.receivetel}}</el-form-item>
</el-col>
<el-col :span="2" class="tleftb">
<span><span class="icon">*</span>巡视类型</span>
</el-col>
@ -109,6 +97,21 @@
</el-select>
</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="receiveperson">{{formobj.receiveperson}}</el-form-item>
</el-col>
<el-col :span="3" class="tleftb">
<span><span class="icon">*</span>现场联系人电话</span>
</el-col>
<el-col :span="3" class="trightb">
<el-form-item prop="receivetel">{{formobj.receivetel}}</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
<div class="listtop">

65
yxt_supervise/supervise-dispatchcenter/supervise-dispatchcenter-ui/src/views/yxtdispatchcenter/dispatchorderinfo/dispatchpatrolplanAdds.vue

@ -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')

18
yxt_supervise/supervise-dispatchcenter/supervise-dispatchcenter-ui/src/views/yxtdispatchcenter/dispatchorderinfo/dispatchpatrolplanInfos.vue

@ -28,6 +28,12 @@
<el-col :span="3" class="trightb">
<el-form-item prop="custname">{{formobj.custname}} </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">{{formobj.planno}}</el-form-item>
</el-col>
<el-col :span="2" class="tleftb">
<span><span class="icon">*</span>巡视类型</span>
</el-col>
@ -66,14 +72,15 @@
/>
</el-select>
</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">{{formobj.contactperson}}</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="3" class="tleftb">
<span><span class="icon">*</span>用户联系人电话</span>
</el-col>
@ -111,12 +118,7 @@
<el-col :span="2" class="trightb">
<el-form-item prop="cyclevalue">{{formobj.cyclevalue}}</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">{{formobj.planno}}</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="3" class="tleftb">

Loading…
Cancel
Save