|
|
|
@ -114,8 +114,10 @@
|
|
|
|
|
label="生效时间" |
|
|
|
|
:rules="{ required: true, message: '请选择生效时间', trigger: ['change', 'blur'] }" |
|
|
|
|
prop="effectiveTime" |
|
|
|
|
|
|
|
|
|
> |
|
|
|
|
<el-date-picker |
|
|
|
|
:disabled="!loadstate" |
|
|
|
|
v-model="details.form.effectiveTime" |
|
|
|
|
type="date" |
|
|
|
|
placeholder="请选择生效时间" |
|
|
|
@ -124,7 +126,7 @@
|
|
|
|
|
value-format="YYYY-MM-DD" |
|
|
|
|
/> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item |
|
|
|
|
<!-- <el-form-item |
|
|
|
|
label="到期时间" |
|
|
|
|
:rules="{ required: true, message: '请选择到期时间', trigger: ['change', 'blur'] }" |
|
|
|
|
prop="expiryTime" |
|
|
|
@ -137,7 +139,7 @@
|
|
|
|
|
:shortcuts="shortcuts" |
|
|
|
|
value-format="YYYY-MM-DD" |
|
|
|
|
/> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-form-item> --> |
|
|
|
|
<el-form-item |
|
|
|
|
label="价格体系模板" |
|
|
|
|
:rules="{ required: true, message: '请选择体系模板', trigger: ['change', 'blur'] }" |
|
|
|
@ -257,6 +259,7 @@ const $router = useRouter(); //跳转
|
|
|
|
|
const $useStore = useStore(); //权限 |
|
|
|
|
const $route = useRoute(); //获取地址栏参数 |
|
|
|
|
const dialogTemp = ref(false); |
|
|
|
|
const loadstate=ref(true);//tru新增 |
|
|
|
|
const Historical = reactive({ |
|
|
|
|
popUpShow: false, //历史版本弹窗 |
|
|
|
|
data: [], //历史版本数据 |
|
|
|
@ -386,10 +389,10 @@ const ImportTemplate = () => {
|
|
|
|
|
dialogTemp.value = true; |
|
|
|
|
}; |
|
|
|
|
/** 生效时间 -- 生效时间不能大于到期时间 */ |
|
|
|
|
const time1 = time => { |
|
|
|
|
if (!details.form.expiryTime) return false; |
|
|
|
|
return time.getTime() > new Date(details.form.expiryTime).getTime(); |
|
|
|
|
}; |
|
|
|
|
// const time1 = time => { |
|
|
|
|
// if (!details.form.expiryTime) return false; |
|
|
|
|
// return time.getTime() > new Date(details.form.expiryTime).getTime(); |
|
|
|
|
// }; |
|
|
|
|
|
|
|
|
|
/** 到期时间 -- 到期时间不能小于生效时间 */ |
|
|
|
|
const time2 = time => { |
|
|
|
@ -652,6 +655,7 @@ const deletetails = row => {
|
|
|
|
|
/** 设置客户 */ |
|
|
|
|
const handleClient = async row => { |
|
|
|
|
try { |
|
|
|
|
loadstate.value = false; |
|
|
|
|
details.loadingObj.pageLoading = true; |
|
|
|
|
let _data = { |
|
|
|
|
brandId: row.brandId, |
|
|
|
@ -696,6 +700,7 @@ const addition = async () => {
|
|
|
|
|
}); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
loadstate.value = true; |
|
|
|
|
console.log(details.selectionList, 'details.selectionList'); |
|
|
|
|
let _row = details.selectionList[0]; |
|
|
|
|
console.log(_row, '_row'); |
|
|
|
|