Merge branch 'fencang' into busUser

# Conflicts:
#	src/views/warehouse/IOErrorOrder.vue
featFunction
anthonywj 3 years ago
commit 625727248d

@ -15,55 +15,58 @@
<el-card class="el-card" v-if="checked"> <el-card class="el-card" v-if="checked">
<div> <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-form-item class="query-form-item"> <el-input
<el-input v-model="erpQuery.code"
v-model="erpQuery.code" placeholder="产品编码/商品条码/医保编码"
placeholder="产品编码/商品条码/医保编码" clearable="true"
clearable="true" @keyup.enter.native="keyupErp_submit($event)"
@keyup.enter.native="keyupErp_submit($event)" ></el-input>
></el-input> </el-form-item>
</el-form-item> <el-form-item class="query-form-item">
<el-form-item class="query-form-item"> <el-input v-model="erpQuery.name"
<el-input v-model="erpQuery.name" clearable="true"
clearable="true" placeholder="产品名称"></el-input>
placeholder="产品名称"></el-input> </el-form-item>
</el-form-item> <el-form-item class="query-form-item">
<el-form-item class="query-form-item"> <el-input v-model="erpQuery.registerNo"
<el-input v-model="erpQuery.registerNo" clearable="true"
clearable="true" placeholder="注册/备案凭证号"></el-input>
placeholder="注册/备案凭证号"></el-input> </el-form-item>
</el-form-item> <el-form-item class="query-form-item">
<el-form-item class="query-form-item"> <el-input v-model="erpQuery.manufactory"
<el-input v-model="erpQuery.manufactory" clearable="true"
clearable="true" placeholder="生产厂家"></el-input>
placeholder="生产厂家"></el-input> </el-form-item>
</el-form-item> </el-row>
<el-form-item class="query-form-item">
<el-input <el-row>
v-model="erpQuery.spec" <el-form-item class="query-form-item">
clearable="true" <el-input
placeholder="规格型号" v-model="erpQuery.spec"
></el-input> clearable="true"
</el-form-item> placeholder="规格型号"
<el-form-item class="query-form-item"> ></el-input>
<el-select v-model="thirdSysFk" placeholder="请选择第三方系统" disabled="true"> </el-form-item>
<el-option <el-form-item class="query-form-item">
v-for="item in thirdSys" <el-select v-model="thirdSysFk" placeholder="请选择第三方系统" disabled="true">
:key="item.value" <el-option
:label="item.thirdName" v-for="item in thirdSys"
:key="item.value"
:value="item.thirdId"> :label="item.thirdName"
<span style="float: left">{{ item.thirdName }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.thirdId }}</span> :value="item.thirdId">
</el-option> <span style="float: left">{{ item.thirdName }}</span>
</el-select> <span style="float: right; color: #8492a6; font-size: 13px">{{ item.thirdId }}</span>
</el-form-item> </el-option>
<el-form-item style="display: flex"> </el-select>
<el-button type="primary" icon="search" @click="searchErpList"></el-button> </el-form-item>
</el-form-item> <el-form-item style="display: flex">
<el-button type="primary" icon="search" @click="searchErpList"></el-button>
</el-form-item>
</el-row>
</el-form> </el-form>
<el-table <el-table

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

@ -142,6 +142,7 @@
:page-size="filterQuery.limit" :page-size="filterQuery.limit"
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
layout="prev, pager, next" layout="prev, pager, next"
:current-page="filterQuery.page"
:total="total" :total="total"
></el-pagination> ></el-pagination>
</el-card> </el-card>
@ -505,7 +506,6 @@ export default {
this.getList(); this.getList();
}, },
handleSelectionChange(val) { handleSelectionChange(val) {
console.log(val);
this.multipleSelection = val; this.multipleSelection = val;
}, },
@ -515,7 +515,6 @@ export default {
this.errDialogVisible = true; this.errDialogVisible = true;
}, },
findMethod(query) { findMethod(query) {
console.log(query);
this.fromOptions = []; this.fromOptions = [];
let cQuery = { let cQuery = {
key: query, key: query,
@ -584,7 +583,6 @@ export default {
this.loading = true; this.loading = true;
this.filterQuery.customerId = store.getters.customerId; this.filterQuery.customerId = store.getters.customerId;
if (!this.$isBlank(this.filterQuery.code)) { if (!this.$isBlank(this.filterQuery.code)) {
console.log(this.filterQuery.code)
let code = this.filterQuery.code; let code = this.filterQuery.code;
this.filterQuery.code = code.replace("\r","") this.filterQuery.code = code.replace("\r","")
} }
@ -597,6 +595,9 @@ export default {
this.total = response.data.total || 0; this.total = response.data.total || 0;
} else { } else {
this.loading = false; this.loading = false;
this.list = [];
this.detailList = [];
this.total = 0;
this.$message.error(response.message); this.$message.error(response.message);
} }
@ -685,7 +686,6 @@ export default {
this.successOrderExportPDFSettingVisible = true; this.successOrderExportPDFSettingVisible = true;
}, },
successOrderExportPDF(row) { successOrderExportPDF(row) {
console.log(row)
let tQuery = { let tQuery = {
orderId: row.id, orderId: row.id,
customerId: store.getters.customerId customerId: store.getters.customerId
@ -720,7 +720,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.unitid; this.unitUpdateQuery.fromCorpId = row.unitid;
@ -892,7 +891,6 @@ export default {
}, },
uploadOrderDialog(value) { uploadOrderDialog(value) {
console.log(value.id + "---" + value.orderid);
this.uploadQuery = { this.uploadQuery = {
orderId: value.id, orderId: value.id,
}; };

@ -56,10 +56,6 @@
>导入比对 >导入比对
</el-button </el-button
> >
<!-- <el-button type="primary" icon="search" @click="combineErps"
>合并下载</el-button
> -->
</el-button-group> </el-button-group>
</el-form-item> </el-form-item>
</el-row> </el-row>

@ -226,6 +226,7 @@ import {getLocalJoinByUser} from "@/api/basic/busLocalType";
import {submitOrderWeb} from "@/api/warehouse/order"; import {submitOrderWeb} from "@/api/warehouse/order";
import {stockOrderChange, stockOrderDetail} from "@/api/warehouse/stockOrder"; import {stockOrderChange, stockOrderDetail} from "@/api/warehouse/stockOrder";
import {filterSubByInv} from "@/api/basic/invSubWarehouse"; import {filterSubByInv} from "@/api/basic/invSubWarehouse";
import {isBlank} from "@/utils/strUtil";
export default { export default {
name: "DialogcChangeNewOrder", name: "DialogcChangeNewOrder",
@ -432,7 +433,12 @@ export default {
storageChange(row) { storageChange(row) {
this.formData.fromCorpId = row.code; this.formData.fromCorpId = row.code;
this.formData.fromCorp = row.name; this.formData.fromCorp = row.name;
this.findSubStorageMethod(); if (isBlank(this.formData.fromCorp)) {
this.fromSubStorageOptions = [];
this.formData.fromSubInvCode = null;
} else {
this.findSubStorageMethod();
}
}, },
unitChange(row) { unitChange(row) {
@ -441,7 +447,8 @@ export default {
}, },
actionChange(item) { actionChange(item) {
this.curAction = this.getActionItem(item); this.curAction = this.getActionItem(item);
// this.formData.locStorageCode = this.curAction.storageCode; this.formData.fromCorp = null;
this.formData.fromSubInvCode = null;
this.findMethod(); this.findMethod();
}, },
getActionItem(action) { getActionItem(action) {

@ -947,7 +947,6 @@ export default {
.then((response) => { .then((response) => {
this.storageList = response.data || []; this.storageList = response.data || [];
if (this.storageList.length > 0) { if (this.storageList.length > 0) {
this.getSubInvList();
this.getList(); this.getList();
} }
}) })

@ -821,12 +821,22 @@ export default {
}); });
} else if (response.code == 507) { } else if (response.code == 507) {
this.editTitle = response.message;
this.editOriginCodeVisible = true; this.editOriginCodeVisible = true;
this.editTitle = response.message;
this.formData.produceDate = response.data.produceDate; this.formData.produceDate = response.data.produceDate;
this.formData.expireDate = response.data.expireDate; this.formData.expireDate = response.data.expireDate;
this.formData.batchNo = response.data.batchNo; this.formData.batchNo = response.data.batchNo;
this.formData.serialNo = response.data.serialNo; this.formData.serialNo = response.data.serialNo;
this.$message({
type: 'error',
message: "提交失败!" + this.editTitle,
customClass: 'messageIndex'
});
// this.$message.error("" + this.editTitle);
} else { } else {
this.$alert(response.message, '提示', { this.$alert(response.message, '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
@ -1051,6 +1061,7 @@ export default {
filterSubByInv(query) filterSubByInv(query)
.then((response) => { .then((response) => {
this.subInvList = response.data || []; this.subInvList = response.data || [];
this.fromSubStorageOptions = response.data || [];
if (this.subInvList != null && this.subInvList.length == 1) { if (this.subInvList != null && this.subInvList.length == 1) {
this.formData.invWarehouseCode = this.subInvList[0].code; this.formData.invWarehouseCode = this.subInvList[0].code;
this.getBusType(); this.getBusType();
@ -1246,7 +1257,7 @@ export default {
} }
} }
this.findSubInvByInv(this.formData.locStorageCode); this.findSubInvByInv(this.formData.locStorageCode);
this.findSubStorageMethod(); // this.findSubStorageMethod();
this.getBusType(); this.getBusType();
@ -1256,6 +1267,9 @@ export default {
<style> <style>
.messageIndex {
z-index: 9999 !important;
}
.ao-text { .ao-text {
width: 100%; width: 100%;

@ -547,7 +547,7 @@ export default {
} else if (response.code == 508) { } else if (response.code == 508) {
this.originCode = ""; this.originCode = "";
this.formData.code = "01" + response.data.nameCode; this.formData.code = "01" + response.data.nameCode;
this.originCode =this.formData.code ; this.originCode = this.formData.code;
// this.$confirm("\n" + // this.$confirm("\n" +
// "DI:" + response.data.nameCode + "\n" + // "DI:" + response.data.nameCode + "\n" +
// "" + response.data.cpmctymc + "\n" + // "" + response.data.cpmctymc + "\n" +
@ -685,6 +685,13 @@ export default {
this.formData.expireDate = response.data.expireDate; this.formData.expireDate = response.data.expireDate;
this.formData.batchNo = response.data.batchNo; this.formData.batchNo = response.data.batchNo;
this.formData.serialNo = response.data.serialNo; this.formData.serialNo = response.data.serialNo;
this.$message({
type: 'error',
message: "提交失败!" + this.editTitle,
customClass: 'messageIndex'
});
} else { } else {
this.$alert(response.message, '提示', { this.$alert(response.message, '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',

@ -52,7 +52,7 @@
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="供应商" label="供应商"
prop="supId" prop="supName"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<el-table-column <el-table-column

@ -76,24 +76,24 @@
<span>{{ scope.row.actDate }}</span> <span>{{ scope.row.actDate }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <!-- <el-table-column-->
label="审核时间" <!-- label="审核时间"-->
prop="actDate" <!-- prop="actDate"-->
width="150" <!-- width="150"-->
show-overflow-tooltip="true" <!-- show-overflow-tooltip="true"-->
> <!-- >-->
<template slot-scope="scope"> <!-- <template slot-scope="scope">-->
<i class="el-icon-time"></i> <!-- <i class="el-icon-time"></i>-->
<span>{{ scope.row.auditTime }}</span> <!-- <span>{{ scope.row.auditTime }}</span>-->
</template> <!-- </template>-->
</el-table-column> <!-- </el-table-column>-->
<el-table-column label="校验状态" prop="contrastStatus" width="120"> <!-- <el-table-column label="校验状态" prop="contrastStatus" width="120">-->
<template slot-scope="scope"> <!-- <template slot-scope="scope">-->
<el-tag :type="(scope.row.contrastStatus === 1) | statusFilterType"> <!-- <el-tag :type="(scope.row.contrastStatus === 1) | statusFilterType">-->
{{ erpCheckStatus[scope.row.contrastStatus] }} <!-- {{ erpCheckStatus[scope.row.contrastStatus] }}-->
</el-tag> <!-- </el-tag>-->
</template> <!-- </template>-->
</el-table-column> <!-- </el-table-column>-->
<el-table-column label="操作" fixed="right" width="150"> <el-table-column label="操作" fixed="right" width="150">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
@ -113,15 +113,6 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </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>
<el-card class="el-card" v-if="true"> <el-card class="el-card" v-if="true">
@ -302,9 +293,9 @@
"8": "平衡补录单据", "8": "平衡补录单据",
}, },
erpCheckStatus: { erpCheckStatus: {
1: "已完成", 0: "未校验",
0: "已完成", 1: "失败",
2: "已完成", 2: "",
}, },
isSp: store.getters.customerId, isSp: store.getters.customerId,
detailFormData: {}, detailFormData: {},

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

@ -469,10 +469,11 @@ import stockQRCodeExport from "./stockQRCodeExport";
import draggable from "vuedraggable"; import draggable from "vuedraggable";
import {inspectionStockOrderPDFFromTemplateFile, stockOrderPDFFromTemplateFile} from "../../api/itextpdf/itextpdf"; import {inspectionStockOrderPDFFromTemplateFile, stockOrderPDFFromTemplateFile} from "../../api/itextpdf/itextpdf";
import store from "../../store"; import store from "../../store";
import {getLocalJoinBusType, getLocalJoinByUser} from "../../api/basic/busLocalType"; import {getLocalJoinByUser} from "../../api/basic/busLocalType";
import {filterAll, filterAllByUser} from "@/api/basic/invWarehouse"; import {filterAllByUser} from "@/api/basic/invWarehouse";
import StockOrderEdit from "@/views/warehouse/stockOrderEdit"; import StockOrderEdit from "@/views/warehouse/stockOrderEdit";
import {filterSubByInv} from "@/api/basic/invSubWarehouse"; import {filterSubByInv} from "@/api/basic/invSubWarehouse";
import {isBlank} from "@/utils/strUtil";
export default { export default {
name: "stockOrderSearch", name: "stockOrderSearch",
@ -950,7 +951,7 @@ export default {
.then((response) => { .then((response) => {
this.storageList = response.data || []; this.storageList = response.data || [];
if (this.storageList.length > 0) { if (this.storageList.length > 0) {
this.getSubInvList(); // this.getSubInvList();
this.getList(); this.getList();
} }
}) })
@ -960,15 +961,20 @@ export default {
invChange() { invChange() {
this.query.invWarehouseCode = ""; this.query.invWarehouseCode = "";
this.subInvList = []; this.subInvList = [];
let query = {
pcode: this.query.locStorageCode if (!isBlank(this.query.locStorageCode)) {
}; let query = {
filterSubByInv(query) pcode: this.query.locStorageCode
.then((response) => { };
this.subInvList = response.data || []; filterSubByInv(query)
}) .then((response) => {
.catch(() => { this.subInvList = response.data || [];
}); })
.catch(() => {
});
} else {
this.subInvList = [];
}
}, },
getSubInvList() { getSubInvList() {

Loading…
Cancel
Save