|
|
@@ -15,6 +15,10 @@
|
|
|
<view class="cell-label"> 操作</view>
|
|
|
<view class="cell-value"> {{ outData.adminName || "" }}</view>
|
|
|
</view>
|
|
|
+ <view class="info-cell" v-if="outData.debt == 1">
|
|
|
+ <view class="cell-label"> 结算</view>
|
|
|
+ <view class="cell-value"> <text style="color:red;">欠款</text></view>
|
|
|
+ </view>
|
|
|
<view class="info-cell">
|
|
|
<view class="cell-label"> 状态</view>
|
|
|
<view class="cell-value">{{getItemStatusName(outData.status)}}</view>
|
|
|
@@ -69,13 +73,16 @@
|
|
|
<view class="btn-view" v-if="outData.status">
|
|
|
<button v-if="outData.status != OUT_STATUS.CANCEL && outData.statusName != '已出库'" class="admin-button-com middle" @click="cancelEvent" > 取消 </button>
|
|
|
<button v-if="outData.status == OUT_STATUS.CONFIRM" class="admin-button-com middle" @click="confirmEventPop" > 确认 </button>
|
|
|
+
|
|
|
+ <button v-if="outData.status == 2 && outData.debt == 1" class="admin-button-com middle" @click="clearOrder()" > 结清 </button>
|
|
|
+
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
|
<script>
|
|
|
import { OUT_STATUS } from "@/utils/declare";
|
|
|
-import { getStockOutDetailApi, confirmStockOutOrderApi, cancelStockOutOrderApi } from "@/api/storehouse/stock";
|
|
|
+import { getStockOutDetailApi, confirmStockOutOrderApi, cancelStockOutOrderApi,clearOutOrder } from "@/api/storehouse/stock";
|
|
|
import AppWrapperEmpty from "@/components/app-wrapper-empty";
|
|
|
export default {
|
|
|
components: { AppWrapperEmpty },
|
|
|
@@ -151,6 +158,16 @@ export default {
|
|
|
await this.initData();
|
|
|
uni.showToast({ title: "取消成功" })
|
|
|
},
|
|
|
+ clearOrder(){
|
|
|
+ let that = this
|
|
|
+ that.$util.confirmModal({content:'确定结清?'},() => {
|
|
|
+ clearOutOrder({orderSn:this.orderSn}).then(res=>{
|
|
|
+ if(res.code == 1){
|
|
|
+ that.initData()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
confirmEventPop(){
|
|
|
let that = this;
|
|
|
that.$util.confirmModal({content:'确定出库?'},() => {
|