chenhaozhe
8 天以前 ae3919d6406ac4a796ff3ffc35a5b4bd129e8a7c
pages/ZLGL/OA_WorkLink/OA_WorkLinkBillQuery.vue
@@ -48,6 +48,9 @@
        </view>
        <!-- 工作联系单 列表 -->
        <view>
        </view>
        <view class="list" v-for="(item,index) in BillsDisplay" :key="index">
            <uni-card :title="item.制单日期.substr(0,10)" :extra="item.单据号" style="margin: 10px;"
                @tap="showDetail = showDetail==index?-1:index">
@@ -102,6 +105,7 @@
            </uni-card>
        </view>
        <view class="over" v-if="BillsDisplay.length == 0">暂无数据</view>
    </view>
</template>
@@ -132,7 +136,15 @@
                sWhere: "",
                showDetail: -1,
                operations: -1,
                page: 1,
                size: 20,
            };
        },
        // 触底加载
        onReachBottom() {
            console.log('触发触底加载...');
        },
        methods: {
            onDateRangePickerChangeHandler({
@@ -175,7 +187,7 @@
                }
            },
            onSearchClickHandler() {
               this.switchTab(this.tabs)
                this.switchTab(this.tabs)
            },
            onResetClickHandler() {
                this.dateRangePicker = ["任意间隔", "今天", "近两天", "近三天", "近四天", "近五天", "近六天", "近七天", "近30天"],
@@ -208,14 +220,17 @@
                this.getWorkLinkList()
            },
            async getWorkLinkList() {
                this.sWhere += ` and 日期 >= CONVERT(VARCHAR(10), '${this.startDate}', 23) and 日期 <= CONVERT(VARCHAR(10), '${this.endDate}', 23)`
                this.sWhere +=
                    ` and 日期 >= CONVERT(VARCHAR(10), '${this.startDate}', 23) and 日期 <= CONVERT(VARCHAR(10), '${this.endDate}', 23)`
                try {
                    let res = await CommonUtils.doRequest2Async({
                        url: 'Sc_MESTransFerWorkBill/GetOA_WorkLinkBillList',
                        data: {
                            sWhere: this.sWhere,
                            user: getUserInfo()["Czymc"]
                            user: getUserInfo()["Czymc"],
                            page: this.page,
                            size: this.size
                        }
                    })