瀏覽代碼

轮胎批次号

caojunjie 1 年之前
父節點
當前提交
d053ed7164
共有 1 個文件被更改,包括 13 次插入8 次删除
  1. 13 8
      src/views/tirePartsMall/salesManagement/saleOrder/detailsPage.vue

+ 13 - 8
src/views/tirePartsMall/salesManagement/saleOrder/detailsPage.vue

@@ -256,6 +256,7 @@
 
 <script>
 import { getDetails as getCustom } from "@/api/tirePartsMall/basicData/customerInformation"
+import {getDetails as getDetailsGods} from '@/api/tirePartsMall/basicData/commodityInformation'
 import {
     getDetails,
     submit,
@@ -1298,14 +1299,18 @@ export default {
         },
         // 采购明细行编辑
         hangeditBtn(row,index){
-            this.picihaolistfun(row.id)
-            row.dotedittype = true
-            // 价格数量
-            row.goodsNumtype = true
-            row.pricetype = true
-            // 编辑和保存状态切换
-            this.mingxibaocun = false
-            this.goodsPageXsfun()
+            // 获取是否管理批次号
+            getDetailsGods({id:row.goodsId}).then(res=>{
+                row.whether = res.data.data.whether
+                this.picihaolistfun(row.id)
+                row.dotedittype = true
+                // 价格数量
+                row.goodsNumtype = true
+                row.pricetype = true
+                // 编辑和保存状态切换
+                this.mingxibaocun = false
+                this.goodsPageXsfun()
+            })
         },
         // 保存按钮
         hangbaocun(row) {