new
展杰
2023-11-15 c8b99e19889ad0985f4d851fabead15199fe4ea7
new
已修改2个文件
41 ■■■■ 文件已修改
components/w-select/w-select.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/inspection/inspectionInfo.vue 37 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
components/w-select/w-select.vue
@@ -108,11 +108,11 @@
    props: {
        width: {
            type: String,
            default: '200px'
            default: '140px'
        },
        height: {
            type: String,
            default: '30px'
            default: '40px'
        },
        bgColor: {
            type: String,
pages/inspection/inspectionInfo.vue
@@ -81,8 +81,8 @@
                    <uni-th align="center" width="40">检验数量</uni-th>
                    <uni-th align="center" width="60">上限值</uni-th>
                    <uni-th align="center" width="60">下限值</uni-th>
                    <uni-th align="center" width="80">检验值</uni-th>
                    <uni-th align="center" width="75">检验结果</uni-th>
                    <uni-th align="center" width="70">检验值</uni-th>
                    <uni-th align="center" width="78">检验结果</uni-th>
                    <uni-th align="center" width="80">不良原因</uni-th>
                    <uni-th align="center" width="80">备注</uni-th>
                </uni-tr>
@@ -108,8 +108,13 @@
                            text="不合格" type="error"></u-tag>
                    </uni-td>
                    <uni-td>
                        <view class="content" @click="useOutClickSide">
<!--                         <view class="content" @click="useOutClickSide">
                            <easy-select ref="easySelect" size="medium" :value="item.BAD_REASON" @selectOne="selectOne($event,index)"></easy-select>
                        </view> -->
                        <view class="login">
                            <w-select style="margin-left: 20rpx;" v-model='chooseValue' defaultValue="请选择"
                            :list='list' valueName='content' keyName="id" @change='change(index)'>
                            </w-select>
                        </view>
                    </uni-td>
                    <uni-td>
@@ -146,7 +151,15 @@
                table: [],
                name: '',
                remeke: '',
                show: false
                //show: false
                chooseValue: "",
                list: [{
                  id: '来料不良',
                  content: '来料不良'
                }, {
                  id: '生产不良',
                  content: '生产不良'
                }]
            }
        },
        onLoad(option) {
@@ -205,12 +218,16 @@
                    console.log(this.table)
                })
            },
            selectOne(options,index) {
                this.table[index].BAD_REASON = options.label
                console.log(options.label);
            },
            useOutClickSide() {
                this.$refs.easySelect.hideOptions && this.$refs.easySelect.hideOptions()
            // selectOne(options,index) {
            //     this.table[index].BAD_REASON = options.label
            //     console.log(options.label);
            // },
            // useOutClickSide() {
            //     this.$refs.easySelect.hideOptions && this.$refs.easySelect.hideOptions()
            // },
            change(index) {
                this.table[index].BAD_REASON=this.chooseValue;
                console.log(this.table)
            },
            changeSwitch(item) {
                console.log(item)