Commit cab7174f authored by zhoumaotao's avatar zhoumaotao

bug修复

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