|
@@ -194,13 +194,14 @@
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<view class="app-footer open_btn">
|
|
<view class="app-footer open_btn">
|
|
|
|
|
+ <view v-if="detailInfo.status == 3" @click="cancelIn()" class="admin-button-com big default">取消入库</view>
|
|
|
<view v-if="detailInfo.status == 3" @click="confirmIn()" class="admin-button-com big blue">确认入库</view>
|
|
<view v-if="detailInfo.status == 3" @click="confirmIn()" class="admin-button-com big blue">确认入库</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
|
-import { getPurchaseDetailApi,updateRemark,printAll,printItem,confirmPutIn } from "@/api/purchase";
|
|
|
|
|
|
|
+import { getPurchaseDetailApi,updateRemark,printAll,printItem,confirmPutIn,cancelPutIn } from "@/api/purchase";
|
|
|
import productMins from "@/mixins/product";
|
|
import productMins from "@/mixins/product";
|
|
|
import TuiListCell from "@/components/plugin/list-cell";
|
|
import TuiListCell from "@/components/plugin/list-cell";
|
|
|
export default {
|
|
export default {
|
|
@@ -222,6 +223,18 @@ export default {
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ cancelIn(){
|
|
|
|
|
+ let that = this
|
|
|
|
|
+ that.$util.confirmModal({content:'确认取消此单?'},() => {
|
|
|
|
|
+ uni.showLoading({mask:true})
|
|
|
|
|
+ cancelPutIn({id:that.detailInfo.id}).then(res=>{
|
|
|
|
|
+ uni.hideLoading()
|
|
|
|
|
+ if(res.code == 1){
|
|
|
|
|
+ that.init()
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
confirmIn(){
|
|
confirmIn(){
|
|
|
let that = this
|
|
let that = this
|
|
|
that.$util.confirmModal({content:'确认现在入库?'},() => {
|
|
that.$util.confirmModal({content:'确认现在入库?'},() => {
|