|
|
@@ -62,19 +62,18 @@
|
|
|
</DkFormItem>
|
|
|
<!--备注-->
|
|
|
<DkFormItem prop="remarks">
|
|
|
- <InputPop ref="remarks" v-model="ordData.remarks"/>
|
|
|
+ <InputPop ref="remarks" v-model="ordData.remarks":readonly="true"/>
|
|
|
</DkFormItem>
|
|
|
</DkForm>
|
|
|
</DkPanel>
|
|
|
<!--商品信息-->
|
|
|
<DkPanel prop="goodsInformation">
|
|
|
- <div id="pur-order" ref="pur-order" slot="content">
|
|
|
+ <div id="ord-order" ref="ord-order" slot="content">
|
|
|
<EditTable v-if="ordFlag"
|
|
|
ref="orderItemTable"
|
|
|
- majorField="ordItemId"
|
|
|
:data="orderItemList"
|
|
|
:columns="orderItemColumns"
|
|
|
- :height="400"
|
|
|
+ :height=this.tableHeight
|
|
|
:freeze="false"
|
|
|
:show-footer="true"
|
|
|
:delete-flag="false"
|
|
|
@@ -83,55 +82,88 @@
|
|
|
</div>
|
|
|
</DkPanel>
|
|
|
</DkCollapse>
|
|
|
- <!-- 采购入库单-->
|
|
|
- <DkCollapse @on-change="changeCollapse" ref="collapse" v-if="this.tabsModel ==='purEnter' ">
|
|
|
- <DkTabs v-model="tabsModel1" :options="tabsOptions1" @on-click="tabsClick1"></DkTabs>
|
|
|
+ <!-- 出库单-->
|
|
|
+ <DkCollapse @on-change="changeCollapse" ref="collapse" v-if="this.tabsModel ==='outbound' ">
|
|
|
+ <DkTabs v-model="tabsModelOut" :options="tabsOptionsOut" @on-click="tabsClickOut"></DkTabs>
|
|
|
<DkPanel prop="essentialInformation">
|
|
|
<!-- 单据信息 -->
|
|
|
- <DkForm slot="content" ref="formInline" v-model="purEntryData"
|
|
|
+ <DkForm slot="content" ref="formInline" v-model="ordOutboundData"
|
|
|
style="width:100%" :label-max-words="5">
|
|
|
- <!--供应商-->
|
|
|
- <DkFormItem prop="supId" :label="$t('supplierName')" :required="true">
|
|
|
- <InputPop ref="purNo" v-model="purEntryData.supplierName" :readonly="true"/>
|
|
|
+ <!--出库单号-->
|
|
|
+ <DkFormItem prop="outNo">
|
|
|
+ <InputPop ref="outNo" v-model="ordOutboundData.outNo" :readonly="true"/>
|
|
|
</DkFormItem>
|
|
|
- <!--收货仓库-->
|
|
|
- <DkFormItem prop="whId" :label="$t('wareHouse')" :required="true">
|
|
|
- <InputPop ref="purNo" v-model="purEntryData.whName" :readonly="true"/>
|
|
|
+ <!--客户电话-->
|
|
|
+ <DkFormItem prop="cusPhone">
|
|
|
+ <InputPop ref="cusPhone" :disabled="true" v-model="ordOutboundData.cusPhone"/>
|
|
|
</DkFormItem>
|
|
|
- <!-- 采购人 -->
|
|
|
- <DkFormItem prop="makingUser" :label="'采购人'">
|
|
|
- <InputPop ref="purNo" v-model="purEntryData.makeStaffName" :readonly="true"/>
|
|
|
+ <!--客户名称-->
|
|
|
+ <DkFormItem prop="cusName">
|
|
|
+ <InputPop ref="cusName" :disabled="true" v-model="ordOutboundData.cusName"/>
|
|
|
</DkFormItem>
|
|
|
- <!--部门-->
|
|
|
- <DkFormItem prop="orgId" :label="$t('department')">
|
|
|
- <InputPop ref="purNo" v-model="purEntryData.orgName" :readonly="true"/>
|
|
|
+ <!--客户区域-->
|
|
|
+ <DkFormItem prop="addressName" >
|
|
|
+ <InputPop ref="addressName" v-model="ordData.addressName" :readonly="true"/>
|
|
|
</DkFormItem>
|
|
|
- <!--来源单号-->
|
|
|
- <DkFormItem prop="fromNo" :label="$t('fromNo')">
|
|
|
- <InputPop ref="fromNo" v-model="purEntryData.fromNo" :readonly="true"/>
|
|
|
+ <!--门牌号-->
|
|
|
+ <DkFormItem prop="addressNo" >
|
|
|
+ <InputPop ref="addressNo" v-model="ordData.addressNo":readonly="true"/>
|
|
|
</DkFormItem>
|
|
|
- <!--入库日期-->
|
|
|
- <DkFormItem prop="intoDate" :label="$t('intoDate')">
|
|
|
- <DatePickerPop v-model="purEntryData.intoDate"
|
|
|
- :placeholder="$t('inputWords',{'search-name':$t('intoDate')})"
|
|
|
- type="date" :short-cut-flag="true" :readonly="true"/>
|
|
|
+ <!--详细地址-->
|
|
|
+ <DkFormItem prop="addressFull" >
|
|
|
+ <InputPop ref="addressFull" v-model="ordData.addressFull":readonly="true"/>
|
|
|
</DkFormItem>
|
|
|
- <!--备注-->
|
|
|
+ <!--联系人-->
|
|
|
+ <DkFormItem prop="contactName">
|
|
|
+ <InputPop ref="contactName" v-model="ordData.contactName" :readonly="true"/>
|
|
|
+ </DkFormItem>
|
|
|
+ <!--联系电话-->
|
|
|
+ <DkFormItem prop="contactPhone">
|
|
|
+ <InputPop ref="contactPhone" v-model="ordData.contactPhone" :readonly="true"/>
|
|
|
+ </DkFormItem>
|
|
|
+ <!--业务部门-->
|
|
|
+ <DkFormItem prop="orgName" >
|
|
|
+ <InputPop ref="orgName" v-model="ordData.orgName" :readonly="true"/>
|
|
|
+ </DkFormItem>
|
|
|
+ <!--业务员-->
|
|
|
+ <DkFormItem prop="staffName" >
|
|
|
+ <InputPop ref="staffName" v-model="ordData.staffName" :readonly="true"/>
|
|
|
+ </DkFormItem>
|
|
|
+ <!--出库日期-->
|
|
|
+ <DkFormItem prop="outDate" :data-type="$config.dataType.date">
|
|
|
+ <DatePickerPop v-model="ordOutboundData.outDate" :readonly="true"/>
|
|
|
+ </DkFormItem>
|
|
|
+ <!--总出库中数量-->
|
|
|
+ <DkFormItem prop="outingQtySum" >
|
|
|
+ <InputNumber ref="outingQtySum" v-model="ordData.outingQtySum" :readonly="true"/>
|
|
|
+ </DkFormItem>
|
|
|
+ <!--总已出库数量-->
|
|
|
+ <DkFormItem prop="outQtySum">
|
|
|
+ <InputNumber ref="outQtySum" v-model="ordData.outQtySum" :readonly="true"/>
|
|
|
+ </DkFormItem>
|
|
|
+ <!--自动出库标识-->
|
|
|
+ <DkFormItem prop="autoOutFlag" >
|
|
|
+ <template>
|
|
|
+ <i-switch v-model="ordOutboundData.flgAutoHandle" :disabled="true">
|
|
|
+ <span slot="open"></span>
|
|
|
+ <span slot="close"></span>
|
|
|
+ </i-switch>
|
|
|
+ </template>
|
|
|
+ </DkFormItem>
|
|
|
+ <!--单据备注-->
|
|
|
<DkFormItem prop="remarks">
|
|
|
- <InputPop ref="remarks" v-model="purEntryData.remarks"
|
|
|
- maxlength=500 textareaFlag :readonly="true"/>
|
|
|
+ <InputPop ref="remarks" v-model="ordOutboundData.remarks" :readonly="true"/>
|
|
|
</DkFormItem>
|
|
|
</DkForm>
|
|
|
</DkPanel>
|
|
|
<!--商品信息-->
|
|
|
<DkPanel prop="goodsInformation">
|
|
|
- <div id="pur-enter" ref="pur-enter" slot="content">
|
|
|
- <EditTable v-if="purEntryFlag"
|
|
|
- ref="purEntryTable"
|
|
|
- majorField="intoItemId"
|
|
|
- :data="purEntryItemList"
|
|
|
- :columns="purEntryColumns"
|
|
|
- :height="400"
|
|
|
+ <div id="ord-outbound" ref="ord-outbound" slot="content">
|
|
|
+ <EditTable v-if="ordOutboundFlag"
|
|
|
+ ref="ordOutboundTable"
|
|
|
+ :data="ordOutboundItemList"
|
|
|
+ :columns="ordOutboundItemColumns"
|
|
|
+ :height=this.tableHeight
|
|
|
:freeze="false"
|
|
|
:show-footer="true"
|
|
|
:delete-flag="false"
|
|
|
@@ -140,55 +172,79 @@
|
|
|
</div>
|
|
|
</DkPanel>
|
|
|
</DkCollapse>
|
|
|
- <!-- 采购退货单-->
|
|
|
- <DkCollapse @on-change="changeCollapse" ref="collapse" v-if="this.tabsModel ==='purReturn' ">
|
|
|
- <DkTabs v-model="tabsModel2" :options="tabsOptions2" @on-click="tabsClick2"></DkTabs>
|
|
|
+ <!-- 退货单-->
|
|
|
+ <DkCollapse @on-change="changeCollapse" ref="collapse" v-if="this.tabsModel ==='ordOutReturn' ">
|
|
|
+ <DkTabs v-model="tabsModelOutReturn" :options="tabsOptionsOutReturn" @on-click="tabsClickOutReturn"></DkTabs>
|
|
|
<DkPanel prop="essentialInformation">
|
|
|
<!-- 单据信息 -->
|
|
|
- <DkForm slot="content" ref="formInline" v-model="purReturnData"
|
|
|
+ <DkForm slot="content" ref="formInline" v-model="ordOutReturnData"
|
|
|
style="width:100%" :label-max-words="5">
|
|
|
- <!--供应商-->
|
|
|
- <DkFormItem prop="supId" :label="$t('supplierName')" :required="true">
|
|
|
- <InputPop ref="purNo" v-model="purReturnData.supName" :readonly="true"/>
|
|
|
+ <!--出库单号-->
|
|
|
+ <DkFormItem prop="outNo">
|
|
|
+ <InputPop ref="outNo" v-model="ordOutReturnData.outNo" :readonly="true"/>
|
|
|
</DkFormItem>
|
|
|
- <!--收货仓库-->
|
|
|
- <DkFormItem prop="whId" :label="$t('wareHouse')" :required="true">
|
|
|
- <InputPop ref="purNo" v-model="purReturnData.whName" :readonly="true"/>
|
|
|
+ <!--客户电话-->
|
|
|
+ <DkFormItem prop="cusPhone">
|
|
|
+ <InputPop ref="cusPhone" :disabled="true" v-model="ordOutReturnData.cusPhone"/>
|
|
|
</DkFormItem>
|
|
|
- <!-- 采购人 -->
|
|
|
- <DkFormItem prop="makingUser" :label="'采购人'">
|
|
|
- <InputPop ref="purNo" v-model="purReturnData.makeStaffName" :readonly="true"/>
|
|
|
+ <!--客户名称-->
|
|
|
+ <DkFormItem prop="cusName">
|
|
|
+ <InputPop ref="cusName" :disabled="true" v-model="ordOutReturnData.cusName"/>
|
|
|
</DkFormItem>
|
|
|
- <!--部门-->
|
|
|
- <DkFormItem prop="orgId" :label="$t('department')">
|
|
|
- <InputPop ref="purNo" v-model="purReturnData.orgName" :readonly="true"/>
|
|
|
+ <!--客户区域-->
|
|
|
+ <DkFormItem prop="addressName" >
|
|
|
+ <InputPop ref="addressName" v-model="ordOutReturnData.addressName" :readonly="true"/>
|
|
|
</DkFormItem>
|
|
|
- <!--来源单号-->
|
|
|
- <DkFormItem prop="fromNo" :label="$t('fromNo')">
|
|
|
- <InputPop ref="fromNo" v-model="purReturnData.fromNo" :readonly="true"/>
|
|
|
+ <!--门牌号-->
|
|
|
+ <DkFormItem prop="addressNo" >
|
|
|
+ <InputPop ref="addressNo" v-model="ordOutReturnData.addressNo":readonly="true"/>
|
|
|
</DkFormItem>
|
|
|
- <!--入库日期-->
|
|
|
- <DkFormItem prop="intoDate" :label="$t('intoDate')">
|
|
|
- <DatePickerPop v-model="purReturnData.intoDate"
|
|
|
- :placeholder="$t('inputWords',{'search-name':$t('intoDate')})"
|
|
|
- type="date" :short-cut-flag="true" :readonly="true"/>
|
|
|
+ <!--详细地址-->
|
|
|
+ <DkFormItem prop="addressFull" >
|
|
|
+ <InputPop ref="addressFull" v-model="ordOutReturnData.addressFull":readonly="true"/>
|
|
|
</DkFormItem>
|
|
|
- <!--备注-->
|
|
|
+ <!--联系人-->
|
|
|
+ <DkFormItem prop="contactName">
|
|
|
+ <InputPop ref="contactName" v-model="ordOutReturnData.contactName" :readonly="true"/>
|
|
|
+ </DkFormItem>
|
|
|
+ <!--联系电话-->
|
|
|
+ <DkFormItem prop="contactPhone">
|
|
|
+ <InputPop ref="contactPhone" v-model="ordOutReturnData.contactPhone" :readonly="true"/>
|
|
|
+ </DkFormItem>
|
|
|
+ <!--业务部门-->
|
|
|
+ <DkFormItem prop="orgName" >
|
|
|
+ <InputPop ref="orgName" v-model="ordOutReturnData.orgName" :readonly="true"/>
|
|
|
+ </DkFormItem>
|
|
|
+ <!--业务员-->
|
|
|
+ <DkFormItem prop="staffName" >
|
|
|
+ <InputPop ref="staffName" v-model="ordOutReturnData.staffName" :readonly="true"/>
|
|
|
+ </DkFormItem>
|
|
|
+ <!--出库日期-->
|
|
|
+ <DkFormItem prop="outDate" :data-type="$config.dataType.date">
|
|
|
+ <DatePickerPop v-model="ordOutReturnData.outDate" :readonly="true"/>
|
|
|
+ </DkFormItem>
|
|
|
+ <!--总出库中数量-->
|
|
|
+ <DkFormItem prop="outingQtySum" >
|
|
|
+ <InputNumber ref="outingQtySum" v-model="ordOutReturnData.outingQtySum" :readonly="true"/>
|
|
|
+ </DkFormItem>
|
|
|
+ <!--总已出库数量-->
|
|
|
+ <DkFormItem prop="outQtySum">
|
|
|
+ <InputNumber ref="outQtySum" v-model="ordOutReturnData.outQtySum" :readonly="true"/>
|
|
|
+ </DkFormItem>
|
|
|
+ <!--单据备注-->
|
|
|
<DkFormItem prop="remarks">
|
|
|
- <InputPop ref="remarks" v-model="purReturnData.remarks"
|
|
|
- maxlength=500 textareaFlag :readonly="true"/>
|
|
|
+ <InputPop ref="remarks" v-model="ordOutReturnData.remarks" :readonly="true"/>
|
|
|
</DkFormItem>
|
|
|
</DkForm>
|
|
|
</DkPanel>
|
|
|
<!--商品信息-->
|
|
|
<DkPanel prop="goodsInformation">
|
|
|
- <div id="pur-return" ref="pur-return" slot="content">
|
|
|
- <EditTable v-if="purReturnFlag"
|
|
|
- ref="purReturnable"
|
|
|
- majorField="retuenItemId"
|
|
|
- :data="purReturnItemList"
|
|
|
- :columns="purReturnColumns"
|
|
|
- :height="400"
|
|
|
+ <div id="ord-return" ref="ord-return" slot="content">
|
|
|
+ <EditTable v-if="ordOutReturnFlag"
|
|
|
+ ref="outRetrunTable"
|
|
|
+ :data="ordOutRetrunItemList"
|
|
|
+ :columns="ordOutRetrunItemColumns"
|
|
|
+ :height=this.tableHeight
|
|
|
:freeze="false"
|
|
|
:show-footer="true"
|
|
|
:delete-flag="false"
|
|
|
@@ -197,6 +253,8 @@
|
|
|
</div>
|
|
|
</DkPanel>
|
|
|
</DkCollapse>
|
|
|
+
|
|
|
+
|
|
|
<!-- 订单收款-->
|
|
|
<DkCollapse @on-change="changeCollapse" ref="collapse" v-if="this.tabsModel ==='purPay'">
|
|
|
<!--商品信息-->
|
|
|
@@ -231,8 +289,8 @@ export default {
|
|
|
let self = this
|
|
|
return {
|
|
|
ordFlag:true,
|
|
|
- purEntryFlag: true,
|
|
|
- purReturnFlag: true,
|
|
|
+ ordOutboundFlag: true,
|
|
|
+ ordReturnFlag: true,
|
|
|
purPayFlag:true,
|
|
|
ordData: {},//销售订单
|
|
|
orderItemList: [],//订单明细
|
|
|
@@ -315,188 +373,247 @@ export default {
|
|
|
equal: true,
|
|
|
},
|
|
|
],
|
|
|
- purEntryData: {},//采购入库单
|
|
|
- purEntryItemList: [],//采购入库单明细
|
|
|
- //采购入库明细列
|
|
|
- purEntryColumns: [
|
|
|
+ //销售出库单
|
|
|
+ ordOutboundData: {},
|
|
|
+ //销售出库单明细
|
|
|
+ ordOutboundItemList: [],
|
|
|
+ //出库明细列
|
|
|
+ ordOutboundItemColumns: [
|
|
|
{
|
|
|
field: 'skuCode',
|
|
|
type: 'disabled',
|
|
|
},
|
|
|
{
|
|
|
+ field: 'skuModel',
|
|
|
+ type: 'disabled',
|
|
|
+ },
|
|
|
+ {
|
|
|
field: 'skuName',
|
|
|
type: 'disabled',
|
|
|
},
|
|
|
+ //仓库
|
|
|
{
|
|
|
- field: 'priceInto',
|
|
|
+ field: 'whName',
|
|
|
type: 'disabled',
|
|
|
- digits: 2,
|
|
|
- number: true,
|
|
|
- sum: true
|
|
|
- },//入库价
|
|
|
+ },
|
|
|
+ //非标号
|
|
|
+ {
|
|
|
+ field: 'nonStdCode',
|
|
|
+ type: 'text',
|
|
|
+ equal: true,
|
|
|
+ },
|
|
|
+ //出库状态
|
|
|
+ {
|
|
|
+ field: 'outStatusName',
|
|
|
+ type: 'text',
|
|
|
+ equal: true,
|
|
|
+ },
|
|
|
+ //出库中数量
|
|
|
{
|
|
|
- field: 'intoingQty',
|
|
|
+ field: 'outingQty',
|
|
|
type: 'disabled',
|
|
|
+ digits: 2,
|
|
|
number: true,
|
|
|
sum: true
|
|
|
- },//入库中数量
|
|
|
+ },
|
|
|
+ //出库中金额
|
|
|
{
|
|
|
- field: 'intoingAmt',
|
|
|
- type: 'disabled',
|
|
|
+ field: 'outingAmt',
|
|
|
+ type: 'number',
|
|
|
digits: 2,
|
|
|
number: true,
|
|
|
sum: true
|
|
|
- },//入库中金额
|
|
|
+ },
|
|
|
+ //已出库数量
|
|
|
{
|
|
|
- field: 'intoQty',
|
|
|
+ field: 'outQty',
|
|
|
type: 'disabled',
|
|
|
+ digits: 2,
|
|
|
number: true,
|
|
|
sum: true
|
|
|
- },//已入库数量
|
|
|
+ },
|
|
|
+ //已出库金额
|
|
|
{
|
|
|
- field: 'intoAmt',
|
|
|
- type: 'disabled',
|
|
|
+ field: 'outAmt',
|
|
|
+ type: 'number',
|
|
|
digits: 2,
|
|
|
number: true,
|
|
|
sum: true
|
|
|
- },//已入库金额
|
|
|
+ },
|
|
|
{
|
|
|
- field: 'intoStatusName',
|
|
|
- type: 'disabled',
|
|
|
- },//入库状态
|
|
|
+ field: 'remarks',
|
|
|
+ type: 'text',
|
|
|
+ equal: true,
|
|
|
+ },
|
|
|
],
|
|
|
-
|
|
|
- purReturnData:{},//采购退货
|
|
|
- purReturnItemList:[],//采购退货明细
|
|
|
- //采购退货明细列
|
|
|
- purReturnColumns:[
|
|
|
+ //退货
|
|
|
+ ordOutReturnData:{},
|
|
|
+ //销退货明细
|
|
|
+ ordOutRetrunItemList:[],
|
|
|
+ //退货明细列
|
|
|
+ ordOutRetrunItemColumns:[
|
|
|
{
|
|
|
field: 'skuCode',
|
|
|
type: 'disabled',
|
|
|
},
|
|
|
{
|
|
|
+ field: 'skuModel',
|
|
|
+ type: 'disabled',
|
|
|
+ },
|
|
|
+ {
|
|
|
field: 'skuName',
|
|
|
type: 'disabled',
|
|
|
},
|
|
|
{
|
|
|
- field: 'intoingQty',
|
|
|
+ field: 'brandName',
|
|
|
type: 'disabled',
|
|
|
+ },
|
|
|
+ //仓库
|
|
|
+ {
|
|
|
+ field: 'whName',
|
|
|
+ type: 'disabled',
|
|
|
+ },
|
|
|
+ //非标号
|
|
|
+ {
|
|
|
+ field: 'nonStdCode',
|
|
|
+ type: 'text',
|
|
|
+ equal: true,
|
|
|
+ },
|
|
|
+ //数量
|
|
|
+ {
|
|
|
+ field: 'itemQty',
|
|
|
+ type: 'disabled',
|
|
|
+ digits: 2,
|
|
|
number: true,
|
|
|
sum: true
|
|
|
- },//入库中数量
|
|
|
+ },
|
|
|
+ //价格
|
|
|
{
|
|
|
- field: 'intoingAmt',
|
|
|
+ field: 'priceSale',
|
|
|
type: 'disabled',
|
|
|
digits: 2,
|
|
|
+ number: true
|
|
|
+ },
|
|
|
+ //金额
|
|
|
+ {
|
|
|
+ field: 'itemAmt',
|
|
|
+ type: 'number',
|
|
|
+ digits: 2,
|
|
|
number: true,
|
|
|
sum: true
|
|
|
- },//入库中金额
|
|
|
+ },
|
|
|
+ //商品标价
|
|
|
{
|
|
|
- field: 'intoQty',
|
|
|
+ field: 'priceStd',
|
|
|
type: 'disabled',
|
|
|
number: true,
|
|
|
- sum: true
|
|
|
- },//已入库数量
|
|
|
+ digits: 2,
|
|
|
+ },
|
|
|
+ //标价金额
|
|
|
{
|
|
|
- field: 'intoAmt',
|
|
|
+ field: 'amtStd',
|
|
|
type: 'disabled',
|
|
|
digits: 2,
|
|
|
- number: true,
|
|
|
- sum: true
|
|
|
- },//已入库金额
|
|
|
+ number: true
|
|
|
+ },
|
|
|
+ //标价折扣
|
|
|
{
|
|
|
- field: 'intoStatusName',
|
|
|
+ field: 'priceDiscount',
|
|
|
type: 'disabled',
|
|
|
- },//入库状态
|
|
|
+ number: true,
|
|
|
+ digits: 2,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: 'remarks',
|
|
|
+ type: 'text',
|
|
|
+ equal: true,
|
|
|
+ },
|
|
|
],
|
|
|
-
|
|
|
- purPayData:[],//订单收款
|
|
|
- purPayColumns:[],
|
|
|
-
|
|
|
- orderNo: null,//订单号
|
|
|
- purEntryVOList: [],//入库
|
|
|
- purReturnVOList:[],//退货
|
|
|
+ // 出库数据list
|
|
|
+ ordOutboundDataList: [],
|
|
|
+ //退货数据list
|
|
|
+ ordOutReturnDataList:[],
|
|
|
// 模式切换值
|
|
|
tabsModel: 'ordchase',
|
|
|
- tabsOptions: [{label: self.$t('ordchase'), name: 'ordchase'}, //采购订单
|
|
|
- {label: self.$t('purEnter'), name: 'purEnter'}, //采购入库单
|
|
|
- {label: self.$t('purReturn'), name: 'purReturn'},//采购退货
|
|
|
+ tabsOptions: [{label: self.$t('ordchase'), name: 'ordchase'}, //销售订单
|
|
|
+ {label: self.$t('outbound'), name: 'outbound'}, //出库单
|
|
|
+ {label: self.$t('ordOutReturn'), name: 'ordOutReturn'},//销售退货
|
|
|
{label: self.$t('purPay'), name: 'purPay'},//采购退货
|
|
|
],
|
|
|
- tabsModel1: null,
|
|
|
- tabsModel2: null,
|
|
|
+ tabsModelOut: null,
|
|
|
+ tabsModelOutReturn: null,
|
|
|
tabsModel3: null,
|
|
|
- tabsOptions1: [],
|
|
|
- tabsOptions2: [],
|
|
|
+ tabsOptionsOut: [],
|
|
|
+ tabsOptionsOutReturn: [],
|
|
|
tabsOptions3: [],
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+
|
|
|
/**
|
|
|
- * @desc : tab切换
|
|
|
- * @author : 常皓宁
|
|
|
- * @date : 2024/4/22 13:44
|
|
|
+ * @desc : 整体tab切换
|
|
|
+ * @author : 宋扬
|
|
|
+ * @date : 2024/4/25 11:45
|
|
|
*/
|
|
|
tabsClick(val) {
|
|
|
- this.purEntryFlag = false
|
|
|
- this.purReturnFlag = false
|
|
|
+ this.ordOutboundFlag = false;
|
|
|
+ this.ordOutReturnFlag = false;
|
|
|
//如果切换的tab存在就去根据条件查询
|
|
|
if (val) {
|
|
|
- this.totalTab = val
|
|
|
if(val == 'ordchase'){
|
|
|
setTimeout(() => {
|
|
|
this.ordFlag = true;
|
|
|
- this.purEntryFlag = false;
|
|
|
- this.purReturnFlag = false;
|
|
|
+ this.ordOutboundFlag = false;
|
|
|
+ this.ordOutReturnFlag = false;
|
|
|
}, 100)
|
|
|
}
|
|
|
- else if(val == 'purEnter'){
|
|
|
+ else if(val == 'outbound'){
|
|
|
setTimeout(() => {
|
|
|
this.ordFlag = false;
|
|
|
- this.purEntryFlag = true;
|
|
|
- this.purReturnFlag = false;
|
|
|
+ this.ordOutboundFlag = true;
|
|
|
+ this.ordOutReturnFlag = false;
|
|
|
}, 100)
|
|
|
}
|
|
|
- else if(val == 'purReturn'){
|
|
|
+ else if(val == 'ordOutReturn'){
|
|
|
setTimeout(() => {
|
|
|
this.ordFlag = false;
|
|
|
- this.purEntryFlag = false;
|
|
|
- this.purReturnFlag = true;
|
|
|
+ this.ordOutboundFlag = false;
|
|
|
+ this.ordOutReturnFlag = true;
|
|
|
}, 100)
|
|
|
}
|
|
|
|
|
|
}
|
|
|
},
|
|
|
+
|
|
|
/**
|
|
|
- * @desc : 入库tab切换
|
|
|
- * @author : 常皓宁
|
|
|
- * @date : 2024/4/22 13:44
|
|
|
+ * @desc : 出库tab切换
|
|
|
+ * @author : 宋扬
|
|
|
+ * @date : 2024/4/25 11:46
|
|
|
*/
|
|
|
- tabsClick1(val) {
|
|
|
+ tabsClickOut(val) {
|
|
|
//如果切换的tab存在就去根据条件查询
|
|
|
if (val) {
|
|
|
- this.totalTab = val
|
|
|
- this.purEntryVOList.forEach(it => {
|
|
|
- if (it.intoNo == val) {
|
|
|
- this.purEntryData = it
|
|
|
- this.purEntryItemList = it.purEntryItemVOList
|
|
|
+ this.ordOutboundDataList.forEach(it => {
|
|
|
+ if (it.outNo == val) {
|
|
|
+ this.ordOutReturnData = it
|
|
|
+ this.ordOutboundItemList = it.outboundItemList
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
- /**
|
|
|
- * @desc : 退货tab切换
|
|
|
- * @author : 常皓宁
|
|
|
- * @date : 2024/4/22 13:44
|
|
|
- */
|
|
|
- tabsClick2(val) {
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @desc : 退货tab切换
|
|
|
+ * @author : 宋扬
|
|
|
+ * @date : 2024/4/25 17:20
|
|
|
+ */
|
|
|
+ tabsClickOutReturn(val) {
|
|
|
//如果切换的tab存在就去根据条件查询
|
|
|
if (val) {
|
|
|
- this.totalTab = val
|
|
|
- this.purReturnVOList.forEach(it => {
|
|
|
- if (it.intoNo == val) {
|
|
|
+ this.ordOutReturnDataList.forEach(it => {
|
|
|
+ if (it.outNo == val) {
|
|
|
this.purReturnData = it
|
|
|
- this.purReturnItemList = it.purReturnItemVOList
|
|
|
+ this.ordOutRetrunItemList = it.purReturnItemVOList
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
@@ -512,18 +629,20 @@ export default {
|
|
|
}
|
|
|
this.excute(this.$service.orderService, this.$service.orderService.getOrderTrackReport, params).then(res => {
|
|
|
if (res.code === this.$config.SUCCESS_CODE) {
|
|
|
+ // 赋值订单总表信息
|
|
|
this.ordData = res.data.list[0]
|
|
|
- this.ordItemList = res.data.list[0].ordItemList
|
|
|
- this.purEntryVOList = res.data.list[0].purEntryVOList
|
|
|
- this.purReturnVOList = res.data.list[0].purReturnVOList
|
|
|
- let purEntryList = res.data.list[0].purEntryVOList
|
|
|
- if (purEntryList && purEntryList.length > 0) {
|
|
|
- this.purEntryData = this.purEntryVOList[0]
|
|
|
- this.purEntryItemList = res.data.list[0].purEntryVOList[0].purEntryItemVOList
|
|
|
- this.tabsOptions1 = purEntryList.map(m => {
|
|
|
- return {label: m.intoNo, name: m.intoNo}
|
|
|
+ // 赋值订单明细信息
|
|
|
+ this.orderItemList = res.data.list[0].ordItemList
|
|
|
+ // 赋值出库单list值
|
|
|
+ this.ordOutboundDataList = res.data.list[0].outboundDataList
|
|
|
+ if (this.ordOutboundDataList && this.ordOutboundDataList.length > 0) {
|
|
|
+ this.ordOutboundData = this.ordOutboundDataList[0]
|
|
|
+ this.ordOutboundItemList = this.ordOutboundDataList[0].outbounditemlist
|
|
|
+ this.tabsOptionsOut = this.ordOutboundDataList.map(m => {
|
|
|
+ return {label: m.outNo, name: m.outNo}
|
|
|
})
|
|
|
}
|
|
|
+
|
|
|
let purReturnList = res.data.list[0].purReturnVOList
|
|
|
if (purReturnList && purReturnList.length > 0) {
|
|
|
this.purReturnData = this.purReturnVOList[0]
|
|
|
@@ -538,7 +657,7 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
created() {
|
|
|
- this.getPur(this.$route.params.row.ordId)
|
|
|
+ this.getPur(this.$route.params.row.orderId)
|
|
|
},
|
|
|
activated() {
|
|
|
},
|