Fixiaobai
2023-09-14 7e33695561c2da43fcc752894e9bd46a7059cb3f
src/components/view/standard.vue
@@ -982,7 +982,9 @@
        return this.verdata[0]
      })
      this.character=v
      this.version2="v"+v
      if(this.character != undefined){
        this.version2="v"+v
      }
      this.selectAll()
    },
    //右侧数据
@@ -1165,6 +1167,28 @@
      handler(newval,oldVal){
        if(newval){
        let treeOptions = JSON.parse(JSON.stringify(this.list));
        if(treeOptions.length<1){
          let obj={
            name: '成品',
          }
          let obj2={
            name: '半成品',
          }
          treeOptions.push(obj)
          treeOptions.push(obj2)
        }
        if(treeOptions.length===1){
          if(treeOptions[0].name==='成品'){
            treeOptions.push({
            name: '半成品',
          })
          }
          if(treeOptions[0].name==='半成品'){
            treeOptions.push({
            name: '成品',
          })
          }
        }
        this.replaceProp(treeOptions)
        this.formTypeOptions=treeOptions
        this.restaurants=this.loadFatherType()