|
@@ -70,8 +70,8 @@
|
|
|
<el-col :span="12" v-if="form.type !=='工具订单' && form.type !=='项目订单' && form.typemx !== '工程' && form.typemx !== '电商'">
|
|
|
<el-form-item label="选择领域" prop="tradefield">
|
|
|
<el-select :disabled="form.type==='促销订单'" v-model="form.tradefield" placeholder="请选择选择领域" clearable :style="{width: '100%'}">
|
|
|
- <el-option v-for="(item, index) in tradefieldOptions" :key="index" :label="item.tradefield"
|
|
|
- :value="item.tradefield" @click.native="setChildField(item)"></el-option>
|
|
|
+ <el-option v-for="(item, index) in tradefieldOptions" :key="index" :label="item.value"
|
|
|
+ :value="item.value" @click.native="setChildField(item)"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -106,7 +106,7 @@ export default {
|
|
|
visible1:false,
|
|
|
form:{
|
|
|
"sa_orderid": 0,
|
|
|
- "sys_enterpriseid": 0, //订货企业id,可不传,默认取当前账号的
|
|
|
+ "sys_enterpriseid": '', //订货企业id,可不传,默认取当前账号的
|
|
|
"sa_accountclassid": 0, //营销账户类型ID
|
|
|
"sa_brandid": "", //品牌ID
|
|
|
"sa_contractid": 0, //合同ID,标准订单不传
|
|
@@ -145,7 +145,7 @@ export default {
|
|
|
sys_enterpriseid:[{
|
|
|
required: true,
|
|
|
message: '订货经销商不能为空',
|
|
|
- trigger: 'blur'
|
|
|
+ trigger: 'change'
|
|
|
}],
|
|
|
sa_contractid:[{
|
|
|
required: true,
|
|
@@ -201,6 +201,7 @@ export default {
|
|
|
this.drawer = true
|
|
|
this.specordermx()
|
|
|
this.accountType()
|
|
|
+ this.queryTradefield()
|
|
|
},
|
|
|
submitForm() {
|
|
|
console.log(this.form)
|
|
@@ -236,18 +237,26 @@ export default {
|
|
|
})
|
|
|
this.sa_brandidOptions = res.data
|
|
|
|
|
|
- const res1 = await this.$api.requested({
|
|
|
+ /*const res1 = await this.$api.requested({
|
|
|
"id": 20230219212802,
|
|
|
"content": {
|
|
|
"sys_enterpriseid": this.form.sys_enterpriseid,
|
|
|
}
|
|
|
- })
|
|
|
- this.tradefieldOptions = res1.data
|
|
|
+ })*/
|
|
|
|
|
|
- this.form.tradefield = this.tradefieldOptions[0]?this.tradefieldOptions[0].tradefield:''
|
|
|
+
|
|
|
+
|
|
|
+ /*this.form.tradefield = this.tradefieldOptions[0]?this.tradefieldOptions[0].tradefield:''*/
|
|
|
this.childField = this.tradefieldOptions[0]?this.tradefieldOptions[0].subvalues:''
|
|
|
this.form.sa_brandid = this.sa_brandidOptions[0]?this.sa_brandidOptions[0].sa_brandid:""
|
|
|
},
|
|
|
+ queryTradefield(){
|
|
|
+ this.$store.dispatch('optiontypeselect','headquartersdomainclassification').then((res1)=>{
|
|
|
+ console.log(res1,'111111111111111111')
|
|
|
+ this.tradefieldOptions = res1.data
|
|
|
+ console.log(this.tradefieldOptions,'领域数据')
|
|
|
+ })
|
|
|
+ },
|
|
|
rowClick (row) {
|
|
|
this.form.sys_enterpriseid = row.sys_enterpriseid
|
|
|
this.form.type === '促销订单'?this.$refs['activity'].listData(row.sys_enterpriseid):''
|