默认选择修改
This commit is contained in:
parent
4253e4506d
commit
1034f6f20b
@ -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("提交明细不能为空,请确认");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user