|
|
@@ -36,9 +36,6 @@ Component({
|
|
|
}
|
|
|
},
|
|
|
list: [],
|
|
|
- record: "",
|
|
|
- "sa_service_improvement_planid": 0,
|
|
|
- "sa_service_improvement_recordid": 0,
|
|
|
unfolds: []
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -56,48 +53,15 @@ Component({
|
|
|
unfolds
|
|
|
})
|
|
|
},
|
|
|
- areaInput(e) {
|
|
|
- this.setData({
|
|
|
- record: e.detail.value
|
|
|
- })
|
|
|
- },
|
|
|
- onRecord(e) {
|
|
|
- let that = this;
|
|
|
- setTimeout(() => {
|
|
|
- let record = that.data.record;
|
|
|
- if (record == '') return wx.showToast({
|
|
|
- title: getApp().globalData.Language.getMapText("请填写改善记录"),
|
|
|
- icon: "none"
|
|
|
- })
|
|
|
- _Http.basic({
|
|
|
- "content": {
|
|
|
- "sa_service_improvementid": that.data.sa_service_improvementid,
|
|
|
- "sa_service_improvement_planid": that.data.sa_service_improvement_planid,
|
|
|
- "sa_service_improvement_recordid": that.data.sa_service_improvement_recordid,
|
|
|
- record
|
|
|
- },
|
|
|
- "id": 2026020210270102,
|
|
|
- }).then(res => {
|
|
|
- getApp().globalData.Language.showToast(res.code == '1' ? "保存成功" : res.msg)
|
|
|
- if (res.code == 1) that.getList('', true);
|
|
|
- })
|
|
|
- });
|
|
|
-
|
|
|
- },
|
|
|
- onCancel() {
|
|
|
- this.setData({
|
|
|
- sa_service_improvement_planid: 0
|
|
|
- })
|
|
|
- },
|
|
|
add(e) {
|
|
|
const {
|
|
|
item
|
|
|
} = e.currentTarget.dataset;
|
|
|
- this.setData({
|
|
|
- sa_service_improvement_planid: item.sa_service_improvement_planid,
|
|
|
- sa_service_improvement_recordid: 0,
|
|
|
- record: ""
|
|
|
+ wx.navigateTo({
|
|
|
+ url: `/E-service/serviceImprovement/record?sa_service_improvementid=${this.data.sa_service_improvementid}&sa_service_improvement_planid=${item.sa_service_improvement_planid}&sa_service_improvement_recordid=0&record=`
|
|
|
})
|
|
|
+ _Http.basic.updateExe = this.getList.bind(this)
|
|
|
+ _Http.basic.attinfos = []
|
|
|
},
|
|
|
getList(id, init = false) {
|
|
|
console.log("getList", id)
|
|
|
@@ -152,7 +116,7 @@ Component({
|
|
|
let page = getCurrentPages().find(v => v.__route__ == 'E-service/serviceImprovement/detail')
|
|
|
page.getDetail()
|
|
|
} catch (error) {
|
|
|
- console.log("更新详情失败",error)
|
|
|
+ console.log("更新详情失败", error)
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
@@ -188,12 +152,11 @@ Component({
|
|
|
const {
|
|
|
item
|
|
|
} = e.currentTarget.dataset;
|
|
|
- this.setData({
|
|
|
- "sa_service_improvement_planid": item.sa_service_improvement_planid,
|
|
|
- "sa_service_improvement_recordid": item.sa_service_improvement_recordid,
|
|
|
- record: item.record
|
|
|
+ wx.navigateTo({
|
|
|
+ url: `/E-service/serviceImprovement/record?sa_service_improvementid=${this.data.sa_service_improvementid}&sa_service_improvement_planid=${item.sa_service_improvement_planid}&sa_service_improvement_recordid=${item.sa_service_improvement_recordid}&record=${item.record}&attachmentids=${item.attachmentids || ''}`
|
|
|
})
|
|
|
- console.log(item)
|
|
|
+ _Http.basic.attinfos = item.attinfos || [];
|
|
|
+ _Http.basic.updateExe = this.getList.bind(this)
|
|
|
}
|
|
|
}
|
|
|
})
|