|
|
@@ -33,7 +33,14 @@
|
|
|
placeholder="库区"
|
|
|
label="cname"
|
|
|
res="records"
|
|
|
- :url="'/blade-sales-part/reservoirarea/list?current=1&size=5&storageId=' + form.storageId"
|
|
|
+ :url="
|
|
|
+ '/blade-sales-part/reservoirarea/listZero?current=1&size=5&storageId=' +
|
|
|
+ form.storageId +
|
|
|
+ '&goodsId=' +
|
|
|
+ query.goodsId +
|
|
|
+ '&dot=' +
|
|
|
+ query.dot
|
|
|
+ "
|
|
|
:filterable="true"
|
|
|
:remote="true"
|
|
|
dataName="cname"
|
|
|
@@ -49,7 +56,6 @@
|
|
|
size="small"
|
|
|
:controls="false"
|
|
|
style="width: 100%"
|
|
|
- :max="row.balanceQuantity"
|
|
|
:disabled="disabled"
|
|
|
@change="qtyChange(row)"
|
|
|
/>
|
|
|
@@ -81,7 +87,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- dots:[],
|
|
|
+ dots: [],
|
|
|
data: [],
|
|
|
dialogVisible: false,
|
|
|
loading: false,
|
|
|
@@ -143,14 +149,14 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
addRow() {
|
|
|
- if(!this.query.dot){
|
|
|
+ if (!this.query.dot) {
|
|
|
return this.$message.error("请选择批次号!");
|
|
|
}
|
|
|
if (this.data.length == 0) {
|
|
|
this.data.push({
|
|
|
quantity: this.qtyMax
|
|
|
});
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
this.data.push({
|
|
|
quantity: 0
|
|
|
});
|
|
|
@@ -181,16 +187,16 @@ export default {
|
|
|
this.form = {};
|
|
|
this.query = {};
|
|
|
this.index = null;
|
|
|
- this.dots=[];
|
|
|
+ this.dots = [];
|
|
|
this.data = [];
|
|
|
this.qtyMax = 0;
|
|
|
this.form = form;
|
|
|
this.query = row;
|
|
|
- let list=this.deepClone(row.dots.split(','))
|
|
|
- for(let item of list){
|
|
|
+ let list = this.deepClone(row.dots.split(","));
|
|
|
+ for (let item of list) {
|
|
|
this.dots.push({
|
|
|
- dot:item
|
|
|
- })
|
|
|
+ dot: item
|
|
|
+ });
|
|
|
}
|
|
|
this.index = index;
|
|
|
this.data = this.deepClone(row.historyList);
|