update 占桩订单优化

This commit is contained in:
Guoqs
2024-07-25 17:22:12 +08:00
parent 64f9797f82
commit ed7c0f5e5c
5 changed files with 69 additions and 2 deletions

View File

@@ -106,6 +106,9 @@
<el-button size="mini" type="text" v-hasPermi="['pile:occupy:remove']"
@click="getPay(scope.row.id, scope.row.occupyCode)">无需支付
</el-button>
<el-button size="mini" type="text" v-hasPermi="['pile:occupy:remove']"
@click="retryCalculateOccupyPileOrderAmount(scope.row.id, scope.row.occupyCode)">重新计算占桩订单金额
</el-button>
</template>
</el-table-column>
</el-table>
@@ -177,7 +180,15 @@
</template>
<script>
import { listOccupy, getOccupy, delOccupy, addOccupy, updateOccupy, noNeedPay } from "@/api/pile/occupy";
import {
listOccupy,
getOccupy,
delOccupy,
addOccupy,
updateOccupy,
noNeedPay,
retryCalculateOccupyPileOrderAmount
} from "@/api/pile/occupy";
export default {
name: "Occupy",
@@ -367,6 +378,21 @@ export default {
this.dataId = m
this.numbering = n
},
// 重新计算占桩订单金额
retryCalculateOccupyPileOrderAmount(id, occupyCode) {
const param = {
occupyCode: occupyCode
};
retryCalculateOccupyPileOrderAmount(param).then(res => {
console.log(res);
if (res.code === 200) {
this.$modal.msgSuccess("操作成功");
this.getList();
}
});
},
// type状态
agreeChange(value) {
this.radio = value