|
|
@ -101,9 +101,9 @@ |
|
|
<el-checkbox v-model="modalData.multilevelTrackingDb" true-label="Y">多级跟踪</el-checkbox><br> |
|
|
<el-checkbox v-model="modalData.multilevelTrackingDb" true-label="Y">多级跟踪</el-checkbox><br> |
|
|
<el-checkbox v-model="modalData.allowAsNotConsumedDb" true-label="Y">允许为未使用</el-checkbox> |
|
|
<el-checkbox v-model="modalData.allowAsNotConsumedDb" true-label="Y">允许为未使用</el-checkbox> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item v-if="modalData.flag === '2' && modalData.officialFlag !== 'Y'"> |
|
|
|
|
|
<el-button type="primary" @click="toBecomeOfficialPart" style="margin-top: 62px;margin-left: 10px;width: 110px">转正式物料</el-button> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
<!-- <el-form-item v-if="modalData.flag === '2' && modalData.officialFlag !== 'Y'">--> |
|
|
|
|
|
<!-- <el-button type="primary" @click="toBecomeOfficialPart" style="margin-top: 62px;margin-left: 10px;width: 110px">转正式物料</el-button>--> |
|
|
|
|
|
<!-- </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 prop="umName" :rules="rules.umId"> |
|
|
<el-form-item prop="umName" :rules="rules.umId"> |
|
|
@ -427,6 +427,7 @@ |
|
|
queryMasterPartItem, |
|
|
queryMasterPartItem, |
|
|
toBecomeOfficialMasterPart, // 转正式物料 |
|
|
toBecomeOfficialMasterPart, // 转正式物料 |
|
|
} from '@/api/part/masterPartInformation.js' |
|
|
} from '@/api/part/masterPartInformation.js' |
|
|
|
|
|
import {getProjectPartNo} from '@/api/part/partInformation.js' |
|
|
import Chooselist from '@/views/modules/common/Chooselist' |
|
|
import Chooselist from '@/views/modules/common/Chooselist' |
|
|
import DictDataSelect from '../sys/dict-data-select.vue' |
|
|
import DictDataSelect from '../sys/dict-data-select.vue' |
|
|
export default { |
|
|
export default { |
|
|
@ -475,7 +476,7 @@ |
|
|
tempCodeNo: '', |
|
|
tempCodeNo: '', |
|
|
// 条件查询 |
|
|
// 条件查询 |
|
|
searchData: { |
|
|
searchData: { |
|
|
site: this.$store.state.user.site, |
|
|
|
|
|
|
|
|
site: '*', |
|
|
partNo: '', |
|
|
partNo: '', |
|
|
partDesc: '', |
|
|
partDesc: '', |
|
|
page: 1, |
|
|
page: 1, |
|
|
@ -488,7 +489,6 @@ |
|
|
modalData: { |
|
|
modalData: { |
|
|
flag: '', |
|
|
flag: '', |
|
|
title: '', |
|
|
title: '', |
|
|
site: this.$store.state.user.site, |
|
|
|
|
|
partNo: '', |
|
|
partNo: '', |
|
|
partDesc: '', |
|
|
partDesc: '', |
|
|
umId: '', |
|
|
umId: '', |
|
|
@ -522,7 +522,7 @@ |
|
|
itemDesc: '', |
|
|
itemDesc: '', |
|
|
textValue: '', |
|
|
textValue: '', |
|
|
numValue: '', |
|
|
numValue: '', |
|
|
recordType: 'MP' |
|
|
|
|
|
|
|
|
recordType: 'IP' |
|
|
}, |
|
|
}, |
|
|
// ======== 数据列表 ======== |
|
|
// ======== 数据列表 ======== |
|
|
dataList: [], |
|
|
dataList: [], |
|
|
@ -1192,7 +1192,7 @@ |
|
|
site: this.$store.state.user.site, |
|
|
site: this.$store.state.user.site, |
|
|
partNo: this.partCurrentRow.partNo, |
|
|
partNo: this.partCurrentRow.partNo, |
|
|
codeNo: this.partCurrentRow.codeNo, |
|
|
codeNo: this.partCurrentRow.codeNo, |
|
|
recordType: 'MP' |
|
|
|
|
|
|
|
|
recordType: 'IP' |
|
|
} |
|
|
} |
|
|
getItemLists(tempData).then(({data}) => { |
|
|
getItemLists(tempData).then(({data}) => { |
|
|
this.itemList1 = data.rows.row1 |
|
|
this.itemList1 = data.rows.row1 |
|
|
@ -1225,7 +1225,7 @@ |
|
|
partNo: this.partCurrentRow.partNo, |
|
|
partNo: this.partCurrentRow.partNo, |
|
|
codeNo: this.partCurrentRow.codeNo, |
|
|
codeNo: this.partCurrentRow.codeNo, |
|
|
codeDesc: this.partCurrentRow.codeDesc, |
|
|
codeDesc: this.partCurrentRow.codeDesc, |
|
|
recordType: 'MP', |
|
|
|
|
|
|
|
|
recordType: 'IP', |
|
|
itemList: this.itemSelections1 |
|
|
itemList: this.itemSelections1 |
|
|
} |
|
|
} |
|
|
addMasterPartItem(inData).then(({data}) => { |
|
|
addMasterPartItem(inData).then(({data}) => { |
|
|
@ -1256,7 +1256,7 @@ |
|
|
partNo: this.partCurrentRow.partNo, |
|
|
partNo: this.partCurrentRow.partNo, |
|
|
codeNo: this.partCurrentRow.codeNo, |
|
|
codeNo: this.partCurrentRow.codeNo, |
|
|
codeDesc: this.partCurrentRow.codeDesc, |
|
|
codeDesc: this.partCurrentRow.codeDesc, |
|
|
recordType: 'MP', |
|
|
|
|
|
|
|
|
recordType: 'IP', |
|
|
itemList: this.itemSelections2 |
|
|
itemList: this.itemSelections2 |
|
|
} |
|
|
} |
|
|
deleteMasterPartItem(inData).then(({data}) => { |
|
|
deleteMasterPartItem(inData).then(({data}) => { |
|
|
@ -1392,7 +1392,7 @@ |
|
|
site: this.$store.state.user.site, |
|
|
site: this.$store.state.user.site, |
|
|
partNo: this.partCurrentRow.partNo, |
|
|
partNo: this.partCurrentRow.partNo, |
|
|
codeNo: this.partCurrentRow.codeNo, |
|
|
codeNo: this.partCurrentRow.codeNo, |
|
|
recordType: 'MP' |
|
|
|
|
|
|
|
|
recordType: 'IP' |
|
|
} |
|
|
} |
|
|
getMasterPartItem(tempData).then(({data}) => { |
|
|
getMasterPartItem(tempData).then(({data}) => { |
|
|
if (data && data.code === 0) { |
|
|
if (data && data.code === 0) { |
|
|
@ -1407,6 +1407,7 @@ |
|
|
* 获取数据列表 |
|
|
* 获取数据列表 |
|
|
*/ |
|
|
*/ |
|
|
getDataList () { |
|
|
getDataList () { |
|
|
|
|
|
this.searchData.site = this.$store.state.user.site |
|
|
this.searchData.limit = this.pageSize |
|
|
this.searchData.limit = this.pageSize |
|
|
this.searchData.page = this.pageIndex |
|
|
this.searchData.page = this.pageIndex |
|
|
masterPartSearch(this.searchData).then(({data}) => { |
|
|
masterPartSearch(this.searchData).then(({data}) => { |
|
|
@ -1433,11 +1434,12 @@ |
|
|
* 物料信息新增模态框 |
|
|
* 物料信息新增模态框 |
|
|
*/ |
|
|
*/ |
|
|
addModal () { |
|
|
addModal () { |
|
|
|
|
|
getProjectPartNo(this.searchData).then(({data}) => { |
|
|
|
|
|
if (data && data.code === 0) { |
|
|
this.modalData = { |
|
|
this.modalData = { |
|
|
site: this.$store.state.user.site, |
|
|
|
|
|
flag: '1', |
|
|
flag: '1', |
|
|
title: '物料新增', |
|
|
title: '物料新增', |
|
|
partNo: '', |
|
|
|
|
|
|
|
|
partNo: data.partNo, |
|
|
partDesc: '', |
|
|
partDesc: '', |
|
|
umId: '', |
|
|
umId: '', |
|
|
umName: '', |
|
|
umName: '', |
|
|
@ -1461,6 +1463,11 @@ |
|
|
} |
|
|
} |
|
|
this.modalDisableFlag = false |
|
|
this.modalDisableFlag = false |
|
|
this.modalFlag = true |
|
|
this.modalFlag = true |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$message.error(data.msg) |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
/** |
|
|
/** |
|
|
* 物料信息编辑模态框 |
|
|
* 物料信息编辑模态框 |
|
|
@ -1470,7 +1477,6 @@ |
|
|
this.modalData = { |
|
|
this.modalData = { |
|
|
flag: '2', |
|
|
flag: '2', |
|
|
title: '物料编辑', |
|
|
title: '物料编辑', |
|
|
site: this.$store.state.user.site, |
|
|
|
|
|
partNo: row.partNo, |
|
|
partNo: row.partNo, |
|
|
partDesc: row.partDesc, |
|
|
partDesc: row.partDesc, |
|
|
umId: row.umId, |
|
|
umId: row.umId, |
|
|
|