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

添加蒙层

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