Commit ee0e895c by 杨北旺

售前权益v1.1.0

1 parent dd4fcae0
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
</el-select> </el-select>
</template> </template>
<template v-if="attr.attributeType == 'datePicker'"> <template v-if="attr.attributeType == 'datePicker'">
<el-date-picker class="arrt_pannel" :disabled="disabled" @change="getCurChangeDate($event, item, attr)" v-model="productModal[item.idName][attr.attributeName]" size="small" type="date" :placeholder="'请选择' + attr.attributeDesc"></el-date-picker> <el-date-picker class="arrt_pannel" :picker-options="pickerOptions" :disabled="disabled || attr.disabled" @change="getCurChangeDate($event, item, attr)" v-model="productModal[item.idName][attr.attributeName]" size="small" type="date" :placeholder="'请选择' + attr.attributeDesc"></el-date-picker>
</template> </template>
</div> </div>
</div> </div>
...@@ -522,7 +522,8 @@ export default { ...@@ -522,7 +522,8 @@ export default {
label: '约定内容', label: '约定内容',
name: 'specialAppoint', name: 'specialAppoint',
type: 'input', type: 'input',
inputType: 'textarea' inputType: 'textarea',
isDisabled:true,
} }
], ],
// 店面信息 // 店面信息
...@@ -672,7 +673,8 @@ export default { ...@@ -672,7 +673,8 @@ export default {
caseTable: [], caseTable: [],
checkCodeList: [], checkCodeList: [],
rightDisable: false, rightDisable: false,
leftDisable: false leftDisable: false,
pickerOptions:{}
} }
}, },
...@@ -750,6 +752,7 @@ export default { ...@@ -750,6 +752,7 @@ export default {
// 测试时使用 // 测试时使用
this.getSpeAgreeOptions() this.getSpeAgreeOptions()
this.getStoreInfo() this.getStoreInfo()
this.pickerOptions = this.setDateLimit()
}, },
mounted() { mounted() {
...@@ -770,6 +773,15 @@ export default { ...@@ -770,6 +773,15 @@ export default {
}, },
methods: { methods: {
// 设置日期组件时间范围
setDateLimit() {
let obj = {
disabledDate(time) {
return time.getTime() == Date.now() || time.getTime() < new Date().getTime()
}
}
return obj
},
// 卡号获取期限 // 卡号获取期限
getDateList(seqNo, pack, attr) { getDateList(seqNo, pack, attr) {
this.$apis.beforeSale.dateBycarNo({ seqNo }).then(res => { this.$apis.beforeSale.dateBycarNo({ seqNo }).then(res => {
...@@ -1191,6 +1203,9 @@ export default { ...@@ -1191,6 +1203,9 @@ export default {
if (ele.attributeName == 'card') { if (ele.attributeName == 'card') {
ele.disabled = true ele.disabled = true
} }
if (ele.attributeName == 'effective_date') {
ele.disabled = true
}
}) })
} }
return item return item
...@@ -1647,7 +1662,7 @@ export default { ...@@ -1647,7 +1662,7 @@ export default {
// return true // return true
// } // }
this.$router.push({ this.$router.push({
path: '/beforeSale/index' path: '/beforeSale/checkSet'
}) })
} }
} }
......
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
<template> <template>
<div class="before-sale"> <div class="before-sale">
<div class="flex m-b-10"> <div class="flex m-b-10">
<el-button :size="size" type="primary" class="el-icon-plus" @click="handleEdit(1)">新增权益</el-button> <!-- <el-button :size="size" type="primary" class="el-icon-plus" @click="handleEdit(1)">新增权益</el-button> -->
<GLButton :size="size" fn="新增权益" icon="el-icon-plus" type="primary" @click="handleEdit(1)">新增权益</GLButton>
<!-- <div class="table-top-tips"><span class="el-icon-warning"></span>请注意:订单列表还有{{countNoData}}单未上传客户凭证等资料,若发生事故无法获得补偿,请尽快在列表操作-上传资料中完善。</div> --> <!-- <div class="table-top-tips"><span class="el-icon-warning"></span>请注意:订单列表还有{{countNoData}}单未上传客户凭证等资料,若发生事故无法获得补偿,请尽快在列表操作-上传资料中完善。</div> -->
</div> </div>
<div class="container"> <div class="container">
...@@ -21,12 +22,13 @@ ...@@ -21,12 +22,13 @@
<div class="table_wrapper"> <div class="table_wrapper">
<GLTable ref="equityRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"> <GLTable ref="equityRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<div class="table-btns" slot="table-btns" slot-scope="scope"> <div class="table-btns" slot="table-btns" slot-scope="scope">
<el-button v-if="[2, 4, 5].includes(scope.scope.orderStatus)" type="text" @click="handleEdit(5, scope.scope)">查看</el-button> <GLButton v-if="[2, 4, 5].includes(scope.scope.orderStatus)" fn="查看" type="text" @click="handleEdit(5, scope.scope)">查看</GLButton>
<!-- <el-button v-if="[2, 4, 5].includes(scope.scope.orderStatus)" type="text" @click="handleEdit(5, scope.scope)">查看</el-button> -->
<el-button v-if="[2].includes(scope.scope.orderStatus)" type="text" @click="handlePdf(scope.scope)">打印</el-button> <el-button v-if="[2].includes(scope.scope.orderStatus)" type="text" @click="handlePdf(scope.scope)">打印</el-button>
<el-button v-if="[0].includes(scope.scope.orderStatus)" type="text" @click="handleEdit(2, scope.scope)">编辑</el-button> <GLButton v-if="[0].includes(scope.scope.orderStatus)" fn="编辑" type="text" @click="handleEdit(2, scope.scope)">编辑</GLButton>
<el-button v-if="[2].includes(scope.scope.orderStatus)" type="text" @click="handleEdit(3, scope.scope)">修改</el-button> <GLButton v-if="[2].includes(scope.scope.orderStatus)" fn="修改" type="text" @click="handleEdit(3, scope.scope)">修改</GLButton>
<el-button v-if="[2].includes(scope.scope.orderStatus)" type="text" @click="handleBack(scope.scope)">退单</el-button> <el-button v-if="[2].includes(scope.scope.orderStatus)" type="text" @click="handleBack(scope.scope)">退单</el-button>
<el-button v-if="[3, 4, 5].includes(scope.scope.orderStatus)" type="text" @click="handleEdit(4, scope.scope)">重新提单</el-button> <GLButton v-if="[3, 4, 5].includes(scope.scope.orderStatus)" fn="重新提单" type="text" @click="handleEdit(4, scope.scope)">重新提单</GLButton>
</div> </div>
</GLTable> </GLTable>
</div> </div>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!