车间申请领料分页点击报错问题,销售订单导入title问题修改
master
xs 2 weeks ago
parent c49ddcd3f8
commit 0c65820070

@ -42,8 +42,8 @@
<!-- </el-form-item>--> <!-- </el-form-item>-->
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="searchMaterial('1')">BOM</el-button> <el-button type="primary" icon="el-icon-search" size="mini" @click="searchBomMaterial">BOM</el-button>
<el-button type="warning" icon="el-icon-search" size="mini" @click="searchMaterial('0')">BOM</el-button> <el-button type="warning" icon="el-icon-search" size="mini" @click="searchNoneBomMaterial()">BOM</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"></el-button> <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"></el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -210,6 +210,7 @@ export default {
YES: '1',// YES: '1',//
}, },
wmsRawOutstockDetailList:[], wmsRawOutstockDetailList:[],
bomFlag:undefined,
}; };
}, },
created() { created() {
@ -280,8 +281,18 @@ export default {
this.searchMaterial(); this.searchMaterial();
}, },
searchBomMaterial(){
this.bomFlag = "1";
this.searchMaterial()
},
searchNoneBomMaterial(){
this.bomFlag = "0";
this.searchMaterial();
},
// //
searchMaterial(bomFlag) { searchMaterial() {
this.loading = true; this.loading = true;
if (this.form.warehouseId === null || this.form.warehouseId === undefined if (this.form.warehouseId === null || this.form.warehouseId === undefined
|| this.form.warehouseId === "") { || this.form.warehouseId === "") {
@ -293,7 +304,7 @@ export default {
this.queryParams.planDetailCode = this.form.planDetailCode; this.queryParams.planDetailCode = this.form.planDetailCode;
this.queryParams.productId = this.form.productId; this.queryParams.productId = this.form.productId;
this.queryParams.materialBomId = this.form.materialBomId; this.queryParams.materialBomId = this.form.materialBomId;
this.queryParams.accessoriesFlag = bomFlag; this.queryParams.accessoriesFlag = this.bomFlag;
getStockTotal(this.queryParams).then(e => { getStockTotal(this.queryParams).then(e => {
this.total = e.total; this.total = e.total;
// e.rows.forEach(ee =>{ // e.rows.forEach(ee =>{

@ -783,7 +783,7 @@ export default {
/** 导入按钮操作 */ /** 导入按钮操作 */
handleImport() { handleImport() {
this.upload.title = "提资单导入"; this.upload.title = "销售订单导入";
this.upload.open = true; this.upload.open = true;
this.submitLoading = false; this.submitLoading = false;
}, },

Loading…
Cancel
Save