| | |
| | | </uni-tr> |
| | | <uni-tr v-for="(item, index) in subDataList" :key="index"> |
| | | <uni-td align="center"> |
| | | <view>{{ item.productName }}</view></uni-td> |
| | | <view>{{ item.productName}}</view></uni-td> |
| | | <uni-td> |
| | | <view class="name">{{ item.orderType }}</view> |
| | | </uni-td> |
| | |
| | | uni.hideLoading() |
| | | if (res.code == 0) { |
| | | this.customerNameList = res.data.map(item=>{ |
| | | item.text = item.productName + '-' + item.orderCode; |
| | | item.text = (item.productNames ? item.productNames : item.productName) + '-' + item.orderCode; |
| | | item.value = item.id; |
| | | return item; |
| | | }) |
| | |
| | | }, |
| | | deptChange(e) { |
| | | console.log(e,'eee'); |
| | | this.subDataList = this.customerNameList.filter(item=>item.id === e); |
| | | this.subDataList = this.customerNameList.filter(item=>item.id === e).length ? |
| | | this.customerNameList.filter(item=>item.id === e)[0].tmOrderList : []; |
| | | ; |
| | | |
| | | }, |
| | | confirmBuild() { |