|
|
|
@ -149,7 +149,7 @@ |
|
|
|
</el-pagination> |
|
|
|
|
|
|
|
<!-- 物料属性新增/修改 --> |
|
|
|
<el-dialog title="物料属性设置" :close-on-click-modal="false" v-drag :visible.sync="modalFlag" width="430px"> |
|
|
|
<el-dialog title="物料属性设置" :close-on-click-modal="false" v-drag :visible.sync="modalFlag" width="430px" append-to-body> |
|
|
|
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: -5px;"> |
|
|
|
<!-- <el-form-item label="BU" prop="bu" :rules="rules.bu">--> |
|
|
|
<!-- <el-select v-model="modalData.bu" placeholder="请选择" :disabled="modalDisableFlag" style="width: 295px">--> |
|
|
|
@ -165,8 +165,15 @@ |
|
|
|
<!-- </el-option>--> |
|
|
|
<!-- </el-select>--> |
|
|
|
<!-- </el-form-item>--> |
|
|
|
<el-form-item label="工厂编码:" prop="partDesc" :rules="rules.site"> |
|
|
|
<el-input v-model="modalData.site" disabled style="width: 184px"></el-input> |
|
|
|
<el-form-item label="工厂编码:" prop="site" :rules="rules.site"> |
|
|
|
<el-select v-model="modalData.site" placeholder="请选择" :disabled="modalDisableFlag" style="width: 184px"> |
|
|
|
<el-option |
|
|
|
v-for = "i in factoryList" |
|
|
|
:key = "i.baseData" |
|
|
|
:label = "i.baseDesc" |
|
|
|
:value = "i.baseData"> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item prop="partNo" :rules="rules.partNoType"> |
|
|
|
<span v-if="modalDisableFlag === false" slot="label" @click="searchPartInfo()"><a herf="#">物料编码:</a></span> |
|
|
|
@ -912,7 +919,7 @@ |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<!-- 物料编码 --> |
|
|
|
<el-dialog title="物料选择" @close="closeDialog" :close-on-click-modal="false" v-drag :visible.sync="partDisableFlag" width="685px" height="273px"> |
|
|
|
<el-dialog title="物料选择" @close="closeDialog" :close-on-click-modal="false" v-drag :visible.sync="partDisableFlag" width="685px" height="273px" append-to-body> |
|
|
|
<el-form :inline="true" label-position="top" :model="partDetailData" style="margin-left: 7px;margin-top: -5px;"> |
|
|
|
<el-form-item label="物料编码"> |
|
|
|
<el-input v-model="partDetailData.partNo" clearable style="width: 137px"></el-input> |
|
|
|
@ -1077,6 +1084,7 @@ |
|
|
|
getPatrolOperationDescList as getPatrolOperationDescListApi, |
|
|
|
getPartAttributeFileList |
|
|
|
} from "@/api/qc/qc.js" |
|
|
|
import {getFactory} from "@/api/factory.js" |
|
|
|
import {getTableDefaultListLanguage, getTableUserListLanguage} from "@/api/table.js" |
|
|
|
import Chooselist from '@/views/modules/common/Chooselist_eam' |
|
|
|
import {downLoadObjectFile} from '@/api/eam/eam_object_list.js' |
|
|
|
@ -1909,6 +1917,7 @@ |
|
|
|
tempLevelRow: '', |
|
|
|
tempProgrammeRow: '', |
|
|
|
options: [], |
|
|
|
factoryList: [], |
|
|
|
itemSelections1: [], |
|
|
|
itemSelections2: [], |
|
|
|
rules: { |
|
|
|
@ -2104,6 +2113,8 @@ |
|
|
|
// this.favoriteIsOk() |
|
|
|
// 获取检验类型 |
|
|
|
this.inspectionTypeSearch() |
|
|
|
// 获取工厂列表 |
|
|
|
this.getFactoryList() |
|
|
|
// 动态列 |
|
|
|
// this.getTableUserColumn(this.$route.meta.menuId+'table1',1) |
|
|
|
// this.getTableUserColumn(this.$route.meta.menuId+'table2',2) |
|
|
|
@ -2161,6 +2172,15 @@ |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// 获取工厂列表 |
|
|
|
getFactoryList () { |
|
|
|
getFactory().then(({data}) => { |
|
|
|
if (data.code === 0) { |
|
|
|
this.factoryList = data.list |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
isIPQCInspectionType (row) { |
|
|
|
const name = (row && row.inspectionTypeName) ? String(row.inspectionTypeName) : '' |
|
|
|
const no = (row && row.inspectionTypeNo) ? String(row.inspectionTypeNo) : '' |
|
|
|
|