|
@@ -771,120 +771,120 @@ const orderDefaultAction = [
|
|
|
}
|
|
|
}
|
|
|
}),
|
|
|
- [
|
|
|
- buttonDefault({
|
|
|
- label: "刷新带出配置",
|
|
|
- limited: () => {
|
|
|
- return !orderStatus.value || editType.value == 3;
|
|
|
- },
|
|
|
- clickFunc: item => {
|
|
|
- RefreshMattressInterfaceList(LjDetailRef.value?._mainData.mattressid, 0, LjDetailRef.value?._mainData.erp_configcodetype);
|
|
|
- }
|
|
|
- }),
|
|
|
- buttonDefault({
|
|
|
- label: "复制配置",
|
|
|
- limited: () => {
|
|
|
- return !orderStatus.value || editType.value == 3;
|
|
|
- },
|
|
|
- clickFunc: item => {
|
|
|
- fModelChoseMattress().then((res: any) => {
|
|
|
- RefreshMattressInterfaceList(res.mattressid, 1);
|
|
|
- });
|
|
|
- }
|
|
|
- }),
|
|
|
- buttonDefault({
|
|
|
- label: "重新生成配置项目",
|
|
|
- limited: () => {
|
|
|
- return !orderStatus.value || editType.value != 1;
|
|
|
- },
|
|
|
- disabledTextCallBack: (data: any) => {
|
|
|
- if (data.yw_flag == 1) {
|
|
|
- return "已业务补充审核,无法操作";
|
|
|
- }
|
|
|
- return "";
|
|
|
- },
|
|
|
- clickFunc: item => {
|
|
|
- RefreshMattressInterfaceList(LjDetailRef.value?._mainData.mattressid, 2, LjDetailRef.value?._mainData.erp_configcodetype);
|
|
|
- }
|
|
|
- })
|
|
|
- ],
|
|
|
- [
|
|
|
- buttonDefault({
|
|
|
- label: "刷新清单",
|
|
|
- limited: () => {
|
|
|
- return !orderStatus.value;
|
|
|
- },
|
|
|
- clickFunc: item => {
|
|
|
- RefreshMattressInterfaceQdList(LjDetailRef.value?._mainData.mattressid, 0);
|
|
|
- }
|
|
|
- }),
|
|
|
- buttonDefault({
|
|
|
- label: "复制清单",
|
|
|
- limited: () => {
|
|
|
- return !orderStatus.value;
|
|
|
- },
|
|
|
- clickFunc: item => {
|
|
|
- fModelChoseMattress().then((res: any) => {
|
|
|
- RefreshMattressInterfaceQdList(res.mattressid, 1, 0);
|
|
|
- });
|
|
|
- }
|
|
|
- }),
|
|
|
- buttonDefault({
|
|
|
- label: "重新生成清单",
|
|
|
- limited: () => {
|
|
|
- return !orderStatus.value;
|
|
|
- },
|
|
|
- clickFunc: item => {
|
|
|
- RefreshMattressInterfaceQdList(LjDetailRef.value?._mainData.mattressid, 2);
|
|
|
+ // [
|
|
|
+ buttonDefault({
|
|
|
+ label: "刷新带出配置",
|
|
|
+ limited: () => {
|
|
|
+ return !orderStatus.value || editType.value == 3;
|
|
|
+ },
|
|
|
+ clickFunc: item => {
|
|
|
+ RefreshMattressInterfaceList(LjDetailRef.value?._mainData.mattressid, 0, LjDetailRef.value?._mainData.erp_configcodetype);
|
|
|
+ }
|
|
|
+ }),
|
|
|
+ buttonDefault({
|
|
|
+ label: "复制配置",
|
|
|
+ limited: () => {
|
|
|
+ return !orderStatus.value || editType.value == 3;
|
|
|
+ },
|
|
|
+ clickFunc: item => {
|
|
|
+ fModelChoseMattress().then((res: any) => {
|
|
|
+ RefreshMattressInterfaceList(res.mattressid, 1);
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }),
|
|
|
+ buttonDefault({
|
|
|
+ label: "重新生成配置项目",
|
|
|
+ limited: () => {
|
|
|
+ return !orderStatus.value || editType.value != 1;
|
|
|
+ },
|
|
|
+ disabledTextCallBack: (data: any) => {
|
|
|
+ if (data.yw_flag == 1) {
|
|
|
+ return "已业务补充审核,无法操作";
|
|
|
}
|
|
|
- })
|
|
|
- ],
|
|
|
- [
|
|
|
- buttonDefault({
|
|
|
- label: "增行",
|
|
|
- limited: () => {
|
|
|
- return !orderStatus.value;
|
|
|
- },
|
|
|
- clickFunc: item => {}
|
|
|
- }),
|
|
|
- buttonDefault({
|
|
|
- label: "插行",
|
|
|
- limited: () => {
|
|
|
- return !orderStatus.value;
|
|
|
- },
|
|
|
- clickFunc: item => {},
|
|
|
- divider: true
|
|
|
- }),
|
|
|
- buttonDefault({
|
|
|
- label: "上移",
|
|
|
- limited: () => {
|
|
|
- return !orderStatus.value;
|
|
|
- },
|
|
|
- clickFunc: item => {}
|
|
|
- }),
|
|
|
- buttonDefault({
|
|
|
- label: "下移",
|
|
|
- limited: () => {
|
|
|
- return !orderStatus.value;
|
|
|
- },
|
|
|
- clickFunc: item => {},
|
|
|
- divider: true
|
|
|
- }),
|
|
|
- buttonDefault({
|
|
|
- label: "清单增加默认项目",
|
|
|
- limited: () => {
|
|
|
- return !orderStatus.value;
|
|
|
- },
|
|
|
- clickFunc: () => funcAddRowQd()
|
|
|
- }),
|
|
|
- buttonDefault({
|
|
|
- label: "辅助计算生产尺寸",
|
|
|
- limited: () => {
|
|
|
- return !orderStatus.value;
|
|
|
- },
|
|
|
- clickFunc: () => funcCmpCC()
|
|
|
- })
|
|
|
- ],
|
|
|
+ return "";
|
|
|
+ },
|
|
|
+ clickFunc: item => {
|
|
|
+ RefreshMattressInterfaceList(LjDetailRef.value?._mainData.mattressid, 2, LjDetailRef.value?._mainData.erp_configcodetype);
|
|
|
+ }
|
|
|
+ }),
|
|
|
+ // ],
|
|
|
+ // [
|
|
|
+ buttonDefault({
|
|
|
+ label: "刷新清单",
|
|
|
+ limited: () => {
|
|
|
+ return !orderStatus.value;
|
|
|
+ },
|
|
|
+ clickFunc: item => {
|
|
|
+ RefreshMattressInterfaceQdList(LjDetailRef.value?._mainData.mattressid, 0);
|
|
|
+ }
|
|
|
+ }),
|
|
|
+ buttonDefault({
|
|
|
+ label: "复制清单",
|
|
|
+ limited: () => {
|
|
|
+ return !orderStatus.value;
|
|
|
+ },
|
|
|
+ clickFunc: item => {
|
|
|
+ fModelChoseMattress().then((res: any) => {
|
|
|
+ RefreshMattressInterfaceQdList(res.mattressid, 1, 0);
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }),
|
|
|
+ buttonDefault({
|
|
|
+ label: "重新生成清单",
|
|
|
+ limited: () => {
|
|
|
+ return !orderStatus.value;
|
|
|
+ },
|
|
|
+ clickFunc: item => {
|
|
|
+ RefreshMattressInterfaceQdList(LjDetailRef.value?._mainData.mattressid, 2);
|
|
|
+ }
|
|
|
+ }),
|
|
|
+ // ],
|
|
|
+ // [
|
|
|
+ buttonDefault({
|
|
|
+ label: "增行",
|
|
|
+ limited: () => {
|
|
|
+ return !orderStatus.value;
|
|
|
+ },
|
|
|
+ clickFunc: item => {}
|
|
|
+ }),
|
|
|
+ buttonDefault({
|
|
|
+ label: "插行",
|
|
|
+ limited: () => {
|
|
|
+ return !orderStatus.value;
|
|
|
+ },
|
|
|
+ clickFunc: item => {},
|
|
|
+ divider: true
|
|
|
+ }),
|
|
|
+ buttonDefault({
|
|
|
+ label: "上移",
|
|
|
+ limited: () => {
|
|
|
+ return !orderStatus.value;
|
|
|
+ },
|
|
|
+ clickFunc: item => {}
|
|
|
+ }),
|
|
|
+ buttonDefault({
|
|
|
+ label: "下移",
|
|
|
+ limited: () => {
|
|
|
+ return !orderStatus.value;
|
|
|
+ },
|
|
|
+ clickFunc: item => {},
|
|
|
+ divider: true
|
|
|
+ }),
|
|
|
+ buttonDefault({
|
|
|
+ label: "清单增加默认项目",
|
|
|
+ limited: () => {
|
|
|
+ return !orderStatus.value;
|
|
|
+ },
|
|
|
+ clickFunc: () => funcAddRowQd()
|
|
|
+ }),
|
|
|
+ buttonDefault({
|
|
|
+ label: "辅助计算生产尺寸",
|
|
|
+ limited: () => {
|
|
|
+ return !orderStatus.value;
|
|
|
+ },
|
|
|
+ clickFunc: () => funcCmpCC()
|
|
|
+ }),
|
|
|
+ // ],
|
|
|
buttonDefault({
|
|
|
label: "重置半成品归属列数据",
|
|
|
limited: () => {
|
|
@@ -912,144 +912,144 @@ const orderDefaultAction = [
|
|
|
}
|
|
|
}
|
|
|
}),
|
|
|
- [
|
|
|
- buttonDefault({
|
|
|
- label: "业务补充",
|
|
|
- power: 79,
|
|
|
- limited: () => {
|
|
|
- return !!orderStatus.value || LjDetailRef.value?._mainData.xd_flag == 1;
|
|
|
- },
|
|
|
- disabledTextCallBack: (data: any) => {
|
|
|
- if (data.yw_flag == 1) {
|
|
|
- return "已业务补充审核,无法修改";
|
|
|
- }
|
|
|
- return "";
|
|
|
- },
|
|
|
- clickFunc: item => {
|
|
|
- routeToEdit(1);
|
|
|
+ // [
|
|
|
+ buttonDefault({
|
|
|
+ label: "业务补充",
|
|
|
+ power: 79,
|
|
|
+ limited: () => {
|
|
|
+ return !!orderStatus.value || LjDetailRef.value?._mainData.xd_flag == 1;
|
|
|
+ },
|
|
|
+ disabledTextCallBack: (data: any) => {
|
|
|
+ if (data.yw_flag == 1) {
|
|
|
+ return "已业务补充审核,无法修改";
|
|
|
}
|
|
|
- }),
|
|
|
- buttonDefault({
|
|
|
- label: "业务审核",
|
|
|
- power: 80,
|
|
|
- limited: () => {
|
|
|
- return !!orderStatus.value;
|
|
|
- },
|
|
|
- clickFunc: item => {
|
|
|
- const curRecords = [LjDetailRef.value?._mainData];
|
|
|
+ return "";
|
|
|
+ },
|
|
|
+ clickFunc: item => {
|
|
|
+ routeToEdit(1);
|
|
|
+ }
|
|
|
+ }),
|
|
|
+ buttonDefault({
|
|
|
+ label: "业务审核",
|
|
|
+ power: 80,
|
|
|
+ limited: () => {
|
|
|
+ return !!orderStatus.value;
|
|
|
+ },
|
|
|
+ clickFunc: item => {
|
|
|
+ const curRecords = [LjDetailRef.value?._mainData];
|
|
|
|
|
|
- YWAudit(1, curRecords, () => {
|
|
|
- LjDetailRef.value.refresh();
|
|
|
- });
|
|
|
- }
|
|
|
- }),
|
|
|
- buttonDefault({
|
|
|
- label: "业务撤审",
|
|
|
- power: 81,
|
|
|
- limited: () => {
|
|
|
- return !!orderStatus.value;
|
|
|
- },
|
|
|
- clickFunc: item => {
|
|
|
- const curRecords = [LjDetailRef.value?._mainData];
|
|
|
+ YWAudit(1, curRecords, () => {
|
|
|
+ LjDetailRef.value.refresh();
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }),
|
|
|
+ buttonDefault({
|
|
|
+ label: "业务撤审",
|
|
|
+ power: 81,
|
|
|
+ limited: () => {
|
|
|
+ return !!orderStatus.value;
|
|
|
+ },
|
|
|
+ clickFunc: item => {
|
|
|
+ const curRecords = [LjDetailRef.value?._mainData];
|
|
|
|
|
|
- YWAudit(0, curRecords, () => {
|
|
|
- LjDetailRef.value.refresh();
|
|
|
- });
|
|
|
- }
|
|
|
- })
|
|
|
- ],
|
|
|
- [
|
|
|
- buttonDefault({
|
|
|
- label: "产品补充",
|
|
|
- power: 82,
|
|
|
- limited: () => {
|
|
|
- return !!orderStatus.value;
|
|
|
- },
|
|
|
- disabledTextCallBack: (data: any) => {
|
|
|
- if (data.js1_flag == 1) {
|
|
|
- return "已产品补充审核,无法修改";
|
|
|
- }
|
|
|
- return "";
|
|
|
- },
|
|
|
- clickFunc: item => {
|
|
|
- routeToEdit(2);
|
|
|
+ YWAudit(0, curRecords, () => {
|
|
|
+ LjDetailRef.value.refresh();
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }),
|
|
|
+ // ],
|
|
|
+ // [
|
|
|
+ buttonDefault({
|
|
|
+ label: "产品补充",
|
|
|
+ power: 82,
|
|
|
+ limited: () => {
|
|
|
+ return !!orderStatus.value;
|
|
|
+ },
|
|
|
+ disabledTextCallBack: (data: any) => {
|
|
|
+ if (data.js1_flag == 1) {
|
|
|
+ return "已产品补充审核,无法修改";
|
|
|
}
|
|
|
- }),
|
|
|
- buttonDefault({
|
|
|
- label: "产品补充审核",
|
|
|
- power: 83,
|
|
|
- limited: () => {
|
|
|
- return !!orderStatus.value;
|
|
|
- },
|
|
|
- clickFunc: item => {
|
|
|
- const curRecords = [LjDetailRef.value?._mainData];
|
|
|
+ return "";
|
|
|
+ },
|
|
|
+ clickFunc: item => {
|
|
|
+ routeToEdit(2);
|
|
|
+ }
|
|
|
+ }),
|
|
|
+ buttonDefault({
|
|
|
+ label: "产品补充审核",
|
|
|
+ power: 83,
|
|
|
+ limited: () => {
|
|
|
+ return !!orderStatus.value;
|
|
|
+ },
|
|
|
+ clickFunc: item => {
|
|
|
+ const curRecords = [LjDetailRef.value?._mainData];
|
|
|
|
|
|
- JSAudit(1, curRecords, () => {
|
|
|
- LjDetailRef.value.refresh();
|
|
|
- });
|
|
|
- }
|
|
|
- }),
|
|
|
- buttonDefault({
|
|
|
- label: "产品补充撤审",
|
|
|
- power: 84,
|
|
|
- limited: () => {
|
|
|
- return !!orderStatus.value;
|
|
|
- },
|
|
|
- clickFunc: item => {
|
|
|
- const curRecords = [LjDetailRef.value?._mainData];
|
|
|
+ JSAudit(1, curRecords, () => {
|
|
|
+ LjDetailRef.value.refresh();
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }),
|
|
|
+ buttonDefault({
|
|
|
+ label: "产品补充撤审",
|
|
|
+ power: 84,
|
|
|
+ limited: () => {
|
|
|
+ return !!orderStatus.value;
|
|
|
+ },
|
|
|
+ clickFunc: item => {
|
|
|
+ const curRecords = [LjDetailRef.value?._mainData];
|
|
|
|
|
|
- JSAudit(0, curRecords, () => {
|
|
|
- LjDetailRef.value.refresh();
|
|
|
- });
|
|
|
- }
|
|
|
- })
|
|
|
- ],
|
|
|
- [
|
|
|
- buttonDefault({
|
|
|
- label: "清单补充",
|
|
|
- power: 85,
|
|
|
- limited: () => {
|
|
|
- return !!orderStatus.value;
|
|
|
- },
|
|
|
- disabledTextCallBack: (data: any) => {
|
|
|
- if (data.js2_flag == 1) {
|
|
|
- return "已清单补充审核,无法修改";
|
|
|
- }
|
|
|
- return "";
|
|
|
- },
|
|
|
- clickFunc: item => {
|
|
|
- routeToEdit(3);
|
|
|
+ JSAudit(0, curRecords, () => {
|
|
|
+ LjDetailRef.value.refresh();
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }),
|
|
|
+ // ],
|
|
|
+ // [
|
|
|
+ buttonDefault({
|
|
|
+ label: "清单补充",
|
|
|
+ power: 85,
|
|
|
+ limited: () => {
|
|
|
+ return !!orderStatus.value;
|
|
|
+ },
|
|
|
+ disabledTextCallBack: (data: any) => {
|
|
|
+ if (data.js2_flag == 1) {
|
|
|
+ return "已清单补充审核,无法修改";
|
|
|
}
|
|
|
- }),
|
|
|
- buttonDefault({
|
|
|
- label: "清单补充审核",
|
|
|
- power: 86,
|
|
|
- limited: () => {
|
|
|
- return !!orderStatus.value;
|
|
|
- },
|
|
|
- clickFunc: item => {
|
|
|
- const curRecords = [LjDetailRef.value?._mainData];
|
|
|
+ return "";
|
|
|
+ },
|
|
|
+ clickFunc: item => {
|
|
|
+ routeToEdit(3);
|
|
|
+ }
|
|
|
+ }),
|
|
|
+ buttonDefault({
|
|
|
+ label: "清单补充审核",
|
|
|
+ power: 86,
|
|
|
+ limited: () => {
|
|
|
+ return !!orderStatus.value;
|
|
|
+ },
|
|
|
+ clickFunc: item => {
|
|
|
+ const curRecords = [LjDetailRef.value?._mainData];
|
|
|
|
|
|
- JS2Audit(1, curRecords, () => {
|
|
|
- LjDetailRef.value.refresh();
|
|
|
- });
|
|
|
- }
|
|
|
- }),
|
|
|
- buttonDefault({
|
|
|
- label: "清单补充撤审",
|
|
|
- power: 87,
|
|
|
- limited: () => {
|
|
|
- return !!orderStatus.value;
|
|
|
- },
|
|
|
- clickFunc: item => {
|
|
|
- const curRecords = [LjDetailRef.value?._mainData];
|
|
|
+ JS2Audit(1, curRecords, () => {
|
|
|
+ LjDetailRef.value.refresh();
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }),
|
|
|
+ buttonDefault({
|
|
|
+ label: "清单补充撤审",
|
|
|
+ power: 87,
|
|
|
+ limited: () => {
|
|
|
+ return !!orderStatus.value;
|
|
|
+ },
|
|
|
+ clickFunc: item => {
|
|
|
+ const curRecords = [LjDetailRef.value?._mainData];
|
|
|
|
|
|
- JS2Audit(0, curRecords, () => {
|
|
|
- LjDetailRef.value.refresh();
|
|
|
- });
|
|
|
- }
|
|
|
- })
|
|
|
- ],
|
|
|
+ JS2Audit(0, curRecords, () => {
|
|
|
+ LjDetailRef.value.refresh();
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }),
|
|
|
+ // ],
|
|
|
buttonDefault({
|
|
|
label: "覆盖配置到副规格产品",
|
|
|
limited: () => {
|