| | |
| | | "quickapp" : {}, |
| | | /* 小程序特有相关 */ |
| | | "mp-weixin" : { |
| | | "appid" : "wx739eb6d9c0fbc711", |
| | | "appid" : "wx8d8a6035fb1fb858", |
| | | "setting" : { |
| | | "urlCheck" : false, |
| | | "minified" : true, |
| | |
| | | url: 'https://web.byisf.com/api/blade-system/tenant/submit', |
| | | method:'POST', |
| | | data:{ |
| | | "id":this.id, |
| | | "tenantName":this.tenantName, |
| | | "linkman":this.linkman, |
| | | "contactNumber":this.contactNumber, |
| | | "address":this.address, |
| | | "type":this.type, |
| | | "domain":this.domain, |
| | | "id":this.id, |
| | | "tenantName":this.tenantName, |
| | | "linkman":this.linkman, |
| | | "contactNumber":this.contactNumber, |
| | | "address":this.address, |
| | | "type":this.type, |
| | | "domain":this.domain |
| | | }, |
| | | success: (res) => { |
| | | if(res.data.code==200){ |
| | |
| | | width: 180rpx; |
| | | height: 180rpx; |
| | | border-radius: 100rpx; |
| | | line-height:200rpx; |
| | | line-height:180rpx; |
| | | color: #FFFFFF; |
| | | letter-spacing: 2rpx; |
| | | } |
| | |
| | | <template> |
| | | <view class="content"> |
| | | <view class="row regis-info"> |
| | | <text class="info-title"><!-- <span style="color: red;">* --></span>客户名称: </text> |
| | | <input class="input" type="text" v-model="tenantName" placeholder="请输入客户名称" placeholder-class="placeholder" /> |
| | | </view> |
| | | <view class="row regis-info-linkman"> |
| | | <text class="info-title"><!-- <span style="color: red;">* --></span>联系人: </text> |
| | | <input class="input" type="text" v-model="linkman" placeholder="请输入联系人名称" placeholder-class="placeholder" /> |
| | | </view> |
| | | <view class="row regis-info"> |
| | | <text class="info-title"><!-- <span style="color: red;">* --></span>联系电话: </text> |
| | | <input class="input" type="text" v-model="contactNumber" placeholder="请输入联系电话" placeholder-class="placeholder" /> |
| | | </view> |
| | | <view class="row regis-info"> |
| | | <text class="info-title"><!-- <span style="color: red;">* --></span>客户地址: </text> |
| | | <input class="input" type="text" v-model="address" placeholder="请输入客户地址" placeholder-class="placeholder" /> |
| | | </view> |
| | | <view class="row regis-info"> |
| | | <text class="info-title"><!-- <span style="color: red;">* --></span>客户类型: </text> |
| | | <picker @change="typeSelect" :range="typeArray" class="type-select"> |
| | | <label class="" v-model="typeArrayType">{{ typeArrayType }}</label> |
| | | </picker> |
| | | <!-- <input class="input" type="text" v-model="type" placeholder="请输入客户类型" placeholder-class="placeholder" /> --> |
| | | </view> |
| | | <view class="row regis-info-desc"> |
| | | <text class="info-title"><!-- <span style="color: red;">* --></span>域名地址: </text> |
| | | <input class="input" type="text" v-model="domain" placeholder="请输入域名地址" placeholder-class="placeholder" /> |
| | | </view> |
| | | |
| | | <button class="btn" @click="confirm">上传</button> |
| | | <view class="row regis-info"> |
| | | <text class="info-title"> |
| | | <!-- <span style="color: red;">* --></span>客户名称: |
| | | </text> |
| | | <input class="input" type="text" v-model="tenantName" placeholder="请输入客户名称" |
| | | placeholder-class="placeholder" /> |
| | | </view> |
| | | <view class="row regis-info-linkman"> |
| | | <text class="info-title"> |
| | | <!-- <span style="color: red;">* --></span>联系人: |
| | | </text> |
| | | <input class="input" type="text" v-model="linkman" placeholder="请输入联系人名称" placeholder-class="placeholder" /> |
| | | </view> |
| | | <view class="row regis-info"> |
| | | <text class="info-title"> |
| | | <!-- <span style="color: red;">* --></span>联系电话: |
| | | </text> |
| | | <input class="input" type="text" v-model="contactNumber" placeholder="请输入联系电话" |
| | | placeholder-class="placeholder" /> |
| | | </view> |
| | | <view class="row regis-info"> |
| | | <text class="info-title"> |
| | | <!-- <span style="color: red;">* --></span>客户地址: |
| | | </text> |
| | | <input class="input" type="text" v-model="address" placeholder="请输入客户地址" placeholder-class="placeholder" /> |
| | | </view> |
| | | <view class="row regis-info"> |
| | | <text class="info-title"> |
| | | <!-- <span style="color: red;">* --></span>客户类型: |
| | | </text> |
| | | <picker @change="typeSelect" :range="typeArray" class="type-select"> |
| | | <label class="" v-model="typeArrayType">{{ typeArrayType }}</label> |
| | | </picker> |
| | | <!-- <input class="input" type="text" v-model="type" placeholder="请输入客户类型" placeholder-class="placeholder" /> --> |
| | | </view> |
| | | <view class="row regis-info-desc"> |
| | | <text class="info-title"> |
| | | <!-- <span style="color: red;">* --></span>域名地址: |
| | | </text> |
| | | <input class="input" type="text" v-model="domain" placeholder="请输入域名地址" placeholder-class="placeholder" /> |
| | | </view> |
| | | |
| | | <button class="btn" @click="confirm">上传</button> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | export default{ |
| | | data () { |
| | | export default { |
| | | data() { |
| | | return { |
| | | tenantName:"", |
| | | linkman:"", |
| | | contactNumber:"", |
| | | address:"", |
| | | type:null, |
| | | domain:"", |
| | | display:'none', |
| | | display1:'none', |
| | | display2:'none', |
| | | display3:'none', |
| | | typeArray:["学校","医院","小区"], |
| | | typeArrayIndex:0, |
| | | typeArrayType:'---请选择---' |
| | | tenantName: "", |
| | | linkman: "", |
| | | contactNumber: "", |
| | | address: "", |
| | | type: null, |
| | | domain: "", |
| | | display: 'none', |
| | | display1: 'none', |
| | | display2: 'none', |
| | | display3: 'none', |
| | | typeArray: ["学校", "医院", "小区"], |
| | | typeArrayIndex: 0, |
| | | typeArrayType: '---请选择---', |
| | | pathUrl:"https://web.byisf.com/api/blade-system" |
| | | // pathUrl: "http://localhost:8106" |
| | | } |
| | | }, |
| | | onLoad() { |
| | | |
| | | |
| | | }, |
| | | methods: { |
| | | //客户类型下拉改变事件 |
| | | typeSelect(e){ |
| | | typeSelect(e) { |
| | | var that = this; |
| | | this.typeArrayIndex = e.target.value; |
| | | this.typeArrayType=this.typeArray[this.typeArrayIndex]; |
| | | if(that.typeArrayType == '学校'){ |
| | | this.typeArrayType = this.typeArray[this.typeArrayIndex]; |
| | | if (that.typeArrayType == '学校') { |
| | | that.type = 1; |
| | | } |
| | | if(that.typeArrayType =='医院'){ |
| | | if (that.typeArrayType == '医院') { |
| | | that.type = 2; |
| | | } |
| | | if(that.typeArrayType =='小区'){ |
| | | if (that.typeArrayType == '小区') { |
| | | that.type = 3; |
| | | } |
| | | }, |
| | | |
| | | |
| | | //提交信息 |
| | | confirm(){ |
| | | confirm() { |
| | | var that = this; |
| | | uni.request({ |
| | | // url: 'http://localhost:89/equipment/equipment/AppSubmit?'+params, //仅为示例,并非真实接口地址。 |
| | | url: 'https://web.byisf.com/api/blade-system/tenant/submit', //仅为示例,并非真实接口地址。 |
| | | method:'POST', |
| | | data:{ |
| | | "tenantName":this.tenantName, |
| | | "linkman":this.linkman, |
| | | "contactNumber":this.contactNumber, |
| | | "address":this.address, |
| | | "type":this.type, |
| | | "domain":this.domain, |
| | | url: that.pathUrl + "/tenant/submit", |
| | | method: 'POST', |
| | | data: { |
| | | "id":this.id, |
| | | "tenantName":this.tenantName, |
| | | "linkman":this.linkman, |
| | | "contactNumber":this.contactNumber, |
| | | "address":this.address, |
| | | "type":this.type, |
| | | "domain":this.domain |
| | | }, |
| | | success: (res) => { |
| | | if(res.data.code==200){ |
| | | if (res.data.code == 200) { |
| | | uni.showToast({ |
| | | title: '提交成功!', |
| | | duration: 2000 |
| | | title: '提交成功!', |
| | | duration: 2000 |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | | } |
| | | |
| | | } |
| | | } |
| | | </script> |
| | |
| | | left: 20rpx; |
| | | border-bottom: 0.05px solid #B4BCCC; |
| | | } |
| | | |
| | | |
| | | .regis-info-desc { |
| | | width: 100%; |
| | | height: 100rpx; |
| | | position: relative; |
| | | left: 20rpx; |
| | | } |
| | | |
| | | .regis-info-desc input{ |
| | | |
| | | .regis-info-desc input { |
| | | position: relative; |
| | | left: 40rpx; |
| | | top: 27rpx; |
| | | letter-spacing: 1rpx; |
| | | } |
| | | |
| | | .regis-info-linkman{ |
| | | |
| | | .regis-info-linkman { |
| | | width: 100%; |
| | | height: 100rpx; |
| | | position: relative; |
| | | left: 20rpx; |
| | | border-bottom: 0.05px solid #B4BCCC; |
| | | } |
| | | |
| | | .regis-info-linkman input{ |
| | | |
| | | .regis-info-linkman input { |
| | | position: relative; |
| | | left: 70rpx; |
| | | top: 27rpx; |
| | | letter-spacing: 1rpx; |
| | | } |
| | | |
| | | .info-title{ |
| | | |
| | | .info-title { |
| | | letter-spacing: 1rpx; |
| | | float: left; |
| | | line-height: 100rpx; |
| | | font-weight: 530; |
| | | } |
| | | |
| | | .regis-info input{ |
| | | |
| | | .regis-info input { |
| | | position: relative; |
| | | left: 40rpx; |
| | | top: 27rpx; |
| | | letter-spacing: 1rpx; |
| | | } |
| | | |
| | | .btn{ |
| | | |
| | | .btn { |
| | | position: relative; |
| | | top: 40rpx; |
| | | background-color: #007AFF; |
| | | width: 180rpx; |
| | | height: 180rpx; |
| | | border-radius: 100rpx; |
| | | line-height:200rpx; |
| | | line-height: 180rpx; |
| | | color: #FFFFFF; |
| | | letter-spacing: 2rpx; |
| | | } |
| | | |
| | | .type-select{ |
| | | |
| | | .type-select { |
| | | position: relative; |
| | | left: 45rpx; |
| | | top: 28rpx; |
| | |
| | | <view class="content"> |
| | | <view class="row regis-info"> |
| | | <text class="info-title"><!-- <span style="color: red;">* --></span>上报时间: </text> |
| | | <input class="input" type="text" v-on:input ="ondeviceName" v-model="deviceName" placeholder="请选择上报时间" placeholder-class="placeholder" /> |
| | | <input class="input" type="text" v-model="riskTime" placeholder="请选择上报时间" placeholder-class="placeholder" /> |
| | | </view> |
| | | <view class="row regis-info"> |
| | | <text class="info-title"><!-- <span style="color: red;">* --></span>客户名称: </text> |
| | | <input class="input" type="text" v-on:input ="ondeviceName" v-model="deviceName" placeholder="请选择客户" placeholder-class="placeholder" /> |
| | | <input class="input" type="text" v-model="tenantName" placeholder="请选择客户" placeholder-class="placeholder" /> |
| | | </view> |
| | | <view class="row regis-info"> |
| | | <text class="info-title"><!-- <span style="color: red;">* --></span>风险等级: </text> |
| | | <input class="input" type="text" v-on:input ="ondeviceName" v-model="deviceName" placeholder="请选择风险等级" placeholder-class="placeholder" /> |
| | | <picker @change="riskClassSelect" :range="riskClassArray" class="riskClass-select"> |
| | | <label class="" v-model="riskClassArrayType">{{ riskClassArrayType }}</label> |
| | | </picker> |
| | | <!-- <input class="input" type="text" v-model="riskClass" placeholder="请选择风险等级" placeholder-class="placeholder" /> --> |
| | | </view> |
| | | <view class="row regis-info"> |
| | | <text class="info-title"><!-- <span style="color: red;">* --></span>风险描述: </text> |
| | | <input class="input" type="text" v-on:input ="ondeviceName" v-model="deviceName" placeholder="请输入风险描述" placeholder-class="placeholder" /> |
| | | <input class="input" type="text" v-model="riskDescribe" placeholder="请输入风险描述" placeholder-class="placeholder" /> |
| | | </view> |
| | | <view class="row regis-info-addr"> |
| | | <text class="info-title"><!-- <span style="color: red;">* --></span>地址: </text> |
| | | <input class="input" type="text" v-on:input ="ondeviceName" v-model="deviceName" placeholder="请输入地址" placeholder-class="placeholder" /> |
| | | <input class="input" type="text" v-model="address" placeholder="请输入地址" placeholder-class="placeholder" /> |
| | | </view> |
| | | <view class="row regis-info-desc"> |
| | | <text class="info-title"><!-- <span style="color: red;">* --></span>备注: </text> |
| | | <input class="input" type="text" v-on:input ="ondeviceName" v-model="deviceName" placeholder="请输入备注" placeholder-class="placeholder" /> |
| | | <input class="input" type="text" v-model="descInfo" placeholder="请输入备注" placeholder-class="placeholder" /> |
| | | </view> |
| | | <button class="btn" @click="confirm">上传</button> |
| | | </view> |
| | |
| | | export default{ |
| | | data () { |
| | | return { |
| | | deviceNumber:"", |
| | | serialNumber:"", |
| | | contacts:"", |
| | | calls:"", |
| | | paddress:"", |
| | | deploymenttime:"", |
| | | deviceName:"", |
| | | riskTime:"", |
| | | tenantName:"", |
| | | riskClass:"", |
| | | riskDescribe:"", |
| | | address:"", |
| | | descInfo:"", |
| | | display:'none', |
| | | display1:'none', |
| | | display2:'none', |
| | | display3:'none' |
| | | display3:'none', |
| | | pathUrl:"https://web.byisf.com/api/blade-jfpts", |
| | | // pathUrl: "http://localhost:89", |
| | | riskClassArray:["一级","二级","三级","四级"], |
| | | riskClassArrayIndex:0, |
| | | riskClassArrayType:'---请选择---' |
| | | } |
| | | }, |
| | | onLoad() { |
| | |
| | | }, |
| | | methods: { |
| | | |
| | | //风险等级下拉改变事件 |
| | | riskClassSelect(e){ |
| | | var that = this; |
| | | this.riskClassArrayIndex = e.target.value; |
| | | this.riskClassArrayType=this.riskClassArray[this.riskClassArrayIndex]; |
| | | // if(that.typeArrayType == '学校'){ |
| | | // that.type = 1; |
| | | // } |
| | | // if(that.typeArrayType =='医院'){ |
| | | // that.type = 2; |
| | | // } |
| | | // if(that.typeArrayType =='小区'){ |
| | | // that.type = 3; |
| | | // } |
| | | }, |
| | | |
| | | |
| | | //提交修改 |
| | | confirm(){ |
| | | uni.request({ |
| | | url: this.pathUrl + '/riskReporting/save', |
| | | method:'POST', |
| | | data:{ |
| | | "riskTime":this.riskTime, |
| | | "riskNumber":this.$store.state.puserID, |
| | | "tenantName":this.tenantName, |
| | | "riskClass":this.riskClass, |
| | | "riskDescribe":this.riskDescribe, |
| | | "address":this.address, |
| | | "descInfo":this.descInfo |
| | | }, |
| | | success: (res) => { |
| | | if(res.data.code==200){ |
| | | uni.showToast({ |
| | | title: '提交成功!', |
| | | duration: 2000 |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | |
| | | color: #FFFFFF; |
| | | letter-spacing: 2rpx; |
| | | } |
| | | |
| | | .riskClass-select{ |
| | | position: relative; |
| | | left: 45rpx; |
| | | top: 28rpx; |
| | | } |
| | | </style> |
| | |
| | | <view class="content"> |
| | | <view class="row regis-info"> |
| | | <text class="info-title">拜访日期: </text> |
| | | <view class="regis-info-date"> |
| | | <uni-datetime-picker></uni-datetime-picker> |
| | | </view> |
| | | <!-- <input class="input" type="text" v-on:input ="ondeviceName" v-model="deviceName" placeholder="请选择拜访日期" placeholder-class="placeholder" /> --> |
| | | <!-- <view class="regis-info-date"> |
| | | <uni-datetime-picker v-model="vistime"></uni-datetime-picker> |
| | | </view> --> |
| | | <input class="input" type="text" v-model="vistime" placeholder="请选择拜访日期" placeholder-class="placeholder" /> |
| | | </view> |
| | | <view class="row regis-info"> |
| | | <text class="info-title"><!-- <span style="color: red;">* --></span>客户名称: </text> |
| | | <input class="input" type="text" v-on:input ="ondeviceName" v-model="deviceName" placeholder="请输客户主名称" placeholder-class="placeholder" /> |
| | | <input class="input" type="text" v-model="yname" placeholder="请输客户名称" placeholder-class="placeholder" /> |
| | | </view> |
| | | <view class="row regis-info"> |
| | | <text class="info-title"><!-- <span style="color: red;">* --></span>客户类型: </text> |
| | | <input class="input" type="text" v-model="type" placeholder="请输客户类型" placeholder-class="placeholder" /> |
| | | </view> |
| | | <view class="row regis-info"> |
| | | <text class="info-title"><!-- <span style="color: red;">* --></span>联系电话: </text> |
| | | <input class="input" type="text" v-model="phone" placeholder="请输联系电话" placeholder-class="placeholder" /> |
| | | </view> |
| | | <view class="row regis-info"> |
| | | <text class="info-title"><!-- <span style="color: red;">* --></span>客户地址: </text> |
| | | <input class="input" type="text" v-on:input ="ondeviceName" v-model="deviceName" placeholder="请输入客户地址" placeholder-class="placeholder" /> |
| | | <input class="input" type="text" v-model="address" placeholder="请输入客户地址" placeholder-class="placeholder" /> |
| | | </view> |
| | | <view class="row regis-info"> |
| | | <text class="info-title"><!-- <span style="color: red;">* --></span>营业信息: </text> |
| | | <input class="input" type="text" v-on:input ="ondeviceName" v-model="deviceName" placeholder="请输入营业信息" placeholder-class="placeholder" /> |
| | | <input class="input" type="text" v-model="information" placeholder="请输入营业信息" placeholder-class="placeholder" /> |
| | | </view> |
| | | <view class="row regis-info-desc"> |
| | | <text class="info-title"><!-- <span style="color: red;">* --></span>备注: </text> |
| | | <input class="input" type="text" v-on:input ="ondeviceName" v-model="deviceName" placeholder="请输入备注" placeholder-class="placeholder" /> |
| | | <input class="input" type="text" v-model="remark" placeholder="请输入备注" placeholder-class="placeholder" /> |
| | | </view> |
| | | <button class="btn" @click="confirm">上传</button> |
| | | </view> |
| | |
| | | export default{ |
| | | data () { |
| | | return { |
| | | deviceNumber:"", |
| | | serialNumber:"", |
| | | contacts:"", |
| | | calls:"", |
| | | paddress:"", |
| | | deploymenttime:"", |
| | | deviceName:"", |
| | | vistime:"", |
| | | yname:"", |
| | | type:"", |
| | | phone:"", |
| | | address:"", |
| | | information:"", |
| | | remark:"", |
| | | display:'none', |
| | | display1:'none', |
| | | display2:'none', |
| | | display3:'none' |
| | | display3:'none', |
| | | pathUrl:"https://web.byisf.com/api/blade-jfpts", |
| | | // pathUrl: "http://localhost:89" |
| | | } |
| | | }, |
| | | onLoad() { |
| | |
| | | //查询客户信息 |
| | | getTenantInfo(){ |
| | | |
| | | }, |
| | | //提交修改 |
| | | confirm(){ |
| | | uni.request({ |
| | | url: this.pathUrl + '/visitrecord/visitrecord/save', |
| | | method:'POST', |
| | | data:{ |
| | | // "visitrecord": |
| | | // { |
| | | "vistime":this.vistime, |
| | | "snumber":this.$store.state.puserID, |
| | | "yname":this.yname, |
| | | "type":this.type, |
| | | "phone":this.phone, |
| | | "address":this.address, |
| | | "information":this.information, |
| | | "remark":this.remark, |
| | | // } |
| | | }, |
| | | success: (res) => { |
| | | if(res.data.code==200){ |
| | | uni.showToast({ |
| | | title: '提交成功!', |
| | | duration: 2000 |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | } |
| | |
| | | width: 180rpx; |
| | | height: 180rpx; |
| | | border-radius: 100rpx; |
| | | line-height:200rpx; |
| | | line-height:180rpx; |
| | | color: #FFFFFF; |
| | | letter-spacing: 2rpx; |
| | | } |