Commit cab7174f authored by zhoumaotao's avatar zhoumaotao

bug修复

parent e13418ab
......@@ -50,7 +50,7 @@ export function getTryinfo(params) {
}
/* 托盘调整 */
export function adjustTry(params) {
return http.post('/xgwcs/tp/adjustTpByCode ', filterSpace(params) || {}).then(e => {
return http.post('/xgwcs/tp/adjustTpByCode', filterSpace(params) || {}).then(e => {
return filter(e)
})
}
......
......@@ -62,7 +62,7 @@
// api保存调整
apiadjustTry(){
let data={
"code": this.ystpcode,
"code": this.tpcode,
"data": this.wlinfor
}
adjustTry(data).then(e=>{
......@@ -80,7 +80,7 @@
if (this.ystpcode) {
uni.showModal({
title: '提示',
content: '是否保存并调整',
content: '是否调整该托盘',
cancelText: "否", // 取消按钮的文字
confirmText: "是", // 确认按钮的文字
success: function (res) {
......@@ -127,7 +127,7 @@
}
getTryinfo(data).then(data => {
if (data && data.records) {
this.ystpcode = data.tpcode
this.ystpcode = data.records[0].tpcode ||''
this.wlinfor = data.records
} else {
this.tpcode = ""
......
<template>
<view class="bg-white">
<cu-custom bgColor="bg-gradual-blue" :isBack="true"><block slot="content">托盘调整</block>
<cu-custom bgColor="bg-gradual-blue" :isBack="true"><block slot="content">清空托盘</block>
<block slot="backText">返回</block></cu-custom>
<view class="cu-form-group" >
<view class="title ">托盘号</view>
......@@ -108,7 +108,7 @@
}
getTryinfo(data).then(data => {
if (data && data.records) {
this.ystpcode = data.tpcode
this.ystpcode = data.records[0].tpcode||''
this.wlinfor = data.records
} else {
this.tpcode = ""
......
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