refactor(order): 优化预订单页面的采购信息设置功能
- 注释掉修改入库按钮,暂时禁用该功能 - 优化确认按钮的布局和间距 - 重新组织 oneClickStorage 函数的代码结构,提高可读性
This commit is contained in:
parent
948a17dce0
commit
923a16df35
|
@ -65,13 +65,13 @@
|
|||
<template #default="{ row }">
|
||||
<el-button type="primary" link @click="procureClick(row)">采购设置</el-button>
|
||||
<el-button type="primary" link @click="storeroomClick(row)">分拣设置</el-button>
|
||||
<el-button
|
||||
<!-- <el-button
|
||||
type="primary"
|
||||
link
|
||||
@click="productOfferClick(row)"
|
||||
v-perms="['purchase_product_offer.purchase_product_offer/warehouse']"
|
||||
>修改入库</el-button
|
||||
>
|
||||
> -->
|
||||
<el-button
|
||||
type="danger"
|
||||
link
|
||||
|
@ -115,7 +115,9 @@
|
|||
<template #footer>
|
||||
<div class="dialog-footer">
|
||||
<el-button @click="dialogBuyer = false">取消</el-button>
|
||||
<el-button type="primary" @click="oneClickStorage" :disabled="disableClick"> 确认 </el-button>
|
||||
<el-button type="primary" @click="oneClickStorage" :disabled="disableClick">
|
||||
确认
|
||||
</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-dialog>
|
||||
|
@ -349,18 +351,18 @@ const resetFormData = () => {
|
|||
expiration_date: ''
|
||||
}
|
||||
}
|
||||
const oneClickStorage = async() => {
|
||||
disableClick.value = true
|
||||
try {
|
||||
await apiBeforehandOrderCartInfoOneClickStorage(one_click_storage.value)
|
||||
dialogBuyer.value = false
|
||||
disableClick.value = false
|
||||
getLists()
|
||||
} catch (error) {
|
||||
setTimeout(() => {
|
||||
disableClick.value = false
|
||||
}, 2000)
|
||||
}
|
||||
const oneClickStorage = async () => {
|
||||
disableClick.value = true
|
||||
try {
|
||||
await apiBeforehandOrderCartInfoOneClickStorage(one_click_storage.value)
|
||||
dialogBuyer.value = false
|
||||
disableClick.value = false
|
||||
getLists()
|
||||
} catch (error) {
|
||||
setTimeout(() => {
|
||||
disableClick.value = false
|
||||
}, 2000)
|
||||
}
|
||||
}
|
||||
/**
|
||||
* 采购信息设置
|
||||
|
|
Loading…
Reference in New Issue