|
@@ -4,6 +4,37 @@
|
|
|
<div class="tab-nav">
|
|
|
<div class="date-filter-wrap">
|
|
|
<span style="font-size: 14px;font-weight: bold;color: black">每日退仓看板</span>
|
|
|
+ <RadioGroup v-model="params.status" style="margin-left:20px" @on-change="getList">
|
|
|
+ <Radio label="0">
|
|
|
+
|
|
|
+ <span>未复核</span>
|
|
|
+ </Radio>
|
|
|
+ <Radio label="1">
|
|
|
+
|
|
|
+ <span>已复核</span>
|
|
|
+ </Radio>
|
|
|
+ <Radio label="2">
|
|
|
+
|
|
|
+ <span>待审批</span>
|
|
|
+ </Radio>
|
|
|
+ </RadioGroup>
|
|
|
+ <select-input v-model="params.materialName" @onChange="getList" type="3"></select-input>
|
|
|
+ <Select
|
|
|
+ v-model="params.userName"
|
|
|
+ style="width: 200px"
|
|
|
+ @on-change="selectUserName"
|
|
|
+ filterable
|
|
|
+ >
|
|
|
+ <div slot="empty">无匹配数据</div>
|
|
|
+ <Option value="">全部</Option>
|
|
|
+ <Option
|
|
|
+ v-for="i in userList"
|
|
|
+ :value="i.label"
|
|
|
+ :key="i.id"
|
|
|
+ >{{ i.label }}</Option
|
|
|
+ >
|
|
|
+ </Select>
|
|
|
+
|
|
|
</div>
|
|
|
<div class="date-filter-wrap">
|
|
|
<date-select v-model="params" @change="selectTime"></date-select>
|
|
@@ -120,6 +151,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+ import selectInput from '@/components/form/select-input'
|
|
|
import MyTable from '_c/my-table/my-table'
|
|
|
import axios from 'axios'
|
|
|
import dateSelect from '@/components/dateSelect/dateSelect'
|
|
@@ -127,7 +159,7 @@
|
|
|
import {dateFormat} from '@/libs/util'
|
|
|
export default {
|
|
|
name: 'daily_report',
|
|
|
- components: { MyTable, dateSelect,MyModalForm },
|
|
|
+ components: { MyTable, dateSelect,MyModalForm,selectInput },
|
|
|
data() {
|
|
|
return {
|
|
|
shenpiModal:false,
|
|
@@ -269,7 +301,7 @@
|
|
|
},
|
|
|
style: {
|
|
|
marginRight: '20px',
|
|
|
- display:(params.row.status === 0 || params.row.flowStatus != 0) ? 'none' : ''
|
|
|
+ display:(params.row.status === 0 || params.row.flowStatus != 0 ) ? 'none' : (this.roleKey != 'supervisor') ? 'none' : ''
|
|
|
},
|
|
|
on: {
|
|
|
click: () => {
|
|
@@ -305,7 +337,8 @@
|
|
|
total: 0,
|
|
|
technologyType: '',
|
|
|
jobNo: '',
|
|
|
- userId: ''
|
|
|
+ userId: '',
|
|
|
+ status:1,
|
|
|
},
|
|
|
statisticsDetails: {
|
|
|
scheduleArea: '',
|
|
@@ -319,13 +352,34 @@
|
|
|
backArea: '',
|
|
|
useRate: '',
|
|
|
actualUse: ''
|
|
|
- }
|
|
|
+ },
|
|
|
+ roleKey:window.localStorage.getItem('roleKey'),
|
|
|
+ userList:[],
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
this.getAllList()
|
|
|
+ this.getUUserList()
|
|
|
},
|
|
|
methods: {
|
|
|
+ getUUserList() {
|
|
|
+ const v = this
|
|
|
+ v.loading = true
|
|
|
+ axios
|
|
|
+ .post('/cloudApi/uUser/list', {
|
|
|
+ deptIdList: ['A012', 'A008', 'A007', 'A017', 'A005'],
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ let list = res.data.data.map((item) => {
|
|
|
+ return {
|
|
|
+ label: item.realname,
|
|
|
+ value: item.id,
|
|
|
+ name: item.realname,
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.userList = list
|
|
|
+ })
|
|
|
+ },
|
|
|
handleFlow(_type){
|
|
|
axios.post('/cloudApi/stockBack/handleFlow',{id:this.formData.id,flowResult:_type}).then(res => {
|
|
|
this.show = false
|
|
@@ -375,6 +429,7 @@
|
|
|
})
|
|
|
},
|
|
|
userClick(item) {
|
|
|
+ this.params.userName = ''
|
|
|
if (this.btnIndex === item.userId + '_' + item.technologyType) {
|
|
|
this.params.userId = ''
|
|
|
this.params.jobNo = ''
|
|
@@ -392,12 +447,18 @@
|
|
|
this.params.pageNum = pageNum
|
|
|
this.getList()
|
|
|
},
|
|
|
+ selectUserName(){
|
|
|
+ this.params.userId = ""
|
|
|
+ this.getList()
|
|
|
+ },
|
|
|
getList() {
|
|
|
axios
|
|
|
.post('/cloudApi/stockBack/getBackStatistics', {
|
|
|
beginTime: this.params.beginTime,
|
|
|
endTime: this.params.endTime,
|
|
|
- userId: this.params.userId
|
|
|
+ userId: this.params.userId,
|
|
|
+ materialName:this.params.materialName,
|
|
|
+ userName:this.params.userName,
|
|
|
})
|
|
|
.then(res => {
|
|
|
this.statisticsDetails = res.data.data
|
|
@@ -408,7 +469,11 @@
|
|
|
pageSize: this.params.pageSize,
|
|
|
beginTime: this.params.beginTime,
|
|
|
endTime: this.params.endTime,
|
|
|
- userId: this.params.userId
|
|
|
+ userId: this.params.userId,
|
|
|
+ status:this.params.status,
|
|
|
+ materialName:this.params.materialName,
|
|
|
+ userName:this.params.userName,
|
|
|
+
|
|
|
})
|
|
|
.then(res => {
|
|
|
this.data = res.data.data.records
|