|
@@ -379,7 +379,7 @@ export default {
|
|
// 子表参照改变之后
|
|
// 子表参照改变之后
|
|
async handleTabReferChange(val, type, source) {
|
|
async handleTabReferChange(val, type, source) {
|
|
|
|
|
|
- // 触发物料参照询价 && source.qty && source.qty != ""
|
|
|
|
|
|
+ // 触发物料参照询价
|
|
if (type == "MATERIAL_PARAM" && source.qty && source.qty != "") {
|
|
if (type == "MATERIAL_PARAM" && source.qty && source.qty != "") {
|
|
|
|
|
|
source['qty'] = 0;
|
|
source['qty'] = 0;
|
|
@@ -449,17 +449,18 @@ export default {
|
|
// 询价 getPrice
|
|
// 询价 getPrice
|
|
async handleGetPrice() {
|
|
async handleGetPrice() {
|
|
try {
|
|
try {
|
|
- // let { puOrg, priceType, customer, assignSupplier, material, } = data;
|
|
|
|
|
|
+
|
|
let { code, data } = await orderApi.getPrice({ ...this.params });
|
|
let { code, data } = await orderApi.getPrice({ ...this.params });
|
|
|
|
+
|
|
if (code == 200) {
|
|
if (code == 200) {
|
|
|
|
+
|
|
this.params = data;
|
|
this.params = data;
|
|
|
|
+
|
|
}
|
|
}
|
|
- } catch (error) {
|
|
|
|
- } finally {
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
|
|
|
|
|
|
+ } catch (error) {}
|
|
|
|
|
|
|
|
+ },
|
|
|
|
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|