|
@@ -188,9 +188,9 @@
|
|
|
style="width: 100%;">
|
|
|
<el-option
|
|
|
v-for="item in zhaoBiaoUnitList"
|
|
|
- :key="item.zhaoBiaoUnit"
|
|
|
- :label="item.zhaoBiaoUnit"
|
|
|
- :value="item.zhaoBiaoUnit">
|
|
|
+ :key="item.id"
|
|
|
+ :label="item.zhaoBiaoUnitCustomer"
|
|
|
+ :value="item.zhaoBiaoUnitCustomer">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
@@ -333,7 +333,9 @@ export default {
|
|
|
stateFlag:'',
|
|
|
infoPublishStartTime:'',
|
|
|
infoPublishEndTime:'',
|
|
|
- dayNum:30
|
|
|
+ dayNum:30,
|
|
|
+ zhaoBiaoUnitId:'',
|
|
|
+ unitNameMatchCode:'',
|
|
|
},
|
|
|
rules: {
|
|
|
infoTypeSegment: [
|
|
@@ -498,6 +500,16 @@ export default {
|
|
|
this.form.subscriptionPusher = Array.isArray(this.form.subscriptionPusher)?this.form.subscriptionPusher.join(','):this.form.subscriptionPusher
|
|
|
this.form.unitNameMatch = Array.isArray(this.form.unitNameMatch)?this.form.unitNameMatch.join(','):this.form.unitNameMatch
|
|
|
this.form.zhaoBiaoUnit=this.form.zhaoBiaoUnit.toString()
|
|
|
+ this.zhaoBiaoUnitList.forEach(item =>{
|
|
|
+ if(this.form.zhaoBiaoUnit == item.zhaoBiaoUnitCustomer){
|
|
|
+ this.form.zhaoBiaoUnitId = item.id
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.customerList.forEach(item =>{
|
|
|
+ if(this.form.unitNameMatch == item.name){
|
|
|
+ this.form.unitNameMatchCode = item.code
|
|
|
+ }
|
|
|
+ })
|
|
|
insert(this.form).then(response => {
|
|
|
this.$modal.msgSuccess("新增成功");
|
|
|
this.$router.go(-1)
|