浏览代码

add 权限

tangning 2 年之前
父节点
当前提交
41038d97ea

+ 1 - 1
src/api/staff/list.ts

@@ -14,7 +14,7 @@ enum Api {
   staffSave = '/service/sale/sysUser/add',
   update = '/service/sale/sysUser/update',
   checkUser = '/zfb-api/zfb/user/checkUserExists',
-  deleteStaff = '/zfb-api/zfb/shop/sys/user/deleteStaff',
+  deleteStaff = '/service/sale/sysUser/delete',
   getNumByStaff = '/zfb-api/zfb/shop/sys/user/getNumByStaff',
   clean = '/zfb-api/zfb/loginOutByUser',
 }

+ 1 - 1
src/views/home/faultType.vue

@@ -117,7 +117,7 @@ function handlesetOptions() {
           normal: {
             show: false,
             position: 'center',
-            formatter: '{text|{b}}\n{c} ({d}%)',
+            formatter: '',
             rich: {
               text: {
                 color: '#666',

+ 1 - 1
src/views/spares/list.vue

@@ -88,7 +88,7 @@
       }
 
       function handleIn(record: Recordable) {
-        openInModal(true, record);
+        openInModal(true, {});
       }
 
       function handleEdit(record: Recordable) {

+ 15 - 3
src/views/spares/spareInModal.vue

@@ -60,15 +60,27 @@
                 },
               ],
               onChange:(value)=>{
-                updateSchema([{
+                console.log('immediate',value)
+                updateSchema({
                     field: 'partId',
+                    label: '备件类型',
+                    component: 'ApiSelect',
+                    required:true,
                     componentProps:{
+                      filterOption: onFilterOption,
+                      showSearch:true,
+                      api:partAllList,
+                      numberToString: true,
+                      labelField: 'partName',
+                      valueField: 'partId',
+                      immediate: true,
+                      listHeight:120,
                       disabled:false,
                       params: {
                         cameraType: value,
                       },
                     },
-                  }])
+                  })
             }
             },
             colProps: {
@@ -108,7 +120,7 @@
           },
       ];
 
-      const [registerForm, { validate, resetFields, setFieldsValue, updateSchema }] = useForm({
+      const [registerForm, { validate, resetFields, clearValidate, updateSchema }] = useForm({
         labelWidth: 120,
         schemas:schemas,
         showActionButtonGroup: false,

+ 7 - 1
src/views/spares/spareModal.vue

@@ -109,7 +109,13 @@
             colProps: {
               span: 18,
             },
-          }
+          },
+          {
+            field: 'partId',
+            component: 'Input',
+            label: 'id',
+            show: false,
+          },
       ];
 
       const [registerForm, { validate, resetFields, setFieldsValue, updateSchema }] = useForm({

+ 1 - 1
src/views/staff/list.vue

@@ -301,7 +301,7 @@
           title: '警告',
           content: `此操作将对${record.userName}进行删除, 是否继续?`,
           onOk: async () => {
-            await delApi({ userId: record.id });
+            await delApi({ id: record.id });
             reload();
           },
         });

+ 1 - 0
src/views/work/quoteModel.vue

@@ -269,6 +269,7 @@
             console.log('addOrUpdatePriceList',params,fileFlow.priceLists) 
             fileFlow.priceLists.map(ele => {
               priceListsparams.push({
+                priceListId:ele.priceListId,
                 type:ele.type,
                 laborId:ele.laborId,
                 partId:ele.partId,