Browse Source

2024-09-24

RFQ 功能优化
java8
fengyuan_yang 1 year ago
parent
commit
7be58c4649
  1. 55
      src/views/modules/part/bomManagement.vue
  2. 388
      src/views/modules/part/partInformation.vue
  3. 89
      src/views/modules/part/routingManagement.vue

55
src/views/modules/part/bomManagement.vue

@ -2752,24 +2752,26 @@ export default {
// //
partNoBlur () { partNoBlur () {
this.partData.limit = this.pageSize2
this.partData.page = this.pageIndex2
this.partData.site = this.modalData.bu.split('_')[0]
this.partData.buNo = this.modalData.bu.split('_')[1]
this.partData.partNo = this.modalData.partNo
queryPartList(this.partData).then(({data}) => {
if (data && data.code === 0) {
if (data.page.list.length === 1) {
this.modalData.partDesc = data.page.list[0].partDesc
this.modalData.printUnit = data.page.list[0].printUnit
this.modalData.printUnitName = data.page[0].printUnitName
} else {
this.modalData.partDesc = ''
this.modalData.printUnit = ''
this.modalData.printUnitName = ''
if (this.modalData.partNo != null && this.modalData.partNo !== '') {
this.partData.limit = this.pageSize2
this.partData.page = this.pageIndex2
this.partData.site = this.modalData.bu.split('_')[0]
this.partData.buNo = this.modalData.bu.split('_')[1]
this.partData.partNo = this.modalData.partNo
queryPartList(this.partData).then(({data}) => {
if (data && data.code === 0) {
if (data.page.list.length === 1) {
this.modalData.partDesc = data.page.list[0].partDesc
this.modalData.printUnit = data.page.list[0].printUnit
this.modalData.printUnitName = data.page[0].printUnitName
return
}
} }
}
})
})
}
this.modalData.partDesc = ''
this.modalData.printUnit = ''
this.modalData.printUnitName = ''
}, },
/** /**
@ -2917,15 +2919,14 @@ export default {
this.componentData.componentPartDesc = data.page.list[0].partDesc this.componentData.componentPartDesc = data.page.list[0].partDesc
this.componentData.printUnit = data.page.list[0].printUnit this.componentData.printUnit = data.page.list[0].printUnit
this.componentData.printUnitName = data.page.list[0].printUnitName this.componentData.printUnitName = data.page.list[0].printUnitName
} else {
this.$message.warning('该子物料不存在!')
this.componentData.componentPartDesc = ''
this.componentData.printUnit = ''
this.componentData.printUnitName = ''
return
} }
} }
}) })
} }
this.componentData.componentPartDesc = ''
this.componentData.printUnit = ''
this.componentData.printUnitName = ''
}, },
// copy // copy
@ -2939,13 +2940,12 @@ export default {
if (data && data.code === 0) { if (data && data.code === 0) {
if (data.page.list.length === 1) { if (data.page.list.length === 1) {
this.copyBomData.partDesc = data.page.list[0].partDesc this.copyBomData.partDesc = data.page.list[0].partDesc
} else {
this.$message.warning('该物料编码不存在或制造类型不合规!')
this.copyBomData.partDesc = ''
return
} }
} }
}) })
} }
this.copyBomData.partDesc = ''
} else { } else {
if (this.copyAlternativeData.partNo != null && this.copyAlternativeData.partNo !== '') { if (this.copyAlternativeData.partNo != null && this.copyAlternativeData.partNo !== '') {
this.copyPartData.limit = this.pageSize4 this.copyPartData.limit = this.pageSize4
@ -2955,13 +2955,12 @@ export default {
if (data && data.code === 0) { if (data && data.code === 0) {
if (data.page.list.length === 1) { if (data.page.list.length === 1) {
this.copyAlternativeData.partDesc = data.page.list[0].partDesc this.copyAlternativeData.partDesc = data.page.list[0].partDesc
} else {
this.$message.warning('该物料编码不存在或制造类型不合规!')
this.copyAlternativeData.partDesc = ''
return
} }
} }
}) })
} }
this.copyAlternativeData.partDesc = ''
} }
}, },

388
src/views/modules/part/partInformation.vue

@ -139,14 +139,14 @@
<el-input v-model="modalData.spec" style="width: 477px"></el-input> <el-input v-model="modalData.spec" style="width: 477px"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="BU" prop="bu"> <el-form-item label="BU" prop="bu">
<el-select v-model="modalData.bu" placeholder="请选择" :disabled="modalDisableFlag" style="width: 216px">
<el-select v-model="modalData.bu" placeholder="请选择" :disabled="modalDisableFlag" style="width: 100px">
<el-option <el-option
v-for = "i in userBuList" v-for = "i in userBuList"
:key = "i.buNo" :key = "i.buNo"
:label = "i.buDesc" :label = "i.buDesc"
:value = "i.buNo"> :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>
<!-- <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-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -156,74 +156,75 @@
<el-option label="否" value="N"></el-option> <el-option label="否" value="N"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="零件类型">
<el-select v-model="modalData.partType" style="width: 160px">
<el-option label="Manufactured" value="Manufactured"></el-option>
<el-option label="Manufactured Recipe" value="Manufactured Recipe"></el-option>
<el-option label="Purchased (raw)" value="Purchased (raw)"></el-option>
<el-option label="Purchased" value="Purchased"></el-option>
</el-select>
</el-form-item>
<el-form-item v-if="modalData.flag === '2'" :label="' '"> <el-form-item v-if="modalData.flag === '2'" :label="' '">
<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> </el-form>
<el-tabs v-model="inventoryPartTable" style="width: 100%;height: 345px;" type="border-card" @tab-click="inventoryPartClick">
<el-tabs v-model="inventoryPartTable" style="width: 100%;height: 305px;" type="border-card" @tab-click="inventoryPartClick">
<el-tab-pane label="General" name="General"> <el-tab-pane label="General" name="General">
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-top: -5px;"> <el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-top: -5px;">
<el-form-item label="PN">
<el-input v-model="modalData.cinvSourceCode" style="width: 144px"></el-input>
</el-form-item>
<el-form-item label="SKU">
<el-input v-model="modalData.sku" style="width: 144px"></el-input>
</el-form-item>
<el-form-item label="cinvcname">
<el-input v-model="modalData.cinvcname" style="width: 145px"></el-input>
</el-form-item>
<el-form-item label="Part Type">
<el-select v-model="modalData.partType" style="width: 160px">
<el-option label="Manufactured" value="Manufactured"></el-option>
<el-option label="Manufactured Recipe" value="Manufactured Recipe"></el-option>
<el-option label="Purchased (raw)" value="Purchased (raw)"></el-option>
<el-option label="Purchased" value="Purchased"></el-option>
</el-select>
</el-form-item>
<el-form-item label="物料类别">
<el-input v-model="modalData.invdefinetype" style="width: 174px"></el-input>
</el-form-item>
<el-form-item prop="controlMes" label="controlMes">
<el-select v-model="modalData.controlMes" style="width: 100px">
<el-option label="是" value="Y"></el-option>
<el-option label="否" value="N"></el-option>
</el-select>
</el-form-item>
<!-- <el-form-item label="PN">-->
<!-- <el-input v-model="modalData.cinvSourceCode" style="width: 144px"></el-input>-->
<!-- </el-form-item>-->
<!-- <el-form-item label="SKU">-->
<!-- <el-input v-model="modalData.sku" style="width: 144px"></el-input>-->
<!-- </el-form-item>-->
<!-- <el-form-item label="cinvcname">-->
<!-- <el-input v-model="modalData.cinvcname" style="width: 145px"></el-input>-->
<!-- </el-form-item>-->
<!-- <el-form-item label="物料类别">-->
<!-- <el-input v-model="modalData.invdefinetype" style="width: 174px"></el-input>-->
<!-- </el-form-item>-->
<!-- <el-form-item prop="controlMes" label="controlMes">-->
<!-- <el-select v-model="modalData.controlMes" style="width: 100px">-->
<!-- <el-option label="是" value="Y"></el-option>-->
<!-- <el-option label="否" value="N"></el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
</el-form> </el-form>
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-top: -5px;"> <el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-top: -5px;">
<el-form-item label="Qty Box Roll">
<el-input v-model="modalData.qtyBoxRoll" style="width: 144px"></el-input>
</el-form-item>
<el-form-item label="Qty Roll">
<el-input v-model="modalData.qtyRoll" style="width: 144px"></el-input>
</el-form-item>
<el-form-item label="Standard Box Qty">
<el-input v-model="modalData.standardBoxQty" style="width: 145px"></el-input>
</el-form-item>
<!-- <el-form-item label="Qty Box Roll">-->
<!-- <el-input v-model="modalData.qtyBoxRoll" style="width: 144px"></el-input>-->
<!-- </el-form-item>-->
<!-- <el-form-item label="Qty Roll">-->
<!-- <el-input v-model="modalData.qtyRoll" style="width: 144px"></el-input>-->
<!-- </el-form-item>-->
<!-- <el-form-item label="Standard Box Qty">-->
<!-- <el-input v-model="modalData.standardBoxQty" style="width: 145px"></el-input>-->
<!-- </el-form-item>-->
<el-form-item prop="umId"> <el-form-item prop="umId">
<span style="cursor: pointer" slot="label" @click="getBaseList(510)"><a herf="#">计量单位 / Inventory UoM</a></span>
<span style="cursor: pointer" slot="label" @click="getBaseList(510)"><a herf="#">计量单位</a></span>
<el-input v-model="modalData.umId" @blur="umIdBlur(510)" style="width: 128px"></el-input> <el-input v-model="modalData.umId" @blur="umIdBlur(510)" style="width: 128px"></el-input>
<el-input v-model="modalData.umName" disabled style="width: 330px"></el-input> <el-input v-model="modalData.umName" disabled style="width: 330px"></el-input>
</el-form-item> </el-form-item>
</el-form>
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-top: -5px;">
<el-form-item> <el-form-item>
<span style="cursor: pointer" slot="label" @click="getBaseList(511)"><a herf="#">默认仓库</a></span>
<el-input v-model="modalData.defaultWarehouseID" @blur="defaultWarehouseBlur(511)" style="width: 128px"></el-input>
<el-input v-model="modalData.defaultWarehouseName" disabled style="width: 330px"></el-input>
<span style="cursor: pointer" slot="label" @click="getBaseList(214)"><a herf="#">物料分类</a></span>
<el-input v-model="modalData.familyID" @blur="partFamilyBlur(214)" style="width: 128px"></el-input>
<el-input v-model="modalData.familyName" disabled style="width: 330px"></el-input>
</el-form-item> </el-form-item>
</el-form>
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-top: -5px;">
<!-- <el-form-item>-->
<!-- <span style="cursor: pointer" slot="label" @click="getBaseList(511)"><a herf="#">默认仓库</a></span>-->
<!-- <el-input v-model="modalData.defaultWarehouseID" @blur="defaultWarehouseBlur(511)" style="width: 128px"></el-input>-->
<!-- <el-input v-model="modalData.defaultWarehouseName" disabled style="width: 330px"></el-input>-->
<!-- </el-form-item>-->
</el-form>
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-top: -5px;">
<el-form-item> <el-form-item>
<span style="cursor: pointer" slot="label" @click="getBaseList(211)"><a herf="#">商品组1</a></span> <span style="cursor: pointer" slot="label" @click="getBaseList(211)"><a herf="#">商品组1</a></span>
<el-input v-model="modalData.otherGroup1" @blur="productGroupId1Blur(211)" style="width: 128px"></el-input> <el-input v-model="modalData.otherGroup1" @blur="productGroupId1Blur(211)" style="width: 128px"></el-input>
<el-input v-model="modalData.otherGroupName1" disabled style="width: 330px"></el-input> <el-input v-model="modalData.otherGroupName1" disabled style="width: 330px"></el-input>
</el-form-item> </el-form-item>
</el-form>
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-top: -5px;">
<el-form-item>
<span style="cursor: pointer" slot="label" @click="getBaseList(214)"><a herf="#">物料分类</a></span>
<el-input v-model="modalData.familyID" @blur="partFamilyBlur(214)" style="width: 128px"></el-input>
<el-input v-model="modalData.familyName" disabled style="width: 330px"></el-input>
</el-form-item>
<el-form-item> <el-form-item>
<span style="cursor: pointer" slot="label" @click="getBaseList(212)"><a herf="#">商品组2</a></span> <span style="cursor: pointer" slot="label" @click="getBaseList(212)"><a herf="#">商品组2</a></span>
<el-input v-model="modalData.otherGroup2" @blur="productGroupId2Blur(212)" style="width: 128px"></el-input> <el-input v-model="modalData.otherGroup2" @blur="productGroupId2Blur(212)" style="width: 128px"></el-input>
@ -231,16 +232,16 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-top: -5px;"> <el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-top: -5px;">
<el-form-item prop="codeNo" :rules="rules.codeNo">
<span style="cursor: pointer" slot="label" @click="getBaseList(219)"><a herf="#">属性模板</a></span>
<el-input v-model="modalData.codeNo" @blur="modelBlur(219)" style="width: 128px"></el-input>
<el-input v-model="modalData.codeDesc" disabled style="width: 330px"></el-input>
</el-form-item>
<el-form-item> <el-form-item>
<span style="cursor: pointer" slot="label" @click="getBaseList(213)"><a herf="#">商品组3</a></span> <span style="cursor: pointer" slot="label" @click="getBaseList(213)"><a herf="#">商品组3</a></span>
<el-input v-model="modalData.otherGroup3" @blur="productGroupId3Blur(213)" style="width: 128px"></el-input> <el-input v-model="modalData.otherGroup3" @blur="productGroupId3Blur(213)" style="width: 128px"></el-input>
<el-input v-model="modalData.otherGroupName3" disabled style="width: 330px"></el-input> <el-input v-model="modalData.otherGroupName3" disabled style="width: 330px"></el-input>
</el-form-item> </el-form-item>
<el-form-item prop="codeNo" :rules="rules.codeNo">
<span style="cursor: pointer" slot="label" @click="getBaseList(219)"><a herf="#">属性模板</a></span>
<el-input v-model="modalData.codeNo" @blur="modelBlur(219)" style="width: 128px"></el-input>
<el-input v-model="modalData.codeDesc" disabled style="width: 330px"></el-input>
</el-form-item>
</el-form> </el-form>
<!-- <el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-top: -5px;">--> <!-- <el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-top: -5px;">-->
<!-- <el-form-item label="Mold Code">--> <!-- <el-form-item label="Mold Code">-->
@ -265,16 +266,15 @@
<!-- </el-form-item>--> <!-- </el-form-item>-->
<!-- </el-form>--> <!-- </el-form>-->
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-top: -5px;"> <el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-top: -5px;">
<el-form-item label="备注" style="height: 80px">
<el-input type="textarea" v-model="modalData.remark" :rows="3" resize='none' show-word-limit style="width: 937px"></el-input>
<el-form-item label="备注" style="height: 135px">
<el-input type="textarea" v-model="modalData.remark" :rows="5" resize='none' show-word-limit style="width: 939px"></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
</el-form> </el-form>
<el-footer style="height:35px;margin-top: 20px;text-align:center"> <el-footer style="height:35px;margin-top: 20px;text-align:center">
<el-button v-if="modalData.flag === '3'" type="primary" @click="saveData">同步</el-button>
<el-button v-else type="primary" @click="saveData">保存</el-button>
<el-button type="primary" @click="saveData">保存</el-button>
<el-button type="primary" @click="modalFlag = false">关闭</el-button> <el-button type="primary" @click="modalFlag = false">关闭</el-button>
</el-footer> </el-footer>
</el-dialog> </el-dialog>
@ -1259,6 +1259,24 @@
fileList: [], fileList: [],
// ======== ======== // ======== ========
columnList: [ columnList: [
{
userId: this.$store.state.user.name,
functionId: 601001,
serialNumber: '601001Table1Bu',
tableId: '601001Table1',
tableName: '物料信息表',
columnProp: 'buDesc',
headerAlign: 'center',
align: 'center',
columnLabel: 'BU',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100
},
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 601001, functionId: 601001,
@ -1298,20 +1316,20 @@
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 601001, functionId: 601001,
serialNumber: '601001Table1StatusDesc',
serialNumber: '601001Table1PartDesceEn',
tableId: '601001Table1', tableId: '601001Table1',
tableName: '物料信息表', tableName: '物料信息表',
columnProp: 'statusDesc',
columnProp: 'partDesceEn',
headerAlign: 'center', headerAlign: 'center',
align: 'center',
columnLabel: '物料状态',
align: 'left',
columnLabel: '物料描述(英文)',
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
sortLv: 0, sortLv: 0,
status: true, status: true,
fixed: '', fixed: '',
columnWidth: 100
columnWidth: 300
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
@ -1322,7 +1340,7 @@
columnProp: 'spec', columnProp: 'spec',
headerAlign: 'center', headerAlign: 'center',
align: 'left', align: 'left',
columnLabel: '规格型号',
columnLabel: '规格',
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
@ -1334,20 +1352,20 @@
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 601001, functionId: 601001,
serialNumber: '601001Table1UmId',
serialNumber: '601001Table1ActiveDesc',
tableId: '601001Table1', tableId: '601001Table1',
tableName: '物料信息表', tableName: '物料信息表',
columnProp: 'umId',
columnProp: 'activeDesc',
headerAlign: 'center', headerAlign: 'center',
align: 'center', align: 'center',
columnLabel: '计量单位',
columnLabel: '是否在用',
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
sortLv: 0, sortLv: 0,
status: true, status: true,
fixed: '', fixed: '',
columnWidth: 80
columnWidth: 100
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
@ -1367,6 +1385,60 @@
fixed: '', fixed: '',
columnWidth: 150 columnWidth: 150
}, },
{
userId: this.$store.state.user.name,
functionId: 601001,
serialNumber: '601001Table1UmId',
tableId: '601001Table1',
tableName: '物料信息表',
columnProp: 'umId',
headerAlign: 'center',
align: 'center',
columnLabel: '计量单位编码',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 150
},
{
userId: this.$store.state.user.name,
functionId: 601001,
serialNumber: '601001Table1UmName',
tableId: '601001Table1',
tableName: '物料信息表',
columnProp: 'umName',
headerAlign: 'center',
align: 'left',
columnLabel: '计量单位名称',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 200
},
{
userId: this.$store.state.user.name,
functionId: 601001,
serialNumber: '601001Table1FamilyID',
tableId: '601001Table1',
tableName: '物料信息表',
columnProp: 'familyID',
headerAlign: 'center',
align: 'center',
columnLabel: '物料分类编码',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 150
},
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 601001, functionId: 601001,
@ -1375,15 +1447,33 @@
tableName: '物料信息表', tableName: '物料信息表',
columnProp: 'familyName', columnProp: 'familyName',
headerAlign: 'center', headerAlign: 'center',
align: 'left',
columnLabel: '物料分类名称',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 200
},
{
userId: this.$store.state.user.name,
functionId: 601001,
serialNumber: '601001Table1OtherGroup1',
tableId: '601001Table1',
tableName: '物料信息表',
columnProp: 'otherGroup1',
headerAlign: 'center',
align: 'center', align: 'center',
columnLabel: '物料分类',
columnLabel: '商品组1编码',
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
sortLv: 0, sortLv: 0,
status: true, status: true,
fixed: '', fixed: '',
columnWidth: 120
columnWidth: 150
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
@ -1393,15 +1483,33 @@
tableName: '物料信息表', tableName: '物料信息表',
columnProp: 'otherGroupName1', columnProp: 'otherGroupName1',
headerAlign: 'center', headerAlign: 'center',
align: 'left',
columnLabel: '商品组1名称',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 200
},
{
userId: this.$store.state.user.name,
functionId: 601001,
serialNumber: '601001Table1OtherGroup2',
tableId: '601001Table1',
tableName: '物料信息表',
columnProp: 'otherGroup2',
headerAlign: 'center',
align: 'center', align: 'center',
columnLabel: '商品组1',
columnLabel: '商品组2编码',
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
sortLv: 0, sortLv: 0,
status: true, status: true,
fixed: '', fixed: '',
columnWidth: 100
columnWidth: 150
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
@ -1409,17 +1517,35 @@
serialNumber: '601001Table1OtherGroupName2', serialNumber: '601001Table1OtherGroupName2',
tableId: '601001Table1', tableId: '601001Table1',
tableName: '物料信息表', tableName: '物料信息表',
columnProp: 'otherGroupName1',
columnProp: 'otherGroupName2',
headerAlign: 'center',
align: 'left',
columnLabel: '商品组2名称',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 200
},
{
userId: this.$store.state.user.name,
functionId: 601001,
serialNumber: '601001Table1OtherGroup3',
tableId: '601001Table1',
tableName: '物料信息表',
columnProp: 'otherGroup3',
headerAlign: 'center', headerAlign: 'center',
align: 'center', align: 'center',
columnLabel: '商品组2',
columnLabel: '商品组3编码',
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
sortLv: 0, sortLv: 0,
status: true, status: true,
fixed: '', fixed: '',
columnWidth: 100
columnWidth: 150
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
@ -1427,17 +1553,53 @@
serialNumber: '601001Table1OtherGroupName3', serialNumber: '601001Table1OtherGroupName3',
tableId: '601001Table1', tableId: '601001Table1',
tableName: '物料信息表', tableName: '物料信息表',
columnProp: 'otherGroupName1',
columnProp: 'otherGroupName3',
headerAlign: 'center',
align: 'left',
columnLabel: '商品组3名称',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 200
},
{
userId: this.$store.state.user.name,
functionId: 601001,
serialNumber: '601001Table1CodeNo',
tableId: '601001Table1',
tableName: '物料信息表',
columnProp: 'codeNo',
headerAlign: 'center', headerAlign: 'center',
align: 'center', align: 'center',
columnLabel: '商品组3',
columnLabel: '属性模板编码',
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
sortLv: 0, sortLv: 0,
status: true, status: true,
fixed: '', fixed: '',
columnWidth: 100
columnWidth: 150
},
{
userId: this.$store.state.user.name,
functionId: 601001,
serialNumber: '601001Table1CodeDesc',
tableId: '601001Table1',
tableName: '物料信息表',
columnProp: 'codeDesc',
headerAlign: 'center',
align: 'left',
columnLabel: '属性模板名称',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 200
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
@ -1455,7 +1617,7 @@
sortLv: 0, sortLv: 0,
status: true, status: true,
fixed: '', fixed: '',
columnWidth: 200
columnWidth: 300
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
@ -1491,7 +1653,7 @@
sortLv: 0, sortLv: 0,
status: true, status: true,
fixed: '', fixed: '',
columnWidth: 80
columnWidth: 100
}, },
], ],
columnItemList: [ columnItemList: [
@ -2573,7 +2735,7 @@
umId: '', umId: '',
umName: '', umName: '',
spec: '', spec: '',
active: '',
active: 'Y',
cinvSourceCode: '', cinvSourceCode: '',
sku: '', sku: '',
qtyBoxRoll: '', qtyBoxRoll: '',
@ -3367,16 +3529,12 @@
if (data.baseListData.length > 0) { if (data.baseListData.length > 0) {
this.modalData.umId = data.baseListData[0].UMID this.modalData.umId = data.baseListData[0].UMID
this.modalData.umName = data.baseListData[0].UMName this.modalData.umName = data.baseListData[0].UMName
} else {
this.$message.warning('该计量单位不存在!')
this.modalData.umName = ''
return
} }
} else {
this.$message.warning(data.msg)
this.modalData.umName = ''
} }
}) })
} }
this.modalData.umName = ''
}, },
// 1 // 1
@ -3391,16 +3549,12 @@
if (data.baseListData.length > 0) { if (data.baseListData.length > 0) {
this.modalData.otherGroup1 = data.baseListData[0].product_group_id this.modalData.otherGroup1 = data.baseListData[0].product_group_id
this.modalData.otherGroupName1 = data.baseListData[0].product_group_name this.modalData.otherGroupName1 = data.baseListData[0].product_group_name
} else {
this.$message.warning('该商品组1不存在!')
this.modalData.otherGroupName1 = ''
return
} }
} else {
this.$message.warning(data.msg)
this.modalData.otherGroupName1 = ''
} }
}) })
} }
this.modalData.otherGroupName1 = ''
}, },
// 2 // 2
@ -3415,16 +3569,12 @@
if (data.baseListData.length > 0) { if (data.baseListData.length > 0) {
this.modalData.otherGroup2 = data.baseListData[0].product_group_id this.modalData.otherGroup2 = data.baseListData[0].product_group_id
this.modalData.otherGroupName2 = data.baseListData[0].product_group_name this.modalData.otherGroupName2 = data.baseListData[0].product_group_name
} else {
this.$message.warning('该商品组2不存在!')
this.modalData.otherGroupName2 = ''
return
} }
} else {
this.$message.warning(data.msg)
this.modalData.otherGroupName2 = ''
} }
}) })
} }
this.modalData.otherGroupName2 = ''
}, },
// 3 // 3
@ -3439,16 +3589,12 @@
if (data.baseListData.length > 0) { if (data.baseListData.length > 0) {
this.modalData.otherGroup3 = data.baseListData[0].product_group_id this.modalData.otherGroup3 = data.baseListData[0].product_group_id
this.modalData.otherGroupName3 = data.baseListData[0].product_group_name this.modalData.otherGroupName3 = data.baseListData[0].product_group_name
} else {
this.$message.warning('该商品组3不存在!')
this.modalData.otherGroupName3 = ''
return
} }
} else {
this.$message.warning(data.msg)
this.modalData.otherGroupName3 = ''
} }
}) })
} }
this.modalData.otherGroupName3 = ''
}, },
// //
@ -3463,16 +3609,12 @@
if (data.baseListData.length > 0) { if (data.baseListData.length > 0) {
this.modalData.defaultWarehouseID = data.baseListData[0].warehouse_id this.modalData.defaultWarehouseID = data.baseListData[0].warehouse_id
this.modalData.defaultWarehouseName = data.baseListData[0].warehouse_name this.modalData.defaultWarehouseName = data.baseListData[0].warehouse_name
} else {
this.$message.warning('该默认仓库不存在!')
this.modalData.defaultWarehouseName = ''
return
} }
} else {
this.$message.warning(data.msg)
this.modalData.defaultWarehouseName = ''
} }
}) })
} }
this.modalData.defaultWarehouseName = ''
}, },
// //
@ -3487,16 +3629,12 @@
if (data.baseListData.length > 0) { if (data.baseListData.length > 0) {
this.modalData.familyID = data.baseListData[0].family_id this.modalData.familyID = data.baseListData[0].family_id
this.modalData.familyName = data.baseListData[0].family_name this.modalData.familyName = data.baseListData[0].family_name
} else {
this.$message.warning('该物料分类不存在!')
this.modalData.familyName = ''
return
} }
} else {
this.$message.warning(data.msg)
this.modalData.familyName = ''
} }
}) })
} }
this.modalData.familyName = ''
}, },
// //
@ -3511,16 +3649,12 @@
if (data.baseListData.length > 0) { if (data.baseListData.length > 0) {
this.modalData.codeNo = data.baseListData[0].code_no this.modalData.codeNo = data.baseListData[0].code_no
this.modalData.codeDesc = data.baseListData[0].code_desc this.modalData.codeDesc = data.baseListData[0].code_desc
} else {
this.$message.warning('该属性模板不存在!')
this.modalData.codeDesc = ''
return
} }
} else {
this.$message.warning(data.msg)
this.modalData.codeDesc = ''
} }
}) })
} }
this.modalData.codeDesc = ''
}, },
// ======== chooseList ======== // ======== chooseList ========
@ -3543,7 +3677,7 @@
} }
if (val === 510) { if (val === 510) {
strVal = this.modalData.umId strVal = this.modalData.umId
conSql = ''
conSql = " and site = '" + this.modalData.bu.split('_')[0] + "'"
} else if (val === 211) { } else if (val === 211) {
strVal = this.modalData.otherGroup1 strVal = this.modalData.otherGroup1
} else if (val === 212) { } else if (val === 212) {

89
src/views/modules/part/routingManagement.vue

@ -2094,13 +2094,12 @@ export default {
if (data && data.code === 0) { if (data && data.code === 0) {
if (data.page.list.length === 1) { if (data.page.list.length === 1) {
this.copyRoutingData.partDesc = data.page.list[0].partDesc this.copyRoutingData.partDesc = data.page.list[0].partDesc
} else {
this.$message.warning('该物料不存在!')
this.copyRoutingData.partDesc = ''
return
} }
} }
}) })
} }
this.copyRoutingData.partDesc = ''
} else { } else {
if (this.copyAlternativeData.partNo != null && this.copyAlternativeData.partNo !== '') { if (this.copyAlternativeData.partNo != null && this.copyAlternativeData.partNo !== '') {
this.copyPartData.limit = this.pageSize4 this.copyPartData.limit = this.pageSize4
@ -2110,13 +2109,12 @@ export default {
if (data && data.code === 0) { if (data && data.code === 0) {
if (data.page.list.length === 1) { if (data.page.list.length === 1) {
this.copyAlternativeData.partDesc = data.page.list[0].partDesc this.copyAlternativeData.partDesc = data.page.list[0].partDesc
} else {
this.$message.warning('该物料不存在!')
this.copyAlternativeData.partDesc = ''
return
} }
} }
}) })
} }
this.copyAlternativeData.partDesc = ''
} }
}, },
@ -2706,31 +2704,38 @@ export default {
// //
partNoBlur () { partNoBlur () {
this.partData.limit = this.pageSize2
this.partData.page = this.pageIndex2
this.partData.partNo = this.modalData.partNo
queryPartList(this.partData).then(({data}) => {
if (data && data.code === 0) {
if (data.page.list.length === 1) {
this.modalData.partDesc = data.page.list[0].partDesc
this.modalData.printUnit = data.page.list[0].printUnit
this.modalData.printUnitName = data.page.list[0].printUnitName
// routing
getRottingRevision(this.modalData).then(({data}) => {
if (data && data.code === 0) {
this.modalData.routingRevision = data.routingRevision
} else {
this.modalData.routingRevision = ''
}
})
} else {
this.modalData.partDesc = ''
this.modalData.printUnit = ''
this.modalData.printUnitName = ''
this.modalData.routingRevision = ''
if (this.modalData.partNo != null && this.modalData.partNo !== '') {
this.partData.limit = this.pageSize2
this.partData.page = this.pageIndex2
this.partData.partNo = this.modalData.partNo
queryPartList(this.partData).then(({data}) => {
if (data && data.code === 0) {
if (data.page.list.length === 1) {
this.modalData.partDesc = data.page.list[0].partDesc
this.modalData.printUnit = data.page.list[0].printUnit
this.modalData.printUnitName = data.page.list[0].printUnitName
// routing
getRottingRevision(this.modalData).then(({data}) => {
if (data && data.code === 0) {
this.modalData.routingRevision = data.routingRevision
} else {
this.modalData.routingRevision = ''
}
})
} else {
this.modalData.partDesc = ''
this.modalData.printUnit = ''
this.modalData.printUnitName = ''
this.modalData.routingRevision = ''
}
} }
}
})
})
} else {
this.modalData.partDesc = ''
this.modalData.printUnit = ''
this.modalData.printUnitName = ''
this.modalData.routingRevision = ''
}
}, },
/** /**
@ -3455,16 +3460,12 @@ export default {
if (data.baseListData.length > 0) { if (data.baseListData.length > 0) {
this.componentData.workCenterNo = data.baseListData[0].work_center_no this.componentData.workCenterNo = data.baseListData[0].work_center_no
this.componentData.workCenterDesc = data.baseListData[0].work_center_desc this.componentData.workCenterDesc = data.baseListData[0].work_center_desc
} else {
this.$message.warning('该加工中心不存在!')
this.componentData.workCenterDesc = ''
return
} }
} else {
this.$message.warning(data.msg)
this.componentData.workCenterDesc = ''
} }
}) })
} }
this.componentData.workCenterDesc = ''
}, },
// //
@ -3479,16 +3480,12 @@ export default {
if (data.baseListData.length > 0) { if (data.baseListData.length > 0) {
this.componentData.setupLaborClassNo = data.baseListData[0].class_no this.componentData.setupLaborClassNo = data.baseListData[0].class_no
this.componentData.setupLaborClassDesc = data.baseListData[0].class_desc this.componentData.setupLaborClassDesc = data.baseListData[0].class_desc
} else {
this.$message.warning('该人员等级不存在!')
this.componentData.setupLaborClassDesc = ''
return
} }
} else {
this.$message.warning(data.msg)
this.componentData.setupLaborClassDesc = ''
} }
}) })
} }
this.componentData.setupLaborClassDesc = ''
}, },
// //
@ -3503,16 +3500,12 @@ export default {
if (data.baseListData.length > 0) { if (data.baseListData.length > 0) {
this.componentData.laborClassNo = data.baseListData[0].class_no this.componentData.laborClassNo = data.baseListData[0].class_no
this.componentData.laborClassDesc = data.baseListData[0].class_desc this.componentData.laborClassDesc = data.baseListData[0].class_desc
} else {
this.$message.warning('该人员等级不存在!')
this.componentData.laborClassDesc = ''
return
} }
} else {
this.$message.warning(data.msg)
this.componentData.laborClassDesc = ''
} }
}) })
} }
this.componentData.laborClassDesc = ''
}, },
// ======== ======== // ======== ========

Loading…
Cancel
Save