Files
FreeERP.Applet/miniprogram/pages/produce/processManageDetail/processManageDetail.ts

86 lines
1.7 KiB
TypeScript
Raw Normal View History

import { getDataSet } from "@/utils/util";
Page({
/**
*
*/
data: {
params: { curr_page: 1, page_count: 20, state: "1", process_id: "" },
list: [
{
order_no: "XSDD2025112500000043",
custom_name: "客户5",
custom_address: "",
custom_phone: null,
custom_order_no: "",
goods_name: "浴室柜",
info_process_id: 163,
produce_info_id: 62,
process_code: "ld",
state: 1,
end_user_address: null,
end_user_name: null,
end_user_phone: null,
},
],
count: 1,
},
tabChange(e: any) {
const state = getDataSet(e).key;
this.data.params.state = state;
this.page();
},
page(curr: number = 1) {
this.data.params.curr_page = curr;
this.setData({ params: this.data.params });
},
/**
* --
*/
onLoad(options) {
// console.log(options);
wx.setNavigationBarTitle({
title: decodeURIComponent(options.title || ""),
});
this.data.params.process_id = `${options.process_id || ""}`;
this.page();
},
/**
* --
*/
onReady() {},
/**
* --
*/
onShow() {},
/**
* --
*/
onHide() {},
/**
* --
*/
onUnload() {},
/**
* --
*/
onPullDownRefresh() {},
/**
*
*/
onReachBottom() {},
/**
*
*/
onShareAppMessage() {},
});