交接修复

master
guoshuang 4 years ago
parent ab259a7a14
commit 65de0c415f

@ -275,8 +275,7 @@ export default class Aggregating extends BasePage {
onQuery() { onQuery() {
this.$form.validate(async (valid: boolean) => { this.$form.validate(async (valid: boolean) => {
if (!valid) return; if (!valid) return;
await this.model.queryProOrder(this.formParams); this.model.queryProOrder(this.formParams);
this.model.checkAllProOrderList(true);
this.isFormChange = false; this.isFormChange = false;
this.model.isFormChange = this.formParams; this.model.isFormChange = this.formParams;
}); });

@ -186,9 +186,9 @@ export class AggregatingModule extends VuexModule {
*/ */
@MutationAction @MutationAction
async queryProOrder(params: any) { async queryProOrder(params: any) {
const { list: proOrderList }: any = await http.post(url.sumscan.query.orderno, params); const { values }: any = await http.post(url.sumscan.query.orderno, params);
//const proOrderList = values.map((v: string) => ({ prdOrder: v })); const proOrderList = values.map((v: string) => ({ prdOrder: v }));
//proOrderList.forEach((_: any) => (_.checked = true)); proOrderList.forEach((_: any) => (_.checked = true));
if (!proOrderList.length) { if (!proOrderList.length) {
uni.showToast({ uni.showToast({
icon: 'none', icon: 'none',

Loading…
Cancel
Save