测试问题修改

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

@ -36,21 +36,6 @@ export default {
inDialogVisible: false, inDialogVisible: false,
inDialogTiltle: "审批流程", inDialogTiltle: "审批流程",
approvalList: [ 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 { .teps-con {
margin: 0 auto 0; margin: 0 auto 0;
:deep(.el-step) { :deep(.el-step) {
margin-bottom: 10px; margin-bottom: 10px;
&:last-child { &:last-child {
margin-bottom: 0; margin-bottom: 0;
} }

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

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

Loading…
Cancel
Save