|
|
@@ -142,6 +142,7 @@
|
|
142
|
142
|
@click="btnClickEvents(item, scope.row.F_WoCode, scope.row)">
|
|
143
|
143
|
{{ item.value }}
|
|
144
|
144
|
</el-button>
|
|
|
145
|
+ <!-- <el-button v-if="scope.row.F_Type == 3000 && userCodes == '8000'" type="text" style="color: #ff4727;" @click="onlyDelete(scope.row.F_WoCode)">删除</el-button> -->
|
|
145
|
146
|
</template>
|
|
146
|
147
|
</el-table-column>
|
|
147
|
148
|
</el-table>
|
|
|
@@ -152,7 +153,9 @@
|
|
152
|
153
|
</template>
|
|
153
|
154
|
|
|
154
|
155
|
<script>
|
|
155
|
|
- // import { getDictionaryValueList } from '@/api/commonAPI'
|
|
|
156
|
+ // import {
|
|
|
157
|
+ // postDelWorkOrder
|
|
|
158
|
+ // } from "@/api/faultRepairManagement/faultRepair";
|
|
156
|
159
|
import {
|
|
157
|
160
|
deleteOrder,
|
|
158
|
161
|
CompleteOrder,
|
|
|
@@ -194,6 +197,7 @@
|
|
194
|
197
|
},
|
|
195
|
198
|
data() {
|
|
196
|
199
|
return {
|
|
|
200
|
+ // userCodes:window.localStorage.getItem('storageUsercode'),
|
|
197
|
201
|
deptidArr:[],
|
|
198
|
202
|
sourceData:[],
|
|
199
|
203
|
isloading:0,
|
|
|
@@ -322,6 +326,27 @@
|
|
322
|
326
|
this.btn_editBx(wocode);
|
|
323
|
327
|
}
|
|
324
|
328
|
},
|
|
|
329
|
+ // onlyDelete(wocode){
|
|
|
330
|
+ // var params = {
|
|
|
331
|
+ // workordercode: wocode
|
|
|
332
|
+ // };
|
|
|
333
|
+ // this.$confirm("确定删除该数据吗?", "提示", {
|
|
|
334
|
+ // confirmButtonText: "确定",
|
|
|
335
|
+ // cancelButtonText: "取消",
|
|
|
336
|
+ // type: "warning",
|
|
|
337
|
+ // })
|
|
|
338
|
+ // .then(() => {
|
|
|
339
|
+ // postDelWorkOrder(params).then((response) => {
|
|
|
340
|
+ // if (response.state.toLowerCase() === "success") {
|
|
|
341
|
+ // this.getList();
|
|
|
342
|
+ // this.$message.success("删除成功!");
|
|
|
343
|
+ // }
|
|
|
344
|
+ // });
|
|
|
345
|
+ // })
|
|
|
346
|
+ // .catch(() => {
|
|
|
347
|
+ // this.$message.info("已取消删除");
|
|
|
348
|
+ // });
|
|
|
349
|
+ // },
|
|
325
|
350
|
getList() {
|
|
326
|
351
|
if(this.isloading==0){
|
|
327
|
352
|
this.loading = true
|