|
|
|
@ -26,9 +26,24 @@ |
|
|
|
</view> |
|
|
|
<view style="height: 100rpx;"></view> |
|
|
|
<!-- 操作按钮 --> |
|
|
|
<view class="fixed-bottom"> |
|
|
|
<button class="btn btn2">立即申请</button> |
|
|
|
</view> |
|
|
|
<!-- <view class="fixed-bottom" v-if="type != '备货中'"> |
|
|
|
<view v-if="type == '待发单'" class="lf-row-flex-end"> |
|
|
|
<button class="btn btn1" @click="$url('/pages/purchase/launch?o_sn='+ order.o_sn+'&enter_type=1')">编辑</button> |
|
|
|
<button class="btn btn2">立即发单</button> |
|
|
|
</view> |
|
|
|
<view v-else-if="type == '待接单'" class="lf-row-flex-end"> |
|
|
|
<button class="btn btn2" style="background-color: #FF0000;" @click="orderStateChange('已撤销')">撤销订单</button> |
|
|
|
</view> |
|
|
|
<view v-else-if="type == '已发货'" class="lf-row-flex-end"> |
|
|
|
<button class="btn btn1">退单</button> |
|
|
|
<button class="btn btn1 lf-m-l-20" @click="is_show_voucher = true">上传凭证</button> |
|
|
|
<button class="btn btn2" @click="$url('/pages/purchase/receipt?o_sn='+ order.o_sn)">确认收货</button> |
|
|
|
</view> |
|
|
|
<view v-else-if="type == '已收货' || type == '已入库'" class="lf-row-between"> |
|
|
|
<button class="btn btn1" @click="$url('/pages/purchase/launch?o_sn='+ order.o_sn+'&enter_type=2')">复用采购单</button> |
|
|
|
<view class="lf-font-32" style="color: #11D189;">已完成</view> |
|
|
|
</view> |
|
|
|
</view> --> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
|
|
|
|
@ -40,66 +55,66 @@ |
|
|
|
components: { lfYsteps, wybTable }, |
|
|
|
data(){ |
|
|
|
return { |
|
|
|
stepList: [ |
|
|
|
{ |
|
|
|
time: '2021-07-23 13:23:52', // 左侧时间 -- 必选 |
|
|
|
info: '订单创建', // 右侧内容 -- 可选 |
|
|
|
isFinished: false, // 是否已完成(完成 index 为 √)-- 可选 |
|
|
|
isActive: true, // 是否为当前节点 Active(当前节点 即使完成 index 也不会显示 √)-- 可选 |
|
|
|
isShowSlot: false // 右侧是否有 Slot(显示在 右侧内容下方)-- 可选 |
|
|
|
} |
|
|
|
], |
|
|
|
stepList: [], |
|
|
|
headers: [{ |
|
|
|
key: 'name', |
|
|
|
label: '姓名' |
|
|
|
},{ |
|
|
|
key: 'age', |
|
|
|
label: '年龄' |
|
|
|
},{ |
|
|
|
key: 'sex', |
|
|
|
label: '性别' |
|
|
|
},{ |
|
|
|
key: 'height', |
|
|
|
label: '身高' |
|
|
|
},{ |
|
|
|
key: 'info', |
|
|
|
label: '描述' |
|
|
|
},{ |
|
|
|
key: 'operation', |
|
|
|
label: '操作' |
|
|
|
}], |
|
|
|
contents: [{ |
|
|
|
name: '张三', |
|
|
|
age: '18', |
|
|
|
sex: '男', |
|
|
|
height: '192cm', |
|
|
|
info: '无敌叫是', |
|
|
|
operation: {button: true, key: 'delete', value: '删除'} |
|
|
|
}, { |
|
|
|
name: '李四', |
|
|
|
age: '18', |
|
|
|
sex: '男', |
|
|
|
height: '192cm', |
|
|
|
info: '无敌叫是' |
|
|
|
}, { |
|
|
|
name: '赵五', |
|
|
|
age: '18', |
|
|
|
sex: '男', |
|
|
|
height: '192cm', |
|
|
|
info: '无敌叫是' |
|
|
|
},{ |
|
|
|
name: '王六', |
|
|
|
age: '18', |
|
|
|
sex: '男', |
|
|
|
height: '192cm', |
|
|
|
info: '无敌叫是' |
|
|
|
}] |
|
|
|
label: '物资名称', |
|
|
|
key: 'material_name' |
|
|
|
},{ |
|
|
|
label: '规格', |
|
|
|
key: 'spec_name' |
|
|
|
},{ |
|
|
|
key: 'brand', |
|
|
|
label: '品牌' |
|
|
|
},{ |
|
|
|
key: 'quality_level', |
|
|
|
label: '品级' |
|
|
|
},{ |
|
|
|
label: '编号', |
|
|
|
key: 'm_sn' |
|
|
|
},{ |
|
|
|
label: '供应商', |
|
|
|
key: 'supplier_name' |
|
|
|
},{ |
|
|
|
label: '批次', |
|
|
|
key: 'purchase_id' |
|
|
|
},{ |
|
|
|
key: 'delivery_number', |
|
|
|
label: '出库数量' |
|
|
|
}], |
|
|
|
contents: [], |
|
|
|
o_sn: '', |
|
|
|
order: {}, |
|
|
|
type: 4, |
|
|
|
} |
|
|
|
}, |
|
|
|
onLoad(){ |
|
|
|
|
|
|
|
onLoad(options){ |
|
|
|
this.o_sn = options.id || ''; |
|
|
|
this.getData(); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
getData(){ |
|
|
|
this.$http(this.API.API_CANTEEN_OUTDETAIL, { |
|
|
|
o_sn: this.o_sn |
|
|
|
// o_sn: '802316269455228606' |
|
|
|
}).then(res => { |
|
|
|
console.log("xxx",res) |
|
|
|
this.order = res.data |
|
|
|
let list = res.data || []; |
|
|
|
let contents = list.map(item => { |
|
|
|
return { |
|
|
|
material_name: item.material.m_name, |
|
|
|
spec: item.spec.name, |
|
|
|
pre_tax_price: item.total_tax_amount, |
|
|
|
after_tax_price: item.total_non_tax_amount, |
|
|
|
spec_id: item.spec.id, |
|
|
|
material_id: item.material.id |
|
|
|
} |
|
|
|
}) |
|
|
|
this.contents = contents; |
|
|
|
console.log(this.contents) |
|
|
|
this.type = res.data.material.state |
|
|
|
}) |
|
|
|
}, |
|
|
|
onButtonClick(event){ |
|
|
|
uni.showModal({ |
|
|
|
title: '温馨提示', |
|
|
|
|