优化了任务
This commit is contained in:
@@ -59,7 +59,7 @@ function createEmptyItem(): EditableItem {
|
||||
cloudSourceKey: 'default',
|
||||
cloudSkuId: 0,
|
||||
cloudSkuName: '',
|
||||
vnKey: '',
|
||||
vnKey: '1',
|
||||
autoBuyEnabled: true,
|
||||
minAssetReserve: 0,
|
||||
autoReturnNumberAfterDispatch: false,
|
||||
@@ -157,7 +157,7 @@ function isItemComplete(item: EditableItem) {
|
||||
return Boolean(
|
||||
item.internalSkuCode.trim()
|
||||
&& Number(item.cloudSkuId || 0) > 0
|
||||
&& item.vnKey.trim()
|
||||
&& true
|
||||
&& hasExternalMatch(item),
|
||||
)
|
||||
}
|
||||
@@ -177,10 +177,6 @@ function resolveValidation(item: EditableItem, index: number): ValidationState {
|
||||
return { localId: item.localId, message: `${title} 需要填写 cloud SKU ID` }
|
||||
}
|
||||
|
||||
if (!item.vnKey.trim()) {
|
||||
return { localId: item.localId, message: `${title} 需要填写虚拟号 VN Key` }
|
||||
}
|
||||
|
||||
if (!hasExternalMatch(item)) {
|
||||
return { localId: item.localId, message: `${title} 至少填写一种外部匹配条件` }
|
||||
}
|
||||
@@ -466,7 +462,7 @@ onMounted(loadConfigs)
|
||||
</label>
|
||||
<label class="field-block">
|
||||
<span>虚拟号 VN Key</span>
|
||||
<el-input v-model="item.vnKey" maxlength="40" placeholder="必填,例如 1" />
|
||||
<el-input :model-value="'1'" disabled placeholder="固定为 1" />
|
||||
</label>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user