|
|
|
@ -623,7 +623,7 @@ import { getCollectBusType } from '@/api/basic/collectPoint/gatherOrderType'
|
|
|
|
|
import panelGroup from '@/views/dashboard/PanelGroup'
|
|
|
|
|
import { delUserBindWork, getUserBindWork } from '@/api/basic/collectPoint/userWorkplace'
|
|
|
|
|
import selectBusType from './selectBusType'
|
|
|
|
|
import { getWorkBindBusTypes } from '@/api/basic/workPlace/sysWorkplaceDocuments'
|
|
|
|
|
import { getWorkBindBusTypes,removeBusTypeById } from '@/api/basic/workPlace/sysWorkplaceDocuments'
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
components: { selectBusType },
|
|
|
|
@ -687,6 +687,9 @@ export default {
|
|
|
|
|
],
|
|
|
|
|
unitTittle: [
|
|
|
|
|
{ required: true, message: '请输入往来类型标题', trigger: 'blur' }
|
|
|
|
|
],
|
|
|
|
|
workplaceStatus: [
|
|
|
|
|
{ required: true, message: '请选择工位状态', trigger: 'blur' }
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
invQuery: {
|
|
|
|
@ -790,12 +793,14 @@ export default {
|
|
|
|
|
this.formData.workplaceId = this.workplaceCode + 1001
|
|
|
|
|
this.formData.operationType = 1
|
|
|
|
|
this.formData.checkInsert = 1
|
|
|
|
|
this.formData.workplaceStatus = 1
|
|
|
|
|
this.addWorkplaceDialogVisible = true
|
|
|
|
|
this.getTree()
|
|
|
|
|
} else {
|
|
|
|
|
this.formData = {
|
|
|
|
|
operationType: 1,
|
|
|
|
|
checkInsert: 1
|
|
|
|
|
checkInsert: 1,
|
|
|
|
|
workplaceStatus: 1
|
|
|
|
|
}
|
|
|
|
|
this.getTree()
|
|
|
|
|
this.formData.workplaceId = res.data
|
|
|
|
@ -1130,6 +1135,24 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
removeBusType(row) {
|
|
|
|
|
this.$confirm('此操作将永久移除该单据类型, 是否继续?', '提示', {
|
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
|
cancelButtonText: '取消',
|
|
|
|
|
type: 'warning'
|
|
|
|
|
}).then(() => {
|
|
|
|
|
removeBusTypeById(row).then(res => {
|
|
|
|
|
if (res.code == 20000) {
|
|
|
|
|
this.$message.success('移除成功')
|
|
|
|
|
this.getWorkBindBusTypes()
|
|
|
|
|
}else {
|
|
|
|
|
this.$message.error("移除失败")
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
closeDialog() {
|
|
|
|
|
this.chooseBusTypeDialogVisible = false
|
|
|
|
|
this.getWorkBindBusTypes()
|
|
|
|
|