Browse Source

在库运单功能模块提交

dev-warehouse
zhenghaoyu 2 years ago
parent
commit
c3a675b9f6
  1. 48
      src/views/warehouse/warehouseWaybill.vue

48
src/views/warehouse/warehouseWaybill.vue

@ -328,7 +328,7 @@
{{ itemlimit.productName }}
</div>
<div>
<el-input v-model="itemlimit.splitNum" placeholder="请输入数量" />
<el-input v-model="itemlimit.splitNum" type='number' placeholder="请输入数量" />
</div>
</div>
</div>
@ -365,7 +365,7 @@
</div>
</div>
<div class="btsbx">
<el-button @click="hidedial">取消</el-button>
<el-button @click="close">取消</el-button>
<el-button type="primary" @click="hidedial()">确认</el-button>
</div>
</el-dialog>
@ -783,7 +783,7 @@ export default {
goods: [
{
productName: '',
splitNum: 0,
splitNum: '',
},
],
},
@ -796,7 +796,7 @@ export default {
goods: [
{
productName: '',
splitNum: 0,
splitNum: '',
},
],
},
@ -1097,16 +1097,46 @@ export default {
var proN = t[i];
var o = {};
o.productName = proN;
o.splitNum = 0;
arr[i] = o;
}
return arr;
},
// inputChange(e){//
// var self = this
// var o = e.target
// o.value=o.value.replace(/[^\d.]/g,'')
// o.value = o.value.replace(/[^\d.]/g,""); // .
// o.value = o.value.replace(/\./g,""); // .
// if(o.value.indexOf(".")< 0 && o.value !=""){// 0102
// o.value= parseFloat(o.value);
// }
// if(o.value.toString().split(".")[0].length>8){ // 88
// if(o.value.toString().indexOf(".")>-1){
// o.value = o.value.toString().split(".")[0].substr(0,8)+"."+o.value.toString().split(".")[1]
// }
// else{
// o.value = o.value.toString().split(".")[0].substr(0,8)
// }
// }
// //o.value //
// this.value = o.value
// },
hidedial() {
//
let row = [];
for (let index = 0; index < this.orderlist.length; index++) {
const element = this.orderlist[index];
if(element.goods){
var o = element.goods[index]
if(!o.splitNum){
this.$message({
type: 'waring',
message: '请输入拆分数量!',
});
return
}
}
let obj = {
waybillNo: this.rowobj.waybillNo,
customerPerson: element.name,
@ -1116,17 +1146,23 @@ export default {
};
row.push(obj);
}
console.log(row)
splitOrder(row).then(res => {
const data = res.data.data;
this.page.total = data.total;
this.data = data.records;
this.loading = false;
this.orderlist = [];
this.selectionClear();
});
this.dialogTableVisible = false;
},
close() {
this.dialogTableVisible = false;
},
addorder() {
// copy

Loading…
Cancel
Save