Browse Source

feat: update 数量组件问题

master
TengXF 6 months ago
parent
commit
57db5f8f59
  1. 6
      src/pages/mes/workScheduling/waitReport.vue
  2. 14
      src/pages/mes/workScheduling/workScheduling.vue

6
src/pages/mes/workScheduling/waitReport.vue

@ -11,14 +11,14 @@
<view>报工人员</view> <view>报工人员</view>
<view><u-input v-model="formData.reportPersonName" type="select" @click="showWorker = true" placeholder="请选择人员"/></view> <view><u-input v-model="formData.reportPersonName" type="select" @click="showWorker = true" placeholder="请选择人员"/></view>
</view> </view>
<view class="dec-item"> <view class="dec-item">
<view>报工数量</view> <view>报工数量</view>
<view> <view>
<u-number-box v-model="formData.reportCount" @update:modelValue="changeReportCount()" style="width:120px" :key="rekey" ></u-number-box> <u-number-box v-model="formData.reportCount" :max="planCount" @update:modelValue="changeReportCount()" style="width:120px" :key="rekey" ></u-number-box>
<!-- <u</u-form-item>-input v-model="formData.reportCount" type="number" @update:modelValue="calculatePass()" placeholder="请输入数量" /> --> <!-- <u</u-form-item>-input v-model="formData.reportCount" type="number" @update:modelValue="calculatePass()" placeholder="请输入数量" /> -->
</view> </view>
@ -27,7 +27,7 @@
<view>报工工时</view> <view>报工工时</view>
<view> <view>
<!-- <u-input v-model="formData.workTerm" type="number" placeholder="请输入工时" /> --> <!-- <u-input v-model="formData.workTerm" type="number" placeholder="请输入工时" /> -->
<u-number-box v-model="formData.workTerm" style="width:120px"></u-number-box> <u-number-box v-model="formData.workTerm" :max="12" :min="0" style="width:120px"></u-number-box>
</view> </view>
</view> </view>
<view class="dec-item"> <view class="dec-item">

14
src/pages/mes/workScheduling/workScheduling.vue

@ -102,28 +102,28 @@
<u-tr> <u-tr>
<u-th>步骤</u-th> <u-th>步骤</u-th>
<u-th>编码</u-th> <u-th>编码</u-th>
<u-th v-if="item.status==1 && item.flagDo != 0" >操作</u-th> <u-th v-if="item.status==1 && item.flagDo != 1" >操作</u-th>
</u-tr> </u-tr>
<u-tr v-for="(detail, detailIndex) in item.detailDOList" :key="detailIndex" <u-tr v-for="(detail, detailIndex) in item.detailDOList" :key="detailIndex"
class="text"> class="text">
<u-td>{{ detailIndex + 1 }}</u-td> <u-td>{{ detailIndex + 1 }}</u-td>
<u-td>{{ detail.nodeCode }}</u-td> <u-td>{{ detail.nodeCode }}</u-td>
<u-td v-if="detail.nodeCode==item.workingNode && item.status==1 && detail.status==0 && item.flagDo != 0"> <u-td v-if="detail.nodeCode==item.workingNode && item.status==1 && detail.status==0 && item.flagDo != 1">
<u-button type="success" @click="nodeCodeFinish(detail)" class="tableBtn" >待完成</u-button> <u-button type="success" @click="nodeCodeFinish(detail)" class="tableBtn" >待完成</u-button>
</u-td> </u-td>
<u-td v-if="detail.status==2 && item.status==1 && item.flagDo != 0"> <u-td v-if="detail.status==2 && item.status==1 && item.flagDo != 1">
<u-button type="primary" @click="reportHandle(detail)" class="tableBtn" >待报工</u-button> <u-button type="primary" @click="reportHandle(detail)" class="tableBtn" >待报工</u-button>
</u-td> </u-td>
<u-td v-if="detail.status==4 && item.status==1 && item.flagDo != 0"> <u-td v-if="detail.status==4 && item.status==1 && item.flagDo != 1">
<u-button type="primary" @click="waitCheck(detail)" class="tableBtn" >待质检</u-button> <u-button type="primary" @click="waitCheck(detail)" class="tableBtn" >待质检</u-button>
</u-td> </u-td>
<u-td v-if="detail.status==0 && item.status==1 && detail.nodeCode!=item.workingNode && item.flagDo != 0"> <u-td v-if="detail.status==0 && item.status==1 && detail.nodeCode!=item.workingNode && item.flagDo != 1">
<u-button type="warning" class="tableBtn" >待执行</u-button> <u-button type="warning" class="tableBtn" >待执行</u-button>
</u-td> </u-td>
<u-td v-if="detail.status==1 && item.status==1 && item.flagDo != 0"> <u-td v-if="detail.status==1 && item.status==1 && item.flagDo != 1">
<u-button type="warning" class="tableBtn" >已完成</u-button> <u-button type="warning" class="tableBtn" >已完成</u-button>
</u-td> </u-td>
<u-td v-if="detail.status==3 && item.status==1 && item.flagDo != 0"> <u-td v-if="detail.status==3 && item.status==1 && item.flagDo != 1">
<u-button type="warning" class="tableBtn" >已报工</u-button> <u-button type="warning" class="tableBtn" >已报工</u-button>
</u-td> </u-td>
</u-tr> </u-tr>

Loading…
Cancel
Save