update: 细节优化

This commit is contained in:
admin 2024-05-30 10:07:35 +08:00
parent e86e17b7c9
commit 509476fbce
8 changed files with 33 additions and 22 deletions

View File

@ -4,11 +4,13 @@
"appid" : "__UNI__898003A",
"description" : "",
"versionName" : "1.0.0",
"versionCode" : "100",
"versionCode" : 100,
"transformPx" : false,
/* 5+App */
"app-plus" : {
"ignoreVersion": false,
"compatible" : {
"ignoreVersion" : true
},
"usingComponents" : true,
"nvueStyleCompiler" : "uni-app",
"compilerVersion" : 3,

View File

@ -40,7 +40,8 @@
<view class="type">{{ item.productName }}</view>
<view class="flex-box">
<text>定价人{{ item.pricingUserName }}</text>
<text>过磅时间{{ item.tareTime }}</text>
<!-- 过毛时间 -->
<text>过磅时间{{ item.grossTime }}</text>
</view>
<view class="more">

View File

@ -25,15 +25,19 @@
:isLoading="pageList.isLoading"
>
<view class="box">
<view v-for="(item, index) in pageList.list" :key="index">
<view>
<view>{{ item.roleName }}</view>
<block v-for="(item, index) in pageList.list" :key="index">
<view v-if="item.roleName !== '超级管理员'">
<view>
<view>{{ item.roleName }}</view>
</view>
<view class="op-box">
<view class="btn" @click="edit(item)"> 编辑 </view>
<view class="btn" @click="handleModal(true, item.id)">
删除
</view>
</view>
</view>
<view class="op-box">
<view class="btn" @click="edit(item)"> 编辑 </view>
<view class="btn" @click="handleModal(true, item.id)"> 删除 </view>
</view>
</view>
</block>
</view>
</page-view>
</view>
@ -60,7 +64,7 @@ const handleModal = (v: boolean, id: number) => {
deleteId.value = id;
};
const handleOk = () => {
deleteRole({id: deleteId.value})
deleteRole({ id: deleteId.value });
};
const state = reactive<any>({
@ -68,7 +72,7 @@ const state = reactive<any>({
});
const pageList: PageResult<{
roleName: string;
id: number
id: number;
}> = reactive({
noMoreData: false,
total: 0,
@ -98,13 +102,13 @@ const edit = (item: any) => {
const deleteRole = (item: any) => {
ProfileApi.updateRole({ isDeleted: true, id: item.id }).then((res) => {
if (res.code === 200) {
resetPageList()
resetPageList();
getList();
}
});
};
const handleSearch = () => {
resetPageList()
resetPageList();
getList();
};
const getList = (v?: boolean) => {
@ -131,7 +135,7 @@ const getList = (v?: boolean) => {
};
onShow(() => {
resetPageList()
resetPageList();
getList();
});
</script>

View File

@ -393,7 +393,7 @@ const appList = reactive([
},
},
{
icon: "09.png",
icon: "11.png",
title: "收货产品",
fn: () => {
uni.navigateTo({
@ -411,7 +411,7 @@ const appList = reactive([
},
},
{
icon: "11.png",
icon: "09.png",
title: "出货产品",
fn: () => {
uni.navigateTo({

View File

@ -151,6 +151,7 @@ const getList = (v?: boolean) => {
const handleOk = () => {
ReceiveApi.deleteOrder({ ids: [deleteId.value] }).then((res) => {
if (res.code === 200) {
resetPageList();
getList();
}
});

View File

@ -299,7 +299,9 @@ const handleScenePhoto = (id: any) => {
};
// // 3
const handleReviewNoPay = () => {
ReceiveApi.updateOne({ ...state.order, scaleStatus: 3 }).then((res) => {
ReceiveApi.updateOrderIn({
orderInPos: [{ ...state.order, scaleStatus: 3 }],
}).then((res) => {
if (res.code === 200) {
uni.redirectTo({
url: "/pagesReceive/payReview?scaleStatus=3", //
@ -395,12 +397,12 @@ const handlePrint = () => {
DeviceApi.print({
id: state.order.id,
orderType: OrderType.Receive,
userId: state.order.deviceId
userId: state.order.deviceId,
}).then((res) => {
if (res.code === 200) {
uni.showToast({
title: "打印成功",
})
});
}
});
};

View File

@ -120,9 +120,9 @@ const getList = (v?: boolean) => {
});
};
const handleOk = () => {
console.log(deleteId.value);
ShipmentApi.deleteOrder({ ids: [deleteId.value] }).then((res) => {
if (res.code === 200) {
resetPageList();
getList();
}
});

View File

@ -145,6 +145,7 @@ const handleOk = () => {
console.log(deleteId.value);
ShipmentApi.deleteOrder({ ids: [deleteId.value] }).then((res) => {
if (res.code === 200) {
resetPageList();
getList();
}
});