|
@@ -15,6 +15,12 @@
|
|
|
<el-button type="primary" @click="editCustomer" :loading="subLoading" v-if="detailData.status != 3"
|
|
|
size="small">保存数据
|
|
|
</el-button>
|
|
|
+ <el-button type="primary" @click="withdraw(0)" :loading="subLoading" v-if="form.status == 8"
|
|
|
+ size="small">确认出库
|
|
|
+ </el-button>
|
|
|
+ <el-button type="primary" @click="withdraw(0)" :loading="subLoading" v-if="form.status == 2"
|
|
|
+ size="small">撤销出库
|
|
|
+ </el-button>
|
|
|
<el-dropdown style="padding: 0 6px;line-height: 0">
|
|
|
<el-button type="primary" size="small" :loading="subLoading" :disabled="!form.id">
|
|
|
审核处理<i class="el-icon-arrow-down el-icon--right"></i>
|
|
@@ -226,7 +232,7 @@ import {
|
|
|
financingExcess,
|
|
|
revokeWarehousing,
|
|
|
delItem,
|
|
|
- scanningCodeAddPc
|
|
|
+ scanningCodeAddPc, withdraw
|
|
|
} from "@/api/purchasingManagement/inStock";
|
|
|
import tableOption from "./config/customerContact.json";
|
|
|
import tableOptionTwo from "./config/customerContactTwo.json";
|
|
@@ -835,6 +841,49 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ withdraw(type) {
|
|
|
+ if (type == 0) {
|
|
|
+ this.$confirm("是否确认出库?", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(() => {
|
|
|
+ this.subLoading = true
|
|
|
+ withdraw({
|
|
|
+ id: this.form.id,
|
|
|
+ type: "CK",
|
|
|
+ status: 2,
|
|
|
+ isIssue: 7,
|
|
|
+ toolType: 'app',
|
|
|
+ scanningComparison: "Y"
|
|
|
+ }).then(res => {
|
|
|
+ this.$message.success("出库成功")
|
|
|
+ this.getDetail(this.form.id)
|
|
|
+ this.subLoading = false
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }else {
|
|
|
+ this.$confirm("是否确认撤销?", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(() => {
|
|
|
+ this.subLoading = true
|
|
|
+ withdraw({
|
|
|
+ id: this.form.id,
|
|
|
+ type: "CK",
|
|
|
+ status: 8,
|
|
|
+ isIssue: 5,
|
|
|
+ toolType: 'app',
|
|
|
+ scanningComparison: "N",
|
|
|
+ }).then(res => {
|
|
|
+ this.$message.success("撤销成功")
|
|
|
+ this.getDetail(this.form.id)
|
|
|
+ this.subLoading = false
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
//请核
|
|
|
auditCheck() {
|
|
|
let orderFeesList = this.$refs.feeInfo.submitData();
|