Commit 8fa8b70b authored by 李星剑's avatar 李星剑

款式委托 新增

parent 582254fc
...@@ -3,15 +3,15 @@ ...@@ -3,15 +3,15 @@
<image style="width: 100%;height: 160rpx;" src="@/static/images/home/1@2x.png" mode=""></image> <image style="width: 100%;height: 160rpx;" src="@/static/images/home/1@2x.png" mode=""></image>
<view class="order_tit"> <view class="order_tit">
<view class="u-flex justify-between u-font-32"> <view class="u-flex justify-between u-font-32">
<span class="color_DDA973 u-line-1">加厚荷兰绒绒布布料备份加厚荷兰绒绒布布料备份</span> <span class="color_DDA973 u-line-1">{{item.name}}</span>
<span><u-icon size="24" color="#fff" name="arrow-right"></u-icon></span> <span><u-icon size="24" color="#fff" name="arrow-right"></u-icon></span>
</view> </view>
<view class="u-font-24 u-m-t-20 color_6F6F72"> <view class="u-font-24 u-m-t-20 color_6F6F72">
<span class="u-m-r-10">针织</span> <span class="u-m-r-10">{{item.mdmMaterialCategory}}</span>
| |
<span class="u-m-l-10 u-m-r-10">180cm</span> <span class="u-m-l-10 u-m-r-10">{{ item.mdmMaterialClothWidth }}cm</span>
| |
<span class="u-m-l-10">100%面备份面备份面备份面备份面备份面备份面备份面备份</span> <span class="u-m-l-10">{{item.mdmMaterialComponent}}</span>
</view> </view>
</view> </view>
</view> </view>
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<view class="u-p-30 bg-fff u-m-b-20"> <view class="u-p-30 bg-fff u-m-b-20">
<hs-tip-title title="所选面料"></hs-tip-title> <hs-tip-title title="所选面料"></hs-tip-title>
<view > <view >
<hs-material-thumbnail></hs-material-thumbnail> <!-- <hs-material-thumbnail></hs-material-thumbnail>-->
</view> </view>
</view> </view>
<!--面料颜色要求--> <!--面料颜色要求-->
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
<view class="u-font-28 u-m-t-18 u-m-b-8">参考品牌(选填)</view> <view class="u-font-28 u-m-t-18 u-m-b-8">参考品牌(选填)</view>
<view class="u-flex"> <view class="u-flex">
<view class="u-line-1 u-flex-1 u-font-32"> <view class="u-line-1 u-flex-1 u-font-32">
<u-input v-model="detail.brand"></u-input> <u-input v-model="detail.referToBrand"></u-input>
</view> </view>
</view> </view>
</view> </view>
...@@ -93,8 +93,8 @@ ...@@ -93,8 +93,8 @@
<view class="footer" id="footer"> <view class="footer" id="footer">
<view class="footer-btn"> <view class="footer-btn">
<view class="custom-style-round-circle custom-style-btn custom-style"> <view class="custom-style-round-circle custom-style-btn custom-style">
<view class="custom-style-left save">保存</view> <view class="custom-style-left save" @click="saveData">保存</view>
<view class="custom-style-right submit"> <view class="custom-style-right submit" @click="submitData">
<view class="title">立即发布</view> <view class="title">立即发布</view>
</view> </view>
</view> </view>
...@@ -193,7 +193,7 @@ export default { ...@@ -193,7 +193,7 @@ export default {
], ],
colourList: [], //选中颜色 colourList: [], //选中颜色
expirationDate: "", //截止日期 expirationDate: "", //截止日期
// brand: "", referToBrand: "", // 参考品牌
otherDescribe: "", //其他描述 otherDescribe: "", //其他描述
}, },
brandSelectList: [], // 风格 tree brandSelectList: [], // 风格 tree
...@@ -390,7 +390,7 @@ export default { ...@@ -390,7 +390,7 @@ export default {
brandSelectCallback(e){ brandSelectCallback(e){
this.detail.designRequirementsDTOList.push({ this.detail.designRequirementsDTOList.push({
quantity: 0, quantity: 0,
styleId: e[e.length - 1].id, styleId: e[e.length - 1].value,
isDeleted: false, isDeleted: false,
name: e.map((item) => { name: e.map((item) => {
return item.label return item.label
...@@ -417,8 +417,23 @@ export default { ...@@ -417,8 +417,23 @@ export default {
} = e; } = e;
this.detail.expirationDate = [year,month,day].join("-") this.detail.expirationDate = [year,month,day].join("-")
}, },
submit(){ submit(data){
this.$http("orderTicket.save",{
...data,
...this.detail
}).then(res => {
})
},
saveData(){
this.submit({
operationType: 1
})
},
submitData(){
this.submit({
operationType: 2
})
} }
} }
} }
......
...@@ -9,18 +9,20 @@ ...@@ -9,18 +9,20 @@
<view class="u-p-30 bg-fff"> <view class="u-p-30 bg-fff">
<hs-tip-title title="所选面料"></hs-tip-title> <hs-tip-title title="所选面料"></hs-tip-title>
<view ></view> <view >
<hs-material-thumbnail :item="mdmMaterial"></hs-material-thumbnail>
</view>
</view> </view>
<view class="u-p-30 bg-fff"> <view class="u-p-30 bg-fff">
<hs-tip-title title="风格款数要求"></hs-tip-title> <hs-tip-title title="风格款数要求"></hs-tip-title>
<view v-for="(item,index) in brandList" :key="index" class="u-p-t-16 u-p-b-30 u-border-bottom"> <view v-for="(item,index) in detail.orderTicketStyleRequirementsVOList" :key="index" class="u-p-t-16 u-p-b-30 u-border-bottom">
<view class="u-flex u-p-b-16"> <view class="u-flex u-p-b-16">
<view class="u-line-1 u-flex-1"> <view class="u-line-1 u-flex-1">
{{item.name}} {{item.name}}
</view> </view>
<text class="del" @click="del">删除</text> <text class="del" @click="showDelModal(index)">删除</text>
</view> </view>
<u-number-box v-model="item.num"></u-number-box> <u-number-box v-model="item.quantity"></u-number-box>
</view> </view>
<u-button plain @click="addBrandList" type="primary">+添加风格</u-button> <u-button plain @click="addBrandList" type="primary">+添加风格</u-button>
</view> </view>
...@@ -28,12 +30,14 @@ ...@@ -28,12 +30,14 @@
<u-select <u-select
@confirm="brandSelectCallback" @confirm="brandSelectCallback"
safe-area-inset-bottom v-model="brandSelectShow" :list="brandSelectList" mode="mutil-column-auto"></u-select> safe-area-inset-bottom v-model="brandSelectShow" :list="brandSelectList" mode="mutil-column-auto"></u-select>
<!-- 删除风格款数模态框 -->
<u-modal v-model="modal.show" :content="modal.content" @confirm="modalConfirm" ></u-modal>
<view class="footer" id="footer"> <view class="footer" id="footer">
<view class="footer-btn"> <view class="footer-btn">
<view class="custom-style-round-circle custom-style-btn custom-style"> <view class="custom-style-round-circle custom-style-btn custom-style">
<view class="custom-style-left save">保存</view> <view class="custom-style-left save" @click="save">保存</view>
<view class="custom-style-right submit"> <view class="custom-style-right submit" @click="submit">
<view class="title">立即发布</view> <view class="title">立即发布</view>
<view class="desc">将被拆分为<text class="color">2个委托</text></view> <view class="desc">将被拆分为<text class="color">2个委托</text></view>
</view> </view>
...@@ -44,66 +48,68 @@ ...@@ -44,66 +48,68 @@
</template> </template>
<script> <script>
import styleTree from "./mixins/styleTree"
import HsTipTitle from "../../components/hs-tip-title/hs-tip-title"; import HsTipTitle from "../../components/hs-tip-title/hs-tip-title";
export default { export default {
name: "splitItem", name: "splitItem",
components: {HsTipTitle}, components: {HsTipTitle},
mixins:[styleTree],
data(){ data(){
return{ return{
brandList: [
{name: '男装|上装|25~35岁|时尚休闲', num: 12}, modal:{
{name: '男装|上装|15~25岁|时尚休闲时尚休闲时', num: 12}, show: false,
], content: "确认删除?"
},
brandSelectShow: false, brandSelectShow: false,
timePickerShow: true, timePickerShow: true,
brandSelectList: [ activeIndex: -1,
{ brandSelectList: [],
value: 1, detail: {
label: '男装', orderTicketStyleRequirementsVOList: [
children: [
{ ],
value: 11, },
label: '上装', }
children:[ },
{ onLoad({id}) {
value: 21, this.getItemMsg(id);
label: '18-25岁', this.getStyleTreeList();
children:[ },
{ computed:{
value: 31, mdmMaterial(){
label: '时尚休闲', return {
}, name: this.detail.mdmMaterialName,
{ ...this.detail,
value: 32, // name: item.mdmMaterialName,
label: '运动', }
}
]
},
{
value: 22,
label: '25-35岁',
children:[
{
value: 33,
label: '时尚休闲',
},
{
value: 34,
label: '运动',
}
]
},
]
}
]
}
],
} }
}, },
methods:{ methods:{
// 显示删除模态框
showDelModal(index){
this.modal.show = true;
this.activeIndex = index;
},
// 显示删除模态框
modalConfirm(){
this.delItem(this.activeIndex);
},
delItem(index){
this.detail.orderTicketStyleRequirementsVOList.splice(index,1);
},
getItemMsg(id){
this.$http("orderTicket.detail",1).then(res =>{
let {
code, data
} = res;
})
},
addBrandList(){ addBrandList(){
this.brandSelectShow = true; this.brandSelectShow = true;
}, },
brandSelectCallback(e){ brandSelectCallback(e){
this.brandList.push({ this.brandList.push({
num: 0, num: 0,
...@@ -111,8 +117,13 @@ export default { ...@@ -111,8 +117,13 @@ export default {
return item.label return item.label
}).join("|") }).join("|")
}) })
} },
submit(){
},
save(){
},
} }
} }
</script> </script>
......
...@@ -278,7 +278,9 @@ export default { ...@@ -278,7 +278,9 @@ export default {
] ]
}, },
form2:{ form2:{
subsidiaryInfoDTOList:[], subsidiaryInfoDTOList:[
{stallAddress: ''}
],
brandInfoDTOList: [ brandInfoDTOList: [
// { // {
// "brandName": "品牌名称", //品牌名称 // "brandName": "品牌名称", //品牌名称
...@@ -442,7 +444,9 @@ export default { ...@@ -442,7 +444,9 @@ export default {
...item, ...item,
stallAddress: item.detailedAddress, stallAddress: item.detailedAddress,
} }
}) : [] }) : [
{stallAddress: ''}
]
this.form2.brandInfoDTOList = brandInfoList.map((item) => { this.form2.brandInfoDTOList = brandInfoList.map((item) => {
return{ return{
...item, ...item,
......
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