update: 细节优化

This commit is contained in:
admin 2024-08-06 17:33:48 +08:00
parent 9013b113ff
commit c86febab11
5 changed files with 17 additions and 8 deletions

View File

@ -244,7 +244,7 @@ const getList = (v?: boolean) => {
pageNum: pageList.pageNum,
startTime: formatStartAndEndTime(state.startTime, 's'),
endTime: formatStartAndEndTime(state.endTime, 'e'),
oddNumbers: keyword.value,
orderNumber: keyword.value,
};
if (state.currentPaymentType > -1) {
params.paymentType = state.currentPaymentType;

View File

@ -2,7 +2,9 @@
<view class="c-card app-container">
<view class="search">
<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>
<u-search
placeholder="请输入供应商名称"
@ -100,7 +102,9 @@ const resetPageList = () => {
pageList.pageSize = 100;
};
const handleSelect = (v: any) => {
console.log(v)
state.supplierTypeId = v.id;
state.supplierName = v.name
resetPageList();
getList();
};

View File

@ -440,7 +440,7 @@ onLoad((option) => {
}
}
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];
} else {
item.num = state.order["totalPrice"];

View File

@ -468,7 +468,7 @@ const formAttrList = reactive<ComType>([
type: "textarea",
},
{
name: "结算单据",
name: "货品照片",
key: "photo",
type: "upload",
},

View File

@ -17,6 +17,11 @@ export const useMemberStore = defineStore(
menusNameList: [],
err: null,
});
const mechanism = ref<any>({
mechanismCode: "",
mechanismName: "",
});
// 保存会员信息,登录时使用
const setProfile = (val: any) => {
@ -39,12 +44,12 @@ export const useMemberStore = defineStore(
menusList: [],
menusNameList: [],
};
mechanism.value.mechanismCode = ""
mechanism.value.mechanismName = ""
};
const mechanism = ref<any>({
mechanismCode: "",
mechanismName: "",
});
const setMechanism = (v: { mechanismCode: ""; mechanismName: "" }) => {
mechanism.value = v;
};