Browse Source

2025-08-12 物料档案管理调整

master
fengyuan_yang 8 months ago
parent
commit
9f9542a26a
  1. 2
      src/api/qc/qc.js
  2. 31
      src/assets/scss/global.scss
  3. 8
      src/views/modules/common/Chooselist_eam.vue
  4. 92
      src/views/modules/labelSetting/customer_label_setting.vue
  5. 84
      src/views/modules/labelSetting/default_label_setting.vue
  6. 106
      src/views/modules/labelSetting/label_setting.vue
  7. 87
      src/views/modules/labelSetting/label_setting_printer.vue
  8. 619
      src/views/modules/qc/qcPartAttribute.vue
  9. 2
      src/views/modules/qc/qc_upload.vue

2
src/api/qc/qc.js

@ -67,8 +67,6 @@ export const getPlanLists = data => createAPI(`/pms/qc/getPlanLists`,'post',data
// ===================================== 物料属性设置 =====================================
export const qcPartAttributeSearch = data => createAPI(`/pms/qc/qcPartAttributeSearch`,'post',data)
export const qcPartAttributeSave = data => createAPI(`/pms/qc/qcPartAttributeSave`,'post',data)
export const qcPartAttributeDelete = data => createAPI(`/pms/qc/qcPartAttributeDelete`,'post',data)
export const searchPartAttributeDetails = data => createAPI(`/pms/qc/searchPartAttributeDetails`,'post',data)
export const savePartAttributeDetails = data => createAPI(`/pms/qc/savePartAttributeDetails`,'post',data)
export const deletePartAttributeDetails = data => createAPI(`/pms/qc/deletePartAttributeDetails`,'post',data)

31
src/assets/scss/global.scss

@ -368,7 +368,38 @@ div.table-text-input input.el-input__inner{
text-align: center;
}
.el-input-number{
width: 100%;
}
.el-input-number .el-input__inner {
text-align: right;
padding-right: 5px !important;
padding-left: 0 !important;
}
.el-input-number--medium .el-input-number__decrease, .el-input-number--medium .el-input-number__increase{
width: 18px;
height: 18px;
font-size: 14px;
line-height: 1.5;
}
.el-input-number--mini{
line-height: 20px
}
.el-input-number--mini .el-input-number__decrease, .el-input-number--mini .el-input-number__increase{
width: 18px;
height: 18px;
font-size: 14px;
line-height: 1.5;
}
.el-input .el-input--medium{
line-height: 20px;
}
.el-input-number .el-input--medium{
line-height: 20px;
}
/*a标签全局无下划线 2022-01-18 LR*/

8
src/views/modules/common/Chooselist_eam.vue

@ -228,17 +228,17 @@ export default {
}
if (this.tagNo <= 500 && this.tagNo !== 93 && this.tagNo !== 201) {
if (this.param7) {
sql += " and site in (select site from eam_access_site where username = '" + this.param7 + "') " + " and bu_no in (select bu_no from AccessBu where username = '" + this.param7 + "')"
sql += " and site in (select site from accessSite where userID = '" + this.param7 + "') " + " and bu_no in (select bu_no from AccessBu where username = '" + this.param7 + "')"
}
}
if (this.tagNo > 500 && this.tagNo < 1000) {
if (this.param7) {
sql += " and site in (select site from eam_access_site where username = '" + this.param7 + "') "
sql += " and site in (select site from accessSite where userID = '" + this.param7 + "') "
}
}
sql += this.conSql
getChooselistDataEam({"sqlcode": sql}).then(({data}) => {
if (data.code == 0) {
if (data.code === 0) {
this.dataList = data.baseListData;
} else {
this.$message.error(data.msg)
@ -248,7 +248,7 @@ export default {
getRowData (row) {
this.visible = false
this.$emit('getBaseData',row)
this.$emit('getBaseData', row)
},
closeDialog () {

92
src/views/modules/labelSetting/customer_label_setting.vue

@ -15,54 +15,50 @@
<el-input v-model="pageData.labelName" style="width: 120px" ></el-input>
</el-form-item>
<el-form-item style="margin-top: 16px;">
<el-button type="primary" @click="refreshPageTables()" class="customer-bun-mid"
style="margin-left: 10px; margin-bottom: 5px;">{{ buttons.searchButton }}
<el-button type="primary" @click="refreshPageTables()" class="customer-bun-mid" style="margin-left: 10px; margin-bottom: 5px;">{{ buttons.searchButton }}
</el-button>
</el-form-item>
<el-form-item style="margin-top: 16px;">
<el-button type="primary" :disabled="authAdd" @click="addLabelSettingModal()" class="customer-bun-mid"
style="margin-left: 10px; margin-bottom: 5px;">{{ buttons.addButton }}
<el-button type="primary" :disabled="authAdd" @click="addLabelSettingModal()" class="customer-bun-mid" style="margin-left: 10px; margin-bottom: 5px;">{{ buttons.addButton }}
</el-button>
</el-form-item>
</el-form>
<!-- 标签列表数据 -->
<el-main style="margin-left: -20px; margin-top: -20px; width: 104%;">
<el-table @row-click="setCurrentRow"
:height="height"
highlight-current-row
:data="labelArrays"
border
v-loading="dataListLoading"
style="width: 100%;">
<el-table-column
v-for="(item,index) in columnList" :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"
: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-column
fixed="left"
header-align="center"
align="center"
width="100"
:label=labels.operationLabel>
<template slot-scope="scope">
<a class="customer-a" v-if="!authEdit" @click="editLabelSettingModal(scope.row)">{{ labels.editLabel }}</a>
<a class="customer-a" v-if="!authDelete" @click="deleteLabelSettingConfirm(scope.row)">{{ labels.deleteLabel }}</a>
</template>
</el-table-column>
</el-table>
</el-main>
<!-- 标签列表数据 -->
<el-table
@row-click="setCurrentRow"
:height="height"
highlight-current-row
:data="labelArrays"
border
v-loading="dataListLoading"
style="width: 100%;">
<el-table-column
v-for="(item,index) in columnList" :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-column
fixed="right"
header-align="center"
align="center"
width="100"
:label=labels.operationLabel>
<template slot-scope="scope">
<el-link style="cursor: pointer" v-if="!authEdit" @click="editLabelSettingModal(scope.row)">{{ labels.editLabel }}</el-link>
<el-link style="cursor: pointer" v-if="!authDelete" @click="deleteLabelSettingConfirm(scope.row)">{{ labels.deleteLabel }}</el-link>
</template>
</el-table-column>
</el-table>
<!-- 动态列 -->
<column v-if="showDefault" ref="column" @refreshData="getTableUserColumn" v-drag></column>
@ -136,7 +132,7 @@ export default {
tableName: '客户标签自定义列表',
columnProp: 'labelType',
headerAlign: 'center',
align: 'center',
align: 'left',
columnLabel: '标签类型',
columnWidth: 100,
columnHidden: false,
@ -153,7 +149,7 @@ export default {
tableName: '客户标签自定义列表',
columnProp: 'customerId',
headerAlign: 'center',
align: 'center',
align: 'left',
columnLabel: '客户编码',
columnWidth: 100,
columnHidden: false,
@ -170,7 +166,7 @@ export default {
tableName: '客户标签自定义列表',
columnProp: 'customerDesc',
headerAlign: 'center',
align: 'center',
align: 'left',
columnLabel: '客户名称',
columnWidth: 100,
columnHidden: false,
@ -189,7 +185,7 @@ export default {
headerAlign: 'center',
align: 'center',
columnLabel: '标签编号',
columnWidth: 160,
columnWidth: 120,
columnHidden: false,
columnImage: false,
columnSortable: true,
@ -204,7 +200,7 @@ export default {
tableName: '客户标签自定义列表',
columnProp: 'labelName',
headerAlign: 'center',
align: 'center',
align: 'left',
columnLabel: '报表文件名',
columnWidth: 220,
columnHidden: false,
@ -354,7 +350,7 @@ export default {
mounted() {
this.$nextTick(() => {
this.height = window.innerHeight - 165;
this.height = window.innerHeight - 145;
})
},
methods: {

84
src/views/modules/labelSetting/default_label_setting.vue

@ -12,54 +12,50 @@
<el-input v-model="pageData.labelName" style="width: 120px" ></el-input>
</el-form-item>
<el-form-item style="margin-top: 16px;">
<el-button type="primary" @click="refreshPageTables()" class="customer-bun-mid"
style="margin-left: 10px; margin-bottom: 5px;">{{ buttons.searchButton }}
<el-button type="primary" @click="refreshPageTables()" class="customer-bun-mid" style="margin-left: 10px; margin-bottom: 5px;">{{ buttons.searchButton }}
</el-button>
</el-form-item>
<el-form-item style="margin-top: 16px;">
<el-button type="primary" :disabled="authAdd" @click="addLabelSettingModal()" class="customer-bun-mid"
style="margin-left: 10px; margin-bottom: 5px;">{{ buttons.addButton }}
<el-button type="primary" :disabled="authAdd" @click="addLabelSettingModal()" class="customer-bun-mid" style="margin-left: 10px; margin-bottom: 5px;">{{ buttons.addButton }}
</el-button>
</el-form-item>
</el-form>
<!-- 标签列表数据 -->
<el-main style="margin-left: -20px; margin-top: -20px; width: 104%;">
<el-table @row-click="setCurrentRow"
:height="height"
highlight-current-row
:data="labelArrays"
border
v-loading="dataListLoading"
style="width: 100%;">
<el-table-column
v-for="(item,index) in columnList" :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"
: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-column
fixed="left"
header-align="center"
align="center"
width="100"
:label=labels.operationLabel>
<template slot-scope="scope">
<a class="customer-a" v-if="!authEdit" @click="editLabelSettingModal(scope.row)">{{ labels.editLabel }}</a>
<a class="customer-a" v-if="!authDelete" @click="deleteLabelSettingConfirm(scope.row)">{{ labels.deleteLabel }}</a>
</template>
</el-table-column>
</el-table>
</el-main>
<el-table
@row-click="setCurrentRow"
:height="height"
highlight-current-row
:data="labelArrays"
border
v-loading="dataListLoading"
style="width: 100%;">
<el-table-column
v-for="(item,index) in columnList" :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-column
fixed="right"
header-align="center"
align="center"
width="100"
:label=labels.operationLabel>
<template slot-scope="scope">
<el-link style="cursor: pointer" v-if="!authEdit" @click="editLabelSettingModal(scope.row)">{{ labels.editLabel }}</el-link>
<el-link style="cursor: pointer" v-if="!authDelete" @click="deleteLabelSettingConfirm(scope.row)">{{ labels.deleteLabel }}</el-link>
</template>
</el-table-column>
</el-table>
<!-- 动态列 -->
<column v-if="showDefault" ref="column" @refreshData="getTableUserColumn" v-drag></column>
@ -132,7 +128,7 @@ export default {
tableName: '默认标签列表',
columnProp: 'labelType',
headerAlign: 'center',
align: 'center',
align: 'left',
columnLabel: '标签类型',
columnWidth: 80,
columnHidden: false,
@ -183,7 +179,7 @@ export default {
tableName: '默认标签列表',
columnProp: 'labelName',
headerAlign: 'center',
align: 'center',
align: 'left',
columnLabel: '报表文件名',
columnWidth: 220,
columnHidden: false,
@ -298,7 +294,7 @@ export default {
mounted() {
this.$nextTick(() => {
this.height = window.innerHeight - 165;
this.height = window.innerHeight - 145;
})
},
methods: {

106
src/views/modules/labelSetting/label_setting.vue

@ -12,64 +12,60 @@
<el-input v-model="pageData.labelName" style="width: 120px" ></el-input>
</el-form-item>
<el-form-item style="margin-top: 16px;">
<el-button type="primary" @click="refreshPageTables()" class="customer-bun-mid"
style="margin-left: 10px; margin-bottom: 5px;">{{ buttons.searchButton }}
<el-button type="primary" @click="refreshPageTables()" class="customer-bun-mid" style="margin-left: 10px; margin-bottom: 5px;">{{ buttons.searchButton }}
</el-button>
</el-form-item>
<el-form-item style="margin-top: 16px;">
<el-button type="primary" @click="addLabelSettingModal()" :disabled="authAdd" class="customer-bun-mid"
style="margin-left: 10px; margin-bottom: 5px;">{{ buttons.addButton }}
<el-button type="primary" @click="addLabelSettingModal()" :disabled="authAdd" class="customer-bun-mid" style="margin-left: 10px; margin-bottom: 5px;">{{ buttons.addButton }}
</el-button>
</el-form-item>
</el-form>
<!-- 标签列表数据 -->
<el-main style="margin-left: -20px; margin-top: -20px; width: 104%;">
<el-table @row-click="setCurrentRow"
:height="height"
highlight-current-row
:data="labelArrays"
border
v-loading="dataListLoading"
style="width: 100%;">
<el-table-column
v-for="(item,index) in columnList" :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"
: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-column
fixed="left"
header-align="center"
align="center"
width="200"
:label=labels.operationLabel>
<template slot-scope="scope">
<a class="customer-a" v-if="!authEdit" @click="editLabelSettingModal(scope.row)">{{ labels.editLabel }}</a>
<a class="customer-a" v-if="!authDelete" @click="deleteLabelSettingConfirm(scope.row)">{{ labels.deleteLabel }}</a>
<a class="customer-a" v-if="!authEdit" @click="labelParameterModal(scope.row)">{{ labels.printParameterLabel }}</a>
<a class="customer-a" v-if="!authEdit" @click="labelContentModal(scope.row)">{{ labels.printContentLabel }}</a>
</template>
</el-table-column>
</el-table>
</el-main>
<!-- 新增或者修改的modal -->
<comAddUpdateLabel ref="comAddUpdateLabel" @refreshPageTables="refreshPageTables" v-drag></comAddUpdateLabel>
<!-- 新增或者修改的modal -->
<comShowLabelParameter ref="comShowLabelParameter" @refreshPageTables="refreshPageTables" v-drag></comShowLabelParameter>
<!-- 新增或者修改的modal -->
<comShowLabelContent ref="comShowLabelContent" @refreshPageTables="refreshPageTables" v-drag></comShowLabelContent>
<!-- 标签列表数据 -->
<el-table
@row-click="setCurrentRow"
:height="height"
highlight-current-row
:data="labelArrays"
border
v-loading="dataListLoading"
style="width: 100%;">
<el-table-column
v-for="(item,index) in columnList" :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-column
fixed="right"
header-align="center"
align="center"
width="210"
:label=labels.operationLabel>
<template slot-scope="scope">
<el-link style="cursor: pointer" v-if="!authEdit" @click="editLabelSettingModal(scope.row)">{{ labels.editLabel }}</el-link>
<el-link style="cursor: pointer" v-if="!authDelete" @click="deleteLabelSettingConfirm(scope.row)">{{ labels.deleteLabel }}</el-link>
<el-link style="cursor: pointer" v-if="!authEdit" @click="labelParameterModal(scope.row)">{{ labels.printParameterLabel }}</el-link>
<el-link style="cursor: pointer" v-if="!authEdit" @click="labelContentModal(scope.row)">{{ labels.printContentLabel }}</el-link>
</template>
</el-table-column>
</el-table>
<!-- 新增或者修改的modal -->
<comAddUpdateLabel ref="comAddUpdateLabel" @refreshPageTables="refreshPageTables" v-drag></comAddUpdateLabel>
<!-- 新增或者修改的modal -->
<comShowLabelParameter ref="comShowLabelParameter" @refreshPageTables="refreshPageTables" v-drag></comShowLabelParameter>
<!-- 新增或者修改的modal -->
<comShowLabelContent ref="comShowLabelContent" @refreshPageTables="refreshPageTables" v-drag></comShowLabelContent>
</div>
</template>
@ -157,7 +153,7 @@ export default {
tableName: '标签自定义列表',
columnProp: 'labelType',
headerAlign: 'center',
align: 'center',
align: 'left',
columnLabel: '标签类型',
columnWidth: 100,
columnHidden: false,
@ -175,7 +171,7 @@ export default {
tableName: '标签自定义列表',
columnProp: 'labelName',
headerAlign: 'center',
align: 'center',
align: 'left',
columnLabel: '报表文件名',
columnWidth: 220,
columnHidden: false,
@ -280,7 +276,7 @@ export default {
mounted() {
this.$nextTick(() => {
this.height = window.innerHeight - 165;
this.height = window.innerHeight - 145;
})
},
methods: {

87
src/views/modules/labelSetting/label_setting_printer.vue

@ -12,54 +12,51 @@
<el-input v-model="pageData.labelName" style="width: 120px" ></el-input>
</el-form-item>
<el-form-item style="margin-top: 16px;">
<el-button type="primary" @click="refreshPageTables()" class="customer-bun-mid"
style="margin-left: 10px; margin-bottom: 5px;">{{ buttons.searchButton }}
<el-button type="primary" @click="refreshPageTables()" class="customer-bun-mid" style="margin-left: 10px; margin-bottom: 5px;">{{ buttons.searchButton }}
</el-button>
</el-form-item>
<el-form-item style="margin-top: 16px;">
<el-button type="primary" :disabled="authAdd" @click="addLabelSettingModal()" class="customer-bun-mid"
style="margin-left: 10px; margin-bottom: 5px;">{{ buttons.addButton }}
<el-button type="primary" :disabled="authAdd" @click="addLabelSettingModal()" class="customer-bun-mid" style="margin-left: 10px; margin-bottom: 5px;">{{ buttons.addButton }}
</el-button>
</el-form-item>
</el-form>
<!-- 标签列表数据 -->
<el-main style="margin-left: -20px; margin-top: -20px; width: 104%;">
<el-table @row-click="setCurrentRow"
:height="height"
highlight-current-row
:data="labelArrays"
border
v-loading="dataListLoading"
style="width: 100%;">
<el-table-column
v-for="(item,index) in columnList" :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"
: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-column
fixed="left"
header-align="center"
align="center"
width="100"
:label=labels.operationLabel>
<template slot-scope="scope">
<a class="customer-a" v-if="!authEdit" @click="editLabelSettingModal(scope.row)">{{ labels.editLabel }}</a>
<a class="customer-a" v-if="!authDelete" @click="deleteUserLabelConfirm(scope.row)">{{ labels.deleteLabel }}</a>
</template>
</el-table-column>
</el-table>
</el-main>
<!-- 标签列表数据 -->
<el-table
@row-click="setCurrentRow"
:height="height"
highlight-current-row
:data="labelArrays"
border
v-loading="dataListLoading"
style="width: 100%;">
<el-table-column
v-for="(item,index) in columnList" :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-column
fixed="right"
header-align="center"
align="center"
width="100"
:label=labels.operationLabel>
<template slot-scope="scope">
<el-link style="cursor: pointer" v-if="!authEdit" @click="editLabelSettingModal(scope.row)">{{ labels.editLabel }}</el-link>
<el-link style="cursor: pointer" v-if="!authDelete" @click="deleteUserLabelConfirm(scope.row)">{{ labels.deleteLabel }}</el-link>
</template>
</el-table-column>
</el-table>
<!-- 动态列 -->
<column v-if="showDefault" ref="column" @refreshData="getTableUserColumn" v-drag></column>
@ -133,7 +130,7 @@ export default {
tableName: '标签打印机列表',
columnProp: 'userId',
headerAlign: 'center',
align: 'center',
align: 'left',
columnLabel: '用户ID',
columnWidth: 100,
columnHidden: false,
@ -150,7 +147,7 @@ export default {
tableName: '标签打印机列表',
columnProp: 'userDisplay',
headerAlign: 'center',
align: 'center',
align: 'left',
columnLabel: '用户名',
columnWidth: 95,
columnHidden: false,
@ -300,7 +297,7 @@ export default {
mounted() {
this.$nextTick(() => {
this.height = window.innerHeight - 165;
this.height = window.innerHeight - 145;
})
},
methods: {

619
src/views/modules/qc/qcPartAttribute.vue

@ -28,11 +28,9 @@
<el-input v-model="searchData.familyName" clearable style="width: 120px"></el-input>
</el-form-item>
<el-form-item :label="' '">
<el-button v-if="!authSearch" type="primary" @click="getDataList()">查询</el-button>
<el-button v-if="!authSave" type="primary" @click="addModal()">新增</el-button>
<el-button v-if="!authSearch" type="primary" :loading="searchLoading" @click="getDataList()">查询</el-button>
</el-form-item>
<el-form-item :label="' '">
<el-button type="primary" icon="el-icon-upload" @click="qcUpload()">导入</el-button>
<el-button @click="exportExcel()" type="primary" style="margin-left: 2px">{{'导出'}}</el-button>
</el-form-item>
</el-form>
@ -42,6 +40,11 @@
:height="height"
:data="dataList"
border
v-loading="searchLoading"
ref="partTable"
:row-style="rowStyle"
@row-click="partClickRow"
@current-change="changeCurrentRow"
style="width: 100%;">
<el-table-column
v-for="(item,index) in columnList" :key="index"
@ -67,13 +70,13 @@
fixed="right"
header-align="center"
align="center"
width="180"
width="100"
label="操作">
<template slot-scope="scope">
<el-link v-if="!authDetail" style="cursor: pointer" @click="detailModal(scope.row)">检验模板</el-link>
<!-- <el-link v-if="!authDetail" style="cursor: pointer" @click="detailModal(scope.row)">检验模板</el-link>-->
<el-link v-if="!authUpdate" style="cursor: pointer" @click="updateModal(scope.row)">编辑</el-link>
<el-link v-if="!authDelete" style="cursor: pointer" @click="deletePropertiesModel(scope.row)">删除</el-link>
<el-link v-if="!authFile" style="cursor: pointer" @click="sopFileList(scope.row)">SOP文件</el-link>
<el-link v-if="!authUpdate" style="cursor: pointer" @click="updateModal(scope.row)">详情</el-link>
<!-- <el-link v-if="!authFile" style="cursor: pointer" @click="sopFileList(scope.row)">SOP文件</el-link>-->
</template>
</el-table-column>
</el-table>
@ -91,47 +94,223 @@
</el-pagination>
<!-- 物料属性新增/修改 -->
<el-dialog title="物料属性设置" :close-on-click-modal="false" v-drag :visible.sync="modalFlag" width="430px">
<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">
<el-option
v-for = "i in userBuList"
:key = "i.buNo"
:label = "i.sitename"
:value = "i.buNo">
<span style="float: left;width: 100px">{{ i.sitename }}</span>
<span style="float: right; color: #8492a6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; font-size: 11px;width: 60px">
{{ i.buDesc }}
</span>
</el-option>
</el-select>
<el-dialog title="物料档案编辑" :close-on-click-modal="false" v-drag :visible.sync="modalFlag" width="685px">
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px">
<el-form-item label="物料编码">
<el-input v-model="modalData.partNo" disabled style="width: 120px"></el-input>
</el-form-item>
<el-form-item style="margin-top: 23px;margin-left: 2px">
<el-checkbox v-model="modalData.exemptInspection" true-label="Y">是否免检</el-checkbox><br>
<el-form-item label="物料名称">
<el-input v-model="modalData.partDesc" disabled style="width: 250px"></el-input>
</el-form-item>
<el-form-item label="物料分类">
<el-input v-model="modalData.partType" disabled style="width: 100px"></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 prop="partNo" :rules="rules.partNoType">
<span v-if="modalDisableFlag === false" slot="label" @click="searchPartInfo()"><a herf="#">物料编码:</a></span>
<span v-if="modalDisableFlag === true" slot="label">物料编码:</span>
<el-input v-model="modalData.partNo" :disabled="modalDisableFlag" style="width: 120px"></el-input>
<el-form :inline="true" label-position="top" style="margin-left: 7px">
<el-form-item label="计量单位">
<el-input v-model="modalData.umId" disabled style="width: 120px"></el-input>
</el-form-item>
<el-form-item label="物料名称:" prop="partDesc" :rules="rules.partDescType">
<el-input v-model="modalData.partDesc" disabled style="width: 250px"></el-input>
<el-form-item label="规格型号">
<el-input v-model="modalData.spec" disabled style="width: 120px"></el-input>
</el-form-item>
<el-form-item style="margin-top: 23px">
<el-checkbox v-model="modalData.expirationFlag" :disabled="modalDisableFlag" true-label="Y">物料有效期管理</el-checkbox>
</el-form-item>
<el-form-item label="有效期天数" style="margin-left: 10px">
<el-input-number :controls="false" :step="0" v-model="modalData.expirationDay" :disabled="modalDisableFlag" style="width: 100px"></el-input-number>
</el-form-item>
<el-form-item label="有效期预警天数">
<el-input-number :controls="false" :step="0" v-model="modalData.expirationWarningDay" :disabled="modalDisableFlag" style="width: 100px"></el-input-number>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" style="margin-left: 7px;margin-top: -5px;">
<el-form-item label="备注:">
<el-input v-model="modalData.attributeRemark" style="width: 385px"></el-input>
<el-form :inline="true" label-position="top" style="margin-left: 7px">
<el-form-item label="超入比例">
<el-input-number :controls="false" :step="0" v-model="modalData.exceedInRatio" :disabled="modalDisableFlag" style="width: 120px"></el-input-number>
</el-form-item>
<el-form-item>
<span v-if="modalDisableFlag" slot="label">入库默认仓库</span>
<span v-else style="cursor: pointer" slot="label" @click="getBaseList(20, 1)"><a herf="#">入库默认仓库</a></span>
<el-input v-model="modalData.inboundWarehouseId" @change="inWarehouseBlur(20)" style="width: 80px"></el-input>
<el-input v-model="modalData.inboundWarehouseName" disabled style="width: 165px"></el-input>
</el-form-item>
<el-form-item>
<span style="cursor: pointer" slot="label" @click="getBaseList(22)"><a herf="#">默认库位</a></span>
<el-input v-model="modalData.inboundLocationId" @change="locationBlur(22)" style="width: 80px"></el-input>
<el-input v-model="modalData.inboundLocationName" disabled style="width: 165px"></el-input>
</el-form-item>
</el-form>
<el-footer style="height:40px;margin-top: 10px;text-align:center">
<el-button type="primary" @click="saveData()">保存</el-button>
<el-form :inline="true" label-position="top" style="margin-left: 7px">
<el-form-item label="超领比例">
<el-input-number :controls="false" :step="0" v-model="modalData.exceedOutRatio" style="width: 120px"></el-input-number>
</el-form-item>
<el-form-item>
<span style="cursor: pointer" slot="label" @click="getBaseList(20, 2)"><a herf="#">领料默认仓库</a></span>
<el-input v-model="modalData.outboundWarehouseId" @change="outWarehouseBlur(20)" style="width: 80px"></el-input>
<el-input v-model="modalData.outboundWarehouseName" disabled style="width: 165px"></el-input>
</el-form-item>
<el-form-item label="状态">
<el-select v-model="modalData.active" style="width: 80px">
<el-option label="启用" value="Y"></el-option>
<el-option label="弃用" value="N"></el-option>
</el-select>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" style="margin-left: 7px">
<el-form-item style="margin-top: 13px">
<el-checkbox v-model="modalData.iqcExempt" true-label="Y">IQC检验</el-checkbox>
</el-form-item>
<el-form-item style="margin-top: 13px;margin-left: 20px">
<el-checkbox v-model="modalData.faiExempt" true-label="Y">FAI检验</el-checkbox>
</el-form-item>
<el-form-item style="margin-top: 13px;margin-left: 20px">
<el-checkbox v-model="modalData.ipqcExempt" true-label="Y">IPQC检验</el-checkbox>
</el-form-item>
<el-form-item style="margin-top: 13px;margin-left: 20px">
<el-checkbox v-model="modalData.pqcExempt" true-label="Y">PQC检验</el-checkbox>
</el-form-item>
<el-form-item style="margin-top: 13px;margin-left: 20px">
<el-checkbox v-model="modalData.fqcExempt" true-label="Y">FQC检验</el-checkbox>
</el-form-item>
<el-form-item style="margin-top: 13px;margin-left: 20px">
<el-checkbox v-model="modalData.oqcExempt" true-label="Y">OQC检验</el-checkbox>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" style="margin-left: 7px;margin-top: 2px">
<el-form-item label="首次巡检时长(h)">
<el-input-number :controls="false" :step="0" v-model="modalData.firstInspectionDuration" style="width: 120px"></el-input-number>
</el-form-item>
<el-form-item label="下次巡检时长(h)">
<el-input-number :controls="false" :step="0" v-model="modalData.nextInspectionDuration" style="width: 120px"></el-input-number>
</el-form-item>
<el-form-item label="累计巡检时长(h)">
<el-input-number :controls="false" :step="0" v-model="modalData.totalInspectionDuration" style="width: 120px"></el-input-number>
</el-form-item>
</el-form>
<el-footer style="height:35px;margin-top: 15px;text-align:center">
<el-button type="primary" :loading="saveLoading" @click="saveData()">保存</el-button>
<el-button type="primary" @click="modalFlag = false">关闭</el-button>
</el-footer>
</el-dialog>
<!-- 页签 -->
<el-tabs v-model="activeTable" style="width: 100%" :style="{height: secondHeight + 'px'}" type="border-card" @tab-click="tabClick" class="customer-tab">
<!-- BOM页签 -->
<el-tab-pane label="BOM" name="part_agent">
<el-form label-position="top" style="margin-left: 2px;">
<el-button v-if="isAuth('104001001:agentSave')" type="primary" @click="savePartAgent">新增</el-button>
</el-form>
<el-table
:data="partAgentList"
:height="secondHeight - 68"
border
style="width: 100%;">
<el-table-column
v-for="(item,index) in columnAgentList" :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-column
header-align="center"
align="center"
width="150"
fixed="right"
label="操作">
<template slot-scope="scope">
<el-link v-if="isAuth('104001001:agentDelete')" style="cursor: pointer" @click="deleteAgent2(scope.row)">删除</el-link>
</template>
</el-table-column>
</el-table>
</el-tab-pane>
<!-- 制造商页签 -->
<el-tab-pane label="制造商" name="part_manufacturer">
<el-form label-position="top" style="margin-left: 2px;">
<el-button v-if="isAuth('104001001:manufacturerSave')" type="primary" @click="savePartManufacturer()">新增</el-button>
</el-form>
<el-table
:data="partManufacturerList"
:height="secondHeight - 68"
border
style="width: 100%;">
<el-table-column
v-for="(item,index) in columnManufacturerList" :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-column
header-align="center"
align="center"
width="150"
fixed="right"
label="操作">
<template slot-scope="scope">
<el-link v-if="isAuth('104001001:manufacturerDelete')" style="cursor: pointer" @click="deleteManufacturer2(scope.row)">删除</el-link>
</template>
</el-table-column>
</el-table>
</el-tab-pane>
<!-- 默认库位页签 -->
<el-tab-pane label="默认库位" name="default_locations">
<el-form label-position="top" style="margin-left: 2px;">
<el-button v-if="isAuth('104001001:locationSave')" type="primary" @click="saveDefaultLocation()">新增</el-button>
</el-form>
<el-table
:data="defaultLocationList"
:height="secondHeight - 68"
border
style="width: 100%;">
<el-table-column
v-for="(item,index) in columnLocationList" :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-column
header-align="center"
align="center"
width="150"
fixed="right"
label="操作">
<template slot-scope="scope">
<el-link v-if="isAuth('104001001:locationDelete')" style="cursor: pointer" @click="deleteLocation2(scope.row)">删除</el-link>
</template>
</el-table-column>
</el-table>
</el-tab-pane>
<!-- 文档页签 -->
<el-tab-pane label="附件信息" name="part_file">
<oss-components label="物料编码" :height="secondHeight - 73" :columns="columnFileList" :order-ref2="partCurrentRow.partNo" :order-ref1="partCurrentRow.site" :disabled="!isAuth('104001001:fileSaveAndDelete')"></oss-components>
</el-tab-pane>
</el-tabs>
<!-- 检验模板 -->
<el-dialog title="检验模板清单" :close-on-click-modal="false" v-drag :visible.sync="detailModelFlag" width="1400px">
<el-form :inline="true" label-position="top">
@ -652,8 +831,6 @@
<script>
import {
qcPartAttributeSearch, //
qcPartAttributeSave, //
qcPartAttributeDelete, //
qcPartAttributeEdit, //
searchPartAttributeDetails, //
savePartAttributeDetails, //
@ -673,6 +850,7 @@
import {userFavoriteList, saveUserFavorite, removeUserFavorite} from '@/api/userFavorite.js'
import {deleteObjectFile} from '@/api/eam/eam.js'
import excel from "@/utils/excel-util.js"
import {verifyData} from "@/api/chooselist/chooselist.js"
import qcUpload from "./qc_upload"
import qcSOPUploadFile from "./qc_SOP_upload_file"
export default {
@ -694,6 +872,7 @@
exportList: [],
// end
tagNo: '',
tagType: '',
searchData: {
site: '',
userName: this.$store.state.user.name,
@ -718,21 +897,36 @@
modalData: {
site: '',
bu: '',
buNo: '',
flag: '',
partNo: '',
partDesc: '',
familyID: '',
familyName: '',
cinvSourceCode: '',
sku: '',
umid: '',
supplierNo: '',
supplierDesc: '',
attributeRemark: '',
createTime: '',
createBy: this.$store.state.user.name,
attributeType: 'A',
exemptInspection: ''
partTypeDB: '',
partType: '',
umId: '',
spec: '',
expirationFlag: '',
expirationDay: '',
expirationWarningDay: '',
exceedInRatio: '',
exceedOutRatio: '',
inboundWarehouseId: '',
inboundWarehouseName: '',
outboundWarehouseId: '',
outboundWarehouseName: '',
inboundLocationId: '',
inboundLocationName: '',
active: '',
iqcExempt: '',
faiExempt: '',
ipqcExempt: '',
pqcExempt: '',
fqcExempt: '',
oqcExempt: '',
firstInspectionDuration: '',
nextInspectionDuration: '',
totalInspectionDuration: '',
lastUpdateBy: this.$store.state.user.name
},
detailData: {
site: '',
@ -881,7 +1075,7 @@
serialNumber: '301003Table1Umid',
tableId: "301003Table1",
tableName: "物料属性设置表",
columnProp: 'umid',
columnProp: 'umId',
headerAlign: "center",
align: "left",
columnLabel: '单位',
@ -1310,12 +1504,19 @@
authDetail: false,
authFile: false,
menuId: this.$route.meta.menuId,
activeTable: 'part_agent',
partCurrentRow: {},
secondHeight: 200,
searchLoading: false,
saveLoading: false
}
},
mounted () {
this.$nextTick(() => {
this.height = window.innerHeight - 170
this.height = window.innerHeight / 2 - 100
/*第二个表格高度的动态调整*/
this.secondHeight = window.innerHeight - this.height - 170
})
},
@ -1389,50 +1590,11 @@
this.getBaseList(207)
},
// S
getBaseList (val,type) {
this.tagNo = val
this.$nextTick(() => {
let strVal = ''
if (val === 208) {
strVal = this.tempLevelRow.samplingLevelNo
this.$refs.baseList.init(val, strVal)
}
if (val === 207) {
strVal = this.tempProgrammeRow.samplingProgrammeNo
this.$refs.baseList.init(val, strVal)
}
if (val === 1056) {
strVal = this.modalData.supplierNo
this.$refs.baseList.init(val, strVal)
}
})
},
//
getBaseData (val) {
if (this.tagNo === 507) {
this.modalData.partNo = val.part_no
this.modalData.partDesc = val.part_desc
}
if (this.tagNo === 208) {
this.tempLevelRow.samplingLevelNo = val.sampling_level_no
this.tempLevelRow.samplingLevelDesc = val.sampling_level_desc
}
if (this.tagNo === 207) {
this.tempProgrammeRow.samplingProgrammeNo = val.sampling_programme_no
this.tempProgrammeRow.samplingProgrammeDesc = val.sampling_programme_desc
}
if (this.tagNo === 1056) {
this.modalData.supplierNo = val.supplier_id
this.modalData.supplierDesc = val.supplier_name
}
},
//
getDataList () {
this.searchData.limit = this.pageSize
this.searchData.page = this.pageIndex
this.searchLoading = true
qcPartAttributeSearch(this.searchData).then(({data}) => {
if (data.code === 0) {
this.dataList = data.page.list
@ -1440,6 +1602,8 @@
this.pageSize = data.page.pageSize
this.totalPage = data.page.totalCount
}
}).finally(()=>{
this.searchLoading = false
})
},
@ -1464,103 +1628,61 @@
this.getDataList()
},
addModal () {
this.modalData = {
site: '',
bu: this.userBuList[0].buNo,
flag: '1',
partNo: '',
partDesc: '',
familyID: '',
familyName: '',
umid: '',
supplierNo: '',
supplierDesc: '',
attributeRemark: '',
createTime: '',
updateBy: this.$store.state.user.name,
createBy: this.$store.state.user.name,
attributeType: 'A',
exemptInspection: ''
}
this.modalDisableFlag = false
this.modalFlag = true
},
updateModal (row) {
this.modalData = {
site: row.site,
bu: row.site + '_' + row.buNo,
flag: '2',
buNo: row.buNo,
partNo: row.partNo,
partDesc: row.partDesc,
familyID: row.familyID,
familyName: row.familyName,
umid: row.umid,
supplierNo: row.supplierNo,
supplierDesc: row.supplierDesc,
attributeRemark: row.attributeRemark,
updateBy: this.$store.state.user.name,
createBy: this.$store.state.user.name,
attributeType: 'A',
exemptInspection: row.exemptInspection
partTypeDB: row.partTypeDB,
partType: row.partType,
umId: row.umId,
spec: row.spec,
expirationFlag: row.expirationFlag,
expirationDay: row.expirationDay,
expirationWarningDay: row.expirationWarningDay,
exceedInRatio: row.exceedInRatio,
exceedOutRatio: row.exceedOutRatio,
inboundWarehouseId: row.inboundWarehouseId,
inboundWarehouseName: row.inboundWarehouseName,
outboundWarehouseId: row.outboundWarehouseId,
outboundWarehouseName: row.outboundWarehouseName,
inboundLocationId: row.inboundLocationId,
inboundLocationName: row.inboundLocationName,
active: row.active,
iqcExempt: row.iqcExempt,
faiExempt: row.faiExempt,
ipqcExempt: row.ipqcExempt,
pqcExempt: row.pqcExempt,
fqcExempt: row.fqcExempt,
oqcExempt: row.oqcExempt,
firstInspectionDuration: row.firstInspectionDuration,
nextInspectionDuration: row.nextInspectionDuration,
totalInspectionDuration: row.totalInspectionDuration,
lastUpdateBy: this.$store.state.user.name,
}
this.modalDisableFlag = true
this.modalFlag = true
},
//
deletePropertiesModel (row) {
this.$confirm(`是否删除这个检验模板?`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
qcPartAttributeDelete(row).then(({data}) => {
if (data && data.code === 0) {
this.getDataList()
this.$message.success('操作成功')
} else {
this.$message.error(data.msg)
}
})
})
},
saveData () {
if (this.modalData.bu === '' || this.modalData.bu == null) {
this.$message.warning('请选择BU!')
return
}
if (this.modalData.partNo === '' || this.modalData.partNo == null) {
this.$message.warning('请选择物料编码!')
return
}
if (this.modalData.partDesc === '' || this.modalData.partDesc == null) {
this.$message.warning('请选择物料名称!')
return
}
if (this.modalData.flag === '1') {
qcPartAttributeSave(this.modalData).then(({data}) => {
if (data && data.code === 0) {
this.getDataList()
this.modalFlag = false
this.$message.success('操作成功')
} else {
this.$message.error(data.msg)
}
})
} else {
qcPartAttributeEdit(this.modalData).then(({data}) => {
if (data && data.code === 0) {
this.getDataList()
this.modalFlag = false
this.$message.success('操作成功')
} else {
this.$message.error(data.msg)
}
})
}
this.saveLoading = true
qcPartAttributeEdit(this.modalData).then(({data}) => {
if (data && data.code === 0) {
this.getDataList()
this.modalFlag = false
this.$message.success('操作成功')
} else {
this.$message.error(data.msg)
}
}).finally(()=>{
this.saveLoading = false
})
},
//
@ -1740,6 +1862,117 @@
})
},
//
inWarehouseBlur (tagNo) {
let tempData = {
tagno: tagNo,
conditionSql: " and WareHouseID = '" + this.modalData.inboundWarehouseId + "'" + " and site = '" + this.modalData.site + "'" + " and bu_no = '" + this.modalData.buNo + "'"
}
verifyData(tempData).then(({data}) => {
if (data && data.code === 0) {
if (data.baseListData.length > 0) {
this.modalData.inboundWarehouseId = data.baseListData[0].WareHouseID
this.modalData.inboundWarehouseName = data.baseListData[0].WareHouseName
} else {
this.modalData.inboundWarehouseName = ''
}
}
})
},
//
outWarehouseBlur (tagNo) {
let tempData = {
tagno: tagNo,
conditionSql: " and WareHouseID = '" + this.modalData.outboundWarehouseId + "'" + " and site = '" + this.modalData.site + "'" + " and bu_no = '" + this.modalData.buNo + "'"
}
verifyData(tempData).then(({data}) => {
if (data && data.code === 0) {
if (data.baseListData.length > 0) {
this.modalData.outboundWarehouseId = data.baseListData[0].WareHouseID
this.modalData.outboundWarehouseName = data.baseListData[0].WareHouseName
} else {
this.modalData.outboundWarehouseName = ''
}
}
})
},
//
locationBlur (tagNo) {
let tempData = {
tagno: tagNo,
conditionSql: " and LocationID = '" + this.modalData.inboundLocationId + "'" + " and site = '" + this.modalData.site + "'" + " and bu_no = '" + this.modalData.buNo + "'"
}
verifyData(tempData).then(({data}) => {
if (data && data.code === 0) {
if (data.baseListData.length > 0) {
this.modalData.inboundLocationId = data.baseListData[0].LocationID
this.modalData.inboundLocationName = data.baseListData[0].LocationName
} else {
this.modalData.inboundLocationName = ''
}
}
})
},
// S
getBaseList (val, type) {
this.tagNo = val
this.tagType = type
this.$nextTick(() => {
let strVal = ''
if (val === 208) {
strVal = this.tempLevelRow.samplingLevelNo
this.$refs.baseList.init(val, strVal)
}
if (val === 207) {
strVal = this.tempProgrammeRow.samplingProgrammeNo
this.$refs.baseList.init(val, strVal)
}
if (val === 1056) {
strVal = this.modalData.supplierNo
this.$refs.baseList.init(val, strVal)
}
if (val === 20 && type === 1) {
strVal = this.modalData.inboundWarehouseId
this.$refs.baseList.init(val, strVal)
}
if (val === 20 && type === 2) {
strVal = this.modalData.outboundWarehouseId
this.$refs.baseList.init(val, strVal)
}
})
},
//
getBaseData (val) {
if (this.tagNo === 507) {
this.modalData.partNo = val.part_no
this.modalData.partDesc = val.part_desc
}
if (this.tagNo === 208) {
this.tempLevelRow.samplingLevelNo = val.sampling_level_no
this.tempLevelRow.samplingLevelDesc = val.sampling_level_desc
}
if (this.tagNo === 207) {
this.tempProgrammeRow.samplingProgrammeNo = val.sampling_programme_no
this.tempProgrammeRow.samplingProgrammeDesc = val.sampling_programme_desc
}
if (this.tagNo === 1056) {
this.modalData.supplierNo = val.supplier_id
this.modalData.supplierDesc = val.supplier_name
}
if (this.tagNo === 20 && this.tagType === 1) {
this.modalData.inboundWarehouseId = val.WareHouseID
this.modalData.inboundWarehouseName = val.WareHouseName
}
if (this.tagNo === 20 && this.tagType === 2) {
this.modalData.outboundWarehouseId = val.WareHouseID
this.modalData.outboundWarehouseName = val.WareHouseName
}
},
//
favoriteIsOk () {
let userFavorite = {
@ -2026,6 +2259,46 @@
})
},
//
tabClick (tab, event) {
//
this.refreshCurrentTabTable()
},
//
changeCurrentRow (row, oldRow) {
//
if (row) {
this.partCurrentRow = JSON.parse(JSON.stringify(row))
//
this.refreshCurrentTabTable()
}
},
rowStyle ({row}) {
if (this.partCurrentRow.partNo === row.partNo) {
return { 'background-color': '#E8F7F6', cursor: 'pointer' }
}
},
//
partClickRow (row,column) {
this.partCurrentRow = JSON.parse(JSON.stringify(row))
},
// table
refreshCurrentTabTable () {
if (this.activeTable === 'part_agent') {
this.getPartAgent()
} else if (this.activeTable === 'part_file') {
this.getFileContentData()
} else if (this.activeTable === 'part_manufacturer') {
this.getPartManufacturer()
} else if (this.activeTable === 'default_locations') {
this.getDefaultLocation()
}
},
//
async getTableUserColumn (tableId, columnId) {
let queryTableUser = {

2
src/views/modules/qc/qc_upload.vue

@ -147,7 +147,7 @@ export default {
this.$refs.uploadFile.clearFiles();
//
this.closeDialog();
}else {
} else {
this.$message.warning(data.msg);
}
})

Loading…
Cancel
Save