|
|
@ -95,13 +95,13 @@
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="操作" width="180" fixed="right">
|
|
|
|
<el-table-column label="操作" width="180" fixed="right">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<el-button
|
|
|
|
<!-- <el-button
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|
size="small"
|
|
|
|
size="small"
|
|
|
|
@click.native.stop="addOrders(scope.row)"
|
|
|
|
@click.native.stop="addOrders(scope.row)"
|
|
|
|
>编辑
|
|
|
|
>编辑
|
|
|
|
</el-button
|
|
|
|
</el-button
|
|
|
|
>
|
|
|
|
>-->
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|
size="small"
|
|
|
|
size="small"
|
|
|
@ -240,8 +240,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
orderListError,
|
|
|
|
additionalOrderList,
|
|
|
|
getSupplementOrder,
|
|
|
|
|
|
|
|
deleteByOrderId,
|
|
|
|
deleteByOrderId,
|
|
|
|
addCommitOrder,
|
|
|
|
addCommitOrder,
|
|
|
|
updateUnit
|
|
|
|
updateUnit
|
|
|
@ -250,9 +249,8 @@ import draggable from "vuedraggable";
|
|
|
|
import codeDetail from "./errorCode";
|
|
|
|
import codeDetail from "./errorCode";
|
|
|
|
import addOrder from "./addOrder";
|
|
|
|
import addOrder from "./addOrder";
|
|
|
|
import store from "../../store";
|
|
|
|
import store from "../../store";
|
|
|
|
import { getBasicUnitMaintains } from "@/api/basic/basicUnitMaintain";
|
|
|
|
import {getUnitMaintain} from "../../api/receipts/unitMaintain";
|
|
|
|
import { filterAllByUser } from "@/api/basic/invWarehouse";
|
|
|
|
import { filterAllByUser } from "@/api/basic/invWarehouse";
|
|
|
|
import { getLocalJoinByUser } from "@/api/basic/busLocalType";
|
|
|
|
|
|
|
|
import {getBusTypeByUser} from "@/api/warehouse/BusRole";
|
|
|
|
import {getBusTypeByUser} from "@/api/warehouse/BusRole";
|
|
|
|
|
|
|
|
|
|
|
|
const formJson = {
|
|
|
|
const formJson = {
|
|
|
@ -268,6 +266,7 @@ export default {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
filterQuery: {
|
|
|
|
filterQuery: {
|
|
|
|
id: "",
|
|
|
|
id: "",
|
|
|
|
|
|
|
|
orderId: "",
|
|
|
|
mainAction: null,
|
|
|
|
mainAction: null,
|
|
|
|
action: null,
|
|
|
|
action: null,
|
|
|
|
page: 1,
|
|
|
|
page: 1,
|
|
|
@ -375,7 +374,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
getUnitList() {
|
|
|
|
getUnitList() {
|
|
|
|
this.loading = true;
|
|
|
|
this.loading = true;
|
|
|
|
getBasicUnitMaintains(this.unitquery)
|
|
|
|
getUnitMaintain(this.unitquery)
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
|
this.loading = false;
|
|
|
|
this.loading = false;
|
|
|
|
this.unitlist = response.data.page.list || [];
|
|
|
|
this.unitlist = response.data.page.list || [];
|
|
|
@ -386,7 +385,6 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
selectUnit(row) {
|
|
|
|
selectUnit(row) {
|
|
|
|
console.log(row.id);
|
|
|
|
|
|
|
|
this.unitUpdateQuery.id = this.curIndex;
|
|
|
|
this.unitUpdateQuery.id = this.curIndex;
|
|
|
|
this.unitUpdateQuery.fromCorp = row.name;
|
|
|
|
this.unitUpdateQuery.fromCorp = row.name;
|
|
|
|
this.unitUpdateQuery.fromCorpId = row.erpId;
|
|
|
|
this.unitUpdateQuery.fromCorpId = row.erpId;
|
|
|
@ -404,9 +402,8 @@ export default {
|
|
|
|
this.loading = true;
|
|
|
|
this.loading = true;
|
|
|
|
this.filterQuery.status = 5;
|
|
|
|
this.filterQuery.status = 5;
|
|
|
|
this.filterQuery.customerId = store.getters.customerId;
|
|
|
|
this.filterQuery.customerId = store.getters.customerId;
|
|
|
|
orderListError(this.filterQuery)
|
|
|
|
additionalOrderList(this.filterQuery)
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
|
console.log(response);
|
|
|
|
|
|
|
|
this.loading = false;
|
|
|
|
this.loading = false;
|
|
|
|
this.list = response.data.list || [];
|
|
|
|
this.list = response.data.list || [];
|
|
|
|
this.total = response.data.total || 0;
|
|
|
|
this.total = response.data.total || 0;
|
|
|
@ -468,27 +465,18 @@ export default {
|
|
|
|
handleErrorDetail(poistion) {
|
|
|
|
handleErrorDetail(poistion) {
|
|
|
|
var mOrder = this.list[poistion];
|
|
|
|
var mOrder = this.list[poistion];
|
|
|
|
var corpOrderId = mOrder.remark;
|
|
|
|
var corpOrderId = mOrder.remark;
|
|
|
|
|
|
|
|
|
|
|
|
this.errorDetail = mOrder.remark;
|
|
|
|
this.errorDetail = mOrder.remark;
|
|
|
|
console.log(corpOrderId + " " + mOrder + " " + mOrder.remark);
|
|
|
|
|
|
|
|
this.dialogVisible = true;
|
|
|
|
this.dialogVisible = true;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
intentDetail(row) {
|
|
|
|
intentDetail(row) {
|
|
|
|
this.codeDetailVisible = true;
|
|
|
|
this.codeDetailVisible = true;
|
|
|
|
this.idQuery.id = row.id;
|
|
|
|
this.idQuery.id = row.orderId;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
getBusType() {
|
|
|
|
getBusType() {
|
|
|
|
let query = {
|
|
|
|
let query = {
|
|
|
|
enabled: true
|
|
|
|
enabled: true
|
|
|
|
};
|
|
|
|
};
|
|
|
|
/*getLocalJoinByUser(query)
|
|
|
|
|
|
|
|
.then((response) => {
|
|
|
|
|
|
|
|
this.busTypes = response.data.list || [];
|
|
|
|
|
|
|
|
this.filterQuery.billAction = this.busTypes[0].action;
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.catch(() => {
|
|
|
|
|
|
|
|
});*/
|
|
|
|
|
|
|
|
getBusTypeByUser(query).then((res) => {
|
|
|
|
getBusTypeByUser(query).then((res) => {
|
|
|
|
this.busTypes = res.data.list || [];
|
|
|
|
this.busTypes = res.data.list || [];
|
|
|
|
this.filterQuery.billAction = this.busTypes[0].action;
|
|
|
|
this.filterQuery.billAction = this.busTypes[0].action;
|
|
|
@ -518,13 +506,12 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
addOrders(row) {
|
|
|
|
addOrders(row) {
|
|
|
|
console.log(row);
|
|
|
|
|
|
|
|
this.idQuery.id = "";
|
|
|
|
this.idQuery.id = "";
|
|
|
|
this.idQuery.actDate = "";
|
|
|
|
this.idQuery.actDate = "";
|
|
|
|
this.idQuery.corpOrderId = "";
|
|
|
|
this.idQuery.corpOrderId = "";
|
|
|
|
this.idQuery.billType = row.action;
|
|
|
|
this.idQuery.billType = row.action;
|
|
|
|
if (row.id !== null && row.id !== undefined && row.id !== "") {
|
|
|
|
if (row.id !== null && row.orderId !== undefined && row.orderId !== "") {
|
|
|
|
this.idQuery.id = row.id;
|
|
|
|
this.idQuery.id = row.orderId;
|
|
|
|
this.idQuery.actDate = row.actDate;
|
|
|
|
this.idQuery.actDate = row.actDate;
|
|
|
|
this.idQuery.corpOrderId = row.corpOrderId;
|
|
|
|
this.idQuery.corpOrderId = row.corpOrderId;
|
|
|
|
}
|
|
|
|
}
|
|
|
|