质检单唯一设置

jg-waiwang-pro
CJYXTX\27961 7 months ago
parent b07d283240
commit 77bb79efbb

@ -491,9 +491,7 @@ public class WorkOrderController {
@PostMapping("/closestatus/{id}/{status}") @PostMapping("/closestatus/{id}/{status}")
@Operation(summary = "更新状态") @Operation(summary = "更新状态")
public ActionResult updateStatus(@PathVariable("id") String id,@PathVariable("status") String status){ public ActionResult updateStatus(@PathVariable("id") String id,@PathVariable("status") String status){
WorkOrderEntity entity= workOrderService.getInfo(id); WorkOrderEntity entity= workOrderService.getInfo(id);
if(entity!=null){ if(entity!=null){
try{ try{
entity.setStatus(status); entity.setStatus(status);

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

@ -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-row :gutter="15" class="">
<el-form ref="formRef" :model="dataForm" :rules="dataRule" size="small" label-width="100px" <el-form ref="formRef" :model="dataForm" :rules="dataRule" size="small" label-width="100px" label-position="right"
label-position="right" :disabled="setting.readonly"> :disabled="setting.readonly">
<template v-if="!loading && formOperates"> <template v-if="!loading && formOperates">
<!-- 具体表单 --> <!-- 具体表单 -->
<el-col :span="24"> <el-col :span="24">
@ -17,72 +13,62 @@
</el-col> </el-col>
<el-col :span="8" v-if="judgeShow('documentNo')"> <el-col :span="8" v-if="judgeShow('documentNo')">
<jnpf-form-tip-item label="单据编号" v-if="judgeShow('documentNo')" prop="documentNo"> <jnpf-form-tip-item label="单据编号" v-if="judgeShow('documentNo')" prop="documentNo">
<JnpfInput v-model="dataForm.documentNo" @change="changeData('documentNo',-1)" <JnpfInput v-model="dataForm.documentNo" @change="changeData('documentNo', -1)" placeholder="系统自动生成"
placeholder="系统自动生成" :disabled="judgeWrite('documentNo')" readonly :disabled="judgeWrite('documentNo')" readonly :style='{ "width": "100%" }'>
:style='{"width":"100%"}'>
</JnpfInput> </JnpfInput>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<el-col :span="8" v-if="judgeShow('warehousingOutboundType')"> <el-col :span="8" v-if="judgeShow('warehousingOutboundType')">
<jnpf-form-tip-item label="单据类型" v-if="judgeShow('warehousingOutboundType')" <jnpf-form-tip-item label="单据类型" v-if="judgeShow('warehousingOutboundType')" prop="warehousingOutboundType">
prop="warehousingOutboundType"> <JnpfSelect v-model="dataForm.warehousingOutboundType" @change="changeData('warehousingOutboundType', -1)"
<JnpfSelect v-model="dataForm.warehousingOutboundType" placeholder="请选择" :disabled="judgeWrite('warehousingOutboundType')" clearable
@change="changeData('warehousingOutboundType',-1)" placeholder="请选择" :style='{ "width": "100%" }' :options="warehousingOutboundTypeOptions"
:disabled="judgeWrite('warehousingOutboundType')" clearable
:style='{"width":"100%"}' :options="warehousingOutboundTypeOptions"
:props="warehousingOutboundTypeProps"> :props="warehousingOutboundTypeProps">
</JnpfSelect> </JnpfSelect>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<el-col :span="8" v-if="judgeShow('warehousingId')"> <el-col :span="8" v-if="judgeShow('warehousingId')">
<jnpf-form-tip-item label="关联单号" v-if="judgeShow('warehousingId')" prop="warehousingId"> <jnpf-form-tip-item label="关联单号" v-if="judgeShow('warehousingId')" prop="warehousingId">
<JnpfPopupSelect v-model="dataForm.warehousingId" <JnpfPopupSelect v-model="dataForm.warehousingId" @change="changeData('warehousingId', -1)"
@change="changeData('warehousingId',-1)" :rowIndex="null" :formData="dataForm" :rowIndex="null" :formData="dataForm" :templateJson="interfaceRes.warehousingId" placeholder="请选择"
:templateJson="interfaceRes.warehousingId" placeholder="请选择" :disabled="judgeWrite('warehousingId')" propsValue="id" popupWidth="800px" popupTitle="选择数据"
:disabled="judgeWrite('warehousingId')" propsValue="id" popupWidth="800px" popupType="dialog" relationField='warehousing_code' field='warehousingId'
popupTitle="选择数据" popupType="dialog" relationField='warehousing_code' interfaceId="529924192531927237" :pageSize="20" :columnOptions="warehousingIdcolumnOptions" clearable
field='warehousingId' interfaceId="529924192531927237" :pageSize="20" :style='{ "width": "100%" }'>
:columnOptions="warehousingIdcolumnOptions" clearable :style='{"width":"100%"}'>
</JnpfPopupSelect> </JnpfPopupSelect>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<el-col :span="8" v-if="judgeShow('warehouseId')"> <el-col :span="8" v-if="judgeShow('warehouseId')">
<jnpf-form-tip-item label="出库仓库" v-if="judgeShow('warehouseId')" prop="warehouseId"> <jnpf-form-tip-item label="出库仓库" v-if="judgeShow('warehouseId')" prop="warehouseId">
<JnpfPopupSelect v-model="dataForm.warehouseId" @change="changeData('warehouseId',-1)" <JnpfPopupSelect v-model="dataForm.warehouseId" @change="changeData('warehouseId', -1)" :rowIndex="null"
:rowIndex="null" :formData="dataForm" :templateJson="interfaceRes.warehouseId" :formData="dataForm" :templateJson="interfaceRes.warehouseId" placeholder="请选择"
placeholder="请选择" :disabled="judgeWrite('warehouseId')" propsValue="id" :disabled="judgeWrite('warehouseId')" propsValue="id" popupWidth="800px" popupTitle="选择数据"
popupWidth="800px" popupTitle="选择数据" popupType="dialog" relationField='name' popupType="dialog" relationField='name' field='warehouseId' interfaceId="529617754022498181"
field='warehouseId' interfaceId="529617754022498181" :pageSize="20" :pageSize="20" :columnOptions="warehouseIdcolumnOptions" clearable :style='{ "width": "100%" }'>
:columnOptions="warehouseIdcolumnOptions" clearable :style='{"width":"100%"}'>
</JnpfPopupSelect> </JnpfPopupSelect>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<el-col :span="8" v-if="judgeShow('warehousingTime')"> <el-col :span="8" v-if="judgeShow('warehousingTime')">
<jnpf-form-tip-item label="出库时间" v-if="judgeShow('warehousingTime')" <jnpf-form-tip-item label="出库时间" v-if="judgeShow('warehousingTime')" prop="warehousingTime">
prop="warehousingTime"> <JnpfDatePicker v-model="dataForm.warehousingTime" @change="changeData('warehousingTime', -1)"
<JnpfDatePicker v-model="dataForm.warehousingTime" :startTime="dateTime(false, 1, 1, '', '')" :endTime="dateTime(false, 1, 1, '', '')" placeholder="请选择"
@change="changeData('warehousingTime',-1)" :startTime="dateTime(false,1,1,'','')" :disabled="judgeWrite('warehousingTime')" clearable :style='{ "width": "100%" }' type="date"
:endTime="dateTime(false,1,1,'','')" placeholder="请选择" format="yyyy-MM-dd">
:disabled="judgeWrite('warehousingTime')" clearable :style='{"width":"100%"}'
type="date" format="yyyy-MM-dd">
</JnpfDatePicker> </JnpfDatePicker>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<el-col :span="8" v-if="judgeShow('outboundReason')"> <el-col :span="8" v-if="judgeShow('outboundReason')">
<jnpf-form-tip-item label="出库原因" v-if="judgeShow('outboundReason')" <jnpf-form-tip-item label="出库原因" v-if="judgeShow('outboundReason')" prop="outboundReason">
prop="outboundReason"> <JnpfInput v-model="dataForm.outboundReason" @change="changeData('outboundReason', -1)" placeholder="请输入"
<JnpfInput v-model="dataForm.outboundReason" @change="changeData('outboundReason',-1)" :disabled="judgeWrite('outboundReason')" clearable :style='{ "width": "100%" }'>
placeholder="请输入" :disabled="judgeWrite('outboundReason')" clearable
:style='{"width":"100%"}'>
</JnpfInput> </JnpfInput>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<el-col :span="24" v-if="judgeShow('remark')"> <el-col :span="24" v-if="judgeShow('remark')">
<jnpf-form-tip-item label="备注" v-if="judgeShow('remark')" prop="remark"> <jnpf-form-tip-item label="备注" v-if="judgeShow('remark')" prop="remark">
<JnpfInput v-model="dataForm.remark" @change="changeData('remark',-1)" <JnpfInput v-model="dataForm.remark" @change="changeData('remark', -1)" placeholder="请输入"
placeholder="请输入" :disabled="judgeWrite('remark')" clearable :disabled="judgeWrite('remark')" clearable :style='{ "width": "100%" }'>
:style='{"width":"100%"}'>
</JnpfInput> </JnpfInput>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
@ -106,17 +92,14 @@
v-if="judgeRequired('warehousingoutboundpoundlistList-voucherId')">*</span>关联凭证 v-if="judgeRequired('warehousingoutboundpoundlistList-voucherId')">*</span>关联凭证
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfPopupSelect v-model="scope.row.voucherId" @change="changeDataVoucher" <JnpfPopupSelect v-model="scope.row.voucherId" @change="changeDataVoucher" :rowIndex="scope.$index"
:rowIndex="scope.$index" :formData="dataForm" :formData="dataForm" :templateJson="interfaceRes.warehousingoutboundpoundlistvoucherId"
:templateJson="interfaceRes.warehousingoutboundpoundlistvoucherId"
placeholder="请选择" placeholder="请选择"
:disabled="judgeWrite('warehousingoutboundpoundlistList')||judgeWrite('warehousingoutboundpoundlistList-voucherId')" :disabled="judgeWrite('warehousingoutboundpoundlistList') || judgeWrite('warehousingoutboundpoundlistList-voucherId')"
hasPage propsValue="id" popupWidth="800px" popupTitle="选择数据" hasPage propsValue="id" popupWidth="800px" popupTitle="选择数据" popupType="dialog"
popupType="dialog" relationField='voucher_code' relationField='voucher_code' :field="'voucherId' + scope.$index" interfaceId="529929122277773509"
:field="'voucherId'+scope.$index" interfaceId="529929122277773509" :pageSize="20" :columnOptions="warehousingoutboundpoundlistvoucherIdcolumnOptions" clearable
:pageSize="20" :style='{ "width": "100%" }'>
:columnOptions="warehousingoutboundpoundlistvoucherIdcolumnOptions" clearable
:style='{"width":"100%"}'>
</JnpfPopupSelect> </JnpfPopupSelect>
</template> </template>
</el-table-column> </el-table-column>
@ -127,7 +110,7 @@
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="dataForm.documentTypes" placeholder="请输入" disabled clearable <JnpfInput v-model="dataForm.documentTypes" placeholder="请输入" disabled clearable
:style='{"width":"100%"}'> :style='{ "width": "100%" }'>
</JnpfInput> </JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
@ -138,7 +121,7 @@
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="dataForm.voucherType" placeholder="请输入" disabled clearable <JnpfInput v-model="dataForm.voucherType" placeholder="请输入" disabled clearable
:style='{"width":"100%"}'> :style='{ "width": "100%" }'>
</JnpfInput> </JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
@ -149,7 +132,7 @@
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="dataForm.poundCode" placeholder="请输入" disabled clearable <JnpfInput v-model="dataForm.poundCode" placeholder="请输入" disabled clearable
:style='{"width":"100%"}'> :style='{ "width": "100%" }'>
</JnpfInput> </JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
@ -160,7 +143,7 @@
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="dataForm.poundlistTime" placeholder="请输入" disabled clearable <JnpfInput v-model="dataForm.poundlistTime" placeholder="请输入" disabled clearable
:style='{"width":"100%"}'> :style='{ "width": "100%" }'>
</JnpfInput> </JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
@ -171,7 +154,7 @@
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="dataForm.vehicleNumber" placeholder="请输入" disabled clearable <JnpfInput v-model="dataForm.vehicleNumber" placeholder="请输入" disabled clearable
:style='{"width":"100%"}'> :style='{ "width": "100%" }'>
</JnpfInput> </JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
@ -181,7 +164,7 @@
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="dataForm.productName" placeholder="请输入" disabled clearable <JnpfInput v-model="dataForm.productName" placeholder="请输入" disabled clearable
:style='{"width":"100%"}'> :style='{ "width": "100%" }'>
</JnpfInput> </JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
@ -192,7 +175,7 @@
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="dataForm.productSpec" placeholder="请输入" disabled clearable <JnpfInput v-model="dataForm.productSpec" placeholder="请输入" disabled clearable
:style='{"width":"100%"}'> :style='{ "width": "100%" }'>
</JnpfInput> </JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
@ -202,7 +185,7 @@
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="dataForm.unit" placeholder="请输入" disabled clearable <JnpfInput v-model="dataForm.unit" placeholder="请输入" disabled clearable
:style='{"width":"100%"}'> :style='{ "width": "100%" }'>
</JnpfInput> </JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
@ -212,7 +195,7 @@
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="dataForm.grossWeight" placeholder="请输入" disabled clearable <JnpfInput v-model="dataForm.grossWeight" placeholder="请输入" disabled clearable
:style='{"width":"100%"}'> :style='{ "width": "100%" }'>
</JnpfInput> </JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
@ -222,7 +205,7 @@
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="dataForm.tareWeight" placeholder="请输入" disabled clearable <JnpfInput v-model="dataForm.tareWeight" placeholder="请输入" disabled clearable
:style='{"width":"100%"}'> :style='{ "width": "100%" }'>
</JnpfInput> </JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
@ -232,7 +215,7 @@
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="dataForm.buckleWeight" placeholder="请输入" disabled clearable <JnpfInput v-model="dataForm.buckleWeight" placeholder="请输入" disabled clearable
:style='{"width":"100%"}'> :style='{ "width": "100%" }'>
</JnpfInput> </JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
@ -242,7 +225,7 @@
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="dataForm.netWeight" placeholder="请输入" disabled clearable <JnpfInput v-model="dataForm.netWeight" placeholder="请输入" disabled clearable
:style='{"width":"100%"}'> :style='{ "width": "100%" }'>
</JnpfInput> </JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
@ -253,13 +236,12 @@
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="dataForm.remark" placeholder="请输入" disabled clearable <JnpfInput v-model="dataForm.remark" placeholder="请输入" disabled clearable
:style='{"width":"100%"}'> :style='{ "width": "100%" }'>
</JnpfInput> </JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" width="50" <el-table-column label="操作" width="50" v-if="!judgeWrite('warehousingoutboundpoundlistList')">
v-if="!judgeWrite('warehousingoutboundpoundlistList')">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button size="mini" type="text" class="JNPF-table-delBtn" <el-button size="mini" type="text" class="JNPF-table-delBtn"
@click="delwarehousingoutboundpoundlistList(scope.$index)">删除</el-button> @click="delwarehousingoutboundpoundlistList(scope.$index)">删除</el-button>
@ -281,7 +263,7 @@
<el-col :span="24"> <el-col :span="24">
<jnpf-form-tip-item> <jnpf-form-tip-item>
<JnpfText <JnpfText
:textStyle='{"color":"#000000","font-weight":"normal","text-decoration":"none","font-size":12,"line-height":32,"font-style":"normal","text-align":"left"}' :textStyle='{ "color": "#000000", "font-weight": "normal", "text-decoration": "none", "font-size": 12, "line-height": 32, "font-style": "normal", "text-align": "left" }'
content="默认展示关联单据的商品信息,可直接修改商品数量。"> content="默认展示关联单据的商品信息,可直接修改商品数量。">
</JnpfText> </JnpfText>
</jnpf-form-tip-item> </jnpf-form-tip-item>
@ -293,23 +275,20 @@
</div> </div>
<el-table :data="dataForm.warehousingOutboundProductList" size='mini'> <el-table :data="dataForm.warehousingOutboundProductList" size='mini'>
<el-table-column type="index" width="50" label="序号" align="center" /> <el-table-column type="index" width="50" label="序号" align="center" />
<el-table-column label="商品名称" <el-table-column label="商品名称" v-if="judgeShow('warehousingoutboundproduct-productId')" prop="productId">
v-if="judgeShow('warehousingoutboundproduct-productId')" prop="productId">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
v-if="judgeRequired('warehousingoutboundproductList-productId')">*</span>商品名称 v-if="judgeRequired('warehousingoutboundproductList-productId')">*</span>商品名称
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfPopupSelect v-model="scope.row.productId" @change="changeDataProduct" <JnpfPopupSelect v-model="scope.row.productId" @change="changeDataProduct" :rowIndex="scope.$index"
:rowIndex="scope.$index" :formData="dataForm" :formData="dataForm" :templateJson="interfaceRes.warehousingoutboundproductproductId"
:templateJson="interfaceRes.warehousingoutboundproductproductId"
placeholder="请选择" placeholder="请选择"
:disabled="judgeWrite('warehousingoutboundproductList')||judgeWrite('warehousingoutboundproductList-productId')" :disabled="judgeWrite('warehousingoutboundproductList') || judgeWrite('warehousingoutboundproductList-productId')"
hasPage propsValue="id" popupWidth="800px" popupTitle="选择数据" hasPage propsValue="id" popupWidth="800px" popupTitle="选择数据" popupType="dialog"
popupType="dialog" relationField='name' :field="'productId'+scope.$index" relationField='name' :field="'productId' + scope.$index" interfaceId="529622659227471749"
interfaceId="529622659227471749" :pageSize="20" :pageSize="20" :columnOptions="warehousingoutboundproductproductIdcolumnOptions" clearable
:columnOptions="warehousingoutboundproductproductIdcolumnOptions" clearable :style='{ "width": "100%" }'>
:style='{"width":"100%"}'>
</JnpfPopupSelect> </JnpfPopupSelect>
</template> </template>
</el-table-column> </el-table-column>
@ -330,31 +309,27 @@
<span class="required-sign"></span>规格 <span class="required-sign"></span>规格
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="productIds" placeholder="请输入" disabled clearable <JnpfInput v-model="productIds" placeholder="请输入" disabled clearable :style='{ "width": "100%" }'>
:style='{"width":"100%"}'>
</JnpfInput> </JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="出库单位" <el-table-column label="出库单位" v-if="judgeShow('warehousingoutboundproduct-outboundUnit')"
v-if="judgeShow('warehousingoutboundproduct-outboundUnit')" prop="outboundUnit"> prop="outboundUnit">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
v-if="judgeRequired('warehousingoutboundproductList-outboundUnit')">*</span>出库单位 v-if="judgeRequired('warehousingoutboundproductList-outboundUnit')">*</span>出库单位
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfPopupSelect v-model="scope.row.outboundUnit" <JnpfPopupSelect v-model="scope.row.outboundUnit"
@change="changeData('warehousingoutboundproduct-outboundUnit',scope.$index)" @change="changeData('warehousingoutboundproduct-outboundUnit', scope.$index)"
:rowIndex="scope.$index" :formData="dataForm" :rowIndex="scope.$index" :formData="dataForm"
:templateJson="interfaceRes.warehousingoutboundproductoutboundUnit" :templateJson="interfaceRes.warehousingoutboundproductoutboundUnit" placeholder="请选择"
placeholder="请选择" :disabled="judgeWrite('warehousingoutboundproductList') || judgeWrite('warehousingoutboundproductList-outboundUnit')"
:disabled="judgeWrite('warehousingoutboundproductList')||judgeWrite('warehousingoutboundproductList-outboundUnit')" hasPage propsValue="id" popupWidth="800px" popupTitle="选择数据" popupType="dialog"
hasPage propsValue="id" popupWidth="800px" popupTitle="选择数据" relationField='unit_name' :field="'outboundUnit' + scope.$index" interfaceId="523054191598383685"
popupType="dialog" relationField='unit_name' :pageSize="20" :columnOptions="warehousingoutboundproductoutboundUnitcolumnOptions" clearable
:field="'outboundUnit'+scope.$index" interfaceId="523054191598383685" :style='{ "width": "100%" }'>
:pageSize="20"
:columnOptions="warehousingoutboundproductoutboundUnitcolumnOptions" clearable
:style='{"width":"100%"}'>
</JnpfPopupSelect> </JnpfPopupSelect>
</template> </template>
</el-table-column> </el-table-column>
@ -365,7 +340,7 @@
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="dataForm.spec" placeholder="请输入" disabled clearable <JnpfInput v-model="dataForm.spec" placeholder="请输入" disabled clearable
:style='{"width":"100%"}'> :style='{ "width": "100%" }'>
</JnpfInput> </JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
@ -375,8 +350,8 @@
<span class="required-sign"></span>库存单位 <span class="required-sign"></span>库存单位
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="dataForm.inventoryUnitIds" placeholder="请输入" disabled <JnpfInput v-model="dataForm.inventoryUnitIds" placeholder="请输入" disabled clearable
clearable :style='{"width":"100%"}'> :style='{ "width": "100%" }'>
</JnpfInput> </JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
@ -386,14 +361,13 @@
<span class="required-sign"></span>入库单位规格 <span class="required-sign"></span>入库单位规格
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.storageNumber" placeholder="请输入" disabled <JnpfInput v-model="scope.row.storageNumber" placeholder="请输入" disabled clearable
clearable :style='{"width":"100%"}'> :style='{ "width": "100%" }'>
</JnpfInput> </JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="出库货区" <el-table-column label="出库货区" v-if="judgeShow('warehousingoutboundproduct-outboundAreaId')"
v-if="judgeShow('warehousingoutboundproduct-outboundAreaId')"
prop="outboundAreaId"> prop="outboundAreaId">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
@ -401,21 +375,18 @@
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfPopupSelect v-model="scope.row.outboundAreaId" <JnpfPopupSelect v-model="scope.row.outboundAreaId"
@change="changeData('warehousingoutboundproduct-outboundAreaId',scope.$index)" @change="changeData('warehousingoutboundproduct-outboundAreaId', scope.$index)"
:rowIndex="scope.$index" :formData="dataForm" :rowIndex="scope.$index" :formData="dataForm"
:templateJson="interfaceRes.warehousingoutboundproductoutboundAreaId" :templateJson="interfaceRes.warehousingoutboundproductoutboundAreaId" placeholder="请选择"
placeholder="请选择" :disabled="judgeWrite('warehousingoutboundproductList') || judgeWrite('warehousingoutboundproductList-outboundAreaId')"
:disabled="judgeWrite('warehousingoutboundproductList')||judgeWrite('warehousingoutboundproductList-outboundAreaId')" hasPage propsValue="id" popupWidth="800px" popupTitle="选择数据" popupType="dialog"
hasPage propsValue="id" popupWidth="800px" popupTitle="选择数据" relationField='name' :field="'outboundAreaId' + scope.$index" interfaceId="529624294691458949"
popupType="dialog" relationField='name' :field="'outboundAreaId'+scope.$index" :pageSize="20" :columnOptions="warehousingoutboundproductoutboundAreaIdcolumnOptions" clearable
interfaceId="529624294691458949" :pageSize="20" :style='{ "width": "100%" }'>
:columnOptions="warehousingoutboundproductoutboundAreaIdcolumnOptions"
clearable :style='{"width":"100%"}'>
</JnpfPopupSelect> </JnpfPopupSelect>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="出库数量" <el-table-column label="出库数量" v-if="judgeShow('warehousingoutboundproduct-outboundNumber')"
v-if="judgeShow('warehousingoutboundproduct-outboundNumber')"
prop="outboundNumber"> prop="outboundNumber">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
@ -423,38 +394,34 @@
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.outboundNumber" <JnpfInput v-model="scope.row.outboundNumber"
@change="changeData('warehousingoutboundproduct-outboundNumber',scope.$index)" @change="changeData('warehousingoutboundproduct-outboundNumber', scope.$index)" placeholder="请输入"
placeholder="请输入" :disabled="judgeWrite('warehousingoutboundproductList') || judgeWrite('warehousingoutboundproductList-outboundNumber')"
:disabled="judgeWrite('warehousingoutboundproductList')||judgeWrite('warehousingoutboundproductList-outboundNumber')" clearable :style='{ "width": "100%" }'>
clearable :style='{"width":"100%"}'>
</JnpfInput> </JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="批次号" <el-table-column label="批次号" v-if="judgeShow('warehousingoutboundproduct-batchNumber')"
v-if="judgeShow('warehousingoutboundproduct-batchNumber')" prop="batchNumber"> prop="batchNumber">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
v-if="judgeRequired('warehousingoutboundproductList-batchNumber')">*</span>批次号 v-if="judgeRequired('warehousingoutboundproductList-batchNumber')">*</span>批次号
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfPopupSelect v-model="scope.row.batchNumber" <JnpfPopupSelect v-model="scope.row.batchNumber"
@change="changeData('warehousingoutboundproduct-batchNumber',scope.$index)" @change="changeData('warehousingoutboundproduct-batchNumber', scope.$index)"
:rowIndex="scope.$index" :formData="dataForm" :rowIndex="scope.$index" :formData="dataForm"
:templateJson="interfaceRes.warehousingoutboundproductbatchNumber" :templateJson="interfaceRes.warehousingoutboundproductbatchNumber" placeholder="请选择"
placeholder="请选择" :disabled="judgeWrite('warehousingoutboundproductList') || judgeWrite('warehousingoutboundproductList-batchNumber')"
:disabled="judgeWrite('warehousingoutboundproductList')||judgeWrite('warehousingoutboundproductList-batchNumber')" hasPage propsValue="id" popupWidth="800px" popupTitle="选择数据" popupType="dialog"
hasPage propsValue="id" popupWidth="800px" popupTitle="选择数据" relationField='storage_number' :field="'batchNumber' + scope.$index"
popupType="dialog" relationField='storage_number' interfaceId="529928174901940421" :pageSize="20"
:field="'batchNumber'+scope.$index" interfaceId="529928174901940421"
:pageSize="20"
:columnOptions="warehousingoutboundproductbatchNumbercolumnOptions" clearable :columnOptions="warehousingoutboundproductbatchNumbercolumnOptions" clearable
:style='{"width":"100%"}'> :style='{ "width": "100%" }'>
</JnpfPopupSelect> </JnpfPopupSelect>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="生产日期" <el-table-column label="生产日期" v-if="judgeShow('warehousingoutboundproduct-dateManufacture')"
v-if="judgeShow('warehousingoutboundproduct-dateManufacture')"
prop="dateManufacture"> prop="dateManufacture">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
@ -462,16 +429,15 @@
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfDatePicker v-model="scope.row.dateManufacture" <JnpfDatePicker v-model="scope.row.dateManufacture"
@change="changeData('warehousingoutboundproduct-dateManufacture',scope.$index)" @change="changeData('warehousingoutboundproduct-dateManufacture', scope.$index)"
:startTime="dateTime(false,1,1,'','')" :endTime="dateTime(false,1,1,'','')" :startTime="dateTime(false, 1, 1, '', '')" :endTime="dateTime(false, 1, 1, '', '')"
placeholder="请选择" placeholder="请选择"
:disabled="judgeWrite('warehousingoutboundproductList')||judgeWrite('warehousingoutboundproductList-dateManufacture')" :disabled="judgeWrite('warehousingoutboundproductList') || judgeWrite('warehousingoutboundproductList-dateManufacture')"
clearable :style='{"width":"100%"}' type="date" format="yyyy-MM-dd"> clearable :style='{ "width": "100%" }' type="date" format="yyyy-MM-dd">
</JnpfDatePicker> </JnpfDatePicker>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" width="50" <el-table-column label="操作" width="50" v-if="!judgeWrite('warehousingoutboundproductList')">
v-if="!judgeWrite('warehousingoutboundproductList')">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button size="mini" type="text" class="JNPF-table-delBtn" <el-button size="mini" type="text" class="JNPF-table-delBtn"
@click="delwarehousingoutboundproductList(scope.$index)">删除</el-button> @click="delwarehousingoutboundproductList(scope.$index)">删除</el-button>
@ -486,8 +452,8 @@
</el-col> </el-col>
<!-- 表单结束 --> <!-- 表单结束 -->
</template> </template>
<SelectDialog v-if="selectDialogVisible" :config="currTableConf" :formData="dataForm" <SelectDialog v-if="selectDialogVisible" :config="currTableConf" :formData="dataForm" ref="selectDialog"
ref="selectDialog" @select="addForSelect" @close="selectDialogVisible=false" /> @select="addForSelect" @close="selectDialogVisible = false" />
</el-form> </el-form>
</el-row> </el-row>
<UserBox v-if="userBoxVisible" ref="userBox" @submit="submit" /> <UserBox v-if="userBoxVisible" ref="userBox" @submit="submit" />
@ -665,7 +631,9 @@ export default {
} }
this.dataValueAll = JSON.parse(JSON.stringify(this.dataForm)) this.dataValueAll = JSON.parse(JSON.stringify(this.dataForm))
}, },
mounted() { }, mounted() {
this.initOutboundData();
},
methods: { methods: {
changeDataVoucher(model, row) { changeDataVoucher(model, row) {
this.dataForm.documentTypes = row.documentTypes this.dataForm.documentTypes = row.documentTypes
@ -693,10 +661,15 @@ export default {
this.dataForm.barCode = row.bar_code this.dataForm.barCode = row.bar_code
this.dataForm.operateUnitIds = row.operate_unit_ids this.dataForm.operateUnitIds = row.operate_unit_ids
this.dataForm.productTypeIds = row.product_type_ids this.dataForm.productTypeIds = row.product_type_ids
this.dataForm.warehousingoutboundproductList.push(row) this.dataForm.warehousingoutboundproductList.push(row)
this.dataForm.warehousingoutboundproductList.splice(0, 1) this.dataForm.warehousingoutboundproductList.splice(0, 1)
},
initOutboundData() {
const data = this.setting.selectData
if (data.flag == '出库通知转出库单') {
this.dataForm.warehousingId = data[0].id
}
}, },
changeData(model, index) { changeData(model, index) {

@ -21,8 +21,9 @@
<el-col :span="8" v-if="judgeShow('warehousingStorageType')"> <el-col :span="8" v-if="judgeShow('warehousingStorageType')">
<jnpf-form-tip-item label="业务类型" v-if="judgeShow('warehousingStorageType')" prop="warehousingStorageType"> <jnpf-form-tip-item label="业务类型" v-if="judgeShow('warehousingStorageType')" prop="warehousingStorageType">
<JnpfSelect v-model="dataForm.warehousingStorageType" @change="changeData('warehousingStorageType', -1)" <JnpfSelect v-model="dataForm.warehousingStorageType" @change="changeData('warehousingStorageType', -1)"
placeholder="请选择" :disabled="judgeWrite('warehousingStorageType')" clearable :style='{ "width": "100%" }' placeholder="请选择" :disabled="judgeWrite('warehousingStorageType')" clearable
:options="warehousingStorageTypeOptions" :props="warehousingStorageTypeProps"> :style='{ "width": "100%" }' :options="warehousingStorageTypeOptions"
:props="warehousingStorageTypeProps">
</JnpfSelect> </JnpfSelect>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
@ -195,7 +196,8 @@
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="dataForm.unit" placeholder="请输入" disabled clearable :style='{ "width": "100%" }'> <JnpfInput v-model="dataForm.unit" placeholder="请输入" disabled clearable
:style='{ "width": "100%" }'>
</JnpfInput> </JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
@ -255,7 +257,8 @@
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="dataForm.remark" placeholder="请输入" disabled clearable :style='{ "width": "100%" }'> <JnpfInput v-model="dataForm.remark" placeholder="请输入" disabled clearable
:style='{ "width": "100%" }'>
</JnpfInput> </JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
@ -322,7 +325,8 @@
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="dataForm.spec" placeholder="请输入" disabled clearable :style='{ "width": "100%" }'> <JnpfInput v-model="dataForm.spec" placeholder="请输入" disabled clearable
:style='{ "width": "100%" }'>
</JnpfInput> </JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
@ -369,7 +373,8 @@
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.spec" placeholder="请输入" disabled clearable :style='{ "width": "100%" }'> <JnpfInput v-model="scope.row.spec" placeholder="请输入" disabled clearable
:style='{ "width": "100%" }'>
</JnpfInput> </JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
@ -389,8 +394,9 @@
:templateJson="interfaceRes.warehousingstorageproductstorageAreaId" placeholder="请选择" :templateJson="interfaceRes.warehousingstorageproductstorageAreaId" placeholder="请选择"
:disabled="judgeWrite('warehousingstorageproductList') || judgeWrite('warehousingstorageproductList-storageAreaId')" :disabled="judgeWrite('warehousingstorageproductList') || judgeWrite('warehousingstorageproductList-storageAreaId')"
hasPage propsValue="id" popupWidth="800px" popupTitle="选择数据" popupType="dialog" hasPage propsValue="id" popupWidth="800px" popupTitle="选择数据" popupType="dialog"
relationField='cargo_name' :field="'storageAreaId' + scope.$index" interfaceId="529624294691458949" relationField='cargo_name' :field="'storageAreaId' + scope.$index"
:pageSize="20" :columnOptions="warehousingstorageproductstorageAreaIdcolumnOptions" clearable interfaceId="529624294691458949" :pageSize="20"
:columnOptions="warehousingstorageproductstorageAreaIdcolumnOptions" clearable
:style='{ "width": "100%" }'> :style='{ "width": "100%" }'>
</JnpfPopupSelect> </JnpfPopupSelect>
</template> </template>
@ -438,7 +444,8 @@
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfDatePicker v-model="scope.row.dateManufacture" <JnpfDatePicker v-model="scope.row.dateManufacture"
@change="changeData('warehousingstorageproduct-dateManufacture', scope.$index)" @change="changeData('warehousingstorageproduct-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('warehousingstorageproductList') || judgeWrite('warehousingstorageproductList-dateManufacture')" :disabled="judgeWrite('warehousingstorageproductList') || judgeWrite('warehousingstorageproductList-dateManufacture')"
clearable :style='{ "width": "100%" }' type="date" format="yyyy-MM-dd"> clearable :style='{ "width": "100%" }' type="date" format="yyyy-MM-dd">
</JnpfDatePicker> </JnpfDatePicker>
@ -623,7 +630,10 @@ export default {
} }
this.dataValueAll = JSON.parse(JSON.stringify(this.dataForm)) this.dataValueAll = JSON.parse(JSON.stringify(this.dataForm))
}, },
mounted() { }, mounted() {
this.initStorageData();
},
methods: { methods: {
changeDataVoucher(model, row) { changeDataVoucher(model, row) {
this.dataForm.documentTypes = row.documentTypes this.dataForm.documentTypes = row.documentTypes
@ -651,6 +661,26 @@ export default {
this.dataForm.productTypeIds = row.product_type_ids this.dataForm.productTypeIds = row.product_type_ids
}, },
initStorageData() {
const data = this.setting.selectData
// if (data.flag == '') {
// this.dataForm.firstSubjectBasicId = data[0].supplierId
// this.dataForm.enterpriseId = data[0].customerId
// data.forEach(item => {
// this.dataForm.businessOrderProductRelationalList = []
// this.dataForm.businessOrderProductRelationalList = item.voucherProductList
// });
// }
if (data.flag == '入库通知转入库单') {
this.dataForm.warehousingId = data[0].id
// this.dataForm.businessLineId = data[0].businessLineId_id
// this.dataForm.counterpartOrderCode = data[0].counterpartOrderCode
// this.dataForm.urgentOrder = data[0].urgentOrder
// this.deliveryType = data[0].deliveryType
// this.dataForm.businessOrderProductRelationalList = data[0].businessOrderProductRelationalList
}
},
changeData(model, index) { changeData(model, index) {
this.isEdit = false this.isEdit = false
this.childIndex = index this.childIndex = index

@ -22,8 +22,7 @@
<!-- <el-button type="primary" icon="icon-ym icon-ym-btn-add" v-has="'btn_add'" <!-- <el-button type="primary" icon="icon-ym icon-ym-btn-add" v-has="'btn_add'"
@click="addOrUpdateHandle()">新增 @click="addOrUpdateHandle()">新增
</el-button> --> </el-button> -->
<el-button type="text" icon="icon-ym icon-ym-btn-download" @click="exportData()" <el-button type="text" icon="icon-ym icon-ym-btn-download" @click="exportData()" v-has="'btn_download'">
v-has="'btn_download'">导出
</el-button> </el-button>
<el-button type="text" icon="icon-ym icon-ym-btn-clearn" @click="handleBatchRemoveDel()" <el-button type="text" icon="icon-ym icon-ym-btn-clearn" @click="handleBatchRemoveDel()"
v-has="'btn_batchRemove'">批量删除 v-has="'btn_batchRemove'">批量删除
@ -39,8 +38,7 @@
@click="openSuperQuery()" /> @click="openSuperQuery()" />
</el-tooltip> </el-tooltip>
<el-tooltip effect="dark" :content="$t('common.refresh')" placement="top"> <el-tooltip effect="dark" :content="$t('common.refresh')" placement="top">
<el-link icon="icon-ym icon-ym-Refresh JNPF-common-head-icon" :underline="false" <el-link icon="icon-ym icon-ym-Refresh JNPF-common-head-icon" :underline="false" @click="initData()" />
@click="initData()" />
</el-tooltip> </el-tooltip>
</div> </div>
@ -91,11 +89,11 @@
<el-table-column prop="flowState" label="状态" width="100"> <el-table-column prop="flowState" label="状态" width="100">
<template slot-scope="scope" v-if="!scope.row.top"> <template slot-scope="scope" v-if="!scope.row.top">
<el-tag v-if="scope.row.flowState==1"></el-tag> <el-tag v-if="scope.row.flowState == 1"></el-tag>
<el-tag type="success" v-else-if="scope.row.flowState==2">审核通过</el-tag> <el-tag type="success" v-else-if="scope.row.flowState == 2">审核通过</el-tag>
<el-tag type="danger" v-else-if="scope.row.flowState==3">审核驳回</el-tag> <el-tag type="danger" v-else-if="scope.row.flowState == 3">审核驳回</el-tag>
<el-tag type="info" v-else-if="scope.row.flowState==4">流程撤回</el-tag> <el-tag type="info" v-else-if="scope.row.flowState == 4">流程撤回</el-tag>
<el-tag type="info" v-else-if="scope.row.flowState==5">审核终止</el-tag> <el-tag type="info" v-else-if="scope.row.flowState == 5">审核终止</el-tag>
<el-tag type="warning" v-else></el-tag> <el-tag type="warning" v-else></el-tag>
</template> </template>
</el-table-column> </el-table-column>
@ -109,39 +107,35 @@
@click="handleDel(scope.row.id)">删除 @click="handleDel(scope.row.id)">删除
</el-button> --> </el-button> -->
<el-button size="mini" type="text" :disabled="!scope.row.flowState" <el-button size="mini" type="text" :disabled="!scope.row.flowState"
@click="updateHandle(scope.row,scope.row.flowState)">详情</el-button> @click="updateHandle(scope.row, scope.row.flowState)">详情</el-button>
</template> </template>
</el-table-column> </el-table-column>
</JNPF-table> </JNPF-table>
<pagination :total="total" :page.sync="listQuery.currentPage" <pagination :total="total" :page.sync="listQuery.currentPage" :limit.sync="listQuery.pageSize"
:limit.sync="listQuery.pageSize" @pagination="initData" /> @pagination="initData" />
</div> </div>
</div> </div>
<JNPF-Form v-if="formVisible" ref="JNPFForm" @refresh="refresh" /> <JNPF-Form v-if="formVisible" ref="JNPFForm" @refresh="refresh" />
<ExportBox v-if="exportBoxVisible" ref="ExportBox" @download="download" /> <ExportBox v-if="exportBoxVisible" ref="ExportBox" @download="download" />
<FlowBox v-if="flowVisible" ref="FlowBox" @close="colseFlow" /> <FlowBox v-if="flowVisible" ref="FlowBox" @close="colseFlow" />
<el-dialog title="请选择流程" :close-on-click-modal="false" append-to-body <el-dialog title="请选择流程" :close-on-click-modal="false" append-to-body :visible.sync="flowListVisible"
:visible.sync="flowListVisible" class="JNPF-dialog template-dialog JNPF-dialog_center" class="JNPF-dialog template-dialog JNPF-dialog_center" lock-scroll width="400px">
lock-scroll width="400px">
<el-scrollbar class="template-list"> <el-scrollbar class="template-list">
<!-- <div class="template-item" v-for="item in flowList" :key="item.id" <!-- <div class="template-item" v-for="item in flowList" :key="item.id"
@click="selectFlow(item)">{{item.fullName}} @click="selectFlow(item)">{{item.fullName}}
</div> --> </div> -->
<div class="template-item" v-for="item in flowList" :key="item.id" <div class="template-item" v-for="item in flowList" :key="item.id" @click="selectFlow(item)">{{ "" }}
@click="selectFlow(item)">{{"入库单"}}
</div> </div>
</el-scrollbar> </el-scrollbar>
</el-dialog> </el-dialog>
<ImportBox v-if="uploadBoxVisible" ref="UploadBox" @refresh="initData" /> <ImportBox v-if="uploadBoxVisible" ref="UploadBox" @refresh="initData" />
<Detail v-if="detailVisible" ref="Detail" @refresh="detailVisible=false" /> <Detail v-if="detailVisible" ref="Detail" @refresh="detailVisible = false" />
<ToFormDetail v-if="toFormDetailVisible" ref="toFormDetail" <ToFormDetail v-if="toFormDetailVisible" ref="toFormDetail" @close="toFormDetailVisible = false" />
@close="toFormDetailVisible = false" /> <SuperQuery v-if="superQueryVisible" ref="SuperQuery" :columnOptions="superQueryJson" @superQuery="superQuery" />
<SuperQuery v-if="superQueryVisible" ref="SuperQuery" :columnOptions="superQueryJson"
@superQuery="superQuery" />
<purRouter v-if="purVisible" ref="purRouter" @refresh="initData" /> <purRouter v-if="purVisible" ref="purRouter" @refresh="initData" />
@ -218,6 +212,7 @@ export default {
flowVisible: false, flowVisible: false,
flowListVisible: false, flowListVisible: false,
flowList: [], flowList: [],
warehousingstorageFlowList: [],
exportBoxVisible: false, exportBoxVisible: false,
warehousingTypeOptions: [{ "fullName": "销售出库", "id": "8" }], warehousingTypeOptions: [{ "fullName": "销售出库", "id": "8" }],
warehousingTypeProps: { "label": "fullName", "value": "id" }, warehousingTypeProps: { "label": "fullName", "value": "id" },
@ -249,6 +244,17 @@ export default {
this.$router.push('/404'); this.$router.push('/404');
}) })
}) })
getFormById("529614060577116037").then(res1 => {
let storageFlowId = res1.data && res1.data.id
getFlowList(storageFlowId, '1').then(res2 => {
this.warehousingstorageFlowList = res2.data
}).catch((e) => {
this.$message({ type: 'error', message: e.message });
this.$router.push('/404');
})
})
}, },
methods: { methods: {
@ -268,13 +274,38 @@ export default {
}) })
return return
} }
const data = this.multipleSelectionItem const selectData = this.multipleSelectionItem
if (selectData.warehousingStatus == '4') {
this.$message({
type: 'error',
message: '该订单已经入库',
duration: 1500,
})
return
}
// this.multipleSelectionItem.warehousingId = this.multipleSelectionItem.id selectData.flag = '入库通知转入库单'
// console.log(this.multipleSelectionItem); if (!this.warehousingstorageFlowList.length) {
this.flowListVisible = true this.$message({ type: 'error', message: '流程不存在' });
} else if (this.warehousingstorageFlowList.length === 1) {
this.selectFlow1(this.warehousingstorageFlowList[0], selectData)
console.log(this.warehousingstorageFlowList[0]);
} else {
this.flowListVisible = true
}
},
selectFlow1(item, selectData) {
let data = {
id: '',
formType: 1,
flowId: item.id,
opType: '-1',
selectData: selectData
}
this.flowListVisible = false
this.flowVisible = true
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.purRouter.init(data) this.$refs.FlowBox.init(data)
}) })
}, },

@ -1,10 +1,3 @@
<template> <template>
<div class="JNPF-common-layout"> <div class="JNPF-common-layout">
<div class="JNPF-common-layout-center"> <div class="JNPF-common-layout-center">
@ -46,8 +39,7 @@
@click="openSuperQuery()" /> @click="openSuperQuery()" />
</el-tooltip> </el-tooltip>
<el-tooltip effect="dark" :content="$t('common.refresh')" placement="top"> <el-tooltip effect="dark" :content="$t('common.refresh')" placement="top">
<el-link icon="icon-ym icon-ym-Refresh JNPF-common-head-icon" :underline="false" <el-link icon="icon-ym icon-ym-Refresh JNPF-common-head-icon" :underline="false" @click="initData()" />
@click="initData()" />
</el-tooltip> </el-tooltip>
</div> </div>
</div> </div>
@ -99,26 +91,26 @@
<el-table-column prop="flowState" label="状态" width="100"> <el-table-column prop="flowState" label="状态" width="100">
<template slot-scope="scope" v-if="!scope.row.top"> <template slot-scope="scope" v-if="!scope.row.top">
<el-tag v-if="scope.row.flowState==1"></el-tag> <el-tag v-if="scope.row.flowState == 1"></el-tag>
<el-tag type="success" v-else-if="scope.row.flowState==2">审核通过</el-tag> <el-tag type="success" v-else-if="scope.row.flowState == 2">审核通过</el-tag>
<el-tag type="danger" v-else-if="scope.row.flowState==3">审核驳回</el-tag> <el-tag type="danger" v-else-if="scope.row.flowState == 3">审核驳回</el-tag>
<el-tag type="info" v-else-if="scope.row.flowState==4">流程撤回</el-tag> <el-tag type="info" v-else-if="scope.row.flowState == 4">流程撤回</el-tag>
<el-tag type="info" v-else-if="scope.row.flowState==5">审核终止</el-tag> <el-tag type="info" v-else-if="scope.row.flowState == 5">审核终止</el-tag>
<el-tag type="warning" v-else></el-tag> <el-tag type="warning" v-else></el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" fixed="right" width="150"> <el-table-column label="操作" fixed="right" width="150">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" :disabled="[1,2,4,5].indexOf(scope.row.flowState)>-1" <el-button type="text" :disabled="[1, 2, 4, 5].indexOf(scope.row.flowState) > -1"
@click="updateHandle(scope.row)" v-has="'btn_edit'">编辑 @click="updateHandle(scope.row)" v-has="'btn_edit'">编辑
</el-button> </el-button>
<el-button type="text" class="JNPF-table-delBtn" <el-button type="text" class="JNPF-table-delBtn"
:disabled="[1,2,3,5].indexOf(scope.row.flowState)>-1" v-has="'btn_remove'" :disabled="[1, 2, 3, 5].indexOf(scope.row.flowState) > -1" v-has="'btn_remove'"
@click="handleDel(scope.row.id)">删除 @click="handleDel(scope.row.id)">删除
</el-button> </el-button>
<el-button size="mini" type="text" :disabled="!scope.row.flowState" <el-button size="mini" type="text" :disabled="!scope.row.flowState"
@click="updateHandle(scope.row,scope.row.flowState)">详情</el-button> @click="updateHandle(scope.row, scope.row.flowState)">详情</el-button>
</el-button> </el-button>
<!-- <el-button type="text" icon="icon-ym icon-ym-btn-add" v-has="'btn-warehousingsale'" <!-- <el-button type="text" icon="icon-ym icon-ym-btn-add" v-has="'btn-warehousingsale'"
@ -128,33 +120,29 @@
</template> </template>
</el-table-column> </el-table-column>
</JNPF-table> </JNPF-table>
<pagination :total="total" :page.sync="listQuery.currentPage" <pagination :total="total" :page.sync="listQuery.currentPage" :limit.sync="listQuery.pageSize"
:limit.sync="listQuery.pageSize" @pagination="initData" /> @pagination="initData" />
</div> </div>
</div> </div>
<JNPF-Form v-if="formVisible" ref="JNPFForm" @refresh="refresh" /> <JNPF-Form v-if="formVisible" ref="JNPFForm" @refresh="refresh" />
<ExportBox v-if="exportBoxVisible" ref="ExportBox" @download="download" /> <ExportBox v-if="exportBoxVisible" ref="ExportBox" @download="download" />
<FlowBox v-if="flowVisible" ref="FlowBox" @close="colseFlow" /> <FlowBox v-if="flowVisible" ref="FlowBox" @close="colseFlow" />
<el-dialog title="请选择流程" :close-on-click-modal="false" append-to-body <el-dialog title="请选择流程" :close-on-click-modal="false" append-to-body :visible.sync="flowListVisible"
:visible.sync="flowListVisible" class="JNPF-dialog template-dialog JNPF-dialog_center" class="JNPF-dialog template-dialog JNPF-dialog_center" lock-scroll width="400px">
lock-scroll width="400px">
<el-scrollbar class="template-list"> <el-scrollbar class="template-list">
<div class="template-item" v-for="item in flowList" :key="item.id" <div class="template-item" v-for="item in flowList" :key="item.id" @click="selectFlow(item)">
@click="selectFlow(item)">
<!-- {{item.fullName}} --> <!-- {{item.fullName}} -->
{{"出库单"}} {{ "出库单" }}
</div> </div>
</el-scrollbar> </el-scrollbar>
</el-dialog> </el-dialog>
<ImportBox v-if="uploadBoxVisible" ref="UploadBox" @refresh="initData" /> <ImportBox v-if="uploadBoxVisible" ref="UploadBox" @refresh="initData" />
<Detail v-if="detailVisible" ref="Detail" @refresh="detailVisible=false" /> <Detail v-if="detailVisible" ref="Detail" @refresh="detailVisible = false" />
<ToFormDetail v-if="toFormDetailVisible" ref="toFormDetail" <ToFormDetail v-if="toFormDetailVisible" ref="toFormDetail" @close="toFormDetailVisible = false" />
@close="toFormDetailVisible = false" /> <SuperQuery v-if="superQueryVisible" ref="SuperQuery" :columnOptions="superQueryJson" @superQuery="superQuery" />
<SuperQuery v-if="superQueryVisible" ref="SuperQuery" :columnOptions="superQueryJson"
@superQuery="superQuery" />
<saleRouter v-if="saleVisible" ref="saleRouter" @refresh="initData" /> <saleRouter v-if="saleVisible" ref="saleRouter" @refresh="initData" />
@ -231,6 +219,7 @@ export default {
flowVisible: false, flowVisible: false,
flowListVisible: false, flowListVisible: false,
flowList: [], flowList: [],
warehousingOutboundFlowList: [],
exportBoxVisible: false, exportBoxVisible: false,
warehousingTypeOptions: [{ "fullName": "销售出库", "id": "8" }], warehousingTypeOptions: [{ "fullName": "销售出库", "id": "8" }],
warehousingTypeProps: { "label": "fullName", "value": "id" }, warehousingTypeProps: { "label": "fullName", "value": "id" },
@ -262,6 +251,17 @@ export default {
this.$router.push('/404'); this.$router.push('/404');
}) })
}) })
getFormById("529923232405409989").then(res1 => {
let outboundFlowId = res1.data && res1.data.id
getFlowList(outboundFlowId, '1').then(res2 => {
this.warehousingOutboundFlowList = res2.data
}).catch((e) => {
this.$message({ type: 'error', message: e.message });
this.$router.push('/404');
})
})
}, },
methods: { methods: {
@ -281,10 +281,38 @@ export default {
}) })
return return
} }
const data = this.multipleSelectionItem const selectData = this.multipleSelectionItem
this.flowListVisible = true if (selectData.warehousingStatus == '4') {
this.$message({
type: 'error',
message: '该订单已经出库',
duration: 1500,
})
return
}
selectData.flag = '出库通知转出库单'
if (!this.warehousingOutboundFlowList.length) {
this.$message({ type: 'error', message: '流程不存在' });
} else if (this.warehousingOutboundFlowList.length === 1) {
this.selectFlow1(this.warehousingOutboundFlowList[0], selectData)
console.log(this.warehousingOutboundFlowList[0]);
} else {
this.flowListVisible = true
}
},
selectFlow1(item, selectData) {
let data = {
id: '',
formType: 1,
flowId: item.id,
opType: '-1',
selectData: selectData
}
this.flowListVisible = false
this.flowVisible = true
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.saleRouter.init(data) this.$refs.FlowBox.init(data)
}) })
}, },

@ -476,7 +476,7 @@
<el-table-column label="操作" width="50" v-if="!judgeWrite('workorderprimaryList')"> <el-table-column label="操作" width="50" v-if="!judgeWrite('workorderprimaryList')">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button size="mini" type="text" class="JNPF-table-delBtn" <el-button size="mini" type="text" class="JNPF-table-delBtn"
@click="delworkorderprimaryList(scope.$index)">删除</el-button> @click="delworkorderprimaryList(scope.$index)">删除</el-button>

Loading…
Cancel
Save