|
@@ -593,10 +593,26 @@ import { getToken } from '@/utils/auth'
|
|
this.fileList= [];
|
|
this.fileList= [];
|
|
},
|
|
},
|
|
handleEditAndOff(){
|
|
handleEditAndOff(){
|
|
- this.handleEdit();
|
|
|
|
|
|
+ this.handleEdit1();
|
|
|
|
+ this.dialogFormVisible = false;
|
|
},
|
|
},
|
|
- handleEdit(){
|
|
|
|
|
|
+ handleEdit1(){
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ const code = this.formLabelAlign.goodsUnit;
|
|
|
|
+ const id = this.formLabelAlign.goodsUnitId;
|
|
|
|
+ console.log("goodsCode : ",code);
|
|
|
|
+ console.log("goodsTypeId : ",id);
|
|
|
|
+
|
|
|
|
+ if (typeof code === 'number') {
|
|
|
|
+ this.formLabelAlign.goodsUnit = code ;
|
|
|
|
+ } else {
|
|
|
|
+ this.formLabelAlign.goodsUnit = id ;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
const requestParam = this.buildUpdateRequest();
|
|
const requestParam = this.buildUpdateRequest();
|
|
|
|
+ console.log(requestParam);
|
|
ExecDataByConfig(requestParam).then(response => {
|
|
ExecDataByConfig(requestParam).then(response => {
|
|
if (response.msg !== 'fail') {
|
|
if (response.msg !== 'fail') {
|
|
this.resetInsertForm();
|
|
this.resetInsertForm();
|
|
@@ -925,19 +941,24 @@ this.isView = false;
|
|
return `${year}-${month}-${day}`;
|
|
return `${year}-${month}-${day}`;
|
|
},
|
|
},
|
|
handleGet(row){
|
|
handleGet(row){
|
|
- this.dialogTitle = "查看货品"
|
|
|
|
|
|
+ this.dialogTitle = "查看货品";
|
|
this.isView = true;
|
|
this.isView = true;
|
|
this.dialogFormVisible = true;
|
|
this.dialogFormVisible = true;
|
|
|
|
+ this.formLabelAlign.id = row.id;
|
|
|
|
+ this.formLabelAlign.goodsModel = row.goodsModel;
|
|
|
|
+ this.formLabelAlign.goodsImage = row.goodsImage;
|
|
|
|
+ this.formLabelAlign.goodsTypeId = row.goodsTypeId;
|
|
this.formLabelAlign.goodsCode = row.goodsCode;
|
|
this.formLabelAlign.goodsCode = row.goodsCode;
|
|
this.formLabelAlign.goodsName = row.goodsName;
|
|
this.formLabelAlign.goodsName = row.goodsName;
|
|
this.formLabelAlign.goodsSpecification = row.goodsSpecification;
|
|
this.formLabelAlign.goodsSpecification = row.goodsSpecification;
|
|
this.formLabelAlign.purpose = row.purpose;
|
|
this.formLabelAlign.purpose = row.purpose;
|
|
|
|
+ this.formLabelAlign.goodsEnabled = row.goodsEnabled;
|
|
this.formLabelAlign.date = row.createTime;
|
|
this.formLabelAlign.date = row.createTime;
|
|
this.formLabelAlign.remarks = row.remarks;
|
|
this.formLabelAlign.remarks = row.remarks;
|
|
this.defaultCheckedKeys = [row.goodsTypeId];
|
|
this.defaultCheckedKeys = [row.goodsTypeId];
|
|
- this.formLabelAlign.createrId = row.createrId;
|
|
|
|
|
|
+ this.formLabelAlign.createrId = row.createrId;
|
|
this.formLabelAlign.goodsUnitId= row.goodsUnitId;
|
|
this.formLabelAlign.goodsUnitId= row.goodsUnitId;
|
|
- this.formLabelAlign.goodsUnit = row.goodsUnit
|
|
|
|
|
|
+ this.formLabelAlign.goodsUnit = row.goodsUnit;
|
|
this.dialogImageUrl = row.goodsImagePath;
|
|
this.dialogImageUrl = row.goodsImagePath;
|
|
const fileList = [];
|
|
const fileList = [];
|
|
var urlObj = { "url": "", "response": { "execresult": { "LastInsertId": "" } } };
|
|
var urlObj = { "url": "", "response": { "execresult": { "LastInsertId": "" } } };
|
|
@@ -950,9 +971,14 @@ this.isView = false;
|
|
|
|
|
|
|
|
|
|
handleEdit(row){
|
|
handleEdit(row){
|
|
- this.dialogTitle = "查看货品"
|
|
|
|
|
|
+ this.dialogTitle = "修改货品";
|
|
this.isEdit = true;
|
|
this.isEdit = true;
|
|
this.dialogFormVisible = true;
|
|
this.dialogFormVisible = true;
|
|
|
|
+ this.formLabelAlign.id = row.id;
|
|
|
|
+ this.formLabelAlign.goodsEnabled = row.goodsEnabled;
|
|
|
|
+ this.formLabelAlign.goodsModel = row.goodsModel;
|
|
|
|
+ this.formLabelAlign.goodsImage = row.goodsImage;
|
|
|
|
+ this.formLabelAlign.goodsTypeId = row.goodsTypeId;
|
|
this.formLabelAlign.goodsCode = row.goodsCode;
|
|
this.formLabelAlign.goodsCode = row.goodsCode;
|
|
this.formLabelAlign.goodsName = row.goodsName;
|
|
this.formLabelAlign.goodsName = row.goodsName;
|
|
this.formLabelAlign.goodsSpecification = row.goodsSpecification;
|
|
this.formLabelAlign.goodsSpecification = row.goodsSpecification;
|
|
@@ -961,8 +987,10 @@ this.isView = false;
|
|
this.formLabelAlign.remarks = row.remarks;
|
|
this.formLabelAlign.remarks = row.remarks;
|
|
this.defaultCheckedKeys = [row.goodsTypeId];
|
|
this.defaultCheckedKeys = [row.goodsTypeId];
|
|
this.formLabelAlign.createrId = row.createrId;
|
|
this.formLabelAlign.createrId = row.createrId;
|
|
|
|
+
|
|
this.formLabelAlign.goodsUnitId= row.goodsUnitId;
|
|
this.formLabelAlign.goodsUnitId= row.goodsUnitId;
|
|
- this.formLabelAlign.goodsUnit = row.goodsUnit
|
|
|
|
|
|
+ this.formLabelAlign.goodsUnit = row.goodsUnit;
|
|
|
|
+
|
|
this.dialogImageUrl = row.goodsImagePath;
|
|
this.dialogImageUrl = row.goodsImagePath;
|
|
const fileList = [];
|
|
const fileList = [];
|
|
var urlObj = { "url": "", "response": { "execresult": { "LastInsertId": "" } } };
|
|
var urlObj = { "url": "", "response": { "execresult": { "LastInsertId": "" } } };
|