|
@@ -8,38 +8,32 @@
|
|
|
<a-row :gutter="24">
|
|
|
<a-col :md="6" :sm="8">
|
|
|
<a-form-item label="销售订单号">
|
|
|
- <a-input placeholder="请输入订单号" v-model="queryParam.csocode"></a-input>
|
|
|
+ <a-input placeholder="请输入订单号" v-model="queryParam.CSOCode"></a-input>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
<a-form-item label="部门">
|
|
|
- <a-input placeholder="请输入部门" v-model="queryParam.cdepName"></a-input>
|
|
|
+ <a-input placeholder="请输入部门" v-model="queryParam.CDepName"></a-input>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
<a-form-item label="物料名称">
|
|
|
- <a-input placeholder="请输入物料名称" v-model="queryParam.cinvName"></a-input>
|
|
|
+ <a-input placeholder="请输入物料名称" v-model="queryParam.CInvName"></a-input>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
|
|
|
<template v-if="toggleSearchStatus">
|
|
|
<a-col :md="6" :sm="8">
|
|
|
<a-form-item label="成衣加工厂">
|
|
|
- <a-input placeholder="请输入物料名称" v-model="queryParam.cdefine12"></a-input>
|
|
|
- <!-- <a-select placeholder="请选择成衣加工厂" v-model="queryParam.cdefine12">
|
|
|
- <a-select-option :value="''">请选择</a-select-option>
|
|
|
- <a-select-option :value="0">成衣加工厂1</a-select-option>
|
|
|
- <a-select-option :value="1">成衣加工厂2</a-select-option>
|
|
|
- <a-select-option :value="2">成衣加工厂3</a-select-option>
|
|
|
- </a-select> -->
|
|
|
+ <a-input placeholder="请输入物料名称" v-model="queryParam.CDefine12"></a-input>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
<a-form-item label="业务员">
|
|
|
- <a-input placeholder="请输入业务员" v-model="queryParam.cpersonName"></a-input>
|
|
|
+ <a-input placeholder="请输入业务员" v-model="queryParam.CPersonName"></a-input>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
|
|
@@ -51,7 +45,13 @@
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
<a-form-item label="订单日期" has-feedback>
|
|
|
- <a-date-picker style="width: 100%" v-model="queryParam.dDate"></a-date-picker>
|
|
|
+ <a-date-picker
|
|
|
+ style="width: 100%"
|
|
|
+ format="YYYY-MM-DD"
|
|
|
+ placeholder="请选择订单日期"
|
|
|
+ v-model="queryParam.DDate"
|
|
|
+ @change="onDateChange"
|
|
|
+ ></a-date-picker>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
|
|
@@ -63,7 +63,13 @@
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
<a-form-item label="交期" has-feedback>
|
|
|
- <a-date-picker style="width: 100%" v-model="queryParam.dPreDateBT"></a-date-picker>
|
|
|
+ <a-date-picker
|
|
|
+ style="width: 100%"
|
|
|
+ format="YYYY-MM-DD"
|
|
|
+ placeholder="请选择交期"
|
|
|
+ @change="onDateChange"
|
|
|
+ v-model="queryParam.DPreDateBT"
|
|
|
+ ></a-date-picker>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
</template>
|
|
@@ -97,19 +103,19 @@
|
|
|
@change="handleTableChange"
|
|
|
>
|
|
|
<!-- 销售订单号 链接-->
|
|
|
-
|
|
|
<span slot="csocode" slot-scope="text">
|
|
|
<a>{{ text }}</a>
|
|
|
</span>
|
|
|
|
|
|
- <!-- 图片 -->
|
|
|
- <span slot="imageslot" slot-scope="text, record">
|
|
|
- <img style="width:50px;heigth:50px" :src="record.image" />
|
|
|
+ <!-- 图片 弹框-->
|
|
|
+ <span slot="imageslot">
|
|
|
+ <a>查看</a>
|
|
|
+ <!-- <img style="width:50px;heigth:50px" :src="record.image" /> -->
|
|
|
</span>
|
|
|
</a-table>
|
|
|
</a-card>
|
|
|
<!-- 单个订单报表 抽屉 -->
|
|
|
- <singleOrderReport-drawer ref="singleOrderReportDrawer" @ok="modalFormOk"></singleOrderReport-drawer>
|
|
|
+ <salesOrderDetails-drawer ref="salesOrderDetailsDrawer" @ok="modalFormOk"></salesOrderDetails-drawer>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -117,46 +123,50 @@
|
|
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
|
|
import JEllipsis from '@/components/jeecg/JEllipsis'
|
|
|
import moment from 'moment'
|
|
|
-import singleOrderReportDrawer from '@views/reportForms/pro-progress-report/singleOrderReportDrawer.vue'
|
|
|
-import { proProgressList } from '@api/reportForms/pro-progress-report.js'
|
|
|
+
|
|
|
+import salesOrderDetailsDrawer from '@views/reportForms/pro-progress-report/salesOrderDetailsDrawer.vue'
|
|
|
+
|
|
|
+import { proProgressList, getImg } from '@api/reportForms/pro-progress-report.js'
|
|
|
|
|
|
export default {
|
|
|
name: 'ProProgressReport', // 生产进度报表
|
|
|
mixins: [JeecgListMixin],
|
|
|
- components: { JEllipsis, moment, singleOrderReportDrawer },
|
|
|
+ components: { JEllipsis, moment, salesOrderDetailsDrawer },
|
|
|
|
|
|
data() {
|
|
|
- let ellipsis = (v, l = 20) => <j-ellipsis value={v} length={l} /> // 省略
|
|
|
+ let ellipsis = (v, l = 20) => <j-ellipsis value={v} length={l} />
|
|
|
|
|
|
return {
|
|
|
description: '生产进度报表',
|
|
|
// 表头
|
|
|
proProgressColumns: [
|
|
|
- {
|
|
|
- title: '部门',
|
|
|
- width: 100,
|
|
|
- dataIndex: 'cdepName',
|
|
|
- fixed: 'left',
|
|
|
- className: 'replacecolor'
|
|
|
- },
|
|
|
- { title: '业务员', width: 90, fixed: 'left', dataIndex: 'cpersonName', className: 'replacecolor' },
|
|
|
{
|
|
|
title: '销售订单号',
|
|
|
width: 210,
|
|
|
fixed: 'left',
|
|
|
+ align: 'left',
|
|
|
dataIndex: 'csocode',
|
|
|
className: 'replacecolor',
|
|
|
customCell: this.showDrawer,
|
|
|
scopedSlots: { customRender: 'csocode' }
|
|
|
},
|
|
|
- { title: '计划单号', width: 180, dataIndex: 'planCode', className: 'replacecolor' },
|
|
|
+ {
|
|
|
+ title: '部门',
|
|
|
+ width: 100,
|
|
|
+ dataIndex: 'cdepName',
|
|
|
+ fixed: 'left',
|
|
|
+ className: 'replacecolor'
|
|
|
+ },
|
|
|
+ { title: '业务员', width: 90, fixed: 'left', dataIndex: 'cpersonName', className: 'replacecolor' },
|
|
|
+
|
|
|
+ { title: '计划单号', width: 280, dataIndex: 'planCode', className: 'replacecolor' },
|
|
|
{
|
|
|
title: '成衣加工厂',
|
|
|
- width: 120,
|
|
|
+ width: 220,
|
|
|
dataIndex: 'cdefine12',
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
- { title: '物料编号(多个分行显示)', width: 210, dataIndex: 'what', className: 'replacecolor' },
|
|
|
+ { title: '物料编号(多个分行显示)', width: 220, dataIndex: 'what', className: 'replacecolor' },
|
|
|
{
|
|
|
title: '物料名称',
|
|
|
width: 320,
|
|
@@ -164,7 +174,7 @@ export default {
|
|
|
customRender: t => ellipsis(t),
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
- { title: '款号', width: 90, dataIndex: 'itemNumber', className: 'replacecolor' },
|
|
|
+ { title: '款号', width: 100, dataIndex: 'itemNumber', className: 'replacecolor' },
|
|
|
{ title: '颜色', width: 200, dataIndex: 'color', customRender: t => ellipsis(t), className: 'replacecolor' },
|
|
|
// {
|
|
|
// title: '创建时间',
|
|
@@ -194,11 +204,12 @@ export default {
|
|
|
{ title: '累计开票数量', width: 160, dataIndex: 'ikpquantity', className: 'replacecolor' },
|
|
|
{
|
|
|
title: '图片',
|
|
|
- width: 120,
|
|
|
+ width: 90,
|
|
|
dataIndex: 'image',
|
|
|
- scopedSlots: { customRender: 'imageslot' },
|
|
|
+ customCell: this.picShow,
|
|
|
fixed: 'right',
|
|
|
- className: 'replacecolor'
|
|
|
+ className: 'replacecolor',
|
|
|
+ scopedSlots: { customRender: 'imageslot' }
|
|
|
},
|
|
|
{ title: '附件', width: 120, dataIndex: 'accessory', fixed: 'right', className: 'replacecolor' }
|
|
|
],
|
|
@@ -228,6 +239,7 @@ export default {
|
|
|
this.getproProgressList()
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 分页查询 生产进度列表
|
|
|
getproProgressList() {
|
|
|
this.$nextTick(() => {
|
|
|
proProgressList(this.queryParam).then(res => {
|
|
@@ -243,41 +255,59 @@ export default {
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
- // 查询
|
|
|
- searchQuery() {
|
|
|
- this.getproProgressList()
|
|
|
- },
|
|
|
- searchReset() {
|
|
|
- this.queryParam = {}
|
|
|
- this.getproProgressList()
|
|
|
- },
|
|
|
-
|
|
|
// 【销售订单号】 抽屉
|
|
|
showDrawer(record) {
|
|
|
return {
|
|
|
on: {
|
|
|
click: event => {
|
|
|
- console.log('点击了【销售订单号】--【单个订单报表】')
|
|
|
- this.$refs.singleOrderReportDrawer.visible = true
|
|
|
+ console.log('点击的【销售订单号】', record)
|
|
|
+ this.$refs.salesOrderDetailsDrawer.visible = true
|
|
|
+ console.log('此处只打开抽屉,方法在抽屉页面')
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
+ // 图片 查看
|
|
|
+ picShow(record) {
|
|
|
+ return {
|
|
|
+ on: {
|
|
|
+ click: event => {
|
|
|
+ console.log('【查看】的图片ID', record.pictureId)
|
|
|
+ this.$nextTick(() => {
|
|
|
+ getImg({ pictureId: record.pictureId }).then(res => {
|
|
|
+ if (res.success) {
|
|
|
+ console.log('图片返回结果', res.result)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+
|
|
|
+ // this.$refs.salesOrderDetails.visible = true
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ // 查询
|
|
|
+ searchQuery() {
|
|
|
+ this.getproProgressList()
|
|
|
+ },
|
|
|
+ searchReset() {
|
|
|
+ this.queryParam = {}
|
|
|
+ this.getproProgressList()
|
|
|
+ },
|
|
|
|
|
|
// 分页变化时触发
|
|
|
handleTableChange(pagination, filters, sorter) {
|
|
|
// console.log('分页器信息', pagination)
|
|
|
- if (Object.keys(sorter).length > 0) {
|
|
|
- this.isorter.column = sorter.field
|
|
|
- this.isorter.order = sorter.order == 'ascend' ? 'asc' : 'desc'
|
|
|
- }
|
|
|
- console.log('sorter', sorter)
|
|
|
this.queryParam.pageNo = pagination.current
|
|
|
this.getproProgressList()
|
|
|
+ },
|
|
|
+ // 查询条件 订单日期转换成字符串并赋值
|
|
|
+ onDateChange(value, dateString) {
|
|
|
+ this.queryParam.dDate = dateString
|
|
|
+ this.queryParam.DPreDateBT = dateString
|
|
|
}
|
|
|
- },
|
|
|
- computed: {},
|
|
|
- mounted() {}
|
|
|
+ }
|
|
|
}
|
|
|
</script>
|
|
|
<style lang="less" scoped>
|