默认选择修改

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" type="number"
placeholder="两位小数" placeholder="两位小数"
@change="changeUnitPrice(row)" @change="changeUnitPrice(row)"
@input="changeUnitPrice(row)"
/> />
</el-form-item> </el-form-item>
@ -179,7 +180,7 @@
type="number" type="number"
@change="changeEstimatedPrices(row)" @change="changeEstimatedPrices(row)"
placeholder="两位小数" placeholder="两位小数"
/> @input="changeEstimatedPrices(row)" />
</el-form-item> </el-form-item>
</template> </template>
</el-table-column> </el-table-column>
@ -331,7 +332,7 @@ const handleDelete = async (id: number) => {
} catch {} } catch {}
} }
const skip = async () => { const skip = async () => {
const list = multipleTable.value|| []; // const list = multipleSelection.value || []; //
// 1. // 1.
if (!list || list.length==null) { if (!list || list.length==null) {
router.push({ path: '/production/productiondispatch' }); router.push({ path: '/production/productiondispatch' });
@ -562,6 +563,9 @@ const tableRowClassName = ({ row }) => {
return row.isSelected ? 'selected-row' : ''; return row.isSelected ? 'selected-row' : '';
} }
const handleSelectionChange = (val) => { const handleSelectionChange = (val) => {
// multipleSelection
multipleSelection.value = val;
// isSelected chkboxEnable // isSelected chkboxEnable
list.value.forEach(row => { list.value.forEach(row => {
row.isSelected = false; row.isSelected = false;
@ -638,7 +642,7 @@ const singleSubmissions=()=>{
submitForm(); submitForm();
} }
const updateDuEmp= async ()=>{ const updateDuEmp= async ()=>{
const list = multipleTable.value|| []; // const list = multipleSelection.value || []; //
// 1. // 1.
if (!list || list.length==null) { if (!list || list.length==null) {
message.error("提交明细不能为空,请确认"); message.error("提交明细不能为空,请确认");
@ -665,7 +669,7 @@ const updateDuEmp= async ()=>{
const submitForm = async () => { const submitForm = async () => {
try { try {
const list = multipleTable.value|| []; // const list = multipleSelection.value || []; //
// 1. // 1.
if (!list || list.length==null) { if (!list || list.length==null) {
message.error("提交明细不能为空,请确认"); message.error("提交明细不能为空,请确认");