|
@@ -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) {
|