修改工单逻辑
This commit is contained in:
parent
8273e08949
commit
495e3a538d
@ -5,15 +5,15 @@ NODE_ENV = production
|
||||
VUE_APP_TITLE = 象纬云科
|
||||
|
||||
# 测试环境
|
||||
VUE_APP_API_BASEURL = 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_WSS_URL = wss://dev.api.linkwing.com/wss
|
||||
# VUE_APP_API_BASEURL = 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_WSS_URL = wss://dev.api.linkwing.com/wss
|
||||
|
||||
# 线上环境
|
||||
# 接口地址 # WS地址
|
||||
# VUE_APP_API_BASEURL = 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_WSS_URL = wss://prod.api.linkwing.com/wss
|
||||
VUE_APP_API_BASEURL = 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_WSS_URL = wss://prod.api.linkwing.com/wss
|
||||
|
||||
|
||||
@ -73,9 +73,9 @@
|
||||
<span class="name">维修动作</span>
|
||||
<span class="text">
|
||||
<el-radio-group v-model="item.action" :size="size">
|
||||
<el-radio value="1">更换</el-radio>
|
||||
<el-radio value="2">修复</el-radio>
|
||||
<el-radio value="3">无需修复</el-radio>
|
||||
<el-radio :value="1" :label="1">更换</el-radio>
|
||||
<el-radio :value="2" :label="2">修复</el-radio>
|
||||
<el-radio :value="3" :label="3">无需修复</el-radio>
|
||||
</el-radio-group>
|
||||
</span>
|
||||
</el-col>
|
||||
@ -108,7 +108,18 @@
|
||||
</el-row>
|
||||
</div>
|
||||
<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">
|
||||
<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>
|
||||
@ -127,14 +138,22 @@
|
||||
</el-scrollbar>
|
||||
</el-main>
|
||||
</el-container>
|
||||
<info-save-dialog ref="saveDialog" v-if="dialog.save" @success="handleSaveSuccess" @closed="dialog.save=false"></info-save-dialog>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import infoSaveDialog from "@/views/order/components/infoSave";
|
||||
export default {
|
||||
name: "repairInfo",
|
||||
name: "repairAction",
|
||||
components:{
|
||||
infoSaveDialog
|
||||
},
|
||||
data(){
|
||||
return{
|
||||
size:'small',
|
||||
dialog:{
|
||||
save:false,
|
||||
},
|
||||
params:{
|
||||
order_id:Number(this.$route.query.order_id),
|
||||
repair_id:Number(this.$route.query.id),
|
||||
@ -151,6 +170,7 @@ export default {
|
||||
]
|
||||
},
|
||||
info:{
|
||||
is_verify_erp_inventory:false,
|
||||
component_info:[],
|
||||
}
|
||||
}
|
||||
@ -170,6 +190,9 @@ export default {
|
||||
if(res.code == 200){
|
||||
this.info = res.data;
|
||||
}
|
||||
},
|
||||
handleSaveSuccess(){
|
||||
|
||||
},
|
||||
async submit() {
|
||||
const res = await this.$API.orders.order.repair.submit.post(this.params);
|
||||
@ -229,7 +229,7 @@ export default {
|
||||
},
|
||||
// 执行维修
|
||||
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){
|
||||
|
||||
Loading…
Reference in New Issue
Block a user