|
|
@@ -27,7 +27,7 @@
|
|
|
</el-col>
|
|
|
<el-col :span="12" >
|
|
|
<el-form-item label="订货账户:" prop="type">
|
|
|
- <el-select v-model="form.sa_accountclassid" placeholder="请选择订货账户" style="width: 100%">
|
|
|
+ <el-select v-model="form.sa_accountclassid" placeholder="请选择订货账户" style="width: 100%" @change="accountChange">
|
|
|
<el-option
|
|
|
v-for="item in accountList"
|
|
|
:key="item.sa_accountclassid"
|
|
|
@@ -250,7 +250,7 @@ export default {
|
|
|
this.form = Object.assign({},this.form,this.data)
|
|
|
this.form.cover = this.form.attinfos
|
|
|
console.log(this.form);
|
|
|
-
|
|
|
+
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs.upload.fileLinkList = this.form.attinfos
|
|
|
this.$refs.upload.fileList = this.form.attinfos
|
|
|
@@ -291,11 +291,22 @@ export default {
|
|
|
coverChange (data) {
|
|
|
this.form.cover = data
|
|
|
},
|
|
|
+ accountChange(val){
|
|
|
+ this.form.tradefield = []
|
|
|
+ this.getTradefield(val)
|
|
|
+ },
|
|
|
/* 领域 */
|
|
|
- async getTradefield () {
|
|
|
+ async getTradefield (val) {
|
|
|
const res = await this.$store.dispatch('optiontypeselect','tradefield')
|
|
|
- this.tradefieldList = res.data
|
|
|
- console.log(this.tradefieldList,'领域');
|
|
|
+ if (val === 42){
|
|
|
+ this.tradefieldList = res.data.filter(item=>item.value != '整装工程')
|
|
|
+ }else if (val === 44) {
|
|
|
+ this.tradefieldList = res.data.filter(item=>item.value == '整装工程')
|
|
|
+ }else {
|
|
|
+ this.tradefieldList = res.data
|
|
|
+ }
|
|
|
+ /* this.tradefieldList = res.data
|
|
|
+ console.log(this.tradefieldList,'领域');*/
|
|
|
},
|
|
|
/* 品牌 */
|
|
|
async getBrand () {
|
|
|
@@ -310,7 +321,7 @@ export default {
|
|
|
})
|
|
|
this.brandList = res.data
|
|
|
console.log(this.brandList,'品牌');
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
/* 账户类型 */
|
|
|
async getAccount () {
|
|
|
@@ -326,7 +337,7 @@ export default {
|
|
|
})
|
|
|
this.accountList = res.data
|
|
|
console.log(this.accountList,'账户');
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
uploadSuccess (data) {
|
|
|
this.$emit('onSuccess')
|
|
|
@@ -346,4 +357,4 @@ export default {
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
|
-</style>
|
|
|
+</style>
|