删除
-
+
@@ -302,7 +300,7 @@
diff --git a/src/views/foodManage/index.vue b/src/views/foodManage/index.vue
index 28aeb7af..73fe15a0 100644
--- a/src/views/foodManage/index.vue
+++ b/src/views/foodManage/index.vue
@@ -432,7 +432,7 @@ export default {
{
type: "category",
inverse: true,
- offset: 60,
+ offset: 90,
axisLabel: {
show: true,
align: "left",
@@ -444,7 +444,7 @@ export default {
var str = "";
var no = "NO.";
num = index + 1;
- value = value.length > 7 ? value.slice(0, 7) + '...' : value
+ value = value.length > 5 ? value.slice(0, 5) + '...' : value
if (index === 0) {
str = " {num1|" + num + "} {title1|" + value + "}";
} else if (index === 1) {
@@ -537,7 +537,7 @@ export default {
{
type: "category",
inverse: true,
- offset: -10,
+ offset: -40,
axisTick: "none",
axisLine: "none",
show: true,
@@ -747,7 +747,7 @@ export default {
{
type: "category",
inverse: true,
- offset: 100,
+ offset: 90,
axisLabel: {
show: true,
align: "left",
@@ -759,7 +759,7 @@ export default {
var str = "";
var no = "NO.";
num = index + 1;
- value = value.length > 7 ? value.slice(0, 7) + '...' : value
+ value = value.length > 5 ? value.slice(0, 5) + '...' : value
if (index === 0) {
str = " {num1|" + num + "} {title1|" + value + "}";
} else if (index === 1) {
diff --git a/src/views/foodManage/pickManage/materialPicking/edit.vue b/src/views/foodManage/pickManage/materialPicking/edit.vue
index d18aa774..7c4676ad 100644
--- a/src/views/foodManage/pickManage/materialPicking/edit.vue
+++ b/src/views/foodManage/pickManage/materialPicking/edit.vue
@@ -549,46 +549,50 @@ export default {
confirmSave(){
this.$refs["baseInfo"].validate(valid => {
if (valid) {
- let param = Object.assign({},this.baseInfo);
- param.fetchMaterialTime = this.formatDateTime(this.baseInfo.fetchMaterialTime)
- param.totalNum=0
- param.detailList = []
- this.noMaterial = false;
- if(this.materialList.length>0){
- this.materialList.forEach(item=>{
- if(item.fetchNum==0){
- this.noMaterial = true
- }else{
- let obj = Object.assign({}, item)
- // obj.singlePrice = Number(obj.singlePrice)*100
- // obj.totalPrice = (Number(obj.singlePrice)*Number(obj.fetchNum))
- // param.orderAmount = param.orderAmount+obj.totalPrice;
- param.totalNum = param.totalNum+Number(obj.fetchNum)
- param.detailList.push(obj)
- }
- })
- }
- if(this.noMaterial){
- this.$modal.msgError("请输入货品数量!");
- }else{
- this.noMaterial = true;
- if(this.materialList.length>0){
- this.noMaterial = false;
+ setTimeout(()=>{
+ let param = Object.assign({},this.baseInfo);
+ param.fetchMaterialTime = this.formatDateTime(this.baseInfo.fetchMaterialTime)
+ param.totalNum=0
+ param.detailList = []
+ this.noMaterial = false;
+ if(this.materialList.length>0){
+ this.materialList.forEach(item=>{
+ if(item.fetchNum==0){
+ this.noMaterial = true
+ }else{
+ let obj = Object.assign({}, item)
+ // obj.singlePrice = Number(obj.singlePrice)*100
+ // obj.totalPrice = (Number(obj.singlePrice)*Number(obj.fetchNum))
+ // param.orderAmount = param.orderAmount+obj.totalPrice;
+ param.totalNum = param.totalNum+Number(obj.fetchNum)
+ param.detailList.push(obj)
+ }
+ })
}
- console.log(param)
if(this.noMaterial){
- this.$modal.msgError("请添加货品!");
+ this.$modal.msgError("请输入货品数量!");
}else{
- this.loadingBtn=true;
- addFetchMaterialApi(param).then((response) => {
- this.$modal.msgSuccess("保存成功");
- this.loadingBtn=false
- this.jumpList()
- }).catch(() => {
- this.loadingBtn=false
- });
- }
- }
+ this.noMaterial = true;
+ if(this.materialList.length>0){
+ this.noMaterial = false;
+ }
+ console.log(param)
+ if(this.noMaterial){
+ this.$modal.msgError("请添加货品!");
+ }else{
+ this.loadingBtn=true;
+ setTimeout(()=>{
+ addFetchMaterialApi(param).then((response) => {
+ this.$modal.msgSuccess("保存成功");
+ this.loadingBtn=false
+ this.jumpList()
+ }).catch(() => {
+ this.loadingBtn=false
+ });
+ },500)
+ }
+ }
+ },500)
}
});
},
@@ -596,47 +600,48 @@ export default {
confirmSubmit(){
this.$refs["baseInfo"].validate(valid => {
if (valid) {
- let param = Object.assign({},this.baseInfo);
- param.fetchMaterialTime = this.formatDateTime(this.baseInfo.fetchMaterialTime)
- param.totalNum=0
- param.detailList = []
- this.noMaterial = false;
- if(this.materialList.length>0){
- this.materialList.forEach(item=>{
- if(item.fetchNum==0){
- this.noMaterial = true
- }else{
- let obj = Object.assign({}, item)
- // obj.singlePrice = Number(obj.singlePrice)*100
- // obj.totalPrice = (Number(obj.singlePrice)*Number(obj.fetchNum))
- // param.orderAmount = param.orderAmount+obj.totalPrice;
- param.totalNum = param.totalNum+Number(obj.fetchNum)
- param.detailList.push(obj)
- }
- })
- }
- if(this.noMaterial){
- this.$modal.msgError("请输入货品数量!");
- }else{
- this.noMaterial = true;
- if(this.materialList.length>0){
- this.noMaterial = false;
+ setTimeout(()=>{
+ let param = Object.assign({},this.baseInfo);
+ param.fetchMaterialTime = this.formatDateTime(this.baseInfo.fetchMaterialTime)
+ param.totalNum=0
+ param.detailList = []
+ this.noMaterial = false;
+ if(this.materialList.length>0){
+ this.materialList.forEach(item=>{
+ if(item.fetchNum==0){
+ this.noMaterial = true
+ }else{
+ let obj = Object.assign({}, item)
+ // obj.singlePrice = Number(obj.singlePrice)*100
+ // obj.totalPrice = (Number(obj.singlePrice)*Number(obj.fetchNum))
+ // param.orderAmount = param.orderAmount+obj.totalPrice;
+ param.totalNum = param.totalNum+Number(obj.fetchNum)
+ param.detailList.push(obj)
+ }
+ })
}
- console.log(param)
if(this.noMaterial){
- this.$modal.msgError("请添加货品!");
+ this.$modal.msgError("请输入货品数量!");
}else{
- this.loadingBtn=true;
- editFetchMaterialApi(param).then((response) => {
- this.$modal.msgSuccess("提交成功");
- this.loadingBtn=false
- this.jumpList()
- }).catch(() => {
- this.loadingBtn=false
- });
+ this.noMaterial = true;
+ if(this.materialList.length>0){
+ this.noMaterial = false;
+ }
+ console.log(param)
+ if(this.noMaterial){
+ this.$modal.msgError("请添加货品!");
+ }else{
+ this.loadingBtn=true;
+ editFetchMaterialApi(param).then((response) => {
+ this.$modal.msgSuccess("提交成功");
+ this.loadingBtn=false
+ this.jumpList()
+ }).catch(() => {
+ this.loadingBtn=false
+ });
+ }
}
- }
-
+ },500)
}
});
},
@@ -680,11 +685,11 @@ export default {
"stallId": this.baseInfo.stallId
}
if(this.dateRange&&this.dateRange.length>0){
- param.startDateTime=this.formatDateTime(this.dateRange[0])
- param.endDateTime=this.formatDateTime(this.dateRange[1])
+ param.startTime=this.formatDateTime(this.dateRange[0])
+ param.endTime=this.formatDateTime(this.dateRange[1])
}else{
- param.startDateTime=undefined;
- param.endDateTime=undefined;
+ param.startTime=undefined;
+ param.endTime=undefined;
}
purchasePlanPageApi(param).then(response => {
this.tableListData2 = response.rows;
@@ -725,7 +730,7 @@ export default {
if(Number(row.fetchNum)>Number(row.materialNum)){
row.fetchNum = row.materialNum
}
- },500)
+ },200)
},
defaultDateRange() {
const end = new Date(new Date().toLocaleDateString());
diff --git a/src/views/foodManage/purchaseManage/contractList/detail.vue b/src/views/foodManage/purchaseManage/contractList/detail.vue
index b969a5cb..f838f610 100644
--- a/src/views/foodManage/purchaseManage/contractList/detail.vue
+++ b/src/views/foodManage/purchaseManage/contractList/detail.vue
@@ -100,7 +100,7 @@
- {{ scope.row.orderNum*scope.row.singlePrice }}
+ {{ (scope.row.orderNum*scope.row.singlePrice/100).toFixed(2) }}
diff --git a/src/views/foodManage/purchaseManage/contractList/edit.vue b/src/views/foodManage/purchaseManage/contractList/edit.vue
index f8a821fd..e03a5b69 100644
--- a/src/views/foodManage/purchaseManage/contractList/edit.vue
+++ b/src/views/foodManage/purchaseManage/contractList/edit.vue
@@ -116,6 +116,7 @@
添加货品
+ 导入采购订单
删除
@@ -226,6 +227,57 @@
取 消
+
+
+