|
@@ -55,6 +55,31 @@ Page({
|
|
|
url: '/Eservice/saler/billCanUseProduct/index',
|
|
|
})
|
|
|
},
|
|
|
+ onDelete({
|
|
|
+ detail
|
|
|
+ }) {
|
|
|
+ let that = this;
|
|
|
+ wx.showModal({
|
|
|
+ title: '提示',
|
|
|
+ content: `是否确定删除“${detail.itemname}”`,
|
|
|
+ complete: (res) => {
|
|
|
+ if (res.confirm) api._post({
|
|
|
+ "id": "20230206162003",
|
|
|
+ "version": 1,
|
|
|
+ "content": {
|
|
|
+ sa_serviceorderitemsids: [detail.sa_serviceorderitemsid]
|
|
|
+ }
|
|
|
+ }).then(res => {
|
|
|
+ console.log("删除明细", res)
|
|
|
+ wx.showToast({
|
|
|
+ title: res.msg == '成功' ? '删除成功' : res.msg,
|
|
|
+ icon: "none"
|
|
|
+ });
|
|
|
+ that.productmx()
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
|
|
|
async getAdd(selection) {
|
|
|
const res = await api._post({
|
|
@@ -101,6 +126,7 @@ Page({
|
|
|
"id": "20230206161903",
|
|
|
"version": 1,
|
|
|
"content": {
|
|
|
+ nocache: true,
|
|
|
"sa_serviceorderid": this.data.id
|
|
|
}
|
|
|
})
|