|
@@ -363,13 +363,13 @@
|
|
|
tabLoading: false,
|
|
tabLoading: false,
|
|
|
dynamicName: '工位名称',
|
|
dynamicName: '工位名称',
|
|
|
form: {
|
|
form: {
|
|
|
- assignType: 1,
|
|
|
|
|
|
|
+ assignType: '',
|
|
|
crewIds: '',
|
|
crewIds: '',
|
|
|
workstationIds: '',
|
|
workstationIds: '',
|
|
|
teamId: '',
|
|
teamId: '',
|
|
|
singleReport: '',
|
|
singleReport: '',
|
|
|
workCenterId: '',
|
|
workCenterId: '',
|
|
|
- taskAss: 1,
|
|
|
|
|
|
|
+ taskAss: '',
|
|
|
factoryName: '',
|
|
factoryName: '',
|
|
|
factoryLineIds: ''
|
|
factoryLineIds: ''
|
|
|
},
|
|
},
|
|
@@ -546,6 +546,8 @@
|
|
|
},
|
|
},
|
|
|
watch: {},
|
|
watch: {},
|
|
|
created() {
|
|
created() {
|
|
|
|
|
+ this.getDispatchMethod('dispatch_method');
|
|
|
|
|
+ this.getAssignmentMethod('assignment_method');
|
|
|
// 时间计算规则code
|
|
// 时间计算规则code
|
|
|
this.getCode();
|
|
this.getCode();
|
|
|
this.workCenterData(); // 查询工作中心
|
|
this.workCenterData(); // 查询工作中心
|
|
@@ -553,8 +555,6 @@
|
|
|
this.queryCheckExists(); // 查询是否派单
|
|
this.queryCheckExists(); // 查询是否派单
|
|
|
this.form.singleReport = this.clientEnvironmentId == 2 ? 0 : '';
|
|
this.form.singleReport = this.clientEnvironmentId == 2 ? 0 : '';
|
|
|
this.dateValue = this.getFormattedDate();
|
|
this.dateValue = this.getFormattedDate();
|
|
|
- // this.getDispatchMethod('dispatch_method');
|
|
|
|
|
- // this.getAssignmentMethod('assignment_method');
|
|
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
getCode() {
|
|
getCode() {
|
|
@@ -569,14 +569,17 @@
|
|
|
|
|
|
|
|
async getDispatchMethod(code) {
|
|
async getDispatchMethod(code) {
|
|
|
await parameterGetByCode({ code }).then((res) => {
|
|
await parameterGetByCode({ code }).then((res) => {
|
|
|
|
|
+ console.log(res, '返回的数据111');
|
|
|
if (res) {
|
|
if (res) {
|
|
|
this.form.taskAss = res.value == '0' ? 0 : 1;
|
|
this.form.taskAss = res.value == '0' ? 0 : 1;
|
|
|
|
|
+ console.log(this.form.taskAss, 'this.form.taskAss');
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
async getAssignmentMethod(code) {
|
|
async getAssignmentMethod(code) {
|
|
|
await parameterGetByCode({ code }).then((res) => {
|
|
await parameterGetByCode({ code }).then((res) => {
|
|
|
|
|
+ console.log(res, '返回的数据222');
|
|
|
if (res) {
|
|
if (res) {
|
|
|
this.form.assignType =
|
|
this.form.assignType =
|
|
|
res.value == '0' ? 0 : res.value == '1' ? 1 : 2;
|
|
res.value == '0' ? 0 : res.value == '1' ? 1 : 2;
|