| | |
| | | <view class="packing-registration-param"> |
| | | <scroll-view scroll-y="true" style="height: 100%"> |
| | | <view class="packing-registration-param-view"> |
| | | <!-- <view class="packing-registration-param-item param-extra"> |
| | | <view class="packing-registration-param-item-left"> |
| | | <text class="item-one">批号</text> |
| | | </view> |
| | | <view class="packing-registration-param-item-right"> |
| | | <u-input |
| | | class="item-one item-two" |
| | | v-model="form.value0" |
| | | disabled |
| | | /> |
| | | </view> |
| | | </view> --> |
| | | <view class="packing-registration-param-item param-extra"> |
| | | <view class="packing-registration-param-item-left"> |
| | | <text class="item-one">长度</text> |
| | | </view> |
| | | <view class="packing-registration-param-item-right"> |
| | | <u-input class="item-one item-two" v-model="form.value1" /> |
| | | <u-input class="item-one item-two" v-model="form.overallLength" /> |
| | | </view> |
| | | </view> |
| | | <view class="packing-registration-param-item param-extra"> |
| | |
| | | <view class="packing-registration-param-item-right"> |
| | | <u-input |
| | | class="item-one item-two" |
| | | v-model="form.value1" |
| | | v-model="form.proposedLocation" |
| | | disabled |
| | | /> |
| | | </view> |
| | |
| | | <text class="item-one">净重</text> |
| | | </view> |
| | | <view class="packing-registration-param-item-right"> |
| | | <u-input class="item-one item-two" v-model="form.value1" /> |
| | | <u-input class="item-one item-two" v-model="form.theoryWeight" /> |
| | | </view> |
| | | </view> |
| | | <view class="packing-registration-param-item param-extra"> |
| | |
| | | <text class="item-one">工序</text> |
| | | </view> |
| | | <view class="packing-registration-param-item-right"> |
| | | <u-input class="item-one item-two" v-model="form.value1" /> |
| | | <u-input class="item-one item-two" v-model="form.name" /> |
| | | </view> |
| | | </view> |
| | | <view class="packing-registration-param-item param-extra"> |
| | |
| | | <script> |
| | | export default { |
| | | props: { |
| | | operationTaskId: { |
| | | type: String, |
| | | operationTaskList: { |
| | | type: Object, |
| | | required: true, |
| | | default: () => ({}), |
| | | }, |
| | |
| | | data() { |
| | | return { |
| | | show: false, |
| | | form: { |
| | | outerDiameter: null, |
| | | voltage: null, |
| | | speed: null, |
| | | pressure: null, |
| | | productionSpeed: null, |
| | | grossWeight: null, |
| | | reelNumber: null, |
| | | value7: null, |
| | | value8: null, |
| | | value9: null, |
| | | value10: null, |
| | | value11: null, |
| | | }, |
| | | // rules: { |
| | | // value1: [ |
| | | // { required: true, message: '请输入长度', trigger: ['blur', 'change'] }, |
| | | // ], |
| | | // value3: [ |
| | | // { required: true, message: '请输入盘号', trigger: ['blur', 'change'] }, |
| | | // ], |
| | | // value4: [ |
| | | // { required: true, message: '请输入毛重', trigger: ['blur', 'change'] }, |
| | | // ], |
| | | // value5: [ |
| | | // { required: true, message: '请输入净重', trigger: ['blur', 'change'] }, |
| | | // ], |
| | | // value7: [ |
| | | // { required: true, message: '请输入成品外径测量值', trigger: ['blur', 'change'] }, |
| | | // ], |
| | | // value8: [ |
| | | // { required: true, message: '请输入退火电压', trigger: ['blur', 'change'] }, |
| | | // ], |
| | | // value9: [ |
| | | // { required: true, message: '请输入转速', trigger: ['blur', 'change'] }, |
| | | // ], |
| | | // value10: [ |
| | | // { required: true, message: '请输入外部气压', trigger: ['blur', 'change'] } |
| | | // ], |
| | | // value11: [ |
| | | // { required: true, message: '请输入生产速度', trigger: ['blur', 'change'] } |
| | | // ] |
| | | // }, |
| | | form: {}, |
| | | }; |
| | | }, |
| | | watch: { |
| | | show(val) { |
| | | if (val) { |
| | | this.$nextTick(() => { |
| | | // this.$refs.uFormSave.setRules(this.rules); |
| | | console.log("1222222"); |
| | | this.$u.api.workReporting |
| | | .operationTask({ |
| | | id: this.operationTaskId, |
| | | }) |
| | | .then((res) => { |
| | | console.log("res", res); |
| | | this.form = res.data.records; |
| | | }); |
| | | }); |
| | | } |
| | | }, |
| | | }, |
| | | methods: { |
| | | confirm() { |
| | |
| | | this.$refs.uModal.clearLoading(); // 清除加载状态 |
| | | return; |
| | | } |
| | | this.operationTaskList.operationTaskId = this.operationTaskList.id |
| | | this.form.operationTaskId = this.operationTaskList.id |
| | | this.operationTaskList.productOutputList = []; // 创建一个空数组 |
| | | this.operationTaskList.productOutputList.push(this.form); // 向数组中添加元素 |
| | | console.log('this.operationTaskList',this.operationTaskList) |
| | | this.$u.api.workReporting |
| | | .submitPDA({ ...this.form, operationTaskId: this.operationTaskId }) |
| | | .submitPDA(this.operationTaskList) |
| | | .then((res) => { |
| | | console.log("res", res); |
| | | this.$emit('update') |
| | | this.$refs.uModal.cancel(); |
| | | }); |
| | | }, |
| | |
| | | this.show = false; |
| | | this.form = {}; |
| | | }, |
| | | open() { |
| | | open(val) { |
| | | this.show = true; |
| | | this.form = val.data; |
| | | }, |
| | | }, |
| | | }; |