车间工作台页面调整

dev-scheduling
zhangdi 4 weeks ago
parent a843ca6619
commit 1f5fb923d0
  1. 28
      src/views/zhgd-work/workCheck/index.vue

@ -120,9 +120,9 @@
<el-select v-model="fillInObj.poorReason" placeholder="请选择" @change="prChange">
<el-option
v-for="item in poorReasonList"
:key="item.id"
:label="item.name"
:value="item.id"
:key="item.dictValue"
:label="item.dictValue"
:value="item.dictValue"
></el-option>
</el-select>
</el-descriptions-item>
@ -147,6 +147,8 @@
</template>
<script>
import { loadProTest, saveProCheck } from '@/api/workCheck/index.js';
// defective_cause
import { getDictionary } from '@/api/system/dict';
export default {
data() {
return {
@ -171,7 +173,15 @@ export default {
poorReasonList: [], //
};
},
mounted(){
this.getDictionary()
},
methods: {
getDictionary(){
getDictionary({code:'defective_cause'}).then(res => {
this.poorReasonList = res.data.data;
});
},
unqualifiedQtyChange(v) {
this.fillInObj.unqualifiedQty = v;
// this.$set(this.qcReviewSheet, 'unqualifiedQty', v);
@ -194,12 +204,12 @@ export default {
}
},
prChange(id, item) {
this.fillInObj.poorReason = '';
if (item) {
this.fillInObj.poorReason = item.name;
} else {
this.fillInObj.poorReason = '';
}
// this.fillInObj.poorReason = '';
// if (item) {
// this.fillInObj.poorReason = item.name;
// } else {
// this.fillInObj.poorReason = '';
// }
},
codeKeyUp() {
if (this.formData.cardNo) {

Loading…
Cancel
Save