From a0e47a942040bd0f3ad73d8115e3ad0eafccdf9d Mon Sep 17 00:00:00 2001
From: chenhaozhe <cgz@hz-kingdee.com>
Date: 星期日, 04 一月 2026 16:52:00 +0800
Subject: [PATCH] 新增 器具点检记录单 器具维护记录单 在库检验单列表
---
pages/MJGL/Sb_EquipDotCheckBill/Sb_EquipDotCheckBill.vue | 19 ++
pages/index/tab3.vue | 15 +
pages.json | 21 ++
pages/MJGL/Sb_EquipMaintainBill/Sb_EquipMaintainBill.vue | 19 ++
pages/index/tab4.vue | 16 +
pages/ZLGL/zaikujianyandan/InStockCheckBillList.vue | 331 +++++++++++++++++++++++++++++++++++++++++
6 files changed, 419 insertions(+), 2 deletions(-)
diff --git a/pages.json b/pages.json
index 0f5c9a6..494b3e2 100644
--- a/pages.json
+++ b/pages.json
@@ -1397,6 +1397,27 @@
{
"navigationBarTitleText" : "鍦ㄥ簱妫�楠屽崟"
}
+ },
+ {
+ "path" : "pages/MJGL/Sb_EquipMaintainBill/Sb_EquipMaintainBill",
+ "style" :
+ {
+ "navigationBarTitleText" : "璁惧淇濆吇璁板綍鍗�"
+ }
+ },
+ {
+ "path" : "pages/MJGL/Sb_EquipDotCheckBill/Sb_EquipDotCheckBill",
+ "style" :
+ {
+ "navigationBarTitleText" : "璁惧鐐规璁板綍鍗�"
+ }
+ },
+ {
+ "path" : "pages/ZLGL/zaikujianyandan/InStockCheckBillList",
+ "style" :
+ {
+ "navigationBarTitleText" : "鍦ㄥ簱妫�楠屽崟鍒楄〃"
+ }
}
],
diff --git a/pages/MJGL/Sb_EquipDotCheckBill/Sb_EquipDotCheckBill.vue b/pages/MJGL/Sb_EquipDotCheckBill/Sb_EquipDotCheckBill.vue
new file mode 100644
index 0000000..492629a
--- /dev/null
+++ b/pages/MJGL/Sb_EquipDotCheckBill/Sb_EquipDotCheckBill.vue
@@ -0,0 +1,19 @@
+<template>
+ <view>
+
+ </view>
+</template>
+
+<script>
+ export default {
+ data() {
+ return {
+
+ };
+ }
+ }
+</script>
+
+<style lang="scss">
+
+</style>
diff --git a/pages/MJGL/Sb_EquipMaintainBill/Sb_EquipMaintainBill.vue b/pages/MJGL/Sb_EquipMaintainBill/Sb_EquipMaintainBill.vue
new file mode 100644
index 0000000..492629a
--- /dev/null
+++ b/pages/MJGL/Sb_EquipMaintainBill/Sb_EquipMaintainBill.vue
@@ -0,0 +1,19 @@
+<template>
+ <view>
+
+ </view>
+</template>
+
+<script>
+ export default {
+ data() {
+ return {
+
+ };
+ }
+ }
+</script>
+
+<style lang="scss">
+
+</style>
diff --git a/pages/ZLGL/zaikujianyandan/InStockCheckBillList.vue b/pages/ZLGL/zaikujianyandan/InStockCheckBillList.vue
new file mode 100644
index 0000000..ecbf1e5
--- /dev/null
+++ b/pages/ZLGL/zaikujianyandan/InStockCheckBillList.vue
@@ -0,0 +1,331 @@
+<template>
+ <view>
+ <view class="header" id="list_header">
+ <view class="form">
+ <view class="form-item">
+ <view class="title">鍗曟嵁鍙�:</view>
+ <view class="right">
+ <input name="HBillNo" v-model="hform.HBillNo" placeholder="璇疯緭鍏ュ崟鎹彿" />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">寮�濮嬫椂闂�:</view>
+ <view class="right">
+ <picker mode="date" :value="hform.HBeginDate" @change="HBeginDateChange">
+ <view class="picker-overlay"></view>
+ <input name="HBeginDate" disabled :value="hform.HBeginDate" placeholder="璇烽�夋嫨" />
+ </picker>
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">缁撴潫鏃堕棿:</view>
+ <view class="right">
+ <picker mode="date" :value="hform.HEndDate" @change="HEndDateChange">
+ <view class="picker-overlay"></view>
+ <input name="HEndDate" disabled :value="hform.HEndDate" placeholder="璇烽�夋嫨" />
+ </picker>
+ </view>
+ </view>
+ </view>
+ <view class="buttons">
+ <button class="btn-a" size="mini" type="default" @tap="clear">閲嶇疆</button>
+ <button class="btn-b" size="mini" type="default" @tap="creat">鏂板</button>
+ <button class="btn-c" size="mini" type="default" @tap="search">鏌ヨ</button>
+ </view>
+ </view>
+ <scroll-view scroll-y="true" @scroll="scrollHandler" :scroll-top="contentScrollTop"
+ :style="{height: calcHeight + 'px'}" class="content">
+ <view class="over" v-if="billList.length == 0">
+ 鏆傛棤鏁版嵁
+ </view>
+
+ <view v-else class="list" v-for="(item,index) in billList" :key="index">
+ <uni-card style="margin: 10px;">
+ <view class="card-detail">
+ <view class="detail">
+ <text>鍗曟嵁鍙凤細</text>{{item["鍗曟嵁鍙�"]}}
+ </view>
+ <view class="detail">
+ <text>鐗╂枡浠g爜锛�</text>{{item["鐗╂枡浠g爜"]}}
+ </view>
+ <view class="detail">
+ <text>鐗╂枡鍚嶇О锛�</text>{{item["鐗╂枡鍚嶇О"]}}
+ </view>
+ <view class="detail">
+ <text>瑙勬牸鍨嬪彿锛�</text>{{item["瑙勬牸鍨嬪彿"]}}
+ </view>
+ <view class="detail">
+ <text>璁¢噺鍗曚綅锛�</text>{{item["璁¢噺鍗曚綅"]}}
+ </view>
+ <view class="detail">
+ <text>鍚堟牸鏁伴噺锛�</text>{{item["鍚堟牸鏁伴噺"]}}
+ </view>
+ <view class="detail">
+ <text>涓嶅悎鏍兼暟閲忥細</text>{{item["涓嶅悎鏍兼暟閲�"]}}
+ </view>
+ </view>
+ </uni-card>
+ </view>
+ </scroll-view>
+ <uni-pagination id="pagination" v-model="curPage" :pageSize="size" :total="length"></uni-pagination>
+ </view>
+</template>
+
+<script>
+ import dayjs from 'dayjs';
+ import {
+ CommonUtils
+ } from '../../../utils/common';
+ import {
+ getUserInfo
+ } from '../../../utils/auth';
+
+ export default {
+ name: "InStockCheckBillList",
+ data() {
+ return {
+ contentScrollTop: 0,
+ contentScrollTopOld: 0,
+ headerHeight: 0,
+ paginationHeight: 0,
+
+ curPage: 1,
+ size: 50,
+ length: 0,
+
+ hform: {
+ HBillNo: "",
+ HBeginDate: dayjs(new Date()).subtract(30, "d").format("YYYY-MM-DD"),
+ HEndDate: dayjs(new Date()).format("YYYY-MM-DD")
+ },
+
+ billList: [],
+ };
+ },
+ computed: {
+ calcHeight: {
+ get() {
+ console.log('this.paginationHeight - this.headerHeight: ', this.paginationHeight - this
+ .headerHeight);
+ return this.paginationHeight - this.headerHeight
+ }
+ }
+ },
+ onLoad() {
+ this.getDisplayPage()
+ },
+ onReady() {
+ this.getScrollHeight()
+ },
+ methods: {
+ getScrollHeight() {
+ const query = uni.createSelectorQuery().in(this)
+ query
+ .select("#list_header")
+ .boundingClientRect()
+ .select("#pagination")
+ .boundingClientRect()
+ .exec(res => {
+ this.headerHeight = Math.ceil(res[0].bottom)
+ this.paginationHeight = Math.floor(res[1].top)
+ })
+
+ },
+ scrollToTop() {
+ this.contentScrollTop = this.contentScrollTopOld;
+ this.$nextTick(() => {
+ this.contentScrollTop = 0
+ });
+ },
+ scrollHandler(e) {
+ this.contentScrollTopOld = e.detail.scrollTop
+ },
+ creat() {
+ uni.navigateTo({
+ url: "/pages/ZLGL/zaikujianyandan/InStockCheckBill?operationType=1"
+ })
+ },
+ search() {
+ getDisplayPage()
+ },
+ clear() {
+ this.hform.HBillNo = ""
+ this.hform.HBeginDate = dayjs(new Date()).subtract(7, 'd').format("YYYY-MM-DD")
+ this.hform.HEndDate = dayjs(new Date()).format("YYYY-MM-DD")
+ },
+ async getDisplayPage() {
+ let sWhere = ` and 鏃ユ湡
+ BETWEEN CAST('${this.hform.HBeginDate}' AS DATE)
+ AND CAST('${this.hform.HEndDate}' AS DATE)
+ `
+ if(this.hform.HBillNo){
+ sWhere += ` and 鍗曟嵁鍙� like '${this.hform.HBillNo}'`
+ }
+ try {
+ let res = await CommonUtils.doRequest2Async({
+ url: 'QC_InStockCheckBillController/getListPage',
+ data: {
+ sWhere: sWhere,
+ user: getUserInfo()['Czymc'],
+ page: this.curPage,
+ size: this.size
+ }
+ })
+
+ let {
+ count,
+ data,
+ Message
+ } = res.data
+ if (count >= 0) {
+ console.log('data: ',data);
+ this.length = count
+ this.billList = data
+ } else {
+ CommonUtils.showTips({
+ title: '娓╅Θ鎻愮ず',
+ message: '鑾峰彇鍦ㄥ簱妫�楠屽崟澶辫触: ' + Message
+ })
+ }
+ } catch (err) {
+ CommonUtils.showTips({
+ title: '娓╅Θ鎻愮ず',
+ message: '鑾峰彇鍦ㄥ簱妫�楠屽崟澶辫触: ' + err
+ })
+ }
+
+ }
+ }
+ }
+</script>
+
+<style lang="scss">
+ .header {
+ padding: 20rpx 20rpx;
+ }
+
+ .form {
+ width: 640rpx;
+ }
+
+ .form-item {
+ display: flex;
+ align-items: center;
+ font-size: 28rpx;
+ padding: 6rpx 0;
+
+ .title {
+ width: 180rpx;
+
+ text {
+ color: red;
+ font-weight: bold;
+ }
+ }
+
+ .right {
+ width: 450rpx;
+ border-radius: 22rpx;
+ border: 1px solid #acacac;
+ position: relative;
+ }
+
+ .righton {
+ width: 450rpx;
+ border-radius: 22rpx;
+ border: 1px solid #e4e4e4;
+ background-color: #e4e4e4;
+ }
+
+ input {
+ width: 100%;
+ padding: 8rpx 20rpx;
+ font-size: 30rpx;
+ }
+ }
+
+ .buttons {
+ width: 100%;
+ display: flex;
+ justify-content: center;
+ padding-top: 20rpx;
+
+ button {
+ border-radius: 50rpx;
+ width: 180rpx;
+ height: 66rpx;
+ line-height: 66rpx;
+ font-size: 28rpx;
+ }
+
+ .btn-a {
+ background-color: #acacac;
+ color: #fff;
+ }
+
+ .btn-b {
+ background-color: #41a863;
+ color: #fff;
+ }
+
+ .btn-c {
+ background-color: #3a78ff;
+ color: #fff;
+ }
+ }
+
+ #pagination {
+ position: fixed;
+ bottom: 0;
+ width: 100%;
+ padding: 20rpx 0;
+ }
+
+ .list {
+ width: 100%;
+
+ .card-detail {
+ width: 100%;
+ display: flex;
+ flex-wrap: wrap;
+ justify-content: space-between;
+ align-items: center;
+ line-height: 120%;
+ gap: 10rpx 0;
+
+ input {
+ font-size: 26rpx;
+ }
+
+ .detail {
+ // width: 50%;
+ box-sizing: border-box;
+ font-size: 26rpx;
+ color: #555;
+ padding-right: 20rpx;
+
+ text {
+ color: #999;
+ font-size: 26rpx;
+ }
+ }
+
+ .editable {
+ width: 50%;
+ display: inline-flex;
+ flex-direction: row;
+ align-items: center;
+
+ text {
+ flex-shrink: 0;
+ }
+
+ .sampleDestory {
+ border: 1px solid #acacac;
+ border-radius: 5rpx;
+ padding: 0 12rpx;
+ }
+ }
+ }
+ }
+</style>
\ No newline at end of file
diff --git a/pages/index/tab3.vue b/pages/index/tab3.vue
index c75f8e6..e8104b7 100644
--- a/pages/index/tab3.vue
+++ b/pages/index/tab3.vue
@@ -138,7 +138,20 @@
"id": 51,
"hidden": false
},
-
+ {
+ "img": "../../static/icon/icon8.png",
+ "text": "璁惧淇濆吇璁板綍鍗�",
+ "url": "/pages/MJGL/Sb_EquipMaintainBill/Sb_EquipMaintainBill",
+ "id": 53,
+ "hidden": false
+ },
+ {
+ "img": "../../static/icon/icon8.png",
+ "text": "璁惧鐐规璁板綍鍗�",
+ "url": "/pages/MJGL/Sb_EquipDotCheckBill/Sb_EquipDotCheckBill",
+ "id": 55,
+ "hidden": false
+ }
]
}
},
diff --git a/pages/index/tab4.vue b/pages/index/tab4.vue
index 2e86cc1..3a3aa85 100644
--- a/pages/index/tab4.vue
+++ b/pages/index/tab4.vue
@@ -134,7 +134,21 @@
"url": "/pages/ZLGL/QualityReportStep/QualityReportStepBillList",
"id": 55,
"hidden": false
- }
+ },
+ {
+ "img": "../../static/icon/icon8.png",
+ "text": "鍦ㄥ簱妫�楠屽崟",
+ "url": "/pages/ZLGL/zaikujianyandan/InStockCheckBill",
+ "id": 57,
+ "hidden": false
+ },
+ {
+ "img": "../../static/icon/icon8.png",
+ "text": "鍦ㄥ簱妫�楠屽崟缂撳瓨",
+ "url": "/pages/ZLGL/zaikujianyandan/InStockCheckBillList",
+ "id": 57,
+ "hidden": false
+ }
]
}
--
Gitblit v1.9.1