9/27 现场管理界面优化

yanshishuju
wangwei 6 months ago
parent d2579f3938
commit 6b9791df4c

@ -415,6 +415,7 @@ export default {
deptCode: this.$store.getters.locDeptCode,
}
this.getUsers()
this.workList = []
},
onSubmit() {
this.workList = []
@ -536,6 +537,7 @@ export default {
},
changeUsers() {
this.getUsers()
this.workList = []
}
},
created() {

@ -974,6 +974,7 @@ export default {
workplaceId: null,
workplaceName: null,
workplaceStatus: 1,
workPlaceClass: 1,
deptCode: null,
chargeUser: null,
constituencies: "1001",

@ -730,6 +730,7 @@ export default {
};
this.actDateRange = [];
this.getList();
this.panelALive = false
},
bindWorkPlace(_this, row) {
@ -748,14 +749,14 @@ export default {
_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)'
});
// const loading = _this.$loading({
// lock: true,
// text: 'Loading',
// spinner: 'el-icon-loading',
// background: 'rgba(0, 0, 0, 0.7)'
// });
_this.getList();
loading.close();
// loading.close();
},
getList() {

@ -576,6 +576,7 @@ export default {
this.actDateRange = [];
this.getList();
this.getErrorList(this);
this.panelALive = false
},
downloadPrescription() {
this.downloadPrescriptionVisible = true

@ -310,6 +310,7 @@
append-to-body
>
<selectPrescribeDialog
ref="childRef"
:workPlaceCode="null"
:busType="this.formData.busType"
:fromCorp="this.formData.fromCorp"
@ -560,8 +561,10 @@ export default {
this.selectBusTypeDisabled = false
this.findCurOrder();
} else {
this.formData.busType = this.$route.query.busType
this.findCurOrder();
if (this.$route.query.busType != null){
this.formData.busType = this.$route.query.busType
this.findCurOrder();
}
this.$refs.inputRef.focus();
busType = this.busTypeList.find(item => item.documentTypeCode === this.formData.busType);
}
@ -1032,9 +1035,11 @@ export default {
this.startDeal();
}).catch(() => {
});
} else if (temp.tagStatus === 2 || temp.tagStatus === 1) {
}
else if (temp.tagStatus === 2 || temp.tagStatus === 1) {
this.formData = temp;
this.panelALive = true
this.startDeal();
// this.$confirm('?', '', {
// confirmButtonText: '',
@ -1061,7 +1066,7 @@ export default {
},
confirmSelect(row) {
this.selectPrescriptionVisible = false;
this.formData = row;
this.startDeal();
},
@ -1091,8 +1096,14 @@ export default {
startSplit(this.formData).then(res => {
this.loading = false
if (res.code == 20000) {
this.selectPrescriptionVisible = false;
this.refreshCodesPanel(this);
} else {
}else if (res.code == 501){
this.$refs.childRef.getList();
this.$refs.childRef.getDraftList();
this.$refs.childRef.getOtherList();
this.$message.warning(res.message)
}
}).catch(() => {
@ -1198,6 +1209,8 @@ export default {
this.scanCode = "";
this.scanTitle = "扫码结果:";
this.result = "";
this.warnResult = ""
this.errResult = ""
},
/**
@ -1212,6 +1225,8 @@ export default {
this.curRow = null
this.formData.confirmFinish = false;
this.refreshCodesPanel(this)
this.clearCode()
},
toggleBusType() {
//
@ -1339,7 +1354,7 @@ export default {
}
// false
return false;
}
},
},
mounted() {
this.$refs.inputRef.focus();
@ -1377,8 +1392,6 @@ export default {
this.formData.workPlaceCode = Number(this.$route.query.workplaceId);
this.getWorkBindBusTypes(this.formData.workPlaceCode);
}
}
}

@ -957,6 +957,8 @@ export default {
};
this.actDateRange = [];
this.getList();
this.codeDetailList = []
this.resultDetailList = []
},
onSubmit(_this) {
if (_this == null)
@ -970,6 +972,8 @@ export default {
}
_this.filterQuery.page = 1;
_this.getList();
_this.codeDetailList = []
_this.resultDetailList = []
},
hideSearch() {
this.showSearch = !this.showSearch;

@ -471,6 +471,7 @@ export default {
};
this.actDateRange = [];
this.getList();
this.panelALive = false
},
downloadPrescription() {
this.downloadPrescriptionVisible = true
@ -493,6 +494,7 @@ export default {
_this = this
_this.filterQuery.page = 1;
_this.getList();
_this.panelALive = false
},
getList() {

@ -468,12 +468,14 @@ export default {
}
this.actDateRange = []
this.getList()
this.panelALive = false
},
onSubmit(_this) {
if (_this == null)
_this = this
_this.filterQuery.page = 1
_this.getList()
_this.panelALive =false
},
getList() {

@ -340,6 +340,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,
@ -460,6 +492,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 || []

@ -3,11 +3,11 @@
<el-card style="margin-top: -20px">
<el-form :model="query" label-width="auto" v-show="showSearch" size="mini">
<el-row :gutter="20">
<el-col :span="8">
<el-form-item label="当前仓库:" class="query-form-item">
<invSelect :value.sync="query.invCode" :params.sync="filterBadInv" :changeValue.sync="invChange"/>
</el-form-item>
</el-col>
<!--<el-col :span="8">-->
<!-- <el-form-item label="当前仓库:" class="query-form-item">-->
<!-- <invSelect :value.sync="query.invCode" :params.sync="filterBadInv" :changeValue.sync="invChange"/>-->
<!-- </el-form-item>-->
<!--</el-col>-->
<el-col :span="8">
<el-form-item label="编码/名称:" class="query-form-item">
<el-input v-model="query.key" placeholder="请输入编码/工位名称" clearable>
@ -40,6 +40,13 @@
<!--<el-table-column label="所属仓库" prop="invName"></el-table-column>-->
<el-table-column label="备注" prop="remake"></el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
:limit.sync="query.limit"
:page.sync="query.page"
@pagination="getList"
></pagination>
</el-card>
</div>
@ -73,7 +80,8 @@ export default {
query: {
invCode: null,//this.$store.getters.locInvCode
page: 1,
limit: 20
limit: 10,
workPlaceClass:1
},
showSearch: true,
loading: false,
@ -90,6 +98,7 @@ export default {
filterBadInv: true,
radioCheck: null,
currentRow: {},
total:0
}
},
methods: {
@ -116,6 +125,7 @@ export default {
return this.$message.error('错误错误')
}
this.list = res.data.list || []
this.total = res.data.total || 0
})
},
addWorkplace() {

@ -1,51 +1,52 @@
<template>
<div>
<div style=" display: flex;justify-content: center;">
<h2 style="color: #0aa6e0">欢迎使用现场作业工作台</h2>
</div>
<el-divider/>
<!--<div style=" display: flex;justify-content: center;">-->
<!-- <h2 style="color: #0aa6e0">欢迎使用现场作业工作台</h2>-->
<!--</div>-->
<!--<el-divider/>-->
<!-- 分割线 -->
<el-form :model="query" class="query-form" size="mini" label-width="100px" :inline="true">
<el-form-item prop="key" label="工位信息:">
<el-input v-model="query.workKey" clearable placeholder="请输入或扫描工位二维码" style="width: 400px" ref="inputField" ></el-input>
</el-form-item>
<!--<el-form :model="query" class="query-form" size="mini" label-width="100px" :inline="true">-->
<!--<el-form-item prop="key" label="工位信息:">-->
<!-- <el-input v-model="query.workKey" clearable placeholder="请输入或扫描工位二维码" style="width: 400px" ref="inputField" ></el-input>-->
<!--</el-form-item>-->
<!--<el-form-item>-->
<!-- <el-button-group style="margin-left: 10px;display:flex;">-->
<!-- <el-button type="primary" icon="el-icon-search" @click.native.stop="getStationList()">搜索</el-button>-->
<!-- </el-button-group>-->
<!--</el-form-item>-->
<el-form-item>
<el-button-group style="margin-left: 10px;display:flex;">
<el-button type="primary" icon="el-icon-search" @click.native.stop="getStationList()">搜索</el-button>
</el-button-group>
</el-form-item>
<!--</el-form>-->
</el-form>
<el-row :gutter="8">
<el-col v-for="(info, index) in stationList" :key="index" :xs="12" :sm="8" :md="8" :lg="6" >
<el-card :body-style="{margin:'20px'}"
style="margin:20px 20px 20px 20px;height: 200px;background-color: #e1f3fb;border-radius: 12px; position: relative;"
>
<el-row :gutter="8">
<el-col v-for="(info, index) in stationList" :key="index" :xs="12" :sm="8" :md="8" :lg="6" >
<el-card :body-style="{margin:'20px'}"
style="margin:20px 20px 20px 20px;height: 200px;background-color: #e1f3fb;border-radius: 12px; position: relative;"
>
<div style="display: flex; justify-content: space-between; align-items: center; height: 66px; /* 约为 200px 的 1/3 */" >
<p style="font-size: 20px;background-color: #e1f3fb;font-weight: bold;">{{ info.workplaceName }}</p> <!-- 假设你的信息对象中包含一个title属性 -->
<!-- <div style="width: 60px; height: 60px; display: flex; justify-content: center; align-items: center;">-->
<!-- &lt;!&ndash; 二维码占位这里用灰色方块代替 &ndash;&gt;-->
<!--&lt;!&ndash; <span>QR</span>&ndash;&gt;-->
<!-- <div ref="qrcode" :id="'qrcode-'+index" style="width: 60px;height: 60px;"></div>-->
<div style="display: flex; justify-content: space-between; align-items: center; height: 66px; /* 约为 200px 的 1/3 */" >
<p style="font-size: 20px;background-color: #e1f3fb;font-weight: bold;">{{ info.workplaceName }}</p> <!-- 假设你的信息对象中包含一个title属性 -->
<!-- <div style="width: 60px; height: 60px; display: flex; justify-content: center; align-items: center;">-->
<!-- &lt;!&ndash; 二维码占位这里用灰色方块代替 &ndash;&gt;-->
<!--&lt;!&ndash; <span>QR</span>&ndash;&gt;-->
<!-- <div ref="qrcode" :id="'qrcode-'+index" style="width: 60px;height: 60px;"></div>-->
<!-- </div>-->
</div>
<div style="flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 10px;" >
<!-- 假设这里有一些信息内容 -->
<p style="font-size: 14px;background-color: #e1f3fb" >{{ info.remake }}</p>
<el-button type="primary" style="position: absolute; bottom: 20px; right: 20px;" icon="el-icon-thumb" @click="handleClick(index)"></el-button>
<!-- </div>-->
</div>
<div style="flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 10px;" >
<!-- 假设这里有一些信息内容 -->
<p style="font-size: 14px;background-color: #e1f3fb" >{{ info.remake }}</p>
<el-button type="primary" style="position: absolute; bottom: 20px; right: 20px;" icon="el-icon-thumb" @click="handleClick(index)"></el-button>
</div>
</div>
</el-card>
</el-col>
</el-row>
</el-card>
</el-col>
</el-row>
</div>

@ -631,6 +631,8 @@ export default {
},
getList() {
this.panelALive = false
this.loading = true;
if (this.actDateRange !== null) {
@ -647,7 +649,7 @@ export default {
this.filterQuery.tagStatus = 1
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 || []
@ -660,6 +662,7 @@ export default {
},
getDraftList() {
this.loading = true;
this.panelALive = false
this.filterQuery.busType = this.busType
this.filterQuery.excludeWorkCode = null
// this.filterQuery.fromCorp = this.fromCorp
@ -675,6 +678,7 @@ export default {
})
},
getOtherList() {
this.panelALive = false
this.loading = true;
this.filterQuery.busType = this.busType
// this.filterQuery.fromCorp = this.fromCorp

Loading…
Cancel
Save