Compare commits
2 Commits
27375030c1
...
0dc9c57c40
Author | SHA1 | Date | |
---|---|---|---|
![]() |
0dc9c57c40 | ||
![]() |
b00333d103 |
@ -1,9 +1,9 @@
|
||||
// 应用全局配置
|
||||
module.exports = {
|
||||
// baseUrl: 'https://www.nuoyunr.com',
|
||||
baseUrl: 'https://www.nuoyunr.com',
|
||||
// baseUrl: 'http://124.222.105.7:48080',
|
||||
// baseUrl: 'http://192.168.1.4:48080',
|
||||
baseUrl: "http://localhost:48080",
|
||||
// baseUrl: "http://localhost:48080",
|
||||
imagesUrl: 'http://shequ.0315e.com/static/images/pages/',
|
||||
baseImageUrl: 'https://www.nuoyunr.com/minio/',
|
||||
shareUrl: 'https://www.lighting-it.cn/share?inviteId=',
|
||||
|
@ -199,6 +199,7 @@ export default {
|
||||
},
|
||||
//是否可以点击
|
||||
canClick:true,
|
||||
subLoading: false
|
||||
};
|
||||
},
|
||||
onLoad(data) {
|
||||
@ -356,11 +357,14 @@ export default {
|
||||
})
|
||||
},
|
||||
confirmOpe(type) {
|
||||
if (!this.subLoading){
|
||||
this.subLoading = true
|
||||
if(this.selectWares.length==0){
|
||||
uni.showToast({
|
||||
title: '请选中要审核的配件!',
|
||||
icon: 'none'
|
||||
})
|
||||
this.subLoading = false
|
||||
return
|
||||
}
|
||||
if (this.canClick) {
|
||||
@ -401,11 +405,14 @@ export default {
|
||||
uni.navigateBack()
|
||||
}, 700)
|
||||
}
|
||||
this.subLoading = false
|
||||
})
|
||||
} catch (e) {
|
||||
this.subLoading = false
|
||||
this.canClick = true
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
|
@ -96,7 +96,7 @@
|
||||
<text class="label"></text>
|
||||
<text class="repairNum"></text>
|
||||
<view class="submit" @click="submit" v-if="!isInput">保存</view>
|
||||
<view class="submit" @click="inWare" v-else>入库</view>
|
||||
<view class="submit" @click="inWare" v-else :disabled="subLoading">入库</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@ -143,6 +143,7 @@ export default {
|
||||
unitList: [],
|
||||
query: null,
|
||||
selectRows: [],
|
||||
subLoading: false
|
||||
};
|
||||
},
|
||||
onLoad(data) {
|
||||
@ -424,6 +425,8 @@ export default {
|
||||
* 入库
|
||||
*/
|
||||
inWare() {
|
||||
if (!this.subLoading){
|
||||
this.subLoading = true
|
||||
const data = {
|
||||
id: this.soId,
|
||||
soNo: createUniqueCodeByHead("RK")
|
||||
@ -452,7 +455,9 @@ export default {
|
||||
uni.navigateBack()
|
||||
}, 700)
|
||||
}
|
||||
this.subLoading = false
|
||||
})
|
||||
}
|
||||
// this.partList.forEach(item => {
|
||||
// item.inCount = item.count
|
||||
// item.goodsId = item.id
|
||||
|
Loading…
Reference in New Issue
Block a user