| | |
| | | @click="handleSW" |
| | | :disabled=SWbuttonDistable |
| | | type="primary" |
| | | v-has="'specialtyMaintenanceOrder:SW'" |
| | | >开工</a-button> |
| | | <a-button |
| | | :style="{marginRight: '8px'}" |
| | | @click="handleReport" |
| | | :disabled="buttonDistable" |
| | | type="primary" |
| | | v-has="'specialtyMaintenanceOrder:report'" |
| | | >报工</a-button> |
| | | <a-button |
| | | :style="{marginRight: '8px'}" |
| | | @click="handleReset" |
| | | :disabled="revocationDistable" |
| | | type="primary" |
| | | v-has="'specialtyMaintenanceOrder:reset'" |
| | | >撤销</a-button> |
| | | </a-row> |
| | | </div> |
| | |
| | | :scroll="{ x: 'calc(1200px + 50%)', y: 900 }" |
| | | > |
| | | <!-- :scroll="{x:true}" --> |
| | | <template slot="imgSlot" slot-scope="text,record"> |
| | | <span v-if="!text" style="font-size: 12px;font-style: italic;">无图片</span> |
| | | <img v-else :src="getImgView(text)" :preview="record.id" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/> |
| | | </template> |
| | | <template |
| | | slot="imgSlot" |
| | | slot-scope="text,record" |
| | | > |
| | | <span |
| | | v-if="!text" |
| | | style="font-size: 12px;font-style: italic;" |
| | | >无图片</span> |
| | | <img |
| | | v-else |
| | | :src="getImgView(text)" |
| | | :preview="record.id" |
| | | height="25px" |
| | | alt="" |
| | | style="max-width:80px;font-size: 12px;font-style: italic;" |
| | | /> |
| | | </template> |
| | | |
| | | </a-table> |
| | | </div> |
| | |
| | | customRender: function (t, r, index) { |
| | | return parseInt(index) + 1 |
| | | }, |
| | | width:60, |
| | | width: 60, |
| | | }, |
| | | { |
| | | title: '部位', |
| | |
| | | //报工 |
| | | handleReport() { |
| | | var actualMaterials = this.$refs.actualMaterialTabel.dataSource; |
| | | for(var i = 0;i<actualMaterials.length;i++){ |
| | | if(actualMaterials[i].isLock=='no'){ |
| | | this.$message.warn("实际用料第"+(i+1)+"行尚未锁料,请锁料后再进行报工"); |
| | | return false; |
| | | } |
| | | for (var i = 0; i < actualMaterials.length; i++) { |
| | | if (actualMaterials[i].isLock == 'no') { |
| | | this.$message.warn("实际用料第" + (i + 1) + "行尚未锁料,请锁料后再进行报工"); |
| | | return false; |
| | | } |
| | | } |
| | | const that = this; |
| | | that.confirmLoading = true; |