¶Ô±ÈÐÂÎļþ |
| | |
| | | import request from '@/utils/request' |
| | | |
| | | // æ¥è¯¢ |
| | | export function fetchList (data) { |
| | | return request.post('/visitsAdmin/cloudService/business/ywProblem/page', data, { |
| | | trim: true |
| | | }) |
| | | } |
| | | |
| | | // å建 |
| | | export function create (data) { |
| | | return request.post('/visitsAdmin/cloudService/business/ywProblem/create', data) |
| | | } |
| | | |
| | | // æ ¹æ®IDä¿®æ¹ |
| | | export function updateById (data) { |
| | | return request.post('/visitsAdmin/cloudService/business/ywProblem/updateById', data) |
| | | } |
| | | |
| | | // å é¤ |
| | | export function deleteById (id) { |
| | | return request.get(`/visitsAdmin/cloudService/business/ywProblem/delete/${id}`) |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | import request from '@/utils/request' |
| | | |
| | | // æ¥è¯¢ |
| | | export function fetchList (data) { |
| | | return request.post('/visitsAdmin/cloudService/business/ywStock/page', data, { |
| | | trim: true |
| | | }) |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | import request from '@/utils/request' |
| | | |
| | | // æ¥è¯¢ |
| | | export function fetchList (data) { |
| | | return request.post('/visitsAdmin/cloudService/business/ywStocktaking/page', data, { |
| | | trim: true |
| | | }) |
| | | } |
| | | |
| | | // å建 |
| | | export function create (data) { |
| | | return request.post('/visitsAdmin/cloudService/business/ywStocktaking/create', data) |
| | | } |
| | | |
| | | // æ ¹æ®IDä¿®æ¹ |
| | | export function updateById (data) { |
| | | return request.post('/visitsAdmin/cloudService/business/ywStocktaking/updateById', data) |
| | | } |
| | | |
| | | // å é¤ |
| | | export function deleteById (id) { |
| | | return request.get(`/visitsAdmin/cloudService/business/ywStocktaking/delete/${id}`) |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | import request from '@/utils/request' |
| | | |
| | | // è·åæ°æ® |
| | | export function getCallTemp (data) { |
| | | return request.get('/visitsAdmin/cloudService/business/ywTempConfig/getCallTemp', data, { |
| | | trim: true |
| | | }) |
| | | } |
| | |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="å·¡æ£è´è´£äºº" prop="userIds"> |
| | | <el-select v-model="form.userIds" filterable clearable> |
| | | <el-select v-model="form.userIds" multiple filterable clearable> |
| | | <el-option v-for="item in staffList" :value="item.id" :label="item.realname"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | status: '', |
| | | sortnum: '', |
| | | lineId: '', |
| | | userIds: '', |
| | | userIds: [], |
| | | dealUserId: '', |
| | | dealDate: '', |
| | | dealInfo: '', |
| | |
| | | }) |
| | | }, |
| | | methods: { |
| | | __confirmCreate () { |
| | | this.$refs.form.validate((valid) => { |
| | | if (!valid) { |
| | | return |
| | | } |
| | | let obj = JSON.parse(JSON.stringify(this.form)) |
| | | obj.userIds = obj.userIds.join(',') |
| | | // è°ç¨æ°å»ºæ¥å£ |
| | | this.isWorking = true |
| | | this.api.create(obj) |
| | | .then(() => { |
| | | this.visible = false |
| | | this.$tip.apiSuccess('æ°å»ºæå') |
| | | this.$emit('success') |
| | | }) |
| | | .catch(e => { |
| | | // this.$tip.apiFailed(e) |
| | | }) |
| | | .finally(() => { |
| | | this.isWorking = false |
| | | }) |
| | | }) |
| | | }, |
| | | __confirmEdit () { |
| | | this.$refs.form.validate((valid) => { |
| | | if (!valid) { |
| | | return |
| | | } |
| | | let obj = JSON.parse(JSON.stringify(this.form)) |
| | | obj.userIds = obj.userIds.join(',') |
| | | // è°ç¨æ°å»ºæ¥å£ |
| | | this.isWorking = true |
| | | this.api.updateById(obj) |
| | | .then(() => { |
| | | this.visible = false |
| | | this.$tip.apiSuccess('ä¿®æ¹æå') |
| | | this.$emit('success') |
| | | }) |
| | | .catch(e => { |
| | | // this.$tip.apiFailed(e) |
| | | }) |
| | | .finally(() => { |
| | | this.isWorking = false |
| | | }) |
| | | }) |
| | | }, |
| | | weekClick(i) { |
| | | this.weeks.forEach((item, index) => { |
| | | if (i == index) { item.sel = !item.sel } |
| | |
| | | border: 1px solid $primary-color; |
| | | } |
| | | } |
| | | </style> |
| | | </style> |
| | |
| | | <el-table-column |
| | | width="100" |
| | | label="è´¹ç¨ç±»å"> |
| | | <template slot-scope="{row}"> |
| | | <span v-if="row.costType === 0">ç§èµè´¹</span> |
| | | <span v-if="row.costType === 1">ç©ä¸è´¹</span> |
| | | <span v-if="row.costType === 4">æ°´çµè´¹</span> |
| | | <span v-if="row.costType === 5">æé¡¹è´¹</span> |
| | | <span v-if="row.costType === 6">å
¶ä»</span> |
| | | <template slot-scope="scope"> |
| | | <div style="display: flex; align-items: center;"> |
| | | <span v-if="scope.row.costType === 0">ç§èµè´¹</span> |
| | | <span v-if="scope.row.costType === 1">ç©ä¸è´¹</span> |
| | | <span v-if="scope.row.costType === 4">æ°´çµè´¹</span> |
| | | <span v-if="scope.row.costType === 5">æé¡¹è´¹</span> |
| | | <span v-if="scope.row.costType === 6">å
¶ä»</span> |
| | | <i class="el-icon-delete" |
| | | style="color: red; margin-left: 10px; font-size: 18px; cursor: pointer;" |
| | | @click="deleRow(scope.$index)" |
| | | v-if="scope.row.date && scope.row.date.length !==0"> |
| | | </i> |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | this.changeBtDate(this.form.btDate) |
| | | this.visible = true |
| | | }, |
| | | deleRow(index) { |
| | | this.info.terminateList.splice(index, 1) |
| | | this.countData() |
| | | }, |
| | | getDayTime () { |
| | | const today = new Date(); |
| | | const year = today.getFullYear(); |
| | |
| | | |
| | | <script> |
| | | import templateKeywords from './components/templateKeywords' |
| | | import { getCallTemp } from '@/api/ywTempConfig' |
| | | export default { |
| | | name: 'collectionSettings', |
| | | data() { |
| | |
| | | } |
| | | } |
| | | }, |
| | | components: { templateKeywords } |
| | | components: { templateKeywords }, |
| | | created () { |
| | | this.getCallTempVal() |
| | | }, |
| | | methods: { |
| | | getCallTempVal() { |
| | | getCallTemp({}) |
| | | .then(res => { |
| | | console.log(res) |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | |
| | | <el-button type="primary" @click="handleEx()" v-permissions="['business:ywpatrolline:create']">æ·»å </el-button> |
| | | </div> |
| | | <el-table v-loading="loading" :data="list" stripe> |
| | | <el-table-column prop="platformName" label="çç¹ååç§°" min-width="120" show-overflow-tooltip /> |
| | | <el-table-column prop="platformGroupName" label="çç¹ä»åº" min-width="100" show-overflow-tooltip /> |
| | | <el-table-column prop="carCodeFront" label="çç¹å" min-width="80" show-overflow-tooltip /> |
| | | <el-table-column prop="carCodeBack" label="çç¹æ¥æ" min-width="110" show-overflow-tooltip /> |
| | | <el-table-column prop="param1" label="å建人" min-width="80" show-overflow-tooltip /> |
| | | <el-table-column prop="param2" label="å建æ¶é´" min-width="140" show-overflow-tooltip /> |
| | | <el-table-column prop="workTime" label="çç¹ç¶æ" min-width="80" show-overflow-tooltip /> |
| | | <el-table-column prop="name" label="çç¹ååç§°" min-width="120" show-overflow-tooltip /> |
| | | <el-table-column prop="warehouseName" label="çç¹ä»åº" min-width="100" show-overflow-tooltip /> |
| | | <el-table-column prop="userName" label="çç¹å" min-width="80" show-overflow-tooltip /> |
| | | <el-table-column prop="dealDate" label="çç¹æ¥æ" min-width="110" show-overflow-tooltip /> |
| | | <el-table-column prop="createName" label="å建人" min-width="80" show-overflow-tooltip /> |
| | | <el-table-column prop="createDate" label="å建æ¶é´" min-width="140" show-overflow-tooltip /> |
| | | <el-table-column label="çç¹ç¶æ" min-width="80"> |
| | | <template v-slot="{ row }"> |
| | | <span v-if="row.status === 0">æªå¼å§</span> |
| | | <span v-if="row.status === 1">è¿è¡ä¸</span> |
| | | <span v-if="row.status === 2">已宿</span> |
| | | <span v-if="row.status === 3">已忶</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="workTime" label="æä½" min-width="140" show-overflow-tooltip> |
| | | <template v-slot="{ row }"> |
| | | <span class="primaryColor pointer">æ¥ç详æ
</span> |
| | | <span class="primaryColor pointer">åæ¶</span> |
| | | <span class="primaryColor pointer">å é¤</span> |
| | | <el-button type="text">æ¥ç详æ
</el-button> |
| | | <el-button type="text">åæ¶</el-button> |
| | | <el-button type="text">å é¤</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | import dayjs from 'dayjs' |
| | | import duration from 'dayjs/plugin/duration' |
| | | dayjs.extend(duration) |
| | | import { platformLogPage, getPlatformGroupList } from '@/api' |
| | | import { fetchList } from '@/api/ywStocktaking' |
| | | export default { |
| | | components: { |
| | | Pagination, |
| | |
| | | queryFormConfig: { |
| | | formItems: [ |
| | | { |
| | | filed: 'carCodeFront', |
| | | filed: 'name', |
| | | type: 'input', |
| | | label: 'çç¹å', |
| | | label: 'çç¹ååç§°', |
| | | }, |
| | | { |
| | | filed: 'platformGroupId', |
| | | filed: 'status', |
| | | type: 'select', |
| | | label: 'çç¹ç¶æ', |
| | | options: [] |
| | | options: [ |
| | | { value: 0, label: 'æªå¼å§' }, |
| | | { value: 1, label: 'è¿è¡ä¸' }, |
| | | { value: 2, label: '已宿' }, |
| | | { value: 3, label: '已忶' } |
| | | ] |
| | | }, |
| | | ], |
| | | online: true |
| | |
| | | } |
| | | }, |
| | | created() { |
| | | // this.getList() |
| | | // this.getGroupList() |
| | | this.getList() |
| | | }, |
| | | methods: { |
| | | handleSub() { |
| | | this.$refs.ruleForm.validate((valid) => { |
| | | if (valid) { |
| | | alert('submit!') |
| | | } |
| | | }) |
| | | }, |
| | | handleEx() { }, |
| | | getGroupList() { |
| | | getPlatformGroupList({ queryData: 0, queryType: 0 }).then(res => { |
| | | this.queryFormConfig.formItems[1].options = res.map(i => { |
| | | return { |
| | | value: i.id, |
| | | label: i.name |
| | | } |
| | | }) |
| | | // this.queryFormConfig.formItems[1].options.unshift({ value: '', label: 'å
¨é¨æå°ç»' }) |
| | | }) |
| | | }, |
| | | getList(page) { |
| | | const { pagination, filters } = this |
| | | this.loading = true |
| | | platformLogPage({ |
| | | fetchList({ |
| | | model: { |
| | | ...filters, |
| | | queryStatus: '6,7,8', |
| | | beginWorkDateStart: filters.selDate && filters.selDate.length > 0 ? filters.selDate[0] : null, |
| | | beginWorkDateEnd: filters.selDate && filters.selDate.length > 0 ? filters.selDate[1] : null, |
| | | ...filters |
| | | }, |
| | | sorts: [{ direction: 'DESC', property: 'param1' }], |
| | | capacity: pagination.pageSize, |
| | | page: page || pagination.page, |
| | | }).then(res => { |
| | | this.loading = false |
| | | this.list = res.records || [] |
| | | this.list.forEach(item => { |
| | | item.inTypeTemp = item.inType == 0 ? 'æ´æç' : 'ä»¶ç' |
| | | item.taskOrigin = 'WMSè·å' |
| | | item.workTime = dayjs.duration(item.param3, 'seconds').format('Hæ¶måsç§') |
| | | }) |
| | | this.pagination.total = res.total || 0 |
| | | }, () => { |
| | | this.loading = false |
| | |
| | | <div class="main_app"> |
| | | <QueryForm v-model="filters" :query-form-config="queryFormConfig" @handleQuery="getList(1)" @clear="clear" /> |
| | | <div class="mt20"> |
| | | <el-button @click="handleEx()" v-permissions="['business:ywpatrolline:create']">导åº</el-button> |
| | | <el-button v-permissions="['business:ywpatrolline:create']">导åº</el-button> |
| | | </div> |
| | | <el-table v-loading="loading" :data="list" stripe> |
| | | <el-table-column prop="platformName" label="èµäº§ç¼ç " min-width="100" show-overflow-tooltip /> |
| | | <el-table-column prop="platformGroupName" label="èµäº§åç§°" min-width="100" show-overflow-tooltip /> |
| | | <el-table-column prop="carCodeFront" label="æ¡ç " min-width="100" show-overflow-tooltip /> |
| | | <el-table-column prop="carCodeBack" label="åç" min-width="100" show-overflow-tooltip /> |
| | | <el-table-column prop="param1" label="è§æ ¼åå·" min-width="100" show-overflow-tooltip /> |
| | | <el-table-column prop="param2" label="æå¨ä»åº" min-width="100" show-overflow-tooltip /> |
| | | <el-table-column prop="workTime" label="åºå" min-width="80" show-overflow-tooltip /> |
| | | <el-table-column prop="materialId" label="èµäº§ç¼ç " min-width="100" show-overflow-tooltip /> |
| | | <el-table-column prop="materialName" label="èµäº§åç§°" min-width="100" show-overflow-tooltip /> |
| | | <el-table-column prop="materialQrcode" label="æ¡ç " min-width="100" show-overflow-tooltip /> |
| | | <el-table-column prop="materialBrand" label="åç" min-width="100" show-overflow-tooltip /> |
| | | <el-table-column prop="materialAttr" label="è§æ ¼åå·" min-width="100" show-overflow-tooltip /> |
| | | <el-table-column prop="warehouseName" label="æå¨ä»åº" min-width="100" show-overflow-tooltip /> |
| | | <el-table-column prop="stock" label="åºå" min-width="80" show-overflow-tooltip /> |
| | | </el-table> |
| | | <div class="mt20"> |
| | | <Pagination @size-change="handleSizeChange" @current-change="getList" :pagination="pagination" /> |
| | |
| | | import dayjs from 'dayjs' |
| | | import duration from 'dayjs/plugin/duration' |
| | | dayjs.extend(duration) |
| | | import { platformLogPage, getPlatformGroupList } from '@/api' |
| | | import { fetchList } from '@/api/ywStock' |
| | | export default { |
| | | components: { |
| | | Pagination, |
| | |
| | | queryFormConfig: { |
| | | formItems: [ |
| | | { |
| | | filed: 'platformGroupId', |
| | | filed: 'warehouseId', |
| | | type: 'select', |
| | | label: 'æå¨ä»åº', |
| | | options: [] |
| | | }, |
| | | { |
| | | filed: 'carCodeFront', |
| | | filed: 'materialId', |
| | | type: 'input', |
| | | label: 'èµäº§ä¿¡æ¯', |
| | | placeholder: '请è¾å
¥èµäº§åç§°/ç¼ç ' |
| | | label: 'ç©æåç§°/ç¼ç ', |
| | | placeholder: '请è¾å
¥ç©æåç§°/ç¼ç ' |
| | | }, |
| | | { |
| | | filed: 'carCodeFront', |
| | | filed: 'materialAttr', |
| | | type: 'input', |
| | | label: 'åå·', |
| | | }, |
| | | ], |
| | | online: true |
| | | ] |
| | | } |
| | | } |
| | | }, |
| | | created() { |
| | | // this.getList() |
| | | // this.getGroupList() |
| | | this.getList() |
| | | }, |
| | | methods: { |
| | | handleSub() { |
| | | this.$refs.ruleForm.validate((valid) => { |
| | | if (valid) { |
| | | alert('submit!') |
| | | } |
| | | }) |
| | | }, |
| | | handleEx() { }, |
| | | getGroupList() { |
| | | getPlatformGroupList({ queryData: 0, queryType: 0 }).then(res => { |
| | | this.queryFormConfig.formItems[1].options = res.map(i => { |
| | | return { |
| | | value: i.id, |
| | | label: i.name |
| | | } |
| | | }) |
| | | // this.queryFormConfig.formItems[1].options.unshift({ value: '', label: 'å
¨é¨æå°ç»' }) |
| | | }) |
| | | }, |
| | | getList(page) { |
| | | const { pagination, filters } = this |
| | | this.loading = true |
| | | platformLogPage({ |
| | | fetchList({ |
| | | model: { |
| | | ...filters, |
| | | queryStatus: '6,7,8', |
| | | beginWorkDateStart: filters.selDate && filters.selDate.length > 0 ? filters.selDate[0] : null, |
| | | beginWorkDateEnd: filters.selDate && filters.selDate.length > 0 ? filters.selDate[1] : null, |
| | | ...filters |
| | | }, |
| | | sorts: [{ direction: 'DESC', property: 'param1' }], |
| | | capacity: pagination.pageSize, |
| | | page: page || pagination.page, |
| | | }).then(res => { |
| | | this.loading = false |
| | | this.list = res.records || [] |
| | | this.list.forEach(item => { |
| | | item.inTypeTemp = item.inType == 0 ? 'æ´æç' : 'ä»¶ç' |
| | | item.taskOrigin = 'WMSè·å' |
| | | item.workTime = dayjs.duration(item.param3, 'seconds').format('Hæ¶måsç§') |
| | | }) |
| | | this.pagination.total = res.total || 0 |
| | | }, () => { |
| | | this.loading = false |
| | |
| | | <!-- è¡¨æ ¼åå页 --> |
| | | <template v-slot:table-wrap> |
| | | <el-table v-loading="isWorking.search" :data="tableData.list" stripe> |
| | | <el-table-column prop="areaType" label="æè¿°" min-width="70px"></el-table-column> |
| | | <el-table-column prop="areaType" label="ä½ç½®" min-width="100px"></el-table-column> |
| | | <el-table-column prop="remark" label="æè¿°" min-width="70px"></el-table-column> |
| | | <el-table-column prop="position" label="ä½ç½®" min-width="100px"></el-table-column> |
| | | <el-table-column prop="categoryName" label="ç°åºå¾ç" min-width="100px"></el-table-column> |
| | | <el-table-column prop="creatorName" label="䏿¥äºº" min-width="80px"></el-table-column> |
| | | <el-table-column prop="createDate" label="䏿¥äººçµè¯" min-width="100px"></el-table-column> |
| | | <el-table-column prop="dealUserName" label="䏿¥æ¶é´" min-width="80px"></el-table-column> |
| | | <el-table-column prop="name" label="䏿¥äºº" min-width="80px"></el-table-column> |
| | | <el-table-column prop="phone" label="䏿¥äººçµè¯" min-width="100px"></el-table-column> |
| | | <el-table-column prop="submitDate" label="䏿¥æ¶é´" min-width="80px"></el-table-column> |
| | | <el-table-column label="å¤çç¶æ" min-width="70px"> |
| | | <template slot-scope="{row}"> |
| | | <span v-if="row.dealStatus == 0">å¾
ææ´¾</span> |
| | | <span v-if="row.dealStatus == 1">å·²ææ´¾</span> |
| | | <span v-if="row.dealStatus == 2">å·²å¤ç</span> |
| | | </template> |
| | | </template>` |
| | | </el-table-column> |
| | | <el-table-column prop="creatorName" label="å¤ç人" min-width="80px"></el-table-column> |
| | | <el-table-column prop="dealUserName" label="å¤ç人" min-width="80px"></el-table-column> |
| | | <el-table-column |
| | | v-if="containPermissions(['business:ywworkorder:update'])" |
| | | label="æä½" |
| | |
| | | }, |
| | | created() { |
| | | this.config({ |
| | | module: 'è¿ç»´å·¥åä¿¡æ¯è¡¨', |
| | | api: '/workorder/ywWorkorder', |
| | | module: 'é®é¢ä¸æ¥ä¿¡æ¯è¡¨', |
| | | api: '/ywProblem', |
| | | 'field.id': 'id', |
| | | 'field.main': 'id' |
| | | }) |