|
@@ -13,7 +13,7 @@
|
|
|
placeholder="请选择开始年月"
|
|
|
format="YYYY-MM"
|
|
|
style="width:100%;"
|
|
|
- v-model="queryParam.startYearMonth"
|
|
|
+ v-model="queryParam.beginDate"
|
|
|
/>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
@@ -24,7 +24,7 @@
|
|
|
placeholder="请选择结束年月"
|
|
|
format="YYYY-MM"
|
|
|
style="width:100%;"
|
|
|
- v-model="queryParam.endYearMonth"
|
|
|
+ v-model="queryParam.endDate"
|
|
|
/>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
@@ -130,7 +130,7 @@
|
|
|
>
|
|
|
<!-- 操作 -->
|
|
|
<span slot="operationSlot" slot-scope="text, record">
|
|
|
- <a-button type="primary" @click="lineDetail">明细</a-button>
|
|
|
+ <a-button type="primary" @click="lineDetail(record)">明细</a-button>
|
|
|
</span>
|
|
|
</a-table>
|
|
|
</a-card>
|
|
@@ -151,7 +151,7 @@ import emailMsgModal from '@views/reportForms/full-rate-table/emailMsgModal.vue'
|
|
|
import monthChartModal from '@views/reportForms/full-rate-table/monthChartModal.vue'
|
|
|
import departmentChartModal from '@views/reportForms/full-rate-table/departmentChartModal.vue'
|
|
|
import Detail from '@views/reportForms/full-rate-table/detail.vue'
|
|
|
-import { fullRateList } from '@api/reportForms/full-rate-table'
|
|
|
+import { fullRateList,fullRateDestail } from '@api/reportForms/full-rate-table'
|
|
|
export default {
|
|
|
name: 'Fullratetable', // 齐套率报表
|
|
|
mixins: [JeecgListMixin],
|
|
@@ -305,26 +305,13 @@ export default {
|
|
|
}
|
|
|
],
|
|
|
fullrateData: [
|
|
|
- {
|
|
|
- sourceOrderNo: 'AW21-PRU-19081-CHARCOAL-PH2RPT',
|
|
|
- orderNum: 'SYM632',
|
|
|
- orderQuantity: '570',
|
|
|
- color: '80#麻灰 CHARCOAL',
|
|
|
- inventoryName: 'PRI D6 主标 PM3001A',
|
|
|
- cinvcode: '0600000054',
|
|
|
- estimatedShipDate: '2021/9/24',
|
|
|
- outRate: '100',
|
|
|
- outQuantityOnTime: '3,240.00',
|
|
|
- fullRate: '100.00'
|
|
|
- },
|
|
|
- {},
|
|
|
- {},
|
|
|
- {}
|
|
|
],
|
|
|
loading: false, // 加载状态
|
|
|
|
|
|
// 查询条件
|
|
|
queryParam: {
|
|
|
+ beginDate:moment(new Date()).startOf("month").format("YYYY-MM-DD"),
|
|
|
+ endDate:moment(new Date()).endOf("month").format("YYYY-MM-DD")
|
|
|
},
|
|
|
|
|
|
url: {
|
|
@@ -345,19 +332,20 @@ export default {
|
|
|
this.loadingChart()
|
|
|
},
|
|
|
methods: {
|
|
|
+ moment,
|
|
|
getfullrateData(){
|
|
|
this.$nextTick(() => {
|
|
|
fullRateList(this.queryParam).then(res => {
|
|
|
+ debugger
|
|
|
if (res.success) {
|
|
|
- debugger
|
|
|
- // that.orderListData = res.result.records;
|
|
|
- // that.pagination = {
|
|
|
- // total: res.result.total,
|
|
|
- // current: res.result.current,
|
|
|
- // pageSize: res.result.size
|
|
|
- // }
|
|
|
+ this.fullrateData = res.result.records;
|
|
|
+ this.pagination = {
|
|
|
+ total: res.result.total,
|
|
|
+ current: res.result.current,
|
|
|
+ pageSize: res.result.size
|
|
|
+ }
|
|
|
}else{
|
|
|
- that.$message.error(res.message);
|
|
|
+ this.$message.error(res.message);
|
|
|
}
|
|
|
|
|
|
})
|
|
@@ -384,15 +372,35 @@ export default {
|
|
|
},
|
|
|
|
|
|
searchQuery() {
|
|
|
- // this.getAnnList() // 渲染公告
|
|
|
+ if(this.queryParam.beginDate !=='' && this.queryParam.beginDate){
|
|
|
+ this.queryParam.beginDate = moment(this.queryParam.beginDate).startOf("month").format("YYYY-MM-DD");
|
|
|
+ }
|
|
|
+ if(this.queryParam.endDate !=='' && this.queryParam.endDate){
|
|
|
+ this.queryParam.endDate = moment(this.queryParam.endDate).endOf("month").format("YYYY-MM-DD");
|
|
|
+ }
|
|
|
+ this.getfullrateData()
|
|
|
},
|
|
|
// 重置
|
|
|
searchReset() {
|
|
|
this.queryParam = {}
|
|
|
- // this.getAnnList()
|
|
|
+ this.getfullrateData()
|
|
|
},
|
|
|
- lineDetail(){
|
|
|
- this.$refs.detail.detailModVis = true
|
|
|
+ lineDetail(record){
|
|
|
+ var iSOsID = record.soIDsID.toString()
|
|
|
+ fullRateDestail({iSOsID}).then(res => {
|
|
|
+ if (res.success) {
|
|
|
+ this.$refs.detail.detailModVis = true
|
|
|
+ this.$refs.detail.detailData = res.result.record
|
|
|
+ this.pagination = {
|
|
|
+ total: res.result.total,
|
|
|
+ current: res.result.current,
|
|
|
+ pageSize: res.result.size
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ this.$message.error(res.message);
|
|
|
+ }
|
|
|
+
|
|
|
+ })
|
|
|
},
|
|
|
|
|
|
// 选中行
|