Browse Source

2024-11-21

master
qiezi 1 year ago
parent
commit
ca58b452c9
  1. 2
      src/api/part/partInformation.js
  2. 2
      src/api/project/project.js
  3. 2
      src/api/proofing/proofingInformation.js
  4. 2
      src/api/quotation/quotationInformation.js
  5. 2
      src/api/test/testInformation.js
  6. 49
      src/views/modules/proofing/requestForProofing.vue
  7. 49
      src/views/modules/quotation/requestForQuote.vue
  8. 96
      src/views/modules/quotation/sellForQuotation/quoteDetail.vue
  9. 35
      src/views/modules/test/requestForTest.vue
  10. 110
      src/views/modules/test/testSoBom/testTable.vue

2
src/api/part/partInformation.js

@ -94,7 +94,7 @@ export const deleteAgent = data => createAPI(`/plm/partInformation/deleteAgent`,
* @param data
* @returns {*}
*/
export const searchPartList = (data) => createAPI(`/plm/partInformation/searchPartList`,'get',data);
export const searchPartList = (data) => createAPI(`/plm/partInformation/searchPartList/${data.no}/${data.size}`,'post',data);
export const searchPart = (data) => createAPI(`/plm/partInformation/searchPart`,'get',data);

2
src/api/project/project.js

@ -30,7 +30,7 @@ export const getContactChooseData2= data => createAPI(`/project/getContactChoose
export const saveProjectContactList= data => createAPI(`/project/saveProjectContactList`,'post',data)
export const deleteProjectInfo= data => createAPI(`/project/deleteProjectInfo`,'post',data)
export const getProjectInfoPartList= data => createAPI(`/project/getProjectInfoPartList`,'post',data)
export const getProjectPartList= data => createAPI(`/project/getProjectPartList`,'post',data)
export const getProjectPartList= data => createAPI(`/project/getProjectPartList/${data.no}/${data.size}`,'post',data)
export const getProjectPart= data => createAPI(`/project/getProjectPart`,'get',data)
export const saveProjectPart= data => createAPI(`/project/saveProjectPart`,'post',data)
export const deleteProjectPartWithId= data => createAPI(`/project/deleteProjectPartWithId`,'post',data)

2
src/api/proofing/proofingInformation.js

@ -30,7 +30,7 @@ export const proofingInformationDelete = data => createAPI(`/plm/proofingInforma
* @param data
* @returns {*}
*/
export const getProjectPartList = data => createAPI(`/plm/proofingInformation/getProjectPartList`,'post',data)
export const getProjectPartList = data => createAPI(`/plm/proofingInformation/getProjectPartList/${data.no}/${data.size}`,'post',data)
/**
* 获取打样结果对象
* @param data

2
src/api/quotation/quotationInformation.js

@ -78,7 +78,7 @@ export const saveCustomerResponse = data => createAPI(`/plm/quotationInformation
* @param data
* @returns {*}
*/
export const getProjectPartList = data => createAPI(`/plm/quotationInformation/getProjectPartList`,'post',data)
export const getProjectPartList = data => createAPI(`/plm/quotationInformation/getProjectPartList/${data.no}/${data.size}`,'post',data)
/**
* 获取项目列表
* @param data

2
src/api/test/testInformation.js

@ -30,7 +30,7 @@ export const testInformationDelete = data => createAPI(`/plm/testInformation/tes
* @param data
* @returns {*}
*/
export const getProjectPartList = data => createAPI(`/plm/testInformation/getProjectPartList`,'post',data)
export const getProjectPartList = data => createAPI(`/plm/testInformation/getProjectPartList/${data.no}/${data.size}`,'post',data)
/**
* 获取测试结果对象
* @param data

49
src/views/modules/proofing/requestForProofing.vue

@ -301,7 +301,7 @@
<el-input v-model="projectPartData.customerPartNo" clearable style="width: 120px"></el-input>
</el-form-item>
<el-form-item label=" " v-if="modalData.projectId">
<el-button type="primary" @click="getProjectPartList()">查询</el-button>
<el-button type="primary" @click="getProjectPartList">查询</el-button>
</el-form-item>
</el-form>
<el-table
@ -312,7 +312,7 @@
@selection-change="selectionProjectPart"
:row-key="getRowKeys"
border
v-loading="dataListLoading"
v-loading="queryLoading"
style="width: 100%;">
<el-table-column
type="selection"
@ -344,6 +344,15 @@
</el-table-column>
</el-table>
</div>
<el-pagination style="margin-top: 0"
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page="no"
:page-sizes="[20, 50, 100, 200, 500]"
:page-size="size"
:total="total"
layout="total, sizes, prev, pager, next, jumper">
</el-pagination>
<el-footer style="height:30px;text-align:center;margin-top: 8px">
<el-button type="primary" @click="saveData()">保存</el-button>
<el-button type="primary" @click="modalFlag = false">关闭</el-button>
@ -881,6 +890,11 @@ export default {
this.detailVisible = false
this.projectPartData.finalPartNo = ''
this.projectPartData.customerPartNo = ''
this.no = 1
this.size = 20
this.total = 0
this.projectPartList = []
this.projectPartListSelections = []
}
},
'modalData.tracker'(newVal,oldVal){
@ -2102,6 +2116,12 @@ export default {
rejectVisible: false,
rejectOpinion: '',
detailVisible:false,
no:1,
size:20,
total:0,
queryLoading:false,
}
},
mounted() {
@ -2500,9 +2520,16 @@ export default {
let projectPartList = this.modalData.testPartNo.split(';')
this.projectPartData.projectId = this.modalData.projectId;
//
getProjectPartList(this.projectPartData).then(({data}) => {
let params = {
...this.projectPartData,
no:this.no,
size:this.size,
}
this.queryLoading = true
getProjectPartList(params).then(({data}) => {
if (data && data.code === 0) {
this.projectPartList = data.rows
this.total = data.total
this.projectPartList.forEach(val => {
//
if (projectPartList.includes(val.testPartNo)) {
@ -2511,10 +2538,12 @@ export default {
})
// this.projectPartModelFlag = true
} else {
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
})
this.$message.warning(data.msg)
}
this.queryLoading = false
}).catch(error => {
this.queryLoading = false
this.$message.error(error)
})
},
/**
@ -3650,6 +3679,14 @@ export default {
},
clearModalData(filed){
this.modalData[filed] = ''
},
handleSizeChange(val){
this.size = val
this.getProjectPartList();
},
handleCurrentChange(val){
this.no = val
this.getProjectPartList();
}
}
}

49
src/views/modules/quotation/requestForQuote.vue

@ -327,7 +327,7 @@
</el-form-item>
</el-form>
<el-table
:height="223"
:height="230"
:data="projectPartList"
ref="projectPartTable"
@row-click="projectPartClickRow"
@ -335,12 +335,13 @@
:row-key="getRowKeys"
:row-style="partRowStyle"
border
v-loading="dataListLoading"
v-loading="queryLoading"
style="width: 100%;">
<el-table-column
type="selection"
header-align="center"
align="center"
:reserve-selection="true"
:selectable="checkSelectable"
width="50" class-name="disabledCheckbox">
</el-table-column>
@ -366,6 +367,16 @@
</el-table-column>
</el-table>
</div>
<el-pagination style="margin-top: 0"
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page="no"
:page-sizes="[20, 50, 100, 200, 500]"
:page-size="size"
:total="total"
layout="total, sizes, prev, pager, next, jumper">
</el-pagination>
</el-tab-pane>
</el-tabs>
</el-form>
@ -893,6 +904,11 @@ export default {
this.detailVisible = false
this.projectPartData.customerPartNo = ''
this.projectPartData.finalPartNo = ''
this.no = 1
this.size = 20
this.total = 0
this.projectPartList = []
this.projectPartListSelections = []
}
},
},
@ -2027,6 +2043,11 @@ export default {
rejectVisible:false,
rejectOpinion:'',
detailVisible:false,
no:1,
size:20,
total:0,
queryLoading:false,
}
},
mounted() {
@ -2407,9 +2428,16 @@ export default {
//
this.projectPartData.projectId = this.modalData.projectId;
//
getProjectPartList(this.projectPartData).then(({data}) => {
let params = {
...this.projectPartData,
no:this.no,
size:this.size,
}
this.queryLoading = true
getProjectPartList(params).then(({data}) => {
if (data && data.code === 0) {
this.projectPartList = data.rows
this.total = data.total
this.projectPartList.forEach(val => {
//
if (projectPartList.includes(val.testPartNo)) {
@ -2417,10 +2445,11 @@ export default {
}
})
} else {
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
})
this.$message.error(data.msg)
}
this.queryLoading = false
}).catch(()=>{
this.queryLoading = false
})
},
/**
@ -3477,6 +3506,14 @@ export default {
clearModalData(field){
this.modalData[field] = ''
},
handleSizeChange(val){
this.size = val
this.getProjectPartList();
},
handleCurrentChange(val){
this.no = val
this.getProjectPartList();
}
}
}
</script>

96
src/views/modules/quotation/sellForQuotation/quoteDetail.vue

@ -36,32 +36,14 @@ export default {
update(){
// bom
this.searchQuoteRoutingHeader();
},
projectPartDialogFlag(newVal,oldVal){
if (newVal === false){
this.closeProjectPartDialog();
}
}
},
data(){
const validateProductNo = (rule, value, callback) =>{
if (this.quotationDetailFlag !== true && this.quotationLeadIntoDetailFlag !== true){
return;
}
if (value === '' || value === null || value === undefined){
callback(new Error(' '))
return
}
let params = {...this.projectPartData}
params.testPartNo = value
getProjectPart(params).then(({data})=>{
if (data && data.rows.length >= 1){
callback()
}else {
this.projectPartData.testPartNo = undefined;
this.$message.error("产品编码不存在!")
callback(new Error(" "))
}
}).catch((error)=>{
this.projectPartData.testPartNo = undefined
callback(new Error(' '))
})
};
return{
allSearchFlagBom:false,
allSearchFlagRouting:false,
@ -550,7 +532,7 @@ export default {
tableName: '项目物料表',
columnProp: 'testPartNo',
headerAlign: 'center',
align: 'center',
align: 'left',
columnLabel: '物料编码',
columnHidden: false,
columnImage: false,
@ -568,7 +550,7 @@ export default {
tableName: '项目物料表',
columnProp: 'partDesc',
headerAlign: 'center',
align: 'center',
align: 'left',
columnLabel: '物料名称',
columnHidden: false,
columnImage: false,
@ -586,7 +568,7 @@ export default {
tableName: '项目物料表',
columnProp: 'finalPartNo',
headerAlign: 'center',
align: 'center',
align: 'left',
columnLabel: 'IFS物料编码',
columnHidden: false,
columnImage: false,
@ -604,7 +586,7 @@ export default {
tableName: '项目物料表',
columnProp: 'customerPartNo',
headerAlign: 'center',
align: 'center',
align: 'left',
columnLabel: '客户物料编码',
columnHidden: false,
columnImage: false,
@ -622,7 +604,7 @@ export default {
tableName: '项目物料表',
columnProp: 'type',
headerAlign: 'center',
align: 'center',
align: 'left',
columnLabel: '制造类型',
columnHidden: false,
columnImage: false,
@ -640,7 +622,7 @@ export default {
tableName: '项目物料表',
columnProp: 'umId',
headerAlign: 'center',
align: 'center',
align: 'left',
columnLabel: '单位',
columnHidden: false,
columnImage: false,
@ -694,7 +676,7 @@ export default {
],
//
quotationDetailRules: {
productNo: [{required: true,validator:validateProductNo,trigger: 'change'}],
productNo: [{required: true,trigger: ['change','blur']}],
productDesc: [{required: true, message: ' ', trigger: ['change','blur']}],
quotationDetailStatus: [{required: true, message: ' ', trigger: 'change'}],
internalInquiryNo: [{required: true, message: ' ', trigger: ['change','blur']}],
@ -702,6 +684,12 @@ export default {
quotationDetailQuantity: [{required: true, message: ' ', trigger: ['change','blur']}],
},
activeName:'bom',
pageNo:1,
pageSize:20,
pageTotal:0,
queryLoading:false,
}
},
methods:{
@ -834,23 +822,34 @@ export default {
closeProjectPartDialog(){
this.projectPartData = {
site:this.$store.state.user.site,
testPartNo:undefined,//
partDesc:undefined,//
finalPartNo:undefined,//
customerPartNo:undefined,//
testPartNo:'',//
partDesc:'',//
finalPartNo:'',//
customerPartNo:'',//
}
this.projectPartTable = [];
this.queryLoading = false;
},
openProjectPartDialog(){
this.quotationLeadIntoDetailFlag = true;
this.getProjectPartList();
},
getProjectPartList(){
let params = {...this.projectPartData}
let params = {
...this.projectPartData,
no:this.pageNo,
size:this.pageSize,
}
params.projectId = this.header.projectId
this.queryLoading = true;
getProjectPartList(params).then(({data})=>{
if (data && data.code === 0){
this.projectPartTable = data.rows;
this.pageTotal = data.total;
}
this.queryLoading = false;
}).catch((error)=>{
this.queryLoading = false;
})
},
blurProjectHandle(){
@ -1093,6 +1092,14 @@ export default {
}
})
}
},
handleSizeChange(val){
this.pageSize = val;
this.getProjectPartList();
},
handleCurrentChange(val){
this.pageNo = val;
this.getProjectPartList();
}
},
@ -1102,10 +1109,9 @@ export default {
<template>
<div>
<div style="margin-bottom: 10px;padding-left: 10px">
<el-button type="primary" @click="quotationLeadIntoDetailFlag = true">新增</el-button>
<el-button type="primary" @click="openProjectPartDialog">新增</el-button>
</div>
<el-table v-loading="initQuotationDetailLoading" element-loading-text = "数据正在加载中"
element-loading-spinner = "el-icon-loading" :data="tableData" :height="height" border>
<el-table v-loading="initQuotationDetailLoading" :data="tableData" :height="height" border>
<el-table-column
label="操作"
fixed
@ -1266,8 +1272,7 @@ export default {
</div>
</el-dialog>
<el-dialog v-drag title="产品列表" @close="closeProjectPartDialog" @open="openProjectPartDialog"
:visible.sync="projectPartDialogFlag">
<el-dialog v-drag title="物料信息" :visible.sync="projectPartDialogFlag">
<!--搜索条件-->
<el-form :model="projectPartData" ref="projectPartDataForm" :inline="true" label-position="top">
<el-form-item label="物料编码" prop="testPartNo">
@ -1286,7 +1291,7 @@ export default {
<el-button @click="getProjectPartList" type="primary"> </el-button>
</el-form-item>
</el-form>
<el-table height="300px" stripe border @row-dblclick="dblClickProjectPartTable" :data="projectPartTable" ref="projectPartDataTable" :style="{marginTop:'10px'}">
<el-table height="300px" v-loading="queryLoading" stripe border @row-dblclick="dblClickProjectPartTable" :data="projectPartTable" ref="projectPartDataTable" :style="{marginTop:'10px'}">
<el-table-column
v-for="(item,index) in projectPartDetailList" :key="index"
:sortable="item.columnSortable"
@ -1303,6 +1308,15 @@ export default {
</template>
</el-table-column>
</el-table>
<el-pagination style="margin-top: 0"
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page="pageNo"
:page-sizes="[20, 50, 100, 200, 500]"
:page-size="pageSize"
:total="pageTotal"
layout="total,sizes, prev, pager, next, jumper">
</el-pagination>
</el-dialog>
</div>
</template>

35
src/views/modules/test/requestForTest.vue

@ -264,7 +264,7 @@
<span v-if="(testInformationFlag('engineer') === 'N' && modalData.flag === '2') || detailFlag" slot="label">TP工程师</span>
<span v-else slot="label" @click="getBaseList(2042)"><a herf="#">TP工程师</a></span>
<el-input :disabled="(testInformationFlag('engineer') === 'N' && modalData.flag === '2') || detailFlag" v-model="modalData.engineerName" readonly>
<span slot="suffix" v-show="modalData.engineerName&& !detailFlag" @click="clearModalData('engineer')"><i class="el-icon-circle-close" style="margin-left: 5px;cursor: pointer;"></i></span>
<span slot="suffix" v-show="modalData.engineerName && !detailFlag" @click="clearModalData('engineer')"><i class="el-icon-circle-close" style="margin-left: 5px;cursor: pointer;"></i></span>
</el-input>
</el-form-item>
</el-col>
@ -407,6 +407,15 @@
</template>
</el-table-column>
</el-table>
<el-pagination style="margin-top: 0"
@size-change="partPageSizeChange"
@current-change="partPageCurrentChange"
:current-page="partPageNo"
:page-sizes="[20, 50, 100, 200, 500]"
:page-size="partPageSize"
:total="partPageTotal"
layout="total, sizes, prev, pager, next, jumper">
</el-pagination>
</el-dialog>
<!-- 录入测试结果模态框 -->
<el-dialog title="录入测试结果" :close-on-click-modal="false" v-drag :visible.sync="enterResultModalFlag" width="785px">
@ -959,6 +968,8 @@
if (newVal === false){
this.projectPartData.finalPartNo = ''
this.projectPartData.customerPartNo = ''
this.partPageNo = 1
this.partPageSize = 20
}
}
},
@ -2100,6 +2111,10 @@
],
rejectVisible:false,
rejectOpinion:"",
partPageNo:1,
partPageSize:20,
partPageTotal:0,
}
},
mounted () {
@ -2477,10 +2492,16 @@
//
let projectPartList = this.modalData.testPartNo.split(';')
this.projectPartData.projectId = this.modalData.projectId;
let params = {
...this.projectPartData,
no:this.partPageNo,
size:this.partPageSize,
}
//
getProjectPartList(this.projectPartData).then(({data}) => {
getProjectPartList(params).then(({data}) => {
if (data && data.code === 0) {
this.projectPartList = data.rows
this.partPageTotal = data.total;
this.projectPartList.forEach (val => {
//
if (projectPartList.includes(val.testPartNo)) {
@ -3508,7 +3529,15 @@
},
clearModalData(field){
this.modalData[field] = ''
}
},
partPageSizeChange(val){
this.partPageSize = val
this.getProjectPartList();
},
partPageCurrentChange(val){
this.partPageNo = val
this.getProjectPartList();
},
},
}
</script>

110
src/views/modules/test/testSoBom/testTable.vue

@ -100,7 +100,7 @@ export default {
functionId: 102001,
serialNumber: '102001Table3ItemNo',
tableId: '102001Table3',
tableName: '测试产品结构',
tableName: '测试物料结构',
columnProp: 'itemNo',
headerAlign: 'center',
align: 'center',
@ -117,7 +117,7 @@ export default {
functionId: 102001,
serialNumber: '102001Table3ComponentPartNo',
tableId: '102001Table3',
tableName: '测试产品结构',
tableName: '测试物料结构',
columnProp: 'componentPartNo',
headerAlign: 'center',
align: 'left',
@ -134,7 +134,7 @@ export default {
functionId: 102001,
serialNumber: '102001Table3PartDesc',
tableId: '102001Table3',
tableName: '测试产品结构',
tableName: '测试物料结构',
columnProp: 'partDesc',
headerAlign: 'center',
align: 'left',
@ -151,7 +151,7 @@ export default {
functionId: 102001,
serialNumber: '102001Table3Spec',
tableId: '102001Table3',
tableName: '测试产品结构',
tableName: '测试物料结构',
columnProp: 'spec',
headerAlign: 'center',
align: 'left',
@ -169,7 +169,7 @@ export default {
// functionId: 102001,
// serialNumber: '102001Table3AssemblyQty',
// tableId: '102001Table3',
// tableName: '',
// tableName: '',
// columnProp: 'assemblyQty',
// headerAlign: 'center',
// align: 'left',
@ -187,7 +187,7 @@ export default {
// functionId: 102001,
// serialNumber: '102001Table3FixedScrapQty',
// tableId: '102001Table3',
// tableName: '',
// tableName: '',
// columnProp: 'fixedScrapQty',
// headerAlign: 'center',
// align: 'left',
@ -205,7 +205,7 @@ export default {
functionId: 102001,
serialNumber: '102001Table3UmName',
tableId: '102001Table3',
tableName: '测试产品结构',
tableName: '测试物料结构',
columnProp: 'umId',
headerAlign: 'center',
align: 'left',
@ -223,7 +223,7 @@ export default {
// functionId: 102001,
// serialNumber: '102001Table3ScrapFactor',
// tableId: '102001Table3',
// tableName: '',
// tableName: '',
// columnProp: 'scrapFactor',
// headerAlign: 'center',
// align: 'left',
@ -241,7 +241,7 @@ export default {
functionId: 102001,
serialNumber: '102001Table3RequiredQty',
tableId: '102001Table3',
tableName: '测试产品结构',
tableName: '测试物料结构',
columnProp: 'requiredQty',
headerAlign: 'center',
align: 'right',
@ -259,7 +259,7 @@ export default {
// functionId: 102001,
// serialNumber: '102001Table3ReserveQty',
// tableId: '102001Table3',
// tableName: '',
// tableName: '',
// columnProp: 'reserveQty',
// headerAlign: 'center',
// align: 'left',
@ -277,7 +277,7 @@ export default {
// functionId: 102001,
// serialNumber: '102001Table3IssuedDate',
// tableId: '102001Table3',
// tableName: '',
// tableName: '',
// columnProp: 'issuedDate',
// headerAlign: 'center',
// align: 'left',
@ -295,7 +295,7 @@ export default {
functionId: 102001,
serialNumber: '102001Table3UnitCost',
tableId: '102001Table3',
tableName: '测试产品结构',
tableName: '测试物料结构',
columnProp: 'unitCost',
headerAlign: 'center',
align: 'right',
@ -313,7 +313,7 @@ export default {
functionId: 102001,
serialNumber: '102001Table3TotalCost',
tableId: '102001Table3',
tableName: '测试产品结构',
tableName: '测试物料结构',
columnProp: 'totalCost',
headerAlign: 'center',
align: 'right',
@ -331,7 +331,7 @@ export default {
functionId: 102001,
serialNumber: '102001Table3Remark',
tableId: '102001Table3',
tableName: '测试产品结构',
tableName: '测试物料结构',
columnProp: 'remark',
headerAlign: 'center',
align: 'left',
@ -349,7 +349,7 @@ export default {
// functionId: 102001,
// serialNumber: '102001Table3rmTypeDb',
// tableId: '102001Table3',
// tableName: '',
// tableName: '',
// columnProp: 'rmTypeDb',
// headerAlign: 'center',
// align: 'left',
@ -365,6 +365,11 @@ export default {
],
saveOrUpdateFlag:false,
umList:[],
no:1,
size:20,
total:0,
queryLoading:false
}
},
created() {
@ -382,14 +387,25 @@ export default {
this.partList = [];
},
openPartDialog(){
this.partDialogFlag = true;
this.partData.partNo = this.testSoBom.componentPartNo
this.initPartList();
},
initPartList(){
searchPartList(this.partData).then(({data})=>{
if (data && data.code === 200) {
let params = {
...this.partData,
no:this.no,
size:this.size,
}
this.queryLoading = true
searchPartList(params).then(({data})=>{
if (data && data.code === 0) {
this.partList = data.data;
this.total = data.total
}
this.queryLoading = false
}).catch(()=>{
this.queryLoading = false
})
},
dblClickPartTable(row){
@ -593,9 +609,28 @@ export default {
}).catch((error)=>{
this.$message.error(error)
})
},
handleSizeChange(val){
this.size = val
this.initPartList()
},
handleCurrentChange(val){
this.no = val
this.initPartList()
}
},
watch:{
partDialogFlag(newVal,oldVal){
if (newVal === false){
this.no = 1;
this.size = 20;
this.total = 0;
this.closePartDialog();
}
}
}
}
</script>
@ -639,19 +674,19 @@ export default {
</el-table-column>
</el-table>
<el-dialog :title="(testSoBom.itemNo?'编辑':'新增')+'-产品结构'" :close-on-click-modal="false" v-drag width="600px" append-to-body :visible.sync="saveOrUpdateFlag" @close="closeTestSoBom">
<el-dialog :title="(testSoBom.itemNo?'编辑':'新增')+'-物料结构'" :close-on-click-modal="false" v-drag width="600px" append-to-body :visible.sync="saveOrUpdateFlag" @close="closeTestSoBom">
<el-form ref="saveForm" label-position="top" :model="testSoBom" :rules="testSoBomRule">
<el-row :gutter="15">
<el-col :span="24">
<el-row :gutter="15">
<el-col :span="8">
<el-form-item label="产品编码" prop="componentPartNo">
<span slot="label" @click="partDialogFlag = true"><a>产品编码</a></span>
<el-form-item label="物料编码" prop="componentPartNo">
<span slot="label" @click="openPartDialog"><a>物料编码</a></span>
<el-input @blur="handleQueryPart" v-model="testSoBom.componentPartNo"></el-input>
</el-form-item>
</el-col>
<el-col :span="11">
<el-form-item label="产品名称" prop="partDesc">
<el-form-item label="物料名称" prop="partDesc">
<el-input disabled v-model="testSoBom.partDesc"></el-input>
</el-form-item>
</el-col>
@ -693,19 +728,17 @@ export default {
</span>
</el-dialog>
<el-dialog title="产品列表" width="35%" append-to-body :close-on-click-modal="false"
@close="closePartDialog" @open="openPartDialog" v-drag
:visible.sync="partDialogFlag">
<el-dialog title="物料信息" width="800px" append-to-body :close-on-click-modal="false" v-drag :visible.sync="partDialogFlag">
<!--搜索条件-->
<el-form :model="partData" ref="partDataForm" label-position="top">
<el-form :model="partData" ref="partDataForm" style="width: 600px;" label-position="top">
<el-row :gutter="10">
<el-col :span="6">
<el-form-item label="产品编号" prop="partNo">
<el-form-item label="物料编号" prop="partNo">
<el-input v-model="partData.partNo" clearable/>
</el-form-item>
</el-col>
<el-col :span="6" >
<el-form-item label="产品描述" prop="partDesc">
<el-form-item label="物料描述" prop="partDesc">
<el-input v-model="partData.partDesc" clearable/>
</el-form-item>
</el-col>
@ -717,12 +750,27 @@ export default {
</el-row>
</el-form>
<!--筛选的数据-->
<el-table :data="partList" ref="partDataTable" :style="{marginTop:'5px'}"
height="200px" stripe border width="30%"
<el-table :data="partList" v-loading="queryLoading" ref="partDataTable" :style="{marginTop:'5px'}"
height="200px" width="100%" stripe border
@row-dblclick="dblClickPartTable">
<el-table-column label="产品编号" prop="partNo"/>
<el-table-column label="产品描述" prop="partDesc"/>
<el-table-column label="物料编号" prop="partNo"/>
<el-table-column label="物料描述" prop="partDesc"/>
<el-table-column label="单位" prop="umId"/>
<el-table-column label="单价" prop="standardCost"/>
</el-table>
<!--分页-->
<div style="margin-top: 10px;text-align: right;">
<el-pagination style="margin-top: 0;"
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page="no"
:page-sizes="[20, 50, 100, 200, 500]"
:page-size="size"
:total="total"
layout="total, sizes, prev, pager, next, jumper">
</el-pagination>
</div>
</el-dialog>
</div>
</template>

Loading…
Cancel
Save