|
|
@@ -41,6 +41,16 @@
|
|
|
<view class="tui-title ">供货商</view>
|
|
|
<text>{{ option.ghsName }}</text>
|
|
|
</tui-list-cell>
|
|
|
+
|
|
|
+ <tui-list-cell class="line-cell" :arrow="true">
|
|
|
+ <div class="tui-title">采购人</div>
|
|
|
+ <picker mode="selector" :value="form.cgStaffId" :range="staffList" range-key="name" @change="cgManChange" class="tui-input" >
|
|
|
+ <input v-model="form.cgStaffId" name="cgStaffId" type="text" hidden />
|
|
|
+ <div style="padding:6upx 0 6upx 0;color:#ccc;" v-if="form.cgStaffName==''">请选择</div>
|
|
|
+ <div style="padding:6upx 0 6upx 0;" v-else>{{form.cgStaffName}}</div>
|
|
|
+ </picker>
|
|
|
+ </tui-list-cell>
|
|
|
+
|
|
|
<tui-list-cell class="line-cell" :hover="false" :arrow="true">
|
|
|
<view class="tui-title ">入库日期</view>
|
|
|
<AppDatePicker v-if="canIEdit" :dateVal.sync="form.entryTime" :placeholder="'今天'"/>
|
|
|
@@ -171,6 +181,7 @@ import {getPurchaseDetailApi,createPurchaseOrderApi} from "@/api/purchase";
|
|
|
import { PURCHASE_ORDER_STATUS } from "@/utils/declare";
|
|
|
import AppDatePicker from "@/components/app-date-picker";
|
|
|
import { getPrint } from "@/api/shop";
|
|
|
+import { getAllStaff } from "@/api/shop-admin"
|
|
|
export default {
|
|
|
components: {
|
|
|
TuiListCell,
|
|
|
@@ -185,6 +196,7 @@ export default {
|
|
|
autoLoad: false,
|
|
|
selectJobType: "purchase",
|
|
|
supplier:'',
|
|
|
+ staffList:[],
|
|
|
form: {
|
|
|
packingCharge: "",
|
|
|
shortCharge: "",
|
|
|
@@ -196,7 +208,9 @@ export default {
|
|
|
remark:"",
|
|
|
avgKgWeight:'',
|
|
|
needPrint:2,
|
|
|
- fistWcPrintNum:1
|
|
|
+ fistWcPrintNum:1,
|
|
|
+ cgStaffId:0,
|
|
|
+ cgStaffName:''
|
|
|
},
|
|
|
showCustomer: false,
|
|
|
detailsInfo: {},
|
|
|
@@ -238,6 +252,14 @@ export default {
|
|
|
this.showCustomer = true;
|
|
|
}
|
|
|
this.selectAllPrice;
|
|
|
+
|
|
|
+ //获取所有在职员工
|
|
|
+ getAllStaff().then(res=>{
|
|
|
+ if(res.code == 1){
|
|
|
+ this.staffList = res.data.list
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
},
|
|
|
onUnload(){
|
|
|
uni.removeStorageSync('newGhs');
|
|
|
@@ -295,6 +317,15 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ cgManChange(e){
|
|
|
+ let index = e.detail.value
|
|
|
+ if(!this.$util.isEmpty(this.staffList)){
|
|
|
+ if(this.staffList[index]){
|
|
|
+ this.form.cgStaffName = this.staffList[index].name
|
|
|
+ this.form.cgStaffId = this.staffList[index].id
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
changeYfPayWay(index){
|
|
|
this.form.yfPayWay = index
|
|
|
this.inputFn()
|