liujq 3 年之前
父节点
当前提交
c36039f268

文件差异内容过多而无法显示
+ 0 - 0
dist/index.html


文件差异内容过多而无法显示
+ 0 - 0
dist/static/css/chunk-47ee44ce.7f561aca.css


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/app.28583f8a.js


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/chunk-23dfcefb.c719114d.js


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/chunk-47ee44ce.6f42edbf.js


+ 23 - 5
src/views/house/components/popup/PriceEdit.vue

@@ -58,11 +58,29 @@ export default {
         }
       }
       this.formData = [
-        { label: '签约日期', key: 'sign_at', type: 'datePicker', type2: 'date', class: 'c-2'},
-        { label: '签约中介', key: 'company', class: 'c-2', type: 'select', options: this.$dictData.zjjg}, 
-        { label: '面积', key: 'area', class: 'c-2', type: 'inputFont', appendFont: '㎡', changeHandle: this.priceChange},
-        { label: '单价', key: 'unit_price', class: 'c-2', type: 'inputFont', appendFont: '元', changeHandle: this.priceChange},
-        { label: '总价', key: 'price', class: 'c-2', type: 'inputFont', appendFont: '万元'},
+        { label: '签约中介', key: 'company', type: 'select', options: this.$dictData.zjjg, rules: 1}, 
+        { label: '签约日期', key: 'sign_at', type: 'datePicker', type2: 'date', class: 'c-2', rules: 1},
+        { label: '面积', key: 'area', class: 'c-2', type: 'inputFont', appendFont: '㎡', changeHandle: this.priceChange, rules: 1},
+        { label: '单价', key: 'unit_price', class: 'c-2', type: 'inputFont', appendFont: '元', changeHandle: this.priceChange, rules: 1},
+        { label: '总价', key: 'price', class: 'c-2', type: 'inputFont', appendFont: '万元', rules: 1},
+        { label: '层数', class: 'c-2', key: 'cur_layer', rules: [
+          { validator: (rule, value, callback) => {
+            if (Number(value) < 0 || isNaN(Number(value))) {
+              callback(new Error('请输入数字'))
+            } else {
+              callback()
+            }
+          }, trigger: 'blur' },
+        ] },
+        { label: '总层数', class: 'c-2', key: 'layer', rules: [
+          { validator: (rule, value, callback) => {
+            if (Number(value) < 0 || isNaN(Number(value))) {
+              callback(new Error('请输入数字'))
+            } else {
+              callback()
+            }
+          }, trigger: 'blur' },
+        ] },
       ]
       this.setDefaultValue(params)
     },

部分文件因为文件数量过多而无法显示