优化app界面

This commit is contained in:
think 2025-01-17 10:18:31 +08:00
parent a82995448c
commit 5d4872954e
7 changed files with 37 additions and 12 deletions

View File

@ -126,4 +126,7 @@ public class ProcessDesignRespVO {
@Schema(description = "项目状态") @Schema(description = "项目状态")
private Integer planStatus; private Integer planStatus;
@Schema(description = "图纸链接")
private String blueprintLink;
} }

View File

@ -132,4 +132,8 @@ public class ProcessDesignDO extends BaseDO {
@TableField(exist = false) @TableField(exist = false)
private Integer planStatus; private Integer planStatus;
@TableField(exist = false)
private String blueprintLink;
} }

View File

@ -33,7 +33,7 @@ public interface ProcessDesignMapper extends BaseMapperX<ProcessDesignDO> {
.select("b.blank_date as blankDate", "b.two_dim_date as twoDimDate", "b.three_dim_date as threeDimDate") .select("b.blank_date as blankDate", "b.two_dim_date as twoDimDate", "b.three_dim_date as threeDimDate")
.select("u3.nickname as blankOwnerName", "u4.nickname as twoDimOwnerName", "u5.nickname as threeDimOwnerName") .select("u3.nickname as blankOwnerName", "u4.nickname as twoDimOwnerName", "u5.nickname as threeDimOwnerName")
.select("c.name as projectSubName", "b.project_sub_code as projectSubCode") .select("c.name as projectSubName", "b.project_sub_code as projectSubCode")
.select("z.progress") .select("z.progress,z.blueprint_link as blueprintLink ")
.leftJoin(PlanDO.class, "a", PlanDO::getId, ProcessDesignDO::getPlanId) .leftJoin(PlanDO.class, "a", PlanDO::getId, ProcessDesignDO::getPlanId)
.leftJoin("project_plan_sub b on b.project_plan_id = t.plan_id and b.project_sub_id = t.project_sub_id") .leftJoin("project_plan_sub b on b.project_plan_id = t.plan_id and b.project_sub_id = t.project_sub_id")
.leftJoin(ProjectOrderSubDO.class, "c", ProjectOrderSubDO::getId, ProcessDesignDO::getProjectSubId) .leftJoin(ProjectOrderSubDO.class, "c", ProjectOrderSubDO::getId, ProcessDesignDO::getProjectSubId)
@ -44,7 +44,7 @@ public interface ProcessDesignMapper extends BaseMapperX<ProcessDesignDO> {
.leftJoin("system_users u3 on u3.id = b.blank_owner") .leftJoin("system_users u3 on u3.id = b.blank_owner")
.leftJoin("system_users u4 on u4.id = b.two_dim_owner") .leftJoin("system_users u4 on u4.id = b.two_dim_owner")
.leftJoin("system_users u5 on u5.id = b.three_dim_owner") .leftJoin("system_users u5 on u5.id = b.three_dim_owner")
.leftJoin("(select progress,process_design_id FROM pro_process_design_progress where id in (select max(id) FROM pro_process_design_progress GROUP BY process_design_id) ) z on z.process_design_id = t.id") .leftJoin("(select progress,process_design_id,blueprint_link FROM pro_process_design_progress where id in (select max(id) FROM pro_process_design_progress GROUP BY process_design_id) ) z on z.process_design_id = t.id")
.orderByDesc(ProcessDesignDO::getId) .orderByDesc(ProcessDesignDO::getId)
.disableSubLogicDel(); .disableSubLogicDel();
query.like(!StringUtils.isEmpty(reqVO.getPlanCode()), PlanDO::getPlanNo, reqVO.getPlanCode()) query.like(!StringUtils.isEmpty(reqVO.getPlanCode()), PlanDO::getPlanNo, reqVO.getPlanCode())

View File

@ -5,6 +5,7 @@ import { getListAPI, getDictAPI,postOperateAPIZF,updateBaoGong } from '@/service
import { useLoginStore } from '@/stores/modules/login' import { useLoginStore } from '@/stores/modules/login'
import { formatDate } from '@/utils/index' import { formatDate } from '@/utils/index'
import popup from './popup.vue'; import popup from './popup.vue';
import { nextTick } from 'vue';
const userStore = useLoginStore() const userStore = useLoginStore()
@ -15,6 +16,8 @@ const isFinish = ref(false)
// //
const isTriggered = ref(false) const isTriggered = ref(false)
const progress = ref(0) const progress = ref(0)
const imageLink = ref(0)
const selectedId = ref(null); // selectedId const selectedId = ref(null); // selectedId
// porps // porps
@ -126,8 +129,10 @@ onShow(async () => {
const handleDetail = (item) => { const handleDetail =async (item) => {
progress.value = 0; progress.value = 0;
imageLink.value = item.blueprintLink;
await nextTick(); // DOM
showPopup.value = true; showPopup.value = true;
selectedId.value = item.id; // selectedId selectedId.value = item.id; // selectedId
/* const url = `/pages/zjPgMaster/zjPgMaster-detail?id=${item.id}` /* const url = `/pages/zjPgMaster/zjPgMaster-detail?id=${item.id}`
@ -216,7 +221,7 @@ const onRefresherrefresh = async () => {
</view> </view>
</scroll-view> </scroll-view>
<!-- <popup :show="showPopup" :progress="0.0" :imageLink="''" @close="onPopupClose" /> --> <!-- <popup :show="showPopup" :progress="0.0" :imageLink="''" @close="onPopupClose" /> -->
<popup :showPopup="showPopup" :progress="progress" :imageLink="''" @close="onPopupClose" /> <popup :showPopup="showPopup" :progress="progress" :imageLink="imageLink" @close="onPopupClose" />
</view> </view>
</template> </template>

View File

@ -2,8 +2,10 @@
<view class="popup-container" v-if="showPopup"> <view class="popup-container" v-if="showPopup">
<view class="popup-mask" @click="onMaskClick"></view> <view class="popup-mask" @click="onMaskClick"></view>
<view class="popup-content"> <view class="popup-content">
<input type="number" class="progress-info" v-model="progress" placeholder="请输入进度"> <text class="popup-title">进度百分比%:</text>
<input type="text" class="image-info" v-model="imageLink" placeholder="请输入图片链接"> <input type="number" class="popup-input" v-model="progress" placeholder="请输入进度">
<view class="product-item">图纸链接</view>
<input type="text" class="popup-input" v-model="imageLink" placeholder="请输入图片链接">
<button @click="onClose">确认上报</button> <button @click="onClose">确认上报</button>
</view> </view>
</view> </view>
@ -16,11 +18,15 @@ const props = defineProps({
showPopup: { showPopup: {
type: Boolean, type: Boolean,
default: false default: false
} },
imageLink:{
type:String,
default:'123'
}
}); });
const progress = ref(0); const progress = ref(0);
const imageLink = ref(''); const imageLink = ref(0);
const emit = defineEmits(['close']); const emit = defineEmits(['close']);
@ -36,6 +42,10 @@ const onClose = () => {
</script> </script>
<style scoped> <style scoped>
.popup-title {
margin-bottom: 20px;
}
.popup-container { .popup-container {
position: fixed; position: fixed;
top: 0; top: 0;
@ -63,6 +73,8 @@ const onClose = () => {
padding: 20px; padding: 20px;
border-radius: 10px; border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
width: 300px;
height: 300px;
} }
.progress-info { .progress-info {

View File

@ -18,7 +18,7 @@ const props = defineProps<{
}>() }>()
const statusText = computed(() => { const statusText = computed(() => {
const text = props.orderState == '0' ? '检' : '查看' const text = props.orderState == '0' ? '检' : '查看'
return text return text
}) })
// //

View File

@ -178,7 +178,8 @@ const handleStop = async () => {
detailInfo.pgType == 1 ? '已完成' : '未完成' }}</view> detailInfo.pgType == 1 ? '已完成' : '未完成' }}</view>
<view class="product-item">子项目{{ detailInfo.projectSubCode || '' }} {{' ' + detailInfo.projectSubName }} <view class="product-item">子项目{{ detailInfo.projectSubCode || '' }} {{' ' + detailInfo.projectSubName }}
</view> </view>
<view class="product-item">模具名称{{detailInfo.mouldName}}</view> <view class="product-item">零件名称{{detailInfo.materialName}}</view>
<view class="product-item">图号{{ detailInfo.blueprintNo }}</view>
<view class="product-row"> <view class="product-row">
<view class="row-item"> <view class="row-item">
<view class="label">派工数量</view> <view class="label">派工数量</view>