update: 细节优化
This commit is contained in:
parent
9013b113ff
commit
c86febab11
|
@ -244,7 +244,7 @@ const getList = (v?: boolean) => {
|
||||||
pageNum: pageList.pageNum,
|
pageNum: pageList.pageNum,
|
||||||
startTime: formatStartAndEndTime(state.startTime, 's'),
|
startTime: formatStartAndEndTime(state.startTime, 's'),
|
||||||
endTime: formatStartAndEndTime(state.endTime, 'e'),
|
endTime: formatStartAndEndTime(state.endTime, 'e'),
|
||||||
oddNumbers: keyword.value,
|
orderNumber: keyword.value,
|
||||||
};
|
};
|
||||||
if (state.currentPaymentType > -1) {
|
if (state.currentPaymentType > -1) {
|
||||||
params.paymentType = state.currentPaymentType;
|
params.paymentType = state.currentPaymentType;
|
||||||
|
|
|
@ -2,7 +2,9 @@
|
||||||
<view class="c-card app-container">
|
<view class="c-card app-container">
|
||||||
<view class="search">
|
<view class="search">
|
||||||
<view class="type" @click="state.isShowType = true"
|
<view class="type" @click="state.isShowType = true"
|
||||||
>全部分类<u-icon name="arrow-down"></u-icon>
|
>
|
||||||
|
{{state.supplierTypeId > -1 ? state.supplierName : '全部分类'}}
|
||||||
|
<u-icon name="arrow-down"></u-icon>
|
||||||
</view>
|
</view>
|
||||||
<u-search
|
<u-search
|
||||||
placeholder="请输入供应商名称"
|
placeholder="请输入供应商名称"
|
||||||
|
@ -100,7 +102,9 @@ const resetPageList = () => {
|
||||||
pageList.pageSize = 100;
|
pageList.pageSize = 100;
|
||||||
};
|
};
|
||||||
const handleSelect = (v: any) => {
|
const handleSelect = (v: any) => {
|
||||||
|
console.log(v)
|
||||||
state.supplierTypeId = v.id;
|
state.supplierTypeId = v.id;
|
||||||
|
state.supplierName = v.name
|
||||||
resetPageList();
|
resetPageList();
|
||||||
getList();
|
getList();
|
||||||
};
|
};
|
||||||
|
|
|
@ -440,7 +440,7 @@ onLoad((option) => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (item.name === "实际付款") {
|
if (item.name === "实际付款") {
|
||||||
if (state.order[item.enName as string]) {
|
if (state.order[item.enName as string] !== null) {
|
||||||
item.num = state.order[item.enName as string];
|
item.num = state.order[item.enName as string];
|
||||||
} else {
|
} else {
|
||||||
item.num = state.order["totalPrice"];
|
item.num = state.order["totalPrice"];
|
||||||
|
|
|
@ -468,7 +468,7 @@ const formAttrList = reactive<ComType>([
|
||||||
type: "textarea",
|
type: "textarea",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "结算单据",
|
name: "货品照片",
|
||||||
key: "photo",
|
key: "photo",
|
||||||
type: "upload",
|
type: "upload",
|
||||||
},
|
},
|
||||||
|
|
|
@ -18,6 +18,11 @@ export const useMemberStore = defineStore(
|
||||||
err: null,
|
err: null,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const mechanism = ref<any>({
|
||||||
|
mechanismCode: "",
|
||||||
|
mechanismName: "",
|
||||||
|
});
|
||||||
|
|
||||||
// 保存会员信息,登录时使用
|
// 保存会员信息,登录时使用
|
||||||
const setProfile = (val: any) => {
|
const setProfile = (val: any) => {
|
||||||
profile.value = { ...profile.value, ...val };
|
profile.value = { ...profile.value, ...val };
|
||||||
|
@ -39,12 +44,12 @@ export const useMemberStore = defineStore(
|
||||||
menusList: [],
|
menusList: [],
|
||||||
menusNameList: [],
|
menusNameList: [],
|
||||||
};
|
};
|
||||||
|
|
||||||
|
mechanism.value.mechanismCode = ""
|
||||||
|
mechanism.value.mechanismName = ""
|
||||||
};
|
};
|
||||||
|
|
||||||
const mechanism = ref<any>({
|
|
||||||
mechanismCode: "",
|
|
||||||
mechanismName: "",
|
|
||||||
});
|
|
||||||
const setMechanism = (v: { mechanismCode: ""; mechanismName: "" }) => {
|
const setMechanism = (v: { mechanismCode: ""; mechanismName: "" }) => {
|
||||||
mechanism.value = v;
|
mechanism.value = v;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue