Commit 162b0d2a by zhangquan

样式优化

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