|
|
@ -2,10 +2,10 @@ |
|
|
<div> |
|
|
<div> |
|
|
<div style="margin-top: 5px"> |
|
|
<div style="margin-top: 5px"> |
|
|
<template > |
|
|
<template > |
|
|
<el-button type="primary" @click="clickSaveBtn" v-if="orderNo" :disabled="disabled">新增</el-button> |
|
|
|
|
|
|
|
|
<el-button type="primary" @click="clickSaveBtn" v-if="codeNo" :disabled="disabled">新增</el-button> |
|
|
</template> |
|
|
</template> |
|
|
<template > |
|
|
<template > |
|
|
<el-button type="primary" :loading="loading" v-if="orderNo" :disabled="disabled" @click="clickSave">{{ attributeDialog?'编辑':'保存' }}</el-button> |
|
|
|
|
|
|
|
|
<el-button type="primary" :loading="loading" v-if="codeNo" :disabled="disabled" @click="clickSave">{{ attributeDialog?'编辑':'保存' }}</el-button> |
|
|
</template> |
|
|
</template> |
|
|
</div> |
|
|
</div> |
|
|
<div class="rq " v-if="attributeDialog"> |
|
|
<div class="rq " v-if="attributeDialog"> |
|
|
@ -118,6 +118,9 @@ |
|
|
codeNo:{ |
|
|
codeNo:{ |
|
|
type:String, |
|
|
type:String, |
|
|
}, |
|
|
}, |
|
|
|
|
|
brand:{ |
|
|
|
|
|
type:String, |
|
|
|
|
|
}, |
|
|
functionType:{ |
|
|
functionType:{ |
|
|
type:String, |
|
|
type:String, |
|
|
}, |
|
|
}, |
|
|
@ -285,6 +288,11 @@ |
|
|
this.getProperties(); |
|
|
this.getProperties(); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
brand(newValue,oldValue){ |
|
|
|
|
|
if (this.orderNo){ |
|
|
|
|
|
this.getProperties(); |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
methods:{ |
|
|
methods:{ |
|
|
|
|
|
|
|
|
@ -294,6 +302,7 @@ |
|
|
buNo:this.buNo, |
|
|
buNo:this.buNo, |
|
|
partNo: this.orderNo, |
|
|
partNo: this.orderNo, |
|
|
codeNo: this.codeNo, |
|
|
codeNo: this.codeNo, |
|
|
|
|
|
brand: this.brand, |
|
|
recordType: this.functionType, |
|
|
recordType: this.functionType, |
|
|
} |
|
|
} |
|
|
getPropertiesListByPartAndCodeNo(params).then(({data})=>{ |
|
|
getPropertiesListByPartAndCodeNo(params).then(({data})=>{ |
|
|
@ -351,8 +360,10 @@ |
|
|
let i = 0; |
|
|
let i = 0; |
|
|
let arr = params.searchTableList.map(item=>{ |
|
|
let arr = params.searchTableList.map(item=>{ |
|
|
item.partNo = this.orderNo; |
|
|
item.partNo = this.orderNo; |
|
|
item.site = this.$store.state.user.site; |
|
|
|
|
|
|
|
|
item.site = this.site; |
|
|
|
|
|
item.buNo = this.buNo; |
|
|
item.codeNo = this.codeNo; |
|
|
item.codeNo = this.codeNo; |
|
|
|
|
|
item.brand = this.brand; |
|
|
item.recordType = this.functionType; |
|
|
item.recordType = this.functionType; |
|
|
return item |
|
|
return item |
|
|
}) |
|
|
}) |
|
|
@ -373,6 +384,12 @@ |
|
|
}, |
|
|
}, |
|
|
removeTestPropertiesItem(params){ |
|
|
removeTestPropertiesItem(params){ |
|
|
for (let i = 0; i <params.dataTableList.length ; i++) { |
|
|
for (let i = 0; i <params.dataTableList.length ; i++) { |
|
|
|
|
|
params.dataTableList[i].partNo = this.orderNo |
|
|
|
|
|
params.dataTableList[i].site = this.site |
|
|
|
|
|
params.dataTableList[i].buNo = this.buNo |
|
|
|
|
|
params.dataTableList[i].codeNo = this.codeNo |
|
|
|
|
|
params.dataTableList[i].brand = this.brand |
|
|
|
|
|
params.dataTableList[i].recordType = this.functionType |
|
|
params.dataTableList[i].propertiesItemNo= params.dataTableList[i].itemNo |
|
|
params.dataTableList[i].propertiesItemNo= params.dataTableList[i].itemNo |
|
|
params.dataTableList[i].itemNo=999 |
|
|
params.dataTableList[i].itemNo=999 |
|
|
} |
|
|
} |
|
|
@ -401,6 +418,7 @@ |
|
|
list :this.dataList, |
|
|
list :this.dataList, |
|
|
codeNo: this.codeNo, |
|
|
codeNo: this.codeNo, |
|
|
buNo:this.buNo, |
|
|
buNo:this.buNo, |
|
|
|
|
|
brand:this.brand, |
|
|
} |
|
|
} |
|
|
searchPropertiesItemList(inData).then(({data}) => { |
|
|
searchPropertiesItemList(inData).then(({data}) => { |
|
|
if (data && data.code === 0){ |
|
|
if (data && data.code === 0){ |
|
|
|