默认选择修改

This commit is contained in:
zxy 2026-01-14 14:37:54 +08:00
parent 4253e4506d
commit 1034f6f20b

View File

@ -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("提交明细不能为空,请确认");