|
|
|
@ -1,12 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
<div :style="{margin: '0 auto',width:'100%'}">
|
|
|
|
|
<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">
|
|
|
|
@ -16,58 +12,49 @@
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="10" v-if="judgeShow('inspectionCode')">
|
|
|
|
|
<jnpf-form-tip-item label="质检单编号" v-if="judgeShow('inspectionCode')"
|
|
|
|
|
prop="inspectionCode">
|
|
|
|
|
<JnpfInput v-model="dataForm.inspectionCode" @change="changeData('inspectionCode',-1)"
|
|
|
|
|
placeholder="系统自动生成" :disabled="judgeWrite('inspectionCode')" readonly
|
|
|
|
|
:style='{"width":"100%"}'>
|
|
|
|
|
<jnpf-form-tip-item label="质检单编号" v-if="judgeShow('inspectionCode')" prop="inspectionCode">
|
|
|
|
|
<JnpfInput v-model="dataForm.inspectionCode" @change="changeData('inspectionCode', -1)"
|
|
|
|
|
placeholder="系统自动生成" :disabled="judgeWrite('inspectionCode')" readonly :style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="10" v-if="judgeShow('creatorTime')">
|
|
|
|
|
<jnpf-form-tip-item label="制单时间" v-if="judgeShow('creatorTime')" prop="creatorTime">
|
|
|
|
|
<JnpfOpenData v-model="dataForm.creatorTime" @change="changeData('creatorTime',-1)"
|
|
|
|
|
placeholder="系统自动生成" :disabled="judgeWrite('creatorTime')" readonly
|
|
|
|
|
:style='{"width":"100%"}' type="currTime">
|
|
|
|
|
<JnpfOpenData v-model="dataForm.creatorTime" @change="changeData('creatorTime', -1)" placeholder="系统自动生成"
|
|
|
|
|
:disabled="judgeWrite('creatorTime')" readonly :style='{ "width": "100%" }' type="currTime">
|
|
|
|
|
</JnpfOpenData>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8" v-if="judgeShow('inspectionType')">
|
|
|
|
|
<jnpf-form-tip-item label="质检类型" v-if="judgeShow('inspectionType')"
|
|
|
|
|
prop="inspectionType">
|
|
|
|
|
<JnpfSelect v-model="dataForm.inspectionType"
|
|
|
|
|
@change="changeData('inspectionType',-1)" placeholder="请选择"
|
|
|
|
|
:disabled="judgeWrite('inspectionType')" clearable :style='{"width":"100%"}'
|
|
|
|
|
<jnpf-form-tip-item label="质检类型" v-if="judgeShow('inspectionType')" prop="inspectionType">
|
|
|
|
|
<JnpfSelect v-model="dataForm.inspectionType" @change="changeData('inspectionType', -1)" placeholder="请选择"
|
|
|
|
|
:disabled="judgeWrite('inspectionType')" clearable :style='{ "width": "100%" }'
|
|
|
|
|
:options="inspectionTypeOptions" :props="inspectionTypeProps">
|
|
|
|
|
</JnpfSelect>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8" v-if="judgeShow('belongUserId')">
|
|
|
|
|
<jnpf-form-tip-item label="质检人员" v-if="judgeShow('belongUserId')" prop="belongUserId">
|
|
|
|
|
<JnpfUserSelect v-model="dataForm.belongUserId"
|
|
|
|
|
@change="changeData('belongUserId',-1)" placeholder="请选择" selectType="all"
|
|
|
|
|
:ableIds="ableAll.belongUserIdableIds" :disabled="judgeWrite('belongUserId')"
|
|
|
|
|
clearable :style='{"width":"100%"}'>
|
|
|
|
|
<JnpfUserSelect v-model="dataForm.belongUserId" @change="changeData('belongUserId', -1)" placeholder="请选择"
|
|
|
|
|
selectType="all" :ableIds="ableAll.belongUserIdableIds" :disabled="judgeWrite('belongUserId')" clearable
|
|
|
|
|
:style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfUserSelect>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
<el-col :span="8" v-if="judgeShow('inspectionTime')">
|
|
|
|
|
<jnpf-form-tip-item label="质检时间" v-if="judgeShow('inspectionTime')"
|
|
|
|
|
prop="inspectionTime">
|
|
|
|
|
<JnpfDatePicker v-model="dataForm.inspectionTime"
|
|
|
|
|
@change="changeData('inspectionTime',-1)" :startTime="dateTime(false,1,1,'','')"
|
|
|
|
|
:endTime="dateTime(false,1,1,'','')" placeholder="请选择"
|
|
|
|
|
:disabled="judgeWrite('inspectionTime')" clearable :style='{"width":"100%"}'
|
|
|
|
|
type="datetime" format="yyyy-MM-dd HH:mm">
|
|
|
|
|
<jnpf-form-tip-item label="质检时间" v-if="judgeShow('inspectionTime')" prop="inspectionTime">
|
|
|
|
|
<JnpfDatePicker v-model="dataForm.inspectionTime" @change="changeData('inspectionTime', -1)"
|
|
|
|
|
:startTime="dateTime(false, 1, 1, '', '')" :endTime="dateTime(false, 1, 1, '', '')" placeholder="请选择"
|
|
|
|
|
:disabled="judgeWrite('inspectionTime')" clearable :style='{ "width": "100%" }' type="datetime"
|
|
|
|
|
format="yyyy-MM-dd HH:mm">
|
|
|
|
|
</JnpfDatePicker>
|
|
|
|
|
</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>
|
|
|
|
@ -84,29 +71,26 @@
|
|
|
|
|
</div>
|
|
|
|
|
<el-table :data="dataForm.warehousingInspectionVoucherList" size='mini'>
|
|
|
|
|
<el-table-column type="index" width="50" label="序号" align="center" />
|
|
|
|
|
<el-table-column label="凭证单据编号"
|
|
|
|
|
v-if="judgeShow('warehousinginspectionvoucher-voucheId')" prop="voucheId">
|
|
|
|
|
<el-table-column label="凭证单据编号" v-if="judgeShow('warehousinginspectionvoucher-voucheId')"
|
|
|
|
|
prop="voucheId">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('warehousinginspectionvoucherList-voucheId')">*</span>凭证单据编号
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfPopupSelect v-model="scope.row.voucheId" @change="inspectionVoucher"
|
|
|
|
|
:rowIndex="scope.$index" :formData="dataForm"
|
|
|
|
|
:templateJson="interfaceRes.warehousinginspectionvouchervoucheId"
|
|
|
|
|
<JnpfPopupSelect v-model="scope.row.voucheId" @change="inspectionVoucher" :rowIndex="scope.$index"
|
|
|
|
|
:formData="dataForm" :templateJson="interfaceRes.warehousinginspectionvouchervoucheId"
|
|
|
|
|
placeholder="请选择"
|
|
|
|
|
:disabled="judgeWrite('warehousinginspectionvoucherList')||judgeWrite('warehousinginspectionvoucherList-voucheId')"
|
|
|
|
|
:disabled="judgeWrite('warehousinginspectionvoucherList') || judgeWrite('warehousinginspectionvoucherList-voucheId')"
|
|
|
|
|
propsValue="id" popupWidth="800px" popupTitle="选择数据" popupType="dialog"
|
|
|
|
|
relationField='voucher_code' :field="'voucheId'+scope.$index"
|
|
|
|
|
interfaceId="530709323597241349" :pageSize="20"
|
|
|
|
|
:columnOptions="warehousinginspectionvouchervoucheIdcolumnOptions" clearable
|
|
|
|
|
:style='{"width":"100%"}'>
|
|
|
|
|
relationField='voucher_code' :field="'voucheId' + scope.$index" interfaceId="530709323597241349"
|
|
|
|
|
:pageSize="20" :columnOptions="warehousinginspectionvouchervoucheIdcolumnOptions" clearable
|
|
|
|
|
:style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfPopupSelect>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="单据类型"
|
|
|
|
|
v-if="judgeShow('warehousinginspectionvoucher-documentTypes')"
|
|
|
|
|
<el-table-column label="单据类型" v-if="judgeShow('warehousinginspectionvoucher-documentTypes')"
|
|
|
|
|
prop="documentTypes">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
@ -114,48 +98,44 @@
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.documentTypes"
|
|
|
|
|
@change="changeData('warehousinginspectionvoucher-documentTypes',scope.$index)"
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
:disabled="judgeWrite('warehousinginspectionvoucherList')||judgeWrite('warehousinginspectionvoucherList-documentTypes')"
|
|
|
|
|
clearable :style='{"width":"100%"}'>
|
|
|
|
|
@change="changeData('warehousinginspectionvoucher-documentTypes', scope.$index)" placeholder="请输入"
|
|
|
|
|
:disabled="judgeWrite('warehousinginspectionvoucherList') || judgeWrite('warehousinginspectionvoucherList-documentTypes')"
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="凭证类型"
|
|
|
|
|
v-if="judgeShow('warehousinginspectionvoucher-voucherTypes')" prop="voucherTypes">
|
|
|
|
|
<el-table-column label="凭证类型" v-if="judgeShow('warehousinginspectionvoucher-voucherTypes')"
|
|
|
|
|
prop="voucherTypes">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('warehousinginspectionvoucherList-voucherTypes')">*</span>凭证类型
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.voucherTypes"
|
|
|
|
|
@change="changeData('warehousinginspectionvoucher-voucherTypes',scope.$index)"
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
:disabled="judgeWrite('warehousinginspectionvoucherList')||judgeWrite('warehousinginspectionvoucherList-voucherTypes')"
|
|
|
|
|
clearable :style='{"width":"100%"}'>
|
|
|
|
|
@change="changeData('warehousinginspectionvoucher-voucherTypes', scope.$index)" placeholder="请输入"
|
|
|
|
|
:disabled="judgeWrite('warehousinginspectionvoucherList') || judgeWrite('warehousinginspectionvoucherList-voucherTypes')"
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="磅单编号"
|
|
|
|
|
v-if="judgeShow('warehousinginspectionvoucher-pound_code')" prop="pound_code">
|
|
|
|
|
<el-table-column label="磅单编号" v-if="judgeShow('warehousinginspectionvoucher-pound_code')"
|
|
|
|
|
prop="pound_code">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('warehousinginspectionvoucherList-pound_code')">*</span>磅单编号
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.pound_code"
|
|
|
|
|
@change="changeData('warehousinginspectionvoucher-pound_code',scope.$index)"
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
:disabled="judgeWrite('warehousinginspectionvoucherList')||judgeWrite('warehousinginspectionvoucherList-pound_code')"
|
|
|
|
|
clearable :style='{"width":"100%"}'>
|
|
|
|
|
@change="changeData('warehousinginspectionvoucher-pound_code', scope.$index)" placeholder="请输入"
|
|
|
|
|
:disabled="judgeWrite('warehousinginspectionvoucherList') || judgeWrite('warehousinginspectionvoucherList-pound_code')"
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="车辆信息"
|
|
|
|
|
v-if="judgeShow('warehousinginspectionvoucher-vehicleNumber')"
|
|
|
|
|
<el-table-column label="车辆信息" v-if="judgeShow('warehousinginspectionvoucher-vehicleNumber')"
|
|
|
|
|
prop="vehicleNumber">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
@ -163,48 +143,44 @@
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.vehicleNumber"
|
|
|
|
|
@change="changeData('warehousinginspectionvoucher-vehicleNumber',scope.$index)"
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
:disabled="judgeWrite('warehousinginspectionvoucherList')||judgeWrite('warehousinginspectionvoucherList-vehicleNumber')"
|
|
|
|
|
clearable :style='{"width":"100%"}'>
|
|
|
|
|
@change="changeData('warehousinginspectionvoucher-vehicleNumber', scope.$index)" placeholder="请输入"
|
|
|
|
|
:disabled="judgeWrite('warehousinginspectionvoucherList') || judgeWrite('warehousinginspectionvoucherList-vehicleNumber')"
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="毛重"
|
|
|
|
|
v-if="judgeShow('warehousinginspectionvoucher-grossWeight')" prop="grossWeight">
|
|
|
|
|
<el-table-column label="毛重" v-if="judgeShow('warehousinginspectionvoucher-grossWeight')"
|
|
|
|
|
prop="grossWeight">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('warehousinginspectionvoucherList-grossWeight')">*</span>毛重
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.grossWeight"
|
|
|
|
|
@change="changeData('warehousinginspectionvoucher-grossWeight',scope.$index)"
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
:disabled="judgeWrite('warehousinginspectionvoucherList')||judgeWrite('warehousinginspectionvoucherList-grossWeight')"
|
|
|
|
|
clearable :style='{"width":"100%"}'>
|
|
|
|
|
@change="changeData('warehousinginspectionvoucher-grossWeight', scope.$index)" placeholder="请输入"
|
|
|
|
|
:disabled="judgeWrite('warehousinginspectionvoucherList') || judgeWrite('warehousinginspectionvoucherList-grossWeight')"
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="皮重"
|
|
|
|
|
v-if="judgeShow('warehousinginspectionvoucher-tareWeight')" prop="tareWeight">
|
|
|
|
|
<el-table-column label="皮重" v-if="judgeShow('warehousinginspectionvoucher-tareWeight')"
|
|
|
|
|
prop="tareWeight">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('warehousinginspectionvoucherList-tareWeight')">*</span>皮重
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.tareWeight"
|
|
|
|
|
@change="changeData('warehousinginspectionvoucher-tareWeight',scope.$index)"
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
:disabled="judgeWrite('warehousinginspectionvoucherList')||judgeWrite('warehousinginspectionvoucherList-tareWeight')"
|
|
|
|
|
clearable :style='{"width":"100%"}'>
|
|
|
|
|
@change="changeData('warehousinginspectionvoucher-tareWeight', scope.$index)" placeholder="请输入"
|
|
|
|
|
:disabled="judgeWrite('warehousinginspectionvoucherList') || judgeWrite('warehousinginspectionvoucherList-tareWeight')"
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="扣重"
|
|
|
|
|
v-if="judgeShow('warehousinginspectionvoucher-buckleWeight')"
|
|
|
|
|
<el-table-column label="扣重" v-if="judgeShow('warehousinginspectionvoucher-buckleWeight')"
|
|
|
|
|
prop="buckle_weight">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
@ -212,16 +188,14 @@
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.buckleWeight"
|
|
|
|
|
@change="changeData('warehousinginspectionvoucher-buckleWeight',scope.$index)"
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
:disabled="judgeWrite('warehousinginspectionvoucherList')||judgeWrite('warehousinginspectionvoucherList-buckleWeight')"
|
|
|
|
|
clearable :style='{"width":"100%"}'>
|
|
|
|
|
@change="changeData('warehousinginspectionvoucher-buckleWeight', scope.$index)" placeholder="请输入"
|
|
|
|
|
:disabled="judgeWrite('warehousinginspectionvoucherList') || judgeWrite('warehousinginspectionvoucherList-buckleWeight')"
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="操作" width="50"
|
|
|
|
|
v-if="!judgeWrite('warehousinginspectionvoucherList')">
|
|
|
|
|
<el-table-column label="操作" width="50" v-if="!judgeWrite('warehousinginspectionvoucherList')">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button size="mini" type="text" class="JNPF-table-delBtn"
|
|
|
|
|
@click="delwarehousinginspectionvoucherList(scope.$index)">删除</el-button>
|
|
|
|
@ -247,45 +221,39 @@
|
|
|
|
|
</div>
|
|
|
|
|
<el-table :data="dataForm.warehousingInspectionProductList" size='mini'>
|
|
|
|
|
<el-table-column type="index" width="50" label="序号" align="center" />
|
|
|
|
|
<el-table-column label="商品名称"
|
|
|
|
|
v-if="judgeShow('warehousinginspectionproduct-productId')" prop="productId">
|
|
|
|
|
<el-table-column label="商品名称" v-if="judgeShow('warehousinginspectionproduct-productId')"
|
|
|
|
|
prop="productId">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('warehousinginspectionproductList-productId')">*</span>商品名称
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfPopupSelect v-model="scope.row.productId" @change="inspectionProduct"
|
|
|
|
|
:rowIndex="scope.$index" :formData="dataForm"
|
|
|
|
|
:templateJson="interfaceRes.warehousinginspectionproductproductId"
|
|
|
|
|
<JnpfPopupSelect v-model="scope.row.productId" @change="inspectionProduct" :rowIndex="scope.$index"
|
|
|
|
|
:formData="dataForm" :templateJson="interfaceRes.warehousinginspectionproductproductId"
|
|
|
|
|
placeholder="请选择"
|
|
|
|
|
:disabled="judgeWrite('warehousinginspectionproductList')||judgeWrite('warehousinginspectionproductList-productId')"
|
|
|
|
|
hasPage propsValue="id" popupWidth="800px" popupTitle="选择数据"
|
|
|
|
|
popupType="dialog" relationField='name' :field="'productId'+scope.$index"
|
|
|
|
|
interfaceId="530714636022995973" :pageSize="20"
|
|
|
|
|
:columnOptions="warehousinginspectionproductproductIdcolumnOptions" clearable
|
|
|
|
|
:style='{"width":"100%"}'>
|
|
|
|
|
:disabled="judgeWrite('warehousinginspectionproductList') || judgeWrite('warehousinginspectionproductList-productId')"
|
|
|
|
|
hasPage propsValue="id" popupWidth="800px" popupTitle="选择数据" popupType="dialog"
|
|
|
|
|
relationField='name' :field="'productId' + scope.$index" interfaceId="530714636022995973"
|
|
|
|
|
:pageSize="20" :columnOptions="warehousinginspectionproductproductIdcolumnOptions" clearable
|
|
|
|
|
:style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfPopupSelect>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="规格" v-if="judgeShow('warehousinginspectionproduct-spec')"
|
|
|
|
|
prop="buckle_weight">
|
|
|
|
|
<el-table-column label="规格" v-if="judgeShow('warehousinginspectionproduct-spec')" prop="buckle_weight">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('warehousingInspectionProductList-spec')">*</span>规格
|
|
|
|
|
<span class="required-sign" v-if="judgeRequired('warehousingInspectionProductList-spec')">*</span>规格
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.spec"
|
|
|
|
|
@change="changeData('warehousinginspectionproduct-spec',scope.$index)"
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
:disabled="judgeWrite('warehousingInspectionProductList')||judgeWrite('warehousingInspectionProductList-spec')"
|
|
|
|
|
clearable :style='{"width":"100%"}'>
|
|
|
|
|
@change="changeData('warehousinginspectionproduct-spec', scope.$index)" placeholder="请输入"
|
|
|
|
|
:disabled="judgeWrite('warehousingInspectionProductList') || judgeWrite('warehousingInspectionProductList-spec')"
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="库存单位"
|
|
|
|
|
v-if="judgeShow('warehousinginspectionproduct-inventoryUnitIds')"
|
|
|
|
|
<el-table-column label="库存单位" v-if="judgeShow('warehousinginspectionproduct-inventoryUnitIds')"
|
|
|
|
|
prop="buckle_weight">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
@ -293,16 +261,15 @@
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.inventoryUnitIds"
|
|
|
|
|
@change="changeData('warehousinginspectionproduct-inventoryUnitIds',scope.$index)"
|
|
|
|
|
@change="changeData('warehousinginspectionproduct-inventoryUnitIds', scope.$index)"
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
:disabled="judgeWrite('warehousingInspectionProductList')||judgeWrite('warehousingInspectionProductList-inventoryUnitIds')"
|
|
|
|
|
clearable :style='{"width":"100%"}'>
|
|
|
|
|
:disabled="judgeWrite('warehousingInspectionProductList') || judgeWrite('warehousingInspectionProductList-inventoryUnitIds')"
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="操作" width="50"
|
|
|
|
|
v-if="!judgeWrite('warehousinginspectionproductList')">
|
|
|
|
|
<el-table-column label="操作" width="50" v-if="!judgeWrite('warehousinginspectionproductList')">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button size="mini" type="text" class="JNPF-table-delBtn"
|
|
|
|
|
@click="delwarehousinginspectionproductList(scope.$index)">删除</el-button>
|
|
|
|
@ -328,70 +295,65 @@
|
|
|
|
|
</div>
|
|
|
|
|
<el-table :data="dataForm.warehousingInspectionConclusionList" size='mini'>
|
|
|
|
|
<el-table-column type="index" width="50" label="序号" align="center" />
|
|
|
|
|
<el-table-column label="毛重"
|
|
|
|
|
v-if="judgeShow('warehousinginspectionconclusion-grossWeight')"
|
|
|
|
|
<el-table-column label="毛重" v-if="judgeShow('warehousinginspectionconclusion-grossWeight')"
|
|
|
|
|
prop="grossWeight">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('warehousinginspectionconclusionList-grossWeight')">*</span>毛重
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.grossWeight"
|
|
|
|
|
@change="changeData('warehousinginspectionconclusion-grossWeight',scope.$index)"
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
:disabled="judgeWrite('warehousinginspectionconclusionList')||judgeWrite('warehousinginspectionconclusionList-grossWeight')"
|
|
|
|
|
clearable :style='{"width":"100%"}'>
|
|
|
|
|
{{ scope.row.grossWeight }}
|
|
|
|
|
<JnpfInput v-model="scope.row.grossWeight" @change="grossWeightChange" :precision="6" :min="0"
|
|
|
|
|
prop="grossWeight" placeholder="请输入" :disabled="judgeWrite('warehousinginspectionconclusionList') ||
|
|
|
|
|
judgeWrite('warehousinginspectionconclusionList-grossWeight')" clearable :style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="皮重"
|
|
|
|
|
v-if="judgeShow('warehousinginspectionconclusion-tareWeight')" prop="tareWeight">
|
|
|
|
|
<el-table-column label="皮重" v-if="judgeShow('warehousinginspectionconclusion-tareWeight')"
|
|
|
|
|
prop="tareWeight">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('warehousinginspectionconclusionList-tareWeight')">*</span>皮重
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.tareWeight"
|
|
|
|
|
@change="changeData('warehousinginspectionconclusion-tareWeight',scope.$index)"
|
|
|
|
|
{{ scope.row.tareWeight }}
|
|
|
|
|
<JnpfInput v-model="scope.row.tareWeight" @change="grossWeightChange" :precision="6" :min="0"
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
:disabled="judgeWrite('warehousinginspectionconclusionList')||judgeWrite('warehousinginspectionconclusionList-tareWeight')"
|
|
|
|
|
clearable :style='{"width":"100%"}'>
|
|
|
|
|
:disabled="judgeWrite('warehousinginspectionconclusionList') || judgeWrite('warehousinginspectionconclusionList-tareWeight')"
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="扣重"
|
|
|
|
|
v-if="judgeShow('warehousinginspectionconclusion-buckleWeight')"
|
|
|
|
|
<el-table-column label="扣重" v-if="judgeShow('warehousinginspectionconclusion-buckleWeight')"
|
|
|
|
|
prop="buckleWeight">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('warehousinginspectionconclusionList-buckleWeight')">*</span>扣重
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.buckleWeight"
|
|
|
|
|
@change="changeData('warehousinginspectionconclusion-buckleWeight',scope.$index)"
|
|
|
|
|
<JnpfInput v-model="scope.row.buckleWeight" @change="grossWeightChange" :precision="6" :min="0"
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
:disabled="judgeWrite('warehousinginspectionconclusionList')||judgeWrite('warehousinginspectionconclusionList-buckleWeight')"
|
|
|
|
|
clearable :style='{"width":"100%"}'>
|
|
|
|
|
:disabled="judgeWrite('warehousinginspectionconclusionList') || judgeWrite('warehousinginspectionconclusionList-buckleWeight')"
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="净重(自动计算)"
|
|
|
|
|
v-if="judgeShow('warehousinginspectionconclusion-netWeight')" prop="netWeight">
|
|
|
|
|
<el-table-column label="净重(自动计算)" v-if="judgeShow('warehousinginspectionconclusion-netWeight')"
|
|
|
|
|
prop="netWeight">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('warehousinginspectionconclusionList-netWeight')">*</span>净重(自动计算)
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.netWeight"
|
|
|
|
|
@change="changeData('warehousinginspectionconclusion-netWeight',scope.$index)"
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
:disabled="judgeWrite('warehousinginspectionconclusionList')||judgeWrite('warehousinginspectionconclusionList-netWeight')"
|
|
|
|
|
clearable :style='{"width":"100%"}'>
|
|
|
|
|
@change="changeData('warehousinginspectionconclusion-netWeight', scope.$index)" :precision="6"
|
|
|
|
|
:min="0" placeholder="请输入"
|
|
|
|
|
:disabled="judgeWrite('warehousinginspectionconclusionList') || judgeWrite('warehousinginspectionconclusionList-netWeight')"
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="是否降级"
|
|
|
|
|
v-if="judgeShow('warehousinginspectionconclusion-reduceLevel')"
|
|
|
|
|
<el-table-column label="是否降级" v-if="judgeShow('warehousinginspectionconclusion-reduceLevel')"
|
|
|
|
|
prop="reduceLevel">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
@ -399,32 +361,29 @@
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfSelect v-model="scope.row.reduceLevel"
|
|
|
|
|
@change="changeData('warehousinginspectionconclusion-reduceLevel',scope.$index)"
|
|
|
|
|
@change="changeData('warehousinginspectionconclusion-reduceLevel', scope.$index)"
|
|
|
|
|
placeholder="请选择"
|
|
|
|
|
:disabled="judgeWrite('warehousinginspectionconclusionList')||judgeWrite('warehousinginspectionconclusionList-reduceLevel')"
|
|
|
|
|
clearable :style='{"width":"100%"}'
|
|
|
|
|
:disabled="judgeWrite('warehousinginspectionconclusionList') || judgeWrite('warehousinginspectionconclusionList-reduceLevel')"
|
|
|
|
|
clearable :style='{ "width": "100%" }'
|
|
|
|
|
:options="warehousinginspectionconclusionreduceLevelOptions"
|
|
|
|
|
:props="warehousinginspectionconclusionreduceLevelProps">
|
|
|
|
|
</JnpfSelect>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="等级"
|
|
|
|
|
v-if="judgeShow('warehousinginspectionconclusion-grade')" prop="grade">
|
|
|
|
|
<el-table-column label="等级" v-if="judgeShow('warehousinginspectionconclusion-grade')" prop="grade">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('warehousinginspectionconclusionList-grade')">*</span>等级
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.grade"
|
|
|
|
|
@change="changeData('warehousinginspectionconclusion-grade',scope.$index)"
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
:disabled="judgeWrite('warehousinginspectionconclusionList')||judgeWrite('warehousinginspectionconclusionList-grade')"
|
|
|
|
|
clearable :style='{"width":"100%"}'>
|
|
|
|
|
@change="changeData('warehousinginspectionconclusion-grade', scope.$index)" placeholder="请输入"
|
|
|
|
|
:disabled="judgeWrite('warehousinginspectionconclusionList') || judgeWrite('warehousinginspectionconclusionList-grade')"
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="创建用户"
|
|
|
|
|
v-if="judgeShow('warehousinginspectionconclusion-creatorUserId')"
|
|
|
|
|
<el-table-column label="创建用户" v-if="judgeShow('warehousinginspectionconclusion-creatorUserId')"
|
|
|
|
|
prop="creatorUserId">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
@ -432,15 +391,14 @@
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.creatorUserId"
|
|
|
|
|
@change="changeData('warehousinginspectionconclusion-creatorUserId',scope.$index)"
|
|
|
|
|
@change="changeData('warehousinginspectionconclusion-creatorUserId', scope.$index)"
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
:disabled="judgeWrite('warehousinginspectionconclusionList')||judgeWrite('warehousinginspectionconclusionList-creatorUserId')"
|
|
|
|
|
clearable :style='{"width":"100%"}'>
|
|
|
|
|
:disabled="judgeWrite('warehousinginspectionconclusionList') || judgeWrite('warehousinginspectionconclusionList-creatorUserId')"
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="操作" width="50"
|
|
|
|
|
v-if="!judgeWrite('warehousinginspectionconclusionList')">
|
|
|
|
|
<el-table-column label="操作" width="50" v-if="!judgeWrite('warehousinginspectionconclusionList')">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button size="mini" type="text" class="JNPF-table-delBtn"
|
|
|
|
|
@click="delwarehousinginspectionconclusionList(scope.$index)">删除</el-button>
|
|
|
|
@ -454,28 +412,24 @@
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8" v-if="judgeShow('conclusionType')">
|
|
|
|
|
<jnpf-form-tip-item label="检测结论" v-if="judgeShow('conclusionType')"
|
|
|
|
|
prop="conclusionType">
|
|
|
|
|
<JnpfSelect v-model="dataForm.conclusionType"
|
|
|
|
|
@change="changeData('conclusionType',-1)" placeholder="请选择"
|
|
|
|
|
:disabled="judgeWrite('conclusionType')" clearable :style='{"width":"100%"}'
|
|
|
|
|
<jnpf-form-tip-item label="检测结论" v-if="judgeShow('conclusionType')" prop="conclusionType">
|
|
|
|
|
<JnpfSelect v-model="dataForm.conclusionType" @change="changeData('conclusionType', -1)" placeholder="请选择"
|
|
|
|
|
:disabled="judgeWrite('conclusionType')" clearable :style='{ "width": "100%" }'
|
|
|
|
|
:options="conclusionTypeOptions" :props="conclusionTypeProps">
|
|
|
|
|
</JnpfSelect>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="24" v-if="judgeShow('conclusionRemark')">
|
|
|
|
|
<jnpf-form-tip-item label="检验结果" v-if="judgeShow('conclusionRemark')"
|
|
|
|
|
prop="conclusionRemark">
|
|
|
|
|
<JnpfInput v-model="dataForm.conclusionRemark"
|
|
|
|
|
@change="changeData('conclusionRemark',-1)" placeholder="请输入"
|
|
|
|
|
:disabled="judgeWrite('conclusionRemark')" clearable :style='{"width":"100%"}'>
|
|
|
|
|
<jnpf-form-tip-item label="检验结果" v-if="judgeShow('conclusionRemark')" prop="conclusionRemark">
|
|
|
|
|
<JnpfInput v-model="dataForm.conclusionRemark" @change="changeData('conclusionRemark', -1)"
|
|
|
|
|
placeholder="请输入" :disabled="judgeWrite('conclusionRemark')" clearable :style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</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" />
|
|
|
|
@ -535,13 +489,13 @@ export default {
|
|
|
|
|
enabledmark: undefined
|
|
|
|
|
},
|
|
|
|
|
warehousingInspectionConclusionList: {
|
|
|
|
|
grossWeight: '',
|
|
|
|
|
grossWeight: 0,
|
|
|
|
|
grossWeightOptions: [],
|
|
|
|
|
tareWeight: '',
|
|
|
|
|
tareWeight: 0,
|
|
|
|
|
tareWeightOptions: [],
|
|
|
|
|
buckleWeight: '',
|
|
|
|
|
buckleWeight: 0,
|
|
|
|
|
buckleWeightOptions: [],
|
|
|
|
|
netWeight: '',
|
|
|
|
|
netWeight: 0,
|
|
|
|
|
netWeightOptions: [],
|
|
|
|
|
reduceLevelOptions: [],
|
|
|
|
|
grade: '',
|
|
|
|
@ -570,6 +524,10 @@ export default {
|
|
|
|
|
warehousingInspectionVoucherList: [],
|
|
|
|
|
warehousingInspectionProductList: [],
|
|
|
|
|
warehousingInspectionConclusionList: [],
|
|
|
|
|
grossWeight: 0,
|
|
|
|
|
tareWeight: 0,
|
|
|
|
|
buckleWeight: 0,
|
|
|
|
|
netWeight: 0,
|
|
|
|
|
version: 0,
|
|
|
|
|
},
|
|
|
|
|
tableRequiredData: {},
|
|
|
|
@ -655,17 +613,22 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
mounted() { },
|
|
|
|
|
methods: {
|
|
|
|
|
grossWeightChange(e, f) {
|
|
|
|
|
// debugger
|
|
|
|
|
// scope.row.netWeight = this.jnpf.floatSub(this.jnpf.floatSub(parseFloat(this.dataForm.grossWeight),
|
|
|
|
|
// parseFloat(this.dataForm.tareWeight)), parseFloat(this.dataForm.buckleWeight))
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
inspectionVoucher(model, row) {
|
|
|
|
|
this.dataForm.productIds = row.product_id
|
|
|
|
|
this.dataForm.warehousingInspectionVoucherList.push(row)
|
|
|
|
|
this.dataForm.warehousingInspectionVoucherList.splice(0, 1)
|
|
|
|
|
|
|
|
|
|
this.dataForm.warehousingInspectionVoucherList.splice(-2, 1)
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
inspectionProduct(model, row) {
|
|
|
|
|
row.productId = row.id
|
|
|
|
|
this.dataForm.warehousingInspectionProductList.push(row)
|
|
|
|
|
this.dataForm.warehousingInspectionProductList.splice(0, 1)
|
|
|
|
|
this.dataForm.warehousingInspectionProductList.splice(-2, 1)
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
@ -812,6 +775,10 @@ export default {
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
addwarehousinginspectionvoucherList() {
|
|
|
|
|
if (this.dataForm.warehousingInspectionVoucherList.length > 0) {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let item = {
|
|
|
|
|
// voucheId: '',
|
|
|
|
|
voucheId: this.dataForm.voucheId,
|
|
|
|
@ -836,6 +803,11 @@ export default {
|
|
|
|
|
this.childIndex = -1
|
|
|
|
|
},
|
|
|
|
|
addwarehousinginspectionproductList() {
|
|
|
|
|
|
|
|
|
|
if (this.dataForm.warehousingInspectionProductList.length > 0) {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let item = {
|
|
|
|
|
productId: '',
|
|
|
|
|
}
|
|
|
|
@ -858,6 +830,10 @@ export default {
|
|
|
|
|
this.childIndex = -1
|
|
|
|
|
},
|
|
|
|
|
addwarehousinginspectionconclusionList() {
|
|
|
|
|
|
|
|
|
|
if (this.dataForm.warehousingInspectionConclusionList.length > 0) {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
let item = {
|
|
|
|
|
grossWeight: undefined,
|
|
|
|
|
tareWeight: undefined,
|
|
|
|
|