|
|
@ -113,8 +113,8 @@ export class VirtualModule extends VuexModule {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@MutationAction
|
|
|
|
@MutationAction
|
|
|
|
async queryProOrder(params: any) {
|
|
|
|
async queryProOrder(params: any) {
|
|
|
|
const {list}: any = await http.post(url.virtual.query.orderno, params);
|
|
|
|
const { list: proOrderList }: any = await http.post(url.virtual.query.orderno, params);
|
|
|
|
const proOrderList = list.map((v: string) => ({ prdOrder: v }));
|
|
|
|
//const proOrderList = list.map((v: any) => ({ prdOrder: v.prdOrder, amount: v.amount, materialCode: v.materialCode, materialDesc: v.materialDesc }));
|
|
|
|
proOrderList.forEach((_: any) => (_.checked = true));
|
|
|
|
proOrderList.forEach((_: any) => (_.checked = true));
|
|
|
|
if (!proOrderList.length) {
|
|
|
|
if (!proOrderList.length) {
|
|
|
|
vm.customToast(vm.$t('message.Pi_NoDataFound') as any);
|
|
|
|
vm.customToast(vm.$t('message.Pi_NoDataFound') as any);
|
|
|
|