|
|
@@ -58,7 +58,12 @@
|
|
|
<div class="van-cell refreshBtnBox">
|
|
|
<div style="font-size: 16px; margin-right: 20px">已签到成功</div>
|
|
|
<div class="refresh">
|
|
|
- <van-icon style="font-weight: 600" name="replay" size="20" color="#1989fa" />
|
|
|
+ <van-icon
|
|
|
+ style="font-weight: 600"
|
|
|
+ name="replay"
|
|
|
+ size="20"
|
|
|
+ color="#1989fa"
|
|
|
+ @click="getQRChainList" />
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -112,7 +117,13 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
+import { getSummaryQrCheckList } from '@/api/index';
|
|
|
export default {
|
|
|
+ props: {
|
|
|
+ qrUuid: {
|
|
|
+ type: String,
|
|
|
+ },
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
// 活动数据
|
|
|
@@ -133,143 +144,78 @@ export default {
|
|
|
maxDate: new Date(2025, 10, 1),
|
|
|
},
|
|
|
validDate: new Date(),
|
|
|
- QRChainList: [
|
|
|
- {
|
|
|
- searchValue: null,
|
|
|
- createBy: null,
|
|
|
- createTime: null,
|
|
|
- updateBy: null,
|
|
|
- updateTime: null,
|
|
|
- remark: null,
|
|
|
- params: {},
|
|
|
- pageSize: null,
|
|
|
- pageNum: null,
|
|
|
- chainId: null,
|
|
|
- chainCode: '0110005930',
|
|
|
- chainName: '洛阳市西工今典装饰行',
|
|
|
- delFlag: null,
|
|
|
- orgCode: null,
|
|
|
- orgCodes: null,
|
|
|
- orgIds: null,
|
|
|
- orgName: '12城-洛阳销售部',
|
|
|
- provinceName: null,
|
|
|
- cityName: null,
|
|
|
- cityLevel: null,
|
|
|
- districtName: null,
|
|
|
- freeze: null,
|
|
|
- salesOrg: null,
|
|
|
- productLineCode: null,
|
|
|
- orgId: '1162',
|
|
|
- close: null,
|
|
|
- typeCode1: null,
|
|
|
- typeName1: null,
|
|
|
- typeCode2: null,
|
|
|
- typeName2: null,
|
|
|
- typeName2List: null,
|
|
|
- typeCode2List: null,
|
|
|
- typeCode3: null,
|
|
|
- typeName3: null,
|
|
|
- type: null,
|
|
|
- customerTypeCode2: null,
|
|
|
- customerTypeName2: null,
|
|
|
- valid: null,
|
|
|
- workCode: null,
|
|
|
- nickName: null,
|
|
|
- storeCategory: null,
|
|
|
- categoryDescribe: null,
|
|
|
- visitId: null,
|
|
|
- lat: null,
|
|
|
- lon: null,
|
|
|
- startTime: null,
|
|
|
- endTime: null,
|
|
|
- stateString: null,
|
|
|
- mainCustomerCode: null,
|
|
|
- mainCustomerName: null,
|
|
|
- openDate: null,
|
|
|
- customerManager: null,
|
|
|
- monthVisited: null,
|
|
|
- chainsName: null,
|
|
|
- hisTime: null,
|
|
|
- myChainsVisit: null,
|
|
|
- chainLabelTypes: null,
|
|
|
- chainLabels: null,
|
|
|
- skuNum: null,
|
|
|
- fhCustomer: null,
|
|
|
- shipped: null,
|
|
|
- chainSonName: null,
|
|
|
- beOverdueOne: null,
|
|
|
- beOverdueTwo: null,
|
|
|
- beOverdueThree: null,
|
|
|
- limit: null,
|
|
|
- },
|
|
|
- {
|
|
|
- searchValue: null,
|
|
|
- createBy: null,
|
|
|
- createTime: null,
|
|
|
- updateBy: null,
|
|
|
- updateTime: null,
|
|
|
- remark: null,
|
|
|
- params: {},
|
|
|
- pageSize: null,
|
|
|
- pageNum: null,
|
|
|
- chainId: null,
|
|
|
- chainCode: '0110033307',
|
|
|
- chainName: '洛阳豪沃德机械设备有限公司',
|
|
|
- delFlag: null,
|
|
|
- orgCode: null,
|
|
|
- orgCodes: null,
|
|
|
- orgIds: null,
|
|
|
- orgName: '36城-豫西销售部',
|
|
|
- provinceName: null,
|
|
|
- cityName: null,
|
|
|
- cityLevel: null,
|
|
|
- districtName: null,
|
|
|
- freeze: null,
|
|
|
- salesOrg: null,
|
|
|
- productLineCode: null,
|
|
|
- orgId: '1111',
|
|
|
- close: null,
|
|
|
- typeCode1: null,
|
|
|
- typeName1: null,
|
|
|
- typeCode2: null,
|
|
|
- typeName2: null,
|
|
|
- typeName2List: null,
|
|
|
- typeCode2List: null,
|
|
|
- typeCode3: null,
|
|
|
- typeName3: null,
|
|
|
- type: null,
|
|
|
- customerTypeCode2: null,
|
|
|
- customerTypeName2: null,
|
|
|
- valid: null,
|
|
|
- workCode: null,
|
|
|
- nickName: null,
|
|
|
- storeCategory: null,
|
|
|
- categoryDescribe: null,
|
|
|
- visitId: null,
|
|
|
- lat: null,
|
|
|
- lon: null,
|
|
|
- startTime: null,
|
|
|
- endTime: null,
|
|
|
- stateString: null,
|
|
|
- mainCustomerCode: null,
|
|
|
- mainCustomerName: null,
|
|
|
- openDate: null,
|
|
|
- customerManager: null,
|
|
|
- monthVisited: null,
|
|
|
- chainsName: null,
|
|
|
- hisTime: null,
|
|
|
- myChainsVisit: null,
|
|
|
- chainLabelTypes: null,
|
|
|
- chainLabels: null,
|
|
|
- skuNum: null,
|
|
|
- fhCustomer: null,
|
|
|
- shipped: null,
|
|
|
- chainSonName: null,
|
|
|
- beOverdueOne: null,
|
|
|
- beOverdueTwo: null,
|
|
|
- beOverdueThree: null,
|
|
|
- limit: null,
|
|
|
- },
|
|
|
+ QRChainList: [],
|
|
|
+ };
|
|
|
+ },
|
|
|
+ activated() {
|
|
|
+ if (this.qrUuid) {
|
|
|
+ this.getQRChainList();
|
|
|
+ }
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ activityOnConfirm(date) {
|
|
|
+ this.activityForm.activityDate = this.formatDate(date);
|
|
|
+ this.activityShowCalendar = false;
|
|
|
+ },
|
|
|
+ // 打开二维码
|
|
|
+ openQRCode(values) {
|
|
|
+ this.$emit('onSubmit', values, () => {
|
|
|
+ this.QRCodeBox = true;
|
|
|
+ });
|
|
|
+ },
|
|
|
+ clickValidDateShow(type) {
|
|
|
+ if (type == 'start') {
|
|
|
+ this.activate = {
|
|
|
+ type: type,
|
|
|
+ title: '请选择开始日期',
|
|
|
+ minDate: new Date(2025, 9, 1),
|
|
|
+ maxDate: new Date(2026, 9, 1),
|
|
|
+ };
|
|
|
+ this.validDate = new Date(2025, 9, 1);
|
|
|
+ } else {
|
|
|
+ this.activate = {
|
|
|
+ type: type,
|
|
|
+ title: '请选择结束日期',
|
|
|
+ minDate: this.activityForm.validDateStart
|
|
|
+ ? new Date(this.activityForm.validDateStart)
|
|
|
+ : new Date(),
|
|
|
+ maxDate: new Date(2026, 9, 1),
|
|
|
+ };
|
|
|
+ this.validDate = this.activityForm.validDateEnd
|
|
|
+ ? new Date(this.activityForm.validDateEnd)
|
|
|
+ : new Date();
|
|
|
+ }
|
|
|
+ this.validDateShow = true;
|
|
|
+ },
|
|
|
+ onValidDateConfirm(date) {
|
|
|
+ let time = this.parseTime(new Date(date), '{y}-{m}-{d} {h}:{i}:{s}') + '';
|
|
|
+ if (this.activate.type == 'start') {
|
|
|
+ this.activityForm.validDateStart = time;
|
|
|
+ if (
|
|
|
+ new Date(this.activityForm.validDateStart).getTime() >
|
|
|
+ new Date(this.activityForm.validDateEnd).getTime()
|
|
|
+ ) {
|
|
|
+ this.activityForm.validDateEnd = null;
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.activityForm.validDateEnd = time;
|
|
|
+ }
|
|
|
+ this.validDateShow = false;
|
|
|
+ },
|
|
|
+ formatDate(date) {
|
|
|
+ var Month = date.getMonth() + 1;
|
|
|
+ var Day = date.getDate();
|
|
|
+ if (Month < 10) {
|
|
|
+ Month = '0' + Month;
|
|
|
+ }
|
|
|
+ if (Day < 10) {
|
|
|
+ Day = '0' + Day;
|
|
|
+ }
|
|
|
+ return `${date.getFullYear()}-${Month}-${Day}`;
|
|
|
+ },
|
|
|
+ getQRChainList() {
|
|
|
+ if (!this.qrUuid) return;
|
|
|
+ this.QRChainList = [
|
|
|
{
|
|
|
searchValue: null,
|
|
|
createBy: null,
|
|
|
@@ -338,69 +284,10 @@ export default {
|
|
|
beOverdueThree: null,
|
|
|
limit: null,
|
|
|
},
|
|
|
- ],
|
|
|
- };
|
|
|
- },
|
|
|
- methods: {
|
|
|
- activityOnConfirm(date) {
|
|
|
- this.activityForm.activityDate = this.formatDate(date);
|
|
|
- this.activityShowCalendar = false;
|
|
|
- },
|
|
|
- // 打开二维码
|
|
|
- openQRCode(values) {
|
|
|
- this.$emit('onSubmit', values, () => {
|
|
|
- this.QRCodeBox = true;
|
|
|
- });
|
|
|
- },
|
|
|
- clickValidDateShow(type) {
|
|
|
- if (type == 'start') {
|
|
|
- this.activate = {
|
|
|
- type: type,
|
|
|
- title: '请选择开始日期',
|
|
|
- minDate: new Date(2025, 9, 1),
|
|
|
- maxDate: new Date(2026, 9, 1),
|
|
|
- };
|
|
|
- this.validDate = new Date(2025, 9, 1);
|
|
|
- } else {
|
|
|
- this.activate = {
|
|
|
- type: type,
|
|
|
- title: '请选择结束日期',
|
|
|
- minDate: this.activityForm.validDateStart
|
|
|
- ? new Date(this.activityForm.validDateStart)
|
|
|
- : new Date(),
|
|
|
- maxDate: new Date(2026, 9, 1),
|
|
|
- };
|
|
|
- this.validDate = this.activityForm.validDateEnd
|
|
|
- ? new Date(this.activityForm.validDateEnd)
|
|
|
- : new Date();
|
|
|
- }
|
|
|
- this.validDateShow = true;
|
|
|
- },
|
|
|
- onValidDateConfirm(date) {
|
|
|
- let time = this.parseTime(new Date(date), '{y}-{m}-{d} {h}:{i}:{s}') + '';
|
|
|
- if (this.activate.type == 'start') {
|
|
|
- this.activityForm.validDateStart = time;
|
|
|
- if (
|
|
|
- new Date(this.activityForm.validDateStart).getTime() >
|
|
|
- new Date(this.activityForm.validDateEnd).getTime()
|
|
|
- ) {
|
|
|
- this.activityForm.validDateEnd = null;
|
|
|
- }
|
|
|
- } else {
|
|
|
- this.activityForm.validDateEnd = time;
|
|
|
- }
|
|
|
- this.validDateShow = false;
|
|
|
- },
|
|
|
- formatDate(date) {
|
|
|
- var Month = date.getMonth() + 1;
|
|
|
- var Day = date.getDate();
|
|
|
- if (Month < 10) {
|
|
|
- Month = '0' + Month;
|
|
|
- }
|
|
|
- if (Day < 10) {
|
|
|
- Day = '0' + Day;
|
|
|
- }
|
|
|
- return `${date.getFullYear()}-${Month}-${Day}`;
|
|
|
+ ];
|
|
|
+ // this.getSummaryQrCheckList({qrUuid:this.qrUuid}).then((res) => {
|
|
|
+
|
|
|
+ // });
|
|
|
},
|
|
|
},
|
|
|
};
|