|  | @@ -46,26 +46,29 @@
 | 
	
		
			
				|  |  |                      </template>
 | 
	
		
			
				|  |  |                      <template slot="whetherIntegral" slot-scope="{disabled}">
 | 
	
		
			
				|  |  |                          <!--<el-switch v-model="form.whetherIntegral" active-text="是" inactive-text="否" active-value="1" inactive-value="0" @change="whetherChange"/>-->
 | 
	
		
			
				|  |  | -                        <el-switch v-model="form.whetherIntegral" :disabled="disabled" active-text="是"
 | 
	
		
			
				|  |  | -                                   inactive-text="否" active-value="1" inactive-value="0" />
 | 
	
		
			
				|  |  | +                        <el-switch v-model="form.whetherIntegral" :disabled="disabled" active-text="是" inactive-text="否"
 | 
	
		
			
				|  |  | +                            active-value="1" inactive-value="0" />
 | 
	
		
			
				|  |  |                      </template>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |                      <template slot="explosionProof" slot-scope="{disabled}">
 | 
	
		
			
				|  |  |                          <!--<el-switch v-model="form.explosionProof" :disabled="disabled" active-text="是" inactive-text="否"-->
 | 
	
		
			
				|  |  |                          <!--    active-value="1" inactive-value="0" />-->
 | 
	
		
			
				|  |  |                          <!--<el-radio v-model="form.explosionProof"></el-radio>-->
 | 
	
		
			
				|  |  | -                        <el-checkbox v-model="form.explosionProof" :checked="form.explosionProof == 1" :true-label="1" :false-label="0"></el-checkbox>
 | 
	
		
			
				|  |  | +                        <el-checkbox v-model="form.explosionProof" :checked="form.explosionProof == 1" :true-label="1"
 | 
	
		
			
				|  |  | +                            :false-label="0"></el-checkbox>
 | 
	
		
			
				|  |  |                      </template>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |                      <template slot="originalFactory" slot-scope="{disabled}">
 | 
	
		
			
				|  |  |                          <!--<el-switch v-model="form.originalFactory" :disabled="disabled" active-text="是" inactive-text="否"-->
 | 
	
		
			
				|  |  |                          <!--           active-value="1" inactive-value="0" />-->
 | 
	
		
			
				|  |  | -                        <el-checkbox v-model="form.originalFactory" :checked="form.originalFactory == 1" :true-label="1" :false-label="0"></el-checkbox>
 | 
	
		
			
				|  |  | +                        <el-checkbox v-model="form.originalFactory" :checked="form.originalFactory == 1" :true-label="1"
 | 
	
		
			
				|  |  | +                            :false-label="0"></el-checkbox>
 | 
	
		
			
				|  |  |                      </template>
 | 
	
		
			
				|  |  |                      <template slot="selfRecovery" slot-scope="{disabled}">
 | 
	
		
			
				|  |  |                          <!--<el-switch v-model="form.selfRecovery" :disabled="disabled" active-text="是" inactive-text="否"-->
 | 
	
		
			
				|  |  |                          <!--           active-value="1" inactive-value="0" />-->
 | 
	
		
			
				|  |  | -                        <el-checkbox v-model="form.selfRecovery" :checked="form.selfRecovery == 1" :true-label="1" :false-label="0"></el-checkbox>
 | 
	
		
			
				|  |  | +                        <el-checkbox v-model="form.selfRecovery" :checked="form.selfRecovery == 1" :true-label="1"
 | 
	
		
			
				|  |  | +                            :false-label="0"></el-checkbox>
 | 
	
		
			
				|  |  |                      </template>
 | 
	
		
			
				|  |  |                  </avue-form>
 | 
	
		
			
				|  |  |              </trade-card>
 | 
	
	
		
			
				|  | @@ -122,7 +125,7 @@ import {
 | 
	
		
			
				|  |  |  import { optionList } from "./js/optionList";
 | 
	
		
			
				|  |  |  import goodsType from '@/components/goodsType/index'
 | 
	
		
			
				|  |  |  import corpType from './components/index'
 | 
	
		
			
				|  |  | -import {brandfigureListAll} from "@/api/tirePartsMall/basicData/listingManagement";
 | 
	
		
			
				|  |  | +import { brandfigureListAll } from "@/api/tirePartsMall/basicData/listingManagement";
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  export default {
 | 
	
		
			
				|  |  |      name: "index",
 | 
	
	
		
			
				|  | @@ -196,9 +199,9 @@ export default {
 | 
	
		
			
				|  |  |                              disabled: 'disabled'
 | 
	
		
			
				|  |  |                          },
 | 
	
		
			
				|  |  |                          dicUrl: '/api/blade-sales-part/brandDesc/listAllV1?type=PP&enableOrNot=1',
 | 
	
		
			
				|  |  | -                        change:(value)=>{
 | 
	
		
			
				|  |  | +                        change: (value) => {
 | 
	
		
			
				|  |  |                              if (!value.value) return
 | 
	
		
			
				|  |  | -                            brandfigureListAll({pid:value.value}).then(res=>{
 | 
	
		
			
				|  |  | +                            brandfigureListAll({ pid: value.value }).then(res => {
 | 
	
		
			
				|  |  |                                  this.findObject(this.option.column, "brandItem").dicData = res.data.data
 | 
	
		
			
				|  |  |                              })
 | 
	
		
			
				|  |  |                          },
 | 
	
	
		
			
				|  | @@ -233,9 +236,9 @@ export default {
 | 
	
		
			
				|  |  |                          prop: "brandItem",
 | 
	
		
			
				|  |  |                          span: 8,
 | 
	
		
			
				|  |  |                          type: 'select',
 | 
	
		
			
				|  |  | -                        filterable:true,
 | 
	
		
			
				|  |  | -                        allowCreate:true,
 | 
	
		
			
				|  |  | -                        dicData:[],
 | 
	
		
			
				|  |  | +                        filterable: true,
 | 
	
		
			
				|  |  | +                        allowCreate: true,
 | 
	
		
			
				|  |  | +                        dicData: [],
 | 
	
		
			
				|  |  |                          props: {
 | 
	
		
			
				|  |  |                              label: 'figure',
 | 
	
		
			
				|  |  |                              value: 'figure',
 | 
	
	
		
			
				|  | @@ -282,7 +285,7 @@ export default {
 | 
	
		
			
				|  |  |                              label: 'fullName',
 | 
	
		
			
				|  |  |                              value: 'id'
 | 
	
		
			
				|  |  |                          },
 | 
	
		
			
				|  |  | -                        display:false,
 | 
	
		
			
				|  |  | +                        display: false,
 | 
	
		
			
				|  |  |                          rules: [{
 | 
	
		
			
				|  |  |                              required: true,
 | 
	
		
			
				|  |  |                              message: " ",
 | 
	
	
		
			
				|  | @@ -478,7 +481,7 @@ export default {
 | 
	
		
			
				|  |  |                              label: '是',
 | 
	
		
			
				|  |  |                              value: 1
 | 
	
		
			
				|  |  |                          }],
 | 
	
		
			
				|  |  | -                    },{
 | 
	
		
			
				|  |  | +                    }, {
 | 
	
		
			
				|  |  |                          label: "是否管理批次号",
 | 
	
		
			
				|  |  |                          prop: "whether",
 | 
	
		
			
				|  |  |                          labelWidth: 120,
 | 
	
	
		
			
				|  | @@ -704,7 +707,7 @@ export default {
 | 
	
		
			
				|  |  |                      type: "success",
 | 
	
		
			
				|  |  |                      message: val ? '启用成功' : '禁用成功'
 | 
	
		
			
				|  |  |                  });
 | 
	
		
			
				|  |  | -                this.getDetail(this.detailData.id);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |                  if (val == 0) {
 | 
	
		
			
				|  |  |                      console.log('禁用中');
 | 
	
		
			
				|  |  |                      this.option.disabled = false;
 | 
	
	
		
			
				|  | @@ -712,6 +715,8 @@ export default {
 | 
	
		
			
				|  |  |                          this.$set(item, 'disabled', false)
 | 
	
		
			
				|  |  |                      }
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  | +                console.log('执行getdetail')
 | 
	
		
			
				|  |  | +                this.getDetail(this.form.id);
 | 
	
		
			
				|  |  |              })
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  |          saveGoodstype() {
 | 
	
	
		
			
				|  | @@ -719,6 +724,7 @@ export default {
 | 
	
		
			
				|  |  |                  done();
 | 
	
		
			
				|  |  |                  if (valid) {
 | 
	
		
			
				|  |  |                      goodsTypesubmit({ ...this.form2, status: 0 }).then(res => {
 | 
	
		
			
				|  |  | +                        this.getDetail(res.data.data.id)
 | 
	
		
			
				|  |  |                          this.getAllWorkDicts()
 | 
	
		
			
				|  |  |                      })
 | 
	
		
			
				|  |  |                      this.goodsTypeVisible = false
 | 
	
	
		
			
				|  | @@ -758,7 +764,7 @@ export default {
 | 
	
		
			
				|  |  |                  // this.data = res.data.data.stockGoodsList;
 | 
	
		
			
				|  |  |                  this.filesList = res.data.data.goodsFilesList
 | 
	
		
			
				|  |  |                  // 把详情得到的主图附图状态从数值型转化成字符串型
 | 
	
		
			
				|  |  | -                for(let item of this.filesList) {
 | 
	
		
			
				|  |  | +                for (let item of this.filesList) {
 | 
	
		
			
				|  |  |                      item.mainImage = item.mainImage + ''
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |                  this.whetherChange(res.data.data.whether)
 | 
	
	
		
			
				|  | @@ -780,10 +786,10 @@ export default {
 | 
	
		
			
				|  |  |                      for (let item of this.option.column) {
 | 
	
		
			
				|  |  |                          this.$set(item, 'disabled', false)
 | 
	
		
			
				|  |  |                      }
 | 
	
		
			
				|  |  | -                }else{
 | 
	
		
			
				|  |  | -                  for (let item of this.option.column) {
 | 
	
		
			
				|  |  | -                    this.$set(item, 'disabled', true)
 | 
	
		
			
				|  |  | -                  }
 | 
	
		
			
				|  |  | +                } else {
 | 
	
		
			
				|  |  | +                    for (let item of this.option.column) {
 | 
	
		
			
				|  |  | +                        this.$set(item, 'disabled', true)
 | 
	
		
			
				|  |  | +                    }
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |                  this.key++
 | 
	
		
			
				|  |  |              }).finally(() => {
 | 
	
	
		
			
				|  | @@ -908,5 +914,4 @@ export default {
 | 
	
		
			
				|  |  |          font-weight: 600;
 | 
	
		
			
				|  |  |          text-align: center;
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  | -}
 | 
	
		
			
				|  |  | -</style>
 | 
	
		
			
				|  |  | +}</style>
 |