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' // 正式接口
......
...@@ -433,3 +433,9 @@ ...@@ -433,3 +433,9 @@
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 () {
...@@ -670,8 +670,14 @@ export default { ...@@ -670,8 +670,14 @@ export default {
.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('操作成功')
this.addList = [{
goods_name: '',
number: ''
}]
vm.$set(vm.list, index, data) vm.$set(vm.list, index, data)
// },800)
}) })
.catch(() => { .catch(() => {
this.hcShow = false this.hcShow = false
......
...@@ -58,6 +58,7 @@ ...@@ -58,6 +58,7 @@
<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 v-if="child_item.user.length">
<div <div
class="people-item flex-h flex-vc flex-hb" class="people-item flex-h flex-vc flex-hb"
v-for="(lchild_item,lchild_index) in child_item.user" v-for="(lchild_item,lchild_index) in child_item.user"
...@@ -65,7 +66,7 @@ ...@@ -65,7 +66,7 @@
@click="chooseWorker(lchild_item,lchild_index,index)" @click="chooseWorker(lchild_item,lchild_index,index)"
> >
<div class="flex-h flex-vc"> <div class="flex-h flex-vc">
<img class="gr-img" src="@assets/images/gr.png" /> <img class="gr-img" :src=gr_img />
<div <div
class="gr-name" class="gr-name"
v-if="lchild_item.repired_count !== 0 || lchild_item.repiring_count !== 0" v-if="lchild_item.repired_count !== 0 || lchild_item.repiring_count !== 0"
...@@ -78,6 +79,8 @@ ...@@ -78,6 +79,8 @@
/> />
</div> </div>
</div> </div>
<div v-else class="none">暂无员工</div>
</div>
</div> </div>
<div class="allBtn btn-box flex-h flex-hc"> <div class="allBtn btn-box flex-h flex-hc">
<div class="button" @click="Cancel(index)">取消</div> <div class="button" @click="Cancel(index)">取消</div>
...@@ -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