This commit is contained in:
ls
2025-08-05 16:05:07 +08:00
parent 2b67c41115
commit 7a9e8fc40a
44 changed files with 66 additions and 66 deletions

View File

@@ -1,7 +1,7 @@
import request from '@/utils/request'
export function login(username, password, code, uuid) {
// debugger
////debugger
return request({
url: 'auth/login',
method: 'post',

View File

@@ -17,7 +17,7 @@ router.beforeEach((to, from, next) => {
}
NProgress.start()
if (getToken()) {
// debugger
////debugger
// 已登录且要跳转的页面是登录页
if (to.path === '/login') {
next({ path: '/' })

View File

@@ -9,7 +9,7 @@ export default function checkPermission(value) { // 权限判断
if (value && value instanceof Array && value.length > 0) {
const roles = store.getters && store.getters.roles
const permissionRoles = value
// debugger
////debugger
const hasPermission = roles.some(role => {
return permissionRoles.includes(role)
})

View File

@@ -61,7 +61,7 @@ service.interceptors.response.use(
console.log(code)
if (code) {
if (code === 401) {
// debugger
////debugger
store.dispatch('LogOut').then(() => {
// 用户登录界面提示
Cookies.set('point', 401)

View File

@@ -397,7 +397,7 @@ export default {
},
downloadData() {
logOperation.downloadData().then(result => {
debugger
//debugger
downloadFile(result, '导出数据', 'xlsx')
});
},

View File

@@ -267,7 +267,7 @@ export default {
// 改变状态
changeEnabled(data, val) {
const satus = this.enabledTypeOptions.find(item => { return item.key == data.is_used })
debugger
//debugger
this.$confirm('此操作将 "' + satus.display_name + '" ' + data.name + '部门, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',

View File

@@ -275,7 +275,7 @@ export default {
},
[CRUD.HOOK.afterToCU](crud, form) {
this.getUserList()
debugger
//debugger
if (form.upload_user && form.upload_user !== '') {
form.upload_user = form.upload_user.split(',')
} else {

View File

@@ -386,7 +386,7 @@ export default {
}
const dafult = this.$el.getElementsByClassName('dafult')
for (let a = 0; a < dafult.length; a++) {
debugger
//debugger
dafult[a].click()
}
}

View File

@@ -845,7 +845,7 @@ export default {
if (this.currentRow !== null) {
this.showDtlLoading = true
download('/api/subpackagerelation/download', this.crud.query).then(result => {
debugger
//debugger
downloadFile(result, '子卷包装', 'xlsx')
this.showDtlLoading = false
}).catch(() => {

View File

@@ -361,7 +361,7 @@ export default {
return true
},
uploadMES() {
debugger
//debugger
const _selectData = this.$refs.table.selection
if (_selectData.length !== 1) {
return this.crud.notify('请选择一个点位进行回传!', CRUD.NOTIFICATION_TYPE.INFO)

View File

@@ -267,7 +267,7 @@ export default {
return true
},
[CRUD.HOOK.beforeSubmit]() {
debugger
//debugger
if (this.form.point_status !== '01' && !this.form.vehicle_code) {
this.crud.notify('请输入载具编码!', CRUD.NOTIFICATION_TYPE.INFO)
return false

View File

@@ -288,7 +288,7 @@ export default {
this.crud.toQuery()
},
uploadMES() {
debugger
//debugger
const _selectData = this.$refs.table.selection
if (_selectData.length !== 1) {
return this.crud.notify('请选择一个点位进行回传!', CRUD.NOTIFICATION_TYPE.INFO)

View File

@@ -681,7 +681,7 @@ export default {
}
},
tableChanged(rows) {
debugger
//debugger
// 对新增的行进行校验不能存在相同物料批次
rows.forEach((item) => {
let same_mater = true

View File

@@ -232,7 +232,7 @@ export default {
},
methods: {
handleSearch() {
debugger
//debugger
this.multipleSelection = this.multipleSelection.filter(i => {
return this.$refs.dis_table.selection.includes(i)
})
@@ -315,7 +315,7 @@ export default {
},
// 表格1的行点击事件
handleRowClick(scope) {
debugger
//debugger
// 按钮禁用
this.isButtonDisabled = !!(scope.status !== '99')
this.isButtonDisabled1 = scope.status === '99'
@@ -331,7 +331,7 @@ export default {
},
// 表格2的行点击事件
handleSelectionChange(selection) {
debugger
//debugger
if (selection.length > 0) {
this.isButtonDisabled = !selection.every(item => item.status === '99')
this.isButtonDisabled1 = selection.some(item => item.status === '99')
@@ -346,7 +346,7 @@ export default {
this.previousSelection = selection
}
} else {
debugger
//debugger
if (!this.searchText) {
this.cancelSelection = []
this.cancelSelection = [...this.currentSelection]
@@ -378,17 +378,17 @@ export default {
row.index = rowIndex
},
async tableChanged(row) {
debugger
//debugger
this.form.tableMater = this.currentSelection
if (this.currentSelection.length > row.num) {
this.crud.notify('子卷数量超过木箱的最大装卷数!', CRUD.NOTIFICATION_TYPE.WARNING)
return
}
debugger
//debugger
this.form.checked = row.material_code
this.form.sale_order_name = this.saleOrderName
await crudPackagerelation.updateEntityList(this.form)
debugger
//debugger
const queryParam = { sale_order_name: this.saleOrderName, type: '0' }
const res = crudSubpackagerelation.queryContainerization(queryParam)
this.openParam = res.content
@@ -398,9 +398,9 @@ export default {
this.$emit('childEvent')
},
divStruct() {
debugger
//debugger
if (this.currentSelection.length > 0 && this.$refs.dis_table.selection.length > 0) {
debugger
//debugger
const weightList = this.currentSelection.filter(item => item.weight === '0' || item.weight === null)
if (weightList.length > 0) {
this.crud.notify('该子卷重量不能为空,请检查子卷的分切计划信息!', CRUD.NOTIFICATION_TYPE.WARNING)

View File

@@ -214,7 +214,7 @@ export default {
this.$emit('update:dialogShow', false)
},
submit() {
debugger
//debugger
this.rows = this.$refs.table.selection
if (this.rows.length <= 0) {
this.crud.notify('请选择木箱信息!', CRUD.NOTIFICATION_TYPE.WARNING)
@@ -224,7 +224,7 @@ export default {
this.dialogVisible1 = true
},
confirmSubmit() {
debugger
//debugger
this.dialogVisible1 = false
this.$emit('update:dialogShow', false)
this.$emit('tableChanged', this.checkrow)

View File

@@ -227,7 +227,7 @@ export default {
this.crud.toQuery()
},
async divOpen() {
debugger
//debugger
this.saleOrderName = this.currentRow.sale_order_name
const queryParam = { sale_order_name: this.currentRow.sale_order_name, type: '0' }
const res = await crudSubpackagerelation.queryContainerization(queryParam)
@@ -235,7 +235,7 @@ export default {
// this.divShow = true
},
divOpen1() {
debugger
//debugger
this.saleOrderName = this.currentRow.sale_order_name
const queryParam = { sale_order_name: this.currentRow.sale_order_name, type: '0' }
crudSubpackagerelation.queryContainerization(queryParam).then(res => {
@@ -284,7 +284,7 @@ export default {
if (this.currentRow !== null) {
crud.downloadLoading = true
download('/api/packagerelation/download', this.crud.query).then(result => {
debugger
//debugger
downloadFile(result, '子卷包装', 'xlsx')
crud.downloadLoading = false
}).catch(() => {

View File

@@ -112,7 +112,7 @@ export default {
})
},
open() {
debugger
//debugger
this.query.region_id = this.openParam
this.crud.toQuery()
},

View File

@@ -115,7 +115,7 @@ export default {
})
},
open() {
debugger
//debugger
this.query.region_id = this.openParam
this.crud.toQuery()
},

View File

@@ -78,7 +78,7 @@ export default {
},
initStatus() {
autoWeb().then(res => {
debugger
//debugger
this.oneList = res.one
this.twoList = res.two
this.threeList = res.three

View File

@@ -473,7 +473,7 @@ export default {
if (this.currentRow !== null) {
crud.downloadLoading = true
download('/api/point/download', this.crud.query).then(result => {
debugger
//debugger
downloadFile(result, '库存', 'xlsx')
crud.downloadLoading = false
}).catch(() => {
@@ -507,7 +507,7 @@ export default {
})
},
getPointStatusAndTypeList(id, flag) {
debugger
//debugger
if (id) {
this.getPointStatusList(id, flag)
this.getPointTypeList(id, flag)
@@ -517,7 +517,7 @@ export default {
}
},
getPointStatusList(id, flag) {
debugger
//debugger
crudRegion.getPointStatusSelectById(id).then(res => {
if (flag === 1) {
this.pointStatusList = res

View File

@@ -342,7 +342,7 @@ export default {
// 获取子节点数据
loadChildNodes({ action, parentNode, callback }) {
if (action === LOAD_CHILDREN_OPTIONS) {
debugger
//debugger
crudClassstandard.getClass({ pid: parentNode.id }).then(res => {
parentNode.children = res.content.map(function(obj) {
if (obj.hasChildren) {
@@ -357,11 +357,11 @@ export default {
}
},
hand(value) {
debugger
//debugger
this.crud.toQuery()
},
handTaskStatus(value) {
debugger
//debugger
if (value) {
this.query.task_status = this.task_status.toString()
}

View File

@@ -203,7 +203,7 @@ export default {
})
// 右键单击事件
lf.on('node:contextmenu', (data, e) => {
debugger
//debugger
let item = ''
item = this.allStructMsg.find((structMsg) => structMsg.id === data.data.id)
@@ -236,7 +236,7 @@ export default {
},
initStatus() { // 初始化数据
let resion = {}
debugger
//debugger
resion = lf.getGraphData().nodes.map(item => ({ id: item.id, struct_id: item.properties.struct_id }))
getStructByCodesFs(resion).then(res => {
this.allStructMsg = res

View File

@@ -148,7 +148,7 @@ export default {
})
// 右键单击事件
lf.on('node:contextmenu', (data, e) => {
debugger
//debugger
let item = ''
item = this.allStructMsg.find((structMsg) => structMsg.id === data.data.id)

View File

@@ -348,7 +348,7 @@ export default {
crudUserStor.getUserStor().then(res => {
this.storlist = res
})
// debugger
////debugger
this.billtypelist = this.dict.ST_INV_OUT_TYPE
this.crud.query.createTime = [new Date().daysAgo(30), new Date()]
this.initQuery()

View File

@@ -420,7 +420,7 @@ export default {
})
},
[CRUD.HOOK.afterToView]() {
debugger
//debugger
handmovestor.getOutBillDtl({ 'changeinv_id': this.form.changeinv_id }).then(res => {
this.form.tableData = res
// 将明细变成不可编辑
@@ -432,7 +432,7 @@ export default {
})
},
bill_statusFormat(row) {
debugger
//debugger
return this.dict.label.work_status[row.work_status]
},
quality_scodeFormat(row) {
@@ -493,7 +493,7 @@ export default {
}
},
boxChange(val) {
debugger
//debugger
for (let i = 0; i < this.form.tableData.length; i++) {
if (this.form.tableData[i].storagevehicle_code === val.storagevehicle_code) {
this.$set(this.form.tableData[i], 'isunpackbox', val.isunpackbox)
@@ -578,7 +578,7 @@ export default {
this.form.detail_count = this.form.tableData.length
},
structChanged(row) {
debugger
//debugger
let structflag = false
for (let i = 0; i < this.form.tableData.length; i++) {
if ((this.form.tableData[i].turnin_struct_id === row.struct_id) || (this.form.tableData[i].turnout_struct_id === row.struct_id)) {

View File

@@ -313,7 +313,7 @@ export default {
this.dtlShow = true
},
tableChanged(rows) {
debugger
//debugger
const tablemap = new Map()
rows.forEach((item) => {
if (this.form.tableData.length !== 0) {

View File

@@ -457,7 +457,7 @@ export default {
this.form.detail_count = this.form.tableData.length
},
structChanged(row) {
debugger
//debugger
let structflag = false
for (let i = 0; i < this.form.tableData.length; i++) {
if ((this.form.tableData[i].turnin_struct_id === row.struct_id) || (this.form.tableData[i].turnout_struct_id === row.struct_id)) {

View File

@@ -208,7 +208,7 @@ export default {
this.crud.toQuery()
},
submit() {
debugger
//debugger
this.rows = this.$refs.table.selection
if (this.rows.length <= 0) {
this.$message('请先勾选物料')

View File

@@ -345,7 +345,7 @@ export default {
},
taskOpen() {
this.loadingConfirm = true
debugger
//debugger
const a = this.currentRow
handmovestor.handdown({ 'moveinv_id': this.currentRow.moveinv_id, 'bill_type': this.currentRow.bill_type }).then(res => {
this.querytable()

View File

@@ -412,7 +412,7 @@ export default {
this.form.detail_count = this.form.tableData.length
},
structChanged(row) {
debugger
//debugger
let structflag = false
for (let i = 0; i < this.form.tableData.length; i++) {
if ((this.form.tableData[i].turnin_struct_id === row.struct_id) || (this.form.tableData[i].turnout_struct_id === row.struct_id)) {

View File

@@ -217,7 +217,7 @@ export default {
watch: {
dialogShow: {
handler(newValue) {
debugger
//debugger
this.dialogVisible = newValue
}
}

View File

@@ -302,7 +302,7 @@ export default {
})
},
auditPass() {
debugger
//debugger
this.mstrow = this.currentRow
this.checkShow = true
},

View File

@@ -325,7 +325,7 @@ export default {
this.form.detail_count = this.form.tableData.length
},
deleteRow(index, rows) {
debugger
//debugger
const package_box_sn = rows[index].package_box_sn
let len = rows.length
while (len--) {
@@ -341,7 +341,7 @@ export default {
}
},
tableChanged(rows) {
debugger
//debugger
// 对新增的行进行校验不能存在相同物料批次
rows.forEach((item) => {
let same_mater = true

View File

@@ -167,7 +167,7 @@ export default {
this.$emit('update:dialogShow', false)
},
submit() {
debugger
//debugger
this.$emit('update:dialogShow', false)
this.rows = this.$refs.multipleTable.selection
crudRawAssist.queryBoxMater(this.rows).then(res => {

View File

@@ -388,7 +388,7 @@ export default {
})
},
allDivStruct() {
debugger
//debugger
if (!this.sect_id) {
this.crud.notify('请先选择虚拟库区区域!', CRUD.NOTIFICATION_TYPE.INFO)
return

View File

@@ -321,7 +321,7 @@ export default {
this.crud.notify('请选择一条任务项', CRUD.NOTIFICATION_TYPE.INFO)
return
}
debugger
//debugger
if (this.dis_row.work_status !== '01') {
this.crud.notify('只能对状态为生成的任务进行修改!', CRUD.NOTIFICATION_TYPE.INFO)
return

View File

@@ -467,7 +467,7 @@ export default {
// 为了整箱出库
checkoutbill.queryBox(data).then(res => {
res.forEach((item) => {
// debugger
////debugger
if (this.form.tableData.length !== 0) {
this.flagnow = false
for (let i = 0; i < this.form.tableData.length; i++) {

View File

@@ -266,7 +266,7 @@ export default {
})
this.fullscreenLoading = true
this.queryrow.stor_id = this.rowmst.stor_id
debugger
//debugger
checkoutbill.manualDiv({ 'row': this.queryrow, 'rows': rows, 'stor_id': this.rowmst.stor_id }).then(res => {
this.$emit('update:dialogShow', false)
this.$emit('StructIvtClosed')

View File

@@ -271,7 +271,7 @@ export default {
this.currentDis = {}
return
}
debugger
//debugger
this.currentDis = current
if (current.task_status === '04') {
this.button1 = false

View File

@@ -95,7 +95,7 @@ export default {
this.file1 = file
},
submit() {
debugger
//debugger
if (this.beforeAvatarUpload(this.file1)) {
this.fileList.name = this.file1.name
this.fileList.url = ''

View File

@@ -542,7 +542,7 @@ export default {
},
divOpen() {
checkoutbill.getOutBillDtl({ 'iostorinv_id': this.currentRow.iostorinv_id }).then(res => {
debugger
//debugger
this.openParam = res
this.storId = this.currentRow.stor_id
this.divShow = true
@@ -602,7 +602,7 @@ export default {
jo.shd_dtl_num = 44
checkoutbill.getDisNum({ 'iostorinv_id': jo.iostorinv_id }).then(res => {
const j = Math.ceil(res.num / jo.shd_dtl_num)
debugger
//debugger
for (let i = 0; i < j; i++) {
download('/api/checkoutbill/downloadExcel', { 'iostorinv_id': jo.iostorinv_id, 'j': i, 'pageNum': j }).then(result => {
downloadFile(result, '发货单', 'xlsx')
@@ -628,7 +628,7 @@ export default {
}
crud.downloadLoading = true
download('/api/checkoutbill/download', this.crud.query).then(result => {
debugger
//debugger
downloadFile(result, '发货', 'xlsx')
crud.downloadLoading = false
}).catch(() => {

View File

@@ -281,7 +281,7 @@ export default {
}
},
charge() {
debugger
//debugger
if (!this.currentRow) {
this.crud.notify('请选择一条单据', CRUD.NOTIFICATION_TYPE.INFO)
return

View File

@@ -175,7 +175,7 @@ export default {
this.crud.toQuery()
},
formatQty(row) {
debugger
//debugger
if (row.vehicle_qty === '') {
return '0'
}

View File

@@ -314,7 +314,7 @@ export default {
crudUserStor.getUserStor().then(res => {
this.storlist = res
})
debugger
//debugger
this.billtypelist = this.dict.ST_INV_IN_TYPE
},
methods: {