|
@@ -10,7 +10,7 @@
|
|
<div class="distribution_box" v-for="item,index in distributionList" :key="index">
|
|
<div class="distribution_box" v-for="item,index in distributionList" :key="index">
|
|
<div class="distribution_ItemBom">
|
|
<div class="distribution_ItemBom">
|
|
<div class="PlanItem">
|
|
<div class="PlanItem">
|
|
- <span>东湾2号线电池箱东湾2号线电池箱</span>
|
|
|
|
|
|
+ <span>{{ item.prodProcedure.name }}</span>
|
|
</div>
|
|
</div>
|
|
<div class="PlanItem" v-show="todayAndTomorrow">
|
|
<div class="PlanItem" v-show="todayAndTomorrow">
|
|
<div>组员:</div>
|
|
<div>组员:</div>
|
|
@@ -18,29 +18,31 @@
|
|
<span style="color: #1989fa;" v-if="!item.personnel" @click="distributionProp(item,index)">分配</span>
|
|
<span style="color: #1989fa;" v-if="!item.personnel" @click="distributionProp(item,index)">分配</span>
|
|
</div>
|
|
</div>
|
|
<div class="PlanItem">
|
|
<div class="PlanItem">
|
|
- <div>单件工价:</div><span class="textBeyondHiding">123</span>
|
|
|
|
|
|
+ <div>单件工价:</div><span class="textBeyondHiding">{{ item.prodProcedure.workingTime }}</span>
|
|
</div>
|
|
</div>
|
|
<div class="PlanItem">
|
|
<div class="PlanItem">
|
|
- <div>总工价:</div><span class="textBeyondHiding">123</span>
|
|
|
|
|
|
+ <div>总工价:</div><span class="textBeyondHiding">{{ item.totalWages }}</span>
|
|
</div>
|
|
</div>
|
|
<div class="PlanItem">
|
|
<div class="PlanItem">
|
|
- <div>单件工时:</div><span class="textBeyondHiding">123</span>
|
|
|
|
|
|
+ <div>单件工时:</div><span class="textBeyondHiding">{{ item.prodProcedure.unitPrice }}</span>
|
|
</div>
|
|
</div>
|
|
<div class="PlanItem">
|
|
<div class="PlanItem">
|
|
- <div>总工时:</div><span class="textBeyondHiding">123</span>
|
|
|
|
|
|
+ <div>总工时:</div><span class="textBeyondHiding">{{ item.totalWorkingHours }}</span>
|
|
</div>
|
|
</div>
|
|
<div class="PlanItem" v-if="todayAndTomorrow">
|
|
<div class="PlanItem" v-if="todayAndTomorrow">
|
|
- <div>进度:</div><span class="textBeyondHiding">123</span>
|
|
|
|
|
|
+ <div>进度:</div><span class="textBeyondHiding">'V'</span>
|
|
</div>
|
|
</div>
|
|
<div class="PlanItem">
|
|
<div class="PlanItem">
|
|
- <div>质检类型:</div><span class="textBeyondHiding">123</span>
|
|
|
|
|
|
+ <div>质检类型:</div><span class="textBeyondHiding">
|
|
|
|
+ {{ item.prodProcedure.checkType == 0 ? '自检' : item.prodProcedure.checkType == 1 ? '互检' : '专检' }}
|
|
|
|
+ </span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- 弹出层选人 -->
|
|
<!-- 弹出层选人 -->
|
|
<van-popup v-model="popupShow" round position="bottom" :style="{ height: '80%',background: '#F4F4F4' }" >
|
|
<van-popup v-model="popupShow" round position="bottom" :style="{ height: '80%',background: '#F4F4F4' }" >
|
|
- <ChooseSomeone :groupView="2" :groupViewBack="true"></ChooseSomeone>
|
|
|
|
|
|
+ <ChooseSomeone :groupView="2" :groupViewBack="true" :peopleList="peopleList"></ChooseSomeone>
|
|
</van-popup>
|
|
</van-popup>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -54,34 +56,33 @@ export default {
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- distributionList: [
|
|
|
|
- {personnel: ''},
|
|
|
|
- {personnel: '张三'},
|
|
|
|
- {personnel: ''},
|
|
|
|
- {personnel: '李四'},
|
|
|
|
- {personnel: '王五'},
|
|
|
|
- {personnel: ''},
|
|
|
|
- {personnel: ''},
|
|
|
|
- {personnel: ''},
|
|
|
|
- {personnel: ''},
|
|
|
|
- {personnel: ''},
|
|
|
|
- ],
|
|
|
|
|
|
+ distributionList: [],
|
|
distributionIndex: null,
|
|
distributionIndex: null,
|
|
popupShow: false,
|
|
popupShow: false,
|
|
titleText: '今日计划', // 默认文字
|
|
titleText: '今日计划', // 默认文字
|
|
todayAndTomorrow: true, // true 今日计划,false 明日计划
|
|
todayAndTomorrow: true, // true 今日计划,false 明日计划
|
|
|
|
+ id: '', // 传过来的id
|
|
|
|
+ type: '', // 传过来的type
|
|
|
|
+ departmentId: '', // 部门id
|
|
|
|
+ peopleList: [], // 人员数据
|
|
};
|
|
};
|
|
},
|
|
},
|
|
computed: {},
|
|
computed: {},
|
|
watch: {},
|
|
watch: {},
|
|
created() {},
|
|
created() {},
|
|
mounted() {
|
|
mounted() {
|
|
|
|
+ this.id = this.$route.query.id
|
|
|
|
+ this.type = this.$route.query.type
|
|
|
|
+ this.departmentId = this.$route.query.departmentId
|
|
|
|
+ console.log(this.id)
|
|
this.titleText = this.$route.query.titleText
|
|
this.titleText = this.$route.query.titleText
|
|
if(this.titleText == '今日计划') {
|
|
if(this.titleText == '今日计划') {
|
|
this.todayAndTomorrow = true
|
|
this.todayAndTomorrow = true
|
|
} else {
|
|
} else {
|
|
this.todayAndTomorrow = false
|
|
this.todayAndTomorrow = false
|
|
}
|
|
}
|
|
|
|
+ this.getDistributionList()
|
|
|
|
+ this.getPeople()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
back() {
|
|
back() {
|
|
@@ -94,6 +95,42 @@ export default {
|
|
distributionProp(item, index) {
|
|
distributionProp(item, index) {
|
|
this.distributionIndex = index
|
|
this.distributionIndex = index
|
|
this.popupShow = true
|
|
this.popupShow = true
|
|
|
|
+ },
|
|
|
|
+ getDistributionList() {
|
|
|
|
+ this.$axios.post('/plan/planDetail', {
|
|
|
|
+ id: this.id,
|
|
|
|
+ type: this.type
|
|
|
|
+ })
|
|
|
|
+ .then(res => {
|
|
|
|
+ if (res.code == "ok") {
|
|
|
|
+ this.distributionList = res.data
|
|
|
|
+ } else {
|
|
|
|
+ this.$toast.clear();
|
|
|
|
+ this.$toast.fail(res.msg);
|
|
|
|
+ }
|
|
|
|
+ }).catch(err => { this.$toast.clear(); });
|
|
|
|
+ },
|
|
|
|
+ // 获取人员
|
|
|
|
+ getPeople() {
|
|
|
|
+ this.$axios.post('/user/getSimpleActiveUserList', {
|
|
|
|
+ departmentId: this.departmentId,
|
|
|
|
+ })
|
|
|
|
+ .then(res => {
|
|
|
|
+ if (res.code == "ok") {
|
|
|
|
+ this.peopleList = res.data.map(item => {
|
|
|
|
+ return {
|
|
|
|
+ name: item.name,
|
|
|
|
+ id: item.id,
|
|
|
|
+ phone: item.phone,
|
|
|
|
+ jobNumber: item.jobNumber
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ console.log(this.peopleList, '人员数据')
|
|
|
|
+ } else {
|
|
|
|
+ this.$toast.clear();
|
|
|
|
+ this.$toast.fail(res.msg);
|
|
|
|
+ }
|
|
|
|
+ }).catch(err => { this.$toast.clear(); });
|
|
}
|
|
}
|
|
},
|
|
},
|
|
};
|
|
};
|