Commit dd482bcc authored by 李苏's avatar 李苏 💬

dlapp新增接口

parent ce29fb10
......@@ -247,4 +247,15 @@ export function apiEmptyGw(params){
return filter(e)
})
}
/* 锁定 */
export function apiGwLock(params){
return http.post("/xgwcs/gw/lock", params || {}).then(e => {
return filter(e)
})
}
/* 解锁 */
export function apiGwUnlock(params){
return http.post("/xgwcs/gw/unlock", params || {}).then(e => {
return filter(e)
})
}
\ No newline at end of file
......@@ -3,7 +3,7 @@
<view class="stationBody" :class="{status1:itemInfo.status=='E',status2:itemInfo.status=='U',status3:itemInfo.status=='L',status4:itemInfo.status==4}">
<view class="item">{{itemInfo.ckName}}</view>
<view class="item">{{itemInfo.name}}</view>
<view class="item">{{itemInfo.ppdName}}</view>
<view class="item">{{itemInfo.ppdName||itemInfo.name}}</view>
<view class="item">{{itemInfo.status|getstatus}}</view>
</view>
<view class="stationSelect">
......
......@@ -58,7 +58,10 @@
backWarehouse,
deactivate,
apiSearchTpByGwid,
apiEmptyTpByGwid
apiEmptyTpByGwid,
/*, 锁定 */
apiGwLock,
apiGwUnlock
} from '@/api/dlapi.js';
import eventBus from '@/common/util/eventBus.js'
import Station from '@/components/Station/Station.vue'
......@@ -272,7 +275,7 @@
confirmText: "是", // 确认按钮的文字
success: function(res) {
if (res.confirm) {
lockMaterials({}).then(e=>{
apiGwLock({id:that.gwinfor[that.gwSelcetdIndex].id}).then(e=>{
if(e){
that.$tip.toast("锁定成功")
that.gwinfor[that.gwSelcetdIndex].status="L"
......@@ -322,7 +325,7 @@
confirmText: "是", // 确认按钮的文字
success: function(res) {
if (res.confirm) {
unlockMaterials({}).then(e=>{
apiGwUnlock({id:that.gwinfor[that.gwSelcetdIndex].id}).then(e=>{
if(e){
that.$tip.toast("解锁成功")
that.gwinfor[that.gwSelcetdIndex].status="E"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment