10/12 bug优化

20240912_adapter
wangwei 9 months ago
parent df7e17875e
commit 56927debf5

@ -12,6 +12,14 @@ export function listPage(query) {
});
}
export function getListByBusType(query) {
return axios({
url: "/udiwms/sysWorkplace/getListByBusType",
method: "post",
data: query
});
}
export function addWorkplace(query) {
return axios({

@ -151,7 +151,6 @@
<el-form-item label="计量单位:" prop="distributeLevel" label-width="160px">
<el-select v-model="newProductData.distributeLevel" size="small" style="width: 90%"
clearable
@change="distributeLevelDiChange"
placeholder="请选择计量单位"
>
@ -171,7 +170,6 @@
<el-col :span="11" class="el-col">
<el-form-item label="允许采集的最大层级:" prop="distributeMaxLevel" label-width="160px">
<el-select v-model="newProductData.distributeMaxLevel" size="small" style="width: 90%"
clearable
placeholder="请选择允许采集的最大层级"
>
<el-option
@ -1059,6 +1057,11 @@ export default {
this.isSave = true
this.$message.success('删除成功')
this.getDetailList()
this.getDiLevel()
this.newProductData.distributeLevel = null
this.newProductData.distributeMaxLevel = null
this.newProductData.useLevel = null
this.newProductData.useMaxLevel = null
}
})
} else {

@ -1025,7 +1025,29 @@ export default {
this.deptList = res.data.list || []
}
})
},
edit(row) {
this.formData = row
// this.formData.invCode = String(row.invCode)
if (row.chargeUser == 0) {
this.formData.chargeUser = null
} else if (row.chargeUser == 1) {
this.formData.chargeUser = Number(row.chargeUser)
} else {
this.formData.chargeUser = row.chargeUser
}
this.fromName = 'edit'
this.invQuery.deptCode = row.deptCode
getUsers(this.invQuery).then(res => {
if (res.code == 20000) {
this.users = res.data.list || []
} else {
this.$message.error('错误')
}
})
this.getTree()
this.addWorkplaceDialogVisible = true
},
},
created() {
this.getDepts()

@ -727,7 +727,7 @@ export default {
onReset() {
this.filterQuery = {
billNo: null,
tagStatus: null,
tagStatus: 1,
page: 1,
limit: 9,
};

@ -758,6 +758,7 @@ export default {
if (response.code == 20000) {
this.getList();
this.getErrorList(this);
this.panelALive = false
this.$message({
type: "success",
message: "删除成功!",

@ -1252,7 +1252,8 @@ export default {
this.formData.confirmFinish = false;
this.refreshCodesPanel(this)
this.clearCode()
this.$refs.inputRef.focus();
this.$refs.inputRef.select();
},
toggleBusType() {
//

@ -190,7 +190,7 @@
<el-button
type="primary"
size="mini"
@click.native.stop="addCode()"
@click.native.stop="enterKey($event)"
style="margin-left: 15px"
>添加
</el-button>
@ -1060,6 +1060,7 @@ export default {
key: val,
page: 1,
limit: 10,
workPlaceClass: 2
}
filterWorkOptimize(query)
.then((response) => {
@ -1769,6 +1770,7 @@ export default {
type: "warning",
closeOnClickModal: true,
callback: (action) => {
this.scanCode = ""
this.$refs.inputRef.focus();
this.$refs.inputRef.select();
},

@ -284,7 +284,7 @@ import prescribeCodePanel from './PanelOrderTagCode'
import PanelOrderManuTagCode from './PanelOrderManuTagCode'
import prescribeOriginPanel from '@/views/collect/PannelOrderBiz'
import PanelOrderAllDetail from '@/views/collect/PanelOrderAllDetail'
import CollectFinishOrderBackupDetail from "./CollectFinishOrderBackupDetail"
import CollectFinishOrderBackupDetail from './CollectFinishOrderBackupDetail'
import { orderFinish, orderPage, orderUpload } from '@/api/collect/collectOrder'
import { filterWorkOptimize } from '@/api/basic/workPlace/sysWorkplaceManage'
@ -343,33 +343,33 @@ export default {
pickerOptions: {
shortcuts: [
{
text: "最近一周",
text: '最近一周',
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
picker.$emit("pick", [start, end]);
},
const end = new Date()
const start = new Date()
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7)
picker.$emit('pick', [start, end])
}
},
{
text: "最近一个月",
text: '最近一个月',
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
picker.$emit("pick", [start, end]);
},
const end = new Date()
const start = new Date()
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30)
picker.$emit('pick', [start, end])
}
},
{
text: "最近三个月",
text: '最近三个月',
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
picker.$emit("pick", [start, end]);
},
},
],
const end = new Date()
const start = new Date()
start.setTime(start.getTime() - 3600 * 1000 * 24 * 90)
picker.$emit('pick', [start, end])
}
}
]
},
actDateRange: [],
//-------------end
@ -403,7 +403,7 @@ export default {
isLinkDisabled: false,
options: {
findWorkPlace: [],
getBusType: [],
getBusType: []
},
showType: 1
}
@ -426,14 +426,14 @@ export default {
_this.busQuery.workplaceCode = query
getWorkBindBusTypes(this.busQuery).then(res => {
if (res.code == 20000) {
let busTypes = res.data.list || [];
let busTypes = res.data.list || []
// _this.options.getWorkPlace = res.data.list || [];
let getWorkPlace = busTypes.map(busType => {
return {
code: busType.documentTypeCode,
label: busType.busName
};
});
}
})
_this.options.getBusType = getWorkPlace
if (_this.options.getBusType.length == 1) {
_this.filterQuery.busType = _this.options.getBusType[0].code
@ -468,24 +468,32 @@ export default {
hideSearch() {
this.showSearch = !this.showSearch
this.$nextTick(() => {
console.log('组件已刷新');
});
console.log('组件已刷新')
})
},
onReset() {
this.filterQuery = {
busType: null,
tagStatus: null,
uploadStatus: 1,
billNo: null,
workPlaceCode: null,
page: 1,
limit: 10
},
this.filterQuery.tagStatus = this.tagStatus
this.filterQuery.uploadStatus = String(this.status)
if (this.status == 2) {
this.filterQuery.uploadStatusName = '已上传'
}
this.actDateRange = []
this.getList()
},
onSubmit(_this) {
if (_this == null)
if (_this == null) {
_this = this
}
_this.filterQuery.page = 1
_this.getList()
},
@ -493,11 +501,11 @@ export default {
getList() {
this.loading = true
if (this.actDateRange !== null) {
this.filterQuery.startTime = this.actDateRange[0];
this.filterQuery.endTime = this.actDateRange[1];
this.filterQuery.startTime = this.actDateRange[0]
this.filterQuery.endTime = this.actDateRange[1]
} else {
this.filterQuery.startTime = null;
this.filterQuery.endTime = null;
this.filterQuery.startTime = null
this.filterQuery.endTime = null
}
orderFinish(this.filterQuery).then(res => {
this.loading = false
@ -549,35 +557,34 @@ export default {
})
},
orderUpload(_this, row) {
let params = row;
_this.$confirm("该订单将上传到外部系统,是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
let params = row
_this.$confirm('该订单将上传到外部系统,是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
.then(() => {
orderUpload({ billNo: params.billNo })
.then((response) => {
if (response.code == 20000) {
_this.getList();
_this.getList()
_this.$message({
type: "success",
message: "上传成功!",
});
type: 'success',
message: '上传成功!'
})
} else if (response.code == 520) {
_this.$message.error(response.message);
_this.getList();
_this.$message.error(response.message)
_this.getList()
} else {
_this.$message.error(response.message);
_this.getList();
_this.$message.error(response.message)
_this.getList()
}
})
.catch(() => {
});
})
})
.catch(() => {
});
})
}

@ -504,7 +504,8 @@ export default {
userIdFlag: true,
key: val,
page: 1,
limit: 10
limit: 10,
workPlaceClass:1
}
filterWorkOptimize(query)
.then((response) => {
@ -523,12 +524,13 @@ export default {
},
created() {
if (this.$route.query.workplaceId != null) {
this.isLinkDisabled = true
this.filterQuery.workPlaceCode = this.$route.query.workplaceId
this.showType = 2
}
// if (this.$route.query.workplaceId != null) {
// this.isLinkDisabled = true
// this.filterQuery.workPlaceCode = this.$route.query.workplaceId
// this.showType = 2
// }
this.findWorkPlace(this, '')
this.getWorkBindBusTypes(this, '')
getHead('prescribePanelSelect', '1').then((re) => {
//
this.tableObj = re.data

@ -58,7 +58,7 @@ import {
addWorkplace,
updateWorkplace,
deleteWorkplace,
createWorkplaceId
createWorkplaceId, getListByBusType
} from '@/api/basic/workPlace/sysWorkplaceManage'
import {bindWork} from "@/api/collect/collectOrder";
@ -81,7 +81,8 @@ export default {
invCode: null,//this.$store.getters.locInvCode
page: 1,
limit: 10,
workPlaceClass:1
workPlaceClass:1,
busType: null
},
showSearch: true,
loading: false,
@ -114,13 +115,16 @@ export default {
path: ''
})
this.query = {
invCode: null,//this.$store.getters.locInvCode
page: 1,
limit: 20
}
limit: 10,
workPlaceClass:1
},
this.getList()
},
getList() {
listPage(this.query).then(res => {
this.query.busType = this.prescribeListData.busType
getListByBusType(this.query).then(res => {
if (res.code != 20000) {
return this.$message.error('错误错误')
}

@ -123,7 +123,7 @@
</el-button-group>
</div>
<el-divider style="margin: 15px"></el-divider>
<el-tabs type="border-card" style="margin-top: 55px">
<el-tabs type="border-card" style="margin-top: 55px" @tab-click="handleTabClick">
<el-tab-pane label="待处理单据">
<el-table v-loading="loading" :data="list" style="width: 100%;" border highlight-current-row
@ -779,6 +779,9 @@ export default {
return
})
},
handleTabClick(tab){
this.panelALive = false
}
},
created() {
if (this.$route.query.workplaceId != null) {

Loading…
Cancel
Save