|
@@ -31,7 +31,6 @@ Page({
|
|
|
pageSize: 999
|
|
|
}
|
|
|
if (sys_enterpriseid) content.sys_enterpriseid = sys_enterpriseid;
|
|
|
- console.log(sys_enterpriseid)
|
|
|
_Http.basic({
|
|
|
"id": "20220926142403",
|
|
|
content
|
|
@@ -68,8 +67,31 @@ Page({
|
|
|
}),
|
|
|
loading: false
|
|
|
})
|
|
|
+ this.getRep()
|
|
|
})
|
|
|
},
|
|
|
+ /* 更新库存 */
|
|
|
+ getRep() {
|
|
|
+ _Http.basic({
|
|
|
+ "id": 20220923155302,
|
|
|
+ "content": {
|
|
|
+ "itemid": this.data.detail.itemid
|
|
|
+ }
|
|
|
+ }).then(res => {
|
|
|
+ console.log("查询库存", res)
|
|
|
+ if (res.msg != '成功') return wx.showToast({
|
|
|
+ title: res.msg,
|
|
|
+ icon: "none"
|
|
|
+ })
|
|
|
+ this.setData({
|
|
|
+ "detail.stockstatus": res.data.stockstatus,
|
|
|
+ "detail.cansaleqty": res.data.invbal_qty,
|
|
|
+ })
|
|
|
+
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
+
|
|
|
/* 预览媒体 */
|
|
|
viewMedias(e) {
|
|
|
const {
|
|
@@ -128,6 +150,7 @@ Page({
|
|
|
detail: item,
|
|
|
itemno: item.itemno
|
|
|
})
|
|
|
+ this.getRep()
|
|
|
},
|
|
|
clickBut() {
|
|
|
this.data.detail.tradefield.length >= 2 ? wx.showToast({
|