|
@@ -15,7 +15,7 @@
|
|
|
</template>
|
|
|
<template #add>
|
|
|
<div>
|
|
|
- <a-button type="primary" @click="updataRepairInfo">重置</a-button>
|
|
|
+ <a-button type="primary" @click="updataRepairInfo(1)">重置</a-button>
|
|
|
<a-button type="primary" @click="add" style="margin-left: 20px">添加明细</a-button>
|
|
|
<a-button type="primary" @click="addReduction" style="margin-left: 20px"
|
|
|
>添加减免</a-button
|
|
@@ -204,9 +204,9 @@
|
|
|
const [register, { closeModal }] = useModalInner((data) => {
|
|
|
data && onDataReceive(data);
|
|
|
});
|
|
|
- async function updataRepairInfo() {
|
|
|
+ async function updataRepairInfo(isRest = 0) {
|
|
|
let { repairId } = getFieldsValue();
|
|
|
- const { priceLists, count } = await getPriceList({ repairId }); //
|
|
|
+ const { priceLists, count } = await getPriceList({ repairId, isRest }); //
|
|
|
clearInfo(true);
|
|
|
addPriceItem(priceLists);
|
|
|
setTimeout(() => {
|
|
@@ -344,7 +344,7 @@
|
|
|
required: true,
|
|
|
componentProps: {
|
|
|
disabled: ele.status == 1,
|
|
|
- min: 0,
|
|
|
+ min: 1,
|
|
|
max: 999,
|
|
|
maxLength: 15,
|
|
|
onChange: (val) => {
|