王震
2023-09-08 eec77847922467a0ed5631794dbfe9ea2e367032
src/components/view/standard.vue
@@ -52,7 +52,20 @@
              询</span></el-button>
        </div>
        <div>
        <!-- <div v-if="this.typeselect == 0">
          工艺路线
        </div>
        <div v-if="this.typeselect == 1">
          技术指标
        </div>
        <div v-if="this.typeselect == 2">
          物料清单
        </div>
        <div v-if="this.typeselect == 3">
          生产工艺
        </div> -->
        <!-- <div>
          <el-table :data="tableData" style="width: 100%;margin-bottom: 20px;" row-key="name" border
            @selection-change="handleSelectionChange" default-expand-all
            :tree-props="{ children: 'children', hasChildren: 'hasChildren' }">
@@ -61,7 +74,7 @@
            <el-table-column type="index" width="50" label="序号">
            </el-table-column>
            <el-table-column prop="name" label="工序" sortable width="300px">
              <!-- <template slot-scope="scope">
              <template slot-scope="scope">
                        <el-tag>
                            <div class="firstDiv" :style="`color: ${scope.row.children? '#16a7ff' : '#58c173'}`">
                            {{ scope.row.children ? "01" : "02" }}
@@ -69,7 +82,7 @@
                        </el-tag>
                        <span style="color: black">{{ scope.row.name }}</span>
                        </template> -->
                        </template>
            </el-table-column>
            <el-table-column prop="" sortable label="工艺名称">
            </el-table-column>
@@ -82,7 +95,8 @@
            <el-table-column prop="unit" label="标准值">
            </el-table-column>
          </el-table>
        </div>
        </div> -->
        <div class="table">
          <technology v-if="tableData.length !== 0" :tableType="tableType" :tableData="tableData"></technology>
        </div>
@@ -93,7 +107,7 @@
    <div class="bom-add-model">
      <el-dialog title="BOM新增" :visible.sync="bomAddModelVisible" width="30%">
        <el-form>
        </el-form>
        <span slot="footer" class="dialog-footer">
          <el-button @click="bomAddModelVisible = false">取 消</el-button>
@@ -119,12 +133,14 @@
      tableData: [],
      bomAddModelVisible: false,// 控制bom新增模态框是否显示
      list: [],
      typeselect: {},
      returntree: {},
      typeselect: 0,
      returntree: {
        id:28,
      },
      version: {},
      VER: {},
      verdata: {},
      character: '',
      character: 0,
    }
  },
  // watch: {
@@ -137,6 +153,8 @@
  // },
  mounted() {
    this.selectMaterialTree()
    this.selectVersion()
    this.selectAll()
  },
  methods: {
    handleSelectionChange() {
@@ -145,14 +163,15 @@
    TYPE(val) {//类型.数据
      console.log(val);
      this.typeselect = val
      console.log(this.typeselect);
      // console.log(this.typeselect);
      this.selectVersion()
    },
    handleNodeClick(val) {//树的值
      console.log(val);
      this.returntree = val
    },
    selectVersion() {
    selectVersion() {//版本
      this.$axios.get(this.$api.url.selectVersion, {
        params: {
          specificationsId: this.returntree.id,