Commit f8ed5746 authored by 小费同学阿's avatar 小费同学阿 💬

Merge remote-tracking branch 'origin/master'

parents c59e738f 46882e62
...@@ -609,7 +609,7 @@ import { listCheckManage } from '@/api/business/manage' ...@@ -609,7 +609,7 @@ import { listCheckManage } from '@/api/business/manage'
import { parseTime } from '@/utils/ruoyi' import { parseTime } from '@/utils/ruoyi'
export default { export default {
name: 'EquipmentDetail', name: 'EquipmentDetail',
dicts: ['device_status', 'device_type', 'exam_type', 'check_type','service_area'], dicts: ['device_status', 'device_type', 'exam_type', 'check_type', 'service_area'],
props: { props: {
id: { id: {
type: Number, type: Number,
...@@ -752,7 +752,7 @@ export default { ...@@ -752,7 +752,7 @@ export default {
// 预约方式 // 预约方式
options: [{ options: [{
value: '1', value: '1',
label: '按时间选择' label: '按时段预约'
} }
// { // {
// value: '2', // value: '2',
...@@ -916,12 +916,13 @@ export default { ...@@ -916,12 +916,13 @@ export default {
// 提交 // 提交
submitForm() { submitForm() {
console.log('selectedOptions', this.form.addressCode) console.log('selectedOptions', this.form.addressCode)
if (this.selectedOptions != null) { if (this.form.selectedOptions != null && this.form.selectedOptions !== '') {
this.form.addressCode = this.form.selectedOptions.join(',') this.form.addressCode = this.form.selectedOptions.join(',')
console.log('xxaa', this.selectedOptions) console.log('xxaa', this.selectedOptions)
} }
// if (this.addtions.names != null) { if (this.addtions.names != null) {
// this.form.addressText = this.addtions.names this.form.addressText = this.addtions.names
}
// this.form.city = this.city // this.form.city = this.city
// console.log('city', this.form.city) // console.log('city', this.form.city)
// } // }
...@@ -933,7 +934,8 @@ export default { ...@@ -933,7 +934,8 @@ export default {
this.form.checkType = this.form.checkType.toString() this.form.checkType = this.form.checkType.toString()
console.log('checkType', this.form.checkType) console.log('checkType', this.form.checkType)
} }
this.form.useTime = JSON.stringify(this.useTime) this.form.useTime = JSON.stringify(this.form.useTime)
this.$refs['form'].validate(valid => { this.$refs['form'].validate(valid => {
if (valid) { if (valid) {
updateDevice(this.form).then(response => { updateDevice(this.form).then(response => {
...@@ -973,7 +975,7 @@ export default { ...@@ -973,7 +975,7 @@ export default {
// this.useTime = JSON.parse(response.data.useTime) // this.useTime = JSON.parse(response.data.useTime)
this.form.useTime = JSON.parse(response.data.useTime) this.form.useTime = JSON.parse(response.data.useTime)
console.log('详情数据---', this.form) console.log('详情数据---', this.form)
console.log('form.usertadasd', this.form.useTime.ame) console.log('form.usertadasd', this.form.useTime)
// this.serviceAreaS = this.form.serviceArea.split(';') // this.serviceAreaS = this.form.serviceArea.split(';')
// this.serviceArea = [] // this.serviceArea = []
// for (let i = 0; i < this.serviceAreaS.length; i++) { // for (let i = 0; i < this.serviceAreaS.length; i++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment