|
|
@@ -249,14 +249,14 @@
|
|
|
writeOffWork
|
|
|
} from '@/api/produceOrder/index.js';
|
|
|
export default {
|
|
|
- mixins: [dictMixins],
|
|
|
+ mixins: [dictMixins],
|
|
|
components: {
|
|
|
OrderPrint,
|
|
|
otherMission,
|
|
|
progressBox,
|
|
|
bomList
|
|
|
},
|
|
|
- data () {
|
|
|
+ data() {
|
|
|
return {
|
|
|
infoData: {},
|
|
|
descriptionsShow: true,
|
|
|
@@ -1026,9 +1026,9 @@
|
|
|
prop: 'storageCode',
|
|
|
minWidth: 100,
|
|
|
align: 'center',
|
|
|
- formatter: (_row, _column, cellValue) => {
|
|
|
- return this.getDictValue('仓库', _row.storageCode);
|
|
|
- }
|
|
|
+ formatter: (_row, _column, cellValue) => {
|
|
|
+ return this.getDictValue('仓库', _row.storageCode);
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
label: '操作',
|
|
|
@@ -1059,17 +1059,17 @@
|
|
|
}
|
|
|
};
|
|
|
},
|
|
|
- created () {
|
|
|
- this.workOrderId = this.$route.query.id;
|
|
|
+ created() {
|
|
|
+ this.workOrderId = this.$route.params.id;
|
|
|
this.getInfo(this.workOrderId);
|
|
|
- this.requestDict('仓库');
|
|
|
+ this.requestDict('仓库');
|
|
|
},
|
|
|
methods: {
|
|
|
- handlePrint () {
|
|
|
+ handlePrint() {
|
|
|
this.$refs.orderPrintRef.open();
|
|
|
},
|
|
|
|
|
|
- handleTabClick (tab) {
|
|
|
+ handleTabClick(tab) {
|
|
|
if (this.chooseIndex != tab.index) {
|
|
|
this.chooseIndex = Number(tab.index);
|
|
|
const chooseItem = this.tabList[this.chooseIndex];
|
|
|
@@ -1084,7 +1084,7 @@
|
|
|
this.setData();
|
|
|
}
|
|
|
},
|
|
|
- setData () {
|
|
|
+ setData() {
|
|
|
this.request.completeNum = this.tabList[this.chooseIndex].number;
|
|
|
if (this.chooseIndex == this.tabList.length - 1) {
|
|
|
this.request.isLast = 1;
|
|
|
@@ -1094,7 +1094,7 @@
|
|
|
this.tabList[this.chooseIndex + 1].number;
|
|
|
}
|
|
|
},
|
|
|
- async datasource ({ page, limit, where }) {
|
|
|
+ async datasource({ page, limit, where }) {
|
|
|
const res = await reportPage({ ...where, pageNum: page, size: limit });
|
|
|
if (typeof res.list == 'string') {
|
|
|
res.list = [];
|
|
|
@@ -1102,12 +1102,12 @@
|
|
|
return res;
|
|
|
},
|
|
|
/* 刷新表格 */
|
|
|
- reload (where) {
|
|
|
+ reload(where) {
|
|
|
this.$nextTick(() =>
|
|
|
this.$refs.table.reload({ page: 1, limit: 10, where })
|
|
|
);
|
|
|
},
|
|
|
- async getInfo (id) {
|
|
|
+ async getInfo(id) {
|
|
|
const res = await getInfoById(id);
|
|
|
this.infoData = res;
|
|
|
if (typeof res.taskTypeProcessDiagrams == 'string') {
|
|
|
@@ -1124,19 +1124,19 @@
|
|
|
this.getReportCount();
|
|
|
this.setData();
|
|
|
},
|
|
|
- async getReportCount () {
|
|
|
+ async getReportCount() {
|
|
|
const res = await reportCount({
|
|
|
taskCode: this.taskCode,
|
|
|
workOrderId: this.workOrderId
|
|
|
});
|
|
|
this.countMsg = res;
|
|
|
},
|
|
|
- openOther () {
|
|
|
+ openOther() {
|
|
|
this.$refs.otherMissionRef.open();
|
|
|
},
|
|
|
|
|
|
// 冲销
|
|
|
- writeOff (row) {
|
|
|
+ writeOff(row) {
|
|
|
const h = this.$createElement;
|
|
|
this.$confirm('', {
|
|
|
message: h('div', null, [
|
|
|
@@ -1213,11 +1213,11 @@
|
|
|
.catch(() => {});
|
|
|
},
|
|
|
|
|
|
- check (row) {
|
|
|
+ check(row) {
|
|
|
this.$refs.bomListRef.open(row);
|
|
|
},
|
|
|
|
|
|
- async refreshData () {
|
|
|
+ async refreshData() {
|
|
|
const res = await getInfoById(this.workOrderId);
|
|
|
this.infoData = res;
|
|
|
if (typeof res.taskTypeProcessDiagrams == 'string') {
|