修复租户ID类型比较问题,
This commit is contained in:
@@ -70,7 +70,7 @@
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8" v-if="tenantId === '1'">
|
||||
<el-col :span="8" v-if="tenantId == 1">
|
||||
<el-form-item label="存储模式">
|
||||
<el-radio-group v-model="ruleForm.stockMode" :disabled="isEdit">
|
||||
<el-radio :value="1">明细模式</el-radio>
|
||||
@@ -580,6 +580,8 @@ const assetFormDiff = createFormDiff<Record<string, any>>();
|
||||
|
||||
// 获取租户ID
|
||||
const tenantId = ref(Session.get('userInfo')?.tenantId || '');
|
||||
console.log(tenantId.value,'租户id');
|
||||
|
||||
|
||||
const formatImageUrl = (url?: string) => {
|
||||
if (!url) return '';
|
||||
@@ -1126,7 +1128,7 @@ const buildRequestBody = async (): Promise<any> => {
|
||||
body.unlimitedStock = ruleForm.unlimitedStock;
|
||||
|
||||
// 库存存储模式(仅租户ID为1时提交)
|
||||
if (tenantId.value === '1') {
|
||||
if (tenantId.value == 1) {
|
||||
body.stockMode = ruleForm.stockMode;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user