|
@@ -25,7 +25,11 @@
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="del_box">
|
|
<div class="del_box">
|
|
|
- <el-link type="danger" icon="el-icon-delete" @click="getDelete(index)"></el-link>
|
|
|
|
|
|
|
+ <el-link
|
|
|
|
|
+ type="danger"
|
|
|
|
|
+ icon="el-icon-delete"
|
|
|
|
|
+ @click="getDelete(index)"
|
|
|
|
|
+ ></el-link>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
@@ -38,18 +42,29 @@
|
|
|
<div class="item ww20">数量PCS</div>
|
|
<div class="item ww20">数量PCS</div>
|
|
|
<div class="item ww20" v-if="!isDetails">投料PCS</div>
|
|
<div class="item ww20" v-if="!isDetails">投料PCS</div>
|
|
|
<div class="item ww20" v-if="isDetails">
|
|
<div class="item ww20" v-if="isDetails">
|
|
|
- {{ wordItem.taskType ? '抽样' : '投料' }}</div>
|
|
|
|
|
|
|
+ {{ wordItem.taskType ? '抽样' : '投料' }}</div
|
|
|
|
|
+ >
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="table">
|
|
<div class="table">
|
|
|
- <div class="tr row rx-sc" v-for="(it, idx) in item.extInfo.positionList" :key="idx">
|
|
|
|
|
|
|
+ <div
|
|
|
|
|
+ class="tr row rx-sc"
|
|
|
|
|
+ v-for="(it, idx) in item.extInfo.positionList"
|
|
|
|
|
+ :key="idx"
|
|
|
|
|
+ >
|
|
|
<div class="item ww10">{{ it.code }}</div>
|
|
<div class="item ww10">{{ it.code }}</div>
|
|
|
- <div class="item ww25" :class="{ color157: it.workOrderCode === wordItem.code }">
|
|
|
|
|
|
|
+ <div
|
|
|
|
|
+ class="item ww25"
|
|
|
|
|
+ :class="{ color157: it.workOrderCode === wordItem.code }"
|
|
|
|
|
+ >
|
|
|
{{ it.workOrderCode }}
|
|
{{ it.workOrderCode }}
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="item ww25" :class="{
|
|
|
|
|
- color157: it.categoryCode === wordItem.productCode
|
|
|
|
|
- }">
|
|
|
|
|
|
|
+ <div
|
|
|
|
|
+ class="item ww25"
|
|
|
|
|
+ :class="{
|
|
|
|
|
+ color157: it.categoryCode === wordItem.productCode
|
|
|
|
|
+ }"
|
|
|
|
|
+ >
|
|
|
{{ it.categoryCode }}
|
|
{{ it.categoryCode }}
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
@@ -58,16 +73,23 @@
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="item ww20">
|
|
<div class="item ww20">
|
|
|
- <el-input :class="[
|
|
|
|
|
- 'uni-input',
|
|
|
|
|
- wordItem.code == it.workOrderCode && it.quantity > 0
|
|
|
|
|
- ? 'content_num'
|
|
|
|
|
- : ''
|
|
|
|
|
- ]" size="mini" v-model="it.feedNum" type="digit" :disabled="it.quantity <= 0" @blur="
|
|
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ :class="[
|
|
|
|
|
+ 'uni-input',
|
|
|
|
|
+ wordItem.code == it.workOrderCode && it.quantity > 0
|
|
|
|
|
+ ? 'content_num'
|
|
|
|
|
+ : ''
|
|
|
|
|
+ ]"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ v-model="it.feedNum"
|
|
|
|
|
+ type="digit"
|
|
|
|
|
+ :disabled="it.quantity <= 0"
|
|
|
|
|
+ @blur="
|
|
|
Number(it.feedNum) > Number(it.quantity)
|
|
Number(it.feedNum) > Number(it.quantity)
|
|
|
? (it.feedNum = Number(it.quantity))
|
|
? (it.feedNum = Number(it.quantity))
|
|
|
: ''
|
|
: ''
|
|
|
- "></el-input>
|
|
|
|
|
|
|
+ "
|
|
|
|
|
+ ></el-input>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -78,147 +100,146 @@
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
|
-export default {
|
|
|
|
|
- props: {
|
|
|
|
|
- list: {
|
|
|
|
|
- type: Array,
|
|
|
|
|
- default: () => []
|
|
|
|
|
|
|
+ export default {
|
|
|
|
|
+ props: {
|
|
|
|
|
+ list: {
|
|
|
|
|
+ type: Array,
|
|
|
|
|
+ default: () => []
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ wordItem: {
|
|
|
|
|
+ type: Object,
|
|
|
|
|
+ default: () => {}
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ pattern: {
|
|
|
|
|
+ type: String,
|
|
|
|
|
+ default: ''
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ isDetails: {
|
|
|
|
|
+ type: Boolean,
|
|
|
|
|
+ default: false
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
- wordItem: {
|
|
|
|
|
- type: Object,
|
|
|
|
|
- default: () => { }
|
|
|
|
|
|
|
+ watch: {
|
|
|
|
|
+ list: {
|
|
|
|
|
+ immediate: true,
|
|
|
|
|
+ handler(newVal) {
|
|
|
|
|
+ newVal.forEach((f) => {
|
|
|
|
|
+ if (
|
|
|
|
|
+ f.extInfo &&
|
|
|
|
|
+ f.extInfo.positionList &&
|
|
|
|
|
+ f.extInfo.positionList.length
|
|
|
|
|
+ ) {
|
|
|
|
|
+ f.extInfo.positionList.forEach((oo) => {
|
|
|
|
|
+ if (
|
|
|
|
|
+ this.wordItem.code == oo.workOrderCode &&
|
|
|
|
|
+ this.wordItem.productCode == oo.categoryCode &&
|
|
|
|
|
+ Number(oo.quantity) > 1 &&
|
|
|
|
|
+ this.isDetails != true
|
|
|
|
|
+ ) {
|
|
|
|
|
+ this.$set(oo, 'feedNum', oo.quantity);
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ this.newList = newVal;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- pattern: {
|
|
|
|
|
- type: String,
|
|
|
|
|
- default: ''
|
|
|
|
|
|
|
+ data() {
|
|
|
|
|
+ return {
|
|
|
|
|
+ newList: []
|
|
|
|
|
+ };
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
- isDetails: {
|
|
|
|
|
- type: Boolean,
|
|
|
|
|
- default: false
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
- watch: {
|
|
|
|
|
- list: {
|
|
|
|
|
- immediate: true,
|
|
|
|
|
- handler(newVal) {
|
|
|
|
|
- newVal.forEach((f) => {
|
|
|
|
|
- if (
|
|
|
|
|
- f.extInfo &&
|
|
|
|
|
- f.extInfo.positionList &&
|
|
|
|
|
- f.extInfo.positionList.length
|
|
|
|
|
- ) {
|
|
|
|
|
- f.extInfo.positionList.forEach((oo) => {
|
|
|
|
|
- if (
|
|
|
|
|
- this.wordItem.code == oo.workOrderCode &&
|
|
|
|
|
- this.wordItem.productCode == oo.categoryCode &&
|
|
|
|
|
- Number(oo.quantity) > 1 &&
|
|
|
|
|
- this.isDetails != true
|
|
|
|
|
- ) {
|
|
|
|
|
- this.$set(oo, 'feedNum', oo.quantity);
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
- this.newList = newVal;
|
|
|
|
|
|
|
+ methods: {
|
|
|
|
|
+ getDelete(index) {
|
|
|
|
|
+ this.list.splice(index, 1);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- },
|
|
|
|
|
-
|
|
|
|
|
- data() {
|
|
|
|
|
- return {
|
|
|
|
|
- newList: []
|
|
|
|
|
- };
|
|
|
|
|
- },
|
|
|
|
|
- methods: {
|
|
|
|
|
- getDelete(index) {
|
|
|
|
|
- this.list.splice(index, 1);
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-};
|
|
|
|
|
|
|
+ };
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
|
-.material {
|
|
|
|
|
- width: 92%;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-.content_table2 {
|
|
|
|
|
- width: 100%;
|
|
|
|
|
|
|
+ .material {
|
|
|
|
|
+ width: 92%;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
- .row {
|
|
|
|
|
|
|
+ .content_table2 {
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
|
|
|
|
|
- .item {
|
|
|
|
|
- color: #404446;
|
|
|
|
|
- font-size: 14px;
|
|
|
|
|
- padding-left: 6px;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ .row {
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
|
|
|
- .color157 {
|
|
|
|
|
- color: #157a2c;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ .item {
|
|
|
|
|
+ color: #404446;
|
|
|
|
|
+ font-size: 14px;
|
|
|
|
|
+ padding-left: 6px;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
- .ww20 {
|
|
|
|
|
- width: 20%;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ .color157 {
|
|
|
|
|
+ color: #157a2c;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
- .ww25 {
|
|
|
|
|
- width: 25%;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ .ww20 {
|
|
|
|
|
+ width: 20%;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
- .ww35 {
|
|
|
|
|
- width: 35%;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ .ww25 {
|
|
|
|
|
+ width: 25%;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
- .ww10 {
|
|
|
|
|
- width: 10%;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ .ww35 {
|
|
|
|
|
+ width: 35%;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
- .head {
|
|
|
|
|
- height: 32px;
|
|
|
|
|
- background: #f7f9fa;
|
|
|
|
|
- border-top: 1px solid #e3e5e5;
|
|
|
|
|
- border-left: 1px solid #e3e5e5;
|
|
|
|
|
|
|
+ .ww10 {
|
|
|
|
|
+ width: 10%;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
- .item {
|
|
|
|
|
|
|
+ .head {
|
|
|
height: 32px;
|
|
height: 32px;
|
|
|
- line-height: 32px;
|
|
|
|
|
- border-right: 1px solid #e3e5e5;
|
|
|
|
|
- box-sizing: border-box;
|
|
|
|
|
|
|
+ background: #f7f9fa;
|
|
|
|
|
+ border-top: 1px solid #e3e5e5;
|
|
|
|
|
+ border-left: 1px solid #e3e5e5;
|
|
|
|
|
+
|
|
|
|
|
+ .item {
|
|
|
|
|
+ height: 32px;
|
|
|
|
|
+ line-height: 32px;
|
|
|
|
|
+ border-right: 1px solid #e3e5e5;
|
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
- .tr {
|
|
|
|
|
- border-top: 1px solid #e3e5e5;
|
|
|
|
|
- border-left: 1px solid #e3e5e5;
|
|
|
|
|
-
|
|
|
|
|
- .item {
|
|
|
|
|
- font-size: 12px;
|
|
|
|
|
- min-height: 32px;
|
|
|
|
|
- display: flex;
|
|
|
|
|
- align-items: center;
|
|
|
|
|
- border-right: 1px solid #e3e5e5;
|
|
|
|
|
- box-sizing: border-box;
|
|
|
|
|
- white-space: normal;
|
|
|
|
|
- word-break: break-all;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ .tr {
|
|
|
|
|
+ border-top: 1px solid #e3e5e5;
|
|
|
|
|
+ border-left: 1px solid #e3e5e5;
|
|
|
|
|
+
|
|
|
|
|
+ .item {
|
|
|
|
|
+ font-size: 12px;
|
|
|
|
|
+ min-height: 32px;
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ border-right: 1px solid #e3e5e5;
|
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
|
+ white-space: normal;
|
|
|
|
|
+ word-break: break-all;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
- &:last-child {
|
|
|
|
|
- border-bottom: 1px solid #e3e5e5;
|
|
|
|
|
|
|
+ &:last-child {
|
|
|
|
|
+ border-bottom: 1px solid #e3e5e5;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
|
|
|
|
|
-.content_num {
|
|
|
|
|
- display: flex;
|
|
|
|
|
- align-items: center;
|
|
|
|
|
- padding: 2px;
|
|
|
|
|
- --input-background-color: #f0f8f2;
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ .content_num {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ padding: 2px;
|
|
|
|
|
+ --input-background-color: #f0f8f2;
|
|
|
|
|
+ }
|
|
|
</style>
|
|
</style>
|