测试问题修改zzy
This commit is contained in:
parent
720e979d7e
commit
b65aa5b75b
|
|
@ -10,10 +10,11 @@ export function getListLeaseOut(query) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// 领料出库-出库详情信息
|
// 领料出库-出库详情信息
|
||||||
export function outInfoList(id) {
|
export function outInfoList(id,query) {
|
||||||
return request({
|
return request({
|
||||||
url: '/material/lease_apply_info/' + id,
|
url: '/material/lease_apply_info/' + id,
|
||||||
method: 'get'
|
method: 'get',
|
||||||
|
params: query,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -126,12 +126,12 @@
|
||||||
:data="equipmentList"
|
:data="equipmentList"
|
||||||
@selection-change="handleSelectionChange"
|
@selection-change="handleSelectionChange"
|
||||||
>
|
>
|
||||||
<el-table-column
|
<!-- <el-table-column
|
||||||
type="selection"
|
type="selection"
|
||||||
min-width="55"
|
min-width="55"
|
||||||
align="center"
|
align="center"
|
||||||
:selectable="selectable"
|
:selectable="selectable"
|
||||||
/>
|
/> -->
|
||||||
<el-table-column label="序号" type="index" align="center" min-width="80" />
|
<el-table-column label="序号" type="index" align="center" min-width="80" />
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="类型名称"
|
label="类型名称"
|
||||||
|
|
|
||||||
|
|
@ -238,12 +238,11 @@
|
||||||
v-show="showSearch"
|
v-show="showSearch"
|
||||||
label-width="68px"
|
label-width="68px"
|
||||||
>
|
>
|
||||||
<el-form-item prop="typeId">
|
<el-form-item prop="keyWord">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="queryOutInfo.typeId"
|
v-model="queryOutInfo.keyWord"
|
||||||
placeholder="请输入规格型号"
|
placeholder="请输入规格型号"
|
||||||
clearable
|
clearable
|
||||||
@keyup.enter.native="handleQueryOutInfo"
|
|
||||||
maxlength="20"
|
maxlength="20"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
@ -337,12 +336,11 @@
|
||||||
v-show="showSearch"
|
v-show="showSearch"
|
||||||
label-width="68px"
|
label-width="68px"
|
||||||
>
|
>
|
||||||
<el-form-item prop="typeId">
|
<el-form-item prop="keyWord">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="queryOutView.typeId"
|
v-model="queryOutView.keyWord"
|
||||||
placeholder="请输入规格型号"
|
placeholder="请输入规格型号"
|
||||||
clearable
|
clearable
|
||||||
@keyup.enter.native="handleQueryOutInfo"
|
|
||||||
maxlength="20"
|
maxlength="20"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
@ -351,13 +349,13 @@
|
||||||
type="primary"
|
type="primary"
|
||||||
icon="el-icon-search"
|
icon="el-icon-search"
|
||||||
size="mini"
|
size="mini"
|
||||||
@click="handleQueryOutInfo"
|
@click="handleQueryOutView"
|
||||||
>查询</el-button
|
>查询</el-button
|
||||||
>
|
>
|
||||||
<el-button
|
<el-button
|
||||||
icon="el-icon-refresh"
|
icon="el-icon-refresh"
|
||||||
size="mini"
|
size="mini"
|
||||||
@click="resetQueryOutInfo"
|
@click="resetQueryOutView"
|
||||||
>重置</el-button
|
>重置</el-button
|
||||||
>
|
>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
@ -1004,31 +1002,6 @@ export default {
|
||||||
this.queryParams.keyWord = "";
|
this.queryParams.keyWord = "";
|
||||||
this.handleQuery();
|
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;
|
|
||||||
});
|
|
||||||
},
|
|
||||||
|
|
||||||
|
|
||||||
/** 查看按钮操作 */
|
/** 查看按钮操作 */
|
||||||
|
|
@ -1036,17 +1009,52 @@ export default {
|
||||||
this.title = "查看";
|
this.title = "查看";
|
||||||
this.showOutView = true;
|
this.showOutView = true;
|
||||||
this.queryOutView.id = row.id;
|
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.getListOutInfo = response.data.leaseApplyDetailsList;
|
||||||
// this.loading = false;
|
// 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) {
|
handleOut(row) {
|
||||||
this.title = "出库";
|
this.title = "出库";
|
||||||
this.showOutInfo = true;
|
this.showOutInfo = true;
|
||||||
this.queryOutInfo.id = row.id;
|
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.getListOutInfo = response.data.leaseApplyDetailsList;
|
||||||
// this.loading = false;
|
// this.loading = false;
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -145,7 +145,7 @@
|
||||||
v-model="scope.row.purchaseTaxPrice"
|
v-model="scope.row.purchaseTaxPrice"
|
||||||
controls-position="right"
|
controls-position="right"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
:min="0"
|
:min="0" disabled
|
||||||
@change="purchaseTaxPriceChange(scope.row,scope.$index)"
|
@change="purchaseTaxPriceChange(scope.row,scope.$index)"
|
||||||
></el-input-number>
|
></el-input-number>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -457,13 +457,12 @@ export default {
|
||||||
},
|
},
|
||||||
// 含税单价
|
// 含税单价
|
||||||
purchaseTaxPriceChange(row,val){
|
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(4)
|
||||||
row.purchasePrice = (row.purchaseTaxPrice/(1 + this.maForm.taxRate/100)).toFixed(3)
|
// row.purchaseTaxPrice = (row.purchasePrice*(1 + this.maForm.taxRate/100)).toFixed(3)
|
||||||
},
|
},
|
||||||
// 不含税单价
|
// 不含税单价
|
||||||
purchasePriceChange(row,val){
|
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(4)
|
||||||
row.purchaseTaxPrice = (row.purchasePrice*(1 + this.maForm.taxRate/100)).toFixed(3)
|
|
||||||
},
|
},
|
||||||
/** 物资厂家-下拉选 */
|
/** 物资厂家-下拉选 */
|
||||||
supplierInfoList() {
|
supplierInfoList() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue