|
|
@@ -35,9 +35,15 @@
|
|
|
:disabled="form.status == 1"
|
|
|
>提 交
|
|
|
</el-button>
|
|
|
- <el-button class="el-button--small-yh" style="margin-left: 6px;" type="warning" size="small"
|
|
|
- @click="revokePlan()" v-if="Number(form.status) === 1">撤 销
|
|
|
- </el-button>
|
|
|
+ <el-button
|
|
|
+ class="el-button--small-yh"
|
|
|
+ style="margin-left: 6px;"
|
|
|
+ type="warning"
|
|
|
+ size="small"
|
|
|
+ @click="revokePlan()"
|
|
|
+ v-if="Number(form.status) === 1"
|
|
|
+ >撤 销
|
|
|
+ </el-button>
|
|
|
<!-- <el-dropdown v-if="form.status == 1">
|
|
|
<el-button style="margin-left: 6px;" type="success" size="small">
|
|
|
审 核<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
@@ -488,7 +494,7 @@
|
|
|
import { getDetails as getCustom } from "@/api/tirePartsMall/basicData/customerInformation";
|
|
|
import { getDetails as getDetailsGods } from "@/api/tirePartsMall/basicData/commodityInformation";
|
|
|
import { goodsListXs, goodsPageXs } from "@/api/tirePartsMall/salesManagement/saleOrder";
|
|
|
-import {getDetails, submitOutPlan, itemRemove, auditPlan, revokePlanOut, feeSubmit} from "@/api/storehouse/plan.js";
|
|
|
+import { getDetails, submitOutPlan, itemRemove, auditPlan, revokePlanOut, feeSubmit } from "@/api/storehouse/plan.js";
|
|
|
import { dotList, goodsDetail } from "@/api/tirePartsMall/purchasingManagement/warehouseEntryOrder";
|
|
|
import reportDialog from "@/components/report-dialog/main";
|
|
|
import { dateFormat } from "@/util/date";
|
|
|
@@ -1135,21 +1141,21 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
methods: {
|
|
|
- revokePlan(){
|
|
|
- this.$confirm('确定要撤销该出库单吗?', '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'warning'
|
|
|
- }).then(() => {
|
|
|
- revokePlanOut(this.form.id).then(res => {
|
|
|
- this.$message({
|
|
|
- type: 'success',
|
|
|
- message: '撤销成功!'
|
|
|
- });
|
|
|
- this.getDetail(this.form.id, true)
|
|
|
- })
|
|
|
- })
|
|
|
- },
|
|
|
+ revokePlan() {
|
|
|
+ this.$confirm("确定要撤销该出库单吗?", "提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(() => {
|
|
|
+ revokePlanOut(this.form.id).then(res => {
|
|
|
+ this.$message({
|
|
|
+ type: "success",
|
|
|
+ message: "撤销成功!"
|
|
|
+ });
|
|
|
+ this.getDetail(this.form.id, true);
|
|
|
+ });
|
|
|
+ });
|
|
|
+ },
|
|
|
|
|
|
uploadExceed(limit, files, fileList, column) {
|
|
|
this.$message.error("超出上传限制文件数量");
|
|
|
@@ -1289,7 +1295,8 @@ export default {
|
|
|
res.forEach(item => {
|
|
|
dotList({
|
|
|
storageId: this.form.storageId,
|
|
|
- goodsId: res.goodsId
|
|
|
+ goodsId: res.goodsId,
|
|
|
+ whether: 1
|
|
|
}).then(e => {
|
|
|
this.findObject(this.optionContactsBack.column, "dot").dicData = e.data.data;
|
|
|
});
|
|
|
@@ -1650,7 +1657,7 @@ export default {
|
|
|
let multiList = this.selectionMultilist;
|
|
|
let arr = this.form.planItemsList;
|
|
|
// 获取有id 的数据
|
|
|
- const itemsWithId = multiList.filter(item => item.id);;
|
|
|
+ const itemsWithId = multiList.filter(item => item.id);
|
|
|
let arrIds = itemsWithId.map(item => item.id); // 获取id 数据
|
|
|
// 把选中的删除掉
|
|
|
multiList.forEach(item => {
|