|
@@ -17,257 +17,181 @@
|
|
|
:label-col="formItemLayout.labelCol"
|
|
|
:wrapper-col="formItemLayout.wrapperCol"
|
|
|
>
|
|
|
- <a-row :gutter="15">
|
|
|
- <a-col :md="12" :sm="24" v-if="!isEdit">
|
|
|
- <a-form-model-item label="促销名称" prop="targetType">
|
|
|
- <a-input v-model="form.targetName" placeholder="请输入促销名称" :maxLength="100"></a-input>
|
|
|
- </a-form-model-item>
|
|
|
- </a-col>
|
|
|
- <a-col :md="12" :sm="24">
|
|
|
- <a-form-model-item label="促销时间" prop="time">
|
|
|
- <a-range-picker
|
|
|
- style="width:100%"
|
|
|
- v-model="form.time"
|
|
|
- :format="dateFormat"
|
|
|
- @change="dateChange"
|
|
|
- :placeholder="['开始时间', '结束时间']" />
|
|
|
- </a-form-model-item>
|
|
|
- </a-col>
|
|
|
- <a-col :md="12" :sm="24" v-if="!isEdit">
|
|
|
- <a-form-model-item label="调往对象名称" :prop="isDealer||isDepartment ? 'targetSn' : 'targetName'">
|
|
|
+ <a-form-model-item label="促销名称" prop="name">
|
|
|
+ <a-input v-model="form.name" placeholder="请输入促销名称" :maxLength="160"></a-input>
|
|
|
+ </a-form-model-item>
|
|
|
+ <a-form-model-item label="促销时间" prop="time">
|
|
|
+ <a-range-picker
|
|
|
+ style="width:100%"
|
|
|
+ v-model="form.time"
|
|
|
+ :format="dateFormat"
|
|
|
+ @change="dateChange"
|
|
|
+ :placeholder="['开始时间', '结束时间']" />
|
|
|
+ </a-form-model-item>
|
|
|
+ <a-form-model-item label="参与经销商" prop="promoBuyerList">
|
|
|
+ <a-row :gutter="15">
|
|
|
+ <!-- <a-col :md="15" :sm="24">
|
|
|
<a-select
|
|
|
- v-if="isDealer"
|
|
|
- show-search
|
|
|
- id="promotion-dealerName"
|
|
|
- v-model="form.targetSn"
|
|
|
- placeholder="请选择经销商"
|
|
|
- :filter-option="false"
|
|
|
- :not-found-content="fetching ? undefined : null"
|
|
|
- @search="fetchUser"
|
|
|
- @change="handleChange"
|
|
|
+ v-model="form.buyerLimitEnable"
|
|
|
+ placeholder="请选择参与经销商"
|
|
|
>
|
|
|
- <a-spin v-if="fetching" slot="notFoundContent" size="small" />
|
|
|
- <a-select-option v-for="item in dealerData" :key="item.dealerSn" :value="item.dealerSn">{{ item.dealerName }}</a-select-option>
|
|
|
+ <a-select-option :value="0">全部经销商</a-select-option>
|
|
|
+ <a-select-option :value="1">部分经销商</a-select-option>
|
|
|
</a-select>
|
|
|
- <department v-else-if="isDepartment" style="width: 100%;" placeholder="请选择部门" @change="departementChange" v-model="form.targetSn"></department>
|
|
|
- <a-input v-else v-model="form.targetName" placeholder="请输入调往对象名称(最多30个字符)" :maxLength="30"></a-input>
|
|
|
- </a-form-model-item>
|
|
|
- </a-col>
|
|
|
- <a-col :md="12" :sm="24" v-if="!isEdit">
|
|
|
- <a-form-model-item label="调出仓库" prop="warehouseSn">
|
|
|
- <warehouse
|
|
|
- v-model="form.warehouseSn"
|
|
|
- id="promotion-warehouseSn"
|
|
|
- placeholder="请选择调出仓库"
|
|
|
- />
|
|
|
- </a-form-model-item>
|
|
|
- </a-col>
|
|
|
- <a-col :md="12" :sm="24">
|
|
|
- <a-form-model-item label="费用/调拨类型" prop="costTypeSn">
|
|
|
- <AllocateType id="promotion-allocateTypeSn" v-model="allocateTypeVal" placeholder="请选择费用/调拨类型" @change="allocateTypeChange"></AllocateType>
|
|
|
- </a-form-model-item>
|
|
|
- </a-col>
|
|
|
- <a-col :md="12" :sm="24">
|
|
|
- <a-form-model-item label="费用归属品牌">
|
|
|
- <ProductBrand id="promotion-productBrandSn" @change="changeBrand" v-model="form.productBrandSn" placeholder="请选择费用归属品牌(单选)"></ProductBrand>
|
|
|
- </a-form-model-item>
|
|
|
- </a-col>
|
|
|
- <a-col :md="12" :sm="24">
|
|
|
- <a-form-model-item label="费用归属品类">
|
|
|
- <productTypeAll placeholder="请选择费用归属品类(单选,可选二级或三级)" @change="changeProductType" v-model="productType" id="promotion-productType"></productTypeAll>
|
|
|
- </a-form-model-item>
|
|
|
- </a-col>
|
|
|
-
|
|
|
- <a-col :md="24" :sm="24">
|
|
|
- <a-form-model-item style="margin-bottom:10px;" label="备注" prop="remark" :wrapperCol="{ span: 20 }" :labelCol="{ span: 4 }">
|
|
|
- <a-textarea id="promotion-remark" :maxLength="120" v-model="form.remark" placeholder="请输入备注(最多120个字符)" allowClear />
|
|
|
- </a-form-model-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
|
|
|
- <a-form-model-item label="附件" help="(支持图片、word、excel、PDF等格式,最多10个附件)" :label-col="{span:4}" :wrapper-col="{span:18}">
|
|
|
- <Upload
|
|
|
- style="height: 100%;"
|
|
|
- id="allocateBill-attachList"
|
|
|
- v-model="form.attachmentList"
|
|
|
- ref="attachList"
|
|
|
- :fileSize="10"
|
|
|
- :maxNums="10"
|
|
|
- fileType="*"
|
|
|
- uploadType="attach"
|
|
|
- :action="attachAction"
|
|
|
- @change="changeAttach"
|
|
|
- upText="上传附件"></Upload>
|
|
|
- </a-form-model-item>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
+ </a-col> -->
|
|
|
+ <a-col :md="5" :sm="24">
|
|
|
+ <a-button type="primary" :loading="spinning" @click="handleDealer">选择经销商</a-button>
|
|
|
+ </a-col>
|
|
|
+ <a-col :md="6" :sm="24" v-show="chooseDealerList && chooseDealerList.length>0">
|
|
|
+ 已{{ chooseDealerList.length }}选项
|
|
|
+ </a-col>
|
|
|
+ <a-col :md="24" :sm="24" v-show="chooseDealerList && chooseDealerList.length>0">
|
|
|
+ <div class="buyerBox">
|
|
|
+ <a-tag closable v-for="con in chooseDealerList" :key="con.buyerSn" @close="delBuyerName(con)">
|
|
|
+ {{ con.buyerName }}
|
|
|
+ </a-tag>
|
|
|
+ </div>
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
+ </a-form-model-item>
|
|
|
+ <a-form-model-item style="margin-bottom:10px;" label="促销描述" prop="description" :wrapperCol="{ span: 16 }" :labelCol="{ span: 4 }">
|
|
|
+ <a-textarea id="promotion-remark" :maxLength="500" v-model="form.description" placeholder="请输入备注(最多500个字符)" allowClear />
|
|
|
+ </a-form-model-item>
|
|
|
</a-form-model>
|
|
|
<div class="btn-cont">
|
|
|
- <a-button type="primary" :loading="spinning" id="promotion-modal-save" @click="handleSave">保存</a-button>
|
|
|
- <a-button id="promotion-modal-back" @click="isShow = false" style="margin-left: 15px;">取消</a-button>
|
|
|
+ <a-button id="promotion-modal-back" @click="isShow = false" >取消</a-button>
|
|
|
+ <a-button type="primary" style="margin-left: 15px;" :loading="spinning" id="promotion-modal-save" @click="handleSave">确定</a-button>
|
|
|
</div>
|
|
|
</a-spin>
|
|
|
+ <!-- 选择经销商 -->
|
|
|
+ <a-modal
|
|
|
+ title="选择经销商"
|
|
|
+ :visible="openDealerModal"
|
|
|
+ :footer="null"
|
|
|
+ centered
|
|
|
+ class="lookUpCustomers-modal"
|
|
|
+ @cancel="openDealerModal = false"
|
|
|
+ width="60%"
|
|
|
+ >
|
|
|
+ <div class="dealerModalCon">
|
|
|
+ <chooseDealer ref="dealerChoose" @plAdd="handleAddDealer"></chooseDealer>
|
|
|
+ </div>
|
|
|
+ </a-modal>
|
|
|
</a-modal>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import { commonMixin } from '@/utils/mixin'
|
|
|
-import debounce from 'lodash/debounce'
|
|
|
-import { VSelect, Upload } from '@/components'
|
|
|
-import { allocateBillSave } from '@/api/allocateBill'
|
|
|
-import { dealerSubareaScopeList } from '@/api/dealer'
|
|
|
-import { getLookUpData } from '@/api/data'
|
|
|
-import ProductBrand from '@/views/common/productBrand.js'
|
|
|
-import productTypeAll from '@/views/common/productTypeAll.js'
|
|
|
-import AllocateType from '@/views/common/allocateType.js'
|
|
|
-import warehouse from '@/views/common/chooseWarehouse.js'
|
|
|
-import department from '@/views/expenseManagement/expenseReimbursement/department.js'
|
|
|
+import { promoTerminalSave, promoTerminalDetail } from '@/api/promoTerminal'
|
|
|
+import chooseDealer from './chooseDealer'
|
|
|
export default {
|
|
|
- name: 'TransferOutBasicInfoModal',
|
|
|
+ name: 'PromotionAddModal',
|
|
|
mixins: [commonMixin],
|
|
|
- components: { VSelect, Upload, ProductBrand, productTypeAll, AllocateType, department, warehouse },
|
|
|
+ components: { chooseDealer },
|
|
|
props: {
|
|
|
openModal: {
|
|
|
// 弹框显示状态
|
|
|
type: Boolean,
|
|
|
default: false
|
|
|
},
|
|
|
- detailData: Object
|
|
|
+ itemId: {
|
|
|
+ // 弹框显示状态
|
|
|
+ type: String,
|
|
|
+ default: ''
|
|
|
+ }
|
|
|
},
|
|
|
data () {
|
|
|
- this.lastFetchId = 0
|
|
|
- this.fetchUser = debounce(this.fetchUser, 800)
|
|
|
return {
|
|
|
isShow: this.openModal, // 是否打开弹框
|
|
|
+ openDealerModal: false,
|
|
|
spinning: false,
|
|
|
formItemLayout: {
|
|
|
- labelCol: { span: 8 },
|
|
|
+ labelCol: { span: 4 },
|
|
|
wrapperCol: { span: 16 }
|
|
|
},
|
|
|
- productType: [],
|
|
|
- attachList: [],
|
|
|
- attachAction: process.env.VUE_APP_API_BASE_URL + '/uploadGetFileInfo',
|
|
|
form: {
|
|
|
- targetType: 'DEALER',
|
|
|
- targetSn: undefined,
|
|
|
- targetName: '',
|
|
|
- costTypeSn: '',
|
|
|
- allocateTypeSn: '',
|
|
|
- allocateSortSn: '',
|
|
|
- warehouseSn: undefined, // 仓库
|
|
|
- productBrandSn: undefined, // 产品品牌
|
|
|
- productTypeSn1: '', // 产品一级分类
|
|
|
- productTypeSn2: '', // 产品二级分类
|
|
|
- productTypeSn3: '', // 产品三级分类
|
|
|
+ promoActiveSn: undefined,
|
|
|
+ name: '',
|
|
|
time: [],
|
|
|
- promoStartDate: '',
|
|
|
- promoEndDate: '',
|
|
|
- remark: '',
|
|
|
- attachmentList: ''
|
|
|
+ activeDateStart: undefined,
|
|
|
+ activeDateEnd: undefined,
|
|
|
+ activeDateEnable: '1',
|
|
|
+ buyerLimitEnable: '1',
|
|
|
+ description: '',
|
|
|
+ promoBuyerList: []
|
|
|
},
|
|
|
rules: {
|
|
|
- targetType: [{ required: true, message: '请选择调往对象', trigger: 'change' }],
|
|
|
- targetSn: [{ required: true, message: '请选择调往对象名称', trigger: 'change' }],
|
|
|
- costTypeSn: [{ required: true, message: '请选择费用/调拨类型', trigger: 'change' }],
|
|
|
- warehouseSn: [{ required: true, message: '请选择调出仓库', trigger: 'change' }],
|
|
|
- targetName: [{ required: true, message: '请输入调往对象名称', trigger: 'blur' }]
|
|
|
+ promoBuyerList: [{ required: true, message: '请选择参与经销商', trigger: 'change' }],
|
|
|
+ time: [{ required: true, message: '请选择促销时间', trigger: 'change' }],
|
|
|
+ name: [{ required: true, message: '请输入促销名称', trigger: 'blur' }],
|
|
|
+ description: [{ required: true, message: '请输入促销描述', trigger: 'blur' }]
|
|
|
},
|
|
|
- fetching: false,
|
|
|
- dealerData: [], // 经销商 下拉数据
|
|
|
- targetTypeList: [], // 调往对象类型
|
|
|
- allocateTypeVal: [],
|
|
|
dateFormat: 'YYYY-MM-DD',
|
|
|
- isEdit: false
|
|
|
- }
|
|
|
- },
|
|
|
- computed: {
|
|
|
- // 当前所选调往对象是否为经销商
|
|
|
- isDealer () {
|
|
|
- return this.form.targetType == 'DEALER'
|
|
|
- },
|
|
|
- isDepartment () {
|
|
|
- return this.form.targetType == 'DEPARTMENT'
|
|
|
+ isEdit: false,
|
|
|
+ chooseDealerList: []// 选择经销商列表
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ handleDealer () {
|
|
|
+ const _this = this
|
|
|
+ _this.openDealerModal = true
|
|
|
+ const arr = _this.chooseDealerList.map(item => {
|
|
|
+ return item.buyerSn
|
|
|
+ })
|
|
|
+ _this.$nextTick(() => {
|
|
|
+ _this.$refs.dealerChoose.pageInit(arr)
|
|
|
+ })
|
|
|
+ },
|
|
|
// 日期 change
|
|
|
dateChange (date, dateStrings) {
|
|
|
- console.log(date, dateStrings)
|
|
|
this.form.time = dateStrings
|
|
|
- this.form.promoStartDate = date.length ? dateStrings[0] : ''
|
|
|
- this.form.promoEndDate = date.length ? dateStrings[1] : ''
|
|
|
+ this.form.activeDateStart = date.length ? dateStrings[0] : ''
|
|
|
+ this.form.activeDateEnd = date.length ? dateStrings[1] : ''
|
|
|
},
|
|
|
- // 附件上传
|
|
|
- changeAttach (file) {
|
|
|
- this.attachList = JSON.parse(file)
|
|
|
- this.attachList.map(item => {
|
|
|
- item.fileType = item.extName
|
|
|
+ // 添加经销商
|
|
|
+ handleAddDealer (list) {
|
|
|
+ this.chooseDealerList = list
|
|
|
+ const newArr = list.map(item => {
|
|
|
+ return {
|
|
|
+ buyerSn: item.buyerSn
|
|
|
+ }
|
|
|
})
|
|
|
+ this.form.promoBuyerList = newArr
|
|
|
+ this.openDealerModal = false
|
|
|
},
|
|
|
- departementChange (v, row) {
|
|
|
- console.log(v, row)
|
|
|
- this.form.targetName = row.name
|
|
|
- },
|
|
|
- // 调拨类别 change
|
|
|
- allocateTypeChange (val, opt) {
|
|
|
- console.log(val, opt, '------------')
|
|
|
- this.allocateTypeVal = val || ''
|
|
|
- this.form.costTypeSn = val && val[0] ? val[0] : ''
|
|
|
- this.form.allocateSortSn = val && val[1] ? val[1] : ''
|
|
|
- this.form.allocateTypeSn = val && val[2] ? val[2] : ''
|
|
|
- // 名称
|
|
|
- this.form.costTypeName = opt && opt[0] ? opt[0].name : ''
|
|
|
- this.form.allocateSortName = opt && opt[1] ? opt[1].name : ''
|
|
|
- this.form.allocateTypeName = opt && opt[2] ? opt[2].name : ''
|
|
|
- },
|
|
|
- // 产品分类 change
|
|
|
- changeProductType (val, id, opt) {
|
|
|
- console.log(val, opt, '------------')
|
|
|
- this.form.productTypeSn1 = val && val[0] ? val[0] : ''
|
|
|
- this.form.productTypeSn2 = val && val[1] ? val[1] : ''
|
|
|
- this.form.productTypeSn3 = val && val[2] ? val[2] : ''
|
|
|
- // 名称
|
|
|
- this.form.productTypeName1 = opt && opt[0] ? opt[0].productTypeName : ''
|
|
|
- this.form.productTypeName2 = opt && opt[1] ? opt[1].productTypeName : ''
|
|
|
- this.form.productTypeName3 = opt && opt[2] ? opt[2].productTypeName : ''
|
|
|
- },
|
|
|
- // 品牌
|
|
|
- changeBrand (val, id, opt) {
|
|
|
- console.log(val, opt, '------------')
|
|
|
- this.form.productBrandName = opt ? opt.brandName : ''
|
|
|
- },
|
|
|
- fetchUser (dealerName) {
|
|
|
- if (dealerName == '') return
|
|
|
- this.lastFetchId += 1
|
|
|
- const fetchId = this.lastFetchId
|
|
|
- this.dealerData = []
|
|
|
- this.fetching = true
|
|
|
- dealerSubareaScopeList({ nameLike: dealerName.replace(/\s+/g, ''), pageNo: 1, pageSize: 20 }).then(res => {
|
|
|
- if (fetchId !== this.lastFetchId) {
|
|
|
- return
|
|
|
+ // 获取编辑详情
|
|
|
+ getEditInfo () {
|
|
|
+ const _this = this
|
|
|
+ promoTerminalDetail({ sn: this.itemId }).then(res => {
|
|
|
+ if (res.status == 200) {
|
|
|
+ const data = res.data
|
|
|
+ this.chooseDealerList = data.promoBuyerList
|
|
|
+ this.handleDealer()
|
|
|
+ data.promoBuyerList = data.promoBuyerList.map(item => {
|
|
|
+ return {
|
|
|
+ buyerSn: item.buyerSn
|
|
|
+ }
|
|
|
+ })
|
|
|
+ data.time = [data.activeDateStart, data.activeDateEnd]
|
|
|
+ this.form = data
|
|
|
}
|
|
|
- this.dealerData = res.data && res.data.list ? res.data.list : []
|
|
|
- this.fetching = false
|
|
|
})
|
|
|
},
|
|
|
- // 调往对象名称经销商 change
|
|
|
- handleChange (value) {
|
|
|
- const ind = this.dealerData.findIndex(item => item.dealerSn == value)
|
|
|
- console.log(this.dealerData[ind])
|
|
|
- this.form.targetName = this.dealerData[ind].dealerName
|
|
|
- this.form.warehouseSn = this.dealerData[ind].defaultWarehouseSn
|
|
|
+ // 删除所选经销商
|
|
|
+ delBuyerName (row) {
|
|
|
+ const pot = this.chooseDealerList.findIndex(con => { return con.buyerSn == row.buyerSn })
|
|
|
+ this.chooseDealerList.splice(pot, 1)
|
|
|
+ this.handleDealer()
|
|
|
},
|
|
|
- // 保存
|
|
|
+ // 保存促销
|
|
|
handleSave () {
|
|
|
const _this = this
|
|
|
this.$refs.ruleForm.validate(valid => {
|
|
|
if (valid) {
|
|
|
const form = JSON.parse(JSON.stringify(_this.form))
|
|
|
- if (!form.productBrandName) {
|
|
|
- form.productBrandSn = ''
|
|
|
- }
|
|
|
- form.attachmentList = this.attachList
|
|
|
+ delete form.time
|
|
|
_this.spinning = true
|
|
|
- allocateBillSave(form).then(res => {
|
|
|
+ promoTerminalSave(form).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
_this.$message.success(res.message)
|
|
|
_this.isShow = false
|
|
@@ -280,29 +204,6 @@ export default {
|
|
|
return false
|
|
|
}
|
|
|
})
|
|
|
- },
|
|
|
- // 调往对象 change
|
|
|
- targetTypeChange (e) {
|
|
|
- this.$refs.ruleForm.resetFields()
|
|
|
- this.form.targetSn = undefined
|
|
|
- this.form.targetName = ''
|
|
|
- this.form.warehouseSn = undefined
|
|
|
- this.form.targetType = e.target.value
|
|
|
- },
|
|
|
- // 调往对象类型
|
|
|
- getTargetTypeList () {
|
|
|
- const _this = this
|
|
|
- getLookUpData({
|
|
|
- pageNo: 1,
|
|
|
- pageSize: 1000,
|
|
|
- lookupCode: 'TARGET_TYPE'
|
|
|
- }).then(res => {
|
|
|
- if (res.status == 200) {
|
|
|
- _this.targetTypeList = res.data.list
|
|
|
- } else {
|
|
|
- _this.targetTypeList = []
|
|
|
- }
|
|
|
- })
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
@@ -315,51 +216,23 @@ export default {
|
|
|
if (!newValue) {
|
|
|
this.$emit('close')
|
|
|
this.$refs.ruleForm.resetFields()
|
|
|
- this.allocateTypeVal = []
|
|
|
- this.productType = []
|
|
|
- this.attachList = []
|
|
|
- this.form.attachmentList = ''
|
|
|
- this.$refs.attachList.setFileList('')
|
|
|
this.form = {
|
|
|
- targetType: 'DEALER',
|
|
|
- targetSn: undefined,
|
|
|
- targetName: '',
|
|
|
- costTypeSn: '',
|
|
|
- allocateTypeSn: '',
|
|
|
- allocateSortSn: '',
|
|
|
- warehouseSn: undefined,
|
|
|
- productBrandSn: undefined, // 产品品牌
|
|
|
- productTypeSn1: '', // 产品一级分类
|
|
|
- productTypeSn2: '', // 产品二级分类
|
|
|
- productTypeSn3: '', // 产品三级分类
|
|
|
+ promoActiveSn: undefined,
|
|
|
+ name: '',
|
|
|
time: [],
|
|
|
- promoStartDate: '',
|
|
|
- promoEndDate: '',
|
|
|
- remark: ''
|
|
|
+ activeDateStart: undefined,
|
|
|
+ activeDateEnd: undefined,
|
|
|
+ activeDateEnable: '1',
|
|
|
+ buyerLimitEnable: '1',
|
|
|
+ description: '',
|
|
|
+ promoBuyerList: []
|
|
|
}
|
|
|
+ this.isEdit = false
|
|
|
+ this.chooseDealerList = []
|
|
|
} else {
|
|
|
- this.getTargetTypeList()
|
|
|
- // 编辑
|
|
|
- if (this.detailData) {
|
|
|
- this.isEdit = true
|
|
|
- this.form = Object.assign(this.form, this.detailData)
|
|
|
- // 获取附件列表
|
|
|
- this.form.attachmentList = ''
|
|
|
- this.attachList = this.detailData.attachmentList
|
|
|
- this.$nextTick(() => {
|
|
|
- this.$refs.attachList.setFileList(this.attachList)
|
|
|
- })
|
|
|
-
|
|
|
- this.allocateTypeVal = [this.detailData.costTypeSn, this.detailData.allocateSortSn, this.detailData.allocateTypeSn]
|
|
|
- if (this.detailData.productTypeSn1) {
|
|
|
- this.productType = [this.detailData.productTypeSn1, this.detailData.productTypeSn2, this.detailData.productTypeSn3]
|
|
|
- }
|
|
|
- if (this.form.promoStartDate && this.form.promoEndDate) {
|
|
|
- this.form.time = [this.form.promoStartDate, this.form.promoEndDate]
|
|
|
- }
|
|
|
- if (!this.form.productBrandSn) {
|
|
|
- this.form.productBrandSn = undefined
|
|
|
- }
|
|
|
+ this.isEdit = !!this.itemId
|
|
|
+ if (this.itemId) {
|
|
|
+ this.getEditInfo()
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -372,6 +245,9 @@ export default {
|
|
|
.ant-modal-body {
|
|
|
padding: 40px 40px 24px;
|
|
|
}
|
|
|
+ .buyerBox{
|
|
|
+ border:1px solid #d9d9d9;margin-top:10px;border-radius:4px;padding:4px 10px;background:#f2f2f2;max-height:130px;overflow-y:scroll;
|
|
|
+ }
|
|
|
.btn-cont {
|
|
|
text-align: center;
|
|
|
margin: 35px 0 10px;
|