默认选择修改
This commit is contained in:
parent
4253e4506d
commit
1034f6f20b
@ -165,6 +165,7 @@
|
||||
type="number"
|
||||
placeholder="两位小数"
|
||||
@change="changeUnitPrice(row)"
|
||||
@input="changeUnitPrice(row)"
|
||||
|
||||
/>
|
||||
</el-form-item>
|
||||
@ -179,7 +180,7 @@
|
||||
type="number"
|
||||
@change="changeEstimatedPrices(row)"
|
||||
placeholder="两位小数"
|
||||
/>
|
||||
@input="changeEstimatedPrices(row)" />
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@ -331,7 +332,7 @@ const handleDelete = async (id: number) => {
|
||||
} catch {}
|
||||
}
|
||||
const skip = async () => {
|
||||
const list = multipleTable.value|| []; // 安全获取数据
|
||||
const list = multipleSelection.value || []; // 安全获取数据
|
||||
// 1. 检查空数据
|
||||
if (!list || list.length==null) {
|
||||
router.push({ path: '/production/productiondispatch' });
|
||||
@ -562,6 +563,9 @@ const tableRowClassName = ({ row }) => {
|
||||
return row.isSelected ? 'selected-row' : '';
|
||||
}
|
||||
const handleSelectionChange = (val) => {
|
||||
// 更新 multipleSelection
|
||||
multipleSelection.value = val;
|
||||
|
||||
// 重置所有行的 isSelected 和 chkboxEnable 状态
|
||||
list.value.forEach(row => {
|
||||
row.isSelected = false;
|
||||
@ -638,7 +642,7 @@ const singleSubmissions=()=>{
|
||||
submitForm();
|
||||
}
|
||||
const updateDuEmp= async ()=>{
|
||||
const list = multipleTable.value|| []; // 安全获取数据
|
||||
const list = multipleSelection.value || []; // 安全获取数据
|
||||
// 1. 检查空数据
|
||||
if (!list || list.length==null) {
|
||||
message.error("提交明细不能为空,请确认");
|
||||
@ -665,7 +669,7 @@ const updateDuEmp= async ()=>{
|
||||
const submitForm = async () => {
|
||||
try {
|
||||
|
||||
const list = multipleTable.value|| []; // 安全获取数据
|
||||
const list = multipleSelection.value || []; // 安全获取数据
|
||||
// 1. 检查空数据
|
||||
if (!list || list.length==null) {
|
||||
message.error("提交明细不能为空,请确认");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user