|
|
@ -2,12 +2,18 @@ |
|
|
<div class="mod-config"> |
|
|
<div class="mod-config"> |
|
|
<!-- 查询条件 --> |
|
|
<!-- 查询条件 --> |
|
|
<el-form :inline="true" label-position="top" :model="searchData" @keyup.enter.native="getDataList()"> |
|
|
<el-form :inline="true" label-position="top" :model="searchData" @keyup.enter.native="getDataList()"> |
|
|
<el-form-item :label="'材料编码'"> |
|
|
|
|
|
|
|
|
<el-form-item :label="'物料编码'"> |
|
|
<el-input v-model="searchData.partNo" clearable style="width: 120px"></el-input> |
|
|
<el-input v-model="searchData.partNo" clearable style="width: 120px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="'ERP物料编码'"> |
|
|
|
|
|
<el-input v-model="searchData.erpPartNo" clearable style="width: 120px"></el-input> |
|
|
|
|
|
|
|
|
<el-form-item :label="'物料描述'"> |
|
|
|
|
|
<el-input v-model="searchData.partDesc" clearable style="width: 210px"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item :label="'物料规格型号'"> |
|
|
|
|
|
<el-input v-model="searchData.spec" clearable style="width: 120px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
<!-- <el-form-item :label="'ERP物料编码'">--> |
|
|
|
|
|
<!-- <el-input v-model="searchData.erpPartNo" clearable style="width: 120px"></el-input>--> |
|
|
|
|
|
<!-- </el-form-item>--> |
|
|
<el-form-item :label="'录入时间'"> |
|
|
<el-form-item :label="'录入时间'"> |
|
|
<el-date-picker |
|
|
<el-date-picker |
|
|
style="width: 120px" |
|
|
style="width: 120px" |
|
|
@ -29,16 +35,10 @@ |
|
|
placeholder="选择日期"> |
|
|
placeholder="选择日期"> |
|
|
</el-date-picker> |
|
|
</el-date-picker> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="'材料描述'"> |
|
|
|
|
|
<el-input v-model="searchData.partDesc" clearable style="width: 210px"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item :label="'材料规格型号'"> |
|
|
|
|
|
<el-input v-model="searchData.spec" clearable style="width: 120px"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item :label="' '"> |
|
|
<el-form-item :label="' '"> |
|
|
<el-button @click="getDataList()">查询</el-button> |
|
|
<el-button @click="getDataList()">查询</el-button> |
|
|
<el-button type="primary" @click="addModal()">新增</el-button> |
|
|
<el-button type="primary" @click="addModal()">新增</el-button> |
|
|
<el-button type="primary" @click="delModal()">删除</el-button> |
|
|
|
|
|
|
|
|
<!-- <el-button type="primary" @click="delModal()">删除</el-button>--> |
|
|
<download-excel |
|
|
<download-excel |
|
|
:fields="fields()" |
|
|
:fields="fields()" |
|
|
:data="exportData" |
|
|
:data="exportData" |
|
|
@ -56,7 +56,7 @@ |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
|
|
|
|
|
|
<!-- 材料列表 --> |
|
|
|
|
|
|
|
|
<!-- 物料列表 --> |
|
|
<el-table |
|
|
<el-table |
|
|
:height="height" |
|
|
:height="height" |
|
|
:data="dataList" |
|
|
:data="dataList" |
|
|
@ -114,80 +114,97 @@ |
|
|
layout="total, sizes, prev, pager, next, jumper"> |
|
|
layout="total, sizes, prev, pager, next, jumper"> |
|
|
</el-pagination> |
|
|
</el-pagination> |
|
|
|
|
|
|
|
|
<!-- 材料新增/编辑模态框 --> |
|
|
|
|
|
<el-dialog :title="modalData.title" :close-on-click-modal="false" v-drag :visible.sync="modalFlag" width="495px"> |
|
|
|
|
|
|
|
|
<!-- 物料新增/编辑模态框 --> |
|
|
|
|
|
<el-dialog :title="modalData.title" :close-on-click-modal="false" v-drag :visible.sync="modalFlag" width="960px"> |
|
|
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: -5px;"> |
|
|
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: -5px;"> |
|
|
<el-form-item label="材料编码" prop="partNo" :rules="rules.partNo"> |
|
|
|
|
|
<el-input v-model="modalData.partNo" style="width: 221px"></el-input> |
|
|
|
|
|
|
|
|
<el-form-item label="物料编码" prop="partNo" :rules="rules.partNo"> |
|
|
|
|
|
<el-input v-model="modalData.partNo" clearable style="width: 120px"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="物料描述" prop="partDesc" :rules="rules.partDesc" style="margin-left: -10px"> |
|
|
|
|
|
<el-input v-model="modalData.partDesc" clearable style="width: 330px"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="规格型号"> |
|
|
|
|
|
<el-input v-model="modalData.spec" clearable style="width: 205px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="材料描述" prop="partDesc" :rules="rules.partDesc"> |
|
|
|
|
|
<el-input v-model="modalData.partDesc" style="width: 221px"></el-input> |
|
|
|
|
|
|
|
|
<el-form-item label="物料类别" prop="partType" :rules="rules.partType"> |
|
|
|
|
|
<el-select v-model="modalData.partType" style="width: 160px"> |
|
|
|
|
|
<el-option label="Manufactured" value="Manufactured"></el-option> |
|
|
|
|
|
<el-option label="Manufactured recipe" value="Manufactured recipe"></el-option> |
|
|
|
|
|
<el-option label="Purchase raw" value="Purchase raw"></el-option> |
|
|
|
|
|
<el-option label="Purchased" value="Purchased"></el-option> |
|
|
|
|
|
</el-select> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="是否在用" prop="active" :rules="rules.active"> |
|
|
|
|
|
<el-select v-model="modalData.active" style="width: 60px"> |
|
|
|
|
|
<el-option label="是" value="Y"></el-option> |
|
|
|
|
|
<el-option label="否" value="N"></el-option> |
|
|
|
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: -5px;"> |
|
|
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: -5px;"> |
|
|
<el-form-item label="规格型号" prop="spec" :rules="rules.spec"> |
|
|
|
|
|
<el-input v-model="modalData.spec" style="width: 221px"></el-input> |
|
|
|
|
|
|
|
|
<el-form-item prop="codeDesc" :rules="rules.codeDesc"> |
|
|
|
|
|
<span slot="label" @click="getBaseList(20)"><a herf="#">属性模板</a></span> |
|
|
|
|
|
<el-input v-model="modalData.codeNo" style="width: 120px"></el-input> |
|
|
|
|
|
<el-input v-model="modalData.codeDesc" disabled style="width: 330px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item prop="umName" :rules="rules.umName"> |
|
|
<el-form-item prop="umName" :rules="rules.umName"> |
|
|
<span slot="label" @click="getBaseList(107)"><a herf="#">计量单位</a></span> |
|
|
<span slot="label" @click="getBaseList(107)"><a herf="#">计量单位</a></span> |
|
|
<el-input v-model="modalData.umName" style="width: 221px"></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="modalData.umId" style="width: 120px"></el-input> |
|
|
|
|
|
<el-input v-model="modalData.umName" disabled style="width: 330px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-form :inline="true" label-position="top" :model="modalData" style="margin-left: 7px;margin-top: -5px;"> |
|
|
<el-form :inline="true" label-position="top" :model="modalData" style="margin-left: 7px;margin-top: -5px;"> |
|
|
<el-form-item prop="familyName" :rules="rules.familyName"> |
|
|
<el-form-item prop="familyName" :rules="rules.familyName"> |
|
|
<span slot="label" @click="getBaseList(108)"><a herf="#">材料分类</a></span> |
|
|
|
|
|
<el-input v-model="modalData.familyName" style="width: 221px"></el-input> |
|
|
|
|
|
|
|
|
<span slot="label" @click="getBaseList(108)"><a herf="#">物料分类</a></span> |
|
|
|
|
|
<el-input v-model="modalData.familyId" style="width: 120px"></el-input> |
|
|
|
|
|
<el-input v-model="modalData.familyName" disabled style="width: 330px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item prop="groupName" :rules="rules.groupName"> |
|
|
<el-form-item prop="groupName" :rules="rules.groupName"> |
|
|
<span slot="label" @click="getBaseList(109)"><a herf="#">材料分组</a></span> |
|
|
|
|
|
<el-input v-model="modalData.groupName" style="width: 221px"></el-input> |
|
|
|
|
|
|
|
|
<span slot="label" @click="getBaseList(109)"><a herf="#">物料分组</a></span> |
|
|
|
|
|
<el-input v-model="modalData.groupId" style="width: 120px"></el-input> |
|
|
|
|
|
<el-input v-model="modalData.groupName" disabled style="width: 330px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-form :inline="true" label-position="top" :model="modalData" style="margin-left: 7px;margin-top: -5px;"> |
|
|
<el-form :inline="true" label-position="top" :model="modalData" style="margin-left: 7px;margin-top: -5px;"> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<span slot="label" @click="getBaseList(110)"><a herf="#">商品组1</a></span> |
|
|
<span slot="label" @click="getBaseList(110)"><a herf="#">商品组1</a></span> |
|
|
<el-input v-model="modalData.productGroupName1" style="width: 221px"></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="modalData.productGroupId1" style="width: 120px"></el-input> |
|
|
|
|
|
<el-input v-model="modalData.productGroupName1" disabled style="width: 330px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<span slot="label" @click="getBaseList(111)"><a herf="#">商品组2</a></span> |
|
|
<span slot="label" @click="getBaseList(111)"><a herf="#">商品组2</a></span> |
|
|
<el-input v-model="modalData.productGroupName2" style="width: 221px"></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="modalData.productGroupId2" style="width: 120px"></el-input> |
|
|
|
|
|
<el-input v-model="modalData.productGroupName2" disabled style="width: 330px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-form :inline="true" label-position="top" :model="modalData" style="margin-left: 7px;margin-top: -5px;"> |
|
|
<el-form :inline="true" label-position="top" :model="modalData" style="margin-left: 7px;margin-top: -5px;"> |
|
|
<el-form-item> |
|
|
|
|
|
<span slot="label" @click="getBaseList(112)"><a herf="#">商品组3</a></span> |
|
|
|
|
|
<el-input v-model="modalData.productGroupName3" style="width: 221px"></el-input> |
|
|
|
|
|
|
|
|
<el-form-item prop="productGroupId3" :rules="rules.productGroupId3"> |
|
|
|
|
|
<span slot="label" @click="getBaseList(112)"><a herf="#">会计组</a></span> |
|
|
|
|
|
<el-input v-model="modalData.productGroupId3" style="width: 120px"></el-input> |
|
|
|
|
|
<el-input v-model="modalData.productGroupName3" disabled style="width: 330px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item> |
|
|
|
|
|
<span slot="label" @click="getBaseList(113)"><a herf="#">商品组4</a></span> |
|
|
|
|
|
<el-input v-model="modalData.productGroupName4" style="width: 221px"></el-input> |
|
|
|
|
|
|
|
|
<el-form-item prop="productGroupId4" :rules="rules.productGroupId4"> |
|
|
|
|
|
<span slot="label" @click="getBaseList(113)"><a herf="#">计划员</a></span> |
|
|
|
|
|
<el-input v-model="modalData.productGroupId4" style="width: 120px"></el-input> |
|
|
|
|
|
<el-input v-model="modalData.productGroupName4" disabled style="width: 330px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: -5px;"> |
|
|
|
|
|
<el-form-item prop="codeDesc" :rules="rules.codeDesc"> |
|
|
|
|
|
<span slot="label" @click="getBaseList(20)"><a herf="#">属性模板</a></span> |
|
|
|
|
|
<el-input v-model="modalData.codeDesc" style="width: 221px"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item prop="manufacturerName" :rules="rules.manufacturerName"> |
|
|
|
|
|
<span slot="label" @click="getBaseList(114)"><a herf="#">制造商</a></span> |
|
|
|
|
|
<el-input v-model="modalData.manufacturerName" style="width: 221px"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-form> |
|
|
|
|
|
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: -5px;"> |
|
|
|
|
|
<el-form-item label="是否在用" prop="active" :rules="rules.active"> |
|
|
|
|
|
<el-select v-model="modalData.active" style="width: 221px"> |
|
|
|
|
|
<el-option label="是" value="Y"></el-option> |
|
|
|
|
|
<el-option label="否" value="N"></el-option> |
|
|
|
|
|
</el-select> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<!-- <el-form-item prop="agentName" :rules="rules.agentName">--> |
|
|
|
|
|
<!-- <span slot="label" @click="getAgentList()"><a>代理商</a></span>--> |
|
|
|
|
|
<!-- <el-input v-model="modalData.agentName" style="width: 221px"></el-input>--> |
|
|
|
|
|
|
|
|
<!-- <el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: -5px;">--> |
|
|
|
|
|
<!-- <el-form-item prop="manufacturerName" :rules="rules.manufacturerName">--> |
|
|
|
|
|
<!-- <span slot="label" @click="getBaseList(114)"><a herf="#">制造商</a></span>--> |
|
|
|
|
|
<!-- <el-input v-model="modalData.manufacturerName" style="width: 221px"></el-input>--> |
|
|
<!-- </el-form-item>--> |
|
|
<!-- </el-form-item>--> |
|
|
</el-form> |
|
|
|
|
|
|
|
|
<!-- </el-form>--> |
|
|
|
|
|
<!-- <el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: -5px;">--> |
|
|
|
|
|
|
|
|
|
|
|
<!--<!– <el-form-item prop="agentName" :rules="rules.agentName">–>--> |
|
|
|
|
|
<!--<!– <span slot="label" @click="getAgentList()"><a>代理商</a></span>–>--> |
|
|
|
|
|
<!--<!– <el-input v-model="modalData.agentName" style="width: 221px"></el-input>–>--> |
|
|
|
|
|
<!--<!– </el-form-item>–>--> |
|
|
|
|
|
<!-- </el-form>--> |
|
|
<el-form :inline="true" label-position="top" :model="modalData" style="margin-left: 7px;margin-top: -5px;"> |
|
|
<el-form :inline="true" label-position="top" :model="modalData" style="margin-left: 7px;margin-top: -5px;"> |
|
|
<el-form-item label="备注"> |
|
|
<el-form-item label="备注"> |
|
|
<el-input type="textarea" v-model="modalData.remark" :rows="3" resize='none' show-word-limit style="width: 456px;height: 60px"></el-input> |
|
|
|
|
|
|
|
|
<el-input type="textarea" v-model="modalData.remark" :rows="3" resize='none' show-word-limit style="width: 921px;height: 60px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-footer style="height:35px;margin-top: 55px;text-align:center"> |
|
|
<el-footer style="height:35px;margin-top: 55px;text-align:center"> |
|
|
@ -198,8 +215,8 @@ |
|
|
|
|
|
|
|
|
<!-- 页签 --> |
|
|
<!-- 页签 --> |
|
|
<el-tabs v-model="activeTable" style="margin-top: 0px; width: 100%; min-height: 294px" type="border-card" @tab-click="tabClick" class="customer-tab"> |
|
|
<el-tabs v-model="activeTable" style="margin-top: 0px; width: 100%; min-height: 294px" type="border-card" @tab-click="tabClick" class="customer-tab"> |
|
|
<!-- 材料属性页签 --> |
|
|
|
|
|
<el-tab-pane label="材料属性" name="part_item"> |
|
|
|
|
|
|
|
|
<!-- 物料属性页签 --> |
|
|
|
|
|
<el-tab-pane label="物料属性" name="part_item"> |
|
|
<el-table |
|
|
<el-table |
|
|
:data="partItemList" |
|
|
:data="partItemList" |
|
|
:height="secondHeight" |
|
|
:height="secondHeight" |
|
|
@ -315,7 +332,7 @@ |
|
|
</el-tab-pane> |
|
|
</el-tab-pane> |
|
|
</el-tabs> |
|
|
</el-tabs> |
|
|
|
|
|
|
|
|
<!-- 材料属性值编辑模态框 --> |
|
|
|
|
|
|
|
|
<!-- 物料属性值编辑模态框 --> |
|
|
<el-dialog title="属性项目" :close-on-click-modal="false" v-drag :visible.sync="itemModalFlag" width="310px"> |
|
|
<el-dialog title="属性项目" :close-on-click-modal="false" v-drag :visible.sync="itemModalFlag" width="310px"> |
|
|
<el-form :inline="true" label-position="top" style="margin-left: 7px;margin-top: -5px;"> |
|
|
<el-form :inline="true" label-position="top" style="margin-left: 7px;margin-top: -5px;"> |
|
|
<el-form-item label="属性编码:"> |
|
|
<el-form-item label="属性编码:"> |
|
|
@ -507,21 +524,21 @@ |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import { |
|
|
import { |
|
|
partInformationSearch, // 材料信息列表查询 |
|
|
|
|
|
partInformationSave, // 材料信息新增 |
|
|
|
|
|
partInformationEdit, // 材料信息编辑 |
|
|
|
|
|
partInformationDelete, // 材料信息删除 |
|
|
|
|
|
getPartItem, // 查询材料属性 |
|
|
|
|
|
|
|
|
partInformationSearch, // 物料信息列表查询 |
|
|
|
|
|
partInformationSave, // 物料信息新增 |
|
|
|
|
|
partInformationEdit, // 物料信息编辑 |
|
|
|
|
|
partInformationDelete, // 物料信息删除 |
|
|
|
|
|
getPartItem, // 查询物料属性 |
|
|
savePartItemValue, // 编辑属性值 |
|
|
savePartItemValue, // 编辑属性值 |
|
|
getAgentList, // 获取代理商列表 |
|
|
getAgentList, // 获取代理商列表 |
|
|
getPartAgent, // 获取材料代理商 |
|
|
|
|
|
|
|
|
getPartAgent, // 获取物料代理商 |
|
|
getAgentListBy, // 根据条件查询可选代理商 |
|
|
getAgentListBy, // 根据条件查询可选代理商 |
|
|
addPartAgent, // 新增物料代理商 |
|
|
addPartAgent, // 新增物料代理商 |
|
|
deletePartAgent, // 删除物料代理商 |
|
|
deletePartAgent, // 删除物料代理商 |
|
|
deleteAgent // 删除物料代理商(单删) |
|
|
deleteAgent // 删除物料代理商(单删) |
|
|
} from '@/api/part/partInformation.js' |
|
|
} from '@/api/part/partInformation.js' |
|
|
import { |
|
|
import { |
|
|
getFileContentList, // 获取材料单附件列表 |
|
|
|
|
|
|
|
|
getFileContentList, // 获取物料单附件列表 |
|
|
deleteQuotationFile, // 文件删除 |
|
|
deleteQuotationFile, // 文件删除 |
|
|
downLoadQuotationFile // 文件下载 |
|
|
downLoadQuotationFile // 文件下载 |
|
|
} from '@/api/quotation/quotationInformation.js' |
|
|
} from '@/api/quotation/quotationInformation.js' |
|
|
@ -653,11 +670,11 @@ |
|
|
functionId: 104001, |
|
|
functionId: 104001, |
|
|
serialNumber: '104001Table1PartNo', |
|
|
serialNumber: '104001Table1PartNo', |
|
|
tableId: '104001Table1', |
|
|
tableId: '104001Table1', |
|
|
tableName: '材料信息表', |
|
|
|
|
|
|
|
|
tableName: '物料信息表', |
|
|
columnProp: 'partNo', |
|
|
columnProp: 'partNo', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'left', |
|
|
align: 'left', |
|
|
columnLabel: '材料编码', |
|
|
|
|
|
|
|
|
columnLabel: '物料编码', |
|
|
columnHidden: false, |
|
|
columnHidden: false, |
|
|
columnImage: false, |
|
|
columnImage: false, |
|
|
columnSortable: false, |
|
|
columnSortable: false, |
|
|
@ -671,7 +688,7 @@ |
|
|
// functionId: 104001, |
|
|
// functionId: 104001, |
|
|
// serialNumber: '104001Table1ERPPartNo', |
|
|
// serialNumber: '104001Table1ERPPartNo', |
|
|
// tableId: '104001Table1', |
|
|
// tableId: '104001Table1', |
|
|
// tableName: '材料信息表', |
|
|
|
|
|
|
|
|
// tableName: '物料信息表', |
|
|
// columnProp: 'erpPartNo', |
|
|
// columnProp: 'erpPartNo', |
|
|
// headerAlign: 'center', |
|
|
// headerAlign: 'center', |
|
|
// align: 'left', |
|
|
// align: 'left', |
|
|
@ -689,11 +706,11 @@ |
|
|
functionId: 104001, |
|
|
functionId: 104001, |
|
|
serialNumber: '104001Table1PartDesc', |
|
|
serialNumber: '104001Table1PartDesc', |
|
|
tableId: '104001Table1', |
|
|
tableId: '104001Table1', |
|
|
tableName: '材料信息表', |
|
|
|
|
|
|
|
|
tableName: '物料信息表', |
|
|
columnProp: 'partDesc', |
|
|
columnProp: 'partDesc', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'left', |
|
|
align: 'left', |
|
|
columnLabel: '材料描述', |
|
|
|
|
|
|
|
|
columnLabel: '物料描述', |
|
|
columnHidden: false, |
|
|
columnHidden: false, |
|
|
columnImage: false, |
|
|
columnImage: false, |
|
|
columnSortable: false, |
|
|
columnSortable: false, |
|
|
@ -707,7 +724,7 @@ |
|
|
functionId: 104001, |
|
|
functionId: 104001, |
|
|
serialNumber: '104001Table1Spec', |
|
|
serialNumber: '104001Table1Spec', |
|
|
tableId: '104001Table1', |
|
|
tableId: '104001Table1', |
|
|
tableName: '材料信息表', |
|
|
|
|
|
|
|
|
tableName: '物料信息表', |
|
|
columnProp: 'spec', |
|
|
columnProp: 'spec', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'center', |
|
|
align: 'center', |
|
|
@ -725,7 +742,7 @@ |
|
|
functionId: 104001, |
|
|
functionId: 104001, |
|
|
serialNumber: '104001Table1UmId', |
|
|
serialNumber: '104001Table1UmId', |
|
|
tableId: '104001Table1', |
|
|
tableId: '104001Table1', |
|
|
tableName: '材料信息表', |
|
|
|
|
|
|
|
|
tableName: '物料信息表', |
|
|
columnProp: 'umName', |
|
|
columnProp: 'umName', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'left', |
|
|
align: 'left', |
|
|
@ -743,11 +760,11 @@ |
|
|
functionId: 104001, |
|
|
functionId: 104001, |
|
|
serialNumber: '104001Table1FamilyName', |
|
|
serialNumber: '104001Table1FamilyName', |
|
|
tableId: '104001Table1', |
|
|
tableId: '104001Table1', |
|
|
tableName: '材料信息表', |
|
|
|
|
|
|
|
|
tableName: '物料信息表', |
|
|
columnProp: 'familyName', |
|
|
columnProp: 'familyName', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'left', |
|
|
align: 'left', |
|
|
columnLabel: '材料分类1', |
|
|
|
|
|
|
|
|
columnLabel: '物料分类1', |
|
|
columnHidden: false, |
|
|
columnHidden: false, |
|
|
columnImage: false, |
|
|
columnImage: false, |
|
|
columnSortable: false, |
|
|
columnSortable: false, |
|
|
@ -761,11 +778,11 @@ |
|
|
functionId: 104001, |
|
|
functionId: 104001, |
|
|
serialNumber: '104001Table1GroupName', |
|
|
serialNumber: '104001Table1GroupName', |
|
|
tableId: '104001Table1', |
|
|
tableId: '104001Table1', |
|
|
tableName: '材料信息表', |
|
|
|
|
|
|
|
|
tableName: '物料信息表', |
|
|
columnProp: 'groupName', |
|
|
columnProp: 'groupName', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'left', |
|
|
align: 'left', |
|
|
columnLabel: '材料分类2', |
|
|
|
|
|
|
|
|
columnLabel: '物料分类2', |
|
|
columnHidden: false, |
|
|
columnHidden: false, |
|
|
columnImage: false, |
|
|
columnImage: false, |
|
|
columnSortable: false, |
|
|
columnSortable: false, |
|
|
@ -779,7 +796,7 @@ |
|
|
functionId: 104001, |
|
|
functionId: 104001, |
|
|
serialNumber: '104001Table1OtherGroup1', |
|
|
serialNumber: '104001Table1OtherGroup1', |
|
|
tableId: '104001Table1', |
|
|
tableId: '104001Table1', |
|
|
tableName: '材料信息表', |
|
|
|
|
|
|
|
|
tableName: '物料信息表', |
|
|
columnProp: 'productGroupName1', |
|
|
columnProp: 'productGroupName1', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'left', |
|
|
align: 'left', |
|
|
@ -797,7 +814,7 @@ |
|
|
functionId: 104001, |
|
|
functionId: 104001, |
|
|
serialNumber: '104001Table1OtherGroup2', |
|
|
serialNumber: '104001Table1OtherGroup2', |
|
|
tableId: '104001Table1', |
|
|
tableId: '104001Table1', |
|
|
tableName: '材料信息表', |
|
|
|
|
|
|
|
|
tableName: '物料信息表', |
|
|
columnProp: 'productGroupName2', |
|
|
columnProp: 'productGroupName2', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'left', |
|
|
align: 'left', |
|
|
@ -815,7 +832,7 @@ |
|
|
functionId: 104001, |
|
|
functionId: 104001, |
|
|
serialNumber: '104001Table1OtherGroup3', |
|
|
serialNumber: '104001Table1OtherGroup3', |
|
|
tableId: '104001Table1', |
|
|
tableId: '104001Table1', |
|
|
tableName: '材料信息表', |
|
|
|
|
|
|
|
|
tableName: '物料信息表', |
|
|
columnProp: 'productGroupName3', |
|
|
columnProp: 'productGroupName3', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'left', |
|
|
align: 'left', |
|
|
@ -833,7 +850,7 @@ |
|
|
functionId: 104001, |
|
|
functionId: 104001, |
|
|
serialNumber: '104001Table1OtherGroup4', |
|
|
serialNumber: '104001Table1OtherGroup4', |
|
|
tableId: '104001Table1', |
|
|
tableId: '104001Table1', |
|
|
tableName: '材料信息表', |
|
|
|
|
|
|
|
|
tableName: '物料信息表', |
|
|
columnProp: 'productGroupName4', |
|
|
columnProp: 'productGroupName4', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'left', |
|
|
align: 'left', |
|
|
@ -851,7 +868,7 @@ |
|
|
functionId: 104001, |
|
|
functionId: 104001, |
|
|
serialNumber: '104001Table1ItemNo', |
|
|
serialNumber: '104001Table1ItemNo', |
|
|
tableId: '104001Table1', |
|
|
tableId: '104001Table1', |
|
|
tableName: '材料信息表', |
|
|
|
|
|
|
|
|
tableName: '物料信息表', |
|
|
columnProp: 'codeDesc', |
|
|
columnProp: 'codeDesc', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'left', |
|
|
align: 'left', |
|
|
@ -869,7 +886,7 @@ |
|
|
functionId: 104001, |
|
|
functionId: 104001, |
|
|
serialNumber: '104001Table1ManufacturerName', |
|
|
serialNumber: '104001Table1ManufacturerName', |
|
|
tableId: '104001Table1', |
|
|
tableId: '104001Table1', |
|
|
tableName: '材料信息表', |
|
|
|
|
|
|
|
|
tableName: '物料信息表', |
|
|
columnProp: 'manufacturerName', |
|
|
columnProp: 'manufacturerName', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'left', |
|
|
align: 'left', |
|
|
@ -887,7 +904,7 @@ |
|
|
functionId: 104001, |
|
|
functionId: 104001, |
|
|
serialNumber: '104001Table1AgentName', |
|
|
serialNumber: '104001Table1AgentName', |
|
|
tableId: '104001Table1', |
|
|
tableId: '104001Table1', |
|
|
tableName: '材料信息表', |
|
|
|
|
|
|
|
|
tableName: '物料信息表', |
|
|
columnProp: 'agentName', |
|
|
columnProp: 'agentName', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'left', |
|
|
align: 'left', |
|
|
@ -905,7 +922,7 @@ |
|
|
functionId: 104001, |
|
|
functionId: 104001, |
|
|
serialNumber: '104001Table1Remark', |
|
|
serialNumber: '104001Table1Remark', |
|
|
tableId: '104001Table1', |
|
|
tableId: '104001Table1', |
|
|
tableName: '材料信息表', |
|
|
|
|
|
|
|
|
tableName: '物料信息表', |
|
|
columnProp: 'remark', |
|
|
columnProp: 'remark', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'left', |
|
|
align: 'left', |
|
|
@ -923,7 +940,7 @@ |
|
|
functionId: 104001, |
|
|
functionId: 104001, |
|
|
serialNumber: '104001Table1Active', |
|
|
serialNumber: '104001Table1Active', |
|
|
tableId: '104001Table1', |
|
|
tableId: '104001Table1', |
|
|
tableName: '材料信息表', |
|
|
|
|
|
|
|
|
tableName: '物料信息表', |
|
|
columnProp: 'active', |
|
|
columnProp: 'active', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'center', |
|
|
align: 'center', |
|
|
@ -941,7 +958,7 @@ |
|
|
functionId: 104001, |
|
|
functionId: 104001, |
|
|
serialNumber: '104001Table1CreateDate', |
|
|
serialNumber: '104001Table1CreateDate', |
|
|
tableId: '104001Table1', |
|
|
tableId: '104001Table1', |
|
|
tableName: '材料信息表', |
|
|
|
|
|
|
|
|
tableName: '物料信息表', |
|
|
columnProp: 'createDate', |
|
|
columnProp: 'createDate', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'center', |
|
|
align: 'center', |
|
|
@ -959,7 +976,7 @@ |
|
|
functionId: 104001, |
|
|
functionId: 104001, |
|
|
serialNumber: '104001Table1CreateBy', |
|
|
serialNumber: '104001Table1CreateBy', |
|
|
tableId: '104001Table1', |
|
|
tableId: '104001Table1', |
|
|
tableName: '材料信息表', |
|
|
|
|
|
|
|
|
tableName: '物料信息表', |
|
|
columnProp: 'createBy', |
|
|
columnProp: 'createBy', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'center', |
|
|
align: 'center', |
|
|
@ -977,7 +994,7 @@ |
|
|
functionId: 104001, |
|
|
functionId: 104001, |
|
|
serialNumber: '104001Table1UpdateDate', |
|
|
serialNumber: '104001Table1UpdateDate', |
|
|
tableId: '104001Table1', |
|
|
tableId: '104001Table1', |
|
|
tableName: '材料信息表', |
|
|
|
|
|
|
|
|
tableName: '物料信息表', |
|
|
columnProp: 'updateDate', |
|
|
columnProp: 'updateDate', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'center', |
|
|
align: 'center', |
|
|
@ -995,7 +1012,7 @@ |
|
|
functionId: 104001, |
|
|
functionId: 104001, |
|
|
serialNumber: '104001Table1UpdateBy', |
|
|
serialNumber: '104001Table1UpdateBy', |
|
|
tableId: '104001Table1', |
|
|
tableId: '104001Table1', |
|
|
tableName: '材料信息表', |
|
|
|
|
|
|
|
|
tableName: '物料信息表', |
|
|
columnProp: 'updateBy', |
|
|
columnProp: 'updateBy', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'center', |
|
|
align: 'center', |
|
|
@ -1015,7 +1032,7 @@ |
|
|
functionId: 104001, |
|
|
functionId: 104001, |
|
|
serialNumber: '104001Table2PropertiesItemID', |
|
|
serialNumber: '104001Table2PropertiesItemID', |
|
|
tableId: "104001Table2", |
|
|
tableId: "104001Table2", |
|
|
tableName: "材料属性表", |
|
|
|
|
|
|
|
|
tableName: "物料属性表", |
|
|
columnProp: 'propertiesItemNo', |
|
|
columnProp: 'propertiesItemNo', |
|
|
headerAlign: "center", |
|
|
headerAlign: "center", |
|
|
align: "center", |
|
|
align: "center", |
|
|
@ -1033,7 +1050,7 @@ |
|
|
functionId: 104001, |
|
|
functionId: 104001, |
|
|
serialNumber: '104001Table2PropertiesItemDesc', |
|
|
serialNumber: '104001Table2PropertiesItemDesc', |
|
|
tableId: "104001Table2", |
|
|
tableId: "104001Table2", |
|
|
tableName: "材料属性表", |
|
|
|
|
|
|
|
|
tableName: "物料属性表", |
|
|
columnProp: 'itemDesc', |
|
|
columnProp: 'itemDesc', |
|
|
headerAlign: "center", |
|
|
headerAlign: "center", |
|
|
align: "center", |
|
|
align: "center", |
|
|
@ -1051,7 +1068,7 @@ |
|
|
functionId: 104001, |
|
|
functionId: 104001, |
|
|
serialNumber: '104001Table2ValueType', |
|
|
serialNumber: '104001Table2ValueType', |
|
|
tableId: "104001Table2", |
|
|
tableId: "104001Table2", |
|
|
tableName: "材料属性表", |
|
|
|
|
|
|
|
|
tableName: "物料属性表", |
|
|
columnProp: 'valueType', |
|
|
columnProp: 'valueType', |
|
|
headerAlign: "center", |
|
|
headerAlign: "center", |
|
|
align: "center", |
|
|
align: "center", |
|
|
@ -1069,7 +1086,7 @@ |
|
|
functionId: 104001, |
|
|
functionId: 104001, |
|
|
serialNumber: '104001Table2ValueChooseFlag', |
|
|
serialNumber: '104001Table2ValueChooseFlag', |
|
|
tableId: "104001Table2", |
|
|
tableId: "104001Table2", |
|
|
tableName: "材料属性表", |
|
|
|
|
|
|
|
|
tableName: "物料属性表", |
|
|
columnProp: 'textValue', |
|
|
columnProp: 'textValue', |
|
|
headerAlign: "center", |
|
|
headerAlign: "center", |
|
|
align: "center", |
|
|
align: "center", |
|
|
@ -1087,7 +1104,7 @@ |
|
|
functionId: 104001, |
|
|
functionId: 104001, |
|
|
serialNumber: '104001Table2ValueChooseFlag', |
|
|
serialNumber: '104001Table2ValueChooseFlag', |
|
|
tableId: "104001Table2", |
|
|
tableId: "104001Table2", |
|
|
tableName: "材料属性表", |
|
|
|
|
|
|
|
|
tableName: "物料属性表", |
|
|
columnProp: 'numValue', |
|
|
columnProp: 'numValue', |
|
|
headerAlign: "center", |
|
|
headerAlign: "center", |
|
|
align: "center", |
|
|
align: "center", |
|
|
@ -1107,7 +1124,7 @@ |
|
|
functionId: 104001, |
|
|
functionId: 104001, |
|
|
serialNumber: '104001Table3AgentId', |
|
|
serialNumber: '104001Table3AgentId', |
|
|
tableId: "104001Table3", |
|
|
tableId: "104001Table3", |
|
|
tableName: "材料代理商表", |
|
|
|
|
|
|
|
|
tableName: "物料代理商表", |
|
|
columnProp: 'agentId', |
|
|
columnProp: 'agentId', |
|
|
headerAlign: "center", |
|
|
headerAlign: "center", |
|
|
align: "center", |
|
|
align: "center", |
|
|
@ -1124,7 +1141,7 @@ |
|
|
functionId: 104001, |
|
|
functionId: 104001, |
|
|
serialNumber: '104001Table3AgentName', |
|
|
serialNumber: '104001Table3AgentName', |
|
|
tableId: "104001Table3", |
|
|
tableId: "104001Table3", |
|
|
tableName: "材料代理商表", |
|
|
|
|
|
|
|
|
tableName: "物料代理商表", |
|
|
columnProp: 'agentName', |
|
|
columnProp: 'agentName', |
|
|
headerAlign: "center", |
|
|
headerAlign: "center", |
|
|
align: "center", |
|
|
align: "center", |
|
|
@ -1141,7 +1158,7 @@ |
|
|
functionId: 104001, |
|
|
functionId: 104001, |
|
|
serialNumber: '104001Table3Active', |
|
|
serialNumber: '104001Table3Active', |
|
|
tableId: '104001Table3', |
|
|
tableId: '104001Table3', |
|
|
tableName: '材料代理商表', |
|
|
|
|
|
|
|
|
tableName: '物料代理商表', |
|
|
columnProp: 'active', |
|
|
columnProp: 'active', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'center', |
|
|
align: 'center', |
|
|
@ -1158,7 +1175,7 @@ |
|
|
functionId: 104001, |
|
|
functionId: 104001, |
|
|
serialNumber: '104001Table3CreateDate', |
|
|
serialNumber: '104001Table3CreateDate', |
|
|
tableId: '104001Table3', |
|
|
tableId: '104001Table3', |
|
|
tableName: '材料代理商表', |
|
|
|
|
|
|
|
|
tableName: '物料代理商表', |
|
|
columnProp: 'createDate', |
|
|
columnProp: 'createDate', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'center', |
|
|
align: 'center', |
|
|
@ -1175,7 +1192,7 @@ |
|
|
functionId: 104001, |
|
|
functionId: 104001, |
|
|
serialNumber: '104001Table3CreateBy', |
|
|
serialNumber: '104001Table3CreateBy', |
|
|
tableId: '104001Table3', |
|
|
tableId: '104001Table3', |
|
|
tableName: '材料代理商表', |
|
|
|
|
|
|
|
|
tableName: '物料代理商表', |
|
|
columnProp: 'createBy', |
|
|
columnProp: 'createBy', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'center', |
|
|
align: 'center', |
|
|
@ -1192,7 +1209,7 @@ |
|
|
functionId: 104001, |
|
|
functionId: 104001, |
|
|
serialNumber: '104001Table3UpdateDate', |
|
|
serialNumber: '104001Table3UpdateDate', |
|
|
tableId: '104001Table3', |
|
|
tableId: '104001Table3', |
|
|
tableName: '材料代理商表', |
|
|
|
|
|
|
|
|
tableName: '物料代理商表', |
|
|
columnProp: 'updateDate', |
|
|
columnProp: 'updateDate', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'center', |
|
|
align: 'center', |
|
|
@ -1209,7 +1226,7 @@ |
|
|
functionId: 104001, |
|
|
functionId: 104001, |
|
|
serialNumber: '104001Table3UpdateBy', |
|
|
serialNumber: '104001Table3UpdateBy', |
|
|
tableId: '104001Table3', |
|
|
tableId: '104001Table3', |
|
|
tableName: '材料代理商表', |
|
|
|
|
|
|
|
|
tableName: '物料代理商表', |
|
|
columnProp: 'updateBy', |
|
|
columnProp: 'updateBy', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'center', |
|
|
align: 'center', |
|
|
@ -1334,13 +1351,6 @@ |
|
|
trigger: 'change' |
|
|
trigger: 'change' |
|
|
} |
|
|
} |
|
|
], |
|
|
], |
|
|
spec: [ |
|
|
|
|
|
{ |
|
|
|
|
|
required: true, |
|
|
|
|
|
message: ' ', |
|
|
|
|
|
trigger: 'change' |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
|
|
|
umName: [ |
|
|
umName: [ |
|
|
{ |
|
|
{ |
|
|
required: true, |
|
|
required: true, |
|
|
@ -1390,6 +1400,27 @@ |
|
|
trigger: 'change' |
|
|
trigger: 'change' |
|
|
} |
|
|
} |
|
|
], |
|
|
], |
|
|
|
|
|
partType: [ |
|
|
|
|
|
{ |
|
|
|
|
|
required: true, |
|
|
|
|
|
message: ' ', |
|
|
|
|
|
trigger: 'change' |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
|
|
|
productGroupId3: [ |
|
|
|
|
|
{ |
|
|
|
|
|
required: true, |
|
|
|
|
|
message: ' ', |
|
|
|
|
|
trigger: 'change' |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
|
|
|
productGroupId4: [ |
|
|
|
|
|
{ |
|
|
|
|
|
required: true, |
|
|
|
|
|
message: ' ', |
|
|
|
|
|
trigger: 'change' |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
}, |
|
|
}, |
|
|
// ======== 复选数据集 ======== |
|
|
// ======== 复选数据集 ======== |
|
|
partSelections: [], |
|
|
partSelections: [], |
|
|
@ -1481,7 +1512,7 @@ |
|
|
|
|
|
|
|
|
// ======== 列表数据刷新方法 ======== |
|
|
// ======== 列表数据刷新方法 ======== |
|
|
/** |
|
|
/** |
|
|
* 查询材料属性 |
|
|
|
|
|
|
|
|
* 查询物料属性 |
|
|
*/ |
|
|
*/ |
|
|
getPartItem () { |
|
|
getPartItem () { |
|
|
let tempData = { |
|
|
let tempData = { |
|
|
@ -1499,7 +1530,7 @@ |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
/** |
|
|
/** |
|
|
* 查询材料代理商 |
|
|
|
|
|
|
|
|
* 查询物料代理商 |
|
|
*/ |
|
|
*/ |
|
|
getPartAgent () { |
|
|
getPartAgent () { |
|
|
let tempData = { |
|
|
let tempData = { |
|
|
@ -1545,18 +1576,18 @@ |
|
|
|
|
|
|
|
|
// ======== 新增/编辑模态框 ======== |
|
|
// ======== 新增/编辑模态框 ======== |
|
|
/** |
|
|
/** |
|
|
* 材料信息新增模态框 |
|
|
|
|
|
|
|
|
* 物料信息新增模态框 |
|
|
*/ |
|
|
*/ |
|
|
addModal () { |
|
|
addModal () { |
|
|
this.modalData = { |
|
|
this.modalData = { |
|
|
flag: '1', |
|
|
flag: '1', |
|
|
title: '材料新增', |
|
|
|
|
|
|
|
|
title: '物料新增', |
|
|
site: this.$store.state.user.site, |
|
|
site: this.$store.state.user.site, |
|
|
partNo: '', |
|
|
partNo: '', |
|
|
partDesc: '', |
|
|
partDesc: '', |
|
|
spec: '', |
|
|
spec: '', |
|
|
partTypeDb: '', |
|
|
partTypeDb: '', |
|
|
partType: '', |
|
|
|
|
|
|
|
|
partType: 'Manufactured', |
|
|
familyId: '', |
|
|
familyId: '', |
|
|
familyName: '', |
|
|
familyName: '', |
|
|
groupId: '', |
|
|
groupId: '', |
|
|
@ -1588,13 +1619,13 @@ |
|
|
this.modalFlag = true |
|
|
this.modalFlag = true |
|
|
}, |
|
|
}, |
|
|
/** |
|
|
/** |
|
|
* 材料信息编辑模态框 |
|
|
|
|
|
|
|
|
* 物料信息编辑模态框 |
|
|
* @param row |
|
|
* @param row |
|
|
*/ |
|
|
*/ |
|
|
updateModal (row) { |
|
|
updateModal (row) { |
|
|
this.modalData = { |
|
|
this.modalData = { |
|
|
flag: '2', |
|
|
flag: '2', |
|
|
title: '材料编辑', |
|
|
|
|
|
|
|
|
title: '物料编辑', |
|
|
site: row.site, |
|
|
site: row.site, |
|
|
partNo: row.partNo, |
|
|
partNo: row.partNo, |
|
|
partDesc: row.partDesc, |
|
|
partDesc: row.partDesc, |
|
|
@ -1807,19 +1838,27 @@ |
|
|
|
|
|
|
|
|
// ======== 新增/编辑/删除方法 ======== |
|
|
// ======== 新增/编辑/删除方法 ======== |
|
|
/** |
|
|
/** |
|
|
* 材料信息新增/编辑 |
|
|
|
|
|
|
|
|
* 物料信息新增/编辑 |
|
|
*/ |
|
|
*/ |
|
|
saveData () { |
|
|
saveData () { |
|
|
if (this.modalData.partNo === '' || this.modalData.partNo == null) { |
|
|
if (this.modalData.partNo === '' || this.modalData.partNo == null) { |
|
|
this.$message.warning('请填写材料编码!') |
|
|
|
|
|
|
|
|
this.$message.warning('请填写物料编码!') |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
if (this.modalData.partDesc === '' || this.modalData.partDesc == null) { |
|
|
if (this.modalData.partDesc === '' || this.modalData.partDesc == null) { |
|
|
this.$message.warning('请填写材料描述!') |
|
|
|
|
|
|
|
|
this.$message.warning('请填写物料描述!') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
if (this.modalData.partType === '' || this.modalData.partType == null) { |
|
|
|
|
|
this.$message.warning('请选择物料类别!') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
if (this.modalData.active === '' || this.modalData.active == null) { |
|
|
|
|
|
this.$message.warning('请选择是否在用!') |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
if (this.modalData.spec === '' || this.modalData.spec == null) { |
|
|
|
|
|
this.$message.warning('请填写规格型号!') |
|
|
|
|
|
|
|
|
if (this.modalData.codeNo === '' || this.modalData.codeNo == null) { |
|
|
|
|
|
this.$message.warning('请选择属性模板!') |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
if (this.modalData.umId === '' || this.modalData.umId == null) { |
|
|
if (this.modalData.umId === '' || this.modalData.umId == null) { |
|
|
@ -1834,22 +1873,14 @@ |
|
|
this.$message.warning('请选择分组!') |
|
|
this.$message.warning('请选择分组!') |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
if (this.modalData.codeNo === '' || this.modalData.codeNo == null) { |
|
|
|
|
|
this.$message.warning('请选择属性模板!') |
|
|
|
|
|
|
|
|
if (this.modalData.productGroupId3 === '' || this.modalData.productGroupId3 == null) { |
|
|
|
|
|
this.$message.warning('请选择会计组!') |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
if (this.modalData.manufacturerId === '' || this.modalData.manufacturerId == null) { |
|
|
|
|
|
this.$message.warning('请选择制造商!') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
if (this.modalData.active === '' || this.modalData.active == null) { |
|
|
|
|
|
this.$message.warning('请选择是否在用!') |
|
|
|
|
|
|
|
|
if (this.modalData.productGroupId4 === '' || this.modalData.productGroupId4 == null) { |
|
|
|
|
|
this.$message.warning('请选择计划员!') |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
// if (this.modalData.agentId === '' || this.modalData.agentId == null) { |
|
|
|
|
|
// this.$message.warning('请选择代理商!') |
|
|
|
|
|
// return |
|
|
|
|
|
// } |
|
|
|
|
|
if (this.modalData.flag === '1') { |
|
|
if (this.modalData.flag === '1') { |
|
|
partInformationSave(this.modalData).then(({data}) => { |
|
|
partInformationSave(this.modalData).then(({data}) => { |
|
|
if (data && data.code === 0) { |
|
|
if (data && data.code === 0) { |
|
|
@ -1887,14 +1918,14 @@ |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
/** |
|
|
/** |
|
|
* 材料信息删除 |
|
|
|
|
|
|
|
|
* 物料信息删除 |
|
|
*/ |
|
|
*/ |
|
|
delModal () { |
|
|
delModal () { |
|
|
if(this.partSelections.length === 0){ |
|
|
if(this.partSelections.length === 0){ |
|
|
this.$message.warning('请勾选要删除的材料信息!') |
|
|
|
|
|
|
|
|
this.$message.warning('请勾选要删除的物料信息!') |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
this.$confirm(`是否删除这 `+ this.partSelections.length +` 条材料信息?`, '提示', { |
|
|
|
|
|
|
|
|
this.$confirm(`是否删除这 `+ this.partSelections.length +` 条物料信息?`, '提示', { |
|
|
confirmButtonText: '确定', |
|
|
confirmButtonText: '确定', |
|
|
cancelButtonText: '取消', |
|
|
cancelButtonText: '取消', |
|
|
type: 'warning' |
|
|
type: 'warning' |
|
|
@ -1924,7 +1955,7 @@ |
|
|
|
|
|
|
|
|
// ======== 列表操作方法 ======== |
|
|
// ======== 列表操作方法 ======== |
|
|
/** |
|
|
/** |
|
|
* 单机选中材料信息 |
|
|
|
|
|
|
|
|
* 单机选中物料信息 |
|
|
* @param row |
|
|
* @param row |
|
|
*/ |
|
|
*/ |
|
|
partClickRow (row) { |
|
|
partClickRow (row) { |
|
|
@ -1932,7 +1963,7 @@ |
|
|
this.partCurrentRow = JSON.parse(JSON.stringify(row)) |
|
|
this.partCurrentRow = JSON.parse(JSON.stringify(row)) |
|
|
}, |
|
|
}, |
|
|
/** |
|
|
/** |
|
|
* 复选材料信息 |
|
|
|
|
|
|
|
|
* 复选物料信息 |
|
|
* @param val |
|
|
* @param val |
|
|
*/ |
|
|
*/ |
|
|
selectionPart (val) { |
|
|
selectionPart (val) { |
|
|
@ -2003,7 +2034,7 @@ |
|
|
|
|
|
|
|
|
// ======== 附件的相关方法 ======== |
|
|
// ======== 附件的相关方法 ======== |
|
|
/** |
|
|
/** |
|
|
* 获取材料附件列表 |
|
|
|
|
|
|
|
|
* 获取物料附件列表 |
|
|
*/ |
|
|
*/ |
|
|
getFileContentData () { |
|
|
getFileContentData () { |
|
|
let currentData = { |
|
|
let currentData = { |
|
|
@ -2023,7 +2054,7 @@ |
|
|
*/ |
|
|
*/ |
|
|
uploadFile () { |
|
|
uploadFile () { |
|
|
let currentData = { |
|
|
let currentData = { |
|
|
titleCon: '材料附件上传', |
|
|
|
|
|
|
|
|
titleCon: '物料附件上传', |
|
|
site: this.$store.state.user.site, |
|
|
site: this.$store.state.user.site, |
|
|
createBy: this.$store.state.user.name, |
|
|
createBy: this.$store.state.user.name, |
|
|
partNo: this.partCurrentRow.partNo |
|
|
partNo: this.partCurrentRow.partNo |
|
|
|