| | |
| | | <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> |
| | |
| | | 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> |
| | |
| | | table: [], |
| | | name: '', |
| | | remeke: '', |
| | | show: false |
| | | //show: false |
| | | chooseValue: "", |
| | | list: [{ |
| | | id: '来料不良', |
| | | content: '来料不良' |
| | | }, { |
| | | id: '生产不良', |
| | | content: '生产不良' |
| | | }] |
| | | } |
| | | }, |
| | | onLoad(option) { |
| | |
| | | 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) |