完善销售订单, 添加订单排序页
This commit is contained in:
@@ -22,7 +22,7 @@ Component({
|
||||
},
|
||||
customStyle: {
|
||||
type: String,
|
||||
value: "",
|
||||
value: '',
|
||||
},
|
||||
useInputSlot: {
|
||||
type: Boolean,
|
||||
@@ -42,38 +42,43 @@ Component({
|
||||
methods: {
|
||||
showSearch() {
|
||||
this.setData({ show: true });
|
||||
this.triggerEvent("showChange", true);
|
||||
this.triggerEvent('showChange', true);
|
||||
},
|
||||
close() {
|
||||
this.setData({ show: false });
|
||||
this.triggerEvent("showChange", false);
|
||||
this.triggerEvent('showChange', false);
|
||||
},
|
||||
ok() {
|
||||
this.setData({ show: false });
|
||||
this.triggerEvent("showChange", false);
|
||||
this.triggerEvent("ok");
|
||||
this.triggerEvent('showChange', false);
|
||||
this.triggerEvent('ok');
|
||||
},
|
||||
reset() {
|
||||
this.setData({ show: false });
|
||||
this.triggerEvent('showChange', false);
|
||||
this.triggerEvent('reset');
|
||||
},
|
||||
change(e: any) {
|
||||
this.triggerEvent("change", e.detail);
|
||||
this.triggerEvent('change', e.detail);
|
||||
},
|
||||
scanCode() {
|
||||
const _this = this;
|
||||
wx.scanCode({
|
||||
onlyFromCamera: true,
|
||||
scanType: ["qrCode"],
|
||||
scanType: ['qrCode'],
|
||||
success: (res) => {
|
||||
const qrcode = res.result || "";
|
||||
_this.triggerEvent("change", { value: qrcode });
|
||||
_this.triggerEvent("ok");
|
||||
const qrcode = res.result || '';
|
||||
_this.triggerEvent('change', { value: qrcode });
|
||||
_this.triggerEvent('ok');
|
||||
},
|
||||
});
|
||||
},
|
||||
search() {
|
||||
this.triggerEvent("ok");
|
||||
this.triggerEvent('ok');
|
||||
},
|
||||
clear() {
|
||||
this.triggerEvent("change", { value: "" });
|
||||
this.triggerEvent("ok");
|
||||
this.triggerEvent('change', { value: '' });
|
||||
this.triggerEvent('ok');
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user