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

添加蒙层

parent a56b718d
......@@ -4,7 +4,8 @@
<block slot="content">清空工位</block>
<block slot="backText">返回</block>
</cu-custom>
<!-- 添加蒙层 -->
<orange-fullloading :loadicon='loadicon' :loadshow='loadshow' bgcolor="rgba(128, 128, 128, 0.5)" :text="loadtext"></orange-fullloading>
<view class="cu-form-group">
<view class="title ">地码</view>
......@@ -39,6 +40,10 @@
export default {
data() {
return {
loadshow:false,
loadicon:'/static/loading.png',
loadtext:'数据请求中...',
/* 配盘点数据结构 */
app:this,
selected: "",
ysdmcode: "",
......@@ -50,11 +55,16 @@
methods: {
// api保存调整
apiadjustTry(){
this.loadshow=true
setTimeout(()=>{
this.loadshow=false
},2000)
let data={
"id": this.dminfo.id
}
apiEmptyGw(data).then(e=>{
if(e){
this.loadshow=false
this.$tip.alert("清空成功");
this.dmcode = ""
this.ysdmcode = ""
......
......@@ -4,7 +4,8 @@
<block slot="content">托盘调整</block>
<block slot="backText">返回</block>
</cu-custom>
<!-- 添加蒙层 -->
<orange-fullloading :loadicon='loadicon' :loadshow='loadshow' bgcolor="rgba(128, 128, 128, 0.5)" :text="loadtext"></orange-fullloading>
<view class="cu-form-group">
<view class="title ">托盘号</view>
......@@ -50,6 +51,9 @@
export default {
data() {
return {
loadshow:false,
loadicon:'/static/loading.png',
loadtext:'数据请求中...',
app:this,
selected: "",
ystpcode: "",
......@@ -61,12 +65,18 @@
methods: {
// api保存调整
apiadjustTry(){
this.loadshow=true
setTimeout(()=>{
this.loadshow=false
},2000)
let data={
"code": this.tpcode,
"data": this.wlinfor
}
adjustTry(data).then(e=>{
if(e){
this.loadshow=false
this.$tip.alert("调整成功");
this.tpcode = ""
this.ystpcode = ""
......
......@@ -2,6 +2,8 @@
<view class="bg-white">
<cu-custom bgColor="bg-gradual-blue" :isBack="true"><block slot="content">清空托盘</block>
<block slot="backText">返回</block></cu-custom>
<!-- 添加蒙层 -->
<orange-fullloading :loadicon='loadicon' :loadshow='loadshow' bgcolor="rgba(128, 128, 128, 0.5)" :text="loadtext"></orange-fullloading>
<view class="cu-form-group" >
<view class="title ">托盘号</view>
<input v-model="tpcode" placeholder="请扫描托盘号" focus="true" @confirm="apiGetTryinfo()" ></input>
......@@ -37,6 +39,9 @@
export default {
data() {
return {
loadshow:false,
loadicon:'/static/loading.png',
loadtext:'数据请求中...',
app:this,
testys:10,
selected:"",
......@@ -48,11 +53,17 @@
},
methods:{
apiemptyTry(){
this.loadshow=true
setTimeout(()=>{
this.loadshow=false
},2000)
let data={
"code": this.tpcode
}
emptyTry(data).then(e=>{
if(e){
this.$tip.alert("清空成功");
this.tpcode = ""
this.ystpcode = ""
......
......@@ -4,6 +4,8 @@
<block slot="content">空托出库</block>
<block slot="backText">返回</block>
</cu-custom>
<!-- 添加蒙层 -->
<orange-fullloading :loadicon='loadicon' :loadshow='loadshow' bgcolor="rgba(128, 128, 128, 0.5)" :text="loadtext"></orange-fullloading>
<view class="cu-form-group" style="background: #eee;">
<view class="title " style="width: 30%" >选择分类:</view>
<picker mode="selector" range-key="name" :value="selectedIndex" :range="pickerArray" @change="onPickerChange">
......@@ -66,6 +68,10 @@
export default {
data() {
return {
loadshow:false,
loadicon:'/static/loading.png',
loadtext:'数据请求中...',
/* 配盘点数据结构 */
rqlb:'',
gyscode:'',
app:this,
......@@ -139,8 +145,13 @@
let params={
data:arrList
}
this.loadshow=true
setTimeout(()=>{
this.loadshow=false
},2000)
emptyCall(params).then(
res=>{
this.loadshow=false
if(res){
this.$tip.alert('空托出库成功')
/* 重新查询 */
......
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