add:统计分析

This commit is contained in:
zhangzhiqiang
2023-10-07 09:58:37 +08:00
parent acd4fe5a48
commit d20e5f8282
4 changed files with 29 additions and 32 deletions

View File

@@ -144,7 +144,7 @@
import CRUD, { form, crud } from '@crud/crud'
import crudProductRoute from '@/api/productprocessroute'
import Treeselect, {LOAD_CHILDREN_OPTIONS} from '@riophae/vue-treeselect'
import Treeselect, { LOAD_CHILDREN_OPTIONS } from '@riophae/vue-treeselect'
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
import crudClassstandard from '@/api/wms/basedata/master/classstandard'
import crudMdPbMeasureunit from '@/api/wms/basedata/master/mdPbMeasureunit'
@@ -161,7 +161,7 @@ const defaultForm = {
export default {
name: 'AddDialog',
dicts: ['product_area'],
components: {Treeselect },
components: { Treeselect },
mixins: [form(defaultForm), crud()],
props: {
dialogShow: {
@@ -307,7 +307,6 @@ export default {
this.deviceList.forEach(row => {
res.check_list.forEach(selected => {
if (selected.device_code === row.device_code) {
this.$refs.multipleTable.toggleRowSelection(row, true)
}
})
@@ -317,7 +316,7 @@ export default {
}
},
getRoute() {
// 查询原料库的仓库
// 查询原料库的仓库
crudProductRoute.getRoute({}).then(res => {
this.routeList = res
})
@@ -326,10 +325,10 @@ export default {
this.form.tableData.push({ workprocedure_no: '', is_check: '1' })
},
// 获取子节点数据
loadChildNodes({action, parentNode, callback}) {
loadChildNodes({ action, parentNode, callback }) {
if (action === LOAD_CHILDREN_OPTIONS) {
crudClassstandard.getClass({pid: parentNode.id}).then(res => {
parentNode.children = res.content.map(function (obj) {
crudClassstandard.getClass({ pid: parentNode.id }).then(res => {
parentNode.children = res.content.map(function(obj) {
if (obj.hasChildren) {
obj.children = null
}
@@ -343,7 +342,7 @@ export default {
},
delLine() {
this.form.tableData.splice(-1)
},
}
}
}
</script>