|
|
|
@ -135,7 +135,7 @@ |
|
|
|
更多<i class="el-icon-arrow-down el-icon--right"></i> |
|
|
|
</span> |
|
|
|
<el-dropdown-menu slot="dropdown"> |
|
|
|
<el-dropdown-item v-if="!authCheckout" @click.native="standardDetailModal(scope.row)">检验标准</el-dropdown-item> |
|
|
|
<el-dropdown-item v-if="!authCheckout" @click.native="standardDetailModal(scope.row)">检验标准</el-dropdown-item> |
|
|
|
<el-dropdown-item v-if="!authFile" @click.native="sopFileList(scope.row)">文件清单</el-dropdown-item> |
|
|
|
<el-dropdown-item @click.native="patrolInspection(scope.row)">巡检配置</el-dropdown-item> |
|
|
|
<el-dropdown-item v-if="!authDelete" @click.native="deletePropertiesModel(scope.row)">删除</el-dropdown-item> |
|
|
|
@ -193,7 +193,7 @@ |
|
|
|
</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="partDesc" :rules="rules.partDescType"> |
|
|
|
<el-input v-model="modalData.partDesc" disabled style="width: 380px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
@ -238,7 +238,7 @@ |
|
|
|
<el-checkbox v-model="modalData.fqcExempt" true-label="Y" false-label="N">FQC检验</el-checkbox> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row :gutter="12"> |
|
|
|
<el-row :gutter="12"> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-checkbox v-model="modalData.sqcExempt" true-label="Y" false-label="N">SQC检验</el-checkbox> |
|
|
|
</el-col> |
|
|
|
@ -2119,9 +2119,7 @@ |
|
|
|
// this.getSiteAndBuByUserName() |
|
|
|
// 校验用户是否收藏 |
|
|
|
// this.favoriteIsOk() |
|
|
|
// 获取检验类型 |
|
|
|
this.inspectionTypeSearch() |
|
|
|
// 获取工厂列表 |
|
|
|
// 先加载工厂,再按默认 site 查询检验类型 |
|
|
|
this.loadSiteList() |
|
|
|
// 动态列 |
|
|
|
// this.getTableUserColumn(this.$route.meta.menuId+'table1',1) |
|
|
|
@ -2149,7 +2147,7 @@ |
|
|
|
}, |
|
|
|
|
|
|
|
searchPartInfo () { |
|
|
|
|
|
|
|
|
|
|
|
this.partDetailData.site = this.modalData.site |
|
|
|
if (!this.partDetailData.partNo && !this.partDetailData.partDesc && !this.partDetailData.spec && !this.partDetailData.cinvSourceCode) { |
|
|
|
this.partInfoList = [] |
|
|
|
@ -2168,14 +2166,16 @@ |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
// 查询检验类型 |
|
|
|
// 查询检验类型(必须带 site,否则查不到) |
|
|
|
inspectionTypeSearch () { |
|
|
|
let tempData = { |
|
|
|
site: this.modalData.site || this.getDefaultSite() |
|
|
|
const site = this.detailData.site || this.modalData.site || this.getDefaultSite() |
|
|
|
if (!site) { |
|
|
|
this.options = [] |
|
|
|
return Promise.resolve() |
|
|
|
} |
|
|
|
inspectionTypeSearch(tempData).then(({data}) => { |
|
|
|
return inspectionTypeSearch({ site }).then(({data}) => { |
|
|
|
if (data.code === 0) { |
|
|
|
this.options = data.rows |
|
|
|
this.options = data.rows || [] |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
@ -2183,6 +2183,7 @@ |
|
|
|
loadSiteList () { |
|
|
|
getSiteData({ userID: this.$store.state.user.name }).then(({data}) => { |
|
|
|
this.siteList = (data && data.rows) ? data.rows : [] |
|
|
|
this.inspectionTypeSearch() |
|
|
|
}) |
|
|
|
}, |
|
|
|
getDefaultSite () { |
|
|
|
@ -2750,6 +2751,7 @@ |
|
|
|
this.detailList = data.rows |
|
|
|
this.normalizeDetailListIpqcInspectionMethod() |
|
|
|
}) |
|
|
|
this.inspectionTypeSearch() |
|
|
|
this.detailModelFlag = true |
|
|
|
}, |
|
|
|
|
|
|
|
@ -2793,10 +2795,21 @@ |
|
|
|
this.$message.warning('请先选择要设置模板的物料!') |
|
|
|
return |
|
|
|
} |
|
|
|
if (!this.options || this.options.length === 0) { |
|
|
|
this.$message.warning('检验类型数据加载中,请稍后再试') |
|
|
|
const openFastAdd = () => { |
|
|
|
if (!this.options || this.options.length === 0) { |
|
|
|
this.$message.warning('未查询到检验类型,请检查该工厂是否已维护检验类型') |
|
|
|
return |
|
|
|
} |
|
|
|
this.openFastAddDialog() |
|
|
|
} |
|
|
|
if (this.options && this.options.length > 0) { |
|
|
|
openFastAdd() |
|
|
|
return |
|
|
|
} |
|
|
|
this.inspectionTypeSearch().then(openFastAdd) |
|
|
|
}, |
|
|
|
|
|
|
|
openFastAddDialog () { |
|
|
|
this.itemSelections1 = [] |
|
|
|
this.itemSelections2 = [] |
|
|
|
this.detailData.inspectionTypeNo = this.options[0].inspectionTypeNo |
|
|
|
|