|
|
|
@ -1,27 +1,30 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div :style="{ margin: '0 auto', width: '100%' }">
|
|
|
|
|
<el-row :gutter="15" class="">
|
|
|
|
|
<el-form ref="formRef" :model="dataForm" :rules="dataRule" size="small" label-width="100px" label-position="right"
|
|
|
|
|
:disabled="setting.readonly">
|
|
|
|
|
<el-form ref="formRef" :model="dataForm" :rules="dataRule" size="small" label-width="100px"
|
|
|
|
|
label-position="right" :disabled="setting.readonly">
|
|
|
|
|
<template v-if="!loading && formOperates">
|
|
|
|
|
<!-- 具体表单 -->
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<div style="padding:15px 0px">
|
|
|
|
|
<span style="color: #409EFF;">▋</span>
|
|
|
|
|
<span style="font-size: 14px;font-weight: 500;color:rgb(102, 102, 102);">基础信息</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="padding:15px 0px">
|
|
|
|
|
<span style="color: #409EFF;">▋</span>
|
|
|
|
|
<span style="font-size: 14px;font-weight: 500;color:rgb(102, 102, 102);">基础信息</span>
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8" v-if="judgeShow('documentNo')">
|
|
|
|
|
<jnpf-form-tip-item label="单据编号" v-if="judgeShow('documentNo')" prop="documentNo">
|
|
|
|
|
<JnpfInput v-model="dataForm.documentNo" @change="changeData('documentNo', -1)" placeholder="系统自动生成"
|
|
|
|
|
:disabled="judgeWrite('documentNo')" readonly :style='{ "width": "100%" }'>
|
|
|
|
|
<JnpfInput v-model="dataForm.documentNo" @change="changeData('documentNo', -1)"
|
|
|
|
|
placeholder="系统自动生成" :disabled="judgeWrite('documentNo')" readonly
|
|
|
|
|
:style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8" v-if="judgeShow('warehousingOutboundType')">
|
|
|
|
|
<jnpf-form-tip-item label="单据类型" v-if="judgeShow('warehousingOutboundType')" prop="warehousingOutboundType">
|
|
|
|
|
<JnpfSelect v-model="dataForm.warehousingOutboundType" @change="changeData('warehousingOutboundType', -1)"
|
|
|
|
|
placeholder="请选择" :disabled="judgeWrite('warehousingOutboundType')" clearable
|
|
|
|
|
<jnpf-form-tip-item label="单据类型" v-if="judgeShow('warehousingOutboundType')"
|
|
|
|
|
prop="warehousingOutboundType">
|
|
|
|
|
<JnpfSelect v-model="dataForm.warehousingOutboundType"
|
|
|
|
|
@change="changeData('warehousingOutboundType', -1)" placeholder="请选择"
|
|
|
|
|
:disabled="judgeWrite('warehousingOutboundType')" clearable
|
|
|
|
|
:style='{ "width": "100%" }' :options="warehousingOutboundTypeOptions"
|
|
|
|
|
:props="warehousingOutboundTypeProps">
|
|
|
|
|
</JnpfSelect>
|
|
|
|
@ -29,73 +32,85 @@
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8" v-if="judgeShow('warehousingId')">
|
|
|
|
|
<jnpf-form-tip-item label="关联单号" v-if="judgeShow('warehousingId')" prop="warehousingId">
|
|
|
|
|
<JnpfPopupSelect v-model="dataForm.warehousingId" @change="changeData('warehousingId', -1)"
|
|
|
|
|
:rowIndex="null" :formData="dataForm" :templateJson="interfaceRes.warehousingId" placeholder="请选择"
|
|
|
|
|
:disabled="judgeWrite('warehousingId')" propsValue="id" popupWidth="800px" popupTitle="选择数据"
|
|
|
|
|
popupType="dialog" relationField='warehousing_code' field='warehousingId'
|
|
|
|
|
interfaceId="529924192531927237" :pageSize="20" :columnOptions="warehousingIdcolumnOptions" clearable
|
|
|
|
|
:style='{ "width": "100%" }'>
|
|
|
|
|
<JnpfPopupSelect v-model="dataForm.warehousingId"
|
|
|
|
|
@change="changeData('warehousingId', -1)" :rowIndex="null" :formData="dataForm"
|
|
|
|
|
:templateJson="interfaceRes.warehousingId" placeholder="请选择"
|
|
|
|
|
:disabled="judgeWrite('warehousingId')" propsValue="id" popupWidth="800px"
|
|
|
|
|
popupTitle="选择数据" popupType="dialog" relationField='warehousing_code'
|
|
|
|
|
field='warehousingId' interfaceId="529924192531927237" :pageSize="20"
|
|
|
|
|
:columnOptions="warehousingIdcolumnOptions" clearable :style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfPopupSelect>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8" v-if="judgeShow('warehouseId')">
|
|
|
|
|
<jnpf-form-tip-item label="出库仓库" v-if="judgeShow('warehouseId')" prop="warehouseId">
|
|
|
|
|
<JnpfPopupSelect v-model="dataForm.warehouseId" @change="changeData('warehouseId', -1)" :rowIndex="null"
|
|
|
|
|
:formData="dataForm" :templateJson="interfaceRes.warehouseId" placeholder="请选择"
|
|
|
|
|
:disabled="judgeWrite('warehouseId')" propsValue="id" popupWidth="800px" popupTitle="选择数据"
|
|
|
|
|
popupType="dialog" relationField='name' field='warehouseId' interfaceId="529617754022498181"
|
|
|
|
|
:pageSize="20" :columnOptions="warehouseIdcolumnOptions" clearable :style='{ "width": "100%" }'>
|
|
|
|
|
<JnpfPopupSelect v-model="dataForm.warehouseId"
|
|
|
|
|
@change="changeData('warehouseId', -1)" :rowIndex="null" :formData="dataForm"
|
|
|
|
|
:templateJson="interfaceRes.warehouseId" placeholder="请选择"
|
|
|
|
|
:disabled="judgeWrite('warehouseId')" propsValue="id" popupWidth="800px"
|
|
|
|
|
popupTitle="选择数据" popupType="dialog" relationField='name' field='warehouseId'
|
|
|
|
|
interfaceId="529617754022498181" :pageSize="20"
|
|
|
|
|
:columnOptions="warehouseIdcolumnOptions" clearable :style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfPopupSelect>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
<el-col :span="8" v-if="judgeShow('warehousingTime')">
|
|
|
|
|
<jnpf-form-tip-item label="出库时间" v-if="judgeShow('warehousingTime')" prop="warehousingTime">
|
|
|
|
|
<JnpfDatePicker v-model="dataForm.warehousingTime" @change="changeData('warehousingTime', -1)"
|
|
|
|
|
:startTime="dateTime(false, 1, 1, '', '')" :endTime="dateTime(false, 1, 1, '', '')" placeholder="请选择"
|
|
|
|
|
:disabled="judgeWrite('warehousingTime')" clearable :style='{ "width": "100%" }' type="date"
|
|
|
|
|
format="yyyy-MM-dd">
|
|
|
|
|
<jnpf-form-tip-item label="出库时间" v-if="judgeShow('warehousingTime')"
|
|
|
|
|
prop="warehousingTime">
|
|
|
|
|
<JnpfDatePicker v-model="dataForm.warehousingTime"
|
|
|
|
|
@change="changeData('warehousingTime', -1)"
|
|
|
|
|
:startTime="dateTime(false, 1, 1, '', '')" :endTime="dateTime(false, 1, 1, '', '')"
|
|
|
|
|
placeholder="请选择" :disabled="judgeWrite('warehousingTime')" clearable
|
|
|
|
|
:style='{ "width": "100%" }' type="date" format="yyyy-MM-dd">
|
|
|
|
|
</JnpfDatePicker>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8" v-if="judgeShow('outboundReason')">
|
|
|
|
|
<jnpf-form-tip-item label="出库原因" v-if="judgeShow('outboundReason')" prop="outboundReason">
|
|
|
|
|
<JnpfInput v-model="dataForm.outboundReason" @change="changeData('outboundReason', -1)" placeholder="请输入"
|
|
|
|
|
<jnpf-form-tip-item label="出库原因" v-if="judgeShow('outboundReason')"
|
|
|
|
|
prop="outboundReason">
|
|
|
|
|
<JnpfInput v-model="dataForm.outboundReason"
|
|
|
|
|
@change="changeData('outboundReason', -1)" placeholder="请输入"
|
|
|
|
|
:disabled="judgeWrite('outboundReason')" clearable :style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="24" v-if="judgeShow('remark')">
|
|
|
|
|
<jnpf-form-tip-item label="备注" v-if="judgeShow('remark')" prop="remark">
|
|
|
|
|
<JnpfInput v-model="dataForm.remark" @change="changeData('remark', -1)" placeholder="请输入"
|
|
|
|
|
:disabled="judgeWrite('remark')" clearable :style='{ "width": "100%" }'>
|
|
|
|
|
<JnpfInput v-model="dataForm.remark" @change="changeData('remark', -1)"
|
|
|
|
|
placeholder="请输入" :disabled="judgeWrite('remark')" clearable
|
|
|
|
|
:style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<div style="padding:15px 0px">
|
|
|
|
|
<span style="color: #409EFF;">▋</span>
|
|
|
|
|
<span style="font-size: 14px;font-weight: 500;color:rgb(102, 102, 102);">出库凭证</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="padding:15px 0px">
|
|
|
|
|
<span style="color: #409EFF;">▋</span>
|
|
|
|
|
<span style="font-size: 14px;font-weight: 500;color:rgb(102, 102, 102);">出库凭证</span>
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="24" v-if="judgeShow('-${html.relationField}')">
|
|
|
|
|
<jnpf-form-tip-item label-width="0">
|
|
|
|
|
<el-table :data="dataForm.warehousingOutboundPoundlistList" size='mini' border>
|
|
|
|
|
<el-table-column type="index" width="50" label="序号" align="center" fixed="left" />
|
|
|
|
|
<el-table-column label="关联凭证" min-width="150px"
|
|
|
|
|
v-if="judgeShow('warehousingoutboundpoundlist-voucherId')" prop="voucherId" align="center" width="220" fixed="left">
|
|
|
|
|
v-if="judgeShow('warehousingoutboundpoundlist-voucherId')" prop="voucherId"
|
|
|
|
|
align="center" width="220" fixed="left">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('warehousingoutboundpoundlistList-voucherId')">*</span>关联凭证
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfPopupSelect v-model="scope.row.voucherId" @change="changeDataVoucher" :rowIndex="scope.$index"
|
|
|
|
|
:formData="dataForm" :templateJson="interfaceRes.warehousingoutboundpoundlistvoucherId"
|
|
|
|
|
<JnpfPopupSelect v-model="scope.row.voucherId" @change="changeDataVoucher"
|
|
|
|
|
:rowIndex="scope.$index" :formData="dataForm"
|
|
|
|
|
:templateJson="interfaceRes.warehousingoutboundpoundlistvoucherId"
|
|
|
|
|
placeholder="请选择"
|
|
|
|
|
:disabled="judgeWrite('warehousingoutboundpoundlistList') || judgeWrite('warehousingoutboundpoundlistList-voucherId')"
|
|
|
|
|
hasPage propsValue="id" popupWidth="800px" popupTitle="选择数据" popupType="dialog"
|
|
|
|
|
relationField='voucher_code' :field="'voucherId' + scope.$index" interfaceId="529929122277773509"
|
|
|
|
|
:pageSize="20" :columnOptions="warehousingoutboundpoundlistvoucherIdcolumnOptions" clearable
|
|
|
|
|
hasPage propsValue="id" popupWidth="800px" popupTitle="选择数据"
|
|
|
|
|
popupType="dialog" relationField='voucher_code'
|
|
|
|
|
:field="'voucherId' + scope.$index" interfaceId="529929122277773509"
|
|
|
|
|
:pageSize="20"
|
|
|
|
|
:columnOptions="warehousingoutboundpoundlistvoucherIdcolumnOptions" clearable
|
|
|
|
|
:style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfPopupSelect>
|
|
|
|
|
</template>
|
|
|
|
@ -106,8 +121,8 @@
|
|
|
|
|
<span class="required-sign"></span>单据类型
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="dataForm.documentTypes" placeholder="请输入" disabled clearable
|
|
|
|
|
:style='{ "width": "100%" }'>
|
|
|
|
|
<JnpfInput v-model="scope.row.documentTypes" placeholder="请输入" disabled
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
@ -117,7 +132,7 @@
|
|
|
|
|
<span class="required-sign"></span>凭证类型
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="dataForm.voucherType" placeholder="请输入" disabled clearable
|
|
|
|
|
<JnpfInput v-model="scope.row.voucherType" placeholder="请输入" disabled clearable
|
|
|
|
|
:style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
@ -128,7 +143,7 @@
|
|
|
|
|
<span class="required-sign"></span>磅单编号
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="dataForm.poundCode" placeholder="请输入" disabled clearable
|
|
|
|
|
<JnpfInput v-model="scope.row.poundCode" placeholder="请输入" disabled clearable
|
|
|
|
|
:style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
@ -139,8 +154,8 @@
|
|
|
|
|
<span class="required-sign"></span>磅单时间
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="dataForm.poundlistTime" placeholder="请输入" disabled clearable
|
|
|
|
|
:style='{ "width": "100%" }'>
|
|
|
|
|
<JnpfInput v-model="scope.row.poundlistTime" placeholder="请输入" disabled
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
@ -150,8 +165,8 @@
|
|
|
|
|
<span class="required-sign"></span>车辆信息
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="dataForm.vehicleNumber" placeholder="请输入" disabled clearable
|
|
|
|
|
:style='{ "width": "100%" }'>
|
|
|
|
|
<JnpfInput v-model="scope.row.vehicleNumber" placeholder="请输入" disabled
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
@ -160,18 +175,18 @@
|
|
|
|
|
<span class="required-sign"></span>商品名称
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="dataForm.productName" placeholder="请输入" disabled clearable
|
|
|
|
|
<JnpfInput v-model="scope.row.productName" placeholder="请输入" disabled clearable
|
|
|
|
|
:style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="规格" prop="productSpec" align="center" width="150">
|
|
|
|
|
<el-table-column label="规格" prop="spec" align="center" width="150">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"></span>规格
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="dataForm.productSpec" placeholder="请输入" disabled clearable
|
|
|
|
|
<JnpfInput v-model="scope.row.spec" placeholder="请输入" disabled clearable
|
|
|
|
|
:style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
@ -181,7 +196,7 @@
|
|
|
|
|
<span class="required-sign"></span>单位
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="dataForm.unit" placeholder="请输入" disabled clearable
|
|
|
|
|
<JnpfInput v-model="scope.row.unit" placeholder="请输入" disabled clearable
|
|
|
|
|
:style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
@ -191,7 +206,7 @@
|
|
|
|
|
<span class="required-sign"></span>毛重
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="dataForm.grossWeight" placeholder="请输入" disabled clearable
|
|
|
|
|
<JnpfInput v-model="scope.row.grossWeight" placeholder="请输入" disabled clearable
|
|
|
|
|
:style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
@ -201,7 +216,7 @@
|
|
|
|
|
<span class="required-sign"></span>皮重
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="dataForm.tareWeight" placeholder="请输入" disabled clearable
|
|
|
|
|
<JnpfInput v-model="scope.row.tareWeight" placeholder="请输入" disabled clearable
|
|
|
|
|
:style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
@ -211,7 +226,7 @@
|
|
|
|
|
<span class="required-sign"></span>扣重
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="dataForm.buckleWeight" placeholder="请输入" disabled clearable
|
|
|
|
|
<JnpfInput v-model="scope.row.buckleWeight" placeholder="请输入" disabled clearable
|
|
|
|
|
:style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
@ -221,41 +236,48 @@
|
|
|
|
|
<span class="required-sign"></span>净重
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="dataForm.netWeight" placeholder="请输入" disabled clearable
|
|
|
|
|
<JnpfInput v-model="scope.row.netWeight" placeholder="请输入" disabled clearable
|
|
|
|
|
:style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="备注" prop="remark" align="center" width="150">
|
|
|
|
|
<!-- <el-table-column label="备注" prop="remark" align="center" width="150">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"></span>备注
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="dataForm.remark" placeholder="请输入" disabled clearable
|
|
|
|
|
<JnpfInput v-model="scope.row.remark" placeholder="请输入" disabled clearable
|
|
|
|
|
:style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table-column> -->
|
|
|
|
|
|
|
|
|
|
<el-table-column label="操作" width="50" align="center" fixed="right" v-if="!judgeWrite('warehousingoutboundpoundlistList')">
|
|
|
|
|
<el-table-column label="操作" width="50" align="center" fixed="right"
|
|
|
|
|
v-if="!judgeWrite('warehousingoutboundpoundlistList')">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button size="mini" type="text" class="JNPF-table-delBtn"
|
|
|
|
|
@click="delwarehousingoutboundpoundlistList(scope.$index)">删除</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
<div class="table-actions" @click="addwarehousingoutboundpoundlistList()"
|
|
|
|
|
<!-- <div class="table-actions" @click="addwarehousingoutboundpoundlistList()"
|
|
|
|
|
v-if="!judgeWrite('warehousingoutboundpoundlistList')">
|
|
|
|
|
<el-button type="text" icon="el-icon-plus">添加</el-button>
|
|
|
|
|
</div> -->
|
|
|
|
|
|
|
|
|
|
<div class="table-actions" @click="choice(dataForm.warehousingId)"
|
|
|
|
|
v-if="!judgeWrite('warehousingoutboundpoundlistList')">
|
|
|
|
|
<el-button type="text" icon="el-icon-plus">添加</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<div style="padding:15px 0px">
|
|
|
|
|
<span style="color: #409EFF;">▋</span>
|
|
|
|
|
<span style="font-size: 14px;font-weight: 500;color:rgb(102, 102, 102);">商品信息</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="padding:15px 0px">
|
|
|
|
|
<span style="color: #409EFF;">▋</span>
|
|
|
|
|
<span style="font-size: 14px;font-weight: 500;color:rgb(102, 102, 102);">商品信息</span>
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="24" v-if="judgeShow('warehousingoutboundpoundlist-voucher_code')">
|
|
|
|
|
<jnpf-form-tip-item label-width="0">
|
|
|
|
@ -264,47 +286,53 @@
|
|
|
|
|
</div>
|
|
|
|
|
<el-table :data="dataForm.warehousingOutboundProductList" size='mini'>
|
|
|
|
|
<el-table-column type="index" width="50" fixed="left" label="序号" align="center" />
|
|
|
|
|
<el-table-column label="商品名称" v-if="judgeShow('warehousingoutboundproduct-productId')" prop="productId" width="200" fixed="left" align="center">
|
|
|
|
|
<el-table-column label="商品名称"
|
|
|
|
|
v-if="judgeShow('warehousingoutboundproduct-productId')" prop="productId"
|
|
|
|
|
width="200" fixed="left" align="center">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('warehousingoutboundproductList-productId')">*</span>商品名称
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfPopupSelect v-model="scope.row.productId" @change="changeDataProduct" :rowIndex="scope.$index"
|
|
|
|
|
:formData="dataForm" :templateJson="interfaceRes.warehousingoutboundproductproductId"
|
|
|
|
|
<JnpfPopupSelect v-model="scope.row.productId" @change="changeDataProduct"
|
|
|
|
|
:rowIndex="scope.$index" :formData="dataForm"
|
|
|
|
|
:templateJson="interfaceRes.warehousingoutboundproductproductId"
|
|
|
|
|
placeholder="请选择"
|
|
|
|
|
:disabled="judgeWrite('warehousingoutboundproductList') || judgeWrite('warehousingoutboundproductList-productId')"
|
|
|
|
|
hasPage propsValue="id" popupWidth="800px" popupTitle="选择数据" popupType="dialog"
|
|
|
|
|
relationField='name' :field="'productId' + scope.$index" interfaceId="529622659227471749"
|
|
|
|
|
:pageSize="20" :columnOptions="warehousingoutboundproductproductIdcolumnOptions" clearable
|
|
|
|
|
hasPage propsValue="id" popupWidth="800px" popupTitle="选择数据"
|
|
|
|
|
popupType="dialog" relationField='name' :field="'productId' + scope.$index"
|
|
|
|
|
interfaceId="529622659227471749" :pageSize="20"
|
|
|
|
|
:columnOptions="warehousingoutboundproductproductIdcolumnOptions" clearable
|
|
|
|
|
:style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfPopupSelect>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<!-- <el-table-column label="规格" prop="spec">
|
|
|
|
|
<el-table-column label="规格" prop="spec" width="200" align="center">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"></span>规格
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="dataForm.productIds" placeholder="请输入" disabled clearable
|
|
|
|
|
:style='{"width":"100%"}'>
|
|
|
|
|
<JnpfInput v-model="scope.row.spec" placeholder="请输入" disabled clearable
|
|
|
|
|
:style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column> -->
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="规格" prop="spec" width="200" align="center">
|
|
|
|
|
<el-table-column label="库存单位" prop="inventoryUnitId" width="200" align="center">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"></span>规格
|
|
|
|
|
<span class="required-sign"></span>库存单位
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="dataForm.productIds" placeholder="请输入" disabled clearable :style='{ "width": "100%" }'>
|
|
|
|
|
<JnpfInput v-model="scope.row.inventoryUnitId" placeholder="请输入" disabled
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="出库单位" v-if="judgeShow('warehousingoutboundproduct-outboundUnit')"
|
|
|
|
|
prop="outboundUnit" width="200" align="center">
|
|
|
|
|
<el-table-column label="出库单位"
|
|
|
|
|
v-if="judgeShow('warehousingoutboundproduct-outboundUnit')" prop="outboundUnit"
|
|
|
|
|
width="200" align="center">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('warehousingoutboundproductList-outboundUnit')">*</span>出库单位
|
|
|
|
@ -313,50 +341,20 @@
|
|
|
|
|
<JnpfPopupSelect v-model="scope.row.outboundUnit"
|
|
|
|
|
@change="changeData('warehousingoutboundproduct-outboundUnit', scope.$index)"
|
|
|
|
|
:rowIndex="scope.$index" :formData="dataForm"
|
|
|
|
|
:templateJson="interfaceRes.warehousingoutboundproductoutboundUnit" placeholder="请选择"
|
|
|
|
|
:templateJson="interfaceRes.warehousingoutboundproductoutboundUnit"
|
|
|
|
|
placeholder="请选择"
|
|
|
|
|
:disabled="judgeWrite('warehousingoutboundproductList') || judgeWrite('warehousingoutboundproductList-outboundUnit')"
|
|
|
|
|
hasPage propsValue="id" popupWidth="800px" popupTitle="选择数据" popupType="dialog"
|
|
|
|
|
relationField='unit_name' :field="'outboundUnit' + scope.$index" interfaceId="523054191598383685"
|
|
|
|
|
:pageSize="20" :columnOptions="warehousingoutboundproductoutboundUnitcolumnOptions" clearable
|
|
|
|
|
hasPage propsValue="id" popupWidth="800px" popupTitle="选择数据"
|
|
|
|
|
popupType="dialog" relationField='unit_name'
|
|
|
|
|
:field="'outboundUnit' + scope.$index" interfaceId="523054191598383685"
|
|
|
|
|
:pageSize="20"
|
|
|
|
|
:columnOptions="warehousingoutboundproductoutboundUnitcolumnOptions" clearable
|
|
|
|
|
:style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfPopupSelect>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="规格" prop="spec" width="200" align="center">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"></span>规格
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="dataForm.spec" placeholder="请输入" disabled clearable
|
|
|
|
|
:style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="库存单位" prop="inventoryUnitIds" width="200" align="center">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"></span>库存单位
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="dataForm.inventoryUnitIds" placeholder="请输入" disabled clearable
|
|
|
|
|
:style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="入库单位规格" prop="111" width="200" align="center">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"></span>入库单位规格
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.storageNumber" placeholder="请输入" disabled clearable
|
|
|
|
|
:style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="出库货区" v-if="judgeShow('warehousingoutboundproduct-outboundAreaId')"
|
|
|
|
|
<el-table-column label="出库货区"
|
|
|
|
|
v-if="judgeShow('warehousingoutboundproduct-outboundAreaId')"
|
|
|
|
|
prop="outboundAreaId" width="200" align="center">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
@ -366,16 +364,20 @@
|
|
|
|
|
<JnpfPopupSelect v-model="scope.row.outboundAreaId"
|
|
|
|
|
@change="changeData('warehousingoutboundproduct-outboundAreaId', scope.$index)"
|
|
|
|
|
:rowIndex="scope.$index" :formData="dataForm"
|
|
|
|
|
:templateJson="interfaceRes.warehousingoutboundproductoutboundAreaId" placeholder="请选择"
|
|
|
|
|
:templateJson="interfaceRes.warehousingoutboundproductoutboundAreaId"
|
|
|
|
|
placeholder="请选择"
|
|
|
|
|
:disabled="judgeWrite('warehousingoutboundproductList') || judgeWrite('warehousingoutboundproductList-outboundAreaId')"
|
|
|
|
|
hasPage propsValue="id" popupWidth="800px" popupTitle="选择数据" popupType="dialog"
|
|
|
|
|
relationField='name' :field="'outboundAreaId' + scope.$index" interfaceId="529624294691458949"
|
|
|
|
|
:pageSize="20" :columnOptions="warehousingoutboundproductoutboundAreaIdcolumnOptions" clearable
|
|
|
|
|
:style='{ "width": "100%" }'>
|
|
|
|
|
hasPage propsValue="id" popupWidth="800px" popupTitle="选择数据"
|
|
|
|
|
popupType="dialog" relationField='name'
|
|
|
|
|
:field="'outboundAreaId' + scope.$index" interfaceId="529624294691458949"
|
|
|
|
|
:pageSize="20"
|
|
|
|
|
:columnOptions="warehousingoutboundproductoutboundAreaIdcolumnOptions"
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfPopupSelect>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="出库数量" v-if="judgeShow('warehousingoutboundproduct-outboundNumber')"
|
|
|
|
|
<el-table-column label="出库数量"
|
|
|
|
|
v-if="judgeShow('warehousingoutboundproduct-outboundNumber')"
|
|
|
|
|
prop="outboundNumber" width="200" align="center">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
@ -383,14 +385,16 @@
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.outboundNumber"
|
|
|
|
|
@change="changeData('warehousingoutboundproduct-outboundNumber', scope.$index)" placeholder="请输入"
|
|
|
|
|
@change="changeData('warehousingoutboundproduct-outboundNumber', scope.$index)"
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
:disabled="judgeWrite('warehousingoutboundproductList') || judgeWrite('warehousingoutboundproductList-outboundNumber')"
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="批次号" v-if="judgeShow('warehousingoutboundproduct-batchNumber')"
|
|
|
|
|
prop="batchNumber" width="200" align="center">
|
|
|
|
|
<el-table-column label="批次号"
|
|
|
|
|
v-if="judgeShow('warehousingoutboundproduct-batchNumber')" prop="batchNumber"
|
|
|
|
|
width="200" align="center">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('warehousingoutboundproductList-batchNumber')">*</span>批次号
|
|
|
|
@ -399,18 +403,21 @@
|
|
|
|
|
<JnpfPopupSelect v-model="scope.row.batchNumber"
|
|
|
|
|
@change="changeData('warehousingoutboundproduct-batchNumber', scope.$index)"
|
|
|
|
|
:rowIndex="scope.$index" :formData="dataForm"
|
|
|
|
|
:templateJson="interfaceRes.warehousingoutboundproductbatchNumber" placeholder="请选择"
|
|
|
|
|
:templateJson="interfaceRes.warehousingoutboundproductbatchNumber"
|
|
|
|
|
placeholder="请选择"
|
|
|
|
|
:disabled="judgeWrite('warehousingoutboundproductList') || judgeWrite('warehousingoutboundproductList-batchNumber')"
|
|
|
|
|
hasPage propsValue="id" popupWidth="800px" popupTitle="选择数据" popupType="dialog"
|
|
|
|
|
relationField='storage_number' :field="'batchNumber' + scope.$index"
|
|
|
|
|
interfaceId="529928174901940421" :pageSize="20"
|
|
|
|
|
hasPage propsValue="id" popupWidth="800px" popupTitle="选择数据"
|
|
|
|
|
popupType="dialog" relationField='storage_number'
|
|
|
|
|
:field="'batchNumber' + scope.$index" interfaceId="529928174901940421"
|
|
|
|
|
:pageSize="20"
|
|
|
|
|
:columnOptions="warehousingoutboundproductbatchNumbercolumnOptions" clearable
|
|
|
|
|
:style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfPopupSelect>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="生产日期" v-if="judgeShow('warehousingoutboundproduct-dateManufacture')"
|
|
|
|
|
<el-table-column label="生产日期"
|
|
|
|
|
v-if="judgeShow('warehousingoutboundproduct-dateManufacture')"
|
|
|
|
|
prop="dateManufacture" width="200" align="center">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
@ -419,14 +426,15 @@
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfDatePicker v-model="scope.row.dateManufacture"
|
|
|
|
|
@change="changeData('warehousingoutboundproduct-dateManufacture', scope.$index)"
|
|
|
|
|
:startTime="dateTime(false, 1, 1, '', '')" :endTime="dateTime(false, 1, 1, '', '')"
|
|
|
|
|
placeholder="请选择"
|
|
|
|
|
:startTime="dateTime(false, 1, 1, '', '')"
|
|
|
|
|
:endTime="dateTime(false, 1, 1, '', '')" placeholder="请选择"
|
|
|
|
|
:disabled="judgeWrite('warehousingoutboundproductList') || judgeWrite('warehousingoutboundproductList-dateManufacture')"
|
|
|
|
|
clearable :style='{ "width": "100%" }' type="date" format="yyyy-MM-dd">
|
|
|
|
|
</JnpfDatePicker>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="操作" width="50" align="center" fixed="right" v-if="!judgeWrite('warehousingoutboundproductList')">
|
|
|
|
|
<el-table-column label="操作" width="50" align="center" fixed="right"
|
|
|
|
|
v-if="!judgeWrite('warehousingoutboundproductList')">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button size="mini" type="text" class="JNPF-table-delBtn"
|
|
|
|
|
@click="delwarehousingoutboundproductList(scope.$index)">删除</el-button>
|
|
|
|
@ -441,11 +449,13 @@
|
|
|
|
|
</el-col>
|
|
|
|
|
<!-- 表单结束 -->
|
|
|
|
|
</template>
|
|
|
|
|
<SelectDialog v-if="selectDialogVisible" :config="currTableConf" :formData="dataForm" ref="selectDialog"
|
|
|
|
|
@select="addForSelect" @close="selectDialogVisible = false" />
|
|
|
|
|
<SelectDialog v-if="selectDialogVisible" :config="currTableConf" :formData="dataForm"
|
|
|
|
|
ref="selectDialog" @select="addForSelect" @close="selectDialogVisible = false" />
|
|
|
|
|
</el-form>
|
|
|
|
|
</el-row>
|
|
|
|
|
<UserBox v-if="userBoxVisible" ref="userBox" @submit="submit" />
|
|
|
|
|
<NotificationVoucherSale v-if="notificationVoucherSaleVisible"
|
|
|
|
|
ref="NotificationVoucherSaleGoodsBox" @refreshDataList="initList" />
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
@ -460,9 +470,11 @@ import { getDefaultCurrentValueUserId } from '@/api/permission/user'
|
|
|
|
|
import { getDefaultCurrentValueDepartmentId } from '@/api/permission/organize'
|
|
|
|
|
import { getDateDay, getLaterData, getBeforeData, getBeforeTime, getLaterTime } from '@/components/Generator/utils/index.js'
|
|
|
|
|
import { thousandsFormat } from "@/components/Generator/utils/index"
|
|
|
|
|
import NotificationVoucherSale from '@/views/scm/publicPopup/NotificationVoucherSale'
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
mixins: [comMixin],
|
|
|
|
|
components: {},
|
|
|
|
|
components: { NotificationVoucherSale },
|
|
|
|
|
props: [],
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
@ -480,6 +492,7 @@ export default {
|
|
|
|
|
eventType: '',
|
|
|
|
|
userBoxVisible: false,
|
|
|
|
|
selectDialogVisible: false,
|
|
|
|
|
notificationVoucherSaleVisible: false,
|
|
|
|
|
currTableConf: {},
|
|
|
|
|
dataValueAll: {},
|
|
|
|
|
addTableConf: {
|
|
|
|
@ -570,7 +583,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
warehousingOutboundTypeOptions: [{ "fullName": "全部", "id": "1" }, { "fullName": "盘盈入库", "id": "2" }, { "fullName": "采购入库", "id": "3" }, { "fullName": "调拨入库", "id": "4" }, { "fullName": "退货入库", "id": "5" }, { "fullName": "其他入库", "id": "6" }, { "fullName": "差异调整入库", "id": "7" }, { "fullName": "领用返库", "id": "8" }, { "fullName": "货权转移入库", "id": "9" }, { "fullName": "其他出库", "id": "10" }, { "fullName": "库存初始化", "id": "11" }, { "fullName": "调拨出库撤回", "id": "12" }, { "fullName": "其他出库撤回", "id": "13" }],
|
|
|
|
|
warehousingOutboundTypeOptions: [{ "fullName": "全部", "id": "1" }, { "fullName": "盘盈出库", "id": "2" }, { "fullName": "销售出库", "id": "3" }, { "fullName": "调拨出库", "id": "4" }, { "fullName": "退供出库", "id": "5" }, { "fullName": "其他出库", "id": "6" }, { "fullName": "差异调整入库", "id": "7" }, { "fullName": "领用出库", "id": "8" }, { "fullName": "货权转移出库", "id": "9" }, { "fullName": "其他出库", "id": "10" }, { "fullName": "库存初始化", "id": "11" }],
|
|
|
|
|
warehousingOutboundTypeProps: { "label": "fullName", "value": "id" },
|
|
|
|
|
warehousingIdcolumnOptions: [{ "label": "通知编号", "value": "warehousing_code" }, { "label": "供应商", "value": "subject_basic_id" }, { "label": "仓库", "value": "warehouse_id" },],
|
|
|
|
|
warehouseIdcolumnOptions: [{ "label": "仓库编号", "value": "code" }, { "label": "仓库名称", "value": "name" }, { "label": "仓库简称", "value": "simple_name" },],
|
|
|
|
@ -658,8 +671,44 @@ export default {
|
|
|
|
|
const data = this.setting.selectData
|
|
|
|
|
if (data && data.flag == '出库通知转出库单') {
|
|
|
|
|
this.dataForm.warehousingId = data.id
|
|
|
|
|
this.dataForm.warehouseId = data.warehouseId
|
|
|
|
|
this.dataForm.warehousingOutboundProductList = data.tableField121
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
choice(val) {
|
|
|
|
|
this.notificationVoucherSaleVisible = true
|
|
|
|
|
let excludeIdList = [];
|
|
|
|
|
for (let i = 0; i < this.dataForm.warehousingOutboundPoundlistList.length; i++) {
|
|
|
|
|
excludeIdList.push(this.dataForm.warehousingOutboundPoundlistList[i].voucherId);
|
|
|
|
|
}
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
this.$refs.NotificationVoucherSaleGoodsBox.init(excludeIdList, val)
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
initList(list) {
|
|
|
|
|
for (let i = 0; i < list.length; i++) {
|
|
|
|
|
const e = list[i];
|
|
|
|
|
let item = {
|
|
|
|
|
voucherId: e.id,
|
|
|
|
|
documentTypes: e.documentType1,
|
|
|
|
|
voucherType: e.voucherType1,
|
|
|
|
|
poundCode: e.poundCode,
|
|
|
|
|
poundlistTime: e.poundlistTime,
|
|
|
|
|
vehicleNumber: e.vehicleNumber,
|
|
|
|
|
unit: e.unit,
|
|
|
|
|
spec: e.spec,
|
|
|
|
|
grossWeight: e.grossWeight,
|
|
|
|
|
tareWeight: e.tareWeight,
|
|
|
|
|
buckleWeight: e.buckleWeight,
|
|
|
|
|
netWeight: e.netWeight,
|
|
|
|
|
productName: e.productName,
|
|
|
|
|
}
|
|
|
|
|
this.dataForm.warehousingOutboundPoundlistList.push(item)
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
changeData(model, index) {
|
|
|
|
|
this.isEdit = false
|
|
|
|
|