|
@ -73,9 +73,14 @@ |
|
|
|
|
|
|
|
|
<view class="Work-List" |
|
|
<view class="Work-List" |
|
|
> |
|
|
> |
|
|
<view class="label" |
|
|
|
|
|
style="width: 500rpx;"> |
|
|
|
|
|
规格:{{ w.specs }} |
|
|
|
|
|
|
|
|
<view class="label"> |
|
|
|
|
|
规格: |
|
|
|
|
|
<!-- {{ w.specs }} --> |
|
|
|
|
|
</view> |
|
|
|
|
|
<view class="text"> |
|
|
|
|
|
<input type="text" |
|
|
|
|
|
:disabled="!isPermission('修改')" |
|
|
|
|
|
v-model="w.specs"/> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
@ -129,6 +134,7 @@ |
|
|
stepList : [], |
|
|
stepList : [], |
|
|
index : 1, |
|
|
index : 1, |
|
|
title : '', |
|
|
title : '', |
|
|
|
|
|
stepId : 0, |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
onLoad(arg) { |
|
|
onLoad(arg) { |
|
@ -144,7 +150,13 @@ |
|
|
templateId: this.id |
|
|
templateId: this.id |
|
|
}, res => { |
|
|
}, res => { |
|
|
if (res.code == 200) { |
|
|
if (res.code == 200) { |
|
|
this.StepOne = res.result.workorderGeneralSteptwo |
|
|
|
|
|
|
|
|
this.StepOne = res.result.workorderGeneralSteptwo || {} |
|
|
|
|
|
|
|
|
|
|
|
for (let k in this.StepOne) { |
|
|
|
|
|
if(!this.StepOne[k] || this.StepOne[k] == 'null'){ |
|
|
|
|
|
this.StepOne[k] = '' |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
@ -156,6 +168,8 @@ |
|
|
if(res.code == 200){ |
|
|
if(res.code == 200){ |
|
|
let p = res.result.workorderStepList[this.index] |
|
|
let p = res.result.workorderStepList[this.index] |
|
|
|
|
|
|
|
|
|
|
|
this.stepId = p.id |
|
|
|
|
|
|
|
|
for(let i = 0;i < p.workorderProcessList.length;i++){ |
|
|
for(let i = 0;i < p.workorderProcessList.length;i++){ |
|
|
let step = p.workorderProcessList[i] |
|
|
let step = p.workorderProcessList[i] |
|
|
for(let j = 0;j < step.workorderItemCheckList.length;j++){ |
|
|
for(let j = 0;j < step.workorderItemCheckList.length;j++){ |
|
@ -205,11 +219,15 @@ |
|
|
|
|
|
|
|
|
let StepOne = JSON.parse(JSON.stringify(this.StepOne)) |
|
|
let StepOne = JSON.parse(JSON.stringify(this.StepOne)) |
|
|
|
|
|
|
|
|
|
|
|
StepOne.stepId = this.stepId |
|
|
|
|
|
StepOne.templateId = this.id |
|
|
|
|
|
|
|
|
delete StepOne.updateBy |
|
|
delete StepOne.updateBy |
|
|
delete StepOne.updateTime |
|
|
delete StepOne.updateTime |
|
|
delete StepOne.createBy |
|
|
delete StepOne.createBy |
|
|
delete StepOne.createTime |
|
|
delete StepOne.createTime |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 修改常规参数 |
|
|
// 修改常规参数 |
|
|
this.$api('updateGeneralStepTwo', StepOne, res => { |
|
|
this.$api('updateGeneralStepTwo', StepOne, res => { |
|
|
}) |
|
|
}) |
|
|