|
@@ -539,6 +539,10 @@ export default {
|
|
|
onSubmit() {
|
|
|
this.dataSet( this.selectedRows)
|
|
|
var vv = this.selectedRows[0]
|
|
|
+ var mes = '1'
|
|
|
+ this.selectedRows.map(item=>{
|
|
|
+ if(item.surplusNum==0){mes='0'}
|
|
|
+ })
|
|
|
// if(this.fatherData.length !== 0){
|
|
|
// this.fatherDataSet(this.fatherData,vv)
|
|
|
// }
|
|
@@ -551,7 +555,11 @@ export default {
|
|
|
this.$message.error('含有成衣工厂为空的数据,请重新选择!');
|
|
|
}else if(this.queryParam.account == '103' && !((this.customerArr.length==1 && this.customerArr[0] == '香港森语') || (this.customerArr.length==1 && this.customerArr[0] == 'International Apparel Group'))){
|
|
|
this.$message.error('含有客户简称不为香港森语的数据,请重新选择!');
|
|
|
+ }else if(this.queryParam.refer=='1'&&mes=='0'){
|
|
|
+ debugger
|
|
|
+ this.$message.error('订单剩余数量不可为0!');
|
|
|
}else{
|
|
|
+ debugger
|
|
|
var garment = ''
|
|
|
if(this.queryParam.flourOrGarment == 1){
|
|
|
garment = '成衣'
|
|
@@ -589,7 +597,8 @@ export default {
|
|
|
colourTest = [],
|
|
|
sizeTest = [],
|
|
|
custorTest = [],
|
|
|
- distributionPointTest = []
|
|
|
+ distributionPointTest = [],
|
|
|
+ mes ='0'
|
|
|
this.selectedRows.map(item=>{
|
|
|
this.confimList.push(item.syOrderDataItemId);
|
|
|
orderTest.push(item.orderNumber)
|