测试问题修改zzy

This commit is contained in:
zzyuan 2024-12-03 18:41:30 +08:00
parent 720e979d7e
commit b65aa5b75b
4 changed files with 57 additions and 49 deletions

View File

@ -10,10 +10,11 @@ export function getListLeaseOut(query) {
}
// 领料出库-出库详情信息
export function outInfoList(id) {
export function outInfoList(id,query) {
return request({
url: '/material/lease_apply_info/' + id,
method: 'get'
method: 'get',
params: query,
})
}

View File

@ -126,12 +126,12 @@
:data="equipmentList"
@selection-change="handleSelectionChange"
>
<el-table-column
<!-- <el-table-column
type="selection"
min-width="55"
align="center"
:selectable="selectable"
/>
/> -->
<el-table-column label="序号" type="index" align="center" min-width="80" />
<el-table-column
label="类型名称"

View File

@ -238,12 +238,11 @@
v-show="showSearch"
label-width="68px"
>
<el-form-item prop="typeId">
<el-form-item prop="keyWord">
<el-input
v-model="queryOutInfo.typeId"
v-model="queryOutInfo.keyWord"
placeholder="请输入规格型号"
clearable
@keyup.enter.native="handleQueryOutInfo"
clearable
maxlength="20"
/>
</el-form-item>
@ -337,12 +336,11 @@
v-show="showSearch"
label-width="68px"
>
<el-form-item prop="typeId">
<el-form-item prop="keyWord">
<el-input
v-model="queryOutView.typeId"
v-model="queryOutView.keyWord"
placeholder="请输入规格型号"
clearable
@keyup.enter.native="handleQueryOutInfo"
clearable
maxlength="20"
/>
</el-form-item>
@ -351,13 +349,13 @@
type="primary"
icon="el-icon-search"
size="mini"
@click="handleQueryOutInfo"
@click="handleQueryOutView"
>查询</el-button
>
<el-button
<el-button
icon="el-icon-refresh"
size="mini"
@click="resetQueryOutInfo"
@click="resetQueryOutView"
>重置</el-button
>
</el-form-item>
@ -1004,49 +1002,59 @@ export default {
this.queryParams.keyWord = "";
this.handleQuery();
},
//
handleQueryOutInfo() {
this.queryOutInfo.pageNum = 1;
this.getDialogList();
},
resetQueryOutInfo() {
this.queryOutInfo.typeId=""
this.getDialogList();
},
getListView() {
outInfoList(this.queryOutView.id).then((response) => {
this.getListOutInfo = response.data.leaseApplyDetailsList;
// this.dialogTotal = response.
// this.loading = false;
});
},
/** 出库查询列表 */
getDialogList() {
outInfoList(this.queryOutInfo.id).then((response) => {
this.getListOutInfo = response.data.leaseApplyDetailsList;
// this.dialogTotal = response.
// this.loading = false;
});
},
/** 查看按钮操作 */
handleView(row) {
this.title = "查看";
this.showOutView = true;
this.queryOutView.id = row.id;
outInfoList(row.id).then((response) => {
outInfoList(row.id,{keyWord:this.queryOutView.keyWord}).then((response) => {
this.getListOutInfo = response.data.leaseApplyDetailsList;
// this.loading = false;
});
},
//
handleQueryOutView(){
this.queryOutView.pageNum = 1;
this.getListView();
},
resetQueryOutView() {
this.queryOutView.keyWord=""
this.getListView();
},
getListView() {
outInfoList(this.queryOutView.id,{keyWord:this.queryOutView.keyWord}).then((response) => {
this.getListOutInfo = response.data.leaseApplyDetailsList;
// this.dialogTotal = response.
// this.loading = false;
});
},
/** 出库查询列表 */
getDialogList() {
outInfoList(this.queryOutInfo.id,{keyWord:this.queryOutInfo.keyWord}).then((response) => {
this.getListOutInfo = response.data.leaseApplyDetailsList;
// this.dialogTotal = response.
// this.loading = false;
});
},
//
handleQueryOutInfo() {
this.queryOutInfo.pageNum = 1;
this.getDialogList();
},
//
resetQueryOutInfo() {
this.queryOutInfo.keyWord=""
this.getDialogList();
},
/** 出库按钮操作 */
handleOut(row) {
this.title = "出库";
this.showOutInfo = true;
this.queryOutInfo.id = row.id;
outInfoList(row.id).then((response) => {
outInfoList(row.id,{keyWord:this.queryOutInfo.keyWord}).then((response) => {
this.getListOutInfo = response.data.leaseApplyDetailsList;
// this.loading = false;
});

View File

@ -145,7 +145,7 @@
v-model="scope.row.purchaseTaxPrice"
controls-position="right"
style="width: 100%"
:min="0"
:min="0" disabled
@change="purchaseTaxPriceChange(scope.row,scope.$index)"
></el-input-number>
</template>
@ -456,14 +456,13 @@ export default {
})
},
//
purchaseTaxPriceChange(row,val){
// this.equipmentList[val].purchasePrice = (row.purchaseTaxPrice/(1 + this.maForm.taxRate/100)).toFixed(2)
row.purchasePrice = (row.purchaseTaxPrice/(1 + this.maForm.taxRate/100)).toFixed(3)
purchaseTaxPriceChange(row,val){
row.purchasePrice = (row.purchaseTaxPrice/(1 + this.maForm.taxRate/100)).toFixed(4)
// row.purchaseTaxPrice = (row.purchasePrice*(1 + this.maForm.taxRate/100)).toFixed(3)
},
//
purchasePriceChange(row,val){
// this.equipmentList[val].purchaseTaxPrice = (row.purchasePrice*(1 + this.maForm.taxRate/100)).toFixed(2)
row.purchaseTaxPrice = (row.purchasePrice*(1 + this.maForm.taxRate/100)).toFixed(3)
purchasePriceChange(row,val){
row.purchaseTaxPrice = (row.purchasePrice*(1 + this.maForm.taxRate/100)).toFixed(4)
},
/** 物资厂家-下拉选 */
supplierInfoList() {