Commit e999f39c authored by Damon's avatar Damon

Merge branch 'dev-1.5.0' into test

parents 095dc532 5cf7656c
...@@ -72,6 +72,10 @@ export default { ...@@ -72,6 +72,10 @@ export default {
type: String, type: String,
default: '', default: '',
}, },
maintainStep: {
type: String,
default: ''
}
}, },
data() { data() {
return { return {
...@@ -155,7 +159,7 @@ export default { ...@@ -155,7 +159,7 @@ export default {
} else { } else {
this.lists = [] this.lists = []
} }
this.valueChange(JSON.stringify(val ? this.lists : [{}])) this.valueChange(val ? JSON.stringify(this.lists) : (this.maintainStep === 'base' ? [{}] : JSON.stringify(this.lists)))
}, },
toParts() { toParts() {
uni.navigateTo({ uni.navigateTo({
......
...@@ -254,6 +254,7 @@ ...@@ -254,6 +254,7 @@
:item="item" :item="item"
:value="form[item.fieldsName] || ''" :value="form[item.fieldsName] || ''"
:disabled="readOnly" :disabled="readOnly"
:maintainStep="maintainStep"
@value-change="fieldValueChange" @value-change="fieldValueChange"
> >
</xh-parts> </xh-parts>
...@@ -1131,9 +1132,13 @@ export default { ...@@ -1131,9 +1132,13 @@ export default {
// 多个输入框的值触发 // 多个输入框的值触发
let key = Object.keys(data.value)[0] let key = Object.keys(data.value)[0]
this.form[key] = data.value[key] this.form[key] = data.value[key]
} else {
if (innerItem.fieldsName === 'orderSpareParts' && data.value === '[]') {
this.$set(this.form, innerItem.fieldsName, '')
} else { } else {
this.$set(this.form, innerItem.fieldsName, data.value) this.$set(this.form, innerItem.fieldsName, data.value)
} }
}
if (innerItem.fieldsName === 'paymentMethodsType') { if (innerItem.fieldsName === 'paymentMethodsType') {
// 选不需要收款的时候,收款金额修改为非必选 // 选不需要收款的时候,收款金额修改为非必选
......
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