前端
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import request from '@/utils/request'
|
import request from '@/utils/request'
|
||||||
|
|
||||||
export function login(username, password, code, uuid) {
|
export function login(username, password, code, uuid) {
|
||||||
// debugger
|
////debugger
|
||||||
return request({
|
return request({
|
||||||
url: 'auth/login',
|
url: 'auth/login',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ router.beforeEach((to, from, next) => {
|
|||||||
}
|
}
|
||||||
NProgress.start()
|
NProgress.start()
|
||||||
if (getToken()) {
|
if (getToken()) {
|
||||||
// debugger
|
////debugger
|
||||||
// 已登录且要跳转的页面是登录页
|
// 已登录且要跳转的页面是登录页
|
||||||
if (to.path === '/login') {
|
if (to.path === '/login') {
|
||||||
next({ path: '/' })
|
next({ path: '/' })
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ export default function checkPermission(value) { // 权限判断
|
|||||||
if (value && value instanceof Array && value.length > 0) {
|
if (value && value instanceof Array && value.length > 0) {
|
||||||
const roles = store.getters && store.getters.roles
|
const roles = store.getters && store.getters.roles
|
||||||
const permissionRoles = value
|
const permissionRoles = value
|
||||||
// debugger
|
////debugger
|
||||||
const hasPermission = roles.some(role => {
|
const hasPermission = roles.some(role => {
|
||||||
return permissionRoles.includes(role)
|
return permissionRoles.includes(role)
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ service.interceptors.response.use(
|
|||||||
console.log(code)
|
console.log(code)
|
||||||
if (code) {
|
if (code) {
|
||||||
if (code === 401) {
|
if (code === 401) {
|
||||||
// debugger
|
////debugger
|
||||||
store.dispatch('LogOut').then(() => {
|
store.dispatch('LogOut').then(() => {
|
||||||
// 用户登录界面提示
|
// 用户登录界面提示
|
||||||
Cookies.set('point', 401)
|
Cookies.set('point', 401)
|
||||||
|
|||||||
@@ -397,7 +397,7 @@ export default {
|
|||||||
},
|
},
|
||||||
downloadData() {
|
downloadData() {
|
||||||
logOperation.downloadData().then(result => {
|
logOperation.downloadData().then(result => {
|
||||||
debugger
|
//debugger
|
||||||
downloadFile(result, '导出数据', 'xlsx')
|
downloadFile(result, '导出数据', 'xlsx')
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -267,7 +267,7 @@ export default {
|
|||||||
// 改变状态
|
// 改变状态
|
||||||
changeEnabled(data, val) {
|
changeEnabled(data, val) {
|
||||||
const satus = this.enabledTypeOptions.find(item => { return item.key == data.is_used })
|
const satus = this.enabledTypeOptions.find(item => { return item.key == data.is_used })
|
||||||
debugger
|
//debugger
|
||||||
this.$confirm('此操作将 "' + satus.display_name + '" ' + data.name + '部门, 是否继续?', '提示', {
|
this.$confirm('此操作将 "' + satus.display_name + '" ' + data.name + '部门, 是否继续?', '提示', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
|
|||||||
@@ -275,7 +275,7 @@ export default {
|
|||||||
},
|
},
|
||||||
[CRUD.HOOK.afterToCU](crud, form) {
|
[CRUD.HOOK.afterToCU](crud, form) {
|
||||||
this.getUserList()
|
this.getUserList()
|
||||||
debugger
|
//debugger
|
||||||
if (form.upload_user && form.upload_user !== '') {
|
if (form.upload_user && form.upload_user !== '') {
|
||||||
form.upload_user = form.upload_user.split(',')
|
form.upload_user = form.upload_user.split(',')
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -386,7 +386,7 @@ export default {
|
|||||||
}
|
}
|
||||||
const dafult = this.$el.getElementsByClassName('dafult')
|
const dafult = this.$el.getElementsByClassName('dafult')
|
||||||
for (let a = 0; a < dafult.length; a++) {
|
for (let a = 0; a < dafult.length; a++) {
|
||||||
debugger
|
//debugger
|
||||||
dafult[a].click()
|
dafult[a].click()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -845,7 +845,7 @@ export default {
|
|||||||
if (this.currentRow !== null) {
|
if (this.currentRow !== null) {
|
||||||
this.showDtlLoading = true
|
this.showDtlLoading = true
|
||||||
download('/api/subpackagerelation/download', this.crud.query).then(result => {
|
download('/api/subpackagerelation/download', this.crud.query).then(result => {
|
||||||
debugger
|
//debugger
|
||||||
downloadFile(result, '子卷包装', 'xlsx')
|
downloadFile(result, '子卷包装', 'xlsx')
|
||||||
this.showDtlLoading = false
|
this.showDtlLoading = false
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
|
|||||||
@@ -361,7 +361,7 @@ export default {
|
|||||||
return true
|
return true
|
||||||
},
|
},
|
||||||
uploadMES() {
|
uploadMES() {
|
||||||
debugger
|
//debugger
|
||||||
const _selectData = this.$refs.table.selection
|
const _selectData = this.$refs.table.selection
|
||||||
if (_selectData.length !== 1) {
|
if (_selectData.length !== 1) {
|
||||||
return this.crud.notify('请选择一个点位进行回传!', CRUD.NOTIFICATION_TYPE.INFO)
|
return this.crud.notify('请选择一个点位进行回传!', CRUD.NOTIFICATION_TYPE.INFO)
|
||||||
|
|||||||
@@ -267,7 +267,7 @@ export default {
|
|||||||
return true
|
return true
|
||||||
},
|
},
|
||||||
[CRUD.HOOK.beforeSubmit]() {
|
[CRUD.HOOK.beforeSubmit]() {
|
||||||
debugger
|
//debugger
|
||||||
if (this.form.point_status !== '01' && !this.form.vehicle_code) {
|
if (this.form.point_status !== '01' && !this.form.vehicle_code) {
|
||||||
this.crud.notify('请输入载具编码!', CRUD.NOTIFICATION_TYPE.INFO)
|
this.crud.notify('请输入载具编码!', CRUD.NOTIFICATION_TYPE.INFO)
|
||||||
return false
|
return false
|
||||||
|
|||||||
@@ -288,7 +288,7 @@ export default {
|
|||||||
this.crud.toQuery()
|
this.crud.toQuery()
|
||||||
},
|
},
|
||||||
uploadMES() {
|
uploadMES() {
|
||||||
debugger
|
//debugger
|
||||||
const _selectData = this.$refs.table.selection
|
const _selectData = this.$refs.table.selection
|
||||||
if (_selectData.length !== 1) {
|
if (_selectData.length !== 1) {
|
||||||
return this.crud.notify('请选择一个点位进行回传!', CRUD.NOTIFICATION_TYPE.INFO)
|
return this.crud.notify('请选择一个点位进行回传!', CRUD.NOTIFICATION_TYPE.INFO)
|
||||||
|
|||||||
@@ -681,7 +681,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
tableChanged(rows) {
|
tableChanged(rows) {
|
||||||
debugger
|
//debugger
|
||||||
// 对新增的行进行校验不能存在相同物料批次
|
// 对新增的行进行校验不能存在相同物料批次
|
||||||
rows.forEach((item) => {
|
rows.forEach((item) => {
|
||||||
let same_mater = true
|
let same_mater = true
|
||||||
|
|||||||
@@ -232,7 +232,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleSearch() {
|
handleSearch() {
|
||||||
debugger
|
//debugger
|
||||||
this.multipleSelection = this.multipleSelection.filter(i => {
|
this.multipleSelection = this.multipleSelection.filter(i => {
|
||||||
return this.$refs.dis_table.selection.includes(i)
|
return this.$refs.dis_table.selection.includes(i)
|
||||||
})
|
})
|
||||||
@@ -315,7 +315,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 表格1的行点击事件
|
// 表格1的行点击事件
|
||||||
handleRowClick(scope) {
|
handleRowClick(scope) {
|
||||||
debugger
|
//debugger
|
||||||
// 按钮禁用
|
// 按钮禁用
|
||||||
this.isButtonDisabled = !!(scope.status !== '99')
|
this.isButtonDisabled = !!(scope.status !== '99')
|
||||||
this.isButtonDisabled1 = scope.status === '99'
|
this.isButtonDisabled1 = scope.status === '99'
|
||||||
@@ -331,7 +331,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 表格2的行点击事件
|
// 表格2的行点击事件
|
||||||
handleSelectionChange(selection) {
|
handleSelectionChange(selection) {
|
||||||
debugger
|
//debugger
|
||||||
if (selection.length > 0) {
|
if (selection.length > 0) {
|
||||||
this.isButtonDisabled = !selection.every(item => item.status === '99')
|
this.isButtonDisabled = !selection.every(item => item.status === '99')
|
||||||
this.isButtonDisabled1 = selection.some(item => item.status === '99')
|
this.isButtonDisabled1 = selection.some(item => item.status === '99')
|
||||||
@@ -346,7 +346,7 @@ export default {
|
|||||||
this.previousSelection = selection
|
this.previousSelection = selection
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
debugger
|
//debugger
|
||||||
if (!this.searchText) {
|
if (!this.searchText) {
|
||||||
this.cancelSelection = []
|
this.cancelSelection = []
|
||||||
this.cancelSelection = [...this.currentSelection]
|
this.cancelSelection = [...this.currentSelection]
|
||||||
@@ -378,17 +378,17 @@ export default {
|
|||||||
row.index = rowIndex
|
row.index = rowIndex
|
||||||
},
|
},
|
||||||
async tableChanged(row) {
|
async tableChanged(row) {
|
||||||
debugger
|
//debugger
|
||||||
this.form.tableMater = this.currentSelection
|
this.form.tableMater = this.currentSelection
|
||||||
if (this.currentSelection.length > row.num) {
|
if (this.currentSelection.length > row.num) {
|
||||||
this.crud.notify('子卷数量超过木箱的最大装卷数!', CRUD.NOTIFICATION_TYPE.WARNING)
|
this.crud.notify('子卷数量超过木箱的最大装卷数!', CRUD.NOTIFICATION_TYPE.WARNING)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
debugger
|
//debugger
|
||||||
this.form.checked = row.material_code
|
this.form.checked = row.material_code
|
||||||
this.form.sale_order_name = this.saleOrderName
|
this.form.sale_order_name = this.saleOrderName
|
||||||
await crudPackagerelation.updateEntityList(this.form)
|
await crudPackagerelation.updateEntityList(this.form)
|
||||||
debugger
|
//debugger
|
||||||
const queryParam = { sale_order_name: this.saleOrderName, type: '0' }
|
const queryParam = { sale_order_name: this.saleOrderName, type: '0' }
|
||||||
const res = crudSubpackagerelation.queryContainerization(queryParam)
|
const res = crudSubpackagerelation.queryContainerization(queryParam)
|
||||||
this.openParam = res.content
|
this.openParam = res.content
|
||||||
@@ -398,9 +398,9 @@ export default {
|
|||||||
this.$emit('childEvent')
|
this.$emit('childEvent')
|
||||||
},
|
},
|
||||||
divStruct() {
|
divStruct() {
|
||||||
debugger
|
//debugger
|
||||||
if (this.currentSelection.length > 0 && this.$refs.dis_table.selection.length > 0) {
|
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)
|
const weightList = this.currentSelection.filter(item => item.weight === '0' || item.weight === null)
|
||||||
if (weightList.length > 0) {
|
if (weightList.length > 0) {
|
||||||
this.crud.notify('该子卷重量不能为空,请检查子卷的分切计划信息!', CRUD.NOTIFICATION_TYPE.WARNING)
|
this.crud.notify('该子卷重量不能为空,请检查子卷的分切计划信息!', CRUD.NOTIFICATION_TYPE.WARNING)
|
||||||
|
|||||||
@@ -214,7 +214,7 @@ export default {
|
|||||||
this.$emit('update:dialogShow', false)
|
this.$emit('update:dialogShow', false)
|
||||||
},
|
},
|
||||||
submit() {
|
submit() {
|
||||||
debugger
|
//debugger
|
||||||
this.rows = this.$refs.table.selection
|
this.rows = this.$refs.table.selection
|
||||||
if (this.rows.length <= 0) {
|
if (this.rows.length <= 0) {
|
||||||
this.crud.notify('请选择木箱信息!', CRUD.NOTIFICATION_TYPE.WARNING)
|
this.crud.notify('请选择木箱信息!', CRUD.NOTIFICATION_TYPE.WARNING)
|
||||||
@@ -224,7 +224,7 @@ export default {
|
|||||||
this.dialogVisible1 = true
|
this.dialogVisible1 = true
|
||||||
},
|
},
|
||||||
confirmSubmit() {
|
confirmSubmit() {
|
||||||
debugger
|
//debugger
|
||||||
this.dialogVisible1 = false
|
this.dialogVisible1 = false
|
||||||
this.$emit('update:dialogShow', false)
|
this.$emit('update:dialogShow', false)
|
||||||
this.$emit('tableChanged', this.checkrow)
|
this.$emit('tableChanged', this.checkrow)
|
||||||
|
|||||||
@@ -227,7 +227,7 @@ export default {
|
|||||||
this.crud.toQuery()
|
this.crud.toQuery()
|
||||||
},
|
},
|
||||||
async divOpen() {
|
async divOpen() {
|
||||||
debugger
|
//debugger
|
||||||
this.saleOrderName = this.currentRow.sale_order_name
|
this.saleOrderName = this.currentRow.sale_order_name
|
||||||
const queryParam = { sale_order_name: this.currentRow.sale_order_name, type: '0' }
|
const queryParam = { sale_order_name: this.currentRow.sale_order_name, type: '0' }
|
||||||
const res = await crudSubpackagerelation.queryContainerization(queryParam)
|
const res = await crudSubpackagerelation.queryContainerization(queryParam)
|
||||||
@@ -235,7 +235,7 @@ export default {
|
|||||||
// this.divShow = true
|
// this.divShow = true
|
||||||
},
|
},
|
||||||
divOpen1() {
|
divOpen1() {
|
||||||
debugger
|
//debugger
|
||||||
this.saleOrderName = this.currentRow.sale_order_name
|
this.saleOrderName = this.currentRow.sale_order_name
|
||||||
const queryParam = { sale_order_name: this.currentRow.sale_order_name, type: '0' }
|
const queryParam = { sale_order_name: this.currentRow.sale_order_name, type: '0' }
|
||||||
crudSubpackagerelation.queryContainerization(queryParam).then(res => {
|
crudSubpackagerelation.queryContainerization(queryParam).then(res => {
|
||||||
@@ -284,7 +284,7 @@ export default {
|
|||||||
if (this.currentRow !== null) {
|
if (this.currentRow !== null) {
|
||||||
crud.downloadLoading = true
|
crud.downloadLoading = true
|
||||||
download('/api/packagerelation/download', this.crud.query).then(result => {
|
download('/api/packagerelation/download', this.crud.query).then(result => {
|
||||||
debugger
|
//debugger
|
||||||
downloadFile(result, '子卷包装', 'xlsx')
|
downloadFile(result, '子卷包装', 'xlsx')
|
||||||
crud.downloadLoading = false
|
crud.downloadLoading = false
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
open() {
|
open() {
|
||||||
debugger
|
//debugger
|
||||||
this.query.region_id = this.openParam
|
this.query.region_id = this.openParam
|
||||||
this.crud.toQuery()
|
this.crud.toQuery()
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
open() {
|
open() {
|
||||||
debugger
|
//debugger
|
||||||
this.query.region_id = this.openParam
|
this.query.region_id = this.openParam
|
||||||
this.crud.toQuery()
|
this.crud.toQuery()
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ export default {
|
|||||||
},
|
},
|
||||||
initStatus() {
|
initStatus() {
|
||||||
autoWeb().then(res => {
|
autoWeb().then(res => {
|
||||||
debugger
|
//debugger
|
||||||
this.oneList = res.one
|
this.oneList = res.one
|
||||||
this.twoList = res.two
|
this.twoList = res.two
|
||||||
this.threeList = res.three
|
this.threeList = res.three
|
||||||
|
|||||||
@@ -473,7 +473,7 @@ export default {
|
|||||||
if (this.currentRow !== null) {
|
if (this.currentRow !== null) {
|
||||||
crud.downloadLoading = true
|
crud.downloadLoading = true
|
||||||
download('/api/point/download', this.crud.query).then(result => {
|
download('/api/point/download', this.crud.query).then(result => {
|
||||||
debugger
|
//debugger
|
||||||
downloadFile(result, '库存', 'xlsx')
|
downloadFile(result, '库存', 'xlsx')
|
||||||
crud.downloadLoading = false
|
crud.downloadLoading = false
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
@@ -507,7 +507,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
getPointStatusAndTypeList(id, flag) {
|
getPointStatusAndTypeList(id, flag) {
|
||||||
debugger
|
//debugger
|
||||||
if (id) {
|
if (id) {
|
||||||
this.getPointStatusList(id, flag)
|
this.getPointStatusList(id, flag)
|
||||||
this.getPointTypeList(id, flag)
|
this.getPointTypeList(id, flag)
|
||||||
@@ -517,7 +517,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
getPointStatusList(id, flag) {
|
getPointStatusList(id, flag) {
|
||||||
debugger
|
//debugger
|
||||||
crudRegion.getPointStatusSelectById(id).then(res => {
|
crudRegion.getPointStatusSelectById(id).then(res => {
|
||||||
if (flag === 1) {
|
if (flag === 1) {
|
||||||
this.pointStatusList = res
|
this.pointStatusList = res
|
||||||
|
|||||||
@@ -342,7 +342,7 @@ export default {
|
|||||||
// 获取子节点数据
|
// 获取子节点数据
|
||||||
loadChildNodes({ action, parentNode, callback }) {
|
loadChildNodes({ action, parentNode, callback }) {
|
||||||
if (action === LOAD_CHILDREN_OPTIONS) {
|
if (action === LOAD_CHILDREN_OPTIONS) {
|
||||||
debugger
|
//debugger
|
||||||
crudClassstandard.getClass({ pid: parentNode.id }).then(res => {
|
crudClassstandard.getClass({ pid: parentNode.id }).then(res => {
|
||||||
parentNode.children = res.content.map(function(obj) {
|
parentNode.children = res.content.map(function(obj) {
|
||||||
if (obj.hasChildren) {
|
if (obj.hasChildren) {
|
||||||
@@ -357,11 +357,11 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
hand(value) {
|
hand(value) {
|
||||||
debugger
|
//debugger
|
||||||
this.crud.toQuery()
|
this.crud.toQuery()
|
||||||
},
|
},
|
||||||
handTaskStatus(value) {
|
handTaskStatus(value) {
|
||||||
debugger
|
//debugger
|
||||||
if (value) {
|
if (value) {
|
||||||
this.query.task_status = this.task_status.toString()
|
this.query.task_status = this.task_status.toString()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -203,7 +203,7 @@ export default {
|
|||||||
})
|
})
|
||||||
// 右键单击事件
|
// 右键单击事件
|
||||||
lf.on('node:contextmenu', (data, e) => {
|
lf.on('node:contextmenu', (data, e) => {
|
||||||
debugger
|
//debugger
|
||||||
let item = ''
|
let item = ''
|
||||||
item = this.allStructMsg.find((structMsg) => structMsg.id === data.data.id)
|
item = this.allStructMsg.find((structMsg) => structMsg.id === data.data.id)
|
||||||
|
|
||||||
@@ -236,7 +236,7 @@ export default {
|
|||||||
},
|
},
|
||||||
initStatus() { // 初始化数据
|
initStatus() { // 初始化数据
|
||||||
let resion = {}
|
let resion = {}
|
||||||
debugger
|
//debugger
|
||||||
resion = lf.getGraphData().nodes.map(item => ({ id: item.id, struct_id: item.properties.struct_id }))
|
resion = lf.getGraphData().nodes.map(item => ({ id: item.id, struct_id: item.properties.struct_id }))
|
||||||
getStructByCodesFs(resion).then(res => {
|
getStructByCodesFs(resion).then(res => {
|
||||||
this.allStructMsg = res
|
this.allStructMsg = res
|
||||||
|
|||||||
@@ -148,7 +148,7 @@ export default {
|
|||||||
})
|
})
|
||||||
// 右键单击事件
|
// 右键单击事件
|
||||||
lf.on('node:contextmenu', (data, e) => {
|
lf.on('node:contextmenu', (data, e) => {
|
||||||
debugger
|
//debugger
|
||||||
let item = ''
|
let item = ''
|
||||||
item = this.allStructMsg.find((structMsg) => structMsg.id === data.data.id)
|
item = this.allStructMsg.find((structMsg) => structMsg.id === data.data.id)
|
||||||
|
|
||||||
|
|||||||
@@ -348,7 +348,7 @@ export default {
|
|||||||
crudUserStor.getUserStor().then(res => {
|
crudUserStor.getUserStor().then(res => {
|
||||||
this.storlist = res
|
this.storlist = res
|
||||||
})
|
})
|
||||||
// debugger
|
////debugger
|
||||||
this.billtypelist = this.dict.ST_INV_OUT_TYPE
|
this.billtypelist = this.dict.ST_INV_OUT_TYPE
|
||||||
this.crud.query.createTime = [new Date().daysAgo(30), new Date()]
|
this.crud.query.createTime = [new Date().daysAgo(30), new Date()]
|
||||||
this.initQuery()
|
this.initQuery()
|
||||||
|
|||||||
@@ -420,7 +420,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
[CRUD.HOOK.afterToView]() {
|
[CRUD.HOOK.afterToView]() {
|
||||||
debugger
|
//debugger
|
||||||
handmovestor.getOutBillDtl({ 'changeinv_id': this.form.changeinv_id }).then(res => {
|
handmovestor.getOutBillDtl({ 'changeinv_id': this.form.changeinv_id }).then(res => {
|
||||||
this.form.tableData = res
|
this.form.tableData = res
|
||||||
// 将明细变成不可编辑
|
// 将明细变成不可编辑
|
||||||
@@ -432,7 +432,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
bill_statusFormat(row) {
|
bill_statusFormat(row) {
|
||||||
debugger
|
//debugger
|
||||||
return this.dict.label.work_status[row.work_status]
|
return this.dict.label.work_status[row.work_status]
|
||||||
},
|
},
|
||||||
quality_scodeFormat(row) {
|
quality_scodeFormat(row) {
|
||||||
@@ -493,7 +493,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
boxChange(val) {
|
boxChange(val) {
|
||||||
debugger
|
//debugger
|
||||||
for (let i = 0; i < this.form.tableData.length; i++) {
|
for (let i = 0; i < this.form.tableData.length; i++) {
|
||||||
if (this.form.tableData[i].storagevehicle_code === val.storagevehicle_code) {
|
if (this.form.tableData[i].storagevehicle_code === val.storagevehicle_code) {
|
||||||
this.$set(this.form.tableData[i], 'isunpackbox', val.isunpackbox)
|
this.$set(this.form.tableData[i], 'isunpackbox', val.isunpackbox)
|
||||||
@@ -578,7 +578,7 @@ export default {
|
|||||||
this.form.detail_count = this.form.tableData.length
|
this.form.detail_count = this.form.tableData.length
|
||||||
},
|
},
|
||||||
structChanged(row) {
|
structChanged(row) {
|
||||||
debugger
|
//debugger
|
||||||
let structflag = false
|
let structflag = false
|
||||||
for (let i = 0; i < this.form.tableData.length; i++) {
|
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)) {
|
if ((this.form.tableData[i].turnin_struct_id === row.struct_id) || (this.form.tableData[i].turnout_struct_id === row.struct_id)) {
|
||||||
|
|||||||
@@ -313,7 +313,7 @@ export default {
|
|||||||
this.dtlShow = true
|
this.dtlShow = true
|
||||||
},
|
},
|
||||||
tableChanged(rows) {
|
tableChanged(rows) {
|
||||||
debugger
|
//debugger
|
||||||
const tablemap = new Map()
|
const tablemap = new Map()
|
||||||
rows.forEach((item) => {
|
rows.forEach((item) => {
|
||||||
if (this.form.tableData.length !== 0) {
|
if (this.form.tableData.length !== 0) {
|
||||||
|
|||||||
@@ -457,7 +457,7 @@ export default {
|
|||||||
this.form.detail_count = this.form.tableData.length
|
this.form.detail_count = this.form.tableData.length
|
||||||
},
|
},
|
||||||
structChanged(row) {
|
structChanged(row) {
|
||||||
debugger
|
//debugger
|
||||||
let structflag = false
|
let structflag = false
|
||||||
for (let i = 0; i < this.form.tableData.length; i++) {
|
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)) {
|
if ((this.form.tableData[i].turnin_struct_id === row.struct_id) || (this.form.tableData[i].turnout_struct_id === row.struct_id)) {
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ export default {
|
|||||||
this.crud.toQuery()
|
this.crud.toQuery()
|
||||||
},
|
},
|
||||||
submit() {
|
submit() {
|
||||||
debugger
|
//debugger
|
||||||
this.rows = this.$refs.table.selection
|
this.rows = this.$refs.table.selection
|
||||||
if (this.rows.length <= 0) {
|
if (this.rows.length <= 0) {
|
||||||
this.$message('请先勾选物料')
|
this.$message('请先勾选物料')
|
||||||
|
|||||||
@@ -345,7 +345,7 @@ export default {
|
|||||||
},
|
},
|
||||||
taskOpen() {
|
taskOpen() {
|
||||||
this.loadingConfirm = true
|
this.loadingConfirm = true
|
||||||
debugger
|
//debugger
|
||||||
const a = this.currentRow
|
const a = this.currentRow
|
||||||
handmovestor.handdown({ 'moveinv_id': this.currentRow.moveinv_id, 'bill_type': this.currentRow.bill_type }).then(res => {
|
handmovestor.handdown({ 'moveinv_id': this.currentRow.moveinv_id, 'bill_type': this.currentRow.bill_type }).then(res => {
|
||||||
this.querytable()
|
this.querytable()
|
||||||
|
|||||||
@@ -412,7 +412,7 @@ export default {
|
|||||||
this.form.detail_count = this.form.tableData.length
|
this.form.detail_count = this.form.tableData.length
|
||||||
},
|
},
|
||||||
structChanged(row) {
|
structChanged(row) {
|
||||||
debugger
|
//debugger
|
||||||
let structflag = false
|
let structflag = false
|
||||||
for (let i = 0; i < this.form.tableData.length; i++) {
|
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)) {
|
if ((this.form.tableData[i].turnin_struct_id === row.struct_id) || (this.form.tableData[i].turnout_struct_id === row.struct_id)) {
|
||||||
|
|||||||
@@ -217,7 +217,7 @@ export default {
|
|||||||
watch: {
|
watch: {
|
||||||
dialogShow: {
|
dialogShow: {
|
||||||
handler(newValue) {
|
handler(newValue) {
|
||||||
debugger
|
//debugger
|
||||||
this.dialogVisible = newValue
|
this.dialogVisible = newValue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -302,7 +302,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
auditPass() {
|
auditPass() {
|
||||||
debugger
|
//debugger
|
||||||
this.mstrow = this.currentRow
|
this.mstrow = this.currentRow
|
||||||
this.checkShow = true
|
this.checkShow = true
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -325,7 +325,7 @@ export default {
|
|||||||
this.form.detail_count = this.form.tableData.length
|
this.form.detail_count = this.form.tableData.length
|
||||||
},
|
},
|
||||||
deleteRow(index, rows) {
|
deleteRow(index, rows) {
|
||||||
debugger
|
//debugger
|
||||||
const package_box_sn = rows[index].package_box_sn
|
const package_box_sn = rows[index].package_box_sn
|
||||||
let len = rows.length
|
let len = rows.length
|
||||||
while (len--) {
|
while (len--) {
|
||||||
@@ -341,7 +341,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
tableChanged(rows) {
|
tableChanged(rows) {
|
||||||
debugger
|
//debugger
|
||||||
// 对新增的行进行校验不能存在相同物料批次
|
// 对新增的行进行校验不能存在相同物料批次
|
||||||
rows.forEach((item) => {
|
rows.forEach((item) => {
|
||||||
let same_mater = true
|
let same_mater = true
|
||||||
|
|||||||
@@ -167,7 +167,7 @@ export default {
|
|||||||
this.$emit('update:dialogShow', false)
|
this.$emit('update:dialogShow', false)
|
||||||
},
|
},
|
||||||
submit() {
|
submit() {
|
||||||
debugger
|
//debugger
|
||||||
this.$emit('update:dialogShow', false)
|
this.$emit('update:dialogShow', false)
|
||||||
this.rows = this.$refs.multipleTable.selection
|
this.rows = this.$refs.multipleTable.selection
|
||||||
crudRawAssist.queryBoxMater(this.rows).then(res => {
|
crudRawAssist.queryBoxMater(this.rows).then(res => {
|
||||||
|
|||||||
@@ -388,7 +388,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
allDivStruct() {
|
allDivStruct() {
|
||||||
debugger
|
//debugger
|
||||||
if (!this.sect_id) {
|
if (!this.sect_id) {
|
||||||
this.crud.notify('请先选择虚拟库区区域!', CRUD.NOTIFICATION_TYPE.INFO)
|
this.crud.notify('请先选择虚拟库区区域!', CRUD.NOTIFICATION_TYPE.INFO)
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -321,7 +321,7 @@ export default {
|
|||||||
this.crud.notify('请选择一条任务项', CRUD.NOTIFICATION_TYPE.INFO)
|
this.crud.notify('请选择一条任务项', CRUD.NOTIFICATION_TYPE.INFO)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
debugger
|
//debugger
|
||||||
if (this.dis_row.work_status !== '01') {
|
if (this.dis_row.work_status !== '01') {
|
||||||
this.crud.notify('只能对状态为生成的任务进行修改!', CRUD.NOTIFICATION_TYPE.INFO)
|
this.crud.notify('只能对状态为生成的任务进行修改!', CRUD.NOTIFICATION_TYPE.INFO)
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -467,7 +467,7 @@ export default {
|
|||||||
// 为了整箱出库
|
// 为了整箱出库
|
||||||
checkoutbill.queryBox(data).then(res => {
|
checkoutbill.queryBox(data).then(res => {
|
||||||
res.forEach((item) => {
|
res.forEach((item) => {
|
||||||
// debugger
|
////debugger
|
||||||
if (this.form.tableData.length !== 0) {
|
if (this.form.tableData.length !== 0) {
|
||||||
this.flagnow = false
|
this.flagnow = false
|
||||||
for (let i = 0; i < this.form.tableData.length; i++) {
|
for (let i = 0; i < this.form.tableData.length; i++) {
|
||||||
|
|||||||
@@ -266,7 +266,7 @@ export default {
|
|||||||
})
|
})
|
||||||
this.fullscreenLoading = true
|
this.fullscreenLoading = true
|
||||||
this.queryrow.stor_id = this.rowmst.stor_id
|
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 => {
|
checkoutbill.manualDiv({ 'row': this.queryrow, 'rows': rows, 'stor_id': this.rowmst.stor_id }).then(res => {
|
||||||
this.$emit('update:dialogShow', false)
|
this.$emit('update:dialogShow', false)
|
||||||
this.$emit('StructIvtClosed')
|
this.$emit('StructIvtClosed')
|
||||||
|
|||||||
@@ -271,7 +271,7 @@ export default {
|
|||||||
this.currentDis = {}
|
this.currentDis = {}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
debugger
|
//debugger
|
||||||
this.currentDis = current
|
this.currentDis = current
|
||||||
if (current.task_status === '04') {
|
if (current.task_status === '04') {
|
||||||
this.button1 = false
|
this.button1 = false
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ export default {
|
|||||||
this.file1 = file
|
this.file1 = file
|
||||||
},
|
},
|
||||||
submit() {
|
submit() {
|
||||||
debugger
|
//debugger
|
||||||
if (this.beforeAvatarUpload(this.file1)) {
|
if (this.beforeAvatarUpload(this.file1)) {
|
||||||
this.fileList.name = this.file1.name
|
this.fileList.name = this.file1.name
|
||||||
this.fileList.url = ''
|
this.fileList.url = ''
|
||||||
|
|||||||
@@ -542,7 +542,7 @@ export default {
|
|||||||
},
|
},
|
||||||
divOpen() {
|
divOpen() {
|
||||||
checkoutbill.getOutBillDtl({ 'iostorinv_id': this.currentRow.iostorinv_id }).then(res => {
|
checkoutbill.getOutBillDtl({ 'iostorinv_id': this.currentRow.iostorinv_id }).then(res => {
|
||||||
debugger
|
//debugger
|
||||||
this.openParam = res
|
this.openParam = res
|
||||||
this.storId = this.currentRow.stor_id
|
this.storId = this.currentRow.stor_id
|
||||||
this.divShow = true
|
this.divShow = true
|
||||||
@@ -602,7 +602,7 @@ export default {
|
|||||||
jo.shd_dtl_num = 44
|
jo.shd_dtl_num = 44
|
||||||
checkoutbill.getDisNum({ 'iostorinv_id': jo.iostorinv_id }).then(res => {
|
checkoutbill.getDisNum({ 'iostorinv_id': jo.iostorinv_id }).then(res => {
|
||||||
const j = Math.ceil(res.num / jo.shd_dtl_num)
|
const j = Math.ceil(res.num / jo.shd_dtl_num)
|
||||||
debugger
|
//debugger
|
||||||
for (let i = 0; i < j; i++) {
|
for (let i = 0; i < j; i++) {
|
||||||
download('/api/checkoutbill/downloadExcel', { 'iostorinv_id': jo.iostorinv_id, 'j': i, 'pageNum': j }).then(result => {
|
download('/api/checkoutbill/downloadExcel', { 'iostorinv_id': jo.iostorinv_id, 'j': i, 'pageNum': j }).then(result => {
|
||||||
downloadFile(result, '发货单', 'xlsx')
|
downloadFile(result, '发货单', 'xlsx')
|
||||||
@@ -628,7 +628,7 @@ export default {
|
|||||||
}
|
}
|
||||||
crud.downloadLoading = true
|
crud.downloadLoading = true
|
||||||
download('/api/checkoutbill/download', this.crud.query).then(result => {
|
download('/api/checkoutbill/download', this.crud.query).then(result => {
|
||||||
debugger
|
//debugger
|
||||||
downloadFile(result, '发货', 'xlsx')
|
downloadFile(result, '发货', 'xlsx')
|
||||||
crud.downloadLoading = false
|
crud.downloadLoading = false
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
|
|||||||
@@ -281,7 +281,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
charge() {
|
charge() {
|
||||||
debugger
|
//debugger
|
||||||
if (!this.currentRow) {
|
if (!this.currentRow) {
|
||||||
this.crud.notify('请选择一条单据', CRUD.NOTIFICATION_TYPE.INFO)
|
this.crud.notify('请选择一条单据', CRUD.NOTIFICATION_TYPE.INFO)
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -175,7 +175,7 @@ export default {
|
|||||||
this.crud.toQuery()
|
this.crud.toQuery()
|
||||||
},
|
},
|
||||||
formatQty(row) {
|
formatQty(row) {
|
||||||
debugger
|
//debugger
|
||||||
if (row.vehicle_qty === '') {
|
if (row.vehicle_qty === '') {
|
||||||
return '0'
|
return '0'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -314,7 +314,7 @@ export default {
|
|||||||
crudUserStor.getUserStor().then(res => {
|
crudUserStor.getUserStor().then(res => {
|
||||||
this.storlist = res
|
this.storlist = res
|
||||||
})
|
})
|
||||||
debugger
|
//debugger
|
||||||
this.billtypelist = this.dict.ST_INV_IN_TYPE
|
this.billtypelist = this.dict.ST_INV_IN_TYPE
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
Reference in New Issue
Block a user