| | |
| | | <button class="refresh-btn" @click="refresh">刷新</button> |
| | | </view> |
| | | <!-- 中间状态部分,上下结构 --> |
| | | <!-- |
| | | <view class="middle-section"> |
| | | <view class="item" style="height: 100px;"> |
| | | <h4>说明:调机开始时间手动确认</h4> |
| | | <h4>说明:调机开始时间需要手动确认</h4> |
| | | </view> |
| | | <view class="item" v-if="!maStartTime"> |
| | | <button class="btn-blue" @click="maStartTime">调机开始(=换模完成)</button> |
| | | <button class="btn-blue" @click="setMaStartTime">调机开始(=换模完成)</button> |
| | | <input class="txt-inp" v-model="maStartTime" placeholder="点击按钮带出时间" disabled="true" /> |
| | | </view> |
| | | <view class="item" v-else> |
| | |
| | | <input class="txt-inp" v-model="maEndTime" placeholder="首次首检确认通过写入" disabled="true" /> |
| | | </view> |
| | | </view> |
| | | --> |
| | | <!-- 中间状态部分,上下结构 --> |
| | | <view class="middle-section"> |
| | | <view class="item" style="height: 100px;"> |
| | | <h4>说明:调机开始时间需要手动确认</h4> |
| | | </view> |
| | | <view class="item"> |
| | | <!-- 调机开始按钮,maStartTime有值时禁用 --> |
| | | <button :class="maStartTime ? 'btn-disabled' : 'btn-blue'" |
| | | :disabled="!!maStartTime" |
| | | @click="!maStartTime && setMaStartTime"> |
| | | 调机开始(=换模完成) |
| | | </button> |
| | | <input class="txt-inp" v-model="maStartTime" placeholder="点击按钮带出时间" disabled="true" /> |
| | | </view> |
| | | <view class="item"> |
| | | <!-- 送检呼叫按钮,maShoutTime有值时禁用 --> |
| | | <button :class="maShoutTime ? 'btn-disabled' : 'btn-blue'" |
| | | :disabled="!!maShoutTime" |
| | | @click="!maShoutTime && stateCheck(1)"> |
| | | 送检呼叫(点击按钮|清零机台面板数) |
| | | </button> |
| | | <input class="txt-inp" v-model="maShoutTime" placeholder="点击按钮带出时间" disabled="true" /> |
| | | </view> |
| | | <view class="item"> |
| | | <!-- 调机完成按钮,maEndTime有值时禁用 --> |
| | | <button :class="maEndTime ? 'btn-disabled' : 'btn-blue'" |
| | | :disabled="!!maEndTime" |
| | | @click="!maEndTime && setMaEndTime"> |
| | | 调机完成(=检验通过) |
| | | </button> |
| | | <input class="txt-inp" v-model="maEndTime" placeholder="首次首检确认通过写入" disabled="true" /> |
| | | </view> |
| | | </view> |
| | | |
| | | <!-- 底部保存/取消按钮 --> |
| | | <view class="bottom-section"> |
| | | <button class="save-btn" v-if="!maEndTime" @click="save">保存并生效</button> |
| | | <!-- <button class="save-btn" @click="save">保存并生效</button> --> |
| | | <button class="btn-disabled" v-else >保存并生效</button> |
| | | <button class="btn-disabled" v-else>保存并生效</button> |
| | | <button class="cancel-btn" @click="cancel">取消</button> |
| | | </view> |
| | | |
| | |
| | | // } |
| | | // } |
| | | |
| | | |
| | | if (!this.orderId && !this.orderNo) { |
| | | return; |
| | | } |
| | |
| | | this.findByOrderId(); |
| | | }, |
| | | methods: { |
| | | maStartTime() { |
| | | this.maStartTime = this.$getDate('yyyy-mm-dd hh24:mi:ss'); |
| | | }, |
| | | setMaStartTime() { |
| | | this.maStartTime = this.$getDate('yyyy-mm-dd hh24:mi:ss'); |
| | | }, |
| | | setMaEndTime() { |
| | | this.maEndTime = this.$getDate('yyyy-mm-dd hh24:mi:ss'); |
| | | }, |
| | | refresh() { |
| | | this.findByOrderId(); // This will reload the data for the current order |
| | | }, |
| | |
| | | this.$post({ |
| | | url: "/MesOrderSta/ChangeMachineTime", |
| | | data: { |
| | | maStartTime: this.maStartTime, // 新增调机时间 |
| | | maStartTime: this.maStartTime, // 新增调机时间 |
| | | maShoutTime: this.maShoutTime, |
| | | maEndTime: this.maEndTime, // 新增调机完成时间 |
| | | id: this.statusForm.id, |
| | | orderId: this.orderId, |
| | | machineNo: this.machineNo, |
| | |
| | | }, |
| | | cancel() { |
| | | this.maShoutTime = this.statusForm.maShoutTime; |
| | | this.maStartTime = this.statusForm.maStartTime; |
| | | this.maEndTime = this.statusForm.maEndTime; |
| | | }, |
| | | stateCheck(item) { |
| | | switch (item) { |