Commit ee0e895c by 杨北旺

售前权益v1.1.0

1 parent dd4fcae0
......@@ -71,7 +71,7 @@
</el-select>
</template>
<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>
</div>
</div>
......@@ -522,7 +522,8 @@ export default {
label: '约定内容',
name: 'specialAppoint',
type: 'input',
inputType: 'textarea'
inputType: 'textarea',
isDisabled:true,
}
],
// 店面信息
......@@ -672,7 +673,8 @@ export default {
caseTable: [],
checkCodeList: [],
rightDisable: false,
leftDisable: false
leftDisable: false,
pickerOptions:{}
}
},
......@@ -750,6 +752,7 @@ export default {
// 测试时使用
this.getSpeAgreeOptions()
this.getStoreInfo()
this.pickerOptions = this.setDateLimit()
},
mounted() {
......@@ -770,6 +773,15 @@ export default {
},
methods: {
// 设置日期组件时间范围
setDateLimit() {
let obj = {
disabledDate(time) {
return time.getTime() == Date.now() || time.getTime() < new Date().getTime()
}
}
return obj
},
// 卡号获取期限
getDateList(seqNo, pack, attr) {
this.$apis.beforeSale.dateBycarNo({ seqNo }).then(res => {
......@@ -1191,6 +1203,9 @@ export default {
if (ele.attributeName == 'card') {
ele.disabled = true
}
if (ele.attributeName == 'effective_date') {
ele.disabled = true
}
})
}
return item
......@@ -1647,7 +1662,7 @@ export default {
// return true
// }
this.$router.push({
path: '/beforeSale/index'
path: '/beforeSale/checkSet'
})
}
}
......
......@@ -2,7 +2,8 @@
<template>
<div class="before-sale">
<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>
<div class="container">
......@@ -21,12 +22,13 @@
<div class="table_wrapper">
<GLTable ref="equityRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<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="[0].includes(scope.scope.orderStatus)" type="text" @click="handleEdit(2, scope.scope)">编辑</el-button>
<el-button v-if="[2].includes(scope.scope.orderStatus)" type="text" @click="handleEdit(3, scope.scope)">修改</el-button>
<GLButton v-if="[0].includes(scope.scope.orderStatus)" fn="编辑" type="text" @click="handleEdit(2, scope.scope)">编辑</GLButton>
<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="[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>
</GLTable>
</div>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!