Commit 3c20eb7e authored by 石盼盼's avatar 石盼盼

Merge branch 'spp' into 'master'

Spp

See merge request !39
parents 0c9be425 f46ef68c
...@@ -10,8 +10,8 @@ const baseUrl = '/api' ...@@ -10,8 +10,8 @@ const baseUrl = '/api'
// todo: url // todo: url
// const httpUrl = 'https://repairtest.zeruiedu.com' // 测试接口 // const httpUrl = 'https://repairtest.zeruiedu.com' // 测试接口
const httpUrl = 'https://repair.zeruiedu.com' // 正式接口 const httpUrl = 'https://repair.zeruiedu.com' // 正式接口
// const h5Url = 'http://localhost:8080' // 测试h5线上地址 const h5Url = 'http://localhost:8080' // 测试h5线上地址
const h5Url = 'http://repair.h5.zeruiedu.com' // 测试h5线上地址 // const h5Url = 'http://repair.h5.zeruiedu.com' // 测试h5线上地址
window.localStorage.setItem('httpUrl', httpUrl) window.localStorage.setItem('httpUrl', httpUrl)
window.localStorage.setItem('h5Url', h5Url) window.localStorage.setItem('h5Url', h5Url)
// const httpUrl = 'https://fenghexm.xueyoubangedu.com' // 正式接口 // const httpUrl = 'https://fenghexm.xueyoubangedu.com' // 正式接口
......
...@@ -432,4 +432,10 @@ ...@@ -432,4 +432,10 @@
width: 100%; width: 100%;
height: 100%; height: 100%;
border-radius: 50%; border-radius: 50%;
}
// 暂无员工样式
.none{
margin-left: 0.3rem;
color: #000000;
font-size: 0.28rem;
} }
\ No newline at end of file
...@@ -208,6 +208,10 @@ ...@@ -208,6 +208,10 @@
<img src="@assets/images/tabbar/icon_01_sel.png" alt /> <img src="@assets/images/tabbar/icon_01_sel.png" alt />
</div> </div>
</div> </div>
<div v-else>
<img class="none-img" src="https://img01.yzcdn.cn/vant/empty-image-default.png">
<p class="none-p">暂无工单哦!</p>
</div>
</template> </template>
<script> <script>
...@@ -240,8 +244,8 @@ export default { ...@@ -240,8 +244,8 @@ export default {
} }
}, },
created () { created () {
this.order_id = this.$route.query.id // this.order_id = this.$route.query.id
// this.order_id = 143 this.order_id = 211
this.getDetail() this.getDetail()
}, },
methods: { methods: {
...@@ -474,4 +478,11 @@ export default { ...@@ -474,4 +478,11 @@ export default {
height: 100%; height: 100%;
border-radius: 50%; border-radius: 50%;
} }
.none-img{
display: block;
margin: 0 auto;
}
.none-p{
text-align: center;
}
</style> </style>
\ No newline at end of file
...@@ -624,12 +624,12 @@ export default { ...@@ -624,12 +624,12 @@ export default {
// 备注耗材弹窗 // 备注耗材弹窗
bz_click (item) { bz_click (item) {
this.curItem = item this.curItem = item
this.hcShow = true
// 默认为一个空数据 // 默认为一个空数据
this.addList = [{ this.addList = [{
goods_name: '', goods_name: '',
number: '' number: ''
}] }]
this.hcShow = true
}, },
// 添加耗材 // 添加耗材
addMeth () { addMeth () {
...@@ -669,9 +669,15 @@ export default { ...@@ -669,9 +669,15 @@ export default {
this.$http this.$http
.post(this.$myApi.MATERIAL_REMARK, curParams) .post(this.$myApi.MATERIAL_REMARK, curParams)
.then((data) => { .then((data) => {
this.hcShow = false this.hcShow = false
// setTimeout(()=>{
this.$toast('操作成功') this.$toast('操作成功')
vm.$set(vm.list, index, data) this.addList = [{
goods_name: '',
number: ''
}]
vm.$set(vm.list, index, data)
// },800)
}) })
.catch(() => { .catch(() => {
this.hcShow = false this.hcShow = false
......
...@@ -58,25 +58,28 @@ ...@@ -58,25 +58,28 @@
<div class="workers"> <div class="workers">
<div class="gr-item" v-for="(child_item,child_index) in columns" :key="child_index"> <div class="gr-item" v-for="(child_item,child_index) in columns" :key="child_index">
<div class="bm-item">{{child_item.name}}</div> <div class="bm-item">{{child_item.name}}</div>
<div <div v-if="child_item.user.length">
class="people-item flex-h flex-vc flex-hb" <div
v-for="(lchild_item,lchild_index) in child_item.user" class="people-item flex-h flex-vc flex-hb"
:key="lchild_index" v-for="(lchild_item,lchild_index) in child_item.user"
@click="chooseWorker(lchild_item,lchild_index,index)" :key="lchild_index"
> @click="chooseWorker(lchild_item,lchild_index,index)"
<div class="flex-h flex-vc"> >
<img class="gr-img" src="@assets/images/gr.png" /> <div class="flex-h flex-vc">
<div <img class="gr-img" :src=gr_img />
class="gr-name" <div
v-if="lchild_item.repired_count !== 0 || lchild_item.repiring_count !== 0" class="gr-name"
>{{lchild_item.name}} (已派工: {{lchild_item.repired_count}};维修中: {{lchild_item.repiring_count}})</div> v-if="lchild_item.repired_count !== 0 || lchild_item.repiring_count !== 0"
<div class="gr-name" v-else>{{lchild_item.name}} (休息中)</div> >{{lchild_item.name}} (已派工: {{lchild_item.repired_count}};维修中: {{lchild_item.repiring_count}})</div>
<div class="gr-name" v-else>{{lchild_item.name}} (休息中)</div>
</div>
<img
class="k-img"
:src="item.temporaryId && item.temporaryId.includes(lchild_item.id) ? select_img : unselect_img"
/>
</div> </div>
<img
class="k-img"
:src="item.temporaryId && item.temporaryId.includes(lchild_item.id) ? select_img : unselect_img"
/>
</div> </div>
<div v-else class="none">暂无员工</div>
</div> </div>
</div> </div>
<div class="allBtn btn-box flex-h flex-hc"> <div class="allBtn btn-box flex-h flex-hc">
...@@ -286,6 +289,7 @@ import { trimStrSpace } from '@assets/js/format.js' ...@@ -286,6 +289,7 @@ import { trimStrSpace } from '@assets/js/format.js'
import { ImagePreview, CellGroup } from 'vant'; import { ImagePreview, CellGroup } from 'vant';
import select_img from '@assets/images/select.png' import select_img from '@assets/images/select.png'
import unselect_img from '@assets/images/un_select.png' import unselect_img from '@assets/images/un_select.png'
import gr_img from '@assets/images/gr.png'
export default { export default {
name: 'home', name: 'home',
components: { components: {
...@@ -295,6 +299,7 @@ export default { ...@@ -295,6 +299,7 @@ export default {
return { return {
select_img, select_img,
unselect_img, unselect_img,
gr_img,
reson: '',//取消原因 reson: '',//取消原因
qxShow: false, // 发起转单弹窗 qxShow: false, // 发起转单弹窗
workerName: '', workerName: '',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment