| | |
| | | <view class="form-item"> |
| | | <view class="title">{{$t("Gy.EquipNumber_Search")}}:</view> |
| | | <view class="right"> |
| | | <input type="text" :value="condition.HNumber" /> |
| | | <input type="text" v-model="condition.HNumber" /> |
| | | </view> |
| | | </view> |
| | | <view class="form-item"> |
| | | <view class="title">{{$t("Gy.EquipName_Search")}}:</view> |
| | | <view class="right"> |
| | | <input type="text" :value="condition.HName" /> |
| | | <input type="text" v-model="condition.HName" /> |
| | | </view> |
| | | </view> |
| | | <view class="search-buttons"> |
| | |
| | | |
| | | <!-- 显示列表 --> |
| | | <view class="list" v-for="(item,index) in displayData" :key="index"> |
| | | <uni-card :title="item.设备名称" style="margin: 10px;" |
| | | > |
| | | <uni-card :title="item.设备名称" style="margin: 10px;"> |
| | | <view class="card-detail"> |
| | | <template v-for="(HBillField, index) in CommonUtils.emptyValueFilter(item,fieldData).slice(0,10)"> |
| | | <view class="detail" v-if="HBillField.ColmType == 'DateTime'"> |
| | |
| | | methods: { |
| | | search() { |
| | | this.page = 1 |
| | | this.displayData = [] |
| | | this.getReport() |
| | | }, |
| | | clear() { |
| | | |
| | | this.page = 1 |
| | | this.displayData = [] |
| | | this.condition.HDeptID = 0 |
| | | this.condition.HDeptName = "" |
| | | this.condition.HBeginDate = dayjs(new Date()).format("YYYY-MM-DD") |
| | | this.condition.HEndDate = dayjs(new Date()).format("YYYY-MM-DD") |
| | | this.condition.HNumber = "" |
| | | this.condition.HName = "" |
| | | }, |
| | | showPicker() { |
| | | this.$refs.treePicker._show(); |
| | |
| | | sWhere += this.combineSWhereStr(sWhere) |
| | | |
| | | let res = await CommonUtils.doRequest2Async({ |
| | | url: "/SB_EquipRunningStatus/Report", |
| | | url: "/SB_EquipRunningStatus/ReportPage", |
| | | data: { |
| | | sWhere, |
| | | user: getUserInfo()["Czymc"], |
| | |
| | | } |
| | | }) |
| | | |
| | | let {data, count, Message, list} = res.data |
| | | let { |
| | | data, |
| | | count, |
| | | Message, |
| | | list |
| | | } = res.data |
| | | |
| | | if(count == 1) { |
| | | if(data.length == 0) { |
| | |
| | | } |
| | | |
| | | if (this.condition.HNumber) { |
| | | sWhere += ` and 设备编码 like '%${this.condition.HNumber}'%` |
| | | sWhere += ` and 设备编码 like '%${this.condition.HNumber}%' ` |
| | | } |
| | | |
| | | if (this.condition.HName) { |
| | | sWhere += ` and 设备名称 like '%${this.condition.HName}'%` |
| | | sWhere += ` and 设备名称 like '%${this.condition.HName}%' ` |
| | | } |
| | | |
| | | return sWhere |