Merge branch 'fengcang' into busUser

# Conflicts:
#	public/config.json
#	src/views/basic/BasicEntrutsRece.vue
#	src/views/business/stockOrder.vue
#	src/views/business/stockOrderDelSearch.vue
#	src/views/business/stockOrderEditor.vue
#	src/views/business/stockOrderNew.vue
#	src/views/business/stockOrderNewDistribution.vue
#	src/views/business/stockOrderSearch.vue
#	src/views/business/stockOrderWaitCheck.vue
#	src/views/inout/IOAddOrder.vue
#	src/views/inout/IOCheckWaitOrder.vue
#	src/views/inout/IOFinishOrder.vue
purchase
anthonyywj2 3 years ago
commit ea7d03a753

@ -5,4 +5,3 @@
"WEBSOCKET_URL": "ws://192.168.0.109:9991/UDI_WMS_MC/api/websocket/",
"hosp_name": "平和县医院"
}

@ -353,8 +353,6 @@ export default {
created() {
this.getList();
this.getSyncConfig();
},
};
</script>

@ -19,9 +19,8 @@
<el-card class="el-card" v-if="checked">
<div>
<el-form :inline="true" :model="erpQuery" style="display: flex" size="mini">
<el-form :inline="true" :model="erpQuery" size="mini">
<el-row>
<el-form-item class="query-form-item">
<el-input
v-model="erpQuery.code"
@ -45,6 +44,9 @@
clearable="true"
placeholder="生产厂家"></el-input>
</el-form-item>
</el-row>
<el-row>
<el-form-item class="query-form-item">
<el-input
v-model="erpQuery.spec"
@ -69,6 +71,7 @@
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="search" @click="searchErpList"></el-button>
</el-form-item>
</el-row>
</el-form>
<el-table

@ -833,10 +833,10 @@ export default {
pidData: {},
deleteLoading: false,
uploadFileUrl: null,
userData: null,
bussinessTypeData: null,
userList: null,
bussinessTypeList: null,
userData: [],
bussinessTypeData: [],
userList: [],
bussinessTypeList: [],
userFormVisible: false,
relBusUserVisile: false,
currentCode: null,
@ -1409,13 +1409,18 @@ export default {
if (res.code === 20000) {
this.userFormVisible = false;
this.$message.success("添加成功");
let loadParam = {
code: this.currentCode
};
this.userQuery = {
code: this.currentCode,
page: 1,
limit: 10
}
//
warehouseUserList(loadParam).then((res) => {
this.userData = res.data;
warehouseUserList(this.userQuery).then((res) => {
this.userData = res.data.list;
this.userTotal = res.data.total;
}).catch((error) => {
this.userData = [];
this.userTotal = 0;
});
} else {
this.$message.error(res.message);
@ -1464,12 +1469,17 @@ export default {
saveWarehouseBussinessType(query).then((res) => {
this.$message.success("添加成功");
//
let loadParam = {
code: this.currentCode
this.busQuery = {
code: this.currentCode,
page: 1,
limit: 10
}
warehouseBussinessTypeList(loadParam).then((res) => {
this.bussinessTypeData = res.data;
warehouseBussinessTypeList(this.busQuery).then((res) => {
this.bussinessTypeData = res.data.list;
this.busTotal = res.data.total;
}).catch((error) => {
this.bussinessTypeData = [];
this.busTotal = 0;
});
}).catch((error) => {
});

@ -425,6 +425,7 @@ export default {
storageChange(row) {
this.formData.fromCorpId = row.code;
this.formData.fromCorp = row.name;
this.formData.fromSubInvCode = null;
this.findSubStorageMethod();
},
@ -435,6 +436,10 @@ export default {
actionChange(item) {
this.curAction = this.getActionItem(item);
// this.formData.locStorageCode = this.curAction.storageCode;
//
this.formData.locStorageCode = null;
this.formData.invWarehouseCode = null;
this.formData.fromCorp = null;
this.findMethod();
},
getActionItem(action) {

@ -61,6 +61,9 @@
<span>{{ getStorageName(scope.row.locStorageCode) }}</span>
</template>
</el-table-column>
<el-table-column
label="创建时间"
prop="actDate"
@ -72,24 +75,6 @@
<span>{{ scope.row.actDate }}</span>
</template>
</el-table-column>
<el-table-column
label="审核时间"
prop="actDate"
width="150"
show-overflow-tooltip="true"
>
<template slot-scope="scope">
<i class="el-icon-time"></i>
<span>{{ scope.row.auditTime }}</span>
</template>
</el-table-column>
<el-table-column label="校验状态" prop="contrastStatus" width="120">
<template slot-scope="scope">
<el-tag :type="(scope.row.contrastStatus === 1) | statusFilterType">
{{ erpCheckStatus[scope.row.contrastStatus] }}
</el-tag>
</template>
</el-table-column>
<el-table-column label="操作" fixed="right" width="150">
<template slot-scope="scope">
<el-button
@ -109,15 +94,6 @@
</template>
</el-table-column>
</el-table>
<el-pagination
:page-size="query.limit"
@current-change="handleCurrentChange"
layout="prev, pager, next"
:total="total"
:current-page="query.page"
>
</el-pagination>
</el-card>
<el-card class="el-card" v-if="true">
@ -246,13 +222,13 @@
</template>
<script>
import {filterOrderForDelete, orderDetail, deleteByOrderId, updateOrderInfo} from "../../api/inout/order";
import store from "../../store";
import {getBussinessType} from "../../api/basic/bussinessType";
import {filterAllByUser} from "../../api/basic/invWarehouse";
import codeReplace from "./codeReplace";
import {filterOrderForDelete, orderDetail, deleteByOrderId, updateOrderInfo} from "../../api/inout/order";
import store from "../../store";
import {getBussinessType} from "../../api/basic/bussinessType";
import {filterAllByUser} from "../../api/basic/invWarehouse";
import codeReplace from "./codeReplace";
export default {
export default {
name: "stockOrderDelete",
data() {
return {
@ -296,9 +272,12 @@
"8": "平衡补录单据",
},
erpCheckStatus: {
1: "已完成",
0: "已完成",
2: "已完成",
// error: "",
// null: "",
// success: "",
1: "校验异常",
0: "未校验",
2: "校验成功",
},
isSp: store.getters.customerId,
detailFormData: {},
@ -581,12 +560,12 @@
this.getBusType();
this.getStorage();
}
}
}
</script>
<style scoped>
.el-dialog {
.el-dialog {
display: flex;
flex-direction: column;
margin: 0 !important;
@ -594,17 +573,17 @@
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
}
.el-dialog .el-dialog__body {
.el-dialog .el-dialog__body {
flex: 1;
overflow: auto;
}
}
.el-table /deep/ .highlight-row {
.el-table /deep/ .highlight-row {
background: #cae3f9;
}
}
</style>

@ -564,18 +564,18 @@ export default {
},
distributionVisible: false,
detailFormRules: {
// batchNo: [
// {required: true, message: "", trigger: "blur"}
// ],
// productDate: [
// {required: true, message: "", trigger: "blur"}
// ],
// expireDate: [
// {required: true, message: "", trigger: "blur"}
// ],
// sweepCount: [
// {required: true, message: "", trigger: "blur"}
// ]
batchNo: [
{required: true, message: "请输入批次号", trigger: "blur"}
],
productDate: [
{required: true, message: "请输入生产日期", trigger: "blur"}
],
expireDate: [
{required: true, message: "请输入失效日期", trigger: "blur"}
],
sweepCount: [
{required: true, message: "请输入扫码数量", trigger: "blur"}
]
},
detailFormVisible: false,
detailFormData: {},

@ -62,7 +62,7 @@
</el-col>
</el-row>
<el-row :gutter="20" style="margin-top: -10px">
<el-row :gutter="20" style="margin-top: -5px">
<el-col :span="3">
<div class="ao-text">
<span>业务类型</span>
@ -164,7 +164,6 @@
</el-col>
</el-row>
<el-row :gutter="20" style="margin-top: -10px">
<el-col :span="3">
<div class="ao-text">
@ -457,7 +456,6 @@ import {filterAll, filterAllByLoc, filterAllByUser} from "@/api/basic/invWarehou
import dialogInvProduct from "../inventory/DialogInvProduct"
import {filterSubByInv} from "@/api/basic/invSubWarehouse";
import {isBlank} from "@/utils/strUtil";
import {filterDepts} from "@/api/auth/authDept";
export default {
name: "idQuery",
@ -495,7 +493,6 @@ export default {
type: null,
corpName: "",
corpId: "",
deptCode: null,
},
formRules: {
corpName: [
@ -828,6 +825,9 @@ export default {
locStorageCode: this.formData.locStorageCode,
invWarehouseCode: this.formData.invWarehouseCode,
};
if (!isBlank(this.formData.unitIdFk) && this.formData.unitIdFk === this.formData.corpId) {
this.invQueryData.corpId = this.formData.corpId;
}
this.selectInvProductVisible = true;
} else if (item.mainAction == "WareHouseIn" && this.curAction.corpType == 1 && this.formData.noInvOut != true) {

@ -165,8 +165,7 @@ export default {
keys: [],
},
dataList: [],
pageTotal: 1,
total: 1,
pageTotal: 0,
currentRow: null,
loading: false,
udiRlDetailVisible: false,
@ -224,7 +223,7 @@ export default {
nameCode: "",
ggxh: null,
page: 1,
limit: 20,
limit: 10,
addType: 1,
billType: this.data.formData.billType,
corpId: this.data.formData.corpId,

@ -469,7 +469,7 @@ import selectRlDialog from "./DialogSelectRl";
import editCodeDialog from "./editCode";
import A from "../../plugin/KeyScaner"
import {deleteLog} from "@/api/basic/udiinfolog";
import {filterDepts} from "@/api/auth/authDept";
export default {
name: "idQuery",
@ -559,7 +559,6 @@ export default {
checkSuccess: false,
codeDetail: null,
editTitle: "编辑条码",
fromDeptOptions: [],
};
},
components: {
@ -583,7 +582,6 @@ export default {
fromCorpId: this.formData.fromCorpId,
outChangeEnable: this.formData.outChangeEnable,
preCheck: this.formData.preCheck,
deptCode: this.formData.deptCode,
}
submitOrderWeb(tQuery)
.then((response) => {
@ -922,6 +920,9 @@ export default {
code: this.formData.invWarehouseCode,
enabled: true,
};
if (isBlank(query.code)) {
query.code = this.$store.getters.locSubInvCode;
}
getLocalJoinByUser(query)
.then((response) => {
this.busTypes = response.data.list || [];
@ -1258,15 +1259,9 @@ export default {
this.findStorageMethod();
}
}
this.findSubInvByInv(this.formData.locStorageCode);
}
,
}
;
};
</script>

@ -262,19 +262,18 @@
import {
orderListError,
deleteByOrderId,
commitOrder, addCommitOrder,
addCommitOrder,
updateUnit,
} from "../../api/inout/order";
import draggable from "vuedraggable";
import codeDetail from "./IONewCode";
import addOrder from "./IOAddOrder";
import store from "../../store";
import {getBussinessType} from "../../api/basic/bussinessType";
import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain";
import {filterAllByUser} from "@/api/basic/invWarehouse";
import {getLocalJoinByUser} from "@/api/basic/busLocalType";
import {filterSubByInv} from "@/api/basic/invSubWarehouse";
import {isBlank} from "@/utils/strUtil";
const formJson = {
site_id: "",
@ -412,7 +411,6 @@ export default {
},
selectUnit(row) {
console.log(row.id);
this.unitUpdateQuery.id = this.curIndex;
this.unitUpdateQuery.fromCorp = row.name;
this.unitUpdateQuery.fromCorpId = row.erpId;
@ -432,7 +430,6 @@ export default {
this.filterQuery.customerId = store.getters.customerId;
orderListError(this.filterQuery)
.then((response) => {
console.log(response)
this.loading = false;
this.list = response.data.list || [];
this.total = response.data.total || 0;
@ -449,7 +446,6 @@ export default {
this.deleteData.id = data;
deleteByOrderId(this.deleteData)
.then((response) => {
if (response.code == 20000) {
this.getList();
this.$message({
@ -460,13 +456,16 @@ export default {
this.$message.error("补录单据列表已不存在该扫码单据!");
this.getList();
}
})
.catch(() => {
});
},
deleteDialog(rowId) {
if (isBlank(rowId)) {
this.$message.error("请选择需要删除的数据!");
return;
}
this.$confirm("此操作将永久删除该订单, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
@ -503,7 +502,6 @@ export default {
var corpOrderId = mOrder.remark;
this.errorDetail = mOrder.remark;
console.log(corpOrderId + " " + mOrder + " " + mOrder.remark);
this.dialogVisible = true;
},

@ -106,6 +106,7 @@
<el-table-column label="所属部门" prop="deptName" width="120">
</el-table-column>
<el-table-column label="创建时间" prop="actDate" show-overflow-tooltip>
<template slot-scope="scope">
<i class="el-icon-time"></i>
@ -263,8 +264,6 @@
<script>
import {
orderListError,
codeList,
filterOrder,
deleteByOrderId,
commitOrder,
@ -273,14 +272,13 @@ import {
import {getBasicUnitMaintains} from "../../api/basic/basicUnitMaintain"
import draggable from "vuedraggable";
import codeDetail from "./errorCode";
import ioErrorOrder from "./IOErrorOrder";
import addOrder from "./IOAddOrder";
import store from "../../store";
import {getBussinessType} from "../../api/basic/bussinessType";
import {filterAllByUser} from "@/api/basic/invWarehouse";
import {getLocalJoinByUser} from "@/api/basic/busLocalType";
import {filterSubByInv} from "@/api/basic/invSubWarehouse";
import {isBlank} from "@/utils/strUtil";
const formJson = {
site_id: "",
@ -515,6 +513,12 @@ export default {
this.filterQuery.customerId = store.getters.customerId;
// this.filterQuery.status = 1;
// this.filterQuery.statusOrOne = -1;
if (isBlank(this.filterQuery.locStorageCode)) {
this.filterQuery.locStorageCode = this.$store.getters.locInvCode;
this.filterQuery.invWarehouseCode = this.$store.getters.locSubInvCode;
}
filterOrder(this.filterQuery)
.then((response) => {
this.loading = false;

@ -83,6 +83,7 @@ import store from "../../store";
import {getBussinessType} from "../../api/basic/bussinessType";
import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain";
import {getStockOrderDetailInstrumentById} from "@/api/inout/stockOrder";
import {isBlank} from "@/utils/strUtil";
export default {
@ -115,12 +116,6 @@ export default {
unitFk: null,
invStorageCode: null,
},
detailQuery: {
code: null,
productIdFk: null,
page: 1,
limit: 20,
},
list: [],
codeDetailVisible: false,
total: 0,
@ -327,6 +322,9 @@ export default {
this.filterQuery.invStorageCode = this.invQueryData.locStorageCode;
this.filterQuery = Object.assign(this.filterQuery, query);
this.filterQuery.limit = parseInt(this.filterQuery.limit);
if (!isBlank(this.invQueryData.corpId)) {
this.filterQuery.supId = this.invQueryData.corpId;
}
//
this.getList();
},

@ -77,7 +77,7 @@
<el-form :inline="true" :model="query" class="query-form" size="mini">
<el-form-item class="query-form-item">
<el-input v-model="query.code" placeholder="条码查询"></el-input>
<el-input v-model="query.code" placeholder="条码查询" clearable></el-input>
</el-form-item>
<el-form-item>

@ -146,7 +146,7 @@ import codeDetail from "./InvProductsDetail";
import store from "../../store";
import {getBussinessType} from "../../api/basic/bussinessType";
import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain";
import {filterAllByUser, filterUplLocInv} from "@/api/basic/invWarehouse";
import {filterUplLocInv} from "@/api/basic/invWarehouse";
import {filterSubByInv} from "@/api/basic/invSubWarehouse";
@ -377,6 +377,7 @@ export default {
this.getList();
this.findStorageCode();
this.getStorage();
this.findMethod();
},
};
</script>

@ -26,11 +26,11 @@
>
<el-option
v-for="item in fromOptions"
:key="item.companyName"
:label="item.companyName"
:value="item.customerId"
:key="item.name"
:label="item.name"
:value="item.erpId"
>
<span style="float: left">{{ item.companyName }}</span>
<span style="float: left">{{ item.name }}</span>
</el-option>
</el-select>
</el-form-item>
@ -307,12 +307,10 @@ export default {
});
},
findMethod(query) {
console.log(query);
this.fromOptions = [];
let cQuery = {
key: query,
customerName: query,
};
getBasicUnitMaintains(cQuery)
.then((response) => {

Loading…
Cancel
Save