|
@@ -6,7 +6,8 @@
|
|
|
<span style="font-size: 14px;font-weight: bold;color: black">指定领料追踪</span>
|
|
|
</div>
|
|
|
<div class="date-filter-wrap">
|
|
|
- <div class="date-filter">
|
|
|
+ <date-select v-model="params" @change="dateClick"></date-select>
|
|
|
+ <!-- <div class="date-filter">
|
|
|
<div class="date-tab" v-for="item in dateTabs" :key="item.type" :class="item.type === type ? 'active' : ''" @click="dateTabToggle(item.type)">
|
|
|
{{ item.label }}
|
|
|
</div>
|
|
@@ -18,7 +19,7 @@
|
|
|
placement="bottom-end"
|
|
|
placeholder="请选择日期"
|
|
|
style="width: 200px;margin-left: 10px;"
|
|
|
- ></DatePicker>
|
|
|
+ ></DatePicker> -->
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="border"></div>
|
|
@@ -43,11 +44,11 @@
|
|
|
</div>
|
|
|
<div class="item">
|
|
|
<div class="label">指定领料未领卷数</div>
|
|
|
- <p class="value" style="color: red; text-decoration:underline">{{ statistical.appointNotClaimedNum }}</p>
|
|
|
+ <p class="value" style="color: red; text-decoration:underline;cursor: pointer;" @click="openDtl(2)">{{ statistical.appointNotClaimedNum }}</p>
|
|
|
</div>
|
|
|
<div class="item" style="border-right: 1px solid #e6e6e6;">
|
|
|
<div class="label">额外领料卷数</div>
|
|
|
- <p class="value" style="color: red; text-decoration:underline">{{ statistical.additionalNum }}</p>
|
|
|
+ <p class="value" style="color: red; text-decoration:underline;cursor: pointer;" @click="openDtl(3)">{{ statistical.additionalNum }}</p>
|
|
|
</div>
|
|
|
<div class="item">
|
|
|
<div class="label">排班米数</div>
|
|
@@ -96,8 +97,8 @@
|
|
|
:rowData="rowData"
|
|
|
:parameter="{
|
|
|
type: type,
|
|
|
- beginTime: beginTime,
|
|
|
- endTime: endTime,
|
|
|
+ beginTime: params.beginTime,
|
|
|
+ endTime: params.endTime,
|
|
|
jobNo: jobNo,
|
|
|
pickingType: pickingType
|
|
|
}"
|
|
@@ -110,10 +111,10 @@
|
|
|
import axios from 'axios'
|
|
|
import MyTable from '_c/my-table/my-table'
|
|
|
import DetailsModal from './details-modal'
|
|
|
-
|
|
|
+import dateSelect from '@/components/dateSelect/dateSelect'
|
|
|
export default {
|
|
|
name: 'picking_tracking',
|
|
|
- components: { MyTable, DetailsModal },
|
|
|
+ components: { MyTable, DetailsModal,dateSelect },
|
|
|
data() {
|
|
|
return {
|
|
|
dataArea: [],
|
|
@@ -129,7 +130,9 @@ export default {
|
|
|
params: {
|
|
|
pageIndex: 1,
|
|
|
pageSize: 20,
|
|
|
- total: 0
|
|
|
+ total: 0,
|
|
|
+ beginTime: '',
|
|
|
+ endTime: '',
|
|
|
},
|
|
|
btnIndex: 0,
|
|
|
jobNo: '',
|
|
@@ -266,6 +269,7 @@ export default {
|
|
|
},
|
|
|
on: {
|
|
|
click(e) {
|
|
|
+ console.log(e)
|
|
|
e.stopPropagation()
|
|
|
_this.pickingType = '2'
|
|
|
_this.detailsTitle = '指定领料未领卷数'
|
|
@@ -636,6 +640,13 @@ export default {
|
|
|
this.dateTabToggle('1')
|
|
|
},
|
|
|
methods: {
|
|
|
+ openDtl(_type){
|
|
|
+ const _this = this
|
|
|
+ _this.pickingType = _type
|
|
|
+ _this.detailsTitle = _type == '2' ? '指定领料未领卷数' : '额外领料卷数'
|
|
|
+ _this.rowData = {code:''}
|
|
|
+ _this.openDetails = true
|
|
|
+ },
|
|
|
handleSpan({ row, column, rowIndex, columnIndex }) {
|
|
|
console.log(row, column, rowIndex, columnIndex)
|
|
|
if (rowIndex === 0 && columnIndex === 0) {
|
|
@@ -656,9 +667,9 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
dateClick(date) {
|
|
|
- this.beginTime = date[0]
|
|
|
- this.endTime = date[1]
|
|
|
- this.type = '99'
|
|
|
+ // this.beginTime = date[0]
|
|
|
+ // this.endTime = date[1]
|
|
|
+ // this.type = '99'
|
|
|
this.getUserList()
|
|
|
this.getList()
|
|
|
},
|
|
@@ -709,8 +720,8 @@ export default {
|
|
|
axios
|
|
|
.post('/cloudApi/stockDetail/pickingTrackingUserStatistics', {
|
|
|
type: this.type,
|
|
|
- beginTime: this.beginTime,
|
|
|
- endTime: this.endTime
|
|
|
+ beginTime: this.params.beginTime,
|
|
|
+ endTime: this.params.endTime
|
|
|
})
|
|
|
.then(res => {
|
|
|
this.userList = res.data.data
|
|
@@ -720,8 +731,8 @@ export default {
|
|
|
axios
|
|
|
.post('/cloudApi/stockDetail/pickingTrackingNumStatistics', {
|
|
|
type: this.type,
|
|
|
- beginTime: this.beginTime,
|
|
|
- endTime: this.endTime,
|
|
|
+ beginTime: this.params.beginTime,
|
|
|
+ endTime: this.params.endTime,
|
|
|
jobNo: this.jobNo
|
|
|
})
|
|
|
.then(res => {
|
|
@@ -730,8 +741,8 @@ export default {
|
|
|
axios
|
|
|
.post('/cloudApi/stockDetail/pickingTrackingList', {
|
|
|
type: this.type,
|
|
|
- beginTime: this.beginTime,
|
|
|
- endTime: this.endTime,
|
|
|
+ beginTime: this.params.beginTime,
|
|
|
+ endTime: this.params.endTime,
|
|
|
jobNo: this.jobNo
|
|
|
})
|
|
|
.then(res => {
|