فهرست منبع

格式规范化

chenrui 4 سال پیش
والد
کامیت
47781c40a5

+ 13 - 14
src/views/allocationManagement/chainTransferIn/list.vue

@@ -93,7 +93,6 @@
 </template>
 
 <script>
-import moment from 'moment'
 // import { customerBundleDelayList, customerBundleExportDelay } from '@/api/FinancialManagement'
 import { STable, VSelect } from '@/components'
 // import productBrandEditModal from './editModal.vue'
@@ -101,10 +100,10 @@ export default {
   components: { STable, VSelect },
   data () {
     return {
-      advanced: false,  // 高级搜索 展开/关闭
+      advanced: false, // 高级搜索 展开/关闭
       queryParam: { //  查询条件
         bundleName: '', //  品牌名称
-        state: undefined,  //  状态
+        state: undefined, //  状态
       },
       disabled: false, //  查询、重置按钮是否可操作
       dateFormat: 'YYYY-MM-DD',
@@ -150,8 +149,8 @@ export default {
           resolve(data)
         })
       },
-      openModal: false,  //  新增编辑产品品牌  弹框
-      itemId: ''  //  当前品牌id
+      openModal: false, //  新增编辑产品品牌  弹框
+      itemId: '' //  当前品牌id
     }
   },
   methods: {
@@ -170,16 +169,16 @@ export default {
       this.$refs.table.refresh(true)
     },
     //  入库
-    handleWarehousing(){},
+    handleWarehousing () {},
     //  审核
-    handleExamine(){
+    handleExamine () {
       const _this = this
       this.$confirm({
         title: '提示',
         content: '确认要审核通过吗?',
         okText: '确定',
         cancelText: '取消',
-		centered: true,
+        centered: true,
         onOk () {
           // delectRolePower({
           //   id: row.id
@@ -194,17 +193,17 @@ export default {
       })
     },
     //  详情
-    handleDetail(row){
+    handleDetail (row) {
       this.$router.push({ path: `/allocationManagement/chainTransferIn/detail/${row.id}` })
     },
     //  新增/编辑
-    handleEdit(row){
-      if(row){  //  编辑
+    handleEdit (row) {
+      if (row) { //  编辑
         this.$router.push({ path: `/allocationManagement/chainTransferIn/edit/${row.id}` })
-      }else{  //  新增
+      } else { //  新增
         this.$router.push({ path: '/allocationManagement/chainTransferIn/add' })
       }
-    },
+    }
   }
 }
 </script>
@@ -217,4 +216,4 @@ export default {
       }
     }
   }
-</style>
+</style>

+ 10 - 10
src/views/inventoryManagement/satelliteWarehouseInventory/list.vue

@@ -108,7 +108,7 @@ export default {
 				//   this.disabled = false
 				//   return data
 				// })
-				const _this = this;
+				const _this = this
 				return new Promise(function(resolve, reject) {
 					const data = {
 						pageNo: 1,
@@ -133,11 +133,11 @@ export default {
 	},
 	methods: {
 		// 不可选日期
-		disabledDate(date, dateStrings) {
+		disabledDate (date, dateStrings) {
 			return date && date.valueOf() > Date.now()
 		},
     //  查询
-    handleSearch(){
+    handleSearch () {
       this.$refs.ruleForm.validate(valid => {
         if (valid) {
           this.$refs.table.refresh(true)
@@ -148,7 +148,7 @@ export default {
       });
     },
 		//  重置
-		resetSearchForm() {
+		resetSearchForm () {
 			this.queryParam.orderBundleNo = ''
 			this.queryParam.orderBundle.custMobile = ''
 			this.queryParam.bundleName = ''
@@ -158,26 +158,26 @@ export default {
 			this.$refs.table.refresh(true)
 		},
 		//  补货清单
-		handleReplenishment() {
+		handleReplenishment () {
 			this.openModal = true
 		},
 		//  加入补货单
-		handleAdd(row) {
+		handleAdd (row) {
       this.checkedList.indexOf(row.id) == -1 ? this.checkedList.push(row.id) : null
     },
     //  移出补货单
-    handleRemove(row){
+    handleRemove (row){
       this.checkedList.splice(this.checkedList.indexOf(row.id), 1)
     },
 		//  关闭弹框
-		closeModal() {
+		closeModal () {
 			this.openModal = false
 		},
-		filterOption(input, option) {
+		filterOption (input, option) {
 			return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
 		}
 	}
-};
+}
 </script>
 
 <style lang="less"></style>