|
@@ -593,6 +593,13 @@ export default {
|
|
|
}
|
|
|
callback()
|
|
|
}
|
|
|
+ var checkDays = (rule,value,callback) => {
|
|
|
+ let siteid = JSON.parse(sessionStorage.getItem('active_account')).siteid
|
|
|
+ if (isNaN(value) && (siteid == 'HY' || siteid == 'YOSTEST1')) {
|
|
|
+ return callback(new Error(this.$t("请填写数字")));
|
|
|
+ }
|
|
|
+ callback();
|
|
|
+ };
|
|
|
var NumberSize = (rule, value, callback) => {
|
|
|
if (isNaN(parseFloat(value)) && value !== ''){
|
|
|
return callback(new Error(this.$t('输入不合法,请输入数值') ))
|
|
@@ -685,6 +692,7 @@ export default {
|
|
|
],
|
|
|
reminddays: [
|
|
|
{ required: true, message: this.$t('请设置发货日期提醒天数'), trigger: 'blur' },
|
|
|
+ {validator: checkDays,trigger: "change"}
|
|
|
],
|
|
|
enterprisename: [
|
|
|
{ required: true, message: this.$t('请选择'), trigger: 'change' },
|
|
@@ -793,6 +801,10 @@ export default {
|
|
|
this.form.customername = this.data.ascription_enterprisename
|
|
|
this.form.customerid = this.data.ascription_enterpriseid
|
|
|
this.drawer = true
|
|
|
+ if (!this.form.reminddays){
|
|
|
+ let siteid = JSON.parse(sessionStorage.getItem('active_account')).siteid
|
|
|
+ siteid == 'HY' || siteid == 'YOSTEST1'?this.form.reminddays = 7:this.form.reminddays = ''
|
|
|
+ }
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs.timeSelect.time = [this.form.begdate,this.form.enddate]
|
|
|
this.payTypeList()
|