Browse Source

还原客户价格到期日期

dev
马远东 2 days ago
parent
commit
771ff12693
  1. 13
      src/views/Pricesystem/ListOfPriceSystems.vue

13
src/views/Pricesystem/ListOfPriceSystems.vue

@ -117,7 +117,6 @@
>
<el-date-picker
:disabled="!loadstate"
v-model="details.form.effectiveTime"
type="date"
placeholder="请选择生效时间"
@ -126,7 +125,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"
@ -139,7 +138,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'] }"
@ -389,10 +388,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 => {

Loading…
Cancel
Save