测试问题修改

master
zhangdi 2 months ago
parent be6561174e
commit 6455f45a9d
  1. 36
      src/views/firstOrder/components/recordDialog.vue
  2. 17
      src/views/secondOrder/components/approvalProcessDialog.vue
  3. 14
      src/views/secondOrder/components/outDialog.vue
  4. 9
      src/views/secondOrder/components/recordDialog.vue

@ -7,8 +7,8 @@
@close="closeDialog"
>
<el-tabs v-model="transactionType" @tab-click="handleTabClick">
<el-tab-pane label="入库" name="2"></el-tab-pane>
<el-tab-pane label="出库" name="1"></el-tab-pane>
<el-tab-pane label="入库" name="1"></el-tab-pane>
<el-tab-pane label="出库" name="2"></el-tab-pane>
</el-tabs>
<div style="display:flex; flex-direction:column; height:400px;">
<avue-crud
@ -48,7 +48,7 @@ export default {
data() {
return {
openShow: false,
transactionType: "2",
transactionType: "1",
tableData: [],
purchaseTitle: "记录",
data: [],
@ -57,25 +57,25 @@ export default {
currentPage: 1,
total: 0,
},
loading: false,
query: {},
loading: false,
query: {},
};
},
computed: {
dynamicOption() {
const showPriceColumn = this.rowData.type === 'NY' && this.transactionType === '1';
const showPriceColumn = this.rowData.type === 'NY' && this.transactionType === '2';
const columns = [
{
label: "数量",
prop: "quantity",
hide: false,
hide: false,
},
{
label: "操作人",
prop: "operatorName",
hide: false,
hide: false,
},
{
label: "时间",
@ -83,7 +83,7 @@ export default {
type: "date",
format: "yyyy-MM-dd HH:mm:ss",
valueFormat: "yyyy-MM-dd HH:mm:ss",
hide: false,
hide: false,
},
{
label: "部门",
@ -93,7 +93,7 @@ export default {
{
label: "单价",
prop: "money",
hide: !showPriceColumn,
hide: !showPriceColumn,
},
];
@ -105,7 +105,7 @@ export default {
searchMenuSpan: 6,
border: true,
index: true,
selection: false,
selection: false,
viewBtn: false,
addBtn: false,
editBtn: false,
@ -121,7 +121,7 @@ export default {
columnBtn: false,
menuAlign: "left",
searchMenuPosition: "right",
column: columns,
column: columns,
};
}
},
@ -135,7 +135,7 @@ export default {
this.page.currentPage = 1;
this.onLoad(this.page, params);
done();
},
},
searchReset() {
this.query = {};
this.onLoad(this.page);
@ -165,17 +165,17 @@ export default {
transactionType: this.transactionType,
currentPage: page.currentPage,
pageSize: page.pageSize,
...params,
...params,
};
console.log("query_", query_);
recordList(query_)
.then((res) => {
this.data = res.data.result.list;
this.page.total = res.data.result.total;
})
.finally(() => {
this.loading = false;
this.loading = false;
});
},
},

@ -36,21 +36,6 @@ export default {
inDialogVisible: false,
inDialogTiltle: "审批流程",
approvalList: [
// {
// name: "",
// time: "2021-01-01 10:10:10",
// status: "",
// },
// {
// name: "1",
// time: "",
// status: "",
// },
// {
// name: "3",
// time: "",
// status: "",
// },
],
};
},
@ -82,7 +67,7 @@ export default {
.teps-con {
margin: 0 auto 0;
:deep(.el-step) {
margin-bottom: 10px;
margin-bottom: 10px;
&:last-child {
margin-bottom: 0;
}

@ -134,7 +134,7 @@
</el-col>
</el-row>
<div class="form-title">{{ outDateInfo }} 出库信息</div>
<div v-if="sizeForm.ldTwoOutStorage.groupName != null">
<div v-if="sizeForm.ldTwoOutStorage.groupName !== '自由出库'">
<el-table
:data="groupTableData"
style="width: 100%"
@ -192,7 +192,7 @@
</el-table>
</div>
<div v-if="sizeForm.ldTwoOutStorage.groupName == null">
<div v-if="sizeForm.ldTwoOutStorage.groupName == '自由出库'">
<el-button
type="primary"
size="mini"
@ -550,6 +550,16 @@ export default {
}
},
getOutGroupName() {
// this.groupNameOptions = [
// {
// groupIds: "83,85",
// groupName: "",
// },
// {
// groupIds: null,
// groupName: "",
// },
// ];
getOutGroupName().then((res) => {
this.groupNameOptions = res.data.result;
});

@ -8,8 +8,9 @@
>
<el-tabs v-model="transactionType" @tab-click="handleTabClick">
<el-tab-pane label="出库" name="1"></el-tab-pane>
<el-tab-pane label="入库" name="2"></el-tab-pane>
<el-tab-pane label="入库" name="1"></el-tab-pane>
<el-tab-pane label="出库" name="2"></el-tab-pane>
</el-tabs>
<div style="height: 400px;">
<avue-crud
@ -21,7 +22,7 @@
@size-change="sizeChange"
@search-change="searchChange"
@search-reset="searchReset"
:page.sync="page"
></avue-crud>
</div>
@ -115,7 +116,7 @@ export default {
this.page.currentPage = 1;
this.onLoad(this.page, params);
done();
},
},
searchReset() {
this.query = {};
this.onLoad(this.page);

Loading…
Cancel
Save