|
|
@@ -23,7 +23,8 @@
|
|
|
background-color: #fff;
|
|
|
height: 24px;
|
|
|
}
|
|
|
-.order-detail{
|
|
|
+
|
|
|
+.order-detail {
|
|
|
margin-left: 20px;
|
|
|
}
|
|
|
|
|
|
@@ -143,7 +144,12 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
-<script setup lang="ts" name="WashOrderList">
|
|
|
+<script lang="ts">
|
|
|
+export default {
|
|
|
+ name: 'adminOrdering'
|
|
|
+}
|
|
|
+</script>
|
|
|
+<script setup lang="ts" name="adminOrdering">
|
|
|
import {defineAsyncComponent, reactive, onMounted, onBeforeMount, ref, getCurrentInstance, nextTick, onBeforeUnmount} from 'vue';
|
|
|
import {$body, $get} from "/@/utils/request";
|
|
|
import u from '/@/utils/u'
|
|
|
@@ -293,6 +299,7 @@ onBeforeMount(() => {
|
|
|
})
|
|
|
|
|
|
onMounted(() => {
|
|
|
+ console.log("ordering mounted")
|
|
|
loadData();
|
|
|
|
|
|
nextTick(() => {
|
|
|
@@ -321,19 +328,19 @@ const loadData = (refresh: boolean = false) => {
|
|
|
$body(`/washOrder/list`, {...state.formQuery, ...state.pageQuery}).then((res: any) => {
|
|
|
let {list, total} = res;
|
|
|
|
|
|
- list.forEach((item:any)=>{
|
|
|
- if(item.detail){
|
|
|
+ list.forEach((item: any) => {
|
|
|
+ if (item.detail) {
|
|
|
// let parse = JSON.parse(item.detail);
|
|
|
- item.detail = item.detail.filter((k:any)=>k.amount>0||k.seconds>0).map((s:any)=>{
|
|
|
+ item.detail = item.detail.filter((k: any) => k.amount > 0 || k.seconds > 0).map((s: any) => {
|
|
|
return {
|
|
|
- name:u.fmt.fmtDict(s.name,'Order.feeType'),
|
|
|
- seconds:u.fmt.fmtDuration(s.seconds*1000),
|
|
|
- price:u.fmt.fmtMoney(s.price),
|
|
|
- amount:u.fmt.fmtMoney(s.amount),
|
|
|
+ name: u.fmt.fmtDict(s.name, 'Order.feeType'),
|
|
|
+ seconds: u.fmt.fmtDuration(s.seconds * 1000),
|
|
|
+ price: u.fmt.fmtMoney(s.price),
|
|
|
+ amount: u.fmt.fmtMoney(s.amount),
|
|
|
}
|
|
|
})
|
|
|
- }else{
|
|
|
- item.detail={}
|
|
|
+ } else {
|
|
|
+ item.detail = {}
|
|
|
}
|
|
|
})
|
|
|
|