Fixiaobai
2023-09-14 7e33695561c2da43fcc752894e9bd46a7059cb3f
	modified:   src/components/view/standard.vue
已修改1个文件
22 ■■■■■ 文件已修改
src/components/view/standard.vue 22 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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()