diff --git a/src/views/order/components/billOfLading.vue b/src/views/order/components/billOfLading.vue
index 9562b58..22e417a 100644
--- a/src/views/order/components/billOfLading.vue
+++ b/src/views/order/components/billOfLading.vue
@@ -368,7 +368,7 @@ export default {
this.$emit("closeWindow");
this.form = {};
this.$refs.form.clearValidate();
- this.controlWindows.create = false;
+ this.controlWindows.bill = false;
},
},
};
diff --git a/src/views/order/index.vue b/src/views/order/index.vue
index dfc757a..1d83b14 100644
--- a/src/views/order/index.vue
+++ b/src/views/order/index.vue
@@ -106,7 +106,7 @@
minWidth="180"
>
- {{ row.actQuantity?row.actQuantity:'--' }} / {{ row.preQuantity?row.preQuantity:'--' }} 吨
+ {{ row.actQuantity|toNumberFixed }} / {{ row.preQuantity|toNumberFixed }} {{row.productMeasurement}}
@@ -116,7 +116,7 @@
minWidth="180"
>
- {{ row.actAmount?row.actAmount:'--' }} / {{ row.preAmount?row.preAmount:'--' }} 元
+ {{ row.actAmount|toNumberFixed}} / {{ row.preAmount|toNumberFixed }} 元
@@ -204,6 +204,13 @@ import autocomplete from "components/autocomplete/index.vue";
import billOfLading from "./components/billOfLading.vue";
export default {
+ filters:{
+ toNumberFixed(val){
+ if(val){
+ return Number(val).toFixed(2)
+ }else{return '--'}
+ }
+ },
data() {
return {
controlWindows: {
diff --git a/src/views/product/components/create.vue b/src/views/product/components/create.vue
index 5c0e0cd..6ea0141 100644
--- a/src/views/product/components/create.vue
+++ b/src/views/product/components/create.vue
@@ -37,6 +37,7 @@
+
-
+
item.id == e
);
@@ -206,16 +209,17 @@ export default {
}
},
//搜索产品
- productData(){
+ async productData(){
let data = {
refineryId:this.form.refineryId,
productType:this.form.productType,
enableMark:'ENABLE'
}
- serve.getRefineryProductList(data).then((res) => {
+ await serve.getRefineryProductList(data).then((res) => {
this.productNameList = res.data;
})
- console.log(this.productRowData,'aaaaaaaaaa')
+ // this.form.productId = this.productNameList[0].productId
+ console.log(this.productRowData,this.productNameList,'aaaaaaaaaa')
},
//搜索客户
customData(value){
@@ -234,9 +238,14 @@ export default {
this.configAutocomplete.echoId = id;
this.configAutocomplete.echoName = this.form.refineryName;
this.form.salePrice = this.form.salePrice2company
+ this.form.productId = this.form.id
+ delete this.form.id
+ this.rowCreate = true
this.productChange()
console.log("this.form", this.form);
+ }else{
+ this.rowCreate = false
}
},
submit() {
@@ -261,7 +270,10 @@ export default {
closeWindow() {
this.$emit("closeWindow");
this.form = {};
+ this.customList = []
this.controlWindows.addInfo = {};
+ this.configAutocomplete = {}
+ this.productNameList = []
this.$refs.form.clearValidate();
this.controlWindows.create = false;
},
diff --git a/src/views/product/index.vue b/src/views/product/index.vue
index 0bd238e..2f9684a 100644
--- a/src/views/product/index.vue
+++ b/src/views/product/index.vue
@@ -99,17 +99,17 @@
- {{ row.floorPrice }}/{{ row.measurement }}
+ {{ row.floorPrice|toNumberFixed }}/{{ row.measurement|toNumberFixed }}
- {{ row.salePrice2company }}/{{ row.measurement }}
+ {{ row.salePrice2company|toNumberFixed }}/{{ row.measurement|toNumberFixed }}
- {{ row.salePrice2personal }}/{{ row.measurement }}
+ {{ row.salePrice2personal|toNumberFixed }}/{{ row.measurement|toNumberFixed }}
@@ -142,7 +142,7 @@
调价记录
- 下单
+ 下单
{
@@ -232,6 +232,13 @@ export default {
autocomplete,
generalDetails,
},
+ filters:{
+ toNumberFixed(val){
+ if(val){
+ return Number(val).toFixed(2)
+ }else{return '暂无'}
+ }
+ },
data() {
return {
controlWindows: {