Commit 9b561256 authored by 李超鹏's avatar 李超鹏

数据修复6

parent 93eed3aa
......@@ -10,6 +10,7 @@
ref="picker"
type="date"
v-model="value"
:start-date="start_date"
@confirm="handleConfirm">
</mt-datetime-picker>
</div>
......@@ -21,7 +22,8 @@ export default {
data() {
return {
popupVisible: false,
value: ''
value: '',
start_date: new Date(2020, 1, 1)
}
},
filters: {
......
......@@ -304,7 +304,11 @@ export default {
data.materialEntityList.push({ extraAmt: otherItem.freeMount, freeLength: 0, matType: '04', otherExplain: otherItem.name, priceType: priceType, useLength: 0 })
})
}
} else if (element.fieldName === 'installAccepting') {
} else {
data[element.fieldName] = element.value
}
// 特殊的字段 转换
if (element.fieldName === 'installAccepting') {
element.settings.map(settingItem => {
data[settingItem.value] = element.value.indexOf(settingItem.value) > -1 ? 'Y' : 'N'
})
......@@ -312,13 +316,10 @@ export default {
element.settings.map(settingItem => {
data[settingItem.value] = element.value.indexOf(settingItem.value) > -1 ? '1' : '0'
})
} else {
data[element.fieldName] = element.value
}
})
})
console.log(JSON.stringify(data))
if (this.inApp) {
window.BanShou.callApp({
methodName: 'callBackDone',
......
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