App-Android(使用App+htnl5框架,解决消息推送兼容SignalR问题)
loulijun2021
2022-09-30 c5f75a251681efff2adc43dfec502b0820de033b
1.维修验证静态页面开发实现
已修改14个文件
已添加6个文件
2124 ■■■■ 文件已修改
css/global.css 21 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/sbgl/dqby.html 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/sbgl/rcdj.html 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/sbgl/sbwx.html 164 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/sbgl/sbwx_back.html 466 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/sbgl/wxsq.html 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/sbgl/wxyz.html 434 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/test/test1.html 22 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
unpackage/cache/wgt/H5EDA0853/css/global.css 21 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
unpackage/cache/wgt/H5EDA0853/pages/sbgl/dqby.html 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
unpackage/cache/wgt/H5EDA0853/pages/sbgl/rcdj.html 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
unpackage/cache/wgt/H5EDA0853/pages/sbgl/sbwx.html 166 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
unpackage/cache/wgt/H5EDA0853/pages/sbgl/sbwx_back.html 466 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
unpackage/cache/wgt/H5EDA0853/pages/sbgl/wxsq.html 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
unpackage/cache/wgt/H5EDA0853/pages/sbgl/wxyz.html 316 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
unpackage/cache/wgt/H5EDA0853/pages/test/test1.html 22 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
unpackage/release/apk/H5EDA0853__20220930082047.apk 补丁 | 查看 | 原始文档 | blame | 历史
unpackage/release/apk/H5EDA0853__20220930082604.apk 补丁 | 查看 | 原始文档 | blame | 历史
unpackage/release/apk/H5EDA0853__20220930082730.apk 补丁 | 查看 | 原始文档 | blame | 历史
unpackage/release/apk/H5EDA0853__20220930141808.apk 补丁 | 查看 | 原始文档 | blame | 历史
css/global.css
@@ -113,6 +113,12 @@
    align-items: center;
}
.flex_center_center {
    display: flex;
    align-items: center;
    justify-content: center;
}
.center_title {
    font-weight: bolder;
}
@@ -161,3 +167,18 @@
    margin: auto;
    color: #000ccc;
}
.van-cell{
    padding: 0;
    font-size: 16px;
    line-height:21px;
    position:unset;
}
.van-cell__title{
    margin-left: 20px;
}
.cellDiv{
    margin-left: 20px;
}
pages/sbgl/dqby.html
@@ -179,7 +179,7 @@
        <div id="app">
            <div class="body">
                <van-sticky>
                <van-nav-bar title="定期保养" @click-right="onClickRight" left-arrow @click-left="onClickleft">
                    <template #right>
                        <van-popover style="" placement="bottom-end" :offset="[13,8]" v-model="showPopover"
@@ -190,7 +190,7 @@
                        </van-popover>
                    </template>
                </van-nav-bar>
                </van-sticky>
                <div v-if="topContent.length===0">
                    <div class="sacnBody">
pages/sbgl/rcdj.html
@@ -166,7 +166,7 @@
        <div id="app">
            <div class="body">
                <van-sticky>
                <van-nav-bar title="日常点检" @click-right="onClickRight" left-arrow @click-left="onClickleft">
                    <template #right>
                        <van-popover style="" placement="bottom-end" :offset="[13,8]" v-model="showPopover"
@@ -177,7 +177,7 @@
                        </van-popover>
                    </template>
                </van-nav-bar>
                </van-sticky>
                <div v-if="topContent.length===0">
                    <div class="sacnBody">
pages/sbgl/sbwx.html
@@ -26,6 +26,29 @@
        <script type="text/javascript">
            var topContent = [{
                    wxsqd: 'SB00990001',
                    code: 'SB001',
                    name: '齿轮箱组',
                    wksp_code: "CJ002",
                    wksp_name: '装配车间',
                    eqpchkmain_code: "djbz002",
                    sqry: '佩罗西',
                    sqsj: '2022-09-20 15:20:30',
                    gzly: '设备点检',
                    gzms: '精工车间注塑机一号开不不精工车间注塑机一号开不',
                },
                {
                    wxsqd: 'SB00990002',
                    code: 'SB002',
                    name: '齿轮箱组',
                    wksp_code: "CJ002",
                    wksp_name: '装配车间',
                    eqpchkmain_code: "djbz002",
                    sqry: '佩罗西',
                    sqsj: '2022-09-20 15:20:30',
                    gzly: '设备点检',
                    gzms: '精工车间注塑机一号开不',
                }, {
                    wxsqd: 'SB00990003',
                    code: 'SB003',
                    name: '齿轮箱组',
                    wksp_code: "CJ002",
@@ -37,29 +60,6 @@
                    gzms: '精工车间注塑机一号开不',
                },
                {
                    wxsqd: 'SB00990002',
                    code: 'SB001',
                    name: '齿轮箱组',
                    wksp_code: "CJ002",
                    wksp_name: '装配车间',
                    eqpchkmain_code: "djbz002",
                    sqry: '佩罗西',
                    sqsj: '2022-09-20 15:20:30',
                    gzly: '设备点检',
                    gzms: '精工车间注塑机一号开不了',
                }, {
                    wxsqd: 'SB00990003',
                    code: 'SB002',
                    name: '齿轮箱组',
                    wksp_code: "CJ002",
                    wksp_name: '装配车间',
                    eqpchkmain_code: "djbz002",
                    sqry: '佩罗西',
                    sqsj: '2022-09-20 15:20:30',
                    gzly: '设备点检',
                    gzms: '精工车间注塑机一号开不了',
                },
                {
                    wxsqd: 'SB00990004',
                    code: 'SB004',
                    name: '齿轮箱组',
@@ -69,7 +69,7 @@
                    sqry: '佩罗西',
                    sqsj: '2022-09-20 15:20:30',
                    gzly: '设备点检',
                    gzms: '精工车间注塑机一号开不了',
                    gzms: '精工车间注塑机一号开不',
                },
            ];
@@ -83,7 +83,31 @@
            // æ‰«æç»´ä¿®å·¥ä½è¿”回时执行方法
            function scaned(r) {
                radioValue = r
                // åŠ ä¸ªæç¤ºæ¡†æç¤ºä¸€ä¸‹æˆ–è€…è¿‡æ»¤å‡ºå½“æ¡çš„è®°å½•
                let temp = {}
                let flag = false
                topContent.forEach((item, index) => {
                    if (item.code === radioValue) {
                        temp = item
                        topContent.splice(index, 1)
                        flag = true
                    }
                })
                if (flag) {
                    topContent.unshift(temp)
                } else {
                    vant.Notify({
                        type: 'danger',
                        message: '所扫二维码围在列表中!'
                    })
                    if (topContent.length > 0) {
                        radioValue = topContent[0].code
                    }
                }
                number.push({
                    id: '1'
                })
@@ -96,6 +120,7 @@
            <div class="body">
                <van-sticky>
                <van-nav-bar title="设备维修" @click-right="onClickRight" left-arrow @click-left="onClickleft">
                    <template #right>
                        <van-popover style="" placement="bottom-end" :offset="[13,8]" v-model="showPopover"
@@ -106,7 +131,7 @@
                        </van-popover>
                    </template>
                </van-nav-bar>
                </van-sticky>
                <div class="head" style="height: 240px; overflow: scroll;">
                    <div class="head_block">
@@ -123,54 +148,32 @@
                    </div>
                    <div class="flex_between">
                        <div style="width: 100%;margin-top: 10px;">
                            <div v-for="item in topContent" :key="item.code"
                                style="margin-bottom: 10px;line-height:20px;margin-left: 20px;"
                    <van-radio-group v-model="radioValue">
                        <van-cell-group>
                            <div style="margin: 10px 0;" v-for="(item,index) in topContent" :key="item.code"
                                @click="topContentClcik(item.code)">
                                <div style="display: flex;align-items: center;">
                                    <div style="text-align: right;">
                                        <div>维修申请单:</div>
                                        <div>工位编码:</div>
                                        <div>工位名称:</div>
                                        <div>生产车间:</div>
                                        <div>申请人员:</div>
                                        <div>申请时间:</div>
                                        <div>故障来源:</div>
                                        <!-- <div>故障描述:</div> -->
                                    </div>
                                    <div>
                                        <div>{{item.wxsqd}}</div>
                                        <div>{{item.code}}</div>
                                        <div>{{item.name}}</div>
                                        <div>{{item.wksp_name}}</div>
                                        <div>{{item.sqry}}</div>
                                        <div>{{item.sqsj}}</div>
                                        <div>{{item.gzly}}</div>
                                        <!-- <div style="width: 200px;" class="textEllipsis">{{item.gzms}}</div> -->
                                    </div>
                                </div>
                                <div style="display: flex;">
                                    <div style="margin-left: 16px;">故障描述:</div>
                                    <div style="width: 180px;">{{item.gzms}}</div>
                                </div>
                                <div class="cellDiv">维修申请单:{{item.wxsqd}}</div>
                                <div class="cellDiv">工位编码:{{item.code}}</div>
                                <div class="cellDiv">工位名称:{{item.name}}</div>
                                <div class="cellDiv">生产车间:{{item.wksp_name}}</div>
                                <van-cell :title="'申请人员:'+item.sqry">
                                    <template #right-icon>
                                        <van-radio style="margin-right: 10px;" checked-color='red' :name="item.code" />
                                    </template>
                                </van-cell>
                                <div class="cellDiv">申请时间:{{item.sqsj}}</div>
                                <div class="cellDiv">故障来源:{{item.gzly}}</div>
                                <div class="cellDiv">故障描述:{{item.gzms}}</div>
                            </div>
                        </div>
                        <div>
                            <van-radio-group v-model="radioValue" style="padding-right: 12px;">
                                <van-radio checked-color='red' icon-size="18px" @click="topContentClcik(item.code)"
                                    style="height: 160px;margin-bottom: 10px;" v-for="item in topContent"
                                    :key="item.code" :name="item.code"></van-radio>
                        </van-cell-group>
                            </van-radio-group>
                        </div>
                    </div>
                </div>
                <div style="height: 330px;overflow: scroll;">
                <div style="height: 340px;overflow: scroll;">
                    <div class="head"
                        style="margin-bottom: 10px;padding-bottom: 10px;">
                    <div class="head" style="margin-bottom: 10px;padding-bottom: 10px;">
                        <div class="head_block" style="margin-bottom:10px;">
                            <div class="head_left">
                                <div class="head_bar"></div>
@@ -215,8 +218,7 @@
                        </div>
                    </div>
                    <div class="head" v-if="isStop==='N'"
                        style="margin-bottom: 10px;padding-bottom: 10px;">
                    <div class="head" v-if="isStop==='N'" style="margin-bottom: 10px;padding-bottom: 10px;">
                        <div class="head_block" style="margin-bottom:10px;">
                            <div class="head_left">
                                <div class="head_bar"></div>
@@ -232,8 +234,7 @@
                        </div>
                    </div>
                    <div class="head" v-if="isStop==='N'"
                        style="margin-bottom: 10px;padding-bottom: 10px;">
                    <div class="head" v-if="isStop==='N'" style="margin-bottom: 10px;padding-bottom: 10px;">
                        <div class="head_block" style="margin-bottom:10px;">
                            <div class="head_left">
                                <div class="head_bar"></div>
@@ -259,11 +260,16 @@
                    <div class="footer" style="min-height:50px;">
                        <div
                            style="position:fixed;bottom: 0;width: 96%;display: flex;justify-content: center;flex-direction: column;align-items: center">
                        <!-- disabled æŽ§åˆ¶å†ç ”究一下 -->
                            <van-button
                            :disabled="(isStop==='Y'&&messageDescr.trim().toString().length===0)||(isStop==='N'||messageContent.trim().toString().length===0||messageDescr.trim().toString().length===0)"
                            <van-button v-show="isStop==='Y'" :disabled="messageDescr.trim().toString().length===0"
                            class="vanButtonInfo" @click="submit" type="info">
                                ç¡®è®¤æäº¤</van-button>
                                ç¡®è®¤æäº¤1</van-button>
                            <van-button v-show="isStop==='N'"
                                :disabled="messageDescr.trim().toString().length===0||messageContent.trim().toString().length===0"
                                class="vanButtonInfo" @click="submit" type="info">
                                ç¡®è®¤æäº¤2</van-button>
                        </div>
                    </div>
@@ -338,14 +344,18 @@
                },
            },
            created() {},
            mounted() {},
            mounted() {
                console.log(this.$refs.item0)
                // console.log(this.$refs.item0.$el.offsetHeight)
            },
            methods: {
                afterRead2(file) {
                },
                isStopClick(val) {
                    this.isStop = val
                    console.log(this.messageContent.trim().toString().length===0&&this.messageDescr.trim().toString().length===0)
                    console.log(this.messageContent.trim().toString().length === 0 && this.messageDescr.trim()
                        .toString().length === 0)
                    this.$forceUpdate()
                },
                onOversize(file) {
pages/sbgl/sbwx_back.html
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,466 @@
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
        <meta name="HandheldFriendly" content="true" />
        <meta name="MobileOptimized" content="320" />
        <title>新凯迪制造云平台</title>
        <!-- å¼•入样式文件 -->
        <link rel="stylesheet" href="../../css/vant.css" />
        <!-- å¼•å…¥ Vue å’Œ Vant çš„ JS æ–‡ä»¶ -->
        <script src="../../js/vue.min.js"></script>
        <script src="../../js/vant.min.js"></script>
        <script type="text/javascript" src="../../js/jquery-1.6.4.min.js"></script>
        <script type="text/javascript" src="../../js/axios.min.js"></script>
        <script type="text/javascript" src="../../js/http.js"></script>
        <script type="text/javascript" src="../../js/common.js"></script>
        <script type="text/javascript" src="../../js/global.js"></script>
        <!-- <link rel="stylesheet" href="../../css/global.css" type="text/css" charset="utf-8" /> -->
        <script type="text/javascript">
            var topContent = [{
                    wxsqd: 'SB00990001',
                    code: 'SB001',
                    name: '齿轮箱组',
                    wksp_code: "CJ002",
                    wksp_name: '装配车间',
                    eqpchkmain_code: "djbz002",
                    sqry: '佩罗西',
                    sqsj: '2022-09-20 15:20:30',
                    gzly: '设备点检',
                    gzms: '精工车间注塑机一号开不',
                },
                {
                    wxsqd: 'SB00990002',
                    code: 'SB002',
                    name: '齿轮箱组',
                    wksp_code: "CJ002",
                    wksp_name: '装配车间',
                    eqpchkmain_code: "djbz002",
                    sqry: '佩罗西',
                    sqsj: '2022-09-20 15:20:30',
                    gzly: '设备点检',
                    gzms: '精工车间注塑机一号开不',
                }, {
                    wxsqd: 'SB00990003',
                    code: 'SB003',
                    name: '齿轮箱组',
                    wksp_code: "CJ002",
                    wksp_name: '装配车间',
                    eqpchkmain_code: "djbz002",
                    sqry: '佩罗西',
                    sqsj: '2022-09-20 15:20:30',
                    gzly: '设备点检',
                    gzms: '精工车间注塑机一号开不',
                },
                {
                    wxsqd: 'SB00990004',
                    code: 'SB004',
                    name: '齿轮箱组',
                    wksp_code: "CJ002",
                    wksp_name: '装配车间',
                    eqpchkmain_code: "djbz002",
                    sqry: '佩罗西',
                    sqsj: '2022-09-20 15:20:30',
                    gzly: '设备点检',
                    gzms: '精工车间注塑机一号开不',
                },
            ];
            let radioValue = '' //单选框选中的项
            let number = [] //假数组   åšæ‰«ç å›žæ¥è§†å›¾æ›´æ–°ç”¨
            // æ‰«æç»´ä¿®å·¥ä½è¿”回时执行方法
            function scaned(r) {
                radioValue = r
                let temp = {}
                let flag = false
                topContent.forEach((item, index) => {
                    if (item.code === radioValue) {
                        temp = item
                        topContent.splice(index, 1)
                        flag = true
                    }
                })
                if (flag) {
                    topContent.unshift(temp)
                } else {
                    vant.Notify({
                        type: 'danger',
                        message: '所扫二维码围在列表中!'
                    })
                    if (topContent.length > 0) {
                        radioValue = topContent[0].code
                    }
                }
                number.push({
                    id: '1'
                })
            }
        </script>
    </head>
    <!-- <body onload="loadNodes()"> -->
    <body>
        <div id="app">
            <div class="body">
                <van-sticky>
                    <van-nav-bar title="设备维修" @click-right="onClickRight" left-arrow @click-left="onClickleft">
                        <template #right>
                            <van-popover style="" placement="bottom-end" :offset="[13,8]" v-model="showPopover"
                                trigger="click" :actions="actions" @select="onSelect">
                                <template #reference>
                                    <van-icon name="bars" size='20' color='#fff' />
                                </template>
                            </van-popover>
                        </template>
                    </van-nav-bar>
                </van-sticky>
                <div class="head" style="height: 240px; overflow: scroll;">
                    <div class="head_block">
                        <div class="head_left">
                            <div class="head_bar"></div>
                            <div class="head_title">
                                æ‰«æç»´ä¿®å·¥ä½
                            </div>
                        </div>
                        <div style="margin-right: 10px;">
                            <van-icon name="scan" color='red' size='24' @click='topScanClick()' />
                        </div>
                    </div>
                    <div class="flex_between">
                        <div style="width: 100%;margin-top: 10px;">
                            <div v-for="(item,index) in topContent" :key="item.code"
                                style="margin-bottom: 10px;line-height:20px;margin-left: 20px;"
                                @click="topContentClcik(item.code)">
                                <div :ref="'item'+index" style="display: flex;align-items: center;">
                                    <div style="text-align: right;">
                                        <div>维修申请单:</div>
                                        <div>工位编码:</div>
                                        <div>工位名称:</div>
                                        <div>生产车间:</div>
                                        <div>申请人员:</div>
                                        <div>申请时间:</div>
                                        <div>故障来源:</div>
                                        <!-- <div>故障描述:</div> -->
                                    </div>
                                    <div>
                                        <div>{{item.wxsqd}}</div>
                                        <div>{{item.code}}</div>
                                        <div>{{item.name}}</div>
                                        <div>{{item.wksp_name}}</div>
                                        <div>{{item.sqry}}</div>
                                        <div>{{item.sqsj}}</div>
                                        <div>{{item.gzly}}</div>
                                        <!-- <div style="width: 200px;" class="textEllipsis">{{item.gzms}}</div> -->
                                    </div>
                                </div>
                                <div style="display: flex;">
                                    <div style="margin-left: 16px;">故障描述:</div>
                                    <div style="width: 180px;">{{item.gzms}}</div>
                                </div>
                            </div>
                        </div>
                        <div>
                            <van-radio-group v-model="radioValue" style="padding-right: 12px;">
                                <van-radio checked-color='red' icon-size="18px" @click="topContentClcik(item.code)"
                                    style="height: 160px;margin-bottom: 10px;" v-for="item in topContent"
                                    :key="item.code" :name="item.code"></van-radio>
                            </van-radio-group>
                        </div>
                    </div>
                </div>
                <div style="height: 340px;overflow: scroll;">
                    <div class="head" style="margin-bottom: 10px;padding-bottom: 10px;">
                        <div class="head_block" style="margin-bottom:10px;">
                            <div class="head_left">
                                <div class="head_bar"></div>
                                <div class="head_title">
                                    æ•…障描述
                                </div>
                            </div>
                        </div>
                        <div style="display:flex;flex-direction: column;width: 96%;margin: auto;">
                            <van-field class="vanFieldInputArea" v-model="messageDescr" rows="2" autosize
                                type="textarea" placeholder="请输入" />
                        </div>
                        <div style="width: 96%;margin: auto;margin-top: 10px;">
                            <van-uploader @oversize="onOversize" :before-read="beforeRead" v-model="fileList"
                                :after-read="afterRead" multiple :max-count="3" />
                        </div>
                    </div>
                    <div class="head" style="margin-bottom: 10px;padding-bottom: 10px;">
                        <div class="head_block">
                            <div class="head_left">
                                <div class="head_bar"></div>
                                <div class="head_title">
                                    åœæœºç»´ä¿®
                                </div>
                            </div>
                            <div style="margin-right: 10px;">
                                <div class="flex_center"
                                    style="width: 100%;display: flex;justify-content: space-around;">
                                    <van-button class="buttonSmall" size="small" :plain="isStop!=='Y'"
                                        style="margin-right: 10px;" @click="isStopClick('Y')" type="primary">
                                        æ˜¯</van-button>
                                    <van-button class="buttonSmall" size="small" :plain="isStop!=='N'"
                                        @click="isStopClick('N')" type="danger">否</van-button>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="head" v-if="isStop==='N'" style="margin-bottom: 10px;padding-bottom: 10px;">
                        <div class="head_block" style="margin-bottom:10px;">
                            <div class="head_left">
                                <div class="head_bar"></div>
                                <div class="head_title">
                                    ç»´ä¿®å†…容
                                </div>
                            </div>
                        </div>
                        <div style="display:flex;flex-direction: column;width: 96%;margin: auto;">
                            <van-field class="vanFieldInputArea" v-model="messageContent" rows="2" autosize
                                type="textarea" placeholder="请输入" />
                        </div>
                    </div>
                    <div class="head" v-if="isStop==='N'" style="margin-bottom: 10px;padding-bottom: 10px;">
                        <div class="head_block" style="margin-bottom:10px;">
                            <div class="head_left">
                                <div class="head_bar"></div>
                                <div class="head_title">
                                    æ›´æ¢å¤‡ä»¶
                                </div>
                            </div>
                        </div>
                        <div style="display:flex;flex-direction: column;width: 96%;margin: auto;">
                            <van-field class="vanFieldInputArea" v-model="messageDescr2" rows="2" autosize
                                type="textarea" placeholder="请输入" />
                        </div>
                        <div style="width: 96%;margin: auto;margin-top: 10px;">
                            <van-uploader :before-read="beforeRead" v-model="fileList2" :after-read="afterRead2"
                                multiple :max-count="3" />
                        </div>
                    </div>
                    <div class="footer" style="min-height:50px;">
                        <div
                            style="position:fixed;bottom: 0;width: 96%;display: flex;justify-content: center;flex-direction: column;align-items: center">
                            <van-button v-show="isStop==='Y'" :disabled="messageDescr.trim().toString().length===0"
                                class="vanButtonInfo" @click="submit" type="info">
                                ç¡®è®¤æäº¤1</van-button>
                            <van-button v-show="isStop==='N'"
                                :disabled="messageDescr.trim().toString().length===0||messageContent.trim().toString().length===0"
                                class="vanButtonInfo" @click="submit" type="info">
                                ç¡®è®¤æäº¤2</van-button>
                        </div>
                    </div>
                </div>
            </div>
            <van-overlay :show="overlayShow" @click="overlayShow=false" />
        </div>
    </body>
    <script>
        var app = new Vue({
            el: '#app',
            data: function() {
                return {
                    overlayShow: false,
                    showPopover: false,
                    actions: [{
                        icon: 'description',
                        text: '操作指导'
                    }, {
                        icon: 'award-o',
                        text: '成品追溯'
                    }, {
                        icon: 'revoke',
                        text: '退出登录'
                    }],
                    topContent2: topContent,
                    messageDescr: '', //故障描述  å¿…å¡«
                    fileList: [
                        // {
                        //     url: 'https://img01.yzcdn.cn/vant/leaf.jpg'
                        // },
                        // Uploader æ ¹æ®æ–‡ä»¶åŽç¼€æ¥åˆ¤æ–­æ˜¯å¦ä¸ºå›¾ç‰‡æ–‡ä»¶
                        // å¦‚果图片 URL ä¸­ä¸åŒ…含类型信息,可以添加 isImage æ ‡è®°æ¥å£°æ˜Ž
                        // {
                        //     url: 'https://img01.yzcdn.cn/vant/leaf.jpg'
                        // },
                    ],
                    isStop: 'Y',
                    messageContent: '', //维修内容  å½“维修停机选了否   æ­¤å­—段必填
                    messageDescr2: '', //更换备件
                    fileList2: [],
                    photoList: [],
                    number2: number
                }
            },
            watch: {
                'topContent2.length': {
                    handler(newValue, oldValue) {
                        if (newValue !== oldValue) {
                            // this.topContent2 = topContent
                            // this.$forceUpdate()
                            if (topContent[0] && topContent[0].code) {
                                this.$forceUpdate()
                                this.topContentClcik(topContent[0].code)
                            }
                        }
                    },
                    deep: true,
                    immediate: true,
                },
                'number2.length': {
                    handler(newValue, oldValue) {
                        this.$forceUpdate()
                    },
                    deep: true,
                    immediate: true,
                },
            },
            created() {},
            mounted() {
                console.log(this.$refs.item0)
                // console.log(this.$refs.item0.$el.offsetHeight)
            },
            methods: {
                afterRead2(file) {
                },
                isStopClick(val) {
                    this.isStop = val
                    console.log(this.messageContent.trim().toString().length === 0 && this.messageDescr.trim()
                        .toString().length === 0)
                    this.$forceUpdate()
                },
                onOversize(file) {
                    console.log(file, 1);
                    this.$toast("文件大小不能超过5MB");
                },
                //校验图片的格式
                beforeRead(file) {
                    if (!/(jpg|jpeg|png|JPG|PNG)/i.test(file.type)) {
                        this.$toast("请上传正确格式的图片");
                        return false;
                    }
                    if (file.size > 100 * 1024 * 1024) {
                        this.$toast('图片大小不能超过 100MB');
                        return false;
                    }
                    return true;
                },
                afterRead(file) {
                    // æ­¤æ—¶å¯ä»¥è‡ªè¡Œå°†æ–‡ä»¶ä¸Šä¼ è‡³æœåС噍
                    //创建FormData对象。上传图片需要转换二进制,这里要用到FormData
                    let forms = new FormData();
                    //"file"表示给后台传的属性名字
                    forms.append("file", file.file); //获取上传图片信息
                    this.photoList = forms
                },
                submit() {
                    // å¼€å‘时对FormData对象append数据后打印出来为空对象,开始以为是没有append进去,实际上是FormData对象不能直接用console.log(formData)进行打印。
                    // å¦‚果要打印,可以用下面的方式:
                    // for (var key of this.photoList.entries()) {
                    //     console.log(key[0] + ', ' + key[1] );
                    // }
                    for (let [a, b] of this.photoList.entries()) {
                        console.log(a, ', ', b);
                    }
                },
                topScanClick() {
                    createWithoutTitle('../../components/barcode_scan.html', {
                        titleNView: {
                            type: 'float',
                            backgroundColor: 'rgba(215,75,40,0.3)',
                            titleText: '扫一扫',
                            titleColor: '#FFFFFF',
                            autoBackButton: true,
                            buttons: [{
                                fontSrc: '_www/helloh5.ttf',
                                text: '\ue302',
                                fontSize: '18px',
                                onclick: 'javascript:scanPicture()'
                            }]
                        }
                    });
                },
                // è¾“入框失焦触发事件
                vanFieldBlur() {
                    this.$forceUpdate()
                },
                topContentClcik(code) {
                    radioValue = code
                    this.$forceUpdate()
                },
                onClickleft() {
                    history.back()
                },
                onClickRight() {
                    this.overlayShow = true
                },
                onSelect(action) {
                    if (action.text === '操作指导') {
                        topPopoverClick('操作指导')
                    } else if (action.text === '成品追溯') {
                        topPopoverClick('成品追溯')
                    } else if (action.text === '退出登录') {
                        topPopoverClick('退出登录')
                    }
                    this.overlayShow = false
                },
            }
        })
    </script>
    <style type="text/css">
        @import url('../../css/global.css');
    </style>
</html>
pages/sbgl/wxsq.html
@@ -60,6 +60,7 @@
            <div class="body">
                <van-sticky>
                <van-nav-bar title="设备维修申请" @click-right="onClickRight" left-arrow @click-left="onClickleft">
                    <template #right>
                        <van-popover style="" placement="bottom-end" :offset="[13,8]" v-model="showPopover"
@@ -70,6 +71,7 @@
                        </van-popover>
                    </template>
                </van-nav-bar>
                </van-sticky>
                <div v-if="topContent.length===0">
                    <div class="sacnBody">
@@ -150,7 +152,8 @@
                        <div style="display:flex;flex-direction: column;width: 96%;margin: auto;">
                            <van-field class="vanFieldInputArea" v-model="messageDescr" rows="2" autosize type="textarea" placeholder="请输入" />
                            <van-field class="vanFieldInputArea" v-model="messageDescr" rows="2" autosize
                                type="textarea" placeholder="请输入" />
                        </div>
                        <div style="width: 96%;margin: auto;margin-top: 10px;">
                            <van-uploader @oversize="onOversize" :before-read="beforeRead" v-model="fileList"
pages/sbgl/wxyz.html
@@ -6,8 +6,6 @@
        <meta name="HandheldFriendly" content="true" />
        <meta name="MobileOptimized" content="320" />
        <title>新凯迪制造云平台</title>
        <!-- å¼•入像素转换 px->rpx -->
        <!-- <script src="../../js/rpx4html.js"></script> -->
        <!-- å¼•入样式文件 -->
        <link rel="stylesheet" href="../../css/vant.css" />
@@ -19,15 +17,122 @@
        <script type="text/javascript" src="../../js/axios.min.js"></script>
        <script type="text/javascript" src="../../js/http.js"></script>
        <script type="text/javascript" src="../../js/common.js"></script>
        <link rel="stylesheet" href="../css/global.css" type="text/css" charset="utf-8" />
        <script type="text/javascript" src="../../js/global.js"></script>
        <script type="text/javascript">
            var topContent = [{
                    wxsqd: 'SB00990001',
                    code: 'SB001',
                    name: '齿轮箱组',
                    wksp_code: "CJ002",
                    wksp_name: '装配车间',
                    eqpchkmain_code: "djbz002",
                    sqry: '佩罗西',
                    sqsj: '2022-09-20 15:20:30',
                    gzly: '设备点检',
                    gzms: '精工车间注塑机一号开不精工车间注塑机一号开不',
                    arrowType: true, //箭头类别
                    messageDescr: '123',
                    fileList: [],
                },
                {
                    wxsqd: 'SB00990002',
                    code: 'SB002',
                    name: '齿轮箱组',
                    wksp_code: "CJ002",
                    wksp_name: '装配车间',
                    eqpchkmain_code: "djbz002",
                    sqry: '佩罗西',
                    sqsj: '2022-09-20 15:20:30',
                    gzly: '设备点检',
                    gzms: '精工车间注塑机一号开不',
                    arrowType: true, //箭头类别
                    messageDescr: '123',
                    fileList: [],
                },
                {
                    wxsqd: 'SB00990003',
                    code: 'SB003',
                    name: '齿轮箱组',
                    wksp_code: "CJ002",
                    wksp_name: '装配车间',
                    eqpchkmain_code: "djbz002",
                    sqry: '佩罗西',
                    sqsj: '2022-09-20 15:20:30',
                    gzly: '设备点检',
                    gzms: '精工车间注塑机一号开不了',
                    arrowType: true, //箭头类别
                    messageDescr: '123',
                    fileList: [],
                },
                {
                    wxsqd: 'SB00990004',
                    code: 'SB004',
                    name: '齿轮箱组',
                    wksp_code: "CJ002",
                    wksp_name: '装配车间',
                    eqpchkmain_code: "djbz002",
                    sqry: '佩罗西',
                    sqsj: '2022-09-20 15:20:30',
                    gzly: '设备点检',
                    gzms: '精工车间注塑机一号开不了',
                    arrowType: true, //箭头类别
                    messageDescr: '123',
                    fileList: [],
                },
            ];
            let radioValue = '' //单选框选中的项
            let number = [] //假数组   åšæ‰«ç å›žæ¥è§†å›¾æ›´æ–°ç”¨
            // æ‰«æç»´ä¿®å·¥ä½è¿”回时执行方法
            function scaned(r) {
                radioValue = r
                // let temp = {}
                // let flag = false
                // topContent.forEach((item, index) => {
                //     if (item.code === radioValue) {
                //         temp = item
                //         topContent.splice(index, 1)
                //         flag = true
                //     }
                // })
                // if (flag) {
                //     topContent.unshift(temp)
                // } else {
                //     vant.Notify({
                //         type: 'danger',
                //         message: '所扫二维码围在列表中!'
                //     })
                //     if (topContent.length > 0) {
                //         radioValue = topContent[0].code
                //     }
                // }
                number.push({
                    id: '1'
                })
            }
        </script>
    </head>
    <!-- <body onload="loadNodes()"> -->
    <body>
        <div id="app">
            <div class="body">
                <van-sticky>
                <van-nav-bar title="维修验证" @click-right="onClickRight" left-arrow @click-left="onClickleft">
                    <template #right>
                        <van-popover style="" placement="bottom-end" :offset="[13,8]" v-model="showPopover" 
@@ -38,9 +143,205 @@
                        </van-popover>
                    </template>
                </van-nav-bar>
                </van-sticky>
                <van-sticky :offset-top="44">
                    <div style="display: flex;
                                background-color: #eff0f1;
                                height: 40px;align-items:center;
                                justify-content: space-between;width: 98%;margin: auto;">
                        <div class="head_left">
                            <div class="head_bar"></div>
                            <div class="head_title">
                                æ‰«æç»´ä¿®å·¥ä½
                            </div>
                        </div>
                        <div style="margin-right: 10px;">
                            <van-icon name="scan" color='red' size='24' @click='topScanClick()' />
                        </div>
                    </div>
                </van-sticky>
                <van-radio-group v-model="radioValue">
                    <van-cell-group>
                        <div class="head" style="width: 96%;float: left;margin-right: 0;"
                            v-for="(item,index) in topContent" :key="item.code" @click="topContentClcik(item.code)">
                            <div class="cellDiv">维修申请单:{{item.wxsqd}}</div>
                            <div class="cellDiv">工位编码:{{item.code}}</div>
                            <div class="cellDiv">工位名称:{{item.name}}</div>
                            <div class="cellDiv">生产车间:{{item.wksp_name}}</div>
                            <van-cell :title="'申请人员:'+item.sqry">
                                <template #right-icon>
                                    <van-radio style="margin-right: 10px;" checked-color='red' :name="item.code" />
                                </template>
                            </van-cell>
                            <div class="cellDiv">申请时间:{{item.sqsj}}</div>
                            <div class="cellDiv">故障来源:{{item.gzly}}</div>
                            <div class="cellDiv">故障描述:{{item.gzms}}</div>
                            <div v-show="item.arrowType" style="height: 30px;margin: auto;margin-top: 10px;"
                                :style="{marginBottom:(topContent.length-1===index)?'70px':'0px'}">
                                <div style="border-radius: 5px;width: 60px;height: 30px;background-color: aliceblue;"
                                    @click="arrowTypeChangeDown(item.code)" class="flex_center_center">
                                    <van-icon :name="item.arrowType?'arrow-down':'arrow-up'" />
                                </div>
                            </div>
                            <!-- <div v-if="topContent.length-1===index" style="z-index: 100;height: 10px;background-color: red;margin-top: -10px;"></div> -->
                            <div v-show="!item.arrowType" class="flex_column">
                                <div class="flex_center_center"
                                    style="margin-top: 10px;background-color: #eff0f1;height: 40px;font-size: 20px;">
                                    ç»´ä¿®è¯¦æƒ…</div>
                                <div class="head" style="padding-bottom: 0;">
                                    <div class="head_block">
                                        <div class="head_left">
                                            <div class="head_bar"></div>
                                            <div class="head_title">
                                                æ•…障描述
                                            </div>
                                        </div>
                                    </div>
                                    <div
                                        style="display:flex;flex-direction: column;width: 96%;margin: auto;padding: 10px 10px 0 10px;">
                                        <!--     <van-field class="vanFieldInputArea" readonly v-model="item.messageDescr"
                                            rows="2" autosize type="textarea" placeholder="请输入" /> -->
                                        {{item.messageDescr}}
                                    </div>
                                    <div style="width: 96%;margin: auto;">
                                        <van-uploader multiple v-model="item.fileList" multiple :max-count="3" />
                                    </div>
            </div>
                                <div style="background-color: #eff0f1;height: 10px;"></div>
                                <div class="head" style="padding-bottom: 5px;margin-top: 0;">
                                    <div class="head_block" style="">
                                        <div class="head_left">
                                            <div class="head_bar"></div>
                                            <div class="head_title">
                                                åœæœºç»´ä¿®
                                            </div>
                                        </div>
                                        <van-button class="buttonSmall" plain size="small" type="primary">
                                            å¦</van-button>
                                    </div>
                                </div>
                                <div style="background-color: #eff0f1;height: 10px;"></div>
                                <div class="head" style="padding-bottom: 0;">
                                    <div class="head_block">
                                        <div class="head_left">
                                            <div class="head_bar"></div>
                                            <div class="head_title">
                                                ç»´ä¿®å†…容
                                            </div>
                                        </div>
                                    </div>
                                    <div
                                        style="display:flex;flex-direction: column;width: 96%;margin: auto;padding: 10px 10px 0 10px;">
                                        <!--                 <van-field class="vanFieldInputArea" readonly v-model="item.messageDescr"
                                            rows="2" autosize type="textarea" placeholder="请输入" />
                             -->
                                        {{item.messageDescr}}
                                    </div>
                                </div>
                                <div style="background-color: #eff0f1;height: 10px;"></div>
                                <div class="head" style="padding-bottom: 0;">
                                    <div class="head_block">
                                        <div class="head_left">
                                            <div class="head_bar"></div>
                                            <div class="head_title">
                                                æ›´æ¢å¤‡ä»¶
                                            </div>
                                        </div>
                                    </div>
                                    <div
                                        style="display:flex;flex-direction: column;width: 96%;margin: auto;padding: 10px 10px 0 10px;">
                                        <!--     <van-field class="vanFieldInputArea" readonly v-model="item.messageDescr"
                                            rows="2" autosize type="textarea" placeholder="请输入" /> -->
                                        {{item.messageDescr}}
                                    </div>
                                    <div style="width: 96%;margin: auto;">
                                        <van-uploader multiple v-model="item.fileList" multiple :max-count="3" />
                                    </div>
                                </div>
                                <div style="background-color: #eff0f1;height: 10px;"></div>
                                <div class="head" style="padding-bottom: 5px;margin-top: 0;">
                                    <div class="head_block" style="">
                                        <div class="head_left">
                                            <div class="head_bar"></div>
                                            <div class="head_title">
                                                éªŒè¯ç»“æžœ
                                            </div>
                                        </div>
                                        <div class="flex_center"
                                            style="width: 30%;display: flex;justify-content: space-around;">
                                            <van-button class="buttonSmall" size="small" plain type="primary">
                                                æ­£å¸¸</van-button>
                                            <van-button class="buttonSmall" size="small" plain type="danger">异常
                                            </van-button>
                                        </div>
                                    </div>
                                </div>
                                <div v-show="!item.arrowType" style="height: 30px;margin: auto;margin-top: 10px;"
                                    :style="{marginBottom:(topContent.length-1===index)?'70px':'0px'}">
                                    <div style="border-radius: 5px;width: 60px;height: 30px;background-color: aliceblue;"
                                        @click="arrowTypeChangeUp(item.code)" class="flex_center_center">
                                        <van-icon :name="item.arrowType?'arrow-down':'arrow-up'" />
                                    </div>
                                </div>
                            </div>
                        </div>
                    </van-cell-group>
                </van-radio-group>
                <!-- <div style="height: 1200px;width: 100%;background-color: black;margin-bottom: 100px;"></div> -->
                <div class="footer" style="min-height:50px;">
                    <div
                        style="position:fixed;bottom: 0;width: 96%;display: flex;justify-content: center;flex-direction: column;align-items: center">
                        <van-button class="vanButtonInfo" @click="submit" type="info">
                            ç¡®è®¤æäº¤</van-button>
                    </div>
                </div>
            </div>
            <van-overlay :show="overlayShow" @click="overlayShow=false" />
@@ -65,15 +366,103 @@
                        text: '退出登录'
                    }],
                    topContent2: topContent,
                    messageDescr: '', //故障描述  å¿…å¡«
                    fileList: [
                        // {
                        //     url: 'https://img01.yzcdn.cn/vant/leaf.jpg'
                        // },
                        // Uploader æ ¹æ®æ–‡ä»¶åŽç¼€æ¥åˆ¤æ–­æ˜¯å¦ä¸ºå›¾ç‰‡æ–‡ä»¶
                        // å¦‚果图片 URL ä¸­ä¸åŒ…含类型信息,可以添加 isImage æ ‡è®°æ¥å£°æ˜Ž
                        // {
                        //     url: 'https://img01.yzcdn.cn/vant/leaf.jpg'
                        // },
                    ],
                    isStop: 'Y',
                    messageContent: '', //维修内容  å½“维修停机选了否   æ­¤å­—段必填
                    photoList: [],
                    number2: number
                }
            },
            created() {
            watch: {
                'topContent2.length': {
                    handler(newValue, oldValue) {
                        if (newValue !== oldValue) {
                            // this.topContent2 = topContent
                            // this.$forceUpdate()
                            if (topContent[0] && topContent[0].code) {
                                this.$forceUpdate()
                                this.topContentClcik(topContent[0].code)
                            }
                        }
            },
            mounted() {
                    deep: true,
                    immediate: true,
            },
                'number2.length': {
                    handler(newValue, oldValue) {
                        this.$forceUpdate()
                    },
                    deep: true,
                    immediate: true,
                },
            },
            created() {},
            mounted() {},
            methods: {
                arrowTypeChangeUp(code) {
                    topContent.forEach(item => {
                        item.arrowType = true
                    })
                    this.$forceUpdate()
                },
                arrowTypeChangeDown(code) {
                    topContent.forEach(item => {
                        item.arrowType = true
                        if (item.code === code) {
                            item.arrowType = false
                        }
                    })
                    this.$forceUpdate()
                },
                submit() {
                    // å¼€å‘时对FormData对象append数据后打印出来为空对象,开始以为是没有append进去,实际上是FormData对象不能直接用console.log(formData)进行打印。
                    // å¦‚果要打印,可以用下面的方式:
                    // for (var key of this.photoList.entries()) {
                    //     console.log(key[0] + ', ' + key[1] );
                    // }
                    for (let [a, b] of this.photoList.entries()) {
                        console.log(a, ', ', b);
                    }
                },
                topScanClick() {
                    createWithoutTitle('../../components/barcode_scan.html', {
                        titleNView: {
                            type: 'float',
                            backgroundColor: 'rgba(215,75,40,0.3)',
                            titleText: '扫一扫',
                            titleColor: '#FFFFFF',
                            autoBackButton: true,
                            buttons: [{
                                fontSrc: '_www/helloh5.ttf',
                                text: '\ue302',
                                fontSize: '18px',
                                onclick: 'javascript:scanPicture()'
                            }]
                        }
                    });
                },
                // è¾“入框失焦触发事件
                vanFieldBlur() {
                    this.$forceUpdate()
                },
                topContentClcik(code) {
                    radioValue = code
                    this.$forceUpdate()
                },
                onClickleft(){
                    history.back()
                },
@@ -81,36 +470,19 @@
                    this.overlayShow = true
                },
                onSelect(action) {
                    vant.Toast(action.text);
                    if (action.text === '操作指导') {
                        topPopoverClick('操作指导')
                    } else if (action.text === '成品追溯') {
                        topPopoverClick('成品追溯')
                    } else if (action.text === '退出登录') {
                        topPopoverClick('退出登录')
                    }
                    this.overlayShow = false
                },
            }
        })
    </script>
    <style type="text/css">
        body {
            background-color: #fff;
        }
        .body {
            height: 600px;
            background-color: grey;
            margin-top: 0px;
            background-color: #fff;
            position: relative;
        }
        .van-nav-bar__content {
            background-color: #2651d8;
            height: 44px;
        }
        .van-nav-bar__title {
            color: #fff;
            letter-spacing: 2px;
        }
        .van-nav-bar__arrow{
            color: #fff !important;
        }
        @import url('../../css/global.css');
    </style>
</html>
pages/test/test1.html
@@ -87,6 +87,28 @@
            <van-dropdown-menu :overlay="false" style="width: 100px;">
                <van-dropdown-item style="width: 100px;" v-model="value1" :options="option1" />
            </van-dropdown-menu>
            <van-radio-group v-model="radio">
              <van-cell-group>
                  <div>1</div>
                <van-cell title="单选框 1" clickable @click="radio = '1'">
                  <template #right-icon>
                    <van-radio name="1" />
                  </template>
                </van-cell>
                  <div>2</div>
                  <div>3</div>
                <van-cell title="单选框 2" clickable @click="radio = '2'">
                  <template #right-icon>
                    <van-radio name="2" />
                  </template>
                </van-cell>
                <div>4</div>
              </van-cell-group>
            </van-radio-group>
            </div>
        </div>
    </body>
unpackage/cache/wgt/H5EDA0853/css/global.css
@@ -113,6 +113,12 @@
    align-items: center;
}
.flex_center_center {
    display: flex;
    align-items: center;
    justify-content: center;
}
.center_title {
    font-weight: bolder;
}
@@ -161,3 +167,18 @@
    margin: auto;
    color: #000ccc;
}
.van-cell{
    padding: 0;
    font-size: 16px;
    line-height:21px;
    position:unset;
}
.van-cell__title{
    margin-left: 20px;
}
.cellDiv{
    margin-left: 20px;
}
unpackage/cache/wgt/H5EDA0853/pages/sbgl/dqby.html
@@ -179,7 +179,7 @@
        <div id="app">
            <div class="body">
                <van-sticky>
                <van-nav-bar title="定期保养" @click-right="onClickRight" left-arrow @click-left="onClickleft">
                    <template #right>
                        <van-popover style="" placement="bottom-end" :offset="[13,8]" v-model="showPopover"
@@ -190,7 +190,7 @@
                        </van-popover>
                    </template>
                </van-nav-bar>
                </van-sticky>
                <div v-if="topContent.length===0">
                    <div class="sacnBody">
unpackage/cache/wgt/H5EDA0853/pages/sbgl/rcdj.html
@@ -166,7 +166,7 @@
        <div id="app">
            <div class="body">
                <van-sticky>
                <van-nav-bar title="日常点检" @click-right="onClickRight" left-arrow @click-left="onClickleft">
                    <template #right>
                        <van-popover style="" placement="bottom-end" :offset="[13,8]" v-model="showPopover"
@@ -177,7 +177,7 @@
                        </van-popover>
                    </template>
                </van-nav-bar>
                </van-sticky>
                <div v-if="topContent.length===0">
                    <div class="sacnBody">
unpackage/cache/wgt/H5EDA0853/pages/sbgl/sbwx.html
@@ -26,6 +26,29 @@
        <script type="text/javascript">
            var topContent = [{
                    wxsqd: 'SB00990001',
                    code: 'SB001',
                    name: '齿轮箱组',
                    wksp_code: "CJ002",
                    wksp_name: '装配车间',
                    eqpchkmain_code: "djbz002",
                    sqry: '佩罗西',
                    sqsj: '2022-09-20 15:20:30',
                    gzly: '设备点检',
                    gzms: '精工车间注塑机一号开不精工车间注塑机一号开不',
                },
                {
                    wxsqd: 'SB00990002',
                    code: 'SB002',
                    name: '齿轮箱组',
                    wksp_code: "CJ002",
                    wksp_name: '装配车间',
                    eqpchkmain_code: "djbz002",
                    sqry: '佩罗西',
                    sqsj: '2022-09-20 15:20:30',
                    gzly: '设备点检',
                    gzms: '精工车间注塑机一号开不',
                }, {
                    wxsqd: 'SB00990003',
                    code: 'SB003',
                    name: '齿轮箱组',
                    wksp_code: "CJ002",
@@ -37,29 +60,6 @@
                    gzms: '精工车间注塑机一号开不',
                },
                {
                    wxsqd: 'SB00990002',
                    code: 'SB001',
                    name: '齿轮箱组',
                    wksp_code: "CJ002",
                    wksp_name: '装配车间',
                    eqpchkmain_code: "djbz002",
                    sqry: '佩罗西',
                    sqsj: '2022-09-20 15:20:30',
                    gzly: '设备点检',
                    gzms: '精工车间注塑机一号开不了',
                }, {
                    wxsqd: 'SB00990003',
                    code: 'SB002',
                    name: '齿轮箱组',
                    wksp_code: "CJ002",
                    wksp_name: '装配车间',
                    eqpchkmain_code: "djbz002",
                    sqry: '佩罗西',
                    sqsj: '2022-09-20 15:20:30',
                    gzly: '设备点检',
                    gzms: '精工车间注塑机一号开不了',
                },
                {
                    wxsqd: 'SB00990004',
                    code: 'SB004',
                    name: '齿轮箱组',
@@ -69,7 +69,7 @@
                    sqry: '佩罗西',
                    sqsj: '2022-09-20 15:20:30',
                    gzly: '设备点检',
                    gzms: '精工车间注塑机一号开不了',
                    gzms: '精工车间注塑机一号开不',
                },
            ];
@@ -80,9 +80,34 @@
            let number = [] //假数组   åšæ‰«ç å›žæ¥è§†å›¾æ›´æ–°ç”¨
            // æ‰«æç‚¹æ£€å·¥ä½è¿”回时执行方法
            // æ‰«æç»´ä¿®å·¥ä½è¿”回时执行方法
            function scaned(r) {
                radioValue = r
                let temp = {}
                let flag = false
                topContent.forEach((item, index) => {
                    if (item.code === radioValue) {
                        temp = item
                        topContent.splice(index, 1)
                        flag = true
                    }
                })
                if (flag) {
                    topContent.unshift(temp)
                } else {
                    vant.Notify({
                        type: 'danger',
                        message: '所扫二维码围在列表中!'
                    })
                    if (topContent.length > 0) {
                        radioValue = topContent[0].code
                    }
                }
                number.push({
                    id: '1'
                })
@@ -95,6 +120,7 @@
            <div class="body">
                <van-sticky>
                <van-nav-bar title="设备维修" @click-right="onClickRight" left-arrow @click-left="onClickleft">
                    <template #right>
                        <van-popover style="" placement="bottom-end" :offset="[13,8]" v-model="showPopover"
@@ -105,7 +131,7 @@
                        </van-popover>
                    </template>
                </van-nav-bar>
                </van-sticky>
                <div class="head" style="height: 240px; overflow: scroll;">
                    <div class="head_block">
@@ -122,54 +148,31 @@
                    </div>
                    <div class="flex_between">
                        <div style="width: 100%;margin-top: 10px;">
                            <div v-for="item in topContent" :key="item.code"
                                style="margin-bottom: 10px;line-height:20px;margin-left: 20px;"
                                @click="topContentClcik(item.code)">
                                <div style="display: flex;align-items: center;">
                                    <div style="text-align: right;">
                                        <div>维修申请单:</div>
                                        <div>工位编码:</div>
                                        <div>工位名称:</div>
                                        <div>生产车间:</div>
                                        <div>申请人员:</div>
                                        <div>申请时间:</div>
                                        <div>故障来源:</div>
                                        <!-- <div>故障描述:</div> -->
                                    </div>
                                    <div>
                                        <div>{{item.wxsqd}}</div>
                                        <div>{{item.code}}</div>
                                        <div>{{item.name}}</div>
                                        <div>{{item.wksp_name}}</div>
                                        <div>{{item.sqry}}</div>
                                        <div>{{item.sqsj}}</div>
                                        <div>{{item.gzly}}</div>
                                        <!-- <div style="width: 200px;" class="textEllipsis">{{item.gzms}}</div> -->
                                    </div>
                                </div>
                                <div style="display: flex;">
                                    <div style="margin-left: 16px;">故障描述:</div>
                                    <div style="width: 180px;">{{item.gzms}}</div>
                                </div>
                    <van-radio-group v-model="radioValue">
                        <van-cell-group>
                            <div style="margin: 10px 0;" v-for="(item,index) in topContent" :key="item.code" @click="topContentClcik(item.code)">
                                <div class="cellDiv">维修申请单:{{item.wxsqd}}</div>
                                <div class="cellDiv">工位编码:{{item.code}}</div>
                                <div class="cellDiv">工位名称:{{item.name}}</div>
                                <div class="cellDiv">生产车间:{{item.wksp_name}}</div>
                                <van-cell :title="'申请人员:'+item.sqry"  >
                                    <template #right-icon>
                                        <van-radio style="margin-right: 10px;" checked-color='red' :name="item.code" />
                                    </template>
                                </van-cell>
                                <div class="cellDiv">申请时间:{{item.sqsj}}</div>
                                <div class="cellDiv">故障来源:{{item.gzly}}</div>
                                <div class="cellDiv">故障描述:{{item.gzms}}</div>
                            </div>
                        </div>
                        <div>
                            <van-radio-group v-model="radioValue" style="padding-right: 12px;">
                                <van-radio checked-color='red' icon-size="18px" @click="topContentClcik(item.code)"
                                    style="height: 160px;margin-bottom: 10px;" v-for="item in topContent"
                                    :key="item.code" :name="item.code"></van-radio>
                        </van-cell-group>
                            </van-radio-group>
                        </div>
                    </div>
                </div>
                <div style="height: 330px;overflow: scroll;">
                <div style="height: 340px;overflow: scroll;">
                    <div class="head"
                        style="margin-bottom: 10px;padding-bottom: 10px;">
                    <div class="head" style="margin-bottom: 10px;padding-bottom: 10px;">
                        <div class="head_block" style="margin-bottom:10px;">
                            <div class="head_left">
                                <div class="head_bar"></div>
@@ -214,8 +217,7 @@
                        </div>
                    </div>
                    <div class="head" v-if="isStop==='N'"
                        style="margin-bottom: 10px;padding-bottom: 10px;">
                    <div class="head" v-if="isStop==='N'" style="margin-bottom: 10px;padding-bottom: 10px;">
                        <div class="head_block" style="margin-bottom:10px;">
                            <div class="head_left">
                                <div class="head_bar"></div>
@@ -231,8 +233,7 @@
                        </div>
                    </div>
                    <div class="head" v-if="isStop==='N'"
                        style="margin-bottom: 10px;padding-bottom: 10px;">
                    <div class="head" v-if="isStop==='N'" style="margin-bottom: 10px;padding-bottom: 10px;">
                        <div class="head_block" style="margin-bottom:10px;">
                            <div class="head_left">
                                <div class="head_bar"></div>
@@ -258,11 +259,16 @@
                    <div class="footer" style="min-height:50px;">
                        <div
                            style="position:fixed;bottom: 0;width: 96%;display: flex;justify-content: center;flex-direction: column;align-items: center">
                        <!-- disabled æŽ§åˆ¶å†ç ”究一下 -->
                            <van-button
                            :disabled="(isStop==='Y'&&messageDescr.trim().toString().length===0)||(isStop==='N'||messageContent.trim().toString().length===0||messageDescr.trim().toString().length===0)"
                            <van-button v-show="isStop==='Y'" :disabled="messageDescr.trim().toString().length===0"
                            class="vanButtonInfo" @click="submit" type="info">
                                ç¡®è®¤æäº¤</van-button>
                                ç¡®è®¤æäº¤1</van-button>
                            <van-button v-show="isStop==='N'"
                                :disabled="messageDescr.trim().toString().length===0||messageContent.trim().toString().length===0"
                                class="vanButtonInfo" @click="submit" type="info">
                                ç¡®è®¤æäº¤2</van-button>
                        </div>
                    </div>
@@ -337,14 +343,18 @@
                },
            },
            created() {},
            mounted() {},
            mounted() {
                console.log(this.$refs.item0)
                // console.log(this.$refs.item0.$el.offsetHeight)
            },
            methods: {
                afterRead2(file) {
                },
                isStopClick(val) {
                    this.isStop = val
                    console.log(this.messageContent.trim().toString().length===0&&this.messageDescr.trim().toString().length===0)
                    console.log(this.messageContent.trim().toString().length === 0 && this.messageDescr.trim()
                        .toString().length === 0)
                    this.$forceUpdate()
                },
                onOversize(file) {
unpackage/cache/wgt/H5EDA0853/pages/sbgl/sbwx_back.html
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,466 @@
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
        <meta name="HandheldFriendly" content="true" />
        <meta name="MobileOptimized" content="320" />
        <title>新凯迪制造云平台</title>
        <!-- å¼•入样式文件 -->
        <link rel="stylesheet" href="../../css/vant.css" />
        <!-- å¼•å…¥ Vue å’Œ Vant çš„ JS æ–‡ä»¶ -->
        <script src="../../js/vue.min.js"></script>
        <script src="../../js/vant.min.js"></script>
        <script type="text/javascript" src="../../js/jquery-1.6.4.min.js"></script>
        <script type="text/javascript" src="../../js/axios.min.js"></script>
        <script type="text/javascript" src="../../js/http.js"></script>
        <script type="text/javascript" src="../../js/common.js"></script>
        <script type="text/javascript" src="../../js/global.js"></script>
        <!-- <link rel="stylesheet" href="../../css/global.css" type="text/css" charset="utf-8" /> -->
        <script type="text/javascript">
            var topContent = [{
                    wxsqd: 'SB00990001',
                    code: 'SB001',
                    name: '齿轮箱组',
                    wksp_code: "CJ002",
                    wksp_name: '装配车间',
                    eqpchkmain_code: "djbz002",
                    sqry: '佩罗西',
                    sqsj: '2022-09-20 15:20:30',
                    gzly: '设备点检',
                    gzms: '精工车间注塑机一号开不',
                },
                {
                    wxsqd: 'SB00990002',
                    code: 'SB002',
                    name: '齿轮箱组',
                    wksp_code: "CJ002",
                    wksp_name: '装配车间',
                    eqpchkmain_code: "djbz002",
                    sqry: '佩罗西',
                    sqsj: '2022-09-20 15:20:30',
                    gzly: '设备点检',
                    gzms: '精工车间注塑机一号开不',
                }, {
                    wxsqd: 'SB00990003',
                    code: 'SB003',
                    name: '齿轮箱组',
                    wksp_code: "CJ002",
                    wksp_name: '装配车间',
                    eqpchkmain_code: "djbz002",
                    sqry: '佩罗西',
                    sqsj: '2022-09-20 15:20:30',
                    gzly: '设备点检',
                    gzms: '精工车间注塑机一号开不',
                },
                {
                    wxsqd: 'SB00990004',
                    code: 'SB004',
                    name: '齿轮箱组',
                    wksp_code: "CJ002",
                    wksp_name: '装配车间',
                    eqpchkmain_code: "djbz002",
                    sqry: '佩罗西',
                    sqsj: '2022-09-20 15:20:30',
                    gzly: '设备点检',
                    gzms: '精工车间注塑机一号开不',
                },
            ];
            let radioValue = '' //单选框选中的项
            let number = [] //假数组   åšæ‰«ç å›žæ¥è§†å›¾æ›´æ–°ç”¨
            // æ‰«æç»´ä¿®å·¥ä½è¿”回时执行方法
            function scaned(r) {
                radioValue = r
                let temp = {}
                let flag = false
                topContent.forEach((item, index) => {
                    if (item.code === radioValue) {
                        temp = item
                        topContent.splice(index, 1)
                        flag = true
                    }
                })
                if (flag) {
                    topContent.unshift(temp)
                } else {
                    vant.Notify({
                        type: 'danger',
                        message: '所扫二维码围在列表中!'
                    })
                    if (topContent.length > 0) {
                        radioValue = topContent[0].code
                    }
                }
                number.push({
                    id: '1'
                })
            }
        </script>
    </head>
    <!-- <body onload="loadNodes()"> -->
    <body>
        <div id="app">
            <div class="body">
                <van-sticky>
                    <van-nav-bar title="设备维修" @click-right="onClickRight" left-arrow @click-left="onClickleft">
                        <template #right>
                            <van-popover style="" placement="bottom-end" :offset="[13,8]" v-model="showPopover"
                                trigger="click" :actions="actions" @select="onSelect">
                                <template #reference>
                                    <van-icon name="bars" size='20' color='#fff' />
                                </template>
                            </van-popover>
                        </template>
                    </van-nav-bar>
                </van-sticky>
                <div class="head" style="height: 240px; overflow: scroll;">
                    <div class="head_block">
                        <div class="head_left">
                            <div class="head_bar"></div>
                            <div class="head_title">
                                æ‰«æç»´ä¿®å·¥ä½
                            </div>
                        </div>
                        <div style="margin-right: 10px;">
                            <van-icon name="scan" color='red' size='24' @click='topScanClick()' />
                        </div>
                    </div>
                    <div class="flex_between">
                        <div style="width: 100%;margin-top: 10px;">
                            <div v-for="(item,index) in topContent" :key="item.code"
                                style="margin-bottom: 10px;line-height:20px;margin-left: 20px;"
                                @click="topContentClcik(item.code)">
                                <div :ref="'item'+index" style="display: flex;align-items: center;">
                                    <div style="text-align: right;">
                                        <div>维修申请单:</div>
                                        <div>工位编码:</div>
                                        <div>工位名称:</div>
                                        <div>生产车间:</div>
                                        <div>申请人员:</div>
                                        <div>申请时间:</div>
                                        <div>故障来源:</div>
                                        <!-- <div>故障描述:</div> -->
                                    </div>
                                    <div>
                                        <div>{{item.wxsqd}}</div>
                                        <div>{{item.code}}</div>
                                        <div>{{item.name}}</div>
                                        <div>{{item.wksp_name}}</div>
                                        <div>{{item.sqry}}</div>
                                        <div>{{item.sqsj}}</div>
                                        <div>{{item.gzly}}</div>
                                        <!-- <div style="width: 200px;" class="textEllipsis">{{item.gzms}}</div> -->
                                    </div>
                                </div>
                                <div style="display: flex;">
                                    <div style="margin-left: 16px;">故障描述:</div>
                                    <div style="width: 180px;">{{item.gzms}}</div>
                                </div>
                            </div>
                        </div>
                        <div>
                            <van-radio-group v-model="radioValue" style="padding-right: 12px;">
                                <van-radio checked-color='red' icon-size="18px" @click="topContentClcik(item.code)"
                                    style="height: 160px;margin-bottom: 10px;" v-for="item in topContent"
                                    :key="item.code" :name="item.code"></van-radio>
                            </van-radio-group>
                        </div>
                    </div>
                </div>
                <div style="height: 340px;overflow: scroll;">
                    <div class="head" style="margin-bottom: 10px;padding-bottom: 10px;">
                        <div class="head_block" style="margin-bottom:10px;">
                            <div class="head_left">
                                <div class="head_bar"></div>
                                <div class="head_title">
                                    æ•…障描述
                                </div>
                            </div>
                        </div>
                        <div style="display:flex;flex-direction: column;width: 96%;margin: auto;">
                            <van-field class="vanFieldInputArea" v-model="messageDescr" rows="2" autosize
                                type="textarea" placeholder="请输入" />
                        </div>
                        <div style="width: 96%;margin: auto;margin-top: 10px;">
                            <van-uploader @oversize="onOversize" :before-read="beforeRead" v-model="fileList"
                                :after-read="afterRead" multiple :max-count="3" />
                        </div>
                    </div>
                    <div class="head" style="margin-bottom: 10px;padding-bottom: 10px;">
                        <div class="head_block">
                            <div class="head_left">
                                <div class="head_bar"></div>
                                <div class="head_title">
                                    åœæœºç»´ä¿®
                                </div>
                            </div>
                            <div style="margin-right: 10px;">
                                <div class="flex_center"
                                    style="width: 100%;display: flex;justify-content: space-around;">
                                    <van-button class="buttonSmall" size="small" :plain="isStop!=='Y'"
                                        style="margin-right: 10px;" @click="isStopClick('Y')" type="primary">
                                        æ˜¯</van-button>
                                    <van-button class="buttonSmall" size="small" :plain="isStop!=='N'"
                                        @click="isStopClick('N')" type="danger">否</van-button>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="head" v-if="isStop==='N'" style="margin-bottom: 10px;padding-bottom: 10px;">
                        <div class="head_block" style="margin-bottom:10px;">
                            <div class="head_left">
                                <div class="head_bar"></div>
                                <div class="head_title">
                                    ç»´ä¿®å†…容
                                </div>
                            </div>
                        </div>
                        <div style="display:flex;flex-direction: column;width: 96%;margin: auto;">
                            <van-field class="vanFieldInputArea" v-model="messageContent" rows="2" autosize
                                type="textarea" placeholder="请输入" />
                        </div>
                    </div>
                    <div class="head" v-if="isStop==='N'" style="margin-bottom: 10px;padding-bottom: 10px;">
                        <div class="head_block" style="margin-bottom:10px;">
                            <div class="head_left">
                                <div class="head_bar"></div>
                                <div class="head_title">
                                    æ›´æ¢å¤‡ä»¶
                                </div>
                            </div>
                        </div>
                        <div style="display:flex;flex-direction: column;width: 96%;margin: auto;">
                            <van-field class="vanFieldInputArea" v-model="messageDescr2" rows="2" autosize
                                type="textarea" placeholder="请输入" />
                        </div>
                        <div style="width: 96%;margin: auto;margin-top: 10px;">
                            <van-uploader :before-read="beforeRead" v-model="fileList2" :after-read="afterRead2"
                                multiple :max-count="3" />
                        </div>
                    </div>
                    <div class="footer" style="min-height:50px;">
                        <div
                            style="position:fixed;bottom: 0;width: 96%;display: flex;justify-content: center;flex-direction: column;align-items: center">
                            <van-button v-show="isStop==='Y'" :disabled="messageDescr.trim().toString().length===0"
                                class="vanButtonInfo" @click="submit" type="info">
                                ç¡®è®¤æäº¤1</van-button>
                            <van-button v-show="isStop==='N'"
                                :disabled="messageDescr.trim().toString().length===0||messageContent.trim().toString().length===0"
                                class="vanButtonInfo" @click="submit" type="info">
                                ç¡®è®¤æäº¤2</van-button>
                        </div>
                    </div>
                </div>
            </div>
            <van-overlay :show="overlayShow" @click="overlayShow=false" />
        </div>
    </body>
    <script>
        var app = new Vue({
            el: '#app',
            data: function() {
                return {
                    overlayShow: false,
                    showPopover: false,
                    actions: [{
                        icon: 'description',
                        text: '操作指导'
                    }, {
                        icon: 'award-o',
                        text: '成品追溯'
                    }, {
                        icon: 'revoke',
                        text: '退出登录'
                    }],
                    topContent2: topContent,
                    messageDescr: '', //故障描述  å¿…å¡«
                    fileList: [
                        // {
                        //     url: 'https://img01.yzcdn.cn/vant/leaf.jpg'
                        // },
                        // Uploader æ ¹æ®æ–‡ä»¶åŽç¼€æ¥åˆ¤æ–­æ˜¯å¦ä¸ºå›¾ç‰‡æ–‡ä»¶
                        // å¦‚果图片 URL ä¸­ä¸åŒ…含类型信息,可以添加 isImage æ ‡è®°æ¥å£°æ˜Ž
                        // {
                        //     url: 'https://img01.yzcdn.cn/vant/leaf.jpg'
                        // },
                    ],
                    isStop: 'Y',
                    messageContent: '', //维修内容  å½“维修停机选了否   æ­¤å­—段必填
                    messageDescr2: '', //更换备件
                    fileList2: [],
                    photoList: [],
                    number2: number
                }
            },
            watch: {
                'topContent2.length': {
                    handler(newValue, oldValue) {
                        if (newValue !== oldValue) {
                            // this.topContent2 = topContent
                            // this.$forceUpdate()
                            if (topContent[0] && topContent[0].code) {
                                this.$forceUpdate()
                                this.topContentClcik(topContent[0].code)
                            }
                        }
                    },
                    deep: true,
                    immediate: true,
                },
                'number2.length': {
                    handler(newValue, oldValue) {
                        this.$forceUpdate()
                    },
                    deep: true,
                    immediate: true,
                },
            },
            created() {},
            mounted() {
                console.log(this.$refs.item0)
                // console.log(this.$refs.item0.$el.offsetHeight)
            },
            methods: {
                afterRead2(file) {
                },
                isStopClick(val) {
                    this.isStop = val
                    console.log(this.messageContent.trim().toString().length === 0 && this.messageDescr.trim()
                        .toString().length === 0)
                    this.$forceUpdate()
                },
                onOversize(file) {
                    console.log(file, 1);
                    this.$toast("文件大小不能超过5MB");
                },
                //校验图片的格式
                beforeRead(file) {
                    if (!/(jpg|jpeg|png|JPG|PNG)/i.test(file.type)) {
                        this.$toast("请上传正确格式的图片");
                        return false;
                    }
                    if (file.size > 100 * 1024 * 1024) {
                        this.$toast('图片大小不能超过 100MB');
                        return false;
                    }
                    return true;
                },
                afterRead(file) {
                    // æ­¤æ—¶å¯ä»¥è‡ªè¡Œå°†æ–‡ä»¶ä¸Šä¼ è‡³æœåС噍
                    //创建FormData对象。上传图片需要转换二进制,这里要用到FormData
                    let forms = new FormData();
                    //"file"表示给后台传的属性名字
                    forms.append("file", file.file); //获取上传图片信息
                    this.photoList = forms
                },
                submit() {
                    // å¼€å‘时对FormData对象append数据后打印出来为空对象,开始以为是没有append进去,实际上是FormData对象不能直接用console.log(formData)进行打印。
                    // å¦‚果要打印,可以用下面的方式:
                    // for (var key of this.photoList.entries()) {
                    //     console.log(key[0] + ', ' + key[1] );
                    // }
                    for (let [a, b] of this.photoList.entries()) {
                        console.log(a, ', ', b);
                    }
                },
                topScanClick() {
                    createWithoutTitle('../../components/barcode_scan.html', {
                        titleNView: {
                            type: 'float',
                            backgroundColor: 'rgba(215,75,40,0.3)',
                            titleText: '扫一扫',
                            titleColor: '#FFFFFF',
                            autoBackButton: true,
                            buttons: [{
                                fontSrc: '_www/helloh5.ttf',
                                text: '\ue302',
                                fontSize: '18px',
                                onclick: 'javascript:scanPicture()'
                            }]
                        }
                    });
                },
                // è¾“入框失焦触发事件
                vanFieldBlur() {
                    this.$forceUpdate()
                },
                topContentClcik(code) {
                    radioValue = code
                    this.$forceUpdate()
                },
                onClickleft() {
                    history.back()
                },
                onClickRight() {
                    this.overlayShow = true
                },
                onSelect(action) {
                    if (action.text === '操作指导') {
                        topPopoverClick('操作指导')
                    } else if (action.text === '成品追溯') {
                        topPopoverClick('成品追溯')
                    } else if (action.text === '退出登录') {
                        topPopoverClick('退出登录')
                    }
                    this.overlayShow = false
                },
            }
        })
    </script>
    <style type="text/css">
        @import url('../../css/global.css');
    </style>
</html>
unpackage/cache/wgt/H5EDA0853/pages/sbgl/wxsq.html
@@ -60,6 +60,7 @@
            <div class="body">
                <van-sticky>
                <van-nav-bar title="设备维修申请" @click-right="onClickRight" left-arrow @click-left="onClickleft">
                    <template #right>
                        <van-popover style="" placement="bottom-end" :offset="[13,8]" v-model="showPopover"
@@ -70,6 +71,7 @@
                        </van-popover>
                    </template>
                </van-nav-bar>
                </van-sticky>
                <div v-if="topContent.length===0">
                    <div class="sacnBody">
@@ -150,7 +152,8 @@
                        <div style="display:flex;flex-direction: column;width: 96%;margin: auto;">
                            <van-field class="vanFieldInputArea" v-model="messageDescr" rows="2" autosize type="textarea" placeholder="请输入" />
                            <van-field class="vanFieldInputArea" v-model="messageDescr" rows="2" autosize
                                type="textarea" placeholder="请输入" />
                        </div>
                        <div style="width: 96%;margin: auto;margin-top: 10px;">
                            <van-uploader @oversize="onOversize" :before-read="beforeRead" v-model="fileList"
unpackage/cache/wgt/H5EDA0853/pages/sbgl/wxyz.html
@@ -6,8 +6,6 @@
        <meta name="HandheldFriendly" content="true" />
        <meta name="MobileOptimized" content="320" />
        <title>新凯迪制造云平台</title>
        <!-- å¼•入像素转换 px->rpx -->
        <!-- <script src="../../js/rpx4html.js"></script> -->
        <!-- å¼•入样式文件 -->
        <link rel="stylesheet" href="../../css/vant.css" />
@@ -19,15 +17,109 @@
        <script type="text/javascript" src="../../js/axios.min.js"></script>
        <script type="text/javascript" src="../../js/http.js"></script>
        <script type="text/javascript" src="../../js/common.js"></script>
        <link rel="stylesheet" href="../css/global.css" type="text/css" charset="utf-8" />
        <script type="text/javascript" src="../../js/global.js"></script>
        <script type="text/javascript">
            var topContent = [{
                    wxsqd: 'SB00990001',
                    code: 'SB001',
                    name: '齿轮箱组',
                    wksp_code: "CJ002",
                    wksp_name: '装配车间',
                    eqpchkmain_code: "djbz002",
                    sqry: '佩罗西',
                    sqsj: '2022-09-20 15:20:30',
                    gzly: '设备点检',
                    gzms: '精工车间注塑机一号开不',
                },
                {
                    wxsqd: 'SB00990002',
                    code: 'SB002',
                    name: '齿轮箱组',
                    wksp_code: "CJ002",
                    wksp_name: '装配车间',
                    eqpchkmain_code: "djbz002",
                    sqry: '佩罗西',
                    sqsj: '2022-09-20 15:20:30',
                    gzly: '设备点检',
                    gzms: '精工车间注塑机一号开不',
                },
                // {
                //     wxsqd: 'SB00990003',
                //     code: 'SB003',
                //     name: '齿轮箱组',
                //     wksp_code: "CJ002",
                //     wksp_name: '装配车间',
                //     eqpchkmain_code: "djbz002",
                //     sqry: '佩罗西',
                //     sqsj: '2022-09-20 15:20:30',
                //     gzly: '设备点检',
                //     gzms: '精工车间注塑机一号开不了',
                // },
                // {
                //     wxsqd: 'SB00990004',
                //     code: 'SB004',
                //     name: '齿轮箱组',
                //     wksp_code: "CJ002",
                //     wksp_name: '装配车间',
                //     eqpchkmain_code: "djbz002",
                //     sqry: '佩罗西',
                //     sqsj: '2022-09-20 15:20:30',
                //     gzly: '设备点检',
                //     gzms: '精工车间注塑机一号开不了',
                // },
            ];
            let radioValue = '' //单选框选中的项
            let number = [] //假数组   åšæ‰«ç å›žæ¥è§†å›¾æ›´æ–°ç”¨
            // æ‰«æç»´ä¿®å·¥ä½è¿”回时执行方法
            function scaned(r) {
                radioValue = r
                // let temp = {}
                // let flag = false
                // topContent.forEach((item, index) => {
                //     if (item.code === radioValue) {
                //         temp = item
                //         topContent.splice(index, 1)
                //         flag = true
                //     }
                // })
                // if (flag) {
                //     topContent.unshift(temp)
                // } else {
                //     vant.Notify({
                //         type: 'danger',
                //         message: '所扫二维码围在列表中!'
                //     })
                //     if (topContent.length > 0) {
                //         radioValue = topContent[0].code
                //     }
                // }
                number.push({
                    id: '1'
                })
            }
        </script>
    </head>
    <!-- <body onload="loadNodes()"> -->
    <body>
        <div id="app">
            <div class="body">
                <van-sticky>
                <van-nav-bar title="维修验证" @click-right="onClickRight" left-arrow @click-left="onClickleft">
                    <template #right>
                        <van-popover style="" placement="bottom-end" :offset="[13,8]" v-model="showPopover" 
@@ -38,9 +130,107 @@
                        </van-popover>
                    </template>
                </van-nav-bar>
                </van-sticky>
                <van-sticky :offset-top="44">
                    <div style="display: flex;
                                background-color: #eff0f1;
                                height: 40px;align-items:center;
                                justify-content: space-between;width: 98%;margin: auto;">
                        <div class="head_left">
                            <div class="head_bar"></div>
                            <div class="head_title">
                                æ‰«æç»´ä¿®å·¥ä½
                            </div>
                        </div>
                        <div style="margin-right: 10px;">
                            <van-icon name="scan" color='red' size='24' @click='topScanClick()' />
                        </div>
                    </div>
                </van-sticky>
                <div class="head" style="width: 88%;float: left;margin-right: 0;border-radius: 5px 0 0 5px;"
                    v-for="item in topContent" :key="item.code">
                    <div class="flex_between">
                        <div style="width: 100%;margin-top: 10px;">
                            <div style="margin-bottom: 10px;line-height:20px;margin-left: 20px;"
                                @click="topContentClcik(item.code)">
                                <div style="display: flex;align-items: center;">
                                    <div style="text-align: right;">
                                        <div>维修申请单:</div>
                                        <div>工位编码:</div>
                                        <div>工位名称:</div>
                                        <div>生产车间:</div>
                                        <div>申请人员:</div>
                                        <div>申请时间:</div>
                                        <div>故障来源:</div>
                                        <!-- <div>故障描述:</div> -->
                                    </div>
                                    <div>
                                        <div>{{item.wxsqd}}</div>
                                        <div>{{item.code}}</div>
                                        <div>{{item.name}}</div>
                                        <div>{{item.wksp_name}}</div>
                                        <div>{{item.sqry}}</div>
                                        <div>{{item.sqsj}}</div>
                                        <div>{{item.gzly}}</div>
                                        <!-- <div style="width: 200px;" class="textEllipsis">{{item.gzms}}</div> -->
                                    </div>
                                </div>
                                <div style="display: flex;">
                                    <div style="margin-left: 16px;">故障描述:</div>
                                    <div style="width: 180px;">{{item.gzms}}</div>
                                </div>
                            </div>
                        </div>
                        <!--                                         <div>
                            <van-radio-group v-model="radioValue" style="padding-right: 12px;">
                                <van-radio checked-color='red' icon-size="18px" @click="topContentClcik(item.code)"
                                    style="height: 160px;margin-bottom: 10px;" v-for="item in topContent"
                                    :key="item.code" :name="item.code"></van-radio>
                            </van-radio-group>
                        </div> -->
                    </div>
                    <!-- ç®­å¤´å›¾æ ‡éƒ¨åˆ† -->
                    <div style="height: 30px;margin: auto;margin-top: 10px;">
                        <div style="border-radius: 5px;width: 60px;height: 30px;background-color: aliceblue;"
                            @click="arrowTypeChange" class="flex_center_center">
                            <van-icon :name="arrowType?'arrow-down':'arrow-up'" />
                        </div>
                    </div>
            </div>
                <div style="display: flex;">
                    <van-radio-group v-model="radioValue" style="">
                        <van-radio checked-color='red' icon-size="18px" @click="topContentClcik(item.code)"
                            style="padding-right: 30%;background-color: #fff;height: 220px;margin-bottom: 10px;background-color: #fff;margin: 5px 0;padding: 10px 0;"
                            v-for="item in topContent" :key="item.code" :name="item.code"></van-radio>
                    </van-radio-group>
                </div>
                <div class="footer" style="min-height:50px;">
                    <div
                        style="position:fixed;bottom: 0;width: 96%;display: flex;justify-content: center;flex-direction: column;align-items: center">
                        <van-button class="vanButtonInfo" @click="submit" type="info">
                            ç¡®è®¤æäº¤</van-button>
                    </div>
                </div>
            </div>
            <van-overlay :show="overlayShow" @click="overlayShow=false" />
@@ -48,6 +238,7 @@
        </div>
    </body>
    <script>
        var app = new Vue({
            el: '#app',
            data: function() {
@@ -64,16 +255,94 @@
                        icon: 'revoke',
                        text: '退出登录'
                    }],
                    arrowType: true, //箭头类别
                    topContent2: topContent,
                    messageDescr: '', //故障描述  å¿…å¡«
                    fileList: [
                        // {
                        //     url: 'https://img01.yzcdn.cn/vant/leaf.jpg'
                        // },
                        // Uploader æ ¹æ®æ–‡ä»¶åŽç¼€æ¥åˆ¤æ–­æ˜¯å¦ä¸ºå›¾ç‰‡æ–‡ä»¶
                        // å¦‚果图片 URL ä¸­ä¸åŒ…含类型信息,可以添加 isImage æ ‡è®°æ¥å£°æ˜Ž
                        // {
                        //     url: 'https://img01.yzcdn.cn/vant/leaf.jpg'
                        // },
                    ],
                    isStop: 'Y',
                    messageContent: '', //维修内容  å½“维修停机选了否   æ­¤å­—段必填
                    photoList: [],
                    number2: number
                }
            },
            watch: {
                'topContent2.length': {
                    handler(newValue, oldValue) {
                        if (newValue !== oldValue) {
                            // this.topContent2 = topContent
                            // this.$forceUpdate()
                            if (topContent[0] && topContent[0].code) {
                                this.$forceUpdate()
                                this.topContentClcik(topContent[0].code)
                            }
                }
            },
            created() {
                    deep: true,
                    immediate: true,
            },
            mounted() {
                'number2.length': {
                    handler(newValue, oldValue) {
                        this.$forceUpdate()
            },
                    deep: true,
                    immediate: true,
                },
            },
            created() {},
            mounted() {},
            methods: {
                arrowTypeChange() {
                    this.arrowType = !this.arrowType
                    this.$forceUpdate()
                },
                submit() {
                    // å¼€å‘时对FormData对象append数据后打印出来为空对象,开始以为是没有append进去,实际上是FormData对象不能直接用console.log(formData)进行打印。
                    // å¦‚果要打印,可以用下面的方式:
                    // for (var key of this.photoList.entries()) {
                    //     console.log(key[0] + ', ' + key[1] );
                    // }
                    for (let [a, b] of this.photoList.entries()) {
                        console.log(a, ', ', b);
                    }
                },
                topScanClick() {
                    createWithoutTitle('../../components/barcode_scan.html', {
                        titleNView: {
                            type: 'float',
                            backgroundColor: 'rgba(215,75,40,0.3)',
                            titleText: '扫一扫',
                            titleColor: '#FFFFFF',
                            autoBackButton: true,
                            buttons: [{
                                fontSrc: '_www/helloh5.ttf',
                                text: '\ue302',
                                fontSize: '18px',
                                onclick: 'javascript:scanPicture()'
                            }]
                        }
                    });
                },
                // è¾“入框失焦触发事件
                vanFieldBlur() {
                    this.$forceUpdate()
                },
                topContentClcik(code) {
                    radioValue = code
                    this.$forceUpdate()
                },
                onClickleft(){
                    history.back()
                },
@@ -81,36 +350,19 @@
                    this.overlayShow = true
                },
                onSelect(action) {
                    vant.Toast(action.text);
                    if (action.text === '操作指导') {
                        topPopoverClick('操作指导')
                    } else if (action.text === '成品追溯') {
                        topPopoverClick('成品追溯')
                    } else if (action.text === '退出登录') {
                        topPopoverClick('退出登录')
                    }
                    this.overlayShow = false
                },
            }
        })
    </script>
    <style type="text/css">
        body {
            background-color: #fff;
        }
        .body {
            height: 600px;
            background-color: grey;
            margin-top: 0px;
            background-color: #fff;
            position: relative;
        }
        .van-nav-bar__content {
            background-color: #2651d8;
            height: 44px;
        }
        .van-nav-bar__title {
            color: #fff;
            letter-spacing: 2px;
        }
        .van-nav-bar__arrow{
            color: #fff !important;
        }
        @import url('../../css/global.css');
    </style>
</html>
unpackage/cache/wgt/H5EDA0853/pages/test/test1.html
@@ -87,6 +87,28 @@
            <van-dropdown-menu :overlay="false" style="width: 100px;">
                <van-dropdown-item style="width: 100px;" v-model="value1" :options="option1" />
            </van-dropdown-menu>
            <van-radio-group v-model="radio">
              <van-cell-group>
                  <div>1</div>
                <van-cell title="单选框 1" clickable @click="radio = '1'">
                  <template #right-icon>
                    <van-radio name="1" />
                  </template>
                </van-cell>
                  <div>2</div>
                  <div>3</div>
                <van-cell title="单选框 2" clickable @click="radio = '2'">
                  <template #right-icon>
                    <van-radio name="2" />
                  </template>
                </van-cell>
                <div>4</div>
              </van-cell-group>
            </van-radio-group>
            </div>
        </div>
    </body>
unpackage/release/apk/H5EDA0853__20220930082047.apk
Binary files differ
unpackage/release/apk/H5EDA0853__20220930082604.apk
Binary files differ
unpackage/release/apk/H5EDA0853__20220930082730.apk
Binary files differ
unpackage/release/apk/H5EDA0853__20220930141808.apk
Binary files differ