Commit 162b0d2a by zhangquan

样式优化

1 parent 702d0c87
......@@ -19,7 +19,6 @@
</el-radio-group>
<div class="money-wrap" v-if="formObj.paymentType == 2">
<label class="label" for="">定金金额/元:</label>
<el-input :disabled="disabled" v-model="formObj.depositPrice"></el-input>
<format-input :disabled="disabled" :intDigit="4" :precise="2" v-model="formObj.depositPrice"></format-input>
</div>
</div>
......@@ -58,7 +57,7 @@
</div>
<GLFooter style="margin-top: 16px;">
<el-button @click="handleCancel">取消</el-button>
<el-button type="primary" @click="handleSave">确定</el-button>
<el-button v-if="!disabled" type="primary" @click="handleSave">确定</el-button>
</GLFooter>
<selectCarDialog v-if="carDialogVisible" :echoData="vehicleSeriesRequestList" @handleClose="handleCarSeriesClose" @handleConfirm="handleConfirm" :dialogVisible="carDialogVisible"></selectCarDialog>
<selectGoods v-if="goodsVisible" :dialogVisible="goodsVisible" :goodsInfo="formObj" @handleGoodsConfirm="handleGoodsConfirm" @handleGoodsClose="handleGoodsClose"></selectGoods>
......@@ -66,6 +65,33 @@
</div>
</template>
<script>
const MerchantColumns = [
{
label: '门店名称',
prop: 'merchantName'
},
{
label: '门店活动价(元)',
width: 220,
addHtml: 'activityPriceSlot'
},
{
label: '尾款金额(元)',
width: 220,
addHtml: 'retainagePriceSlot'
}
]
const notPriceColumns = [
{
label: '门店名称',
prop: 'merchantName'
},
{
label: '门店活动价(元)',
addHtml: 'activityPriceSlot'
}
]
import glsxCombiForm from '@/components/glsx-combi-form'
import brandCascader from './components/brandCascader'
import selectGoods from './components/selectGoods'
......@@ -80,6 +106,18 @@ export default {
selectCarDialog,
selectMerchantDialog
},
watch:{
'formObj.paymentType':{
handler(nVal, oVal){
if(nVal==1) {
this.selectedtableParams.tableColumns = notPriceColumns
}else{
this.selectedtableParams.tableColumns = MerchantColumns
}
},
deep: true
}
},
data() {
return {
goodsVisible: false,
......@@ -252,23 +290,9 @@ export default {
selectedtableParams: {
listName: 'list',
tableOption: {
width: 180
width: 100
},
tableColumns: [
{
label: '门店名称',
width: 200,
prop: 'merchantName'
},
{
label: '门店活动价(元)',
addHtml: 'activityPriceSlot'
},
{
label: '尾款金额(元)',
addHtml: 'retainagePriceSlot'
}
]
tableColumns: notPriceColumns
}
}
},
......@@ -276,10 +300,14 @@ export default {
// this.getCategory()
const urlParam = this.$route.params
this.routeInfo = JSON.parse(decodeURIComponent(urlParam.id))
console.log(this.routeInfo)
const { id, type } = this.routeInfo
if(type == 1) {
this.disabled = true
const _target = this.goodsFormData.find(item => item.name == 'goodsName')
_target.isDisabled = true
this.selectedtableParams.tableOption = null
}
if(id){
this.disabled = type == 1
this.getDetail()
}
},
......@@ -463,7 +491,10 @@ export default {
.selected-table {
margin-top: 10px;
width: 100%;
max-width: 1100px;
max-width: 750px;
.el-button--text{
padding: 0;
}
}
.car-series-wrap{
margin-top: 8px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!