9/24 现场管理bug优化

yanshishuju
wangwei 9 months ago
parent 73f1f923de
commit 1226166167

@ -86,6 +86,13 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<pagination
v-show="total>0"
:total="total"
:page.sync="query.page"
:limit.sync="query.limit"
@pagination="getList"
/>
<el-dialog <el-dialog
title="工位详情" title="工位详情"
@ -270,7 +277,7 @@ export default {
return { return {
query: { query: {
page: 1, page: 1,
limit: 20, limit: 10,
code: null code: null
}, },
workQuery: { workQuery: {
@ -342,6 +349,7 @@ export default {
rowData: {}, rowData: {},
rowList: [], rowList: [],
deptList: [], deptList: [],
total:0,
} }
}, },
methods: { methods: {
@ -368,6 +376,7 @@ export default {
return this.$message.error('错误错误') return this.$message.error('错误错误')
} }
this.list = res.data.list || [] this.list = res.data.list || []
this.total = res.data.total || 0
}) })
}, },
addWorkplace() { addWorkplace() {

@ -144,6 +144,7 @@
:close-on-press-escape="false" :close-on-press-escape="false"
width="85%" width="85%"
v-if="addDrugVisible" v-if="addDrugVisible"
@close="closeDialog"
> >
<drugAdd <drugAdd
:closeDialog="closeDialog" :closeDialog="closeDialog"

@ -136,6 +136,7 @@
v-if="chooseBusTypeDialogVisible" v-if="chooseBusTypeDialogVisible"
:close-on-click-modal="false" :close-on-click-modal="false"
:close-on-press-escape="false" :close-on-press-escape="false"
@close="closeDialog"
> >
<!--<selectBusType--> <!--<selectBusType-->
<!-- :closeDialog="closeDialog"--> <!-- :closeDialog="closeDialog"-->

@ -903,13 +903,15 @@ export default {
this.getList() this.getList()
}, },
onReset() { onReset() {
this.userList = []
this.$router.push({ this.$router.push({
path: '' path: ''
}) })
this.query = { this.query = {
page: 1, page: 1,
limit: 20, limit: 20,
workplaceStatus: null workplaceStatus: 1,
deptCode: this.$store.getters.locDeptCode,
} }
this.getList() this.getList()
}, },

@ -317,7 +317,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<el-form-item class="query-form-item" label-width="35%" label="业务类型:"> <el-form-item class="query-form-item" label-width="35%" label="业务名称:">
<el-input <el-input
v-model="info.busTypeName" v-model="info.busTypeName"
placeholder="" placeholder=""
@ -423,7 +423,7 @@ import CollectOrderAllotDetail from "./CollectOrderAllotDetail";
import {filterWorkOptimize} from "@/api/basic/workPlace/sysWorkplaceManage"; import {filterWorkOptimize} from "@/api/basic/workPlace/sysWorkplaceManage";
import {getUserBindWork} from '@/api/basic/collectPoint/userWorkplace' import {getUserBindWork} from '@/api/basic/collectPoint/userWorkplace'
import {decideOrder, deleteByOrder, orderPage, orderTop} from '@/api/collect/collectOrder' import {decideOrder, deleteByOrder, orderPage, orderTop} from '@/api/collect/collectOrder'
import {getWorkBindBusTypes, removeBusTypeById} from '@/api/basic/workPlace/sysWorkplaceDocuments' import {getWorkBindBusTypes, removeBusTypeById,filterListByWorkplace} from '@/api/basic/workPlace/sysWorkplaceDocuments'
import {isBlank} from '@/utils/strUtil' import {isBlank} from '@/utils/strUtil'
export default { export default {
@ -463,6 +463,38 @@ export default {
companyName: this.$store.getters.companyName, companyName: this.$store.getters.companyName,
}, },
// //
pickerOptions: {
shortcuts: [
{
text: "最近一周",
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
picker.$emit("pick", [start, end]);
},
},
{
text: "最近一个月",
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
picker.$emit("pick", [start, end]);
},
},
{
text: "最近三个月",
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
picker.$emit("pick", [start, end]);
},
},
],
},
actDateRange: [],
// //
tableHeader: [], tableHeader: [],
queryList: [], queryList: [],
@ -525,7 +557,8 @@ export default {
}, },
showType: 1, showType: 1,
routerParam: this.$route.query.routerParam, routerParam: this.$route.query.routerParam,
timer: null timer: null,
selectLoading: false
} }
}, },
@ -558,15 +591,16 @@ export default {
return return
}) })
}, },
timerAuto() { //todo
// // timerAuto() {
this.timer = setInterval(() => { // //
this.getList() // this.timer = setInterval(() => {
}, 10000) // this.getList()
// }, 10000)
// //
// clearInterval(this.timer) // //
}, // // clearInterval(this.timer)
// },
changeInvRemind(val) { changeInvRemind(val) {
let post = { let post = {
workPlaceCode: val workPlaceCode: val
@ -713,13 +747,28 @@ export default {
if (_this == null) if (_this == null)
_this = this _this = this
_this.filterQuery.page = 1; _this.filterQuery.page = 1;
_this.selectLoading = true;
const loading = _this.$loading({
lock: true,
text: 'Loading',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
_this.getList(); _this.getList();
loading.close();
}, },
getList() { getList() {
this.loading = true; this.loading = true;
if (this.actDateRange !== null) {
this.filterQuery.startTime = this.actDateRange[0];
this.filterQuery.endTime = this.actDateRange[1];
} else {
this.filterQuery.startTime = null;
this.filterQuery.endTime = null;
}
let query = JSON.parse(JSON.stringify(this.filterQuery)); let query = JSON.parse(JSON.stringify(this.filterQuery));
query.workPlaceCode = null // query.workPlaceCode = null
orderPage(query).then(res => { orderPage(query).then(res => {
this.loading = false this.loading = false
this.list = res.data.list || [] this.list = res.data.list || []
@ -823,6 +872,7 @@ export default {
this.showType = 2 this.showType = 2
} }
this.findWorkPlace(this, ""); this.findWorkPlace(this, "");
this.getWorkBindBusTypes(this, "");
getHead("prescribeAllot", "1").then((re) => { getHead("prescribeAllot", "1").then((re) => {
// //
this.tableObj = re.data; this.tableObj = re.data;

@ -880,7 +880,8 @@ export default {
errorHandleSubmit(params) errorHandleSubmit(params)
.then((response) => { .then((response) => {
if (response.code == 20000) { if (response.code == 20000) {
this.getErrorList(_this); _this.getErrorList(_this);
_this.getList();
_this.$message.success("处理成功!") _this.$message.success("处理成功!")
} else if (response.code == 520) { } else if (response.code == 520) {
_this.$message.error(response.message); _this.$message.error(response.message);

@ -16,7 +16,7 @@
<!-- <el-button type="primary" @click="toggleWorkplaceStatus" style="margin-left: 10px;" >切换状态</el-button>--> <!-- <el-button type="primary" @click="toggleWorkplaceStatus" style="margin-left: 10px;" >切换状态</el-button>-->
</span> </span>
<span style="font-size: 14px;color: #909399;margin-left: 20px">当前业务类型:&nbsp&nbsp&nbsp&nbsp<span <span style="font-size: 14px;color: #909399;margin-left: 20px">当前业务名称:&nbsp&nbsp&nbsp&nbsp<span
style="font-size: 16px;color: #000000">{{ this.formData.busName }}</span> style="font-size: 16px;color: #000000">{{ this.formData.busName }}</span>
&nbsp&nbsp&nbsp&nbsp <el-button type="primary" icon="el-icon-sort" @click="toggleBusType" &nbsp&nbsp&nbsp&nbsp <el-button type="primary" icon="el-icon-sort" @click="toggleBusType"
style="margin-left: 10px;">切换业务</el-button> style="margin-left: 10px;">切换业务</el-button>

@ -1223,8 +1223,9 @@ export default {
}, },
created() { created() {
this.getInvList(this); this.getInvList(this);
this.getBusType(this); // this.getBusType(this);
this.findWorkPlace(this, ""); this.findWorkPlace(this, "");
this.getWorkBindBusTypes(this, "");
getHead("IoDestroyLog", "1").then((re) => { getHead("IoDestroyLog", "1").then((re) => {

@ -485,6 +485,7 @@ export default {
this.showType = 2 this.showType = 2
} }
this.findWorkPlace(this, "") this.findWorkPlace(this, "")
this.getWorkBindBusTypes(this, "")
getHead("ioSplitCode", "1").then((re) => { getHead("ioSplitCode", "1").then((re) => {
// //

@ -1028,6 +1028,7 @@ export default {
this.isLinkDisabled = true this.isLinkDisabled = true
} }
this.findWorkPlace(this, "") this.findWorkPlace(this, "")
this.getWorkBindBusTypes(this, "")
// console.log(this.panelType) // console.log(this.panelType)
getHead("ioSplitFifoCode", "1").then((re) => { getHead("ioSplitFifoCode", "1").then((re) => {
// //

@ -446,6 +446,7 @@ export default {
this.isLinkDisabled = true this.isLinkDisabled = true
} }
this.findWorkPlace(this, "") this.findWorkPlace(this, "")
this.getWorkBindBusTypes(this, "")
getHead("ioSplitFifoRemind", "1").then((re) => { getHead("ioSplitFifoRemind", "1").then((re) => {
// //
this.tableObj = re.data; this.tableObj = re.data;

@ -700,9 +700,9 @@
<script> <script>
import { import {
deleteByOrderId, deleteByOrderId, errorCodeList,
getOrderList, submitCodes getOrderList, submitCodes
} from "@/api/inout/order"; } from '@/api/inout/order'
import addOrder from "@/views/inout/DialogCreateOrder"; import addOrder from "@/views/inout/DialogCreateOrder";
import errOrder from "@/views/inout/IoCreateErrorOrder"; import errOrder from "@/views/inout/IoCreateErrorOrder";
import {getInvListByUserOptimize} from "@/api/system/invWarehouse"; import {getInvListByUserOptimize} from "@/api/system/invWarehouse";
@ -720,6 +720,7 @@ import {getUserBindWork} from '@/api/basic/collectPoint/userWorkplace'
import {getWorkBindBusTypes, removeBusTypeById} from '@/api/basic/workPlace/sysWorkplaceDocuments' import {getWorkBindBusTypes, removeBusTypeById} from '@/api/basic/workPlace/sysWorkplaceDocuments'
import IoCreateOrder from '@/views/collect/IoCreateOrder.vue' import IoCreateOrder from '@/views/collect/IoCreateOrder.vue'
import {filterWorkOptimize} from '@/api/basic/workPlace/sysWorkplaceManage' import {filterWorkOptimize} from '@/api/basic/workPlace/sysWorkplaceManage'
import { getDetailCodes } from '@/api/inout/orderDetailCode'
export default { export default {
props: { props: {
@ -1042,9 +1043,11 @@ export default {
this.deleteData.billNo = data; this.deleteData.billNo = data;
deleteByOrderId(this.deleteData) deleteByOrderId(this.deleteData)
.then((response) => { .then((response) => {
if (response.code == 20000) { if (response.code == 20000) {
this.getList(); this.getList();
this.currentRow.billNo = ""
this.resultDetailList= []
this.codeDetailList = []
this.$message({ this.$message({
type: "success", type: "success",
message: "删除成功!", message: "删除成功!",
@ -1209,8 +1212,8 @@ export default {
this.bizDetailLoading = true; this.bizDetailLoading = true;
this.bizQuery.page = null; this.bizQuery.page = null;
this.bizQuery.limit = null; this.bizQuery.limit = null;
this.bizQuery.orderIdFk = this.currentRow.billNo; this.bizQuery.orderId = this.currentRow.billNo;
getBizDetailList(this.bizQuery).then((res) => { getDetailCodes(this.bizQuery).then((res) => {
this.bizDetailLoading = false; this.bizDetailLoading = false;
if (res.code === 20000) { if (res.code === 20000) {
this.codeDetailList = res.data.list || []; this.codeDetailList = res.data.list || [];
@ -1247,7 +1250,7 @@ export default {
this.resultQuery.orderId = this.currentRow.billNo; this.resultQuery.orderId = this.currentRow.billNo;
this.resultDetailLoading = true; this.resultDetailLoading = true;
getCodeList(this.resultQuery).then((res) => { errorCodeList(this.resultQuery).then((res) => {
this.resultDetailLoading = false; this.resultDetailLoading = false;
if (res.code === 20000) { if (res.code === 20000) {
this.resultDetailList = res.data.list || []; this.resultDetailList = res.data.list || [];

@ -307,6 +307,38 @@ export default {
tableObj: [], tableObj: [],
fromList: [], fromList: [],
convertDateFun: convertDate, convertDateFun: convertDate,
pickerOptions: {
shortcuts: [
{
text: "最近一周",
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
picker.$emit("pick", [start, end]);
},
},
{
text: "最近一个月",
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
picker.$emit("pick", [start, end]);
},
},
{
text: "最近三个月",
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
picker.$emit("pick", [start, end]);
},
},
],
},
actDateRange: [],
//-------------end //-------------end
showSearch: false, showSearch: false,
@ -465,6 +497,13 @@ export default {
getList() { getList() {
this.loading = true; this.loading = true;
if (this.actDateRange !== null) {
this.filterQuery.startTime = this.actDateRange[0];
this.filterQuery.endTime = this.actDateRange[1];
} else {
this.filterQuery.startTime = null;
this.filterQuery.endTime = null;
}
orderPage(this.filterQuery).then(res => { orderPage(this.filterQuery).then(res => {
this.loading = false this.loading = false
this.list = res.data.list || [] this.list = res.data.list || []
@ -565,6 +604,7 @@ export default {
this.fromList = re.data.fromList; this.fromList = re.data.fromList;
this.getList(); this.getList();
this.findWorkPlace(this, ""); this.findWorkPlace(this, "");
this.getWorkBindBusTypes(this, "")
}); });
this.timerAuto() this.timerAuto()
}, },

@ -326,6 +326,38 @@ export default {
fromList1: [], fromList1: [],
convertDateFun: convertDate, convertDateFun: convertDate,
pickerOptions: {
shortcuts: [
{
text: "最近一周",
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
picker.$emit("pick", [start, end]);
},
},
{
text: "最近一个月",
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
picker.$emit("pick", [start, end]);
},
},
{
text: "最近三个月",
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
picker.$emit("pick", [start, end]);
},
},
],
},
actDateRange: [],
//-------------end //-------------end
showSearch: false, showSearch: false,
@ -446,6 +478,13 @@ export default {
getList() { getList() {
this.loading = true this.loading = true
if (this.actDateRange !== null) {
this.filterQuery.startTime = this.actDateRange[0];
this.filterQuery.endTime = this.actDateRange[1];
} else {
this.filterQuery.startTime = null;
this.filterQuery.endTime = null;
}
orderFinish(this.filterQuery).then(res => { orderFinish(this.filterQuery).then(res => {
this.loading = false this.loading = false
this.list = res.data.list || [] this.list = res.data.list || []
@ -503,6 +542,7 @@ export default {
this.showType = 2 this.showType = 2
} }
this.findWorkPlace(this, '') this.findWorkPlace(this, '')
this.getWorkBindBusTypes(this, "")
getHead('prescribePanel', '1').then((re) => { getHead('prescribePanel', '1').then((re) => {
// //
this.tableObj = re.data this.tableObj = re.data

@ -386,11 +386,18 @@ export default {
startTime: this.filterQuery.startTime, startTime: this.filterQuery.startTime,
list: this.selectList, list: this.selectList,
} }
const loading = this.$loading({
lock: true,
text: 'Loading',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
// //
prescribeSave(post).then(res => { prescribeSave(post).then(res => {
if (res.code == 20000) { if (res.code == 20000) {
this.closeDialog() this.closeDialog()
this.$message.success("操作成功") this.$message.success("操作成功")
loading.close();
} else { } else {
this.$message.error(res.message) this.$message.error(res.message)
} }

@ -3,7 +3,7 @@
<el-form :model="editData" :rules="formRules" ref="dataForm" label-width="100px"> <el-form :model="editData" :rules="formRules" ref="dataForm" label-width="100px">
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="20"> <el-col :span="20">
<el-form-item label="UDI码:" prop="code"> <el-form-item label="追溯码:" prop="code">
<el-input <el-input
v-model="editData.code" v-model="editData.code"
clearable clearable

Loading…
Cancel
Save