Commit 4129bdcd by wusiyi

fix:质检bug修复

parent 2710b517
...@@ -41,19 +41,12 @@ const factoryOrderFlowConfig = ref<FactoryOrderFlowConfig>() ...@@ -41,19 +41,12 @@ const factoryOrderFlowConfig = ref<FactoryOrderFlowConfig>()
/** 勾选草稿,仅保存后同步到已生效配置 */ /** 勾选草稿,仅保存后同步到已生效配置 */
const draftSkipInspect = ref(false) const draftSkipInspect = ref(false)
const STEP_WIDTH = 150
const showFlowConfigList = computed(() => const showFlowConfigList = computed(() =>
draftSkipInspect.value draftSkipInspect.value
? flowConfigList.value.filter((item) => item.code !== 'INSPECTION') ? flowConfigList.value.filter((item) => item.code !== 'INSPECTION')
: flowConfigList.value, : flowConfigList.value,
) )
/** 按完整步骤数预留宽度,勾选后容器不收缩,避免居中抖动 */
const fullStepsWidth = computed(
() => `${flowConfigList.value.length * STEP_WIDTH}px`,
)
// 获取质检状态 // 获取质检状态
const getConfig = async () => { const getConfig = async () => {
const res = await getFactoryOrderFlowConfigApi() const res = await getFactoryOrderFlowConfigApi()
...@@ -94,6 +87,12 @@ const updateConfig = async () => { ...@@ -94,6 +87,12 @@ const updateConfig = async () => {
type: 'warning', type: 'warning',
}, },
) )
} else {
await ElMessageBox.confirm(`是否确定保存`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
} }
} else { } else {
await ElMessageBox.confirm(`是否确定保存`, '提示', { await ElMessageBox.confirm(`是否确定保存`, '提示', {
...@@ -134,7 +133,7 @@ onMounted(async () => { ...@@ -134,7 +133,7 @@ onMounted(async () => {
flex-direction: column; flex-direction: column;
align-items: flex-start; align-items: flex-start;
width: max-content; width: max-content;
min-width: v-bind(fullStepsWidth); min-width: 900px;
margin: 50px auto 0; margin: 50px auto 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment