9/24 现场管理bug优化

yanshishuju
wangwei 9 months ago
parent 73f1f923de
commit 1226166167

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

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

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

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

@ -317,7 +317,7 @@
</el-form-item>
</el-col>
<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
v-model="info.busTypeName"
placeholder=""
@ -423,7 +423,7 @@ import CollectOrderAllotDetail from "./CollectOrderAllotDetail";
import {filterWorkOptimize} from "@/api/basic/workPlace/sysWorkplaceManage";
import {getUserBindWork} from '@/api/basic/collectPoint/userWorkplace'
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'
export default {
@ -463,6 +463,38 @@ export default {
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: [],
queryList: [],
@ -525,7 +557,8 @@ export default {
},
showType: 1,
routerParam: this.$route.query.routerParam,
timer: null
timer: null,
selectLoading: false
}
},
@ -558,15 +591,16 @@ export default {
return
})
},
timerAuto() {
//
this.timer = setInterval(() => {
this.getList()
}, 10000)
//
// clearInterval(this.timer)
},
//todo
// timerAuto() {
// //
// this.timer = setInterval(() => {
// this.getList()
// }, 10000)
//
// //
// // clearInterval(this.timer)
// },
changeInvRemind(val) {
let post = {
workPlaceCode: val
@ -713,13 +747,28 @@ export default {
if (_this == null)
_this = this
_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();
loading.close();
},
getList() {
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));
query.workPlaceCode = null
// query.workPlaceCode = null
orderPage(query).then(res => {
this.loading = false
this.list = res.data.list || []
@ -823,6 +872,7 @@ export default {
this.showType = 2
}
this.findWorkPlace(this, "");
this.getWorkBindBusTypes(this, "");
getHead("prescribeAllot", "1").then((re) => {
//
this.tableObj = re.data;

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

@ -16,7 +16,7 @@
<!-- <el-button type="primary" @click="toggleWorkplaceStatus" style="margin-left: 10px;" >切换状态</el-button>-->
</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>
&nbsp&nbsp&nbsp&nbsp <el-button type="primary" icon="el-icon-sort" @click="toggleBusType"
style="margin-left: 10px;">切换业务</el-button>

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

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

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

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

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

@ -307,6 +307,38 @@ export default {
tableObj: [],
fromList: [],
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
showSearch: false,
@ -465,6 +497,13 @@ export default {
getList() {
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 => {
this.loading = false
this.list = res.data.list || []
@ -565,6 +604,7 @@ export default {
this.fromList = re.data.fromList;
this.getList();
this.findWorkPlace(this, "");
this.getWorkBindBusTypes(this, "")
});
this.timerAuto()
},

@ -326,6 +326,38 @@ export default {
fromList1: [],
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
showSearch: false,
@ -446,6 +478,13 @@ export default {
getList() {
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 => {
this.loading = false
this.list = res.data.list || []
@ -503,6 +542,7 @@ export default {
this.showType = 2
}
this.findWorkPlace(this, '')
this.getWorkBindBusTypes(this, "")
getHead('prescribePanel', '1').then((re) => {
//
this.tableObj = re.data

@ -386,11 +386,18 @@ export default {
startTime: this.filterQuery.startTime,
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 => {
if (res.code == 20000) {
this.closeDialog()
this.$message.success("操作成功")
loading.close();
} else {
this.$message.error(res.message)
}

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

Loading…
Cancel
Save