|
|
@@ -261,7 +261,7 @@
|
|
|
<van-field
|
|
|
v-model="item.answerValue"
|
|
|
:placeholder="item.collectionOptionList[0].collectionOption"
|
|
|
- @blur="SZsizeComparison(item, index)"></van-field>
|
|
|
+ @blur="SZsizeComparison(item)"></van-field>
|
|
|
<delete-upload-img
|
|
|
:photoIdentifyType="photoIdentifyType"
|
|
|
:imgs="item.fileInfoList"></delete-upload-img>
|
|
|
@@ -810,9 +810,7 @@
|
|
|
<van-field
|
|
|
v-model="childitem.collectionOptionList[0].answerValue"
|
|
|
:placeholder="childitem.collectionOptionList[0].collectionOption"
|
|
|
- type="number"
|
|
|
- @blur="SZsizeComparison(childitem, childIndex)"
|
|
|
- @input="numberFn(childitem, index)"></van-field>
|
|
|
+ @blur="SZsizeComparison(childitem)"></van-field>
|
|
|
<delete-upload-img
|
|
|
:photoIdentifyType="photoIdentifyType"
|
|
|
:imgs="childitem.fileInfoList"></delete-upload-img>
|
|
|
@@ -1903,9 +1901,7 @@
|
|
|
:placeholder="
|
|
|
child33item1.collectionOptionList[0].collectionOption
|
|
|
"
|
|
|
- type="number"
|
|
|
- @blur="SZsizeComparison(child33item1, child33Index1)"
|
|
|
- @input="numberFn(child33item1, index)"></van-field>
|
|
|
+ @blur="SZsizeComparison(child33item1)"></van-field>
|
|
|
<delete-upload-img
|
|
|
:photoIdentifyType="photoIdentifyType"
|
|
|
:imgs="child33item1.fileInfoList"></delete-upload-img>
|
|
|
@@ -2698,15 +2694,8 @@
|
|
|
child44item1.collectionOptionList[0]
|
|
|
.collectionOption
|
|
|
"
|
|
|
- type="number"
|
|
|
@blur="
|
|
|
- SZsizeComparison(
|
|
|
- child44item1,
|
|
|
- child44Index1
|
|
|
- )
|
|
|
- "
|
|
|
- @input="
|
|
|
- numberFn(child44item1, child44Index1)
|
|
|
+ SZsizeComparison(child44item1)
|
|
|
"></van-field>
|
|
|
<delete-upload-img
|
|
|
:photoIdentifyType="photoIdentifyType"
|
|
|
@@ -3101,8 +3090,7 @@
|
|
|
v-model="childitem1.collectionOptionList[0].answerValue"
|
|
|
:placeholder="childitem1.collectionOptionList[0].collectionOption"
|
|
|
type="number"
|
|
|
- @blur="SZsizeComparison(childitem1, childIndex1)"
|
|
|
- @input="numberFn(childitem1, index)"></van-field>
|
|
|
+ @blur="SZsizeComparison(childitem1)"></van-field>
|
|
|
<delete-upload-img
|
|
|
:photoIdentifyType="photoIdentifyType"
|
|
|
:imgs="childitem1.fileInfoList"></delete-upload-img>
|
|
|
@@ -3937,21 +3925,8 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- // 数字类型 van-field number 类型iOS不能输入负数,改成text
|
|
|
- szNumberFn(val, index, type) {
|
|
|
- debugger;
|
|
|
- let value = this.collectionItemList[index].answerValue;
|
|
|
- if (value) {
|
|
|
- if (!/^[+-]?\d*\.{0,1}\d{0,1}$/.test(value)) {
|
|
|
- value = this.collectionItemList[index].answerValue.replace(
|
|
|
- /\.\d{2,}$/,
|
|
|
- value.substr(value.indexOf('.'), 3)
|
|
|
- );
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
// 数字类型最大值最小值校验
|
|
|
- SZsizeComparison(item, index) {
|
|
|
+ SZsizeComparison(item) {
|
|
|
let value = item.answerValue.replace(
|
|
|
/[^-\d.]|(?<!\d)\.|\.(?!\d)|^[.]$|^[+-]$|^[+-]\.$|(?<=\.\d*)\.|(?<=\d\.\d*)\.(?=\d)/g,
|
|
|
''
|
|
|
@@ -4029,13 +4004,6 @@ export default {
|
|
|
''
|
|
|
);
|
|
|
},
|
|
|
- // 数字 负数、小数
|
|
|
- szFormatter(value) {
|
|
|
- return value.replace(
|
|
|
- /[^-\d.]|(?<!\d)\.|\.(?!\d)|^[.]$|^[+-]$|^[+-]\.$|(?<=\.\d*)\.|(?<=\d\.\d*)\.(?=\d)/g,
|
|
|
- ''
|
|
|
- );
|
|
|
- },
|
|
|
logshowFN() {
|
|
|
this.logshow = true;
|
|
|
},
|