|
|
|
@ -77,7 +77,7 @@ |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
<el-dialog width="800px" :title="'数据维护'" :close-on-click-modal="false" v-drag :visible.sync="modelFlag"> |
|
|
|
<el-dialog width="800px" :title="'创建分卷'" :close-on-click-modal="false" v-drag :visible.sync="modelFlag"> |
|
|
|
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: -10px;"> |
|
|
|
<el-form-item :label="'工厂编号:'"> |
|
|
|
<el-input v-model="dataForm.site" readonly style="width: 120px;"></el-input> |
|
|
|
@ -98,7 +98,7 @@ |
|
|
|
<el-input v-model="dataForm.supplierName" readonly style="width: 255px;"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item style="margin-top: 30px"> |
|
|
|
<el-button @click="saveCRoll()" type="primary" style="width: 80px;margin-left: 155px;">创建</el-button> |
|
|
|
<el-button @click="saveCRoll()" type="primary" style="width: 108px;margin-left: 142px;">创建</el-button> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 0px;"> |
|
|
|
@ -112,7 +112,7 @@ |
|
|
|
<el-input v-model="dataForm.spec" readonly style="width: 180px;"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item style="margin-top: 30px"> |
|
|
|
<el-button @click="modelFlag=false" type="primary" style="width: 80px;margin-left: 95px;">关闭</el-button> |
|
|
|
<el-button @click="modelFlag=false" type="primary" style="width: 108px;margin-left: 82px;">关闭</el-button> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 0px;"> |
|
|
|
@ -161,20 +161,22 @@ |
|
|
|
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 0px;"> |
|
|
|
<el-form-item > |
|
|
|
<span slot="label" style="" @click="getBaseList(92)"><a herf="#">客户编号:</a></span> |
|
|
|
<el-input v-model="dataForm.customerID" style="width: 120px;"></el-input> |
|
|
|
<el-input v-model="dataForm.customerID" style="width: 120px;" @change="getReferenceData();"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item > |
|
|
|
<span slot="label" style="" @click="getBaseList(5)"><a herf="#">产品编码:</a></span> |
|
|
|
<el-input v-model="dataForm.fGPartNo" style="width: 120px;"></el-input> |
|
|
|
<el-input v-model="dataForm.fGPartNo" style="width: 120px;" @change="getReferenceData();"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'参照名称:'"> |
|
|
|
<el-input v-model="dataForm.referencePartDesc" readonly style="width: 120px;"></el-input> |
|
|
|
<el-input v-model="dataForm.referencePartDesc" readonly style="width: 220px;"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 0px;"> |
|
|
|
<el-form-item :label="'供应商编码:'"> |
|
|
|
<el-input v-model="dataForm.supplierID" readonly style="width: 120px;"></el-input> |
|
|
|
<el-input v-model="dataForm.referenceSupplierID" readonly style="width: 120px;"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'供应商名称:'"> |
|
|
|
<el-input v-model="dataForm.supplierName" readonly style="width: 120px;"></el-input> |
|
|
|
<el-input v-model="dataForm.referenceSupplierName" readonly style="width: 220px;"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-tabs v-model="activeName" style="font-size: 11px"> |
|
|
|
@ -303,6 +305,7 @@ |
|
|
|
saveCRollData, |
|
|
|
saveSuppRollNo, |
|
|
|
doSaveSuppRollNo, |
|
|
|
getReferenceData, |
|
|
|
} from "@/api/purchasingManagement/materialSplit.js" |
|
|
|
import { |
|
|
|
getPartNoDetail, |
|
|
|
@ -373,6 +376,8 @@ |
|
|
|
fGPartNo: '', |
|
|
|
referencePartDesc: '', |
|
|
|
checked: false, |
|
|
|
referenceSupplierID:'', |
|
|
|
referenceSupplierName:'', |
|
|
|
XX: '', |
|
|
|
}, |
|
|
|
sum1: '', |
|
|
|
@ -926,9 +931,11 @@ |
|
|
|
getBaseData(val){ |
|
|
|
if (this.tagNo === 92){ |
|
|
|
this.dataForm.customerID = val.ConfigurationTemplateID |
|
|
|
this.getReferenceData(); |
|
|
|
} |
|
|
|
if (this.tagNo === 5){ |
|
|
|
this.dataForm.fGPartNo = val.PartNo |
|
|
|
this.dataForm.fGPartNo = val.PartNo; |
|
|
|
this.getReferenceData(); |
|
|
|
} |
|
|
|
}, |
|
|
|
// 获取基础数据列表 |
|
|
|
@ -968,7 +975,7 @@ |
|
|
|
rollNumber: row.rollNumber, |
|
|
|
customerID: '无', |
|
|
|
fGPartNo: '无', |
|
|
|
referencePartDesc: row.referencePartDesc, |
|
|
|
referencePartDesc:'', |
|
|
|
checked: false, |
|
|
|
XX: '', |
|
|
|
}; |
|
|
|
@ -986,7 +993,7 @@ |
|
|
|
} |
|
|
|
var dateString = year + "-" + month + "-" + day; |
|
|
|
this.$set(this.dataForm, 'receive', dateString) |
|
|
|
this.dataForm.referencePartDesc = this.dataForm.partNo; |
|
|
|
this.getReferenceData(); |
|
|
|
let inData = { |
|
|
|
site: row.site, |
|
|
|
orderRef1: row.orderNo, |
|
|
|
@ -1056,6 +1063,8 @@ |
|
|
|
parttypeFlag: 'R', |
|
|
|
customerID: this.dataForm.customerID, |
|
|
|
fGPartNo: this.dataForm.fGPartNo, |
|
|
|
refSupplierID:this.dataForm.referenceSupplierID, |
|
|
|
referencePartDesc:this.dataForm.referencePartDesc |
|
|
|
} |
|
|
|
this.dataList1.push(newDate) |
|
|
|
this.sum1 += newDate.rollNumber; |
|
|
|
@ -1209,12 +1218,12 @@ |
|
|
|
rollNumber: row.rollNumber, |
|
|
|
customerID: '无', |
|
|
|
fGPartNo: '无', |
|
|
|
referencePartDesc: row.referencePartDesc, |
|
|
|
referencePartDesc: '', |
|
|
|
checked: false, |
|
|
|
XX: '', |
|
|
|
}; |
|
|
|
this.dataForm.referencePartDesc = this.dataForm.partNo; |
|
|
|
this.$set(this.dataForm, 'receive', new Date()); |
|
|
|
this.getReferenceData(); |
|
|
|
let inData = { |
|
|
|
site: this.dataForm.site, |
|
|
|
orderRef1: this.dataForm.orderNo, |
|
|
|
@ -1250,12 +1259,12 @@ |
|
|
|
rollNumber: row.rollNumber, |
|
|
|
customerID: '无', |
|
|
|
fGPartNo: '无', |
|
|
|
referencePartDesc: row.referencePartDesc, |
|
|
|
referencePartDesc: '', |
|
|
|
checked: false, |
|
|
|
XX: '', |
|
|
|
}; |
|
|
|
this.dataForm.referencePartDesc = this.dataForm.partNo; |
|
|
|
this.$set(this.dataForm, 'receive', new Date()); |
|
|
|
this.getReferenceData(); |
|
|
|
let inData = { |
|
|
|
site: this.dataForm.site, |
|
|
|
orderRef1: this.dataForm.orderNo, |
|
|
|
@ -1379,9 +1388,27 @@ |
|
|
|
return s |
|
|
|
}, |
|
|
|
// 导出 end |
|
|
|
getReferenceData(){ |
|
|
|
let inData = { |
|
|
|
site: this.dataForm.site, |
|
|
|
partNo: this.dataForm.partNo, |
|
|
|
partDescription: this.dataForm.partDescription, |
|
|
|
customerID: this.dataForm.customerID, |
|
|
|
fGPartNo: this.dataForm.fGPartNo, |
|
|
|
supplierID: '*', |
|
|
|
} |
|
|
|
getReferenceData(inData).then(({data}) => { |
|
|
|
if (data.success) { |
|
|
|
if (data.rows.length > 0) { |
|
|
|
this.dataForm.referenceSupplierID = data.rows[0].SupplierID; |
|
|
|
this.dataForm.referencePartDesc = data.rows[0].PartDescription; |
|
|
|
this.dataForm.referenceSupplierName = data.rows[0].SupplierName; |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
created() |
|
|
|
{ |
|
|
|
created() { |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|