|
@@ -21,18 +21,18 @@
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
<a-form-item label="客户">
|
|
|
- {{ salesOrderMain.cCusName }}
|
|
|
+ {{ salesOrderMain.ccusName }}
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="8">
|
|
|
- <a-form-item label="物料编号">
|
|
|
- {{ salesOrderMain.todo }}
|
|
|
+ <a-form-item label="物料编码">
|
|
|
+ {{ salesOrderMain.cinvCode }}
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
|
|
|
- <a-col :md="6" :sm="8">
|
|
|
+ <a-col :md="12" :sm="12">
|
|
|
<a-form-item label="物料名称">
|
|
|
- {{ salesOrderMain.CInvName }}
|
|
|
+ {{ salesOrderMain.cinvName }}
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
|
|
@@ -49,6 +49,7 @@
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="8">
|
|
|
<a-form-item label="交期">
|
|
|
+ <!-- TODO:日期 -->
|
|
|
{{ salesOrderMain.dpreDateBT }}
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
@@ -61,7 +62,7 @@
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
<a-form-item label="单价(原币)">
|
|
|
- {{ salesOrderMain.icostsum }}
|
|
|
+ {{ salesOrderMain.itaxUnitPrice }}
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
|
|
@@ -78,7 +79,7 @@
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="8">
|
|
|
<a-form-item label="总额(本币)">
|
|
|
- {{ salesOrderMain.iNatSum }}
|
|
|
+ {{ salesOrderMain.inatSum }}
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
|
|
@@ -96,7 +97,7 @@
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
<a-form-item label="累计开票数量">
|
|
|
- {{ salesOrderMain.iKPQuantity }}
|
|
|
+ {{ salesOrderMain.ikpquantity }}
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="8">
|
|
@@ -123,13 +124,13 @@
|
|
|
bordered
|
|
|
rowKey="id"
|
|
|
:loading="loading"
|
|
|
- :columns="purchaseColumns"
|
|
|
- :data-source="purchaseData"
|
|
|
+ :columns="CaiGouColumns"
|
|
|
+ :data-source="CaiGouData"
|
|
|
:pagination="false"
|
|
|
:scroll="{ x: 1500 }"
|
|
|
>
|
|
|
- <!-- 物料编号 -->
|
|
|
- <span slot="materialNum" slot-scope="text">
|
|
|
+ <!-- 物料编码 -->
|
|
|
+ <span slot="cinvCode" slot-scope="text">
|
|
|
<a>{{ text }}</a>
|
|
|
</span>
|
|
|
</a-table>
|
|
@@ -142,13 +143,13 @@
|
|
|
bordered
|
|
|
rowKey="id"
|
|
|
:loading="loading"
|
|
|
- :columns="outsourceColumns"
|
|
|
- :data-source="outsourceData"
|
|
|
+ :columns="weiwaiColumns"
|
|
|
+ :data-source="weiwaiData"
|
|
|
:pagination="false"
|
|
|
:scroll="{ x: 1500 }"
|
|
|
>
|
|
|
- <!-- 物料编号 弹框-->
|
|
|
- <span slot="materialNum" slot-scope="text">
|
|
|
+ <!-- 物料编码 弹框-->
|
|
|
+ <span slot="cinvCode" slot-scope="text">
|
|
|
<a>{{ text }}</a>
|
|
|
</span>
|
|
|
</a-table>
|
|
@@ -201,8 +202,8 @@
|
|
|
bordered
|
|
|
rowKey="id"
|
|
|
:loading="loading"
|
|
|
- :columns="materialCardColumns"
|
|
|
- :data-source="materialCardData"
|
|
|
+ :columns="cardColumns"
|
|
|
+ :data-source="cardData"
|
|
|
:pagination="false"
|
|
|
:scroll="{ x: 1500 }"
|
|
|
>
|
|
@@ -232,7 +233,7 @@ import moment from 'moment'
|
|
|
import outInDetailDataDrawer from '@views/reportForms/pro-progress-report/outInDetailDataDrawer.vue'
|
|
|
import packinglistFabricsDrawer from '@views/reportForms/pro-progress-report/packinglistFabricsDrawer.vue' //装箱单-面料(查看详情)
|
|
|
|
|
|
-// import { salesOrderAll } from '@api/reportForms/pro-progress-report.js'
|
|
|
+import { salesOrderDetails } from '@api/reportForms/pro-progress-report.js'
|
|
|
|
|
|
export default {
|
|
|
name: 'salesOrderDetailsDrawer', // 销售订单详情
|
|
@@ -243,7 +244,8 @@ export default {
|
|
|
loading: false, // 表格加载
|
|
|
visible: false, // 单个订单报表 抽屉
|
|
|
salesOrderMain: [], // 主表信息
|
|
|
- record: {}, //点击的销售订单对象(参数)
|
|
|
+ record: {}, //点击CaiGouData的销售订单对象(参数)
|
|
|
+
|
|
|
// 物料卡 查询条件
|
|
|
queryParam: {
|
|
|
pageNo: '', // 初始页
|
|
@@ -253,94 +255,83 @@ export default {
|
|
|
},
|
|
|
|
|
|
// 采购 表头
|
|
|
- purchaseColumns: [
|
|
|
- { title: '账套信息', width: 120, dataIndex: 'accountSetInfo', fixed: 'left', className: 'replacecolor' },
|
|
|
+ CaiGouColumns: [
|
|
|
+ { title: '账套信息', width: 120, dataIndex: 'accId', fixed: 'left', className: 'replacecolor' },
|
|
|
{
|
|
|
title: '采购订单号',
|
|
|
width: 160,
|
|
|
- dataIndex: 'purchaseOrderNum',
|
|
|
+ dataIndex: 'cpoid',
|
|
|
fixed: 'left',
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
- { title: '供应商', width: 120, dataIndex: 'supplier', className: 'replacecolor' },
|
|
|
{
|
|
|
- title: '物料编号',
|
|
|
+ title: '物料编码',
|
|
|
width: 120,
|
|
|
- dataIndex: 'materialNum',
|
|
|
+ dataIndex: 'cinvCode',
|
|
|
className: 'replacecolor',
|
|
|
fixed: 'left',
|
|
|
- customCell: this.materialNumCustomCell,
|
|
|
- scopedSlots: { customRender: 'materialNum' }
|
|
|
- },
|
|
|
- { title: '单价(本币)', width: 100, dataIndex: 'priceLocal', className: 'replacecolor' },
|
|
|
- { title: '物料名称', width: 210, dataIndex: 'materialName', className: 'replacecolor' },
|
|
|
- { title: '计划数量(LRP)', width: 160, dataIndex: 'planQuantity', className: 'replacecolor' },
|
|
|
- { title: '订单数量', width: 120, dataIndex: 'orderQuantity', className: 'replacecolor' },
|
|
|
- { title: '累计入库数量', width: 140, dataIndex: 'accumulativeInQuantity', className: 'replacecolor' },
|
|
|
- { title: '累计开票数量', width: 140, dataIndex: 'invoicesCumulativeNum', className: 'replacecolor' },
|
|
|
- { title: '累计开票金额', width: 140, dataIndex: 'cumulativeInvoiceAmount', className: 'replacecolor' },
|
|
|
- { title: '下游订单', width: 160, dataIndex: 'downstreamOrder', className: 'replacecolor' },
|
|
|
- { title: '使用数量', width: 140, dataIndex: 'usageQuantity', className: 'replacecolor' },
|
|
|
- { title: '余料', width: 100, dataIndex: 'oddments', fixed: 'right', className: 'replacecolor' }
|
|
|
- ],
|
|
|
- purchaseData: [
|
|
|
- {
|
|
|
- accountSetInfo: '宁波森语',
|
|
|
- purchaseOrderNum: 'SYA525-林辉',
|
|
|
- supplier: '林辉',
|
|
|
- materialNum: '0501000315',
|
|
|
- priceLocal: '0.353',
|
|
|
- materialName: '4.5CM黑色橡胶丝进口橡筋',
|
|
|
- planQuantity: '21879.84',
|
|
|
- orderQuantity: '21879.84',
|
|
|
- accumulativeInQuantity: '21879'
|
|
|
+ customCell: this.cinvCodeCustomCell,
|
|
|
+ scopedSlots: { customRender: 'cinvCode' }
|
|
|
},
|
|
|
- {},
|
|
|
- {}
|
|
|
+ { title: '供应商', width: 220, dataIndex: 'cvenName', className: 'replacecolor' },
|
|
|
+
|
|
|
+ { title: '单价(本币)', width: 140, dataIndex: 'inatUnitPrice', className: 'replacecolor' },
|
|
|
+ { title: '物料名称', width: 210, dataIndex: 'cinvName', className: 'replacecolor' },
|
|
|
+ { title: '计划数量(LRP)', width: 160, dataIndex: 'iquantityLrp', className: 'replacecolor' },
|
|
|
+ { title: '订单数量', width: 180, dataIndex: 'iquantity', className: 'replacecolor' },
|
|
|
+ { title: '累计入库数量', width: 140, dataIndex: 'ireceivedQTY', className: 'replacecolor' },
|
|
|
+ { title: '累计开票数量', width: 140, dataIndex: 'iinvQTY', className: 'replacecolor' },
|
|
|
+ { title: '累计开票金额', width: 140, dataIndex: 'iinvMoney', className: 'replacecolor' },
|
|
|
+ { title: '下游订单', width: 160, dataIndex: 'csocode', className: 'replacecolor' },
|
|
|
+ { title: '使用数量', width: 140, dataIndex: 'useQTY', className: 'replacecolor' },
|
|
|
+ { title: '余料', width: 100, dataIndex: 'surplusQty', fixed: 'right', className: 'replacecolor' }
|
|
|
],
|
|
|
+ CaiGouData: [],
|
|
|
|
|
|
// 委外 表头
|
|
|
- outsourceColumns: [
|
|
|
+ weiwaiColumns: [
|
|
|
{
|
|
|
title: '委外订单号',
|
|
|
width: 120,
|
|
|
- dataIndex: 'purchaseAboardOrderNum',
|
|
|
+ dataIndex: 'ccode',
|
|
|
fixed: 'left',
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
- { title: '供应商', width: 120, dataIndex: 'supplier', fixed: 'left', className: 'replacecolor' },
|
|
|
+ { title: '供应商', width: 220, dataIndex: 'cvenName', fixed: 'left', className: 'replacecolor' },
|
|
|
{
|
|
|
- title: '物料编号',
|
|
|
+ title: '物料编码',
|
|
|
width: 120,
|
|
|
- dataIndex: 'materialNum',
|
|
|
+ dataIndex: 'cinvCode',
|
|
|
fixed: 'left',
|
|
|
className: 'replacecolor',
|
|
|
- customCell: this.materialNumCustomCell,
|
|
|
- scopedSlots: { customRender: 'materialNum' }
|
|
|
+ customCell: this.cinvCodeCustomCell,
|
|
|
+ scopedSlots: { customRender: 'cinvCode' }
|
|
|
},
|
|
|
- { title: '物料名称', width: 210, dataIndex: 'materialName', className: 'replacecolor' },
|
|
|
- { title: '颜色', width: 120, dataIndex: 'color', className: 'replacecolor' },
|
|
|
- { title: '门幅', width: 120, dataIndex: 'larghezza', className: 'replacecolor' },
|
|
|
- { title: '单价(本币/原币)', width: 140, dataIndex: 'price', className: 'replacecolor' },
|
|
|
- { title: '计划数量(LRP)', width: 160, dataIndex: 'planQuantity', className: 'replacecolor' },
|
|
|
- { title: '订单数量', width: 120, dataIndex: 'orderQuantity', className: 'replacecolor' },
|
|
|
- { title: '累计入库数量', width: 140, dataIndex: 'accumulativeInQuantity', className: 'replacecolor' },
|
|
|
- { title: '累计开票数量', width: 140, dataIndex: 'invoicesCumulativeNum', className: 'replacecolor' },
|
|
|
- { title: '累计开票金额', width: 140, dataIndex: 'cumulativeInvoiceAmount', className: 'replacecolor' },
|
|
|
- { title: '下游订单', width: 160, dataIndex: 'downstreamOrder', className: 'replacecolor' },
|
|
|
- { title: '使用数量', width: 140, dataIndex: 'usageQuantity', className: 'replacecolor' },
|
|
|
- { title: '余下库存', width: 100, dataIndex: 'remainingInventory', className: 'replacecolor' },
|
|
|
- { title: '子件编号', width: 100, dataIndex: 'childNum', className: 'replacecolor' },
|
|
|
- { title: '子件名称', width: 100, dataIndex: 'childName', className: 'replacecolor' },
|
|
|
- { title: '子件应领数量', width: 140, dataIndex: 'receivedcdQuantity', className: 'replacecolor' },
|
|
|
- { title: '子件已领数量', width: 140, dataIndex: 'cdHadQuantity', className: 'replacecolor' },
|
|
|
- { title: '子件总成本', width: 140, dataIndex: 'cdTotalCost', className: 'replacecolor' },
|
|
|
- { title: '采购订单号', width: 160, dataIndex: 'purchaseOrderNum', fixed: 'right', className: 'replacecolor' }
|
|
|
+ { title: '物料名称', width: 320, dataIndex: 'cinvName', className: 'replacecolor' },
|
|
|
+ { title: '颜色', width: 180, dataIndex: 'color', className: 'replacecolor' },
|
|
|
+ { title: '门幅', width: 120, dataIndex: 'cfree4', className: 'replacecolor' },
|
|
|
+ { title: '单价(本币)', width: 140, dataIndex: 'inatUnitPrice', className: 'replacecolor' },
|
|
|
+ { title: '单价(原币)', width: 140, dataIndex: 'iunitPrice', className: 'replacecolor' },
|
|
|
+ { title: '计划数量(LRP)', width: 160, dataIndex: 'iquantityLrp', className: 'replacecolor' },
|
|
|
+ { title: '订单数量', width: 160, dataIndex: 'iquantity', className: 'replacecolor' },
|
|
|
+ { title: '累计入库数量', width: 140, dataIndex: 'ireceivedQTY', className: 'replacecolor' },
|
|
|
+ { title: '累计开票数量', width: 140, dataIndex: 'iinvQTY', className: 'replacecolor' },
|
|
|
+ { title: '累计开票金额', width: 140, dataIndex: 'iinvMoney', className: 'replacecolor' },
|
|
|
+ { title: '下游订单', width: 160, dataIndex: 'csocode', className: 'replacecolor' },
|
|
|
+ { title: '使用数量', width: 140, dataIndex: 'imaterialSendQty', className: 'replacecolor' },
|
|
|
+
|
|
|
+ { title: '余下库存(余料)', width: 140, dataIndex: 'surplusQty', className: 'replacecolor' },
|
|
|
+ { title: '子件编号', width: 140, dataIndex: 'cinvCodeZi', className: 'replacecolor' },
|
|
|
+ { title: '子件名称', width: 320, dataIndex: 'cinvNameZi', className: 'replacecolor' },
|
|
|
+ { title: '子件应领数量', width: 140, dataIndex: 'iquantityZi', className: 'replacecolor' },
|
|
|
+ { title: '子件已领数量', width: 140, dataIndex: 'isendQTY', className: 'replacecolor' },
|
|
|
+ { title: '子件总成本', width: 140, dataIndex: 'costZi', className: 'replacecolor' },
|
|
|
+ { title: '采购订单号', width: 160, dataIndex: 'purchaseCode', fixed: 'right', className: 'replacecolor' }
|
|
|
],
|
|
|
- outsourceData: [{ materialNum: 'N0201000666' }, {}],
|
|
|
+ weiwaiData: [],
|
|
|
|
|
|
// 物料卡 表头
|
|
|
- materialCardColumns: [
|
|
|
+ cardColumns: [
|
|
|
{
|
|
|
title: '计划单号',
|
|
|
width: 140,
|
|
@@ -369,37 +360,36 @@ export default {
|
|
|
{ title: 'what5', width: 140, dataIndex: 'what5', className: 'replacecolor' },
|
|
|
{ title: '备注', width: 210, dataIndex: 'note', fixed: 'right', className: 'replacecolor' }
|
|
|
],
|
|
|
- materialCardData: [{}, {}]
|
|
|
+ cardData: []
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
this.getDetails()
|
|
|
},
|
|
|
methods: {
|
|
|
- // 销售订单所有详情
|
|
|
+ // 销售订单详情
|
|
|
getDetails() {
|
|
|
this.$nextTick(() => {
|
|
|
- console.log('销售订单号', this.record.csocode)
|
|
|
- console.log('计划单号', this.record.planCode)
|
|
|
- console.log('款号', this.record.itemNumber)
|
|
|
- // console.log('物料编码', this.record.csocode)
|
|
|
- // salesOrderAll({
|
|
|
- // csocode: this.record.csocode,
|
|
|
- // planCode: this.record.planCode,
|
|
|
- // itemNumber: this.record.itemNumber,
|
|
|
- // todo: this.record.todo
|
|
|
- // }).then(res => {
|
|
|
- // if (res.success) {
|
|
|
- // console.log('销售订单详情返回所有数据', res.result)
|
|
|
- // this.salesOrderMain = res.result.record //主表信息
|
|
|
- // // 采购 委外 物料卡 信息在 res 什么地方???
|
|
|
- // }
|
|
|
- // })
|
|
|
+ salesOrderDetails({
|
|
|
+ color: this.record.color,
|
|
|
+ itemNumber: this.record.itemNumber,
|
|
|
+ marCode: this.record.cinvCode,
|
|
|
+ planCode: this.record.planCode,
|
|
|
+ soCode: this.record.csocode
|
|
|
+ }).then(res => {
|
|
|
+ if (res.success) {
|
|
|
+ console.log('销售订单详情所有数据', res.result)
|
|
|
+ this.salesOrderMain = res.result //主表信息
|
|
|
+ this.CaiGouData = res.result.productionScheduleCaiGou //采购
|
|
|
+ this.weiwaiData = res.result.productionScheduleWeiWai //委外
|
|
|
+ this.cardData = res.result.productionScheduleWeiWai //物料卡
|
|
|
+ }
|
|
|
+ })
|
|
|
})
|
|
|
},
|
|
|
|
|
|
// 采购、委外 【物料编号】 抽屉--打开【出入库详细数据】
|
|
|
- materialNumCustomCell(record) {
|
|
|
+ cinvCodeCustomCell(record) {
|
|
|
return {
|
|
|
on: {
|
|
|
click: event => {
|
|
@@ -461,4 +451,9 @@ export default {
|
|
|
/deep/ .ant-drawer-body {
|
|
|
padding: 10px;
|
|
|
}
|
|
|
+
|
|
|
+// 回显label文字
|
|
|
+/deep/.ant-form-item-label > label {
|
|
|
+ font-weight: 700;
|
|
|
+}
|
|
|
</style>
|