haoxuan
2024-04-11 8003ace3fff94312edeca29c0e1607b903b807e6
获取产量登记详情的接口联调+2个数组重新排版成表格所需数据
3个文件已修改
27 ■■■■ 已修改文件
src/api/productManage/productRegisterForm.js 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/common/untils/dialog.js 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productManage/productRegisterForm/components/addProductDialog.vue 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/productManage/productRegisterForm.js
@@ -31,7 +31,15 @@
    data
  })
}
// 获取车辆编号
// 切换产品登记表
export function changeYieldRegister(data) {
  return request({
    url: "/api-jl/v1/fineness/changeYieldRegister",
    method: "post",
    data
  })
}
// 获取车辆编号 和等级
export function getWorkshopManageCar(data) {
  return request({
    url: "/api-jl/v1/system/getCarAndLevel",
@@ -46,4 +54,4 @@
    method: "get",
    data
  })
}
}
src/common/untils/dialog.js
@@ -40,9 +40,8 @@
        // 将此时的位置传出去
        // binding.value({x:e.pageX,y:e.pageY})
      }
      document.onmouseup = function (e) {
        console.log(e)
      // e
      document.onmouseup = function () {
        document.onmousemove = null
        document.onmouseup = null
      }
src/views/productManage/productRegisterForm/components/addProductDialog.vue
@@ -283,12 +283,16 @@
          workshopId: this.proForm.workshopId,
        }).then((res) => {
          if (res.code == 200) {
            console.log(res,'res')
            if(res.data){
              if(Object.keys(res.data).length>0){
                this.$emit('changeForm',this.proForm,val,res.data)
              }
            }
          }
        });
      }else{
        this.$emit('changeForm',this.proForm,val,{})
      }
      this.$emit('changeForm',this.proForm,val)
    },
    changeTableInput(){
      if(this.proForm.pieces&&this.proForm.carNumber&&this.proForm.pieceNumber){