|
|
@@ -55,15 +55,15 @@ Page({
|
|
|
interrupt: true
|
|
|
},
|
|
|
{
|
|
|
- label: "医生",
|
|
|
+ label: "科室",
|
|
|
id: 1,
|
|
|
error: false,
|
|
|
errMsg: "",
|
|
|
type: "route",
|
|
|
- url: "/prsx/select/docter/index",
|
|
|
+ url: "/prsx/select/department/index",
|
|
|
value: '',
|
|
|
- placeholder: "医生",
|
|
|
- valueName: "sa_doctorid",
|
|
|
+ placeholder: "科室",
|
|
|
+ valueName: "sa_hospitaldepid",
|
|
|
checking: "base",
|
|
|
required: true,
|
|
|
params: {
|
|
|
@@ -75,11 +75,10 @@ Page({
|
|
|
"condition": ""
|
|
|
}
|
|
|
},
|
|
|
- "id": 2025102310134602,
|
|
|
+ "id": 2025102310143002,
|
|
|
},
|
|
|
query: "&radio=true",
|
|
|
interrupt: true,
|
|
|
- required: false
|
|
|
}
|
|
|
]
|
|
|
this.setData({
|
|
|
@@ -128,7 +127,6 @@ Page({
|
|
|
qty: '',
|
|
|
rowindex: 1,
|
|
|
sa_customersid: this.data.sa_customersid,
|
|
|
- sa_doctorid: '',
|
|
|
sa_hospitaldepid: '',
|
|
|
sa_surgeryforecast_itemsid: 0,
|
|
|
sa_surgeryforecastid: this.data.content.sa_surgeryforecastid,
|
|
|
@@ -168,8 +166,8 @@ Page({
|
|
|
temporary
|
|
|
} = e.detail;
|
|
|
|
|
|
- if (temporary.item.label == '医生') {
|
|
|
- form.find(v => v.label == '医生').value = data.value;
|
|
|
+ if (temporary.item.label == '科室') {
|
|
|
+ form.find(v => v.label == '科室').value = data.value;
|
|
|
wx.navigateBack()
|
|
|
}
|
|
|
this.selectComponent("#Form").confirm();
|
|
|
@@ -262,7 +260,7 @@ Page({
|
|
|
})
|
|
|
let data = this.selectComponent("#Form").submit(),
|
|
|
content = this.data.content
|
|
|
- data.sa_doctorid = data.sa_doctorid.length ? data.sa_doctorid[1][0] : 0
|
|
|
+ data.sa_hospitaldepid = data.sa_hospitaldepid.length ? data.sa_hospitaldepid[1][0] : 0
|
|
|
_Http.basic({
|
|
|
"id": 2025111315454902,
|
|
|
"content": {
|
|
|
@@ -320,8 +318,8 @@ Page({
|
|
|
oldQty:data.qty
|
|
|
})
|
|
|
let form = this.data.formData.map(v => {
|
|
|
- if (v.valueName == 'sa_doctorid') {
|
|
|
- v.value = [data.doctorname, [data.sa_doctorid]]
|
|
|
+ if (v.valueName == 'sa_hospitaldepid') {
|
|
|
+ v.value = [data.hospitaldepname, [data.sa_hospitaldepid]]
|
|
|
} else {
|
|
|
v.value = data[v.valueName] || "";
|
|
|
}
|