Fixiaobai
2023-09-14 9ab353d083dd22a90a8a0f09b9b7b756d58cc1bd
src/components/view/standard.vue
@@ -1167,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()