|
|
|
@ -143,9 +143,9 @@
|
|
|
|
|
<jnpf-form-tip-item label="成品商品" v-if="judgeShow('productId')" prop="productId">
|
|
|
|
|
<JnpfPopupSelect v-model="dataForm.productId" @change="changeData1" :rowIndex="null"
|
|
|
|
|
:formData="dataForm" :templateJson="interfaceRes.productId" placeholder="请选择"
|
|
|
|
|
hasPage propsValue="id" popupWidth="800px" popupTitle="选择数据" popupType="dialog"
|
|
|
|
|
propsValue="id" popupWidth="800px" popupTitle="选择数据" popupType="dialog"
|
|
|
|
|
relationField='name' field='productId' interfaceId="549582756464582469"
|
|
|
|
|
:pageSize="20" :columnOptions="productIdcolumnOptions" clearable
|
|
|
|
|
:pageSize="20" :hasPage="true" :columnOptions="productIdcolumnOptions" clearable
|
|
|
|
|
:disabled="judgeWrite('productId')" :style='{"width":"100%"}'>
|
|
|
|
|
</JnpfPopupSelect>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
@ -222,6 +222,20 @@
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="编码" prop="code" width="200px" align="center">
|
|
|
|
|
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign">*</span>编码
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.code" placeholder="请输入" disabled clearable
|
|
|
|
|
:style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="库存单位" prop="inventoryUnitId" width="150px" align="center">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign">*</span>库存单位
|
|
|
|
@ -316,68 +330,61 @@
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.cost"
|
|
|
|
|
@change="changeData('workorderproduct-cost', scope.$index)" placeholder="请输入"
|
|
|
|
|
<JnpfInput v-model="scope.row.cost" @change="changeData('workorderproduct-cost', scope.$index)"
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
:disabled="judgeWrite('workorderproductList') || judgeWrite('workorderproductList-cost')"
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="货区名称" v-if="judgeShow('workorderproduct-cargoId')"
|
|
|
|
|
align="center" prop="cargoId" width="180px">
|
|
|
|
|
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('workorderproductList-cargoId')">*</span>货区名称
|
|
|
|
|
</template>
|
|
|
|
|
<span class="required-sign" v-if="judgeRequired('workorderproductList-cargoId')">*</span>货区名称
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfPopupSelect v-model="scope.row.cargoId"
|
|
|
|
|
@change="changeData('workorderproduct-cargoId', scope.$index)"
|
|
|
|
|
:rowIndex="scope.$index" :formData="dataForm"
|
|
|
|
|
:templateJson="interfaceRes.workorderproductcargoId" placeholder="请选择" hasPage
|
|
|
|
|
propsValue="id" popupWidth="800px" popupTitle="选择数据" popupType="dialog"
|
|
|
|
|
@change="changeData('workorderproduct-cargoId', scope.$index)" :rowIndex="scope.$index"
|
|
|
|
|
:formData="dataForm" :templateJson="interfaceRes.workorderproductcargoId" placeholder="请选择"
|
|
|
|
|
hasPage propsValue="id" popupWidth="800px" popupTitle="选择数据" popupType="dialog"
|
|
|
|
|
relationField='cargo_name' :field="'cargoId' + scope.$index"
|
|
|
|
|
:disabled="judgeWrite('workorderproductList') || judgeWrite('workorderproductList-cargoId')"
|
|
|
|
|
interfaceId="530700536261903749" :pageSize="20"
|
|
|
|
|
:columnOptions="workorderproductcargoIdcolumnOptions" clearable
|
|
|
|
|
:style='{ "width": "100%" }'>
|
|
|
|
|
:columnOptions="workorderproductcargoIdcolumnOptions" clearable :style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfPopupSelect>
|
|
|
|
|
</template>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="成品批次号" v-if="judgeShow('workorderproduct-batchNumber')"
|
|
|
|
|
width="180px" prop="batchNumber">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('workorderproductList-batchNumber')">*</span>成品批次号
|
|
|
|
|
</template>
|
|
|
|
|
<span class="required-sign" v-if="judgeRequired('workorderproductList-batchNumber')">*</span>成品批次号
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.batchNumber"
|
|
|
|
|
@change="changeData('workorderproduct-cost', scope.$index)" placeholder="请输入"
|
|
|
|
|
:disabled="judgeWrite('workorderproductList') || judgeWrite('workorderproductList-cost')"
|
|
|
|
|
@change="changeData('workorderproduct-cost', scope.$index)" placeholder="请输入" :disabled="true"
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="备注" v-if="judgeShow('workorderproduct-remark')"
|
|
|
|
|
align="center" prop="remark" width="200px">
|
|
|
|
|
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('workorderproductList-remark')">*</span>备注
|
|
|
|
|
</template>
|
|
|
|
|
<span class="required-sign" v-if="judgeRequired('workorderproductList-remark')">*</span>备注
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.remark"
|
|
|
|
|
@change="changeData('workorderproduct-remark', scope.$index)"
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
@change="changeData('workorderproduct-remark', scope.$index)" placeholder="请输入"
|
|
|
|
|
:disabled="judgeWrite('workorderproductList') || judgeWrite('workorderproductList-remark')"
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="操作" width="50" v-if="!judgeWrite('workorderproductList')"
|
|
|
|
|
align="center">
|
|
|
|
@ -385,7 +392,7 @@
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button size="mini" type="text" class="JNPF-table-delBtn"
|
|
|
|
|
@click="delworkorderproductList(scope.$index)">删除</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
@ -448,6 +455,20 @@
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="编码" prop="spec" width="200px" align="center">
|
|
|
|
|
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign">*</span>编码
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.code" placeholder="请输入" disabled clearable
|
|
|
|
|
:style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="库存单位" prop="inventoryUnitId" width="150px" align="center">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign">*</span>库存单位
|
|
|
|
@ -553,7 +574,7 @@
|
|
|
|
|
<JnpfInput v-model="scope.row.batchNumber"
|
|
|
|
|
@change="changeData('workorderproduct-cost', scope.$index)"
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
:disabled="judgeWrite('workorderproductList') || judgeWrite('workorderproductList-cost')"
|
|
|
|
|
:disabled="true"
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
@ -604,70 +625,81 @@
|
|
|
|
|
width="200px" align="center" fixed="left" prop="productId">
|
|
|
|
|
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('workorderprimaryList-productId')">*</span>原料商品名称
|
|
|
|
|
</template>
|
|
|
|
|
<span class="required-sign" v-if="judgeRequired('workorderprimaryList-productId')">*</span>原料商品名称
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfPopupSelect v-model="scope.row.productId" @change="changePrimaryList"
|
|
|
|
|
:rowIndex="scope.$index" :formData="dataForm"
|
|
|
|
|
:templateJson="interfaceRes.workorderprimaryproductId" placeholder="请选择"
|
|
|
|
|
disabled hasPage propsValue="id" popupWidth="800px" popupTitle="选择数据"
|
|
|
|
|
popupType="dialog" relationField='name' :field="'productId' + scope.$index"
|
|
|
|
|
interfaceId="519505017699307077" :pageSize="20"
|
|
|
|
|
:columnOptions="workorderprimaryproductIdcolumnOptions" clearable
|
|
|
|
|
:style='{ "width": "100%" }'>
|
|
|
|
|
:templateJson="interfaceRes.workorderprimaryproductId" placeholder="请选择" disabled hasPage
|
|
|
|
|
propsValue="id" popupWidth="800px" popupTitle="选择数据" popupType="dialog" relationField='name'
|
|
|
|
|
:field="'productId' + scope.$index" interfaceId="519505017699307077" :pageSize="20"
|
|
|
|
|
:columnOptions="workorderprimaryproductIdcolumnOptions" clearable :style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfPopupSelect>
|
|
|
|
|
</template>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="存货类型" prop="productTypeId" align="center">
|
|
|
|
|
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign">*</span>存货类型
|
|
|
|
|
</template>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.productTypeId" placeholder="请输入" disabled
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
<JnpfInput v-model="scope.row.productTypeId" placeholder="请输入" disabled clearable
|
|
|
|
|
:style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="规格" prop="spec" align="center">
|
|
|
|
|
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign">*</span>规格
|
|
|
|
|
</template>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.spec" placeholder="请输入" disabled clearable
|
|
|
|
|
:style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="编码" prop="spec" width="200px" align="center">
|
|
|
|
|
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign">*</span>编码
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.code" placeholder="请输入" disabled clearable
|
|
|
|
|
:style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="库存单位" prop="inventoryUnitId" align="center">
|
|
|
|
|
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign">*</span>库存单位
|
|
|
|
|
</template>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.inventoryUnitId" placeholder="请输入" disabled
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
<JnpfInput v-model="scope.row.inventoryUnitId" placeholder="请输入" disabled clearable
|
|
|
|
|
:style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="条码" prop="deleteUserId" width="300px" align="center">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign">*</span>条码
|
|
|
|
|
</template>
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.barCode" placeholder="请输入" disabled clearable
|
|
|
|
|
:style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="理论发料量(计算前)" v-if="judgeShow('workorderprimary-theoryNum')"
|
|
|
|
@ -675,13 +707,13 @@
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired(' workorderprimaryList-theoryNum')">*</span>理论发料量(计算前)
|
|
|
|
|
</template>
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.theoryNum" disabled
|
|
|
|
|
@change="changeData('workorderprimary-theoryNum', scope.$index)"
|
|
|
|
|
placeholder="请输入" clearable :style='{ "width": "100%" }'>
|
|
|
|
|
@change="changeData('workorderprimary-theoryNum', scope.$index)" placeholder="请输入" clearable
|
|
|
|
|
:style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="理论发料量(计算后)" v-if="judgeShow('workorderprimary-itemsnum')"
|
|
|
|
@ -689,49 +721,46 @@
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('workorderprimaryList-itemsnum')">*</span>理论发料量(计算后)
|
|
|
|
|
</template>
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
|
|
<JnpfInput v-model="scope.row.itemsnum"
|
|
|
|
|
v-if="dataForm.workOrderProductList[0].planNum !=''" disabled
|
|
|
|
|
@change="changeData('workorderprimary-theoryNum', scope.$index)"
|
|
|
|
|
<JnpfInput v-model="scope.row.itemsnum" v-if="dataForm.workOrderProductList[0].planNum !=''"
|
|
|
|
|
disabled @change="changeData('workorderprimary-theoryNum', scope.$index)"
|
|
|
|
|
placeholder="请输入计划加工数量" clearable :style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
<JnpfInput v-model="scope.row.theoryNum" v-else disabled
|
|
|
|
|
@change="changeData('workorderprimary-theoryNum', scope.$index)"
|
|
|
|
|
placeholder="请输入计划加工数量" clearable :style='{ "width": "100%" }'>
|
|
|
|
|
@change="changeData('workorderprimary-theoryNum', scope.$index)" placeholder="请输入计划加工数量"
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="实际发料量" v-if="judgeShow('workorderprimary-realityNum')"
|
|
|
|
|
align="center" prop="realityNum" width="200px">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('workorderprimaryList-realityNum')">*</span>实际发料量
|
|
|
|
|
</template>
|
|
|
|
|
<span class="required-sign" v-if="judgeRequired('workorderprimaryList-realityNum')">*</span>实际发料量
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.realityNum"
|
|
|
|
|
@change="changeData('workorderprimary-realityNum', scope.$index)"
|
|
|
|
|
:disabled="judgeWrite('workorderprimaryList') || judgeWrite('workorderprimaryList-realityNum')"
|
|
|
|
|
placeholder="请输入1" clearable :style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="原料返库数量" v-if="judgeShow('workorderprimary-returnNum')"
|
|
|
|
|
align="center" prop="returnNum" width="200px">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('workorderprimaryList-returnNum')">*</span>原料返库数量
|
|
|
|
|
</template>
|
|
|
|
|
<span class="required-sign" v-if="judgeRequired('workorderprimaryList-returnNum')">*</span>原料返库数量
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.returnNum"
|
|
|
|
|
@change="changeData('workorderprimary-returnNum', scope.$index)"
|
|
|
|
|
:disabled="judgeWrite('workorderprimaryList')||judgeWrite('workorderprimaryList-returnNum')"
|
|
|
|
|
placeholder="请输入" clearable :style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="原料报损数量" v-if="judgeShow('workorderprimary-reportlossNum')"
|
|
|
|
@ -739,56 +768,49 @@
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('workorderprimaryList-reportlossNum')">*</span>原料报损数量
|
|
|
|
|
</template>
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.reportlossNum"
|
|
|
|
|
@change="changeData('workorderprimary-reportlossNum', scope.$index)"
|
|
|
|
|
:disabled="judgeWrite('workorderprimaryList')||judgeWrite('workorderprimaryList-reportlossNum')"
|
|
|
|
|
placeholder="请输入" clearable :style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="货区名称" v-if="judgeShow('workorderprimary-cargoId')"
|
|
|
|
|
align="center" prop="cargoId" width="180px">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('workorderprimaryList-cargoId')">*</span>货区名称
|
|
|
|
|
</template>
|
|
|
|
|
<span class="required-sign" v-if="judgeRequired('workorderprimaryList-cargoId')">*</span>货区名称
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfPopupSelect v-model="scope.row.cargoId"
|
|
|
|
|
@change="changeData('workorderprimary-cargoId', scope.$index)"
|
|
|
|
|
:rowIndex="scope.$index" :formData="dataForm"
|
|
|
|
|
:templateJson="interfaceRes.workorderprimarycargoId" placeholder="请选择" hasPage
|
|
|
|
|
propsValue="id" popupWidth="800px" popupTitle="选择数据" popupType="dialog"
|
|
|
|
|
@change="changeData('workorderprimary-cargoId', scope.$index)" :rowIndex="scope.$index"
|
|
|
|
|
:formData="dataForm" :templateJson="interfaceRes.workorderprimarycargoId" placeholder="请选择"
|
|
|
|
|
hasPage propsValue="id" popupWidth="800px" popupTitle="选择数据" popupType="dialog"
|
|
|
|
|
relationField='cargo_name' :field="'cargoId' + scope.$index"
|
|
|
|
|
:disabled="judgeWrite('workorderprimaryList')||judgeWrite('workorderprimaryList-cargoId')"
|
|
|
|
|
interfaceId="530700536261903749" :pageSize="20"
|
|
|
|
|
:columnOptions="workorderprimarycargoIdcolumnOptions" clearable
|
|
|
|
|
:style='{ "width": "100%" }'>
|
|
|
|
|
:columnOptions="workorderprimarycargoIdcolumnOptions" clearable :style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfPopupSelect>
|
|
|
|
|
</template>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="批次号" v-if="judgeShow('workorderprimary-batchNumber')"
|
|
|
|
|
width="180px" prop="batchNumber">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('workorderprimaryList-batchNumber')">*</span>批次号
|
|
|
|
|
</template>
|
|
|
|
|
<span class="required-sign" v-if="judgeRequired('workorderprimaryList-batchNumber')">*</span>批次号
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfPopupSelect v-model="scope.row.batchNumber"
|
|
|
|
|
@change="changeData('workorderprimary-batchNumber',scope.$index)"
|
|
|
|
|
:rowIndex="scope.$index" :formData="dataForm"
|
|
|
|
|
:templateJson="interfaceRes.workorderprimarybatchNumber" placeholder="请选择"
|
|
|
|
|
hasPage propsValue="batchNumber" popupWidth="800px" popupTitle="选择数据"
|
|
|
|
|
popupType="dialog" relationField='batchNumber'
|
|
|
|
|
:disabled="judgeWrite('workorderprimaryList')||judgeWrite('workorderprimaryList-batchNumber')"
|
|
|
|
|
:field="'batchNumber'+scope.$index" interfaceId="550272582679552965"
|
|
|
|
|
:pageSize="20" :columnOptions="workorderprimarybatchNumbercolumnOptions"
|
|
|
|
|
clearable :style='{"width":"100%"}'>
|
|
|
|
|
@change="changeData('workorderprimary-batchNumber',scope.$index)" :rowIndex="scope.$index"
|
|
|
|
|
:formData="dataForm" :templateJson="interfaceRes.workorderprimarybatchNumber" placeholder="请选择"
|
|
|
|
|
hasPage propsValue="batchNumber" popupWidth="800px" popupTitle="选择数据" popupType="dialog"
|
|
|
|
|
relationField='batchNumber' :disabled="true" :field="'batchNumber'+scope.$index"
|
|
|
|
|
interfaceId="550272582679552965" :pageSize="20"
|
|
|
|
|
:columnOptions="workorderprimarybatchNumbercolumnOptions" clearable :style='{"width":"100%"}'>
|
|
|
|
|
</JnpfPopupSelect>
|
|
|
|
|
</template>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<!-- <el-table-column label="批次号选择" v-if="judgeShow('workorderprimary-batchNumber')"
|
|
|
|
@ -818,7 +840,7 @@
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button size="mini" type="text" class="JNPF-table-delBtn"
|
|
|
|
|
@click="delworkorderprimaryList(scope.$index)">删除</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
</el-table>
|
|
|
|
@ -1003,13 +1025,7 @@ export default {
|
|
|
|
|
trigger: 'change'
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
teamId: [
|
|
|
|
|
{
|
|
|
|
|
required: true,
|
|
|
|
|
message: '请选择',
|
|
|
|
|
trigger: 'change'
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
productId: [
|
|
|
|
|
{
|
|
|
|
|
required: true,
|
|
|
|
@ -1042,7 +1058,7 @@ export default {
|
|
|
|
|
teamIdcolumnOptions: [{ "label": "班组编码", "value": "team_code" }, { "label": "班组名称", "value": "team_name" },],
|
|
|
|
|
warehouseIdcolumnOptions: [{ "label": "仓库名称", "value": "name" }, { "label": "仓库编码", "value": "code" },],
|
|
|
|
|
productIdcolumnOptions: [{ "label": "商品名称", "value": "name" }, { "label": "商品规格", "value": "spec" }, { "label": "库存单位", "value": "inventoryUnitId" },
|
|
|
|
|
{ "label": "商品简称", "value": "shortName" }, { "label": "商品条码", "value": "barCode" }],
|
|
|
|
|
{ "label": "商品简称", "value": "shortName" }, { "label": "商品编码", "value": "code" }],
|
|
|
|
|
|
|
|
|
|
workorderproductproductIdcolumnOptions: [{ "label": "商品编码", "value": "code" }, { "label": "商品名称", "value": "name" },],
|
|
|
|
|
workorderproductunitIdcolumnOptions: [{ "label": "单位名称", "value": "unit_name" },],
|
|
|
|
@ -1131,6 +1147,7 @@ export default {
|
|
|
|
|
productId: e.productId,
|
|
|
|
|
productTypeId: e.productTypeId,
|
|
|
|
|
spec: e.spec,
|
|
|
|
|
code: e.code,
|
|
|
|
|
inventoryUnitId: e.inventoryUnitId,
|
|
|
|
|
barCode: e.barCode,
|
|
|
|
|
theoryNum: e.theoryNum,
|
|
|
|
@ -1151,19 +1168,19 @@ export default {
|
|
|
|
|
productId: e.productId,
|
|
|
|
|
productTypeId: e.productTypeId,
|
|
|
|
|
spec: e.spec,
|
|
|
|
|
code: e.code,
|
|
|
|
|
inventoryUnitId: e.inventoryUnitId,
|
|
|
|
|
realityNum: 0,
|
|
|
|
|
returnNum: 0,
|
|
|
|
|
reportlossNum: 0,
|
|
|
|
|
productTypeId: e.productTypeId,
|
|
|
|
|
spec: e.spec,
|
|
|
|
|
inventoryUnitId: e.inventoryUnitId,
|
|
|
|
|
unitId: e.inventoryUnitId,
|
|
|
|
|
barCode: e.barCode,
|
|
|
|
|
theoryNum: e.theoryNum,
|
|
|
|
|
itemsnum: e.itemsnum,
|
|
|
|
|
cargoId: e.cargoId,
|
|
|
|
|
batchNumber: "PZINPUT001",
|
|
|
|
|
// batchNumber: "PZINPUT001",
|
|
|
|
|
isInput: '2',
|
|
|
|
|
bomId: e.bomId,
|
|
|
|
|
}
|
|
|
|
@ -1435,7 +1452,7 @@ export default {
|
|
|
|
|
salesMainUnitIds: list.salesMainUnitIds,
|
|
|
|
|
unitId: list.inventoryUnitIds,
|
|
|
|
|
productTypeIds: list.productTypeId,
|
|
|
|
|
|
|
|
|
|
code: list.code,
|
|
|
|
|
spec: list.spec,
|
|
|
|
|
barCode: list.barCode,
|
|
|
|
|
inventoryUnitId: list.inventoryUnitIds,
|
|
|
|
@ -1488,6 +1505,7 @@ export default {
|
|
|
|
|
productTypeIds: e.productTypeId,
|
|
|
|
|
productName: e.name,
|
|
|
|
|
spec: e.spec,
|
|
|
|
|
code: e.code,
|
|
|
|
|
barCode: e.barCode,
|
|
|
|
|
inventoryUnitId: e.inventoryUnitIds,
|
|
|
|
|
productTypeId: e.inventoryType,
|
|
|
|
|