|
|
@@ -189,6 +189,21 @@
|
|
|
clearable
|
|
|
@keyup.enter.native="goodsHandleQuery"/>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="物品状态:">
|
|
|
+ <el-select
|
|
|
+ v-model="goodsParams.goodsStatus2"
|
|
|
+ placeholder="物品状态"
|
|
|
+ clearable
|
|
|
+ style="width: 150px"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="dict in bills_goods_status"
|
|
|
+ :key="dict.value"
|
|
|
+ :label="dict.label"
|
|
|
+ :value="dict.value"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="备注:" prop="remark">
|
|
|
<el-input v-model="goodsParams.remark" placeholder="请输入备注" clearable @keyup.enter.native="goodsHandleQuery" />
|
|
|
</el-form-item>
|
|
|
@@ -324,6 +339,9 @@ export default {
|
|
|
},
|
|
|
detailsList:[],
|
|
|
detailsTotal: 0,
|
|
|
+ // 物品状态
|
|
|
+ bills_goods_status:[],
|
|
|
+ bills_type: "",
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
@@ -429,10 +447,17 @@ export default {
|
|
|
// 新增单据详情
|
|
|
addBillsDetails(row){
|
|
|
this.billsId = row.id
|
|
|
+ this.bills_type = row.billsType
|
|
|
if(row.billsType === "0"){
|
|
|
- this.goodsParams.goodsStatus = "1"
|
|
|
+ this.bills_goods_status = [
|
|
|
+ {label: "已出库",value: "1"},{label: "调度",value: "2"}
|
|
|
+ ]
|
|
|
+ this.goodsParams.goodsStatus = "1,2"
|
|
|
}else {
|
|
|
- this.goodsParams.goodsStatus = "0"
|
|
|
+ this.bills_goods_status = [
|
|
|
+ {label: "在库",value: "0"},{label: "调度",value: "2"}
|
|
|
+ ]
|
|
|
+ this.goodsParams.goodsStatus = "0,2"
|
|
|
}
|
|
|
this.getGoodsList()
|
|
|
this.detailsOpen = true;
|
|
|
@@ -446,6 +471,9 @@ export default {
|
|
|
},
|
|
|
// 物品条件查询
|
|
|
goodsHandleQuery(){
|
|
|
+ if(this.goodsParams.goodsStatus2 != null && this.goodsParams.goodsStatus2 != ""){
|
|
|
+ this.goodsParams.goodsStatus = this.goodsParams.goodsStatus2
|
|
|
+ }
|
|
|
this.queryParams.pageNum = 1;
|
|
|
this.getGoodsList();
|
|
|
},
|
|
|
@@ -453,7 +481,14 @@ export default {
|
|
|
goodsResetQuery(){
|
|
|
this.goodsParams.goodsCode = null;
|
|
|
this.goodsParams.goodsName = null;
|
|
|
+ this.goodsParams.goodsStatus2 = null;
|
|
|
this.goodsParams.remark = null;
|
|
|
+
|
|
|
+ if(this.bills_type === "0"){
|
|
|
+ this.goodsParams.goodsStatus = "1,2"
|
|
|
+ }else {
|
|
|
+ this.goodsParams.goodsStatus = "0,2"
|
|
|
+ }
|
|
|
this.goodsHandleQuery()
|
|
|
},
|
|
|
// 新增详情
|