|
|
@@ -22,7 +22,7 @@ Page({
|
|
|
},
|
|
|
async onLoad(options) {
|
|
|
let data = JSON.parse(options.data);
|
|
|
- console.log(data, 'options.data')
|
|
|
+ console.log(data)
|
|
|
this.data.content.sa_surgeryforecastid = data.sa_surgeryforecastid
|
|
|
this.data.sa_customersid = data.sa_customersid
|
|
|
this.setPreview(data, options.enterprisename);
|
|
|
@@ -155,7 +155,7 @@ Page({
|
|
|
});
|
|
|
},
|
|
|
interrupt(e) {
|
|
|
- console.log('修改111')
|
|
|
+
|
|
|
if (!this.data.isAdd || !this.data.isUpdate) {
|
|
|
this.data.isUpdate = true
|
|
|
this.setData({
|
|
|
@@ -167,8 +167,7 @@ Page({
|
|
|
form,
|
|
|
temporary
|
|
|
} = e.detail;
|
|
|
- console.log(data, form, temporary, '获取的数据////')
|
|
|
- console.log(e.detail, 'detail')
|
|
|
+
|
|
|
if (temporary.item.label == '医生') {
|
|
|
form.find(v => v.label == '医生').value = data.value;
|
|
|
wx.navigateBack()
|
|
|
@@ -179,7 +178,6 @@ Page({
|
|
|
})
|
|
|
},
|
|
|
deleteItem(e) {
|
|
|
- console.log(this.data.briefs.find(v => v.label == '预估手术总量').value)
|
|
|
console.log(e)
|
|
|
const {
|
|
|
item
|
|
|
@@ -313,17 +311,16 @@ Page({
|
|
|
}
|
|
|
},
|
|
|
update(e) {
|
|
|
- console.log(e, '编辑信息')
|
|
|
+ console.log(e)
|
|
|
let rowIndex = e.currentTarget.dataset.item.rowindex
|
|
|
let data = e.currentTarget.dataset.item
|
|
|
- console.log(data, 'data数据')
|
|
|
+
|
|
|
this.setData({
|
|
|
nowIndex: rowIndex,
|
|
|
oldQty:data.qty
|
|
|
})
|
|
|
let form = this.data.formData.map(v => {
|
|
|
if (v.valueName == 'sa_doctorid') {
|
|
|
- console.log(v,'v的数据输出')
|
|
|
v.value = [data.doctorname, [data.sa_doctorid]]
|
|
|
} else {
|
|
|
v.value = data[v.valueName] || "";
|