|
@@ -31,6 +31,36 @@ Page({
|
|
|
});
|
|
|
this.getDetail(true);
|
|
|
},
|
|
|
+ onCopy() {
|
|
|
+ let that = this;
|
|
|
+ wx.showModal({
|
|
|
+ title: '提示',
|
|
|
+ content: '是否确定复制该借用单',
|
|
|
+ complete: (a) => {
|
|
|
+ if (a.confirm) _Http.basic({
|
|
|
+ "id": "20240315131202",
|
|
|
+ "content": {
|
|
|
+ "sa_orderid": that.data.sa_orderid
|
|
|
+ }
|
|
|
+ }).then(res => {
|
|
|
+ console.log("借用单复制", res)
|
|
|
+ if (res.msg != '成功') return wx.showToast({
|
|
|
+ title: res.msg,
|
|
|
+ icon: "none"
|
|
|
+ })
|
|
|
+ wx.showModal({
|
|
|
+ title: '提示',
|
|
|
+ content: '复制成功,是否立即前往',
|
|
|
+ complete: (s) => {
|
|
|
+ if (s.confirm) wx.navigateTo({
|
|
|
+ url: '/packageA/borrow/detail?id=' + res.data.sa_orderid,
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
/* 获取详情 */
|
|
|
getDetail(init = false, show = true) {
|
|
|
_Http.basic({
|