| | |
| | | </el-table-column> |
| | | </el-table> |
| | | <el-form-item label="特别约定" prop="specialAgreement"> |
| | | <el-input type="textarea" v-model="form.specialAgreement" placeholder="请输入特别约定" v-trim/> |
| | | <RichEditor :richData="form.specialAgreement" :styleEditor="'border: 1px solid #ccc;display: inline-block;'" @getWangedditor="getWangedditor" :readonly="false"/> |
| | | </el-form-item> |
| | | <el-form-item label="特别说明" prop="specialInfo"> |
| | | <el-input type="textarea" v-model="form.specialInfo" placeholder="请输入特别说明" v-trim/> |
| | | <RichEditor :richData="form.specialInfo" :styleEditor="'border: 1px solid #ccc;display: inline-block;'" @getWangedditor="getWangedditor1" :readonly="false"/> |
| | | </el-form-item> |
| | | <el-form-item label="其他说明" prop="ortherInfo"> |
| | | <el-input type="textarea" v-model="form.ortherInfo" placeholder="请输入其他说明" v-trim/> |
| | | <el-form-item label="其他说明" prop="ortherInfo"> |
| | | <RichEditor :richData="form.ortherInfo" :styleEditor="'border: 1px solid #ccc;display: inline-block;'" @getWangedditor="getWangedditor2" :readonly="false"/> |
| | | </el-form-item> |
| | | </el-form> |
| | | </GlobalWindow> |
| | |
| | | import { solutionsId } from '@/api/business/solutions' |
| | | import { pageAll as shopList } from '@/api/business/company' |
| | | import UploadFile from '@/components/common/UploadFile' |
| | | import {checkMobile, numRule} from "@/utils/form"; |
| | | import { checkMobile, numRule } from '@/utils/form' |
| | | import RichEditor from '@/components/common/RichEditor' |
| | | export default { |
| | | name: 'OperaSolutionsWindow', |
| | | extends: BaseOpera, |
| | | components: { GlobalWindow, UploadFile }, |
| | | components: { GlobalWindow, UploadFile, RichEditor }, |
| | | data () { |
| | | var validType = (rule, value, callback) => { |
| | | if (this.form.validType === 0 && !value) { |
| | |
| | | { required: true, message: '请选择' } |
| | | ], |
| | | addValidDays: [ |
| | | { validator: numRule } |
| | | { validator: numRule } |
| | | ], |
| | | delValidDays: [ |
| | | { validator: numRule } |
| | | { validator: numRule } |
| | | ], |
| | | insuranceId: [ |
| | | { required: true, message: '请选择保险公司' } |
| | |
| | | }) |
| | | }, |
| | | methods: { |
| | | handNumberInput(value){ |
| | | const regex = /^[-+]?\d*$/; |
| | | getWangedditor(val){ |
| | | this.form.specialAgreement = val; |
| | | }, |
| | | getWangedditor1(val){ |
| | | this.form.specialInfo = val; |
| | | }, |
| | | getWangedditor2(val){ |
| | | this.form.ortherInfo = val; |
| | | }, |
| | | |
| | | handNumberInput (value) { |
| | | const regex = /^[-+]?\d*$/ |
| | | if (!regex.test(value)) { |
| | | // 如果输入的不是整数,则设置为上一个有效的整数值 |
| | | this.form.addValidDays = value.replace(/[^0-9]/g, ''); |
| | | this.form.addValidDays = value.replace(/[^0-9]/g, ''); |
| | | this.form.delValidDays = value.replace(/[^0-9]/g, ''); |
| | | this.form.addValidDays = value.replace(/[^0-9]/g, '') |
| | | this.form.addValidDays = value.replace(/[^0-9]/g, '') |
| | | this.form.delValidDays = value.replace(/[^0-9]/g, '') |
| | | } |
| | | }, |
| | | changeTimeUnit(){ |
| | | if(this.form.timeUnit < this.form.insureCycleUnit){ |
| | | this.form.insureCycleUnit = null; |
| | | changeTimeUnit () { |
| | | if (this.form.timeUnit < this.form.insureCycleUnit) { |
| | | this.form.insureCycleUnit = null |
| | | } |
| | | }, |
| | | editFanganFile (data) { |