界面修改

20240912_adapter_z
yewj 7 months ago
parent 4d4b7995e5
commit 6aebccf9bc

@ -250,10 +250,10 @@ import {convertDate} from "@/utils/date";
import {detail} from "@/api/basic/sicker/prescribeApi"; import {detail} from "@/api/basic/sicker/prescribeApi";
import prescribeDownloadDialog from "@/views/collect/prescribe/prescribeDownloadDialog"; import prescribeDownloadDialog from "@/views/collect/prescribe/prescribeDownloadDialog";
import prescribeOriginPanel from "./PannelOrderBiz"; import prescribeOriginPanel from "./PannelOrderBiz";
import {clearAllOrder, deleteByOrder, importOrder, orderPage,downloadOrder} from "@/api/collect/collectOrder"; import {clearAllOrder, deleteByOrder, importOrder, orderPage, downloadOrder} from "@/api/collect/collectOrder";
import {filterSubAllOptimize} from "@/api/system/invSubWarehouse"; import {filterSubAllOptimize} from "@/api/system/invSubWarehouse";
import {filterWorkOptimize} from "@/api/basic/workPlace/sysWorkplaceManage"; import {filterWorkOptimize} from "@/api/basic/workPlace/sysWorkplaceManage";
import { getWorkBindBusTypes } from '@/api/basic/workPlace/sysWorkplaceDocuments' import {getWorkBindBusTypes} from '@/api/basic/workPlace/sysWorkplaceDocuments'
export default { export default {
name: "prescribePanel", name: "prescribePanel",
@ -318,7 +318,7 @@ export default {
}, },
curRow: null, curRow: null,
panelALive: false, panelALive: false,
busQuery:{ busQuery: {
workplaceCode: '', workplaceCode: '',
page: 1, page: 1,
limit: 100 limit: 100
@ -377,15 +377,15 @@ export default {
this.loading = false this.loading = false
}) })
}, },
downloadData(){ downloadData() {
if (this.filterQuery.busType == null ||this.filterQuery.workPlaceCode == null ){ if (this.filterQuery.busType == null || this.filterQuery.workPlaceCode == null) {
return this.$message.error("请选择工位和业务类型") return this.$message.error("请选择工位和业务类型")
} }
downloadOrder(this.filterQuery).then(res => { downloadOrder(this.filterQuery).then(res => {
if (res.code == 20000){ if (res.code == 20000) {
return this.$message.success(res.data) return this.$message.success(res.data)
}else { } else {
return this.$message.error("获取错误") return this.$message.error(res.message)
} }
}) })
}, },
@ -521,8 +521,7 @@ export default {
_this.options.getBusType = getWorkPlace _this.options.getBusType = getWorkPlace
if (_this.options.getBusType.length == 1) { if (_this.options.getBusType.length == 1) {
_this.filterQuery.busType = _this.options.getBusType[0].code _this.filterQuery.busType = _this.options.getBusType[0].code
} } else {
else {
_this.filterQuery.busType = null _this.filterQuery.busType = null
} }
} }
@ -542,7 +541,7 @@ export default {
this.getList(); this.getList();
}); });
this.filterQuery.tagStatus = this.tagStatus this.filterQuery.tagStatus = this.tagStatus
this.findWorkPlace(this,'') this.findWorkPlace(this, '')
} }
} }

@ -297,16 +297,16 @@ export default {
rowStyle({row, rowIndex}) { rowStyle({row, rowIndex}) {
let rowBackground = {}; let rowBackground = {};
if (row.autoTagStatus == 2) {
rowBackground.color = '#fffb00';
}else
if (row.scanActCount > row.count) {
rowBackground.color = '#000000';
}else
if (row.scanActCount < row.count) { if (row.scanActCount < row.count) {
rowBackground.color = '#f60303'; rowBackground.color = '#F56C6C';
}
if (row.autoTagStatus == 2) {
rowBackground.color = '#E6A23C';
}
if (row.scanActCount >= row.count) {
rowBackground.color = '#67C23A';
} }
rowBackground.height = "38px" rowBackground.height = "38px"
return rowBackground; return rowBackground;
}, },

Loading…
Cancel
Save