|
@@ -15,8 +15,8 @@
|
|
|
</a-select-option>
|
|
</a-select-option>
|
|
|
</a-select>
|
|
</a-select>
|
|
|
<a-range-picker
|
|
<a-range-picker
|
|
|
- v-show="timeType == '1'"
|
|
|
|
|
- @change="onChangeTime(1)"
|
|
|
|
|
|
|
+ v-show="timeType == '2'"
|
|
|
|
|
+ @change="onChangeTime(2)"
|
|
|
v-model="signingTime"
|
|
v-model="signingTime"
|
|
|
value-format="YYYY-MM-DD"
|
|
value-format="YYYY-MM-DD"
|
|
|
style="margin-left: 10px"
|
|
style="margin-left: 10px"
|
|
@@ -24,8 +24,8 @@
|
|
|
<a-icon slot="suffixIcon" type="calendar" />
|
|
<a-icon slot="suffixIcon" type="calendar" />
|
|
|
</a-range-picker>
|
|
</a-range-picker>
|
|
|
<a-range-picker
|
|
<a-range-picker
|
|
|
- v-show="timeType == '2'"
|
|
|
|
|
- @change="onChangeTime(2)"
|
|
|
|
|
|
|
+ v-show="timeType == '1'"
|
|
|
|
|
+ @change="onChangeTime(1)"
|
|
|
v-model="enterTime"
|
|
v-model="enterTime"
|
|
|
value-format="YYYY-MM-DD"
|
|
value-format="YYYY-MM-DD"
|
|
|
style="margin-left: 10px"
|
|
style="margin-left: 10px"
|
|
@@ -56,10 +56,10 @@ export default {
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
timeList: [
|
|
timeList: [
|
|
|
- { value: "1", label: "签单时间" },
|
|
|
|
|
- { value: "2", label: "录单时间" },
|
|
|
|
|
|
|
+ { value: "2", label: "签单时间" },
|
|
|
|
|
+ { value: "1", label: "录单时间" },
|
|
|
],
|
|
],
|
|
|
- timeType: "1",
|
|
|
|
|
|
|
+ timeType: "2",
|
|
|
signingTime: [
|
|
signingTime: [
|
|
|
moment().format("YYYY-MM-DD"),
|
|
moment().format("YYYY-MM-DD"),
|
|
|
moment().format("YYYY-MM-DD"),
|
|
moment().format("YYYY-MM-DD"),
|
|
@@ -70,7 +70,6 @@ export default {
|
|
|
},
|
|
},
|
|
|
created() {},
|
|
created() {},
|
|
|
mounted() {
|
|
mounted() {
|
|
|
- console.log(this.$props.form)
|
|
|
|
|
if(this.$props.form!=undefined){
|
|
if(this.$props.form!=undefined){
|
|
|
this.timeType=this.$props.form?.timeType
|
|
this.timeType=this.$props.form?.timeType
|
|
|
this.dateType=this.$props.form?.dateType
|
|
this.dateType=this.$props.form?.dateType
|
|
@@ -79,6 +78,10 @@ export default {
|
|
|
}else{
|
|
}else{
|
|
|
this.enterTime=[...this.$props.form?.time]
|
|
this.enterTime=[...this.$props.form?.time]
|
|
|
}
|
|
}
|
|
|
|
|
+ if(this.$props.form?.dateType){
|
|
|
|
|
+ this.signingTime=[]
|
|
|
|
|
+ this.enterTime=[]
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
this.$emit("getList", {
|
|
this.$emit("getList", {
|
|
@@ -108,7 +111,7 @@ export default {
|
|
|
onChangeTime(type) {
|
|
onChangeTime(type) {
|
|
|
// 123;
|
|
// 123;
|
|
|
this.dateType = undefined;
|
|
this.dateType = undefined;
|
|
|
- if (type == 1) {
|
|
|
|
|
|
|
+ if (type == 2) {
|
|
|
this.$emit("getList", {
|
|
this.$emit("getList", {
|
|
|
dateType: undefined,
|
|
dateType: undefined,
|
|
|
signingTimeStart: this.signingTime[0],
|
|
signingTimeStart: this.signingTime[0],
|
|
@@ -128,7 +131,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
timeTypeChange(val) {
|
|
timeTypeChange(val) {
|
|
|
this.dateType = undefined;
|
|
this.dateType = undefined;
|
|
|
- if (val == 1) {
|
|
|
|
|
|
|
+ if (val == 2) {
|
|
|
this.$emit("getList", {
|
|
this.$emit("getList", {
|
|
|
dateType: undefined,
|
|
dateType: undefined,
|
|
|
signingTimeStart: this.signingTime[0],
|
|
signingTimeStart: this.signingTime[0],
|