库存上下线都要单位值

jg-waiwang-pro
mhsnet 7 months ago
parent 39e97b07ee
commit c5bd008cb7

@ -235,14 +235,17 @@
</template>
<template slot-scope="scope">
<template v-if="scope.$index == 0">
{{ scope.row.conversionRules }}
<JnpfInput v-model="scope.row.conversionRules"
@change="changeData('productunit-conversionRules', scope.$index)"
placeholder="请输入" :disabled="true" clearable
:style='{ "width": "100%" }' :addonAfter="SKU"></JnpfInput>
</template>
<template v-else>
<JnpfInput v-model="scope.row.conversionRules"
@change="changeData('productunit-conversionRules', scope.$index)"
placeholder="请输入"
:disabled="judgeWrite('productunitList') || judgeWrite('productunitList-conversionRules')"
clearable :style='{ "width": "100%" }'>
clearable :style='{ "width": "100%" }' :addonAfter="SKU">
</JnpfInput>
</template>
</template>
@ -273,7 +276,7 @@
<el-col :span="8" v-if="judgeShow('inventoryUnitId')">
<jnpf-form-tip-item label="库存单位" v-if="judgeShow('inventoryUnitId')" prop="inventoryUnitId">
<JnpfSelect v-model="dataForm.inventoryUnitId" @change="changeData('inventoryUnitId', -1)"
placeholder="请选择" :disabled="judgeWrite('inventoryUnitId')" clearable
placeholder="请选择" :disabled="judgeWrite('inventoryUnitId')" clearable disabled
:style='{ "width": "100%" }' :options="productUnitList" :props="inventoryUnitIdProps"
disable="true">
</JnpfSelect>
@ -353,7 +356,7 @@
<jnpf-form-tip-item label="安全库存" v-if="judgeShow('safetyStock')" prop="safetyStock">
<JnpfInput v-model="dataForm.safetyStock" @change="changeData('safetyStock', -1)"
placeholder="请输入" :disabled="judgeWrite('safetyStock')" clearable
:style='{ "width": "100%" }'>
:style='{ "width": "100%" }' :addonAfter="SKU">
</JnpfInput>
</jnpf-form-tip-item>
</el-col>
@ -362,7 +365,8 @@
prop="availableInventory">
<JnpfInput v-model="dataForm.availableInventory"
@change="changeData('availableInventory', -1)" placeholder="请输入"
:disabled="judgeWrite('availableInventory')" clearable :style='{ "width": "100%" }'>
:disabled="judgeWrite('availableInventory')" clearable :style='{ "width": "100%" }'
:addonAfter="SKU">
</JnpfInput>
</jnpf-form-tip-item>
</el-col>
@ -370,7 +374,7 @@
<jnpf-form-tip-item label="库存天数下限" v-if="judgeShow('inventoryDayDown')" prop="inventoryDayDown">
<JnpfInput v-model="dataForm.inventoryDayDown" @change="changeData('inventoryDayDown', -1)"
placeholder="请输入" :disabled="judgeWrite('inventoryDayDown')" clearable
:style='{ "width": "100%" }'>
:style='{ "width": "100%" }' :addonAfter="SKU">
</JnpfInput>
</jnpf-form-tip-item>
</el-col>
@ -379,7 +383,8 @@
prop="inventoryDayUpper">
<JnpfInput v-model="dataForm.inventoryDayUpper"
@change="changeData('inventoryDayUpper', -1)" placeholder="请输入"
:disabled="judgeWrite('inventoryDayUpper')" clearable :style='{ "width": "100%" }'>
:disabled="judgeWrite('inventoryDayUpper')" clearable :style='{ "width": "100%" }'
:addonAfter="SKU">
</JnpfInput>
</jnpf-form-tip-item>
</el-col>
@ -387,7 +392,7 @@
<jnpf-form-tip-item label="库存下限" v-if="judgeShow('inventoryDown')" prop="inventoryDown">
<JnpfInput v-model="dataForm.inventoryDown" @change="changeData('inventoryDown', -1)"
placeholder="请输入" :disabled="judgeWrite('inventoryDown')" clearable
:style='{ "width": "100%" }'>
:style='{ "width": "100%" }' :addonAfter="SKU">
</JnpfInput>
</jnpf-form-tip-item>
</el-col>
@ -395,7 +400,7 @@
<jnpf-form-tip-item label="库存上限" v-if="judgeShow('inventoryUpper')" prop="inventoryUpper">
<JnpfInput v-model="dataForm.inventoryUpper" @change="changeData('inventoryUpper', -1)"
placeholder="请输入" :disabled="judgeWrite('inventoryUpper')" clearable
:style='{ "width": "100%" }'>
:style='{ "width": "100%" }' :addonAfter="SKU">
</JnpfInput>
</jnpf-form-tip-item>
</el-col>
@ -789,6 +794,21 @@ export default {
return ''
}
},
SKU() {
if (this.dataForm.productUnitList.length > 0) {
let opts = this.dataForm.productUnitList[0]['productUnitwarehouseIdOptions']
opts = opts.filter(o1 => {
return o1.id == this.dataForm.productUnitList[0]['productUnitwarehouseId']
})
if (opts.length > 0) {
return opts[0]['fullName']
} else {
return ''
}
} else {
return ''
}
},
},
watch: {
'dataForm.manyUnitFlag': function (nManyUnitFlag, oManyUnitFlag) {

Loading…
Cancel
Save