Browse Source

客户价格管理去掉到期日期,编辑禁止修改神效日期

dev
马远东 2 days ago
parent
commit
12d51d8e31
  1. 2
      src/option/Pricesystem/index.js
  2. 17
      src/views/Pricesystem/ListOfPriceSystems.vue

2
src/option/Pricesystem/index.js

@ -118,7 +118,7 @@ export const columnList = [
label: '操作',
type: 6,
values: '',
width: '200',
width: '300',
checkarr: [],
fixed: 'right',
sortable: false,

17
src/views/Pricesystem/ListOfPriceSystems.vue

@ -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');

Loading…
Cancel
Save