|
@@ -31,7 +31,7 @@
|
|
|
<template v-if="!$util.isEmpty(info)">
|
|
<template v-if="!$util.isEmpty(info)">
|
|
|
<button v-if="info.status == 3" class="admin-button-com big blue" style="width:55vw;margin-top:50upx;" @click="commitChange">确认入库并改价</button>
|
|
<button v-if="info.status == 3" class="admin-button-com big blue" style="width:55vw;margin-top:50upx;" @click="commitChange">确认入库并改价</button>
|
|
|
<button v-if="info.status != 3" class="admin-button-com big blue" style="width:55vw;margin-top:50upx;" @click="commitChange">确认改价</button>
|
|
<button v-if="info.status != 3" class="admin-button-com big blue" style="width:55vw;margin-top:50upx;" @click="commitChange">确认改价</button>
|
|
|
- <button v-if="info.status == 3" class="admin-button-com big default" style="width:55vw;margin-top:30upx;" @click="goBackFn">稍后入库改价</button>
|
|
|
|
|
|
|
+ <button v-if="info.status == 3" class="admin-button-com big default" style="width:55vw;margin-top:30upx;" @click="goBackFn">稍后入库并改价</button>
|
|
|
</template>
|
|
</template>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -174,9 +174,14 @@ export default {
|
|
|
commitModify(){
|
|
commitModify(){
|
|
|
let that = this
|
|
let that = this
|
|
|
let targetId = this.option.id ||0
|
|
let targetId = this.option.id ||0
|
|
|
|
|
+ uni.showLoading({mask:true})
|
|
|
batchChangePrice({data:JSON.stringify(this.productList),changeType:'cg',targetId:targetId}).then(res => {
|
|
batchChangePrice({data:JSON.stringify(this.productList),changeType:'cg',targetId:targetId}).then(res => {
|
|
|
|
|
+ uni.hideLoading()
|
|
|
if(res.code == 1){
|
|
if(res.code == 1){
|
|
|
that.$msg(res.msg)
|
|
that.$msg(res.msg)
|
|
|
|
|
+ setTimeout(function(){
|
|
|
|
|
+ uni.navigateBack()
|
|
|
|
|
+ },1300)
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|