|
|
@ -52,36 +52,36 @@ |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty">排序</div> |
|
|
|
<el-form-item><el-input class="addinputInfo addinputw" @keyup.native="formobj.sortNo = getNumber(formobj.sortNo, 0)" v-model="formobj.sortNo" clearable placeholder="" /></el-form-item> |
|
|
|
<div class="span-sty"><span class="icon">*</span>排序</div> |
|
|
|
<el-form-item prop="sortNo"><el-input class="addinputInfo addinputw" @keyup.native="formobj.sortNo = getNumber(formobj.sortNo, 0)" v-model="formobj.sortNo" clearable placeholder="" /></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty">工时单价</div> |
|
|
|
<el-form-item><el-input class="addinputInfo addinputw" @input="computeXSJ" @keyup.native="formobj.hourPrice = getNumber(formobj.hourPrice, 2)" v-model="formobj.hourPrice" clearable placeholder="" /></el-form-item> |
|
|
|
<div class="span-sty"><span class="icon">*</span>工时单价</div> |
|
|
|
<el-form-item prop="hourPrice"><el-input class="addinputInfo addinputw" @input="computeXSJ" @keyup.native="formobj.hourPrice = getNumber(formobj.hourPrice, 2)" v-model="formobj.hourPrice" clearable placeholder="" /></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty">工时数</div> |
|
|
|
<el-form-item><el-input class="addinputInfo addinputw" @input="computeXSJ" @keyup.native="formobj.hours = getNumber(formobj.hours, 2)" v-model="formobj.hours" clearable placeholder="" /></el-form-item> |
|
|
|
<div class="span-sty"><span class="icon">*</span>工时数</div> |
|
|
|
<el-form-item prop="hours"><el-input class="addinputInfo addinputw" @input="computeXSJ" @keyup.native="formobj.hours = getNumber(formobj.hours, 2)" v-model="formobj.hours" clearable placeholder="" /></el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty">销售价</div> |
|
|
|
<el-form-item><el-input class="addinputInfo addinputw" @keyup.native="formobj.price = getNumber(formobj.price, 2)" @input="computeGSS" v-model="formobj.price" clearable placeholder="" /></el-form-item> |
|
|
|
<div class="span-sty"><span class="icon">*</span>销售价</div> |
|
|
|
<el-form-item prop="price"><el-input class="addinputInfo addinputw" @keyup.native="formobj.price = getNumber(formobj.price, 2)" @input="computeGSS" v-model="formobj.price" clearable placeholder="" /></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty">考核工时</div> |
|
|
|
<el-form-item><el-input class="addinputInfo addinputw" @keyup.native="formobj.examineHourPrice = getNumber(formobj.examineHourPrice, 2)" v-model="formobj.examineHourPrice" clearable placeholder="" /></el-form-item> |
|
|
|
<div class="span-sty"><span class="icon">*</span>考核工时</div> |
|
|
|
<el-form-item prop="examineHourPrice"><el-input class="addinputInfo addinputw" @keyup.native="formobj.examineHourPrice = getNumber(formobj.examineHourPrice, 2)" v-model="formobj.examineHourPrice" clearable placeholder="" /></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty">成本</div> |
|
|
|
<el-form-item><el-input class="addinputInfo addinputw" @keyup.native="formobj.cost = getNumber(formobj.cost, 2)" v-model="formobj.cost" clearable placeholder="" /></el-form-item> |
|
|
|
<div class="span-sty"><span class="icon">*</span>成本</div> |
|
|
|
<el-form-item prop="cost"><el-input class="addinputInfo addinputw" @keyup.native="formobj.cost = getNumber(formobj.cost, 2)" v-model="formobj.cost" clearable placeholder="" /></el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty">预约项目</div> |
|
|
|
<el-form-item> |
|
|
|
<div class="span-sty"><span class="icon">*</span>预约项目</div> |
|
|
|
<el-form-item prop="isReserve"> |
|
|
|
<el-radio-group class="addinputInfo" style="font-size: 1px" v-model="formobj.isReserve"> |
|
|
|
<el-radio label="1">是</el-radio> |
|
|
|
<el-radio label="0">否</el-radio> |
|
|
@ -147,7 +147,14 @@ export default { |
|
|
|
}, |
|
|
|
rules: { |
|
|
|
sitemName: [{ required: true, message: '项目名称不能为空', trigger: 'blur' }], |
|
|
|
serviceType: [{ required: true, message: '工种不能为空', trigger: 'change' }] |
|
|
|
serviceType: [{ required: true, message: '工种不能为空', trigger: 'change' }], |
|
|
|
sortNo: [{ required: true, message: '排序不能为空', trigger: 'blur' }], |
|
|
|
hourPrice: [{ required: true, message: '工时单价不能为空', trigger: 'blur' }], |
|
|
|
hours: [{ required: true, message: '工时数不能为空', trigger: 'blur' }], |
|
|
|
price: [{ required: true, message: '销售价不能为空', trigger: 'blur' }], |
|
|
|
examineHourPrice: [{ required: true, message: '考核工时不能为空', trigger: 'blur' }], |
|
|
|
cost: [{ required: true, message: '成本不能为空', trigger: 'blur' }], |
|
|
|
isReserve: [{ required: true, message: '预约项目不能为空', trigger: 'change' }] |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|