修改工单逻辑
This commit is contained in:
parent
8273e08949
commit
495e3a538d
@ -5,15 +5,15 @@ NODE_ENV = production
|
|||||||
VUE_APP_TITLE = 象纬云科
|
VUE_APP_TITLE = 象纬云科
|
||||||
|
|
||||||
# 测试环境
|
# 测试环境
|
||||||
VUE_APP_API_BASEURL = https://dev.api.linkwing.com/api/v1
|
# VUE_APP_API_BASEURL = https://dev.api.linkwing.com/api/v1
|
||||||
VUE_APP_API_DEV = https://dev.api.linkwing.com/api/v1
|
# VUE_APP_API_DEV = https://dev.api.linkwing.com/api/v1
|
||||||
VUE_APP_WS_URL = wss://dev.api.linkwing.com/wss
|
# VUE_APP_WS_URL = wss://dev.api.linkwing.com/wss
|
||||||
VUE_APP_WSS_URL = wss://dev.api.linkwing.com/wss
|
# VUE_APP_WSS_URL = wss://dev.api.linkwing.com/wss
|
||||||
|
|
||||||
# 线上环境
|
# 线上环境
|
||||||
# 接口地址 # WS地址
|
# 接口地址 # WS地址
|
||||||
# VUE_APP_API_BASEURL = https://prod.api.linkwing.com/api/v1
|
VUE_APP_API_BASEURL = https://prod.api.linkwing.com/api/v1
|
||||||
# VUE_APP_API_DEV = https://prod.api.linkwing.com/api/v1
|
VUE_APP_API_DEV = https://prod.api.linkwing.com/api/v1
|
||||||
# VUE_APP_WS_URL = wss://prod.api.linkwing.com/wss
|
VUE_APP_WS_URL = wss://prod.api.linkwing.com/wss
|
||||||
# VUE_APP_WSS_URL = wss://prod.api.linkwing.com/wss
|
VUE_APP_WSS_URL = wss://prod.api.linkwing.com/wss
|
||||||
|
|
||||||
|
|||||||
@ -73,9 +73,9 @@
|
|||||||
<span class="name">维修动作</span>
|
<span class="name">维修动作</span>
|
||||||
<span class="text">
|
<span class="text">
|
||||||
<el-radio-group v-model="item.action" :size="size">
|
<el-radio-group v-model="item.action" :size="size">
|
||||||
<el-radio value="1">更换</el-radio>
|
<el-radio :value="1" :label="1">更换</el-radio>
|
||||||
<el-radio value="2">修复</el-radio>
|
<el-radio :value="2" :label="2">修复</el-radio>
|
||||||
<el-radio value="3">无需修复</el-radio>
|
<el-radio :value="3" :label="3">无需修复</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</span>
|
</span>
|
||||||
</el-col>
|
</el-col>
|
||||||
@ -108,7 +108,18 @@
|
|||||||
</el-row>
|
</el-row>
|
||||||
</div>
|
</div>
|
||||||
<div class="btnAdd">
|
<div class="btnAdd">
|
||||||
<el-button type="primary" plain :size="size">添加部件信息</el-button>
|
<!-- <el-button type="primary" plain :size="size" @click="addOrder">添加部件信息</el-button>-->
|
||||||
|
<!-- <el-row>-->
|
||||||
|
<!-- <el-col :span="24" :lg="24" class="colFlex">-->
|
||||||
|
<!-- <span class="label labelText">验证ERP库存:</span>-->
|
||||||
|
<!-- <span class="text">-->
|
||||||
|
<!-- <el-radio-group v-model="info.is_verify_erp_inventory">-->
|
||||||
|
<!-- <el-radio :value="true" :label="true">是</el-radio>-->
|
||||||
|
<!-- <el-radio :value="false" :label="false">否</el-radio>-->
|
||||||
|
<!-- </el-radio-group>-->
|
||||||
|
<!-- </span>-->
|
||||||
|
<!-- </el-col>-->
|
||||||
|
<!-- </el-row>-->
|
||||||
<div class="cardBody">
|
<div class="cardBody">
|
||||||
<sc-table ref="table" :data="info.component_info" style="width: 100%;" :hidePagination="true" :hideDo="true" :hideEmpty="true" :size="size">
|
<sc-table ref="table" :data="info.component_info" style="width: 100%;" :hidePagination="true" :hideDo="true" :hideEmpty="true" :size="size">
|
||||||
<sc-table-column type="index" label="序号" width="65"></sc-table-column>
|
<sc-table-column type="index" label="序号" width="65"></sc-table-column>
|
||||||
@ -127,14 +138,22 @@
|
|||||||
</el-scrollbar>
|
</el-scrollbar>
|
||||||
</el-main>
|
</el-main>
|
||||||
</el-container>
|
</el-container>
|
||||||
|
<info-save-dialog ref="saveDialog" v-if="dialog.save" @success="handleSaveSuccess" @closed="dialog.save=false"></info-save-dialog>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import infoSaveDialog from "@/views/order/components/infoSave";
|
||||||
export default {
|
export default {
|
||||||
name: "repairInfo",
|
name: "repairAction",
|
||||||
|
components:{
|
||||||
|
infoSaveDialog
|
||||||
|
},
|
||||||
data(){
|
data(){
|
||||||
return{
|
return{
|
||||||
size:'small',
|
size:'small',
|
||||||
|
dialog:{
|
||||||
|
save:false,
|
||||||
|
},
|
||||||
params:{
|
params:{
|
||||||
order_id:Number(this.$route.query.order_id),
|
order_id:Number(this.$route.query.order_id),
|
||||||
repair_id:Number(this.$route.query.id),
|
repair_id:Number(this.$route.query.id),
|
||||||
@ -151,6 +170,7 @@ export default {
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
info:{
|
info:{
|
||||||
|
is_verify_erp_inventory:false,
|
||||||
component_info:[],
|
component_info:[],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -170,6 +190,9 @@ export default {
|
|||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
this.info = res.data;
|
this.info = res.data;
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
handleSaveSuccess(){
|
||||||
|
|
||||||
},
|
},
|
||||||
async submit() {
|
async submit() {
|
||||||
const res = await this.$API.orders.order.repair.submit.post(this.params);
|
const res = await this.$API.orders.order.repair.submit.post(this.params);
|
||||||
@ -229,7 +229,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 执行维修
|
// 执行维修
|
||||||
table_upkeep(row){
|
table_upkeep(row){
|
||||||
eventBus.$emit('tagClose','/order/repair-info',{id:row.id,order_id:row.order_id});
|
eventBus.$emit('tagClose','/order/repair-action',{id:row.id,order_id:row.order_id});
|
||||||
},
|
},
|
||||||
//查看
|
//查看
|
||||||
table_show(row){
|
table_show(row){
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user