|
|
@ -156,7 +156,10 @@ |
|
|
<el-button type="primary" @click="toCopyPartModal">Copy</el-button> |
|
|
<el-button type="primary" @click="toCopyPartModal">Copy</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item v-if="modalData.flag === '3'" label="IFS物料编码" prop="ifsPartNo" :rules="[{required: true,message: ' ',trigger: ['blur','change']}]" style="margin-left: -10px"> |
|
|
<el-form-item v-if="modalData.flag === '3'" label="IFS物料编码" prop="ifsPartNo" :rules="[{required: true,message: ' ',trigger: ['blur','change']}]" style="margin-left: -10px"> |
|
|
<el-input v-model="modalData.ifsPartNo" clearable style="width: 330px"></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="modalData.ifsPartNo" clearable style="width: 130px"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item v-if="modalData.flag === '3'" :label="' '"> |
|
|
|
|
|
<el-button type="primary" @click="toCopyPartModal">Copy</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item v-if="modalData.flag === '3'" :label="' '"> |
|
|
<el-form-item v-if="modalData.flag === '3'" :label="' '"> |
|
|
<el-button type="primary" @click="nextPartNo">Next Part No</el-button> |
|
|
<el-button type="primary" @click="nextPartNo">Next Part No</el-button> |
|
|
@ -1412,13 +1415,23 @@ |
|
|
<el-dialog title="Copy Part" :close-on-click-modal="false" v-drag :visible.sync="copyPartModelFlag" width="480px"> |
|
|
<el-dialog title="Copy Part" :close-on-click-modal="false" v-drag :visible.sync="copyPartModelFlag" width="480px"> |
|
|
<fieldset style="width: 456px"> |
|
|
<fieldset style="width: 456px"> |
|
|
<legend>Part No To Copy</legend> |
|
|
<legend>Part No To Copy</legend> |
|
|
<el-form :inline="true" label-position="top" style="margin-left: 7px"> |
|
|
|
|
|
|
|
|
<el-form v-if="modalData.flag === '3'" :inline="true" label-position="top" style="margin-left: 7px"> |
|
|
|
|
|
<el-form-item> |
|
|
|
|
|
<span style="cursor: pointer" slot="label" @click="queryPartModal"><a>From Part</a></span> |
|
|
|
|
|
<el-input v-model="copyPartData.fromPartNo" readonly style="width: 135px"></el-input> |
|
|
|
|
|
<el-input v-model="copyPartData.fromPartDesc" readonly style="width: 200px"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="From Site"> |
|
|
|
|
|
<el-input v-model="copyPartData.fromPartSite" readonly style="width: 60px"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-form> |
|
|
|
|
|
<el-form v-else :inline="true" label-position="top" style="margin-left: 7px"> |
|
|
<el-form-item label="From Part"> |
|
|
<el-form-item label="From Part"> |
|
|
<el-input v-model="modalData.partNo" readonly style="width: 135px"></el-input> |
|
|
|
|
|
<el-input v-model="modalData.partDesc" readonly style="width: 200px"></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="copyPartData.fromPartNo" readonly style="width: 135px"></el-input> |
|
|
|
|
|
<el-input v-model="copyPartData.fromPartDesc" readonly style="width: 200px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="From Site"> |
|
|
<el-form-item label="From Site"> |
|
|
<el-input v-model="modalData.site" readonly style="width: 60px"></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="copyPartData.fromPartSite" readonly style="width: 60px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-form :inline="true" label-position="top" style="margin-left: 7px"> |
|
|
<el-form :inline="true" label-position="top" style="margin-left: 7px"> |
|
|
@ -1509,6 +1522,57 @@ |
|
|
</el-footer> |
|
|
</el-footer> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 子明细物料模态框 --> |
|
|
|
|
|
<el-dialog title="物料清单" top="17vh" :close-on-click-modal="false" v-drag :visible.sync="fromPartModelFlag" width="940px"> |
|
|
|
|
|
<el-form :inline="true" label-position="top" :model="fromPartData"> |
|
|
|
|
|
<el-form-item label="物料编码"> |
|
|
|
|
|
<el-input v-model="fromPartData.partNo" clearable style="width: 120px"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="物料名称"> |
|
|
|
|
|
<el-input v-model="fromPartData.partDesc" clearable style="width: 120px"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label=" "> |
|
|
|
|
|
<el-button type="primary" @click="queryFromPartList">查询</el-button> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-form> |
|
|
|
|
|
<el-table |
|
|
|
|
|
:height="250" |
|
|
|
|
|
:data="fromPartList" |
|
|
|
|
|
@row-dblclick="getFromRowData" |
|
|
|
|
|
border |
|
|
|
|
|
style="width: 100%;"> |
|
|
|
|
|
<el-table-column |
|
|
|
|
|
v-for="(item,index) in fromPartColumnList" :key="index" |
|
|
|
|
|
:sortable="item.columnSortable" |
|
|
|
|
|
:prop="item.columnProp" |
|
|
|
|
|
:header-align="item.headerAlign" |
|
|
|
|
|
:show-overflow-tooltip="item.showOverflowTooltip" |
|
|
|
|
|
:align="item.align" |
|
|
|
|
|
:fixed="item.fixed==''?false:item.fixed" |
|
|
|
|
|
:min-width="item.columnWidth" |
|
|
|
|
|
:label="item.columnLabel"> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
<span v-if="!item.columnHidden">{{scope.row[item.columnProp]}}</span> |
|
|
|
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span> |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
</el-table> |
|
|
|
|
|
<!-- 分页插件 --> |
|
|
|
|
|
<el-pagination |
|
|
|
|
|
style="margin-top: 5px" |
|
|
|
|
|
@size-change="sizeChangeHandle2" |
|
|
|
|
|
@current-change="currentChangeHandle2" |
|
|
|
|
|
:current-page="pageIndex2" |
|
|
|
|
|
:page-sizes="[20, 50, 100, 200, 500]" |
|
|
|
|
|
:page-size="pageSize2" |
|
|
|
|
|
:total="totalPage2" |
|
|
|
|
|
layout="total, sizes, prev, pager, next, jumper"> |
|
|
|
|
|
</el-pagination> |
|
|
|
|
|
<el-footer style="height:35px;margin-top:10px;text-align:center"> |
|
|
|
|
|
<el-button type="primary" @click="fromPartModelFlag = false">关闭</el-button> |
|
|
|
|
|
</el-footer> |
|
|
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
<!-- chooseList模态框 --> |
|
|
<!-- chooseList模态框 --> |
|
|
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist> |
|
|
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist> |
|
|
|
|
|
|
|
|
@ -1522,6 +1586,7 @@ |
|
|
<script> |
|
|
<script> |
|
|
import { |
|
|
import { |
|
|
partInformationSearch, // 物料信息列表查询 |
|
|
partInformationSearch, // 物料信息列表查询 |
|
|
|
|
|
partInformationSearch2, |
|
|
partInformationSave, // 物料信息新增 |
|
|
partInformationSave, // 物料信息新增 |
|
|
partInformationEdit, // 物料信息编辑 |
|
|
partInformationEdit, // 物料信息编辑 |
|
|
partInformationDelete, // 物料信息删除 |
|
|
partInformationDelete, // 物料信息删除 |
|
|
@ -1568,6 +1633,7 @@ |
|
|
getItemListByCodeNo, // 查询模板中的属性 |
|
|
getItemListByCodeNo, // 查询模板中的属性 |
|
|
getItemExclusionAlreadyExists, // 查属性模板,不包括已存在的 |
|
|
getItemExclusionAlreadyExists, // 查属性模板,不包括已存在的 |
|
|
getPartCharacteristicList, // 获取维护的物料属性 |
|
|
getPartCharacteristicList, // 获取维护的物料属性 |
|
|
|
|
|
queryOfficialPartList, // |
|
|
} from '@/api/part/partInformation.js' |
|
|
} from '@/api/part/partInformation.js' |
|
|
import { |
|
|
import { |
|
|
getFileContentList, // 获取物料单附件列表 |
|
|
getFileContentList, // 获取物料单附件列表 |
|
|
@ -1618,7 +1684,6 @@ |
|
|
this.modalData.ifsPartNo = this.modalData.ifsPartNo.toUpperCase() |
|
|
this.modalData.ifsPartNo = this.modalData.ifsPartNo.toUpperCase() |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
itemData: { |
|
|
itemData: { |
|
|
deep: true, |
|
|
deep: true, |
|
|
handler: function (newV, oldV) { |
|
|
handler: function (newV, oldV) { |
|
|
@ -1664,6 +1729,9 @@ |
|
|
pageIndex: 1, |
|
|
pageIndex: 1, |
|
|
pageSize: 50, |
|
|
pageSize: 50, |
|
|
totalPage: 0, |
|
|
totalPage: 0, |
|
|
|
|
|
pageIndex2: 1, |
|
|
|
|
|
pageSize2: 50, |
|
|
|
|
|
totalPage2: 0, |
|
|
locationPageIndex: 1, |
|
|
locationPageIndex: 1, |
|
|
locationPageSize: 50, |
|
|
locationPageSize: 50, |
|
|
locationTotalPage: 0, |
|
|
locationTotalPage: 0, |
|
|
@ -1856,7 +1924,19 @@ |
|
|
copySPLanguageDescription: '', |
|
|
copySPLanguageDescription: '', |
|
|
previousVersion: {}, |
|
|
previousVersion: {}, |
|
|
createBy: '', |
|
|
createBy: '', |
|
|
ifsPartNo: '' |
|
|
|
|
|
|
|
|
ifsPartNo: '', |
|
|
|
|
|
fromPartSite: '', |
|
|
|
|
|
fromPartNo: '', |
|
|
|
|
|
fromPartDesc: '', |
|
|
|
|
|
copyFlag: '' |
|
|
|
|
|
}, |
|
|
|
|
|
fromPartData: { |
|
|
|
|
|
site: this.$store.state.user.site, |
|
|
|
|
|
partNo: '', |
|
|
|
|
|
partDesc: '', |
|
|
|
|
|
status: '', |
|
|
|
|
|
page: 1, |
|
|
|
|
|
limit: 10 |
|
|
}, |
|
|
}, |
|
|
// ======== 数据列表 ======== |
|
|
// ======== 数据列表 ======== |
|
|
dataList: [], |
|
|
dataList: [], |
|
|
@ -1896,6 +1976,7 @@ |
|
|
copyAttributeList: [], |
|
|
copyAttributeList: [], |
|
|
fileList: [], |
|
|
fileList: [], |
|
|
characteristicList: [], |
|
|
characteristicList: [], |
|
|
|
|
|
fromPartList: [], |
|
|
// ======== 列表表头 ======== |
|
|
// ======== 列表表头 ======== |
|
|
columnList: [ |
|
|
columnList: [ |
|
|
{ |
|
|
{ |
|
|
@ -3197,6 +3278,85 @@ |
|
|
columnWidth: 60, |
|
|
columnWidth: 60, |
|
|
}, |
|
|
}, |
|
|
], |
|
|
], |
|
|
|
|
|
fromPartColumnList: [ |
|
|
|
|
|
{ |
|
|
|
|
|
columnProp: 'partNo', |
|
|
|
|
|
headerAlign: "center", |
|
|
|
|
|
align: "center", |
|
|
|
|
|
columnLabel: '物料编码', |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: '', |
|
|
|
|
|
columnWidth: 120 |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
columnProp: 'partDesc', |
|
|
|
|
|
headerAlign: "center", |
|
|
|
|
|
align: "left", |
|
|
|
|
|
columnLabel: '物料名称', |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: '', |
|
|
|
|
|
columnWidth: 200 |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
columnProp: 'familyName', |
|
|
|
|
|
headerAlign: "center", |
|
|
|
|
|
align: "center", |
|
|
|
|
|
columnLabel: '物料分类', |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: '', |
|
|
|
|
|
columnWidth: 100 |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
columnProp: 'printUnit', |
|
|
|
|
|
headerAlign: "center", |
|
|
|
|
|
align: "left", |
|
|
|
|
|
columnLabel: '计量单位', |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: '', |
|
|
|
|
|
columnWidth: 100 |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
columnProp: 'spec', |
|
|
|
|
|
headerAlign: "center", |
|
|
|
|
|
align: "left", |
|
|
|
|
|
columnLabel: '规格型号', |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: '', |
|
|
|
|
|
columnWidth: 100 |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
columnProp: 'partType', |
|
|
|
|
|
headerAlign: "center", |
|
|
|
|
|
align: "center", |
|
|
|
|
|
columnLabel: '零件类型', |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: '', |
|
|
|
|
|
columnWidth: 130 |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
columnProp: 'partStatusDesc', |
|
|
|
|
|
headerAlign: "center", |
|
|
|
|
|
align: "left", |
|
|
|
|
|
columnLabel: '零件状态', |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: '', |
|
|
|
|
|
columnWidth: 120 |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
// ======== 必填规则 ======== |
|
|
// ======== 必填规则 ======== |
|
|
rules: { |
|
|
rules: { |
|
|
partNo: [ |
|
|
partNo: [ |
|
|
@ -3312,7 +3472,8 @@ |
|
|
copyPartModelFlag: false, |
|
|
copyPartModelFlag: false, |
|
|
attributeDialog: true, |
|
|
attributeDialog: true, |
|
|
uploadDialog: false, |
|
|
uploadDialog: false, |
|
|
saveItemModelFlag: false |
|
|
|
|
|
|
|
|
saveItemModelFlag: false, |
|
|
|
|
|
fromPartModelFlag: false |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
@ -3331,8 +3492,8 @@ |
|
|
activated() { |
|
|
activated() { |
|
|
if (this.$route.params.partNo) { |
|
|
if (this.$route.params.partNo) { |
|
|
this.searchData.partNo = this.$route.params.partNo |
|
|
this.searchData.partNo = this.$route.params.partNo |
|
|
|
|
|
this.getDataList2() |
|
|
} |
|
|
} |
|
|
this.getDataList() |
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
methods: { |
|
|
methods: { |
|
|
@ -3588,9 +3749,7 @@ |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 编辑物料属性 |
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
// 编辑物料属性 |
|
|
updateItemValue () { |
|
|
updateItemValue () { |
|
|
this.loading = true |
|
|
this.loading = true |
|
|
let tempData = { |
|
|
let tempData = { |
|
|
@ -3789,6 +3948,17 @@ |
|
|
this.locationPageIndex = val |
|
|
this.locationPageIndex = val |
|
|
this.getLocationList() |
|
|
this.getLocationList() |
|
|
}, |
|
|
}, |
|
|
|
|
|
// 每页数 |
|
|
|
|
|
sizeChangeHandle2 (val) { |
|
|
|
|
|
this.pageSize2 = val |
|
|
|
|
|
this.pageIndex2 = 1 |
|
|
|
|
|
this.queryFromPartList() |
|
|
|
|
|
}, |
|
|
|
|
|
// 当前页 |
|
|
|
|
|
currentChangeHandle2 (val) { |
|
|
|
|
|
this.pageIndex2 = val |
|
|
|
|
|
this.queryFromPartList() |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
// ======== 页签切换相关方法 ======== |
|
|
// ======== 页签切换相关方法 ======== |
|
|
// 未知 |
|
|
// 未知 |
|
|
@ -3932,6 +4102,32 @@ |
|
|
this.partClickRow(this.dataList[0]) |
|
|
this.partClickRow(this.dataList[0]) |
|
|
} else { |
|
|
} else { |
|
|
this.partCurrentRow = {} |
|
|
this.partCurrentRow = {} |
|
|
|
|
|
this.refreshCurrentTabTable() |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 其他页面跳转来的查询方法,如果该料号已经转正,则按照IFS料号跳转 |
|
|
|
|
|
getDataList2 () { |
|
|
|
|
|
this.searchData.limit = this.pageSize |
|
|
|
|
|
this.searchData.page = this.pageIndex |
|
|
|
|
|
partInformationSearch2(this.searchData).then(({data}) => { |
|
|
|
|
|
if (data.code === 0) { |
|
|
|
|
|
this.dataList = data.page.list |
|
|
|
|
|
this.pageIndex = data.page.currPage |
|
|
|
|
|
this.pageSize = data.page.pageSize |
|
|
|
|
|
this.totalPage = data.page.totalCount |
|
|
|
|
|
this.$refs.selectDiv.setLengthAll( this.dataList.length) |
|
|
|
|
|
// 判断是否全部存在数据 |
|
|
|
|
|
if (this.dataList.length > 0) { |
|
|
|
|
|
// 设置选中行 |
|
|
|
|
|
this.$refs.partTable.setCurrentRow(this.dataList[0]) |
|
|
|
|
|
this.partClickRow(this.dataList[0]) |
|
|
|
|
|
this.searchData.partNo = this.dataList[0].partNo |
|
|
|
|
|
} else { |
|
|
|
|
|
this.partCurrentRow = {} |
|
|
|
|
|
this.refreshCurrentTabTable() |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
@ -4413,7 +4609,6 @@ |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}).catch(() => { |
|
|
|
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
@ -4883,13 +5078,25 @@ |
|
|
copySPLanguageDescription: 'Y', |
|
|
copySPLanguageDescription: 'Y', |
|
|
previousVersion: this.modalData, |
|
|
previousVersion: this.modalData, |
|
|
createBy: this.$store.state.user.name, |
|
|
createBy: this.$store.state.user.name, |
|
|
ifsPartNo: '' |
|
|
|
|
|
|
|
|
ifsPartNo: '', |
|
|
|
|
|
fromPartSite: this.modalData.site, |
|
|
|
|
|
fromPartNo: this.modalData.partNo, |
|
|
|
|
|
fromPartDesc: this.modalData.partDesc, |
|
|
|
|
|
copyFlag: '' |
|
|
} |
|
|
} |
|
|
this.copyPartModelFlag = true |
|
|
this.copyPartModelFlag = true |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 复制物料的方法 |
|
|
// 复制物料的方法 |
|
|
copyPart () { |
|
|
copyPart () { |
|
|
|
|
|
if (this.copyPartData.fromPartSite === '' || this.copyPartData.fromPartSite == null) { |
|
|
|
|
|
this.$message.warning('From Site 不能为空!') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
if (this.copyPartData.fromPartNo === '' || this.copyPartData.fromPartNo == null) { |
|
|
|
|
|
this.$message.warning('From Part 不能为空!') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
if (this.copyPartData.partNo === '' || this.copyPartData.partNo == null) { |
|
|
if (this.copyPartData.partNo === '' || this.copyPartData.partNo == null) { |
|
|
this.$message.warning('请输入物料编码!') |
|
|
this.$message.warning('请输入物料编码!') |
|
|
return |
|
|
return |
|
|
@ -4902,11 +5109,17 @@ |
|
|
this.$message.warning('General信息必选!') |
|
|
this.$message.warning('General信息必选!') |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
if (this.modalData.flag === '3') { // 转正里的copyPart |
|
|
|
|
|
this.copyPartData.copyFlag = 'Y' |
|
|
|
|
|
} |
|
|
this.copyLoading = true |
|
|
this.copyLoading = true |
|
|
copyPart(this.copyPartData).then(({data}) => { |
|
|
copyPart(this.copyPartData).then(({data}) => { |
|
|
if (data && data.code === 0) { |
|
|
if (data && data.code === 0) { |
|
|
this.getDataList() |
|
|
this.getDataList() |
|
|
this.copyPartModelFlag = false |
|
|
this.copyPartModelFlag = false |
|
|
|
|
|
if (this.modalData.flag === '3') { |
|
|
|
|
|
this.modalFlag = false |
|
|
|
|
|
} |
|
|
this.$message({ |
|
|
this.$message({ |
|
|
message: '操作成功', |
|
|
message: '操作成功', |
|
|
type: 'success', |
|
|
type: 'success', |
|
|
@ -5337,6 +5550,45 @@ |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 查询物料列表 |
|
|
|
|
|
queryPartModal () { |
|
|
|
|
|
this.fromPartData.limit = this.pageSize2 |
|
|
|
|
|
this.fromPartData.page = this.pageIndex2 |
|
|
|
|
|
queryOfficialPartList(this.fromPartData).then(({data}) => { |
|
|
|
|
|
if (data && data.code === 0) { |
|
|
|
|
|
this.fromPartList = data.page.list |
|
|
|
|
|
this.pageIndex2 = data.page.currPage |
|
|
|
|
|
this.pageSize2 = data.page.pageSize |
|
|
|
|
|
this.totalPage2 = data.page.totalCount |
|
|
|
|
|
this.fromPartModelFlag = true |
|
|
|
|
|
} else { |
|
|
|
|
|
this.fromPartList = [] |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
queryFromPartList () { |
|
|
|
|
|
this.fromPartData.limit = this.pageSize2 |
|
|
|
|
|
this.fromPartData.page = this.pageIndex2 |
|
|
|
|
|
queryOfficialPartList(this.fromPartData).then(({data}) => { |
|
|
|
|
|
if (data && data.code === 0) { |
|
|
|
|
|
this.fromPartList = data.page.list |
|
|
|
|
|
this.pageIndex2 = data.page.currPage |
|
|
|
|
|
this.pageSize2 = data.page.pageSize |
|
|
|
|
|
this.totalPage2 = data.page.totalCount |
|
|
|
|
|
} else { |
|
|
|
|
|
this.fromPartList = [] |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 双击选中物料 |
|
|
|
|
|
getFromRowData (row) { |
|
|
|
|
|
this.copyPartData.fromPartNo = row.partNo |
|
|
|
|
|
this.copyPartData.fromPartDesc = row.partDesc |
|
|
|
|
|
this.fromPartModelFlag = false |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
// ======== 附件的相关方法 ======== |
|
|
// ======== 附件的相关方法 ======== |
|
|
// 获取物料附件列表 |
|
|
// 获取物料附件列表 |
|
|
getFileContentData () { |
|
|
getFileContentData () { |
|
|
|