|
@@ -558,17 +558,17 @@
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- {
|
|
|
- name: '编辑',
|
|
|
- event: {
|
|
|
- show: (item : any) => {
|
|
|
- return item.status === 0
|
|
|
- },
|
|
|
- click: (item : any) => {
|
|
|
- (this as any).openEdit(item)
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // name: '编辑',
|
|
|
+ // event: {
|
|
|
+ // show: (item : any) => {
|
|
|
+ // return item.status === 0
|
|
|
+ // },
|
|
|
+ // click: (item : any) => {
|
|
|
+ // (this as any).openEdit(item)
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // },
|
|
|
{
|
|
|
name: '拆单',
|
|
|
event: {
|
|
@@ -965,15 +965,14 @@
|
|
|
v.compConfig.attr.readonly = true;
|
|
|
})
|
|
|
billConfig.form.columns[1][0].compConfig.attr.readonly = true;
|
|
|
- if (parentData.status === 0) {
|
|
|
- billConfig.form.columns[0][2].compConfig.attr.readonly = false;
|
|
|
- billConfig.form.columns[0][3].compConfig.attr.readonly = false;
|
|
|
- billConfig.form.columns[0][4].compConfig.attr.readonly = false;
|
|
|
- billConfig.form.columns[0][6].compConfig.attr.readonly = false;
|
|
|
- billConfig.form.columns[1][0].compConfig.attr.readonly = false;
|
|
|
- billConfig.tool.tools = { return: true, save: true };
|
|
|
- };
|
|
|
- // console.log(parentData.suborderList);
|
|
|
+ // if (parentData.status === 0) {
|
|
|
+ // billConfig.form.columns[0][2].compConfig.attr.readonly = false;
|
|
|
+ // billConfig.form.columns[0][3].compConfig.attr.readonly = false;
|
|
|
+ // billConfig.form.columns[0][4].compConfig.attr.readonly = false;
|
|
|
+ // billConfig.form.columns[0][6].compConfig.attr.readonly = false;
|
|
|
+ // billConfig.form.columns[1][0].compConfig.attr.readonly = false;
|
|
|
+ // billConfig.tool.tools = { return: true, save: true };
|
|
|
+ // };
|
|
|
(this.$refs.bill as any).setBillConfig(billConfig);
|
|
|
(this.$refs.bill as any).setBillFormValue(parentData); // 设置单据表单数据
|
|
|
(this.$refs.bill as any).setBillTableValue(parentData.suborderList, 0);// 设置第1张单据表格数据
|