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

数据修复6

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