kumu 1 год назад
Родитель
Сommit
718fb5f9f0
1 измененных файлов с 8 добавлено и 3 удалено
  1. 8 3
      src/views/pharmacyManagement/business/putPosition/index.vue

+ 8 - 3
src/views/pharmacyManagement/business/putPosition/index.vue

@@ -117,6 +117,7 @@
         </template>
       </el-table-column>
       <el-table-column label="摆放位置" align="center" prop="site" />
+      <el-table-column label="库位号" align="center" prop="locatorNum" />
 
       <el-table-column label="修改人" align="center" prop="siteBy" />
       <el-table-column label="修改时间" align="center" prop="siteTime">
@@ -156,6 +157,9 @@
         <el-form-item label="摆放位置" prop="site">
           <el-input v-model="form.site" placeholder="请输入摆放位置" />
         </el-form-item>
+        <el-form-item label="库位号" prop="locatorNum">
+          <el-input v-model="form.locatorNum" placeholder="请输入库位号" />
+        </el-form-item>
       </el-form>
       <div slot="footer" class="dialog-footer">
         <el-button type="primary" @click="submitForm">确 定</el-button>
@@ -282,8 +286,8 @@ export default {
         retailPrice: null,
         approvalCode: null,
         site: null,
+        locatorNum: null,
         stockMin: null,
-        site: null,
         productionCode: null,
         validTime: null,
         del: null,
@@ -323,7 +327,7 @@ export default {
       const id = row.id || this.ids;
       this.open = true;
       this.title = "修改摆放位置";
-      this.form = row;
+      this.form = {...row};
       // getInventory({ id, pageNum: 1, pageSize: 10 }).then((response) => {
       //   this.form = response.rows[0];
       //   //console.log(response.rows);
@@ -337,7 +341,8 @@ export default {
           if (this.form.id != null) {
             updateInventory({
               id: this.form.id,
-              site: this.form.site
+              site: this.form.site,
+              locatorNum: this.form.locatorNum
             }).then((response) => {
               this.msgSuccess("修改成功");
               this.open = false;