| | |
| | | <span class="title-item" |
| | | >工作人数: |
| | | <span class="color_4efefa" |
| | | >{{ taskData.Procedure.procedure.workers.length || 0 }}人</span |
| | | > |
| | | <span v-if="taskData.Procedure.procedure&&taskData.Procedure.procedure.workers">{{ taskData.Procedure.procedure.workers.length }}</span> |
| | | <span v-else>0</span> |
| | | 人 |
| | | </span |
| | | > |
| | | </span> |
| | | </div> |
| | |
| | | :text-inside="true" |
| | | :stroke-width="30" |
| | | :percentage=" |
| | | finishNumber && taskData.Order.amount |
| | | ? parseInt(finishNumber / taskData.Order.amount) |
| | | : 0 |
| | | finishPercent |
| | | " |
| | | ></el-progress> |
| | | </el-descriptions-item> |
| | |
| | | <div class="card_top-3"> |
| | | <span class="card-top-r-t" |
| | | >完成进度:{{ |
| | | parseInt(finishNumber / taskData.Order.amount) || 0 |
| | | finishPercent || 0 |
| | | }}</span |
| | | > |
| | | <span class="card-top-r-b"> |
| | |
| | | :text-inside="true" |
| | | :stroke-width="10" |
| | | :percentage=" |
| | | parseInt(finishNumber / taskData.Order.amount) |
| | | finishPercent |
| | | " |
| | | :show-text="false" |
| | | ></el-progress> |
| | |
| | | </div> |
| | | <div class="right_dutyLst"> |
| | | <div class="right-small-title">当前值班</div> |
| | | <div class="right-person-box"> |
| | | <div class="right-person-box" v-if="taskData.Procedure.procedure.workers"> |
| | | <dl |
| | | class="right-small-person" |
| | | v-for="(item, index) in taskData.Procedure.procedure.workers" |
| | |
| | | passrate: 30, //合格率 |
| | | production: 25, //生产中 |
| | | finishNumber: 0, |
| | | finishPercent:0, |
| | | // 右侧完成 |
| | | finishShow: false, |
| | | inputMaterials: [ |
| | | { |
| | | amount: 1, |
| | | materialId: 1, |
| | | materialName: 1, |
| | | }, |
| | | |
| | | ], |
| | | outputMaterials: [], |
| | | procedureList: [ |
| | | [ |
| | | { |
| | | number: 10, |
| | | name: "工序", |
| | | }, |
| | | { |
| | | number: 10, |
| | | }, |
| | | ], |
| | | |
| | | ], |
| | | taskData: { |
| | | Order: { |
| | |
| | | getProgressInfo() { |
| | | getProgress().then((res) => { |
| | | if (res.code == 200) { |
| | | this.finishNumber=res.data.finishNumber; |
| | | this.finishPercent=res.data.finishPercent; |
| | | } |
| | | }); |
| | | }, |
| | |
| | | getTaskInfo() { |
| | | this.taskData = { |
| | | Order: {}, |
| | | Procedure: { procedure: { inputMaterials: [], outputMaterials: [] } }, |
| | | Procedure: { procedure: { inputMaterials: [], outputMaterials: [],workers:[] } }, |
| | | |
| | | }; |
| | | getTaskInfo().then((res) => { |
| | | if (res.code == 200) { |
| | |
| | | procedure: { inputMaterials: [], outputMaterials: [] }, |
| | | }, |
| | | }; |
| | | this.taskData.Procedure.procedure.workers=this.taskData.Procedure.procedure.workers?this.taskData.Procedure.procedure.workers:[] |
| | | this.procedureList.push([ |
| | | { |
| | | name: "工序", |