入库单新建
This commit is contained in:
1 parent
e2dead6c3f
commit
663769f80e
50 files changed
+2164
-94
No files matched your search
@@ -37,7 +37,7 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-input v-model="form.sbill" placeholder="收货单号"></el-input>
|
||||
<el-input v-model="form.sbill" placeholder="发货单号"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-input v-model="form.billno" placeholder="采购订单"></el-input>
|
||||
@@ -108,17 +108,14 @@
|
||||
data() {
|
||||
return {
|
||||
form: {
|
||||
address: '',
|
||||
address: 'HYB',
|
||||
billno: '',
|
||||
sbill: '',
|
||||
materialcode: ''
|
||||
},
|
||||
addressList: [{
|
||||
value: 'QCT',
|
||||
label: 'QCT'
|
||||
}, {
|
||||
value: 'SBD',
|
||||
label: 'SBD'
|
||||
value: 'HYB',
|
||||
label: 'HYB'
|
||||
}],
|
||||
options: [{
|
||||
value: 'A',
|
||||
@@ -228,9 +225,23 @@
|
||||
return;
|
||||
}
|
||||
if (_this.verify(_this.multipleSelection)) {
|
||||
_this.$message.error("请选择同一张采购单!");
|
||||
_this.$message.error("请选择同一张单据!");
|
||||
return;
|
||||
}
|
||||
//收货单要完整收完
|
||||
var SDHNUM_0 = _this.multipleSelection[0].SDHNUM_0;
|
||||
var tmp = [];
|
||||
_this.tableData.forEach(function (x) {
|
||||
if (x.SDHNUM_0 == SDHNUM_0) {
|
||||
tmp.push(x.SDHNUM_0)
|
||||
}
|
||||
});
|
||||
console.log(tmp, _this.multipleSelection)
|
||||
if (tmp.length != _this.multipleSelection.length) {
|
||||
_this.$message.error("一张收货单必须全部收完!");
|
||||
return;
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
type: "post",
|
||||
dataType: "json",
|
||||
@@ -261,7 +272,7 @@
|
||||
},
|
||||
verify(array) {
|
||||
const tmp = new Set();
|
||||
array.forEach(x => tmp.add(x.POHNUM_0));
|
||||
array.forEach(x => tmp.add(x.SDHNUM_0));
|
||||
return tmp.size > 1 ? true : false;
|
||||
}
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user