@@ -122,7 +122,9 @@ export default {
// 禁用库存类型选项
upStockType (hasLt) {
this.$refs.partQuery.stockDisabled = hasLt
- this.$refs.partQuery.stockType = this.totalData.stockType
+ if (hasLt) {
+ this.$refs.partQuery.stockType = this.totalData.stockType
+ }
},
// 添加产品
insterProduct (list) {
@@ -635,6 +635,11 @@ export default {
// 判断是否有箭冠轮胎产品
if (productBrand && productBrand.indexOf('箭冠') >= 0 && productBrand && productType3.indexOf('轮胎') >= 0) {
this.hasJGtire = true
+ // 默认锁定库存类型
+ if (!this.stockType) {
+ this.stockType = 'LOCK_STOCK'
+ this.stockTypeChange('LOCK_STOCK')
}
// 转采购额数量