|
|
@@ -111,6 +111,9 @@ Page({
|
|
|
})
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
+ sa_quotedpriceid = 0
|
|
|
+ quotedpricenotes = []
|
|
|
+ address = ""
|
|
|
if (options.data) {
|
|
|
let data = JSON.parse(options.data);
|
|
|
let form = this.data.form;
|
|
|
@@ -276,7 +279,11 @@ Page({
|
|
|
checking: "base",
|
|
|
required: true
|
|
|
};
|
|
|
- form.splice(form.findIndex(v => v.label == '备注') -1, form.some(v => v.label == '业务员') ? 1 : 0, hr);
|
|
|
+ if (form.some(v => v.label == '业务员')) {
|
|
|
+ form.splice(form.findIndex(v => v.label == '备注') - 1, 1, hr);
|
|
|
+ } else {
|
|
|
+ form.splice(form.findIndex(v => v.label == '备注'), 0, hr);
|
|
|
+ }
|
|
|
}
|
|
|
form[temporary.index] = temporary.item;
|
|
|
wx.navigateBack()
|
|
|
@@ -342,7 +349,6 @@ Page({
|
|
|
const {
|
|
|
submit
|
|
|
} = e.currentTarget.dataset;
|
|
|
- console.log(submit)
|
|
|
if (submit == 1) {
|
|
|
this.setData({
|
|
|
subLoading: true
|