mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-04 01:50:17 +08:00
update 占桩订单优化
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user