Commit 697358c5 authored by 李星剑's avatar 李星剑

提交

parent 38e24819
// let base = "/gdep-plm/modelingTaskCategory"
let base = "/gdep-plm/modelingtask"; let base = "/gdep-plm/modelingtask";
export default { export default {
modeling:{ modeling:{
category: { // 新建 修改
url: `/gdep-plm/modelingTaskCategory/page`,
method: "POST",
},
submit:{ submit:{
url: `${base}/submit`, url: `${base}/submit`,
method: "POST", method: "POST",
}, },
// 详情
detail:{ detail:{
url: `${base}/detail`, url: `${base}/detail`,
method: "GET", method: "GET",
}, },
// 催单
reminders:{ reminders:{
url: `${base}/reminders`, url: `${base}/reminders`,
method: "post", method: "post",
}, },
// 寄样
sendSamples:{
url: `${base}/sendSamples`,
method: "post",
},
// 列表
selectModelingTaskPage: {
url: `${base}/selectModelingTaskPage`,
method: "get",
},
// 确认建模任务
confirm:{
url: `${base}/confirm`,
method: "post",
}
} }
} }
let base = "/gdep-plm/modelingTaskCategory"
export default {
modelingTaskCategory:{
list:{
url: `${base}/list`,
method: "GET",
},
}
}
...@@ -4,17 +4,19 @@ ...@@ -4,17 +4,19 @@
import user from './apiList/user.js' import user from './apiList/user.js'
import auth from './apiList/auth.js' import auth from './apiList/auth.js'
import color from './apiList/colors.js' import color from './apiList/colors.js'
import orderTicket from './apiList/orderTicket.js' // import orderTicket from './apiList/orderTicket.js'
// 建模任务表接口
import modeling from './apiList/modeling.js' import modeling from './apiList/modeling.js'
// 建模品类表接口
import modelingTaskCategory from './apiList/modelingTaskCategory.js'
import plm from './apiList/plm.js' import plm from './apiList/plm.js'
// import goods from './apiList/goods.js'
// import base from './apiList/base.js'
export default { export default {
...user, ...user,
...auth, ...auth,
...color, ...color,
...orderTicket, // ...orderTicket,
...modeling, ...modeling,
...plm ...plm,
...modelingTaskCategory
}; };
export default {
methods:{
previewImage(url){
uni.previewImage({
urls: typeof url === 'string' ? [url]: url
})
},
callPhone(phoneNumber){
uni.makePhoneCall({
phoneNumber
})
}
}
}
...@@ -357,11 +357,11 @@ export default { ...@@ -357,11 +357,11 @@ export default {
if (val == '即刻发布') { if (val == '即刻发布') {
this.$Router.push(`/pages/modeling/addItem?id=${item.id}`); this.$Router.push(`/pages/modeling/addItem?id=${item.id}`);
} else if (val == '选款') { } else if (val == '选款') {
// this.$Router.push(`/pages/designCommissioned/addItem?id=${item.id}&status=2`); this.$Router.push(`/pages/modeling/item?id=${item.id}`);
} else if (val == '马上寄送') { } else if (val == '马上寄送') {
this.$Router.push(`/pages/designCommissioned/addItem?id=${item.id}`); this.$Router.push(`/pages/modeling/item?id=${item.id}`);
} else { } else {
this.$Router.push('/pages/designCommissioned/listSelectToAdd'); this.$Router.push('/pages/modeling/addItem');
} }
} }
} }
......
...@@ -48,7 +48,7 @@ export default { ...@@ -48,7 +48,7 @@ export default {
// 向宿主App发送事件 // 向宿主App发送事件
uni.sendNativeEvent('getTenantList', {}, ret => { uni.sendNativeEvent('getTenantList', {}, ret => {
this.list = JSON.parse(ret).filter((item) =>{ this.list = JSON.parse(ret).filter((item) =>{
return item.tenantPlat === 'sass' return item.tenantPlat === 'saas'
}); });
}) })
// #endif // #endif
......
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
</u-form-item> </u-form-item>
<!--指定面料颜色数量--> <!--指定面料颜色数量-->
<u-form-item label="指定面料颜色数量" prop="component" required> <u-form-item label="指定面料颜色数量" prop="component" required>
<u-number-box v-model="detail.clothRowColourQuantity" @blur="addModelingTaskColourDTOList"></u-number-box> <u-number-box v-model="detail.clothRowColourQuantity" @change="addModelingTaskColourDTOList"></u-number-box>
</u-form-item> </u-form-item>
<view class="brandList-tips u-p-t-24 u-p-r-30 u-p-b-24 u-p-l-30" > <view class="brandList-tips u-p-t-24 u-p-r-30 u-p-b-24 u-p-l-30" >
<view class="u-border-bottom u-flex u-p-b-8 "> <view class="u-border-bottom u-flex u-p-b-8 ">
...@@ -305,23 +305,19 @@ export default { ...@@ -305,23 +305,19 @@ export default {
this.detail.price = extra; this.detail.price = extra;
}, },
init(){ init(){
this.$http("modeling.category",{ this.$http("modelingTaskCategory.list")
"current": 1,
"size": 10
})
.then(res =>{ .then(res =>{
let { let {
code,data code,data
} = res; } = res;
if(code === 200){ if(code === 200){
this.modelingTaskCategory = data.records.map((item) =>{ this.modelingTaskCategory = data.map((item) =>{
return { return {
label: item.name, label: item.name,
value: item.id, value: item.id,
extra: item.price, extra: item.price,
} }
}); });
// console.log(data)
} }
}) })
}, },
...@@ -344,9 +340,24 @@ export default { ...@@ -344,9 +340,24 @@ export default {
let {modelingTaskPictureDTOList, ...onther} = this.detail; let {modelingTaskPictureDTOList, ...onther} = this.detail;
this.$http("modeling.submit",Object.assign({}, this.$http("modeling.submit",Object.assign({},
onther, onther,
{ operationType:type, modelingTaskPictureDTOList: modelingTaskPictureDTOList.concat(this.delModelingTaskPictureDTOList)}) {
designAgencyColourQuantity: this.designAgencyColourQuantity,
operationType:type,
modelingTaskPictureDTOList: modelingTaskPictureDTOList.concat(this.delModelingTaskPictureDTOList)})
).then(res =>{ ).then(res =>{
let {
code,msg
} = res;
if(code === 200){
this.$refs.uToast.show({
title: msg,
back: true
});
}else{
this.$refs.uToast.show({
title: msg
});
}
}) })
}, },
...@@ -358,6 +369,7 @@ export default { ...@@ -358,6 +369,7 @@ export default {
for (let i = 0; i < item.value; i++) { for (let i = 0; i < item.value; i++) {
res.push(this.getDefaultColor()) res.push(this.getDefaultColor())
} }
this.modelingTaskColourDTOList = res; this.modelingTaskColourDTOList = res;
}, },
validateColors(){ validateColors(){
...@@ -401,8 +413,9 @@ export default { ...@@ -401,8 +413,9 @@ export default {
modelingTaskColourDTOList: data['modelingTaskColourList'], modelingTaskColourDTOList: data['modelingTaskColourList'],
modelingTaskPictureDTOList: data['modelingTaskPictureList'] modelingTaskPictureDTOList: data['modelingTaskPictureList']
}); });
console.log(data['modelingTaskPictureList']) this.$nextTick(() =>{
this.modelingTaskColourList = data['modelingTaskColourList'] this.modelingTaskColourDTOList = data['modelingTaskColourList'];
})
} }
}) })
}, },
......
This diff is collapsed.
1-待发布 发布
2-任务待审批
3-待接单
4-待寄样 寄样 选快递 填单号
5-建模中
6-建模待审批
7-待确认 评审
8-已完成
撤回 3
催单
<template> <template>
<view>
</view>
</template> </template>
<script> <script>
export default { export default {
name: "editItem" name: "reviewHistory",
data(){
}
} }
</script> </script>
<style scoped> <style scoped lang="scss">
</style> </style>
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