src/views/mdc/base/DeliveryGroupUtilizationRateChart.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/mdc/base/GroupEquipmentUtilizationRateChart.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/mdc/base/GroupUtilizationRateChart.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/mdc/base/GroupUtilizationRateCompareChart.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/mdc/base/modules/comparativeAnalysis/ComparativeAnalysisMain.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/views/mdc/base/DeliveryGroupUtilizationRateChart.vue
@@ -28,7 +28,7 @@ <a-col :md="8" :sm="8"> <a-form-item label="配送小组"> <a-select v-model="teamCodes" placeholder="请选择配送小组" mode="multiple" :maxTagCount="3" <a-select :value="teamCodes" placeholder="请选择配送小组" mode="multiple" :maxTagCount="3" @change="handleDeliverGroupSelectChange" allowClear> <a-select-option v-for="item in deliveryGroupList" :key="item.key">{{ item.title }}</a-select-option> </a-select> @@ -45,7 +45,6 @@ <a-col :md="2" :sm="2"> <a-space> <a-button type="primary" @click="searchQuery" icon="search">查询</a-button> <!-- <a-button type="primary" @click="searchReset" icon="reload">重置</a-button>--> </a-space> </a-col> </a-row> @@ -73,9 +72,9 @@ }, productionIds: [],//班组 teamCodes: [],//配送小组 centerList: [], groupList: [], deliveryGroupList: [] centerList: [],//中心列表 groupList: [],//班组列表 deliveryGroupList: []//配送小组列表 } }, mounted() { @@ -247,13 +246,14 @@ * @param isInitLoad 是否为初始化加载 */ getGroupListByApi(productionId, isInitLoad = false) { this.groupList = [] const that = this mdcApi.getCenterOrGroupListApi(productionId) .then(res => { if (res.success) { that.groupList = res.result that.groupList = res.result ? res.result : [] that.handleGroupSelectChange(res.result && res.result.length > 0 && isInitLoad ? [res.result[0].value] : []) if (!isInitLoad) return that.handleGroupSelectChange([res.result[0].value]) that.loadData() } }) @@ -265,17 +265,18 @@ * @param isReduceSelectOption 是否减少班组选中项 */ getDeliveryGroupListByApi(productionId, isReduceSelectOption = false) { this.deliveryGroupList = [] const that = this mdcApi.getDeliveryGroupListApi(productionId) .then(res => { if (res.success) { that.deliveryGroupList = res.result that.deliveryGroupList = res.result ? res.result : [] // 仅减少勾选项时才进行下一步 if (!isReduceSelectOption) return that.teamCodes.forEach((key, keyIndex, self) => { // 如果将唯一一组包含选中配送小组项的班组取消勾选后应将已勾选的配送小组一并取消勾选 if (that.deliveryGroupList.findIndex(item => item.key === key) === -1) self.splice(keyIndex, 1) }) // 保留改变后的配送小组列表中之前已勾选的配送小组 const filterTeamCodes = that.teamCodes.filter(item => that.deliveryGroupList.map(item => item.key).includes(item)) that.handleDeliverGroupSelectChange(filterTeamCodes) } }) }, @@ -285,16 +286,6 @@ * @param value 改变后的中心Id */ handleCenterSelectChange(value) { if (this.productionIds.length > 0) { this.groupList = [] this.productionIds = [] delete this.queryParam.productionIds } if (this.teamCodes.length > 0) { this.deliveryGroupList = [] this.teamCodes = [] delete this.queryParam.teamCodes } this.getGroupListByApi(value) }, @@ -316,6 +307,7 @@ * @param value 改变后的配送小组Id */ handleDeliverGroupSelectChange(value) { this.teamCodes = value this.queryParam.teamCodes = value.join(',') }, src/views/mdc/base/GroupEquipmentUtilizationRateChart.vue
@@ -34,7 +34,6 @@ <a-col :md="5" :sm="5"> <a-space> <a-button type="primary" @click="searchQuery" icon="search">查询</a-button> <!-- <a-button type="primary" @click="searchReset" icon="reload">重置</a-button>--> </a-space> </a-col> </a-row> @@ -250,8 +249,8 @@ .then(res => { if (res.success) { that.groupList = res.result that.handleGroupSelectChange(res.result && res.result.length > 0 && isInitLoad ? [res.result[0].value] : []) if (!isInitLoad) return that.handleGroupSelectChange([res.result[0].value]) that.loadData() } }) @@ -262,11 +261,6 @@ * @param value 改变后的中心Id */ handleCenterSelectChange(value) { if (this.productionIds.length > 0) { this.groupList = [] this.productionIds = [] delete this.queryParam.productionIds } this.getGroupListByApi(value) }, @@ -276,10 +270,6 @@ */ handleGroupSelectChange(value) { this.productionIds = value if (value.length === 0) { delete this.queryParam.productionIds return } this.queryParam.productionIds = value.join(',') }, src/views/mdc/base/GroupUtilizationRateChart.vue
@@ -5,7 +5,7 @@ <a-row :gutter="24"> <a-col :md="3" :sm="3"> <a-form-item label="中心"> <a-select v-model="queryParam.productionId" placeholder="请选择中心"> <a-select v-model="queryParam.productionId" placeholder="请选择中心" @change="handleCenterSelectChange"> <a-select-option v-for="item in centerList" :key="item.key"> {{ item.title }} </a-select-option> @@ -44,21 +44,9 @@ </a-form-item> </a-col> <!-- <a-col :md="5" :sm="5">--> <!-- <a-form-item label="班次">--> <!-- <a-select v-model="queryParam.workTime" placeholder="请选择班次" mode="multiple" :maxTagCount="2">--> <!-- <a-select-option key="123">一班</a-select-option>--> <!-- <a-select-option key="234">二班</a-select-option>--> <!-- <a-select-option key="345">三班</a-select-option>--> <!-- </a-select>--> <!-- </a-form-item>--> <!-- </a-col>--> <a-col :md="2" :sm="2"> <a-space> <a-button type="primary" @click="searchQuery" icon="search">查询</a-button> <!-- <a-button type="primary" @click="searchReset" icon="reload">重置</a-button>--> </a-space> </a-col> </a-row> @@ -228,13 +216,14 @@ // 获取中心列表 getCenterListByApi() { this.centerList = [] const that = this mdcApi.getCenterOrGroupListApi() .then(res => { if (res.success) { that.centerList = res.result that.queryParam.productionId = res.result[0].value that.getGroupListByApi(res.result[0].value) that.handleCenterSelectChange(res.result[0].value, { isInitLoad: true }) } }) }, @@ -243,19 +232,30 @@ * 获取班组列表 * @param productionId 中心Id */ getGroupListByApi(productionId) { getGroupListByApi(productionId, isInitLoad) { this.groupList = [] const that = this mdcApi.getCenterOrGroupListApi(productionId) .then(res => { if (res.success) { that.groupList = res.result that.handleGroupSelectChange([res.result[0].value]) that.handleGroupSelectChange(res.result && res.result.length > 0 && isInitLoad ? [res.result[0].value] : []) if (!isInitLoad) return that.loadData() } }) }, /** * 中心发生改变时触发 * @param value 改变后的值 * @param isInitLoad 是否为初始化加载 */ handleCenterSelectChange(value, { isInitLoad }) { this.getGroupListByApi(value, isInitLoad) }, /** * 班组发生改变时触发 * @param value 改变后的值 */ src/views/mdc/base/GroupUtilizationRateCompareChart.vue
@@ -16,7 +16,6 @@ <a-col :md="5" :sm="5"> <a-space> <a-button type="primary" @click="searchQuery" icon="search">查询</a-button> <!-- <a-button type="primary" @click="searchReset" icon="reload">重置</a-button>--> </a-space> </a-col> </a-row> @@ -197,12 +196,14 @@ // 获取中心列表 getCenterListByApi() { this.centerList = [] const that = this mdcApi.getCenterOrGroupListApi() .then(res => { if (res.success) { this.centerList = res.result this.queryParam.productionId = res.result[0].value this.loadData() that.centerList = res.result that.$set(that.queryParam, 'productionId', res.result[0].value) that.loadData() } }) }, src/views/mdc/base/modules/comparativeAnalysis/ComparativeAnalysisMain.vue
@@ -7,7 +7,7 @@ <a-row :gutter="24"> <a-col :md="5" :sm="5"> <a-form-item label="设备"> <a-input-search :readOnly="true" v-model="queryParam.equipmentId" @search="deviceSearch" <a-input-search :readOnly="true" v-model="queryParam.equipmentId" @search="deviceSearch" @click="deviceSearch" placeholder='请选择设备'/> </a-form-item> </a-col>