bug修改

fencang
anthonywj 3 years ago
parent 15586eb805
commit d100f66e67

@ -1,334 +1,357 @@
<template> <template>
<div> <div>
<el-card> <el-card>
<el-form :inline="true" :model="filterQuery" class="query-form" size="mini"> <el-form :inline="true" :model="filterQuery" class="query-form" size="mini">
<el-form-item class="query-form-item"> <el-form-item class="query-form-item">
<el-input <el-input
v-model="filterQuery.name" v-model="filterQuery.name"
style="width: 250px" style="width: 250px"
placeholder="单据类型名称" placeholder="单据类型名称"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button-group style="margin-left: 10px;display:flex;"> <el-button-group style="margin-left: 10px;display:flex;">
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button> <el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="search" @click="getList"></el-button> <el-button type="primary" icon="search" @click="getList"></el-button>
<el-button type="primary" icon="search" @click="handleAddClick" <el-button type="primary" icon="search" @click="handleAddClick"
:disabled="!configParms.entrustAction" :disabled="!configParms.entrustAction"
>新增 >新增
</el-button </el-button
> >
</el-button-group> </el-button-group>
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-table v-loading="loading" :data="list" style="width: 100%"> <el-table v-loading="loading" :data="list" style="width: 100%">
<el-table-column label="序号" type="index" width="60" fixed></el-table-column> <el-table-column label="序号" type="index" width="60" fixed></el-table-column>
<el-table-column label="扫码单据类型" prop="curName" fixed></el-table-column> <el-table-column label="扫码单据类型" prop="curName" fixed></el-table-column>
<el-table-column label="当前仓库" prop="curInvName" fixed></el-table-column> <el-table-column label="当前仓库" prop="curInvName" fixed></el-table-column>
<el-table-column label="当前分库" prop="invWarehouseName" fixed></el-table-column> <el-table-column label="当前分库" prop="invWarehouseName" fixed></el-table-column>
<el-table-column label="委托验收仓库" prop="entrustInvName" fixed></el-table-column> <el-table-column label="委托验收仓库" prop="entrustInvName" fixed></el-table-column>
<el-table-column label="委托验收分库" prop="entrustSubInvName" fixed></el-table-column> <el-table-column label="委托验收分库" prop="entrustSubInvName" fixed></el-table-column>
<el-table-column label="委托验收人" prop="employeeName" fixed> <el-table-column label="委托验收人" prop="employeeName" fixed>
</el-table-column> </el-table-column>
<el-table-column label="操作" fixed="right"> <el-table-column label="操作" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
type="text" type="text"
size="small" size="small"
:disabled="!configParms.entrustAction" :disabled="!configParms.entrustAction"
@click.native.stop="handleModifyClick(scope.row)" @click.native.stop="handleModifyClick(scope.row)"
>编辑 >编辑
</el-button </el-button
> >
<el-button <el-button
type="text" type="text"
size="small" size="small"
:disabled="!configParms.entrustAction" :disabled="!configParms.entrustAction"
@click.native.stop="deleteDialog(scope.row)" @click.native.stop="deleteDialog(scope.row)"
>删除 >删除
</el-button </el-button
> >
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-dialog <el-dialog
title="新增委托验收" title="新增委托验收"
:visible.sync="addDialogVisible" :visible.sync="addDialogVisible"
width="70%" width="70%"
:close-on-click-modal="false" :close-on-click-modal="false"
:close-on-press-escape="false" :close-on-press-escape="false"
v-if="addDialogVisible" v-if="addDialogVisible"
> >
<modifyDialog :inputQuery="inputQuery"></modifyDialog> <modifyDialog :inputQuery="inputQuery"></modifyDialog>
<div style="text-align: center"> <div style="text-align: center">
<el-button type="primary" size="small" icon="search" @click="onAddSubmit" <el-button type="primary" size="small" icon="search" @click="onAddSubmit"
>提交 >提交
</el-button </el-button
> >
<el-button type="primary" size="small" icon="search" @click="cancelDialog" <el-button type="primary" size="small" icon="search" @click="cancelDialog"
>取消 >取消
</el-button </el-button
> >
</div> </div>
</el-dialog> </el-dialog>
<el-dialog <el-dialog
title="编辑委托验收" title="编辑委托验收"
:visible.sync="modifyDialogVisible" :visible.sync="modifyDialogVisible"
width="70%" width="70%"
:close-on-click-modal="false" :close-on-click-modal="false"
:close-on-press-escape="false" :close-on-press-escape="false"
v-if="modifyDialogVisible" v-if="modifyDialogVisible"
> >
<modifyDialog :inputQuery="inputQuery"></modifyDialog> <modifyDialog :inputQuery="inputQuery"></modifyDialog>
<div style="text-align: center"> <div style="text-align: center">
<el-button type="primary" size="small" icon="search" @click="onModifySubmit" <el-button type="primary" size="small" icon="search" @click="onModifySubmit"
>提交 >提交
</el-button </el-button
> >
<el-button type="primary" size="small" icon="search" @click="cancelDialog" <el-button type="primary" size="small" icon="search" @click="cancelDialog"
>取消 >取消
</el-button </el-button
> >
</div> </div>
</el-dialog> </el-dialog>
<el-pagination <el-pagination
:page-size="filterQuery.limit" :page-size="filterQuery.limit"
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
layout="prev, pager, next" layout="prev, pager, next"
:total="total" :total="total"
:current-page="filterQuery.page" :current-page="filterQuery.page"
></el-pagination> ></el-pagination>
</el-card> </el-card>
</div> </div>
</template> </template>
<script> <script>
import { import {
getEntrustRece, getEntrustRece,
deleteEntrustRece, deleteEntrustRece,
updateEntrustRece, updateEntrustRece,
insertEntrustRece, insertEntrustRece,
} from "../../api/basic/EntrustRece"; } from "../../api/basic/EntrustRece";
import modifyDialog from "./BasicEntrutsReceModify"; import modifyDialog from "./BasicEntrutsReceModify";
import {findConfig} from "@/api/thrsys/spsSyncStatus"; import {findConfig} from "@/api/thrsys/spsSyncStatus";
export default { export default {
data() { data() {
return { return {
filterQuery: { filterQuery: {
name: "", name: "",
page: 1, page: 1,
limit: 20, limit: 20,
}, },
loading: false, loading: false,
addDialogVisible: false, addDialogVisible: false,
modifyDialogVisible: false, modifyDialogVisible: false,
list: [], list: [],
inputQuery: { inputQuery: {
action: "", action: "",
name: "", name: "",
entrustInv: "", entrustInv: "",
entrustUser: "", entrustUser: "",
entrustAction: null, entrustAction: null,
finishRece: false, finishRece: false,
curInv: "", curInv: "",
entrustSubInv: "", entrustSubInv: "",
invWarehouseCode: "", invWarehouseCode: "",
userId: null, userId: null,
}, },
enableMap: { enableMap: {
true: "是", true: "是",
false: "否", false: "否",
}, },
mainActionMap: { mainActionMap: {
WareHouseIn: "入库", WareHouseIn: "入库",
WareHouseOut: "出库" WareHouseOut: "出库"
}, },
fileList: [], fileList: [],
total: 0, total: 0,
multipleSelection: [], multipleSelection: [],
uploadFileUrl: null, uploadFileUrl: null,
headers: {}, headers: {},
configParms: {}, configParms: {},
};
},
}; methods: {
onReset() {
this.$router.push({
path: "",
});
this.filterQuery = {
name: "",
page: 1,
limit: 20,
};
this.getList();
},
cancelDialog() {
this.modifyDialogVisible = false;
this.addDialogVisible = false;
},
handleCurrentChange(val) {
this.filterQuery.page = val;
this.getList();
},
getList() {
this.loading = true;
getEntrustRece(this.filterQuery)
.then((response) => {
this.loading = false;
this.list = response.data.list || [];
this.total = response.data.total || 0;
})
.catch(() => {
this.loading = false;
this.list = [];
this.total = 0;
});
}, },
methods: {
onReset() {
this.$router.push({
path: "",
});
this.filterQuery = {
name: "",
page: 1,
limit: 20,
};
this.getList();
},
cancelDialog() {
this.modifyDialogVisible = false;
this.addDialogVisible = false;
},
handleCurrentChange(val) {
this.filterQuery.page = val;
this.getList();
},
getList() {
this.loading = true;
getEntrustRece(this.filterQuery)
.then((response) => {
this.loading = false;
this.list = response.data.list || [];
this.total = response.data.total || 0;
})
.catch(() => {
this.loading = false;
this.list = [];
this.total = 0;
});
},
onAddSubmit() {
onAddSubmit() { if (this.$isBlank(this.inputQuery.action)) {
this.$message.error("单据类型不能为空!");
return;
}
if (this.$isBlank(this.inputQuery.curInv)) {
this.$message.error("请输入委托仓库!");
return;
}
if (this.$isBlank(this.inputQuery.entrustInv)) {
this.$message.error("请输入接受委托仓库!");
return;
}
if (this.$isBlank(this.inputQuery.entrustUser)) {
this.$message.error("请输入接受委托人!");
return;
}
if (this.$isBlank(this.inputQuery.action)) { if (this.$isBlank(this.inputQuery.invWarehouseCode)) {
this.$message.error("单据类型不能为空!"); this.$message.error("当前分库不能为空!");
return; return;
} }
if (this.$isBlank(this.inputQuery.curInv)) { if (this.$isBlank(this.inputQuery.entrustSubInv)) {
this.$message.error("请输入委托仓库!"); this.$message.error("请输入接受委托分库!");
return; return;
} }
if (this.$isBlank(this.inputQuery.entrustInv)) {
this.$message.error("请输入接受委托仓库!");
return;
}
if (this.$isBlank(this.inputQuery.entrustUser)) {
this.$message.error("请输入接受委托人!");
return;
}
if (this.$isBlank(this.inputQuery.invWarehouseCode)) {
this.$message.error("当前分库不能为空!");
return;
}
if (this.$isBlank(this.inputQuery.entrustSubInv)) {
this.$message.error("请输入接受委托分库!");
return;
}
if (this.$isBlank(this.inputQuery.entrustAction)) {
this.$message.error("请输入生成单据类型!");
return;
}
insertEntrustRece(this.inputQuery)
.then((response) => {
this.loading = false;
this.cancelDialog();
this.getList();
})
.catch(() => {
this.loading = false;
this.cancelDialog();
});
},
onModifySubmit() { insertEntrustRece(this.inputQuery)
if (this.$isBlank(this.inputQuery.action)) { .then((response) => {
this.$message.error("单据类型不能为空!"); if (response.code == 20000) {
return; this.loading = false;
} this.cancelDialog();
if (this.$isBlank(this.inputQuery.curInv)) { this.getList();
this.$message.error("请输入委托仓库!"); } else {
return; this.$message.error(response.message);
}
if (this.$isBlank(this.inputQuery.entrustInv)) {
this.$message.error("请输入接受委托仓库!");
return;
} }
if (this.$isBlank(this.inputQuery.entrustInv)) { })
this.$message.error("请输入接受委托人!"); .catch(() => {
return; this.loading = false;
} this.cancelDialog();
updateEntrustRece(this.inputQuery) });
.then((response) => { },
this.loading = false;
this.cancelDialog();
this.getList();
})
.catch(() => {
this.loading = false;
this.cancelDialog();
});
},
handleAddClick() { onModifySubmit() {
this.inputQuery = {enable: true, expireTip: true}; if (this.$isBlank(this.inputQuery.action)) {
this.addDialogVisible = true; this.$message.error("单据类型不能为空!");
}, return;
}
if (this.$isBlank(this.inputQuery.curInv)) {
this.$message.error("请输入委托仓库!");
return;
}
if (this.$isBlank(this.inputQuery.entrustInv)) {
this.$message.error("请输入接受委托仓库!");
return;
}
if (this.$isBlank(this.inputQuery.entrustUser)) {
this.$message.error("请输入接受委托人!");
return;
}
handleModifyClick(row) { if (this.$isBlank(this.inputQuery.invWarehouseCode)) {
this.inputQuery = row; this.$message.error("当前分库不能为空!");
this.modifyDialogVisible = true; return;
}, }
if (this.$isBlank(this.inputQuery.entrustSubInv)) {
this.$message.error("请输入接受委托分库!");
return;
}
deleteDialog(rowId) { if (this.$isBlank(this.inputQuery.entrustAction)) {
this.$confirm("此操作将永久删除该委托验收信息, 是否继续?", "提示", { this.$message.error("请输入生成单据类型!");
confirmButtonText: "确定", return;
cancelButtonText: "取消", }
type: "warning", updateEntrustRece(this.inputQuery)
}) .then((response) => {
.then(() => { this.loading = false;
this.deleteOrders(rowId); this.cancelDialog();
}) this.getList();
.catch(() => { })
}); .catch(() => {
}, this.loading = false;
this.cancelDialog();
});
},
deleteOrders(data) { handleAddClick() {
this.loading = true; this.inputQuery = {enable: true, expireTip: true};
let tquery = { this.addDialogVisible = true;
id: data.id + "", },
};
deleteEntrustRece(tquery)
.then((response) => {
this.getList();
if (response.code == 20000) {
this.$message({
type: "success",
message: "删除成功!",
});
} else {
this.$message.error(response.message);
}
}) handleModifyClick(row) {
.catch(() => { this.inputQuery = row;
}); this.modifyDialogVisible = true;
},
getSyncConfig() {
findConfig()
.then((response) => {
if (response.code == 20000) {
this.configParms = response.data;
}
})
.catch(() => {
});
},
}, },
components: {
modifyDialog, deleteDialog(rowId) {
this.$confirm("此操作将永久删除该委托验收信息, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
this.deleteOrders(rowId);
})
.catch(() => {
});
}, },
mounted() {
deleteOrders(data) {
this.loading = true;
let tquery = {
id: data.id + "",
};
deleteEntrustRece(tquery)
.then((response) => {
this.getList();
if (response.code == 20000) {
this.$message({
type: "success",
message: "删除成功!",
});
} else {
this.$message.error(response.message);
}
})
.catch(() => {
});
}, },
created() { getSyncConfig() {
this.getSyncConfig(); findConfig()
this.getList(); .then((response) => {
if (response.code == 20000) {
this.configParms = response.data;
}
})
.catch(() => {
});
}, },
},
components: {
modifyDialog,
},
mounted() {
},
created() {
this.getSyncConfig();
this.getList();
},
}; };
</script> </script>

@ -79,6 +79,7 @@
v-loading="loading" v-loading="loading"
:data="list" :data="list"
style="width: 100%" style="width: 100%"
highlight-current-row
key="1" key="1"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
> >

@ -15,17 +15,17 @@
</el-form-item> </el-form-item>
<el-form-item class="query-form-item"> <!-- <el-form-item class="query-form-item">-->
<el-select v-model="filterQuery.filterType" placeholder="请选择过滤对照条件"> <!-- <el-select v-model="filterQuery.filterType" placeholder="请选择过滤对照条件">-->
<el-option <!-- <el-option-->
v-for="item in filterList" <!-- v-for="item in filterList"-->
:key="item.filterType" <!-- :key="item.filterType"-->
:label="item.sysName" <!-- :label="item.sysName"-->
:value="item.filterType"> <!-- :value="item.filterType">-->
<span style="float: left">{{ item.sysName }}</span> <!-- <span style="float: left">{{ item.sysName }}</span>-->
</el-option> <!-- </el-option>-->
</el-select> <!-- </el-select>-->
</el-form-item> <!-- </el-form-item>-->
</el-row> </el-row>
<el-row> <el-row>
@ -558,6 +558,7 @@
<el-col :span="12" class="el-col"> <el-col :span="12" class="el-col">
<el-form-item prop="name"> <el-form-item prop="name">
<el-checkbox v-model="checked" class="text item itemTag" <el-checkbox v-model="checked" class="text item itemTag"
:disabled="true"
>以使用单元数量入库 >以使用单元数量入库
</el-checkbox> </el-checkbox>
</el-form-item> </el-form-item>

@ -97,7 +97,7 @@ export default {
type: Function, type: Function,
required: true, required: true,
}, },
invQueryData:{ invQueryData: {
type: Object, type: Object,
required: true, required: true,
} }
@ -115,6 +115,7 @@ export default {
supId: null, supId: null,
unitFk: null, unitFk: null,
invStorageCode: null, invStorageCode: null,
invWarehouseCode: null,
}, },
detailQuery: { detailQuery: {
code: null, code: null,
@ -325,8 +326,12 @@ export default {
created() { created() {
this.getBusType(); this.getBusType();
let query = this.$route.query; let query = this.$route.query;
this.filterQuery.invStorageCode = this.invQueryData.locStorageCode;
this.filterQuery = Object.assign(this.filterQuery, query); this.filterQuery = Object.assign(this.filterQuery, query);
this.filterQuery.invStorageCode = this.invQueryData.locStorageCode;
this.filterQuery.invWarehouseCode = this.invQueryData.invWarehouseCode;
this.filterQuery.limit = parseInt(this.filterQuery.limit); this.filterQuery.limit = parseInt(this.filterQuery.limit);
// //
this.getList(); this.getList();

@ -250,7 +250,7 @@
</el-table> </el-table>
</el-dialog> </el-dialog>
<el-dialog <el-dialog
title="选择erp业务单据" title="选择业务单据"
:visible.sync="addDialogVisible" :visible.sync="addDialogVisible"
width="80%" width="80%"
v-if="addDialogVisible" v-if="addDialogVisible"

@ -489,9 +489,9 @@ export default {
if (this.$isBlank(this.codeArray[i].batchNo)) { if (this.$isBlank(this.codeArray[i].batchNo)) {
return this.$message.error('批次号不能为空'); return this.$message.error('批次号不能为空');
} }
if (this.$isBlank(this.codeArray[i].productDate) && this.$isBlank(this.codeArray[i].expireDate)) { /* if (this.$isBlank(this.codeArray[i].productDate) && this.$isBlank(this.codeArray[i].expireDate)) {
return this.$message.error('生产日期与失效日期不能全部为空'); return this.$message.error('生产日期与失效日期不能全部为空');
} }*/
// if (this.$isBlank(this.codeArray[i].expireDate)) { // if (this.$isBlank(this.codeArray[i].expireDate)) {
// return this.$message.error(''); // return this.$message.error('');
// } // }

@ -234,7 +234,7 @@
></el-pagination> ></el-pagination>
<el-dialog <el-dialog
title="新增订单" title="编辑单据"
:visible.sync="addOrderVisible" :visible.sync="addOrderVisible"
width="75%" width="75%"
:close-on-click-modal="false" :close-on-click-modal="false"
@ -261,7 +261,7 @@ import {
import draggable from "vuedraggable"; import draggable from "vuedraggable";
import codeDetail from "./errorCode"; import codeDetail from "./errorCode";
import addOrder from "./addOrder"; import addOrder from "./addHosOrder";
import store from "../../store"; import store from "../../store";
import {getBussinessType} from "../../api/basic/bussinessType"; import {getBussinessType} from "../../api/basic/bussinessType";
import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain"; import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain";
@ -292,7 +292,6 @@ export default {
}, },
checkStatus: { checkStatus: {
'-1': "等待提交", '-1': "等待提交",
// 1: "",
1: "等待处理", 1: "等待处理",
2: "等待校验", 2: "等待校验",
3: "校验异常", 3: "校验异常",
@ -556,9 +555,8 @@ export default {
} }
}, },
addOrders(row) { addOrders(row) {
this.idQuery.id = '';
this.idQuery.actDate = ''; this.idQuery = row;
this.idQuery.corpOrderId = '';
this.idQuery.billType = row.action; this.idQuery.billType = row.action;
this.idQuery.invName = row.invName; this.idQuery.invName = row.invName;
this.idQuery.subInvName = row.subInvName; this.idQuery.subInvName = row.subInvName;

@ -364,6 +364,8 @@
</el-card> </el-card>
<el-dialog <el-dialog
title="选择往来单位" title="选择往来单位"
:close-on-click-modal="false"
:close-on-press-escape="false"
:visible.sync="dialogTableVisible" :visible.sync="dialogTableVisible"
width="70%" width="70%"
> >
@ -417,7 +419,9 @@
</el-table> </el-table>
</el-dialog> </el-dialog>
<el-dialog <el-dialog
title="选择erp业务单据" title="选择业务单据"
:close-on-click-modal="false"
:close-on-press-escape="false"
:visible.sync="addDialogVisible" :visible.sync="addDialogVisible"
width="80%" width="80%"
v-if="addDialogVisible" v-if="addDialogVisible"
@ -432,6 +436,8 @@
<el-dialog <el-dialog
title="单号详情" title="单号详情"
:close-on-click-modal="false"
:close-on-press-escape="false"
:visible.sync="codeDetailVisible" :visible.sync="codeDetailVisible"
width="80%" width="80%"
v-if="codeDetailVisible" v-if="codeDetailVisible"
@ -446,6 +452,8 @@
<el-dialog <el-dialog
title="绑定产品ID" title="绑定产品ID"
:visible.sync="selectRlVisible" :visible.sync="selectRlVisible"
:close-on-click-modal="false"
:close-on-press-escape="false"
width="80%" width="80%"
v-if="selectRlVisible" v-if="selectRlVisible"
> >
@ -911,11 +919,6 @@ export default {
}); });
}, },
intentDetail(row) { intentDetail(row) {
// this.$router.push({
// path: "../inout/detail",
// query: { id: row.id },
// });
this.codeDetailVisible = true; this.codeDetailVisible = true;
this.idQuery.id = row.id; this.idQuery.id = row.id;
}, },

@ -73,7 +73,7 @@
<el-form-item style="margin-right: 50px; margin-left: auto"> <el-form-item style="margin-right: 50px; margin-left: auto">
<el-button-group> <el-button-group>
<el-button type="primary" icon="search" @click="mergesOrders"></el-button> <el-button type="primary" icon="search" @click="mergesOrders"></el-button>
<el-button type="primary" icon="search" @click="addOrders"></el-button> <el-button type="primary" icon="search" @click="addOrders"></el-button>
<el-button type="primary" icon="search" @click="errOrders"></el-button> <el-button type="primary" icon="search" @click="errOrders"></el-button>
</el-button-group> </el-button-group>
@ -83,6 +83,7 @@
</el-form> </el-form>
<el-table v-loading="loading" :data="list" style="width: 100%" <el-table v-loading="loading" :data="list" style="width: 100%"
highlight-current-row
@selection-change="handleSelectionChange"> @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55"></el-table-column> <el-table-column type="selection" width="55"></el-table-column>
<el-table-column label="序号" type="index"></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
@ -221,7 +222,7 @@
</el-dialog> </el-dialog>
<el-dialog <el-dialog
title="新增订单" :title="formMap[formName]"
:visible.sync="addOrderVisible" :visible.sync="addOrderVisible"
width="85%" append-to-body width="85%" append-to-body
:close-on-click-modal="false" :close-on-click-modal="false"
@ -236,7 +237,7 @@
</el-dialog> </el-dialog>
<el-dialog <el-dialog
title="新增订单" :title="formMap[formName]"
:visible.sync="addHosOrderVisible" :visible.sync="addHosOrderVisible"
width="75%" width="75%"
append-to-body append-to-body
@ -314,7 +315,6 @@ export default {
}, },
checkStatus: { checkStatus: {
'-1': "草稿", '-1': "草稿",
// 1: "",
1: "等待处理", 1: "等待处理",
2: "等待校验", 2: "等待校验",
3: "校验异常", 3: "校验异常",
@ -350,8 +350,8 @@ export default {
formName: null, formName: null,
errorDetail: "1111111111111", errorDetail: "1111111111111",
formMap: { formMap: {
add: "新增", add: "新增单据",
edit: "编辑", update: "编辑单据",
}, },
fromTypeMap: { fromTypeMap: {
"1": "UDIMS平台", "1": "UDIMS平台",
@ -373,6 +373,7 @@ export default {
formData: formJson, formData: formJson,
deleteLoading: false, deleteLoading: false,
busTypes: [], busTypes: [],
}; };
}, },
components: { components: {
@ -466,6 +467,7 @@ export default {
this.idQuery.actDate = ''; this.idQuery.actDate = '';
this.idQuery.corpOrderId = ''; this.idQuery.corpOrderId = '';
this.idQuery.outChangeEnable = row.outChangeEnable; this.idQuery.outChangeEnable = row.outChangeEnable;
if (row.id !== null && row.id !== undefined && row.id !== '') { if (row.id !== null && row.id !== undefined && row.id !== '') {
this.idQuery.id = row.id; this.idQuery.id = row.id;
@ -475,9 +477,10 @@ export default {
this.idQuery.locStorageCode = row.locStorageCode; this.idQuery.locStorageCode = row.locStorageCode;
this.idQuery.invWarehouseCode = row.invWarehouseCode; this.idQuery.invWarehouseCode = row.invWarehouseCode;
this.idQuery.fromSubInvCode = row.fromSubInvCode; this.idQuery.fromSubInvCode = row.fromSubInvCode;
this.idQuery.preCheck = row.preCheck; this.idQuery.preCheck = row.preCheck;
this.formName = "update";
} else {
this.formName = "add";
} }
if (store.getters.customerId == 110) { if (store.getters.customerId == 110) {
@ -486,13 +489,10 @@ export default {
this.idQuery.fromCorp = row.fromCorp; this.idQuery.fromCorp = row.fromCorp;
this.idQuery.fromCorpId = row.fromCorpId; this.idQuery.fromCorpId = row.fromCorpId;
this.idQuery.preCheck = row.preCheck; this.idQuery.preCheck = row.preCheck;
} else { } else {
this.idQuery.preCheck = row.preCheck; this.idQuery.preCheck = row.preCheck;
this.addOrderVisible = true; this.addOrderVisible = true;
} }
}, },
errOrders() { errOrders() {
this.errOrderVisible = true; this.errOrderVisible = true;
@ -561,19 +561,24 @@ export default {
let unit = repeatData[0].fromCorp; let unit = repeatData[0].fromCorp;
let action = repeatData[0].action; let action = repeatData[0].action;
let orderList = []; let orderList = [];
repeatData.forEach((obj, index) => {
if (unit !== obj.fromCorp) {
this.$message.warning("往来单位不一致!");
for(let index in repeatData){
if (action !== repeatData[index].action) {
this.$message.warning("业务类型不一致!");
return; return;
} }
if (action !== obj.action) { if (unit !== repeatData[index].fromCorp) {
this.$message.warning("业务类型不一致!"); this.$message.warning("往来单位不一致!");
return; return;
} }
orderList.push(obj.id);
}); orderList.push(repeatData[index].id);
}
let tquery = { let tquery = {
orderList: orderList, orderList: orderList,
type: 2,
}; };
this.$confirm( this.$confirm(

@ -80,7 +80,7 @@
<el-button-group> <el-button-group>
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button> <el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="search" @click="onSubmit"></el-button> <el-button type="primary" icon="search" @click="onSubmit"></el-button>
<el-button type="primary" icon="search" @click="exportOrders"></el-button> <!-- <el-button type="primary" icon="search" @click="exportOrders"></el-button>-->
</el-button-group> </el-button-group>
</el-form-item> </el-form-item>
</el-row> </el-row>
@ -350,7 +350,7 @@
</el-table> </el-table>
</el-dialog> </el-dialog>
<el-dialog <el-dialog
title="选择erp业务单据" title="选择业务单据"
:visible.sync="addDialogVisible" :visible.sync="addDialogVisible"
width="80%" width="80%"
v-if="addDialogVisible" v-if="addDialogVisible"

@ -376,7 +376,7 @@
</el-dialog> </el-dialog>
<el-dialog <el-dialog
title="单号详情" title="条码详情"
:visible.sync="codeDetailVisible" :visible.sync="codeDetailVisible"
width="80%" width="80%"
v-if="codeDetailVisible" v-if="codeDetailVisible"
@ -656,19 +656,23 @@ export default {
let unit = repeatData[0].fromCorp; let unit = repeatData[0].fromCorp;
let action = repeatData[0].action; let action = repeatData[0].action;
let orderList = []; let orderList = [];
repeatData.forEach((obj, index) => {
if (unit !== obj.fromCorp) {
this.$message.warning("往来单位不一致!"); for (let index in repeatData) {
if (action !== repeatData[index].action) {
this.$message.warning("业务类型不一致!");
return; return;
} }
if (action !== obj.action) { if (unit !== repeatData[index].fromCorp) {
this.$message.warning("业务类型不一致!"); this.$message.warning("往来单位不一致!");
return; return;
} }
orderList.push(obj.id); orderList.push(repeatData[index].id);
}); }
let tquery = { let tquery = {
orderList: orderList, orderList: orderList,
type: 1,
}; };
this.$confirm( this.$confirm(

@ -364,6 +364,8 @@
<el-dialog <el-dialog
:title="selectUnitTitle" :title="selectUnitTitle"
:visible.sync="dialogTableVisible" :visible.sync="dialogTableVisible"
:close-on-click-modal="false"
:close-on-press-escape="false"
v-if="dialogTableVisible" v-if="dialogTableVisible"
width="70%" width="70%"
append-to-body append-to-body
@ -378,6 +380,8 @@
:title="selectRlTitle" :title="selectRlTitle"
:visible.sync="selectRlVisible" :visible.sync="selectRlVisible"
width="80%" width="80%"
:close-on-click-modal="false"
:close-on-press-escape="false"
v-if="selectRlVisible" v-if="selectRlVisible"
append-to-body append-to-body
> >
@ -393,6 +397,8 @@
:title="editTitle" :title="editTitle"
:visible.sync="editCodeVisible" :visible.sync="editCodeVisible"
append-to-body width="70%" append-to-body width="70%"
:close-on-click-modal="false"
:close-on-press-escape="false"
v-if="editCodeVisible" v-if="editCodeVisible"
> >
<editCodeDialog <editCodeDialog
@ -406,6 +412,8 @@
:title="editTitle" :title="editTitle"
:visible.sync="editOriginCodeVisible" :visible.sync="editOriginCodeVisible"
append-to-body width="70%" append-to-body width="70%"
:close-on-click-modal="false"
:close-on-press-escape="false"
v-if="editOriginCodeVisible"> v-if="editOriginCodeVisible">
<editCodeDialog <editCodeDialog
:closeCodeDialog="closeCodeDialog" :closeCodeDialog="closeCodeDialog"
@ -646,7 +654,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;
} else { } else {
this.$alert(response.message, '提示', { this.$alert(response.message, '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
@ -886,7 +894,7 @@ export default {
this.formData.vailInv = this.curAction.vailInv; this.formData.vailInv = this.curAction.vailInv;
this.formData.codeFillCheck = this.curAction.codeFillCheck; this.formData.codeFillCheck = this.curAction.codeFillCheck;
} else { } else {
this.curAction = {corpType:0,genUnit: false,changeEnable:false,}; this.curAction = {corpType: 0, genUnit: false, changeEnable: false,};
this.formData.action = null; this.formData.action = null;
} }
@ -1150,8 +1158,6 @@ export default {
this.formData.actDate = new Date(); this.formData.actDate = new Date();
this.codeArray = []; this.codeArray = [];
this.getStorage(this.formData.action); this.getStorage(this.formData.action);
this.findSubInvByInv();
this.findSubStorageMethod();
if (this.$isNotBlank(this.idQuery.id)) { if (this.$isNotBlank(this.idQuery.id)) {
this.formData.actDate = new Date(this.idQuery.actDate); this.formData.actDate = new Date(this.idQuery.actDate);
this.formData.corpOrderId = this.idQuery.corpOrderId; this.formData.corpOrderId = this.idQuery.corpOrderId;
@ -1186,7 +1192,8 @@ export default {
this.findStorageMethod(); this.findStorageMethod();
} }
} }
this.findSubInvByInv(this.formData.locStorageCode);
this.findSubStorageMethod();
this.getBusType(); this.getBusType();

@ -2,7 +2,7 @@
<div> <div>
<el-form :inline="true" :model="query" class="query-form" size="mini"> <el-form :inline="true" :model="query" class="query-form" size="mini">
<el-form-item class="query-form-item"> <el-form-item class="query-form-item">
<el-input v-model="query.code" placeholder="条码查询"></el-input> <el-input v-model="query.code" placeholder="条码查询" style="width: 300px"></el-input>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>

@ -29,7 +29,6 @@
> >
<el-table-column type="selection" width="55"></el-table-column> <el-table-column type="selection" width="55"></el-table-column>
<el-table-column label="序号" type="index" fixed></el-table-column> <el-table-column label="序号" type="index" fixed></el-table-column>
<!-- <el-table-column label="ID" prop="id" fixed></el-table-column> -->
<el-table-column label="条码" prop="code" show-overflow-tooltip fixed></el-table-column> <el-table-column label="条码" prop="code" show-overflow-tooltip fixed></el-table-column>
<el-table-column <el-table-column
label="生产日期" label="生产日期"
@ -62,13 +61,6 @@
width="220" width="220"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<!-- <el-table-column label="创建时间" prop="actDate">-->
<!-- <template slot-scope="scope">-->
<!-- <i class="el-icon-time"></i>-->
<!-- <span>{{ scope.row.actDate }}</span>-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column label="操作" fixed="right" width="250"> <el-table-column label="操作" fixed="right" width="250">
<template slot-scope="scope"> <template slot-scope="scope">
@ -80,14 +72,6 @@
>编辑 >编辑
</el-button </el-button
> >
<!-- <el-button-->
<!-- type="text"-->
<!-- size="small"-->
<!-- @click.native.stop="deleteCode(scope.$index, scope.row)"-->
<!-- >删除-->
<!-- </el-button-->
<!-- >-->
<el-button <el-button
type="text" type="text"
size="small" size="small"
@ -95,7 +79,6 @@
>选择产品 >选择产品
</el-button </el-button
> >
<!-- :disabled="scope.row.relId != null "-->
<el-button <el-button
type="text" type="text"
size="small" size="small"
@ -103,7 +86,6 @@
>选择供应商 >选择供应商
</el-button </el-button
> >
<!-- :disabled=" scope.row.supId !=null"-->
</template> </template>
</el-table-column> </el-table-column>
@ -295,7 +277,6 @@ export default {
}); });
}, },
intentBack() { intentBack() {
// this.$router.push({path:'../readme/detail',query:{id:row.corpOrderId}});
this.$router.go(-1); this.$router.go(-1);
}, },
// //
@ -355,7 +336,6 @@ export default {
rowStyle({row, rowIndex}) { rowStyle({row, rowIndex}) {
let rowBackground = {}; let rowBackground = {};
if (row.supId == null || row.relId == null) { if (row.supId == null || row.relId == null) {
//rowBackground.background="#f6f5ee";
rowBackground.color = '#f60303'; rowBackground.color = '#f60303';
} }

@ -560,9 +560,9 @@ export default {
if (this.$isBlank(this.codeArray[i].count) || this.codeArray[i].count == "0") { if (this.$isBlank(this.codeArray[i].count) || this.codeArray[i].count == "0") {
return this.$message.error('单据数量不能为0'); return this.$message.error('单据数量不能为0');
} }
if (this.$isBlank(this.codeArray[i].productDate) && this.$isBlank(this.codeArray[i].expireDate)) { // if (this.$isBlank(this.codeArray[i].productDate) && this.$isBlank(this.codeArray[i].expireDate)) {
return this.$message.error('生产日期与失效日期不能全部为空'); // return this.$message.error('');
} // }
} }
@ -740,7 +740,6 @@ export default {
selectProductFunction(event) { selectProductFunction(event) {
if (event == null) { if (event == null) {
// this.$refs.inputRef.focus();
} else { } else {
event.target.select(); event.target.select();
} }
@ -771,12 +770,14 @@ export default {
if (item.mainAction == 'WareHouseOut' && this.formData.noInvOut != true) { if (item.mainAction == 'WareHouseOut' && this.formData.noInvOut != true) {
this.invQueryData = { this.invQueryData = {
locStorageCode: this.formData.locStorageCode, locStorageCode: this.formData.locStorageCode,
invWarehouseCode: this.formData.invWarehouseCode,
}; };
this.selectInvProductVisible = true; this.selectInvProductVisible = true;
} else if (item.mainAction == "WareHouseIn" && this.curAction.corpType == 1 && this.formData.noInvOut != true) { } else if (item.mainAction == "WareHouseIn" && this.curAction.corpType == 1 && this.formData.noInvOut != true) {
this.invQueryData = { this.invQueryData = {
locStorageCode: this.formData.corpId, locStorageCode: this.formData.corpId,
invWarehouseCode: this.formData.fromSubInvCode,
}; };
this.selectInvProductVisible = true; this.selectInvProductVisible = true;
} else { } else {
@ -800,7 +801,6 @@ export default {
code: this.code, code: this.code,
customerId: store.getters.customerId, customerId: store.getters.customerId,
}; };
stockOrderDetailQueryProduct(tQuery).then((response) => { stockOrderDetailQueryProduct(tQuery).then((response) => {
this.loading = false; this.loading = false;
if (response.code === 20000) { if (response.code === 20000) {
@ -835,12 +835,9 @@ export default {
} }
} else { } else {
this.$message.warning(response.message); this.$message.warning(response.message);
// this.focusNext('inputRef');
if (this.$isNotBlank(event)) { if (this.$isNotBlank(event)) {
event.target.select(); event.target.select();
} }
// event.target.select();
// event.currentTarget.select();
} }
}); });
@ -870,35 +867,13 @@ export default {
this.focusNext('iCount'); this.focusNext('iCount');
// let sc = this.selectedIndex + 'reCount';
// const _this = this;
// this.$nextTick(() => {
// setTimeout(function() {
// console.log(sc);
// console.log(_this.$refs[sc]);
// console.log(_this.$refs[sc].focus());
// _this.$refs[sc].focus();
// }, 1)
// // this.$refs['inputBatchNoRef'][0].focus()
// })
},
iCountChange() {
// console.log(this.iCount)
// this.currentRow.count = this.iCount;
// this.currentRow.reCount = this.iCount;
}, },
iCountEnterFunction() { iCountEnterFunction() {
if (this.$isNotBlank(this.currentRow)) { if (this.$isNotBlank(this.currentRow)) {
this.currentRow.count = this.iCount; this.currentRow.count = this.iCount;
// this.currentRow.reCount = this.iCount;
} }
this.focusNext('inputRef'); this.focusNext('inputRef');
}, },
tableCountChange(row) {
if (this.$isNotBlank(row)) {
// row.count = row.reCount;
}
},
tableRowClassName({row, rowIndex}) { tableRowClassName({row, rowIndex}) {
row.index = rowIndex; row.index = rowIndex;
}, },
@ -990,13 +965,6 @@ export default {
if (this.$isBlank(row.batchNo)) { if (this.$isBlank(row.batchNo)) {
return this.$message.error('批次号不能为空'); return this.$message.error('批次号不能为空');
} }
// if (this.$isBlank(row.productDate)) {
// return this.$message.error('');
// }
// if (this.$isBlank(row.expireDate)) {
// return this.$message.error('');
// }
this.$refs.multipleTable.setCurrentRow(); this.$refs.multipleTable.setCurrentRow();
this.currentRow = {}; this.currentRow = {};
this.selectedIndex = ""; this.selectedIndex = "";
@ -1035,7 +1003,6 @@ export default {
this.detailLoading = false; this.detailLoading = false;
if (response.code === 20000) { if (response.code === 20000) {
this.$message.success(response.data); this.$message.success(response.data);
// this.getStockOrderDetailList();
this.codeArray.splice(index, 1); this.codeArray.splice(index, 1);
} else { } else {
this.$message.error(response.message); this.$message.error(response.message);
@ -1062,21 +1029,6 @@ export default {
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning", type: "warning",
}).then(() => { }).then(() => {
// let tQuery = {
// id: row.id
// }
// this.detailLoading = true;
// copyStockOrderDetail(tQuery)
// .then((response) => {
// this.detailLoading = false;
// if (response.code === 20000) {
// this.$message.success("");
// this.getStockOrderDetailList();
// } else {
// this.$message.error(response.message);
// }
// });
let rData = JSON.parse(JSON.stringify(row)); let rData = JSON.parse(JSON.stringify(row));
rData.id = null; rData.id = null;
if (this.codeArray.length === 0) { if (this.codeArray.length === 0) {
@ -1128,23 +1080,6 @@ export default {
intentBack() { intentBack() {
this.$router.go(-1); this.$router.go(-1);
}, },
// generateBillNo() {
// let tQuery = {
// action: this.formData.billType
// }
// this.loading = true;
// stockOrderGenerateBillNo(tQuery)
// .then((response) => {
// this.loading = false;
// if (response.code === 20000) {
// this.formData.billNo = response.data;
// // this.formData.billdate = parseTime(new Date(), '{y}{m}{d}');
// this.formData.billdate = new Date();
// } else {
// this.closeDialog(true);
// }
// });
// },
getBusType() { getBusType() {
let query = { let query = {
code: this.formData.invWarehouseCode, code: this.formData.invWarehouseCode,
@ -1233,8 +1168,6 @@ export default {
this.getBusType(); this.getBusType();
}, },
invChange() { invChange() {
/*if (this.$isNotBlank(this.formData.invWarehouseCode))
this.formData.invWarehouseCode = null;*/
this.findSubInvs(); this.findSubInvs();
}, },
@ -1289,7 +1222,6 @@ export default {
this.iCount = 0; this.iCount = 0;
this.orderEditor = false; this.orderEditor = false;
this.formData.billdate = new Date(); this.formData.billdate = new Date();
// this.generateBillNo();
} }
this.findMethod(); this.findMethod();
this.getBusType(); this.getBusType();

@ -332,7 +332,7 @@
</el-dialog> </el-dialog>
<el-dialog <el-dialog
title="码详情" title="内部码详情"
:visible.sync="qrcodeDetailVisible" :visible.sync="qrcodeDetailVisible"
:close-on-click-modal="false" :close-on-click-modal="false"
:close-on-press-escape="false" :close-on-press-escape="false"

@ -6,7 +6,6 @@
:model="query" :model="query"
class="query-form" class="query-form"
size="mini" size="mini"
> >
<el-row style="width: 100%"> <el-row style="width: 100%">
<el-form-item class="query-form-item"> <el-form-item class="query-form-item">
@ -81,10 +80,6 @@
:data="list" :data="list"
style="width: 100%; " highlight-current-row style="width: 100%; " highlight-current-row
@row-click="getStockOrderDetailList" ref="multipleTable"> @row-click="getStockOrderDetailList" ref="multipleTable">
<!--<el-table-column
type="selection"
width="55">
</el-table-column>-->
<el-table-column type="index" label="序号" width="50"></el-table-column> <el-table-column type="index" label="序号" width="50"></el-table-column>
<el-table-column label="单据号" prop="billNo" show-overflow-tooltip></el-table-column> <el-table-column label="单据号" prop="billNo" show-overflow-tooltip></el-table-column>
<el-table-column label="往来单位" prop="corpName" show-overflow-tooltip></el-table-column> <el-table-column label="往来单位" prop="corpName" show-overflow-tooltip></el-table-column>
@ -105,20 +100,8 @@
</el-table-column> </el-table-column>
<el-table-column label="当前分库" prop="subInvName" width="120"> <el-table-column label="当前分库" prop="subInvName" width="120">
</el-table-column> </el-table-column>
<!-- <el-table-column label="采购类型">-->
<!-- <template slot-scope="scope">-->
<!-- {{ scope.row.type | typeFilterName }}-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column label="操作" fixed="right" width="200"> <el-table-column label="操作" fixed="right" width="200">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- <el-button-->
<!-- type="text"-->
<!-- size="small"-->
<!-- @click.native="qrcodeDetail(scope.row)"-->
<!-- >码详情-->
<!-- </el-button-->
<!-- >-->
<el-button <el-button
type="text" type="text"
size="small" size="small"

@ -9,6 +9,7 @@
<el-table v-loading="detailLoading" <el-table v-loading="detailLoading"
:data="detailList" :data="detailList"
highlight-current-row
@selection-change="changeFun" @selection-change="changeFun"
style="width: 100%"> style="width: 100%">

@ -478,9 +478,9 @@ export default {
// return this.$message.error(''); // return this.$message.error('');
// } // }
// } // }
if (this.$isBlank(this.codeArray[i].productDate) && this.$isBlank(this.codeArray[i].expireDate)) { // if (this.$isBlank(this.codeArray[i].productDate) && this.$isBlank(this.codeArray[i].expireDate)) {
return this.$message.error('生产日期与失效日期不能全部为空'); // return this.$message.error('');
} // }
if (this.$isBlank(this.codeArray[i].reCount) || this.codeArray[i].reCount < 1) { if (this.$isBlank(this.codeArray[i].reCount) || this.codeArray[i].reCount < 1) {
return this.$message.error('配货数量不能小于0'); return this.$message.error('配货数量不能小于0');
} }

@ -374,16 +374,6 @@
</el-col> </el-col>
<el-col :span="7"> <el-col :span="7">
<el-form-item prop="productDate"> <el-form-item prop="productDate">
<!-- <el-input v-model="detailFormData.productDate" auto-complete="off"-->
<!-- :disabled="false"></el-input>-->
<!-- <el-date-picker-->
<!-- type="date"-->
<!-- size="small" v-model="detailFormData.productDate"-->
<!-- placeholder="请选择生产日期" style="width: 80%"-->
<!-- value-format="yyMMdd"-->
<!-- format="yyyy-MM-dd"-->
<!-- >-->
<!-- </el-date-picker>-->
<el-input v-model="detailFormData.productDate" auto-complete="off" <el-input v-model="detailFormData.productDate" auto-complete="off"
oninput="if(value.length>6)value=value.slice(0,6)" oninput="if(value.length>6)value=value.slice(0,6)"
type="number" type="number"
@ -397,22 +387,12 @@
</el-col> </el-col>
<el-col :span="7"> <el-col :span="7">
<el-form-item prop="expireDate"> <el-form-item prop="expireDate">
<!-- <el-input v-model="detailFormData.expireDate" auto-complete="off"-->
<!-- :disabled="false"></el-input>-->
<el-input v-model="detailFormData.expireDate" auto-complete="off" <el-input v-model="detailFormData.expireDate" auto-complete="off"
oninput="if(value.length>6)value=value.slice(0,6)" oninput="if(value.length>6)value=value.slice(0,6)"
type="number" type="number"
:disabled="false"></el-input> :disabled="false"></el-input>
<!-- <el-date-picker-->
<!-- type="date"-->
<!-- size="small" v-model="detailFormData.expireDate"-->
<!-- placeholder="请选择失效日期" style="width: 80%"-->
<!-- value-format="yyMMdd"-->
<!-- format="yyyy-MM-dd"-->
<!-- >-->
<!-- </el-date-picker>-->
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -890,9 +870,9 @@ export default {
// return this.$message.error(''); // return this.$message.error('');
// } // }
// } // }
if (this.$isBlank(tQuery.productDate) && this.$isBlank(tQuery.expireDate)) { // if (this.$isBlank(tQuery.productDate) && this.$isBlank(tQuery.expireDate)) {
return this.$message.error('生产日期与失效日期不能全部为空'); // return this.$message.error('');
} // }
uploadStockOrderDetail(tQuery).then((response) => { uploadStockOrderDetail(tQuery).then((response) => {
this.detailLoading = false; this.detailLoading = false;
if (response.code === 20000) { if (response.code === 20000) {

@ -455,9 +455,9 @@ export default {
// return this.$message.error(''); // return this.$message.error('');
// } // }
// } // }
if (this.$isBlank(this.codeArray[i].productDate) && this.$isBlank(this.codeArray[i].expireDate)) { // if (this.$isBlank(this.codeArray[i].productDate) && this.$isBlank(this.codeArray[i].expireDate)) {
return this.$message.error('生产日期与失效日期不能全部为空'); // return this.$message.error('');
} // }
} }
} }
@ -560,7 +560,6 @@ export default {
}, },
selectProductFunction(event) { selectProductFunction(event) {
if (event == null) { if (event == null) {
// this.$refs.inputRef.focus();
} else event.target.select(); } else event.target.select();
if (this.$isBlank(event)) { if (this.$isBlank(event)) {
@ -604,7 +603,6 @@ export default {
code: this.code, code: this.code,
customerId: store.getters.customerId, customerId: store.getters.customerId,
}; };
stockOrderDetailQueryProduct(tQuery).then((response) => { stockOrderDetailQueryProduct(tQuery).then((response) => {
this.loading = false; this.loading = false;
console.log(response) console.log(response)
@ -641,12 +639,9 @@ export default {
} }
} else { } else {
this.$message.warning(response.message); this.$message.warning(response.message);
// this.focusNext('inputRef');
if (this.$isNotBlank(event)) { if (this.$isNotBlank(event)) {
event.target.select(); event.target.select();
} }
// event.target.select();
// event.currentTarget.select();
} }
}); });

@ -81,22 +81,8 @@
<el-table v-loading="loading" :data="codeArray" style="width: 100%;" max-height="350" height="350" <el-table v-loading="loading" :data="codeArray" style="width: 100%;" max-height="350" height="350"
ref="multipleTable"> ref="multipleTable">
<!-- <el-table-column-->
<!-- type="selection"-->
<!-- width="55">-->
<!-- </el-table-column>-->
<el-table-column label="序号" type="index" width="50"></el-table-column> <el-table-column label="序号" type="index" width="50"></el-table-column>
<el-table-column label="码" prop="udiCode"></el-table-column> <el-table-column label="内部码" prop="udiCode"></el-table-column>
<!--<el-table-column label="订单数量">-->
<!--<template slot-scope="scope">-->
<!--<span>{{ scope.row.count }}</span>-->
<!--</template>-->
<!--</el-table-column>-->
<!--<el-table-column label="实际数量">-->
<!--<template slot-scope="scope">-->
<!--<span>{{ scope.row.reCount }}</span>-->
<!--</template>-->
<!--</el-table-column>-->
<el-table-column label="状态"> <el-table-column label="状态">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ statusMap[scope.row.printStatus] }}</span> <span>{{ statusMap[scope.row.printStatus] }}</span>
@ -346,7 +332,7 @@ export default {
generateQRCodeText() { generateQRCodeText() {
let tip = "确定生成内部码?"; let tip = "确定生成内部码?";
if(this.codeArray .length>1){ if (this.codeArray.length > 1) {
tip = "是否确定重新生成内部码?"; tip = "是否确定重新生成内部码?";
} }

Loading…
Cancel
Save