刘洋 1 gadu atpakaļ
vecāks
revīzija
3fd5d2c93b

+ 2 - 0
src/views/sop/components/dynamic-form-item/device-table/edit-column-dialog.vue

@@ -95,6 +95,7 @@ const files = ref([]);
 const formData = reactive({
   key: '',
   deviceNo: '',
+  deviceModel: '',
   supplierName: '',
   deviceStatus: '',
   scanCount: null,
@@ -174,6 +175,7 @@ const imgChange = (fileRes) => {
   formData.basePhotoPath = fileRes.length ? fileRes[0].url : '';
 };
 const deviceChange = (val, { option }) => {
+  formData.deviceModel = option.deviceModel;
   formData.supplierName = option.supplierName;
   formData.deviceStatus = option.deviceStatus;
   formData.deviceBrand = option.deviceBrand;

+ 1 - 0
src/views/sop/components/dynamic-form-item/device-table/index.vue

@@ -162,6 +162,7 @@ const deleteRow = (row) => {
 };
 
 const columnConfirm = (data) => {
+  console.log('data', data);
   if (data.key) {
     const pos = tableData.value.findIndex((item) => item.key === data.key);
     tableData.value.splice(pos, 1, data);